MailChimp List Subscribe Form - Version 1.0.1

Version Description

Download this release

Release Info

Developer mc_jesse
Plugin Icon wp plugin MailChimp List Subscribe Form
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0 to 1.0.1

mailchimp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp
4
  Plugin URI: http://mailchimp.com/api/plugins/wordpress
5
  Description: The MailChimp plugin allows you to easily setup a Subscribe box for your MailChimp list - So easy a chimp could do it!
6
- Version: 1.0
7
  Author: MailChimp API Support Team
8
  Author URI: http://mailchimp.com/api/
9
  */
@@ -63,19 +63,33 @@ echo "
63
  ";
64
  }//mc_main_css
65
 
 
 
 
 
66
  add_action('admin_head', 'mc_admin_css');
67
  add_action('wp_head', 'mc_main_css');
68
 
 
69
  // Hook for adding admin menus
70
  add_action('admin_menu', 'mc_add_pages');
71
 
 
 
 
 
 
 
72
  // action function for above hook
73
- function mc_add_pages() {
74
 
75
  //7 is lowest w/ Plugin Editing capability
76
- add_options_page('MailChimp Setup', 'MailChimp Setup', 7, 'mc_setup_page', 'mc_setup_page');
77
  }
78
 
 
 
 
79
  function mc_setup_page(){
80
 
81
  $msg = '';
@@ -88,13 +102,13 @@ if (get_option('mc_password')!=''){
88
  $req = $api->getAffiliateInfo();
89
  update_option('mc_user_id', $req['user_id']);
90
  } else {
91
- $msg = "<span class='error_msg'>While upgrading the plugin setup, we were unable to login to your account. You will need to login again and setup your list.<br/>";
92
  }
93
  delete_option('mc_password');
94
  }
95
  ?>
96
  <div class="wrap">
97
- <h2>MailChimp List Setup</h2>
98
  <?php
99
  if ($_REQUEST['action']==='logout'){
100
  update_option('mc_apikey', '');
@@ -104,38 +118,41 @@ if (isset($_REQUEST['mc_username']) && isset($_REQUEST['mc_password'])){
104
  $delete_setup = false;
105
  $api = new MCAPI($_REQUEST['mc_username'], $_REQUEST['mc_password']);
106
  if ($api->errorCode == ''){
107
- $msg = "<span class='success_msg'>Success! We were able to verify your username &amp; password! Let's continue, shall we?</span>";
108
  update_option('mc_username', $_REQUEST['mc_username']);
109
  update_option('mc_apikey', $api->api_key);
110
  $req = $api->getAffiliateInfo();
111
  update_option('mc_user_id', $req['user_id']);
112
  if (get_option('mc_list_id')!=''){
113
  $lists = $api->lists();
114
- $delete_setup = true;
115
  //but don't delete if the list still exists...
 
116
  foreach($lists as $list){ if ($list['id']==get_option('mc_list_id')){ $list_id = $_REQUEST['mc_list_id']; $delete_setup=false; } }
117
  }
118
  } else {
119
- $msg .= "<span class='error_msg'>Uh-oh, we were unable to login and verify your username &amp; password. Please check them and try again!<br/>";
120
- $msg .= "The server said: <i>".$api->errorMessage."</i></span>";
121
  if (get_option('mc_username')==''){
122
  $delete_setup = true;
123
  }
124
  }
125
  if ($delete_setup){
126
  delete_option('mc_user_id');
127
- delete_option('mc_username');
128
- delete_option('mc_apikey');
129
  delete_option('mc_rewards');
130
  delete_option('mc_list_id');
131
  delete_option('mc_list_name');
132
  delete_option('mc_interest_groups');
133
  delete_option('mc_show_interest_groups');
134
- $mv = unserialize(get_option('mc_merge_vars'));
135
- foreach($mv as $var){
136
- $opt = 'mc_mv_'.$var['tag'];
137
- delete_option($opt);
138
  }
 
 
 
 
 
 
139
  delete_option('mc_merge_vars');
140
  }
141
  //set these for the form fields below
@@ -155,8 +172,8 @@ if (get_option('mc_apikey')!=''){
155
  update_option('mc_list_id', $list_id);
156
  update_option('mc_list_name', $list_name);
157
 
158
- update_option('mc_header_content','<h2>Sign up for '.$list_name.'</h2>');
159
- update_option('mc_submit_text','Subscribe');
160
 
161
  update_option('mc_custom_style','on');
162
  update_option('mc_form_border_width','1');
@@ -174,10 +191,13 @@ if (get_option('mc_apikey')!=''){
174
  }
175
  update_option('mc_interest_groups', serialize( $ig ) );
176
  update_option('mc_show_interest_groups', 'on' );
177
- $msg = '<span class="success_msg">Success! Loaded and saved the info for '.sizeof($mv).' Merge Variables and '.
178
- sizeof($ig).' Interest Groups from your list "'.$list_name.'"<br/><br/>
179
- Now you should either Turn On the MailChimp Widget or change your options below, then turn it on.</span>';
 
 
180
  }
 
181
  }
182
  if (isset($_REQUEST['reset_list'])){
183
  delete_option('mc_list_id');
@@ -194,17 +214,17 @@ if (isset($_REQUEST['reset_list'])){
194
  delete_option('mc_form_background');
195
  delete_option('mc_form_text_color');
196
 
197
- $msg = '<span class="success_msg">Successfully Reset your List selection... Now you get to pick again!</span>';
198
  }
199
  if (isset($_REQUEST['change_form_settings'])){
200
  if (isset($_REQUEST['mc_rewards']) && $_REQUEST['mc_rewards'] != get_option('mc_rewards')){
201
  update_option('mc_rewards', 'on');
202
  if ($msg) $msg .= '<br/>';
203
- $msg .= '<span class="success_msg">Monkey Rewards turned On!</span>';
204
  } else if (get_option('mc_rewards')!='off') {
205
  update_option('mc_rewards', 'off');
206
  if ($msg) $msg .= '<br/>';
207
- $msg .= '<span class="success_msg">Monkey Rewards turned Off!</span>';
208
  }
209
 
210
  $content = stripslashes($_REQUEST['mc_header_content']);
@@ -244,7 +264,7 @@ if (isset($_REQUEST['change_form_settings'])){
244
  update_option($opt,'off');
245
  }
246
  }
247
- $msg = '<span class="success_msg">Successfully Updated your List Subscribe Form Settings!</span>';
248
 
249
  }
250
  if ($msg){
@@ -255,42 +275,44 @@ if ($msg){
255
  <?php wp_nonce_field('update-options');
256
  if (get_option('mc_apikey')==''){
257
  ?>
258
- <h3>Login Info</h3>
259
- To start using the MailChimp plugin, we first need to store your MailChimp Username & Password<br/>
 
 
 
260
  <table class="form-table">
261
  <tr valign="top">
262
- <th scope="row">Username:</th>
263
  <td><input name="mc_username" type="text" id="mc_username" class="code" value="<?php echo $user; ?>" size="20" /></td>
264
  </tr>
265
  <tr valign="top">
266
- <th scope="row">Password:</th>
267
  <td><input name="mc_password" type="text" id="mc_password" class="code" value="<?php echo $pass; ?>" size="20" /></td>
268
  </tr>
269
  </table>
270
  <input type="hidden" name="action" value="update"/>
271
  <input type="hidden" name="page_options" value="mc_username,mc_password" />
272
- <input type="submit" name="Submit" value="Save & Check" class="button" />
273
  </form>
274
  <?php
275
  if (get_option('mc_username')!=''){
276
- echo '<strong>Notes:</strong><ul>
277
- <li><i>Changing your settings at MailChimp.com may cause this to stop working.</i></li>
278
- <li><i>Changing your username &amp; password at MailChimp.com will cause this plugin to stop working!</i></li>
279
- <li><i>If you change your login to a different account, the info you have setup below will be erased.</i></li>
280
- <li><i>If any of that happens, no biggie - just reconfigure your login and the items below...</i></li></ul>
281
  <br/>';
282
  }
283
  echo '</p>';
284
  } else {
285
  ?>
286
- <table style="min-width:400px;"><tr><td><h3>Logged in as: <?=get_option('mc_username')?></h3>
287
  </td><td>
288
  <form method="post" action="options-general.php?page=mc_setup_page">
289
  <input type="hidden" name="action" value="logout"/>
290
- <input type="submit" name="Submit" value="Logout" class="button" />
291
  </form>
292
  </td></tr></table>
293
- <?
294
  }
295
  ?>
296
  <?php
@@ -300,33 +322,35 @@ if (get_option('mc_apikey') == '') return;
300
  if (get_option('mc_apikey')!=''){
301
  ?>
302
  <?php wp_nonce_field('update-options'); ?>
303
- <h3>Your Lists</h3>
304
- Please select the List you wish to create a Signup Form for.<br/>
305
  <form method="post" action="options-general.php?page=mc_setup_page">
306
  <?php
307
  $api = new MCAPI(get_option('mc_username'), get_option('mc_password'));
308
  $lists = $api->lists();
309
  rsort($lists);
310
  if (sizeof($lists)==0){
311
- echo "<span class='error_msg'>Uh-oh, you don't have any lists defined! Please visit <a href='http://www.mailchimp.com/'>MailChimp</a>, login, and setup a list before using this tool!</span>";
 
 
312
  } else {
313
-
314
  echo '<table style="min-width:400px"><tr><td>
315
- <select name="mc_list_id" height="100px" style="min-width:200px;">';
 
316
  foreach ($lists as $list){
317
  if ($list['id'] == get_option('mc_list_id')){
318
  $sel = ' selected ';
319
  } else {
320
  $sel = '';
321
  }
322
- echo '<option value="'.$list['id'].'"'.$sel.'>'.$list['name'].'</option>';
323
  }
324
  ?>
325
  </select></td><td>
326
 
327
  <input type="hidden" name="action" value="update" />
328
  <input type="hidden" name="page_options" value="mc_list_id" />
329
- <input type="submit" name="Submit" value="Change List" class="button" />
330
  </td></tr></table>
331
  </form>
332
  <br/>
@@ -340,11 +364,11 @@ Please select the List you wish to create a Signup Form for.<br/>
340
  <p class="submit">
341
  <input type="hidden" name="action" value="update" />
342
  <input type="hidden" name="page_options" value="mc_list_id" />
343
- <input type="submit" name="reset_list" value="Reset List Options and Select again" class="button" />
344
  </p>
345
  </form>
346
- <h3>Subscribe Form Widget Settings for this List:</h3>
347
- <h4>Selected MailChimp List: <?php echo get_option('mc_list_name'); ?></h4>
348
  <?php
349
  }
350
  //Just get out if nothing else matters...
@@ -366,43 +390,43 @@ if (!is_array($ig)){
366
  <div style="width:600px;">
367
  <table class="widefat">
368
  <tr valign="top">
369
- <th scope="row">Monkey Rewards:</th>
370
  <td><input name="mc_rewards" type="checkbox" <?php if (get_option('mc_rewards')=='on' || get_option('mc_rewards')=='' ) {echo 'checked';} ?> id="mc_rewards" class="code" />
371
- <i>turning this on will place a "powered by MailChimp" link in your form that will earn you credits with us. It is optional and can be turned on or off at any time.</i>
372
  </td>
373
  </tr>
374
  <tr valign="top">
375
- <th scope="row">Header content:</th>
376
  <td>
377
  <textarea name="mc_header_content" cols="50"><?php echo get_option('mc_header_content');?></textarea><br/>
378
- <i>You can fill this with your own Text, HTML markup (including image links), or Nothing!</i>
379
  </td>
380
  </tr>
381
 
382
  <tr valign="top">
383
- <th scope="row">Submit Button text:</th>
384
  <td>
385
  <input type="text" name="mc_submit_text" size="30" value="<?php echo get_option('mc_submit_text');?>"/><br/>
386
- <i>You can fill this with your own Text, HTML markup (including image links), or Nothing!</i>
387
  </td>
388
  </tr>
389
 
390
  <tr valign="top">
391
- <th scope="row">Custom Styling:</th>
392
  <td>
393
  <table class="widefat">
394
- <tr><th>Turned On?</th><td><input type="checkbox" name="mc_custom_style" <?php if (get_option('mc_custom_style')=='on'){echo 'checked';}?> ></td></tr>
395
- <tr><th>Border Width:</th><td><input type="text" name="mc_form_border_width" size="3" maxlength="3" value="<?php echo get_option('mc_form_border_width');?>"> px<br/>
396
- <i>Set to 0 for no border, do not enter <strong>px</strong>!</i>
397
  </td></tr>
398
- <tr><th>Border Color:</th><td>#<input type="text" name="mc_form_border_color" size="7" maxlength="6" value="<?php echo get_option('mc_form_border_color');?>"><br/>
399
- <i>do not enter initial <strong>#</strong></i>
400
  </td></tr>
401
  <tr><th>Text Color:</th><td>#<input type="text" name="mc_form_text_color" size="7" maxlength="6" value="<?php echo get_option('mc_form_text_color');?>"><br/>
402
- <i>do not enter initial <strong>#</strong></i>
403
  </td></tr>
404
  <tr><th>Background Color:</th><td>#<input type="text" name="mc_form_background" size="7" maxlength="6" value="<?php echo get_option('mc_form_background');?>"><br/>
405
- <i>do not enter initial <strong>#</strong></i>
406
  </td></tr>
407
  </table>
408
  </td>
@@ -411,19 +435,19 @@ if (!is_array($ig)){
411
  </div>
412
 
413
  <div style="width:400px;">
414
- <h4>Merge Variables Included</h4>
415
  <?php
416
  if (sizeof($mv)==0){
417
- echo "<i>No Merge Variables found.</i>";
418
  } else {
419
  ?>
420
 
421
  <table class='widefat'>
422
  <tr valign="top">
423
- <th>Name</th>
424
- <th>Tag</th>
425
- <th>Required?</th>
426
- <th>Include?</th>
427
  </tr>
428
  <?php
429
  foreach($mv as $var){
@@ -443,25 +467,24 @@ if (sizeof($mv)==0){
443
  }
444
  echo '</table>';
445
  }
446
- echo '<h4>Interest Groups</h4>';
447
  if (!$ig || $ig=='' || $ig=='N'){
448
- echo "<i>No Interest Groups Setup for this List</i>";
449
  } else {
450
  ?>
451
  <table class='widefat'>
452
  <tr valign="top">
453
-
454
- <th width="75px">Show?</th><th>
455
  <input name="mc_show_interest_groups" type="checkbox" <?php if (get_option('mc_show_interest_groups')=='on') { echo 'checked'; } ?> id="mc_show_interest_groups" class="code" />
456
  </th></tr>
457
  <tr valign="top">
458
- <th>Name:</th><th><?php echo $ig['name']; ?></th>
459
  </tr>
460
  <tr valign="top">
461
- <th>Input Type:</th><td><?php echo $ig['form_field']; ?></td>
462
  </tr>
463
  <tr valign="top">
464
- <th>Options:</th><td><ul>
465
  <?php
466
  foreach($ig['groups'] as $interest){
467
  echo '<li>'.$interest;
@@ -472,7 +495,7 @@ echo '</div>';
472
  ?>
473
  <p class="submit">
474
  <input type="hidden" name="action" value="update" />
475
- <input type="submit" name="change_form_settings" value="Update Subscribe Form Settings" class="button" />
476
  </p>
477
  </form>
478
  </div>
@@ -486,24 +509,10 @@ function mc_register_widgets(){
486
  if (!function_exists('register_sidebar_widget')) {
487
  return;
488
  }
489
- register_sidebar_widget('MailChimp Widget', 'mc_display_widget');
490
 
491
  }
492
  function mc_display_widget(){
493
- if (get_option('mc_password')!=''){
494
- //some upgrade code for < 0.5 users - we want to rip out the password we've been saving.
495
- $api = new MCAPI(get_option('mc_username'), get_option('mc_password'));
496
- if ($api->errorCode == ''){
497
- update_option('mc_apikey', $api->api_key);
498
- //this should already be here, but let's make sure anyway
499
- $req = $api->getAffiliateInfo();
500
- update_option('mc_user_id', $req['user_id']);
501
- } else {
502
- $msg = "<span class='error_msg'>While upgrading the plugin setup, we were unable to login to your account. You will need to login again and setup your list.<br/>";
503
- }
504
- delete_option('mc_password');
505
- }
506
-
507
  $mv = get_option('mc_merge_vars');
508
  $ig = get_option('mc_interest_groups');
509
  if (!is_array($mv)){
@@ -557,11 +566,11 @@ function mc_display_widget(){
557
  $failed = true;
558
  $errs[] = $api->errorMessage;
559
  } else {
560
- $msg = "<br/><strong class='success_msg'>Success, you've been signed up! Please look for our confirmation email!</strong><br/>";
561
  }
562
  }
563
  if (sizeof($errs)>0){
564
- $msg = '<br/>Uhoh, we had problems!<ul>';
565
  foreach($errs as $error){
566
  $msg .= '<li class="error_msg">'.$error.'</li>';
567
  }
@@ -587,7 +596,7 @@ function mc_display_widget(){
587
  echo '<br/>';
588
  }
589
  }
590
- echo '<sup style="clear:both;">* = required field</sup>';
591
  if (get_option('mc_show_interest_groups')=='on' && $ig){
592
  echo '<br/><br/><strong>'.$ig['name'].'</strong><br/>';
593
  if ($ig['form_field']=='checkbox'){
@@ -613,7 +622,7 @@ function mc_display_widget(){
613
  </form>
614
  <?php
615
  if ( get_option('mc_rewards')=='on') {
616
- echo '<div align="center">powered by <a href="http://www.mailchimp.com/affiliates/?aid='.get_option('mc_user_id').'&afl=1">MailChimp</a>!</div>';
617
  }
618
  ?>
619
  </div>
3
  Plugin Name: MailChimp
4
  Plugin URI: http://mailchimp.com/api/plugins/wordpress
5
  Description: The MailChimp plugin allows you to easily setup a Subscribe box for your MailChimp list - So easy a chimp could do it!
6
+ Version: 1.0.1
7
  Author: MailChimp API Support Team
8
  Author URI: http://mailchimp.com/api/
9
  */
63
  ";
64
  }//mc_main_css
65
 
66
+ // Hook for initializing the plugins, mostly for i18n
67
+ add_action( 'init', 'mc_plugin_init' );
68
+
69
+ // Hook for our css
70
  add_action('admin_head', 'mc_admin_css');
71
  add_action('wp_head', 'mc_main_css');
72
 
73
+
74
  // Hook for adding admin menus
75
  add_action('admin_menu', 'mc_add_pages');
76
 
77
+ // Initialize this plugin. Called by 'init' hook.
78
+ function mc_plugin_init(){
79
+ //the "complicate" path is so people can use this with WPMU or just move things around
80
+ load_plugin_textdomain( 'mailchimp_i18n', str_replace(ABSPATH,'',dirname(__FILE__).'/po') );
81
+ }
82
+
83
  // action function for above hook
84
+ function mc_add_pages(){
85
 
86
  //7 is lowest w/ Plugin Editing capability
87
+ add_options_page( __( 'MailChimp Setup', 'mailchimp_i18n' ), __( 'MailChimp Setup', 'mailchimp_i18n' ), 7, 'mc_setup_page', 'mc_setup_page');
88
  }
89
 
90
+
91
+ // __( '', 'mailchimp_i18n' )
92
+
93
  function mc_setup_page(){
94
 
95
  $msg = '';
102
  $req = $api->getAffiliateInfo();
103
  update_option('mc_user_id', $req['user_id']);
104
  } else {
105
+ $msg = "<span class='error_msg'>".__( "While upgrading the plugin setup, we were unable to login to your account. You will need to login again and setup your list.", 'mailchimp_i18n' )."<br/>";
106
  }
107
  delete_option('mc_password');
108
  }
109
  ?>
110
  <div class="wrap">
111
+ <h2><?php echo __( 'MailChimp List Setup', 'mailchimp_i18n');?> </h2>
112
  <?php
113
  if ($_REQUEST['action']==='logout'){
114
  update_option('mc_apikey', '');
118
  $delete_setup = false;
119
  $api = new MCAPI($_REQUEST['mc_username'], $_REQUEST['mc_password']);
120
  if ($api->errorCode == ''){
121
+ $msg = "<span class='success_msg'>".__( "Success! We were able to verify your username &amp; password! Let's continue, shall we?", 'mailchimp_i18n' )."</span>";
122
  update_option('mc_username', $_REQUEST['mc_username']);
123
  update_option('mc_apikey', $api->api_key);
124
  $req = $api->getAffiliateInfo();
125
  update_option('mc_user_id', $req['user_id']);
126
  if (get_option('mc_list_id')!=''){
127
  $lists = $api->lists();
 
128
  //but don't delete if the list still exists...
129
+ $delete_setup = true;
130
  foreach($lists as $list){ if ($list['id']==get_option('mc_list_id')){ $list_id = $_REQUEST['mc_list_id']; $delete_setup=false; } }
131
  }
132
  } else {
133
+ $msg .= "<span class='error_msg'>".__( 'Uh-oh, we were unable to login and verify your username &amp; password. Please check them and try again!', 'mailchimp_i18n' )."<br/>";
134
+ $msg .= __( 'The server said:', 'mailchimp_i18n' )."<i>".$api->errorMessage."</i></span>";
135
  if (get_option('mc_username')==''){
136
  $delete_setup = true;
137
  }
138
  }
139
  if ($delete_setup){
140
  delete_option('mc_user_id');
 
 
141
  delete_option('mc_rewards');
142
  delete_option('mc_list_id');
143
  delete_option('mc_list_name');
144
  delete_option('mc_interest_groups');
145
  delete_option('mc_show_interest_groups');
146
+ $mv = get_option('mc_merge_vars');
147
+ if (!is_array($mv)){
148
+ $mv = unserialize($mv);
 
149
  }
150
+ if (is_array($mv)){
151
+ foreach($mv as $var){
152
+ $opt = 'mc_mv_'.$var['tag'];
153
+ delete_option($opt);
154
+ }
155
+ }
156
  delete_option('mc_merge_vars');
157
  }
158
  //set these for the form fields below
172
  update_option('mc_list_id', $list_id);
173
  update_option('mc_list_name', $list_name);
174
 
175
+ update_option('mc_header_content','<h2>'.__( 'Sign up for', 'mailchimp_i18n' ).' '.$list_name.'</h2>');
176
+ update_option('mc_submit_text',__( 'Subscribe', 'mailchimp_i18n' ));
177
 
178
  update_option('mc_custom_style','on');
179
  update_option('mc_form_border_width','1');
191
  }
192
  update_option('mc_interest_groups', serialize( $ig ) );
193
  update_option('mc_show_interest_groups', 'on' );
194
+ $msg = '<span class="success_msg">'.
195
+ sprintf(__( 'Success! Loaded and saved the info for %d Merge Variables and %d Interest Groups from your list'),
196
+ sizeof($mv) , sizeof($ig) ).
197
+ ' "'.$list_name.'"<br/><br/>'.
198
+ __('Now you should either Turn On the MailChimp Widget or change your options below, then turn it on.', 'mailchimp_i18n').'</span>';
199
  }
200
+
201
  }
202
  if (isset($_REQUEST['reset_list'])){
203
  delete_option('mc_list_id');
214
  delete_option('mc_form_background');
215
  delete_option('mc_form_text_color');
216
 
217
+ $msg = '<span class="success_msg">'.__('Successfully Reset your List selection... Now you get to pick again!', 'mailchimp_i18n').'</span>';
218
  }
219
  if (isset($_REQUEST['change_form_settings'])){
220
  if (isset($_REQUEST['mc_rewards']) && $_REQUEST['mc_rewards'] != get_option('mc_rewards')){
221
  update_option('mc_rewards', 'on');
222
  if ($msg) $msg .= '<br/>';
223
+ $msg .= '<span class="success_msg">'.__('Monkey Rewards turned On!', 'mailchimp_i18n').'</span>';
224
  } else if (get_option('mc_rewards')!='off') {
225
  update_option('mc_rewards', 'off');
226
  if ($msg) $msg .= '<br/>';
227
+ $msg .= '<span class="success_msg">'.__('Monkey Rewards turned Off!', 'mailchimp_i18n').'</span>';
228
  }
229
 
230
  $content = stripslashes($_REQUEST['mc_header_content']);
264
  update_option($opt,'off');
265
  }
266
  }
267
+ $msg = '<span class="success_msg">'.__('Successfully Updated your List Subscribe Form Settings!', 'mailchimp_i18n').'</span>';
268
 
269
  }
270
  if ($msg){
275
  <?php wp_nonce_field('update-options');
276
  if (get_option('mc_apikey')==''){
277
  ?>
278
+ <h3><?php echo __('Login Info', 'mailchimp_i18n');?></h3>
279
+ <?php echo __('To start using the MailChimp plugin, we first need to login and get your API Key. Please enter your MailChimp username and password below.', 'mailchimp_i18n'); ?>
280
+ <br/>
281
+ <?php echo __("Don't have a MailChimp account? <a href='http://www.mailchimp.com/tryit.phtml' target='_blank'>Try one for Free</a>!", 'mailchimp_i18n'); ?>
282
+ <br/>
283
  <table class="form-table">
284
  <tr valign="top">
285
+ <th scope="row"><?php echo __('Username', 'mailchimp_i18n');?>:</th>
286
  <td><input name="mc_username" type="text" id="mc_username" class="code" value="<?php echo $user; ?>" size="20" /></td>
287
  </tr>
288
  <tr valign="top">
289
+ <th scope="row"><?php echo __('Password', 'mailchimp_i18n');?>:</th>
290
  <td><input name="mc_password" type="text" id="mc_password" class="code" value="<?php echo $pass; ?>" size="20" /></td>
291
  </tr>
292
  </table>
293
  <input type="hidden" name="action" value="update"/>
294
  <input type="hidden" name="page_options" value="mc_username,mc_password" />
295
+ <input type="submit" name="Submit" value="<?php echo __('Save & Check');?>" class="button" />
296
  </form>
297
  <?php
298
  if (get_option('mc_username')!=''){
299
+ echo '<strong>'.__('Notes', 'mailchimp_i18n').':</strong><ul>
300
+ <li><i>'.__('Changing your settings at MailChimp.com may cause this to stop working.', 'mailchimp_i18n').'</i></li>
301
+ <li><i>'.__('If you change your login to a different account, the info you have setup below will be erased.', 'mailchimp_i18n').'</i></li>
302
+ <li><i>'.__('If any of that happens, no biggie - just reconfigure your login and the items below...', 'mailchimp_i18n').'</i></li></ul>
 
303
  <br/>';
304
  }
305
  echo '</p>';
306
  } else {
307
  ?>
308
+ <table style="min-width:400px;"><tr><td><h3><?php echo __('Logged in as', 'mailchimp_i18n');?>: <?=get_option('mc_username')?></h3>
309
  </td><td>
310
  <form method="post" action="options-general.php?page=mc_setup_page">
311
  <input type="hidden" name="action" value="logout"/>
312
+ <input type="submit" name="Submit" value="<?php echo __('Logout', 'mailchimp_i18n');?>" class="button" />
313
  </form>
314
  </td></tr></table>
315
+ <?php
316
  }
317
  ?>
318
  <?php
322
  if (get_option('mc_apikey')!=''){
323
  ?>
324
  <?php wp_nonce_field('update-options'); ?>
325
+ <h3><?php echo __('Your Lists', 'mailchimp_i18n')?></h3>
326
+ <?php echo __('Please select the List you wish to create a Signup Form for.', 'mailchimp_i18n');?><br/>
327
  <form method="post" action="options-general.php?page=mc_setup_page">
328
  <?php
329
  $api = new MCAPI(get_option('mc_username'), get_option('mc_password'));
330
  $lists = $api->lists();
331
  rsort($lists);
332
  if (sizeof($lists)==0){
333
+ echo "<span class='error_msg'>".
334
+ sprintf(__("Uh-oh, you don't have any lists defined! Please visit %s, login, and setup a list before using this tool!", 'mailchimp_i18n'),
335
+ "<a href='http://www.mailchimp.com/'>MailChimp</a>")."</span>";
336
  } else {
 
337
  echo '<table style="min-width:400px"><tr><td>
338
+ <select name="mc_list_id" height="100px" style="min-width:200px;">
339
+ <option value=""> --- '.__('Select A List','mailchimp_i18n').' --- </option>';
340
  foreach ($lists as $list){
341
  if ($list['id'] == get_option('mc_list_id')){
342
  $sel = ' selected ';
343
  } else {
344
  $sel = '';
345
  }
346
+ echo '<option value="'.$list['id'].'" '.$sel.'>'.$list['name'].'</option>';
347
  }
348
  ?>
349
  </select></td><td>
350
 
351
  <input type="hidden" name="action" value="update" />
352
  <input type="hidden" name="page_options" value="mc_list_id" />
353
+ <input type="submit" name="Submit" value="<?php echo __('Update List', 'mailchimp_i18n');?>" class="button" />
354
  </td></tr></table>
355
  </form>
356
  <br/>
364
  <p class="submit">
365
  <input type="hidden" name="action" value="update" />
366
  <input type="hidden" name="page_options" value="mc_list_id" />
367
+ <input type="submit" name="reset_list" value="<?php echo __('Reset List Options and Select again', 'mailchimp_i18n');?>" class="button" />
368
  </p>
369
  </form>
370
+ <h3><?php echo __('Subscribe Form Widget Settings for this List', 'mailchimp_i18n');?>:</h3>
371
+ <h4><?php echo __('Selected MailChimp List', 'mailchimp_i18n');?>: <?php echo get_option('mc_list_name'); ?></h4>
372
  <?php
373
  }
374
  //Just get out if nothing else matters...
390
  <div style="width:600px;">
391
  <table class="widefat">
392
  <tr valign="top">
393
+ <th scope="row"><?php echo __('Monkey Rewards', 'mailchimp_i18n');?>:</th>
394
  <td><input name="mc_rewards" type="checkbox" <?php if (get_option('mc_rewards')=='on' || get_option('mc_rewards')=='' ) {echo 'checked';} ?> id="mc_rewards" class="code" />
395
+ <i><?php echo __('turning this on will place a "powered by MailChimp" link in your form that will earn you credits with us. It is optional and can be turned on or off at any time.');?></i>
396
  </td>
397
  </tr>
398
  <tr valign="top">
399
+ <th scope="row"><?php echo __('Header content', 'mailchimp_i18n');?>:</th>
400
  <td>
401
  <textarea name="mc_header_content" cols="50"><?php echo get_option('mc_header_content');?></textarea><br/>
402
+ <i><?php echo __('You can fill this with your own Text, HTML markup (including image links), or Nothing!', 'mailchimp_i18n');?></i>
403
  </td>
404
  </tr>
405
 
406
  <tr valign="top">
407
+ <th scope="row"><?php echo __('Submit Button text', 'mailchimp_i18n');?>:</th>
408
  <td>
409
  <input type="text" name="mc_submit_text" size="30" value="<?php echo get_option('mc_submit_text');?>"/><br/>
410
+ <i><?php echo __('You can fill this with your own Text, HTML markup (including image links), or Nothing!', 'mailchimp_i18n');?></i>
411
  </td>
412
  </tr>
413
 
414
  <tr valign="top">
415
+ <th scope="row"><?php echo __('Custom Styling', 'mailchimp_i18n');?>:</th>
416
  <td>
417
  <table class="widefat">
418
+ <tr><th><?php echo __('Turned On?', 'mailchimp_i18n');?></th><td><input type="checkbox" name="mc_custom_style" <?php if (get_option('mc_custom_style')=='on'){echo 'checked';}?> ></td></tr>
419
+ <tr><th><?php echo __('Border Width', 'mailchimp_i18n');?>:</th><td><input type="text" name="mc_form_border_width" size="3" maxlength="3" value="<?php echo get_option('mc_form_border_width');?>"> px<br/>
420
+ <i><?php echo __('Set to 0 for no border, do not enter <strong>px</strong>!', 'mailchimp_i18n');?></i>
421
  </td></tr>
422
+ <tr><th><?php echo __('Border Color', 'mailchimp_i18n');?>:</th><td>#<input type="text" name="mc_form_border_color" size="7" maxlength="6" value="<?php echo get_option('mc_form_border_color');?>"><br/>
423
+ <i><?php echo __('do not enter initial <strong>#</strong>', 'mailchimp_i18n');?></i>
424
  </td></tr>
425
  <tr><th>Text Color:</th><td>#<input type="text" name="mc_form_text_color" size="7" maxlength="6" value="<?php echo get_option('mc_form_text_color');?>"><br/>
426
+ <i><?php echo __('do not enter initial <strong>#</strong>', 'mailchimp_i18n');?></i>
427
  </td></tr>
428
  <tr><th>Background Color:</th><td>#<input type="text" name="mc_form_background" size="7" maxlength="6" value="<?php echo get_option('mc_form_background');?>"><br/>
429
+ <i><?php echo __('do not enter initial <strong>#</strong>', 'mailchimp_i18n');?></i>
430
  </td></tr>
431
  </table>
432
  </td>
435
  </div>
436
 
437
  <div style="width:400px;">
438
+ <h4><?php echo __('Merge Variables Included', 'mailchimp_i18n');?></h4>
439
  <?php
440
  if (sizeof($mv)==0){
441
+ echo "<i>".__('No Merge Variables found.', 'mailchimp_i18n')."</i>";
442
  } else {
443
  ?>
444
 
445
  <table class='widefat'>
446
  <tr valign="top">
447
+ <th><?php echo __('Name', 'mailchimp_i18n');?></th>
448
+ <th><?php echo __('Tag', 'mailchimp_i18n');?></th>
449
+ <th><?php echo __('Required?', 'mailchimp_i18n');?></th>
450
+ <th><?php echo __('Include?', 'mailchimp_i18n');?></th>
451
  </tr>
452
  <?php
453
  foreach($mv as $var){
467
  }
468
  echo '</table>';
469
  }
470
+ echo '<h4>'.__('Interest Groups', 'mailchimp_i18n').'</h4>';
471
  if (!$ig || $ig=='' || $ig=='N'){
472
+ echo "<i>".__('No Interest Groups Setup for this List', 'mailchimp_i18n')."</i>";
473
  } else {
474
  ?>
475
  <table class='widefat'>
476
  <tr valign="top">
477
+ <th width="75px"><?php echo __('Show?', 'mailchimp_i18n');?></th><th>
 
478
  <input name="mc_show_interest_groups" type="checkbox" <?php if (get_option('mc_show_interest_groups')=='on') { echo 'checked'; } ?> id="mc_show_interest_groups" class="code" />
479
  </th></tr>
480
  <tr valign="top">
481
+ <th><?php echo __('Name', 'mailchimp_i18n');?>:</th><th><?php echo $ig['name']; ?></th>
482
  </tr>
483
  <tr valign="top">
484
+ <th><?php echo __('Input Type', 'mailchimp_i18n');?>:</th><td><?php echo $ig['form_field']; ?></td>
485
  </tr>
486
  <tr valign="top">
487
+ <th><?php echo __('Options', 'mailchimp_i18n');?>:</th><td><ul>
488
  <?php
489
  foreach($ig['groups'] as $interest){
490
  echo '<li>'.$interest;
495
  ?>
496
  <p class="submit">
497
  <input type="hidden" name="action" value="update" />
498
+ <input type="submit" name="change_form_settings" value="<?php echo __('Update Subscribe Form Settings', 'mailchimp_i18n');?>" class="button" />
499
  </p>
500
  </form>
501
  </div>
509
  if (!function_exists('register_sidebar_widget')) {
510
  return;
511
  }
512
+ register_sidebar_widget(__('MailChimp Widget', 'mailchimp_i18n'), 'mc_display_widget');
513
 
514
  }
515
  function mc_display_widget(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
516
  $mv = get_option('mc_merge_vars');
517
  $ig = get_option('mc_interest_groups');
518
  if (!is_array($mv)){
566
  $failed = true;
567
  $errs[] = $api->errorMessage;
568
  } else {
569
+ $msg = "<br/><strong class='success_msg'>".__("Success, you've been signed up! Please look for our confirmation email!", 'mailchimp_i18n')."</strong><br/>";
570
  }
571
  }
572
  if (sizeof($errs)>0){
573
+ $msg = '<br/>'.__('Uhoh, we had problems!', 'mailchimp_i18n').'<ul>';
574
  foreach($errs as $error){
575
  $msg .= '<li class="error_msg">'.$error.'</li>';
576
  }
596
  echo '<br/>';
597
  }
598
  }
599
+ echo '<sup style="clear:both;">* = '.__('required field', 'mailchimp_i18n').'</sup>';
600
  if (get_option('mc_show_interest_groups')=='on' && $ig){
601
  echo '<br/><br/><strong>'.$ig['name'].'</strong><br/>';
602
  if ($ig['form_field']=='checkbox'){
622
  </form>
623
  <?php
624
  if ( get_option('mc_rewards')=='on') {
625
+ echo '<div align="center">'.__('powered by', 'mailchimp_i18n').'<a href="http://www.mailchimp.com/affiliates/?aid='.get_option('mc_user_id').'&afl=1">MailChimp</a>!</div>';
626
  }
627
  ?>
628
  </div>
po/mailchimp_i18n-en_US.mo ADDED
Binary file
po/mailchimp_i18n-en_US.po ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: MailChimp Wordpress Plugin\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2008-10-14 11:15-0400\n"
11
+ "PO-Revision-Date: 2008-10-14 11:18-0500\n"
12
+ "Last-Translator: MailChimp API <api@mailchimp.com>\n"
13
+ "Language-Team: MailChimp API <api@mailchimp.com>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=utf-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: English\n"
18
+ "X-Poedit-Country: UNITED STATES\n"
19
+
20
+ #: mailchimp.php:87
21
+ msgid "MailChimp Setup"
22
+ msgstr ""
23
+
24
+ #: mailchimp.php:105
25
+ msgid "While upgrading the plugin setup, we were unable to login to your account. You will need to login again and setup your list."
26
+ msgstr ""
27
+
28
+ #: mailchimp.php:111
29
+ msgid "MailChimp List Setup"
30
+ msgstr ""
31
+
32
+ #: mailchimp.php:121
33
+ msgid "Success! We were able to verify your username &amp; password! Let's continue, shall we?"
34
+ msgstr ""
35
+
36
+ #: mailchimp.php:133
37
+ msgid "Uh-oh, we were unable to login and verify your username &amp; password. Please check them and try again!"
38
+ msgstr ""
39
+
40
+ #: mailchimp.php:134
41
+ msgid "The server said:"
42
+ msgstr ""
43
+
44
+ #: mailchimp.php:175
45
+ msgid "Sign up for"
46
+ msgstr ""
47
+
48
+ #: mailchimp.php:176
49
+ msgid "Subscribe"
50
+ msgstr ""
51
+
52
+ #: mailchimp.php:195
53
+ #, php-format
54
+ msgid "Success! Loaded and saved the info for %d Merge Variables and %d Interest Groups from your list"
55
+ msgstr ""
56
+
57
+ #: mailchimp.php:198
58
+ msgid "Now you should either Turn On the MailChimp Widget or change your options below, then turn it on."
59
+ msgstr ""
60
+
61
+ #: mailchimp.php:217
62
+ msgid "Successfully Reset your List selection... Now you get to pick again!"
63
+ msgstr ""
64
+
65
+ #: mailchimp.php:223
66
+ msgid "Monkey Rewards turned On!"
67
+ msgstr ""
68
+
69
+ #: mailchimp.php:227
70
+ msgid "Monkey Rewards turned Off!"
71
+ msgstr ""
72
+
73
+ #: mailchimp.php:267
74
+ msgid "Successfully Updated your List Subscribe Form Settings!"
75
+ msgstr ""
76
+
77
+ #: mailchimp.php:278
78
+ msgid "Login Info"
79
+ msgstr ""
80
+
81
+ #: mailchimp.php:279
82
+ msgid "To start using the MailChimp plugin, we first need to login and get your API Key. Please enter your MailChimp username and password below."
83
+ msgstr ""
84
+
85
+ #: mailchimp.php:283
86
+ msgid "Username"
87
+ msgstr ""
88
+
89
+ #: mailchimp.php:287
90
+ msgid "Password"
91
+ msgstr ""
92
+
93
+ #: mailchimp.php:293
94
+ msgid "Save & Check"
95
+ msgstr ""
96
+
97
+ #: mailchimp.php:297
98
+ msgid "Notes"
99
+ msgstr ""
100
+
101
+ #: mailchimp.php:298
102
+ msgid "Changing your settings at MailChimp.com may cause this to stop working."
103
+ msgstr ""
104
+
105
+ #: mailchimp.php:299
106
+ msgid "If you change your login to a different account, the info you have setup below will be erased."
107
+ msgstr ""
108
+
109
+ #: mailchimp.php:300
110
+ msgid "If any of that happens, no biggie - just reconfigure your login and the items below..."
111
+ msgstr ""
112
+
113
+ #: mailchimp.php:306
114
+ msgid "Logged in as"
115
+ msgstr ""
116
+
117
+ #: mailchimp.php:310
118
+ msgid "Logout"
119
+ msgstr ""
120
+
121
+ #: mailchimp.php:323
122
+ msgid "Your Lists"
123
+ msgstr ""
124
+
125
+ #: mailchimp.php:324
126
+ msgid "Please select the List you wish to create a Signup Form for."
127
+ msgstr ""
128
+
129
+ #: mailchimp.php:332
130
+ #, php-format
131
+ msgid "Uh-oh, you don't have any lists defined! Please visit %s, login, and setup a list before using this tool!"
132
+ msgstr ""
133
+
134
+ #: mailchimp.php:337
135
+ msgid "Select A List"
136
+ msgstr ""
137
+
138
+ #: mailchimp.php:351
139
+ msgid "Update List"
140
+ msgstr ""
141
+
142
+ #: mailchimp.php:365
143
+ msgid "Reset List Options and Select again"
144
+ msgstr ""
145
+
146
+ #: mailchimp.php:368
147
+ msgid "Subscribe Form Widget Settings for this List"
148
+ msgstr ""
149
+
150
+ #: mailchimp.php:369
151
+ msgid "Selected MailChimp List"
152
+ msgstr ""
153
+
154
+ #: mailchimp.php:391
155
+ msgid "Monkey Rewards"
156
+ msgstr ""
157
+
158
+ #: mailchimp.php:393
159
+ msgid "turning this on will place a \"powered by MailChimp\" link in your form that will earn you credits with us. It is optional and can be turned on or off at any time."
160
+ msgstr ""
161
+
162
+ #: mailchimp.php:397
163
+ msgid "Header content"
164
+ msgstr ""
165
+
166
+ #: mailchimp.php:400
167
+ #: mailchimp.php:408
168
+ msgid "You can fill this with your own Text, HTML markup (including image links), or Nothing!"
169
+ msgstr ""
170
+
171
+ #: mailchimp.php:405
172
+ msgid "Submit Button text"
173
+ msgstr ""
174
+
175
+ #: mailchimp.php:413
176
+ msgid "Custom Styling"
177
+ msgstr ""
178
+
179
+ #: mailchimp.php:416
180
+ msgid "Turned On?"
181
+ msgstr ""
182
+
183
+ #: mailchimp.php:417
184
+ msgid "Border Width"
185
+ msgstr ""
186
+
187
+ #: mailchimp.php:418
188
+ msgid "Set to 0 for no border, do not enter <strong>px</strong>!"
189
+ msgstr ""
190
+
191
+ #: mailchimp.php:420
192
+ msgid "Border Color"
193
+ msgstr ""
194
+
195
+ #: mailchimp.php:421
196
+ #: mailchimp.php:424
197
+ #: mailchimp.php:427
198
+ msgid "do not enter initial <strong>#</strong>"
199
+ msgstr ""
200
+
201
+ #: mailchimp.php:436
202
+ msgid "Merge Variables Included"
203
+ msgstr ""
204
+
205
+ #: mailchimp.php:439
206
+ msgid "No Merge Variables found."
207
+ msgstr ""
208
+
209
+ #: mailchimp.php:445
210
+ #: mailchimp.php:479
211
+ msgid "Name"
212
+ msgstr ""
213
+
214
+ #: mailchimp.php:446
215
+ msgid "Tag"
216
+ msgstr ""
217
+
218
+ #: mailchimp.php:447
219
+ msgid "Required?"
220
+ msgstr ""
221
+
222
+ #: mailchimp.php:448
223
+ msgid "Include?"
224
+ msgstr ""
225
+
226
+ #: mailchimp.php:468
227
+ msgid "Interest Groups"
228
+ msgstr ""
229
+
230
+ #: mailchimp.php:470
231
+ msgid "No Interest Groups Setup for this List"
232
+ msgstr ""
233
+
234
+ #: mailchimp.php:475
235
+ msgid "Show?"
236
+ msgstr ""
237
+
238
+ #: mailchimp.php:482
239
+ msgid "Input Type"
240
+ msgstr ""
241
+
242
+ #: mailchimp.php:485
243
+ msgid "Options"
244
+ msgstr ""
245
+
246
+ #: mailchimp.php:496
247
+ msgid "Update Subscribe Form Settings"
248
+ msgstr ""
249
+
250
+ #: mailchimp.php:510
251
+ msgid "MailChimp Widget"
252
+ msgstr ""
253
+
254
+ #: mailchimp.php:567
255
+ msgid "Success, you've been signed up! Please look for our confirmation email!"
256
+ msgstr ""
257
+
258
+ #: mailchimp.php:571
259
+ msgid "Uhoh, we had problems!"
260
+ msgstr ""
261
+
262
+ #: mailchimp.php:597
263
+ msgid "required field"
264
+ msgstr ""
265
+
266
+ #: mailchimp.php:623
267
+ msgid "powered by"
268
+ msgstr ""
269
+
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mc_jesse
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.6
6
- Stable tag: 1.0
7
  Author URI: http://www.mailchimp.com/api/
8
  Plugin URI: http://www.mailchimp.com/plugins/wordpress.phtml
9
 
@@ -60,6 +60,18 @@ through the Wordpress GUI, all you need to do is add:
60
  Where ever you want it to show up.
61
 
62
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  == Frequently Asked Questions ==
64
 
65
  = What in the world is MailChimp? =
@@ -74,6 +86,14 @@ To learn more, just check out our site: [MailChimp](http://www.mailchimp.com/lea
74
  *Absolutely not!* We welcome you to come signup for a [FREE Trial Account](http://www.mailchimp.com/tryit.phtml) and
75
  see if you find it useful.
76
 
 
 
 
 
 
 
 
 
77
 
78
  == Screenshots ==
79
 
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.6
6
+ Stable tag: 1.0.1
7
  Author URI: http://www.mailchimp.com/api/
8
  Plugin URI: http://www.mailchimp.com/plugins/wordpress.phtml
9
 
60
  Where ever you want it to show up.
61
 
62
 
63
+ == Internationalization (i18n) ==
64
+ Currently we have the plugin translated to:
65
+ * en_US - English in the U.S.
66
+ * fr_FR - French in France
67
+
68
+ If your language is not listed above, feel free to create a translation. Here are the basic steps:
69
+ 1. Copy "mailchimp_i18n-en_US.po" to "mailchimp_i18n-LANG_COUNTRY.po" - fill in LANG and COUNTRY with whatever you use for WPLANG in wp-config.php
70
+ 2. Grab a transalation editor. [POedit](http://www.poedit.net/) works for us
71
+ 3. Translate each line - if you need some context, just open up mailchimp.php and search for the line number or text
72
+ 4. Send it to us - api@mailchimp.com - and we'll test it and include it with our next release
73
+
74
+
75
  == Frequently Asked Questions ==
76
 
77
  = What in the world is MailChimp? =
86
  *Absolutely not!* We welcome you to come signup for a [FREE Trial Account](http://www.mailchimp.com/tryit.phtml) and
87
  see if you find it useful.
88
 
89
+ = I want this in my language, do you have a translation? =
90
+ Maybe! Look in the /po/ directory in our plugin package and see if your language is in there. If it is, great! If it is not, feel from to create one. Here are the basic steps:
91
+ 1. Copy "mailchimp_i18n-en_US.po" to "mailchimp_i18n-LANG_COUNTRY.po" - fill in LANG and COUNTRY with whatever you use for WPLANG in wp-config.php
92
+ 2. Grab a transalation editor. [POedit](http://www.poedit.net/) works for us
93
+ 3. Translate each line - if you need some context, just open up mailchimp.php and search for the line number or text
94
+ 4. Send it to us - api@mailchimp.com - and we'll test it and include it with our next release
95
+
96
+
97
 
98
  == Screenshots ==
99