Clicky by Yoast - Version 1.0.3

Version Description

  • Made all strings localizable (is that even a word).
  • Added .pot file to allow localization.
  • Added a Dutch translation.
Download this release

Release Info

Developer joostdevalk
Plugin Icon 128x128 Clicky by Yoast
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

Files changed (6) hide show
  1. clicky.php +50 -38
  2. clicky.pot +250 -0
  3. nl_NL.mo +0 -0
  4. nl_NL.po +227 -0
  5. readme.txt +6 -1
  6. yst_plugin_tools.php +11 -11
clicky.php CHANGED
@@ -1,13 +1,15 @@
1
  <?php
2
  /*
3
  Plugin Name: Clicky for WordPress
4
- Version: 1.0.2
5
- Plugin URI: http://getclicky.com/goodies/
6
  Description: Integrates Clicky on your blog!
7
  Author: Joost de Valk
8
  Author URI: http://yoast.com/
9
  */
10
 
 
 
11
  if ( ! class_exists( 'Clicky_Admin' ) ) {
12
 
13
  require_once('yst_plugin_tools.php');
@@ -31,7 +33,11 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
31
  $options = get_option('clicky');
32
  if ( (!$options['site_id'] || empty($options['site_id']) || !$options['site_key'] || empty($options['site_key']) || !$options['admin_site_key'] || empty($options['admin_site_key'])) && !$_POST ) {
33
  function clicky_warning() {
34
- echo "<div id='clickywarning' class='updated fade'><p><strong>Clicky is almost ready</strong> You must <a href='options-general.php?page=clicky'>enter your Clicky Site ID, Site Key and Admin Site Key</a> for it to work.</p></div>";
 
 
 
 
35
  echo "<script type=\"text/javascript\">setTimeout(function(){jQuery('#clickywarning').hide('slow');}, 10000);</script>";
36
  }
37
  add_action('admin_notices', 'clicky_warning');
@@ -51,24 +57,30 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
51
  if ($options['allow_clickyme_integration']) {
52
  if ($post->post_status == 'publish') {
53
  $shorturl = clickyme_shorturl($post->ID);
54
- echo '<p><strong>Twitter</strong></p>';
55
- echo '<p>The Clicky.me short URL for this '.$post->post_type.' is <a href="'.$shorturl.'">'.$shorturl.'</a>. <a target="_blank" href="http://twitter.com/home?status='.urlencode($post->post_title.' - '.$shorturl).'">Tweet this post</a>.</p>';
56
- echo '<br/>';
 
 
 
57
  } else {
58
  if (!$options['auto_tweet']) {
59
- echo '<p><strong>Twitter</strong></p>';
60
- echo '<p>This '.$post->post_type.' is not published yet, a short URL will be created for it once the post is published. Do you want it to be tweeted automatically too?<br/>
61
- <br/>
62
- <input type="checkbox" name="clicky_tweetpost" '.checked($clicky_tweetpost,true,false).'/> Tweet '.$post->post_type.' on publish</p>';
 
63
  echo '<br/>';
64
  }
65
  }
66
  }
67
- echo '<p><strong>Goal Tracking</strong></p>';
68
- echo '<p>Clicky can track Goals for you too, <a href="http://getclicky.com/stats/goals-setup">read the documentation here</a>. To be able to track a goal on this '.$post->post_type.', you need to specify the goal ID here. Optionally, you can also provide the goal revenue.</p>';
 
 
69
  echo '<table>';
70
- echo '<tr><th style="text-align:left;"><label for="clicky_goal_id">Goal ID:</label></th><td><input type="text" name="clicky_goal_id" id="clicky_goal_id" value="'.$clicky_goal['id'].'"/></td></tr>';
71
- echo '<tr><th style="text-align:left;"><label for="clicky_goal_value">Goal Revenue: &nbsp;</label></th><td><input type="text" name="clicky_goal_value" id="clicky_goal_value" value="'.$clicky_goal['value'].'"/></td></tr>';
72
  echo '</table>';
73
  }
74
 
@@ -108,7 +120,7 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
108
  }
109
 
110
  function register_dashboard_page() {
111
- add_dashboard_page($this->shortname.' Stats', $this->shortname.' Stats', $this->accesslvl, $this->hook, array(&$this,'dashboard_page'));
112
  }
113
 
114
  function dashboard_page() {
@@ -123,7 +135,7 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
123
  $options = get_option('clicky');
124
 
125
  if ( isset($_POST['submit']) ) {
126
- if (!current_user_can('manage_options')) die(__('You cannot edit the Clicky settings.'));
127
  check_admin_referer('clicky-config');
128
 
129
  foreach (array('site_id', 'site_key', 'admin_site_key', 'twitter_username', 'twitter_password', 'twitter_prefix') as $option_name) {
@@ -142,7 +154,7 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
142
 
143
  if (get_option('clicky') != $options) {
144
  update_option('clicky', $options);
145
- $message = "<p>Clicky settings have been updated.</p>";
146
  }
147
  }
148
 
@@ -155,7 +167,7 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
155
  ?>
156
  <div class="wrap">
157
  <a href="http://getclicky.com/"><div id="clicky-icon" style="background: url(<?php echo plugins_url('',__FILE__); ?>/clicky-32x32.png) no-repeat;" class="icon32"><br /></div></a>
158
- <h2>Clicky Configuration</h2>
159
  <div class="postbox-container" style="width:70%;">
160
  <div class="metabox-holder">
161
  <div class="meta-box-sortables">
@@ -163,94 +175,94 @@ if ( ! class_exists( 'Clicky_Admin' ) ) {
163
  <?php
164
  wp_nonce_field('clicky-config');
165
 
166
- $content = '<p style="text-align:left; margin: 0 10px; font-size: 13px; line-height: 150%;">Go to your <a href="http://getclicky.com/user/">user homepage on Clicky</a> and click "Preferences" under the name of the domain, you will find the Site ID, Site Key and Admin Site Key under Site information.</p>';
167
 
168
  $rows = array ();
169
  $rows[] = array(
170
  'id' => 'site_id',
171
- 'label' => 'Site ID',
172
  'desc' => '',
173
  'content' => '<input class="text" type="text" value="'.$options['site_id'].'" name="site_id" id="site_id"/>',
174
  );
175
 
176
  $rows[] = array(
177
  'id' => 'site_key',
178
- 'label' => 'Site Key',
179
  'desc' => '',
180
  'content' => '<input class="text" type="text" value="'.$options['site_key'].'" name="site_key" id="site_key"/>',
181
  );
182
 
183
  $rows[] = array(
184
  'id' => 'admin_site_key',
185
- 'label' => 'Admin Site Key',
186
  'desc' => '',
187
  'content' => '<input class="text" type="text" value="'.$options['admin_site_key'].'" name="admin_site_key" id="admin_site_key"/>',
188
  );
189
 
190
  $content .= ' '.$this->form_table($rows);
191
- $this->postbox('clicky_settings','Clicky Settings', $content);
192
 
193
- $content = '<p style="text-align:left; margin: 0 10px; font-size: 13px; line-height: 150%;">This plugin allows you to automatically create short URL\'s through the <a href="http://clicky.me">Clicky.me service</a>, and tweet your post immediately when you publish it. To do that, this plugin will need your Twitter username and pass.</p>';
194
 
195
  $rows = array();
196
  $rows[] = array(
197
  'id' => 'ignore_admin',
198
- 'label' => 'Ignore Admin users',
199
- 'desc' => 'If you are using a caching plugin, such as WP-Supercache, please ensure that you have it configured to NOT use the cache for logged in users. Otherwise, admin users <em>will still</em> be tracked.',
200
  'content' => '<input type="checkbox" '.checked($options['ignore_admin'],true,false).' name="ignore_admin" id="ignore_admin"/>',
201
  );
202
 
203
  $rows[] = array(
204
  'id' => 'track_names',
205
- 'label' => 'Track names of commenters',
206
  'desc' => '',
207
  'content' => '<input type="checkbox" '.checked($options['track_names'],true,false).' name="track_names" id="track_names"/>'
208
  );
209
 
210
- $this->postbox('clicky_settings','Advanced Settings', $this->form_table($rows));
211
 
212
  $rows = array();
213
  $rows[] = array(
214
  'id' => 'allow_clickyme_integration',
215
- 'label' => 'Allow Clicky.me integration',
216
  'desc' => '',
217
  'content' => '<input type="checkbox" '.checked($options['allow_clickyme_integration'],true,false).' name="allow_clickyme_integration" id="allow_clickyme_integration"/>',
218
  );
219
 
220
  $rows[] = array(
221
  'id' => 'auto_tweet',
222
- 'label' => 'Auto Tweet',
223
- 'desc' => 'No need to check the box on each post, by checking this box, each post get\'s tweeted automatically.',
224
  'content' => '<input type="checkbox" '.checked($options['auto_tweet'],true,false).' name="auto_tweet" id="auto_tweet"/>',
225
  );
226
 
227
  $rows[] = array(
228
  'id' => 'twitter_username',
229
- 'label' => 'Twitter username',
230
  'desc' => '',
231
  'content' => '<input type="text" value="'.$options['twitter_username'].'" name="twitter_username" id="twitter_username"/>'
232
  );
233
 
234
  $rows[] = array(
235
  'id' => 'twitter_password',
236
- 'label' => 'Twitter password',
237
  'desc' => '',
238
  'content' => '<input type="password" value="'.$options['twitter_password'].'" name="twitter_password" id="twitter_password"/>'
239
  );
240
 
241
  $rows[] = array(
242
  'id' => 'twitter_prefix',
243
- 'label' => 'Prefix for Tweets',
244
- 'desc' => 'This text will be put in front of Tweets that are published when a blog post is published',
245
  'content' => '<input type="text" class="text" value="'.$options['twitter_prefix'].'" name="twitter_prefix" id="twitter_prefix"/>'
246
  );
247
 
248
- $this->postbox('clickyme_integration','Clicky.me &amp; Twitter Integration', $content .' '. $this->form_table($rows));
249
 
250
 
251
  ?>
252
  <div class="submit">
253
- <input type="submit" class="button-primary" name="submit" value="Update Clicky Settings &raquo;" />
254
  </div>
255
  </form>
256
  </div>
@@ -358,7 +370,7 @@ function clicky_script() {
358
 
359
  // Bail early if current user is admin and ignore admin is true
360
  if( $options['ignore_admin'] && current_user_can("manage_options") ) {
361
- echo "\n<!-- Clicky tracking not shown because you're an administrator and you've configured Clicky to ignore administrators. -->\n";
362
  return;
363
  }
364
 
1
  <?php
2
  /*
3
  Plugin Name: Clicky for WordPress
4
+ Version: 1.0.3
5
+ Plugin URI: http://getclicky.com/goodies/#wordpress
6
  Description: Integrates Clicky on your blog!
7
  Author: Joost de Valk
8
  Author URI: http://yoast.com/
9
  */
10
 
11
+ load_plugin_textdomain('clicky');
12
+
13
  if ( ! class_exists( 'Clicky_Admin' ) ) {
14
 
15
  require_once('yst_plugin_tools.php');
33
  $options = get_option('clicky');
34
  if ( (!$options['site_id'] || empty($options['site_id']) || !$options['site_key'] || empty($options['site_key']) || !$options['admin_site_key'] || empty($options['admin_site_key'])) && !$_POST ) {
35
  function clicky_warning() {
36
+ echo "<div id='clickywarning' class='updated fade'><p><strong>";
37
+ _e('Clicky is almost ready', 'clicky');
38
+ echo "</strong>";
39
+ printf (__('You must %1$s enter your Clicky Site ID, Site Key and Admin Site Key%2$s for it to work.', 'clicky'), "<a href='options-general.php?page=clicky'>", "</a>");
40
+ echo "</p></div>";
41
  echo "<script type=\"text/javascript\">setTimeout(function(){jQuery('#clickywarning').hide('slow');}, 10000);</script>";
42
  }
43
  add_action('admin_notices', 'clicky_warning');
57
  if ($options['allow_clickyme_integration']) {
58
  if ($post->post_status == 'publish') {
59
  $shorturl = clickyme_shorturl($post->ID);
60
+ echo '<p><strong>'.__('Twitter', 'clicky').'</strong></p>';
61
+ echo '<p>';
62
+ _e('The Clicky.me short URL for this post is', 'clicky');
63
+ echo '<a href="'.$shorturl.'">'.$shorturl.'</a>. <a target="_blank" href="http://twitter.com/home?status='.urlencode($post->post_title.' - '.$shorturl).'">';
64
+ _e('Tweet this post', 'clicky');
65
+ echo '</a></p><br/>';
66
  } else {
67
  if (!$options['auto_tweet']) {
68
+ echo '<p><strong>'.__('Twitter', 'clicky').'</strong></p>';
69
+ echo '<p>';
70
+ _e('This post is not published yet, a short URL will be created for it once the post is published. Do you want it to be tweeted automatically too?', 'clicky');
71
+ echo '<br/><br/>';
72
+ echo '<input type="checkbox" name="clicky_tweetpost" '.checked($clicky_tweetpost,true,false).'/> '.__('Tweet post on publish', 'clicky').'</p>';
73
  echo '<br/>';
74
  }
75
  }
76
  }
77
+ echo '<p><strong>'.__('Goal Tracking', 'clicky').'</strong></p>';
78
+ echo '<p>';
79
+ printf(__('Clicky can track Goals for you too, %1$sread the documentation here%2$s. To be able to track a goal on this post, you need to specify the goal ID here. Optionally, you can also provide the goal revenue.'),'<a href="http://getclicky.com/stats/goals-setup">','</a>');
80
+ echo '</p>';
81
  echo '<table>';
82
+ echo '<tr><th style="text-align:left;"><label for="clicky_goal_id">'.__('Goal ID', 'clicky').':</label></th><td><input type="text" name="clicky_goal_id" id="clicky_goal_id" value="'.$clicky_goal['id'].'"/></td></tr>';
83
+ echo '<tr><th style="text-align:left;"><label for="clicky_goal_value">'.__('Goal Revenue', 'clicky').': &nbsp;</label></th><td><input type="text" name="clicky_goal_value" id="clicky_goal_value" value="'.$clicky_goal['value'].'"/></td></tr>';
84
  echo '</table>';
85
  }
86
 
120
  }
121
 
122
  function register_dashboard_page() {
123
+ add_dashboard_page($this->shortname.' '.__('Stats', 'clicky'), $this->shortname.' '.__('Stats', 'clicky'), $this->accesslvl, $this->hook, array(&$this,'dashboard_page'));
124
  }
125
 
126
  function dashboard_page() {
135
  $options = get_option('clicky');
136
 
137
  if ( isset($_POST['submit']) ) {
138
+ if (!current_user_can('manage_options')) die(__('You cannot edit the Clicky settings.', 'clicky'));
139
  check_admin_referer('clicky-config');
140
 
141
  foreach (array('site_id', 'site_key', 'admin_site_key', 'twitter_username', 'twitter_password', 'twitter_prefix') as $option_name) {
154
 
155
  if (get_option('clicky') != $options) {
156
  update_option('clicky', $options);
157
+ $message = "<p>".__('Clicky settings have been updated.', 'clicky')."</p>";
158
  }
159
  }
160
 
167
  ?>
168
  <div class="wrap">
169
  <a href="http://getclicky.com/"><div id="clicky-icon" style="background: url(<?php echo plugins_url('',__FILE__); ?>/clicky-32x32.png) no-repeat;" class="icon32"><br /></div></a>
170
+ <h2>Clicky <?php _e("Configuration",'clicky'); ?></h2>
171
  <div class="postbox-container" style="width:70%;">
172
  <div class="metabox-holder">
173
  <div class="meta-box-sortables">
175
  <?php
176
  wp_nonce_field('clicky-config');
177
 
178
+ $content = '<p style="text-align:left; margin: 0 10px; font-size: 13px; line-height: 150%;">'.sprintf(__("Go to your %1$suser homepage on Clicky%2$s and click 'Preferences' under the name of the domain, you will find the Site ID, Site Key and Admin Site Key under Site information."),'<a href="http://getclicky.com/user/">','</a>').'</p>';
179
 
180
  $rows = array ();
181
  $rows[] = array(
182
  'id' => 'site_id',
183
+ 'label' => __('Site ID', 'clicky'),
184
  'desc' => '',
185
  'content' => '<input class="text" type="text" value="'.$options['site_id'].'" name="site_id" id="site_id"/>',
186
  );
187
 
188
  $rows[] = array(
189
  'id' => 'site_key',
190
+ 'label' => __('Site Key', 'clicky'),
191
  'desc' => '',
192
  'content' => '<input class="text" type="text" value="'.$options['site_key'].'" name="site_key" id="site_key"/>',
193
  );
194
 
195
  $rows[] = array(
196
  'id' => 'admin_site_key',
197
+ 'label' => __('Admin Site Key', 'clicky'),
198
  'desc' => '',
199
  'content' => '<input class="text" type="text" value="'.$options['admin_site_key'].'" name="admin_site_key" id="admin_site_key"/>',
200
  );
201
 
202
  $content .= ' '.$this->form_table($rows);
203
+ $this->postbox('clicky_settings',__('Clicky Settings', 'clicky'), $content);
204
 
205
+ $content = '<p style="text-align:left; margin: 0 10px; font-size: 13px; line-height: 150%;">'.sprintf(__('This plugin allows you to automatically create short URLs through the %1$sClicky.me service%2$s'),'<a href="http://clicky.me">','</a>,').' '.__('and tweet your post immediately when you publish it. To do that, this plugin will need your Twitter username and pass.', 'clicky').'</p>';
206
 
207
  $rows = array();
208
  $rows[] = array(
209
  'id' => 'ignore_admin',
210
+ 'label' => __('Ignore Admin users', 'clicky'),
211
+ 'desc' => __('If you are using a caching plugin, such as WP-Supercache, please ensure that you have it configured to NOT use the cache for logged in users. Otherwise, admin users <em>will still</em> be tracked.', 'clicky'),
212
  'content' => '<input type="checkbox" '.checked($options['ignore_admin'],true,false).' name="ignore_admin" id="ignore_admin"/>',
213
  );
214
 
215
  $rows[] = array(
216
  'id' => 'track_names',
217
+ 'label' => __('Track names of commenters', 'clicky'),
218
  'desc' => '',
219
  'content' => '<input type="checkbox" '.checked($options['track_names'],true,false).' name="track_names" id="track_names"/>'
220
  );
221
 
222
+ $this->postbox('clicky_settings',__('Advanced Settings', 'clicky'), $this->form_table($rows));
223
 
224
  $rows = array();
225
  $rows[] = array(
226
  'id' => 'allow_clickyme_integration',
227
+ 'label' => __('Allow Clicky.me integration', 'clicky'),
228
  'desc' => '',
229
  'content' => '<input type="checkbox" '.checked($options['allow_clickyme_integration'],true,false).' name="allow_clickyme_integration" id="allow_clickyme_integration"/>',
230
  );
231
 
232
  $rows[] = array(
233
  'id' => 'auto_tweet',
234
+ 'label' => __('Auto Tweet', 'clicky'),
235
+ 'desc' => __('No need to check the box on each post, by checking this box, each post get\'s tweeted automatically.', 'clicky'),
236
  'content' => '<input type="checkbox" '.checked($options['auto_tweet'],true,false).' name="auto_tweet" id="auto_tweet"/>',
237
  );
238
 
239
  $rows[] = array(
240
  'id' => 'twitter_username',
241
+ 'label' => __('Twitter username', 'clicky'),
242
  'desc' => '',
243
  'content' => '<input type="text" value="'.$options['twitter_username'].'" name="twitter_username" id="twitter_username"/>'
244
  );
245
 
246
  $rows[] = array(
247
  'id' => 'twitter_password',
248
+ 'label' => __('Twitter password', 'clicky'),
249
  'desc' => '',
250
  'content' => '<input type="password" value="'.$options['twitter_password'].'" name="twitter_password" id="twitter_password"/>'
251
  );
252
 
253
  $rows[] = array(
254
  'id' => 'twitter_prefix',
255
+ 'label' => __('Prefix for Tweets', 'clicky'),
256
+ 'desc' => __('This text will be put in front of Tweets that are published when a blog post is published', 'clicky'),
257
  'content' => '<input type="text" class="text" value="'.$options['twitter_prefix'].'" name="twitter_prefix" id="twitter_prefix"/>'
258
  );
259
 
260
+ $this->postbox('clickyme_integration',__('Clicky.me &amp; Twitter Integration', 'clicky'), $content .' '. $this->form_table($rows));
261
 
262
 
263
  ?>
264
  <div class="submit">
265
+ <input type="submit" class="button-primary" name="submit" value="<?php _e("Update Clicky Settings", 'clicky'); ?> &raquo;" />
266
  </div>
267
  </form>
268
  </div>
370
 
371
  // Bail early if current user is admin and ignore admin is true
372
  if( $options['ignore_admin'] && current_user_can("manage_options") ) {
373
+ echo "\n<!-- ".__("Clicky tracking not shown because you're an administrator and you've configured Clicky to ignore administrators.", 'clicky')." -->\n";
374
  return;
375
  }
376
 
clicky.pot ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Joost de Valk
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/clicky\n"
11
+ "POT-Creation-Date: 2009-11-03 10:13+0000\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=CHARSET\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: clicky.php:37
20
+ msgid "Clicky is almost ready"
21
+ msgstr ""
22
+
23
+ #: clicky.php:39
24
+ #, php-format
25
+ msgid ""
26
+ "You must %1$s enter your Clicky Site ID, Site Key and Admin Site Key%2$s for "
27
+ "it to work."
28
+ msgstr ""
29
+
30
+ #: clicky.php:60 clicky.php:68
31
+ msgid "Twitter"
32
+ msgstr ""
33
+
34
+ #: clicky.php:62
35
+ msgid "The Clicky.me short URL for this post is"
36
+ msgstr ""
37
+
38
+ #: clicky.php:64
39
+ msgid "Tweet this post"
40
+ msgstr ""
41
+
42
+ #: clicky.php:70
43
+ msgid ""
44
+ "This post is not published yet, a short URL will be created for it once the "
45
+ "post is published. Do you want it to be tweeted automatically too?"
46
+ msgstr ""
47
+
48
+ #: clicky.php:72
49
+ msgid "Tweet post on publish"
50
+ msgstr ""
51
+
52
+ #: clicky.php:77
53
+ msgid "Goal Tracking"
54
+ msgstr ""
55
+
56
+ #: clicky.php:79
57
+ #, php-format
58
+ msgid ""
59
+ "Clicky can track Goals for you too, %1$sread the documentation here%2$s. To "
60
+ "be able to track a goal on this post, you need to specify the goal ID here. "
61
+ "Optionally, you can also provide the goal revenue."
62
+ msgstr ""
63
+
64
+ #: clicky.php:82
65
+ msgid "Goal ID"
66
+ msgstr ""
67
+
68
+ #: clicky.php:83
69
+ msgid "Goal Revenue"
70
+ msgstr ""
71
+
72
+ #: clicky.php:123
73
+ msgid "Stats"
74
+ msgstr ""
75
+
76
+ #: clicky.php:138
77
+ msgid "You cannot edit the Clicky settings."
78
+ msgstr ""
79
+
80
+ #: clicky.php:157
81
+ msgid "Clicky settings have been updated."
82
+ msgstr ""
83
+
84
+ #: clicky.php:170
85
+ msgid "Configuration"
86
+ msgstr ""
87
+
88
+ #: clicky.php:183
89
+ msgid "Site ID"
90
+ msgstr ""
91
+
92
+ #: clicky.php:190
93
+ msgid "Site Key"
94
+ msgstr ""
95
+
96
+ #: clicky.php:197
97
+ msgid "Admin Site Key"
98
+ msgstr ""
99
+
100
+ #: clicky.php:203
101
+ msgid "Clicky Settings"
102
+ msgstr ""
103
+
104
+ #: clicky.php:205
105
+ #, php-format
106
+ msgid ""
107
+ "This plugin allows you to automatically create short URLs through the %1"
108
+ "$sClicky.me service%2$s"
109
+ msgstr ""
110
+
111
+ #: clicky.php:205
112
+ msgid ""
113
+ "and tweet your post immediately when you publish it. To do that, this plugin "
114
+ "will need your Twitter username and pass."
115
+ msgstr ""
116
+
117
+ #: clicky.php:210
118
+ msgid "Ignore Admin users"
119
+ msgstr ""
120
+
121
+ #: clicky.php:211
122
+ msgid ""
123
+ "If you are using a caching plugin, such as WP-Supercache, please ensure that "
124
+ "you have it configured to NOT use the cache for logged in users. Otherwise, "
125
+ "admin users <em>will still</em> be tracked."
126
+ msgstr ""
127
+
128
+ #: clicky.php:217
129
+ msgid "Track names of commenters"
130
+ msgstr ""
131
+
132
+ #: clicky.php:222
133
+ msgid "Advanced Settings"
134
+ msgstr ""
135
+
136
+ #: clicky.php:227
137
+ msgid "Allow Clicky.me integration"
138
+ msgstr ""
139
+
140
+ #: clicky.php:234
141
+ msgid "Auto Tweet"
142
+ msgstr ""
143
+
144
+ #: clicky.php:235
145
+ msgid ""
146
+ "No need to check the box on each post, by checking this box, each post get's "
147
+ "tweeted automatically."
148
+ msgstr ""
149
+
150
+ #: clicky.php:241
151
+ msgid "Twitter username"
152
+ msgstr ""
153
+
154
+ #: clicky.php:248
155
+ msgid "Twitter password"
156
+ msgstr ""
157
+
158
+ #: clicky.php:255
159
+ msgid "Prefix for Tweets"
160
+ msgstr ""
161
+
162
+ #: clicky.php:256
163
+ msgid ""
164
+ "This text will be put in front of Tweets that are published when a blog post "
165
+ "is published"
166
+ msgstr ""
167
+
168
+ #: clicky.php:260
169
+ msgid "Clicky.me &amp; Twitter Integration"
170
+ msgstr ""
171
+
172
+ #: clicky.php:265
173
+ msgid "Update Clicky Settings"
174
+ msgstr ""
175
+
176
+ #: clicky.php:373
177
+ msgid ""
178
+ "Clicky tracking not shown because you're an administrator and you've "
179
+ "configured Clicky to ignore administrators."
180
+ msgstr ""
181
+
182
+ #: yst_plugin_tools.php:64
183
+ msgid "Settings"
184
+ msgstr ""
185
+
186
+ #: yst_plugin_tools.php:138
187
+ msgid "Why not do any or all of the following:"
188
+ msgstr ""
189
+
190
+ #: yst_plugin_tools.php:140
191
+ msgid "Link to it so other folks can find out about it."
192
+ msgstr ""
193
+
194
+ #: yst_plugin_tools.php:141
195
+ msgid "Give it a good rating on WordPress.org."
196
+ msgstr ""
197
+
198
+ #: yst_plugin_tools.php:142
199
+ msgid "Donate a token of your appreciation."
200
+ msgstr ""
201
+
202
+ #: yst_plugin_tools.php:144
203
+ msgid "Like this plugin?"
204
+ msgstr ""
205
+
206
+ #: yst_plugin_tools.php:151
207
+ msgid ""
208
+ "If you have any problems with this plugin or good ideas for improvements or "
209
+ "new features, please talk about them in the"
210
+ msgstr ""
211
+
212
+ #: yst_plugin_tools.php:151
213
+ msgid "Support forums"
214
+ msgstr ""
215
+
216
+ #: yst_plugin_tools.php:152
217
+ msgid "Need support?"
218
+ msgstr ""
219
+
220
+ #: yst_plugin_tools.php:168
221
+ msgid "Subscribe"
222
+ msgstr ""
223
+
224
+ #: yst_plugin_tools.php:169 yst_plugin_tools.php:171
225
+ msgid "Latest news from Clicky"
226
+ msgstr ""
227
+
228
+ #: yst_plugin_tools.php:171
229
+ msgid "Nothing to say..."
230
+ msgstr ""
231
+
232
+ #. Plugin Name of an extension
233
+ msgid "Clicky for WordPress"
234
+ msgstr ""
235
+
236
+ #. Plugin URI of an extension
237
+ msgid "http://getclicky.com/goodies/#wordpress"
238
+ msgstr ""
239
+
240
+ #. Description of an extension
241
+ msgid "Integrates Clicky on your blog!"
242
+ msgstr ""
243
+
244
+ #. Author of an extension
245
+ msgid "Joost de Valk"
246
+ msgstr ""
247
+
248
+ #. Author URI of an extension
249
+ msgid "http://yoast.com/"
250
+ msgstr ""
nl_NL.mo ADDED
Binary file
nl_NL.po ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Clicky WordPress Plugin 1.0.3\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/clicky\n"
5
+ "POT-Creation-Date: 2009-11-03 10:13+0000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Joost de Valk <joost@yoast.com>\n"
8
+ "Language-Team: Joost de Valk <joost@yoast.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Dutch\n"
13
+ "X-Poedit-Country: NETHERLANDS\n"
14
+
15
+ #: clicky.php:37
16
+ msgid "Clicky is almost ready"
17
+ msgstr "Clicky is bijna klaar"
18
+
19
+ #: clicky.php:39
20
+ #, php-format
21
+ msgid "You must %1$s enter your Clicky Site ID, Site Key and Admin Site Key%2$s for it to work."
22
+ msgstr "Je moet %1$s je Clicky Site ID, Site Key en Admin Site Key invullen%2$s voor het werkt."
23
+
24
+ #: clicky.php:60
25
+ #: clicky.php:68
26
+ msgid "Twitter"
27
+ msgstr "Twitter"
28
+
29
+ #: clicky.php:62
30
+ msgid "The Clicky.me short URL for this post is"
31
+ msgstr "De Clicky.me short URL voor deze post is"
32
+
33
+ #: clicky.php:64
34
+ msgid "Tweet this post"
35
+ msgstr "Tweet deze post"
36
+
37
+ #: clicky.php:70
38
+ msgid "This post is not published yet, a short URL will be created for it once the post is published. Do you want it to be tweeted automatically too?"
39
+ msgstr "Deze post is nog niet gepubliceerd, zodra hij gepubliceerd is wordt er een short URL gemaakt. Wil je dat de post ook automatisch getweet wordt?"
40
+
41
+ #: clicky.php:72
42
+ msgid "Tweet post on publish"
43
+ msgstr "Tweet deze post na publicatie"
44
+
45
+ #: clicky.php:77
46
+ msgid "Goal Tracking"
47
+ msgstr "Doel tracking"
48
+
49
+ #: clicky.php:79
50
+ #, php-format
51
+ msgid "Clicky can track Goals for you too, %1$sread the documentation here%2$s. To be able to track a goal on this post, you need to specify the goal ID here. Optionally, you can also provide the goal revenue."
52
+ msgstr "Clicky kan ook Doelen voor je tracken, %1$slees de documentatie hier%2$s. Om in deze post Doelen te kunnen tracken moet je hier een Doel ID specificeren. Eventueel kun je ook de doel waarde opgeven."
53
+
54
+ #: clicky.php:82
55
+ msgid "Goal ID"
56
+ msgstr "Doel ID"
57
+
58
+ #: clicky.php:83
59
+ msgid "Goal Revenue"
60
+ msgstr "Doel Opbrengst"
61
+
62
+ #: clicky.php:123
63
+ msgid "Stats"
64
+ msgstr "Stats"
65
+
66
+ #: clicky.php:138
67
+ msgid "You cannot edit the Clicky settings."
68
+ msgstr "Je kunt de Clicky instellingen niet editen."
69
+
70
+ #: clicky.php:157
71
+ msgid "Clicky settings have been updated."
72
+ msgstr "De instellingen van Clicky zijn ge&uuml;pdatet."
73
+
74
+ #: clicky.php:170
75
+ msgid "Configuration"
76
+ msgstr "Configuratie"
77
+
78
+ #: clicky.php:183
79
+ msgid "Site ID"
80
+ msgstr "Site ID"
81
+
82
+ #: clicky.php:190
83
+ msgid "Site Key"
84
+ msgstr "Site Key"
85
+
86
+ #: clicky.php:197
87
+ msgid "Admin Site Key"
88
+ msgstr "Admin Site Key"
89
+
90
+ #: clicky.php:203
91
+ msgid "Clicky Settings"
92
+ msgstr "Clicky Instellingen"
93
+
94
+ #: clicky.php:205
95
+ #, php-format
96
+ msgid "This plugin allows you to automatically create short URLs through the %1$sClicky.me service%2$s"
97
+ msgstr "Deze plugin staat je toe om automatisch Short URL's te cre&euml;ren door de %1$sClicky.me service%2$s"
98
+
99
+ #: clicky.php:205
100
+ msgid "and tweet your post immediately when you publish it. To do that, this plugin will need your Twitter username and pass."
101
+ msgstr "en tweet je post onmiddellijk na het publiceren. Om dat te doen heeft deze plugin je Twitter gebruikersnaam en wachtwoord nodig."
102
+
103
+ #: clicky.php:210
104
+ msgid "Ignore Admin users"
105
+ msgstr "Negeer Site beheerders"
106
+
107
+ #: clicky.php:211
108
+ msgid "If you are using a caching plugin, such as WP-Supercache, please ensure that you have it configured to NOT use the cache for logged in users. Otherwise, admin users <em>will still</em> be tracked."
109
+ msgstr "Als je een caching plugin gebruikt, zoals WP-Supercache, verifieer dan aub of deze geconfigureerd is om pagina's NIET te cachen for gebruikers die ingelogd zijn. Anders worden beheerders nog steeds getracked."
110
+
111
+ #: clicky.php:217
112
+ msgid "Track names of commenters"
113
+ msgstr "Track namen van commenters"
114
+
115
+ #: clicky.php:222
116
+ msgid "Advanced Settings"
117
+ msgstr "Geavanceerde Instellingen"
118
+
119
+ #: clicky.php:227
120
+ msgid "Allow Clicky.me integration"
121
+ msgstr "Integreer Clicky.me"
122
+
123
+ #: clicky.php:234
124
+ msgid "Auto Tweet"
125
+ msgstr "Automatisch Tweeten"
126
+
127
+ #: clicky.php:235
128
+ msgid "No need to check the box on each post, by checking this box, each post get's tweeted automatically."
129
+ msgstr "Het is niet meer nodig om bij elke post de checkbox aan te vinken. Als je deze box aan vinkt wordt iedere post automatisch getweet."
130
+
131
+ #: clicky.php:241
132
+ msgid "Twitter username"
133
+ msgstr "Twitter gebruikersnaam"
134
+
135
+ #: clicky.php:248
136
+ msgid "Twitter password"
137
+ msgstr "Twitter wachtwoord"
138
+
139
+ #: clicky.php:255
140
+ msgid "Prefix for Tweets"
141
+ msgstr "Voorvoegsel voor Tweets"
142
+
143
+ #: clicky.php:256
144
+ msgid "This text will be put in front of Tweets that are published when a blog post is published"
145
+ msgstr "Deze tekst wordt voor Tweets geplaatst die worden gepubliceerd als u een nieuwe blog post publiceert"
146
+
147
+ #: clicky.php:260
148
+ msgid "Clicky.me &amp; Twitter Integration"
149
+ msgstr "Clicky.me &amp; Twitter Integratie"
150
+
151
+ #: clicky.php:265
152
+ msgid "Update Clicky Settings"
153
+ msgstr "Update Clicky Instellingen"
154
+
155
+ #: clicky.php:373
156
+ msgid "Clicky tracking not shown because you're an administrator and you've configured Clicky to ignore administrators."
157
+ msgstr "Clicky tracking niet getoond omdat je een beheerder bent en je Clicky ingesteld hebt om beheerders niet te tracken."
158
+
159
+ #: yst_plugin_tools.php:64
160
+ msgid "Settings"
161
+ msgstr "Instellingen"
162
+
163
+ #: yst_plugin_tools.php:138
164
+ msgid "Why not do any or all of the following:"
165
+ msgstr "Waarom doe je niet een van de volgende zaken:"
166
+
167
+ #: yst_plugin_tools.php:140
168
+ msgid "Link to it so other folks can find out about it."
169
+ msgstr "Link er naar zodat andere mensen hem kunnen vinden."
170
+
171
+ #: yst_plugin_tools.php:141
172
+ msgid "Give it a good rating on WordPress.org."
173
+ msgstr "Geef het een goede rating op WordPress.org"
174
+
175
+ #: yst_plugin_tools.php:142
176
+ msgid "Donate a token of your appreciation."
177
+ msgstr "Doneer een teken van uw appreciatie."
178
+
179
+ #: yst_plugin_tools.php:144
180
+ msgid "Like this plugin?"
181
+ msgstr "Vind je deze plugin goed?"
182
+
183
+ #: yst_plugin_tools.php:151
184
+ msgid "If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the"
185
+ msgstr "Als je problemen hebt met deze plugin, of idee&euml;n hebt voor hoe je die kunt verbeteren, praat er dan ajb over in de"
186
+
187
+ #: yst_plugin_tools.php:151
188
+ msgid "Support forums"
189
+ msgstr "Support forums"
190
+
191
+ #: yst_plugin_tools.php:152
192
+ msgid "Need support?"
193
+ msgstr "Heb je hulp nodig?"
194
+
195
+ #: yst_plugin_tools.php:168
196
+ msgid "Subscribe"
197
+ msgstr "Abonneer"
198
+
199
+ #: yst_plugin_tools.php:169
200
+ #: yst_plugin_tools.php:171
201
+ msgid "Latest news from Clicky"
202
+ msgstr "Het laatste nieuws van Clicky"
203
+
204
+ #: yst_plugin_tools.php:171
205
+ msgid "Nothing to say..."
206
+ msgstr "We hebben niks te zeggen"
207
+
208
+ #. Plugin Name of an extension
209
+ msgid "Clicky for WordPress"
210
+ msgstr "Clicky voor WordPress"
211
+
212
+ #. Plugin URI of an extension
213
+ msgid "http://getclicky.com/goodies/#wordpress"
214
+ msgstr "http://getclicky.com/goodies/#wordpress"
215
+
216
+ #. Description of an extension
217
+ msgid "Integrates Clicky on your blog!"
218
+ msgstr "Integreer Clicky in je blog!"
219
+
220
+ #. Author of an extension
221
+ msgid "Joost de Valk"
222
+ msgstr "Joost de Valk"
223
+
224
+ #. Author URI of an extension
225
+ msgid "http://yoast.com/"
226
+ msgstr "http://yoast.com/"
227
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/
4
  Tags: analytics, statistics, clicky
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
- Stable tag: 1.0.2
8
 
9
  Integrates the Clicky web analytics service and optionally the Clicky.me short URL service into your blog.
10
 
@@ -33,6 +33,11 @@ Integrates the Clicky web analytics service and optionally the Clicky.me short U
33
 
34
  == Changelog ==
35
 
 
 
 
 
 
36
  = 1.0.2 =
37
  * Added option to auto tweet articles, removing the checkbox from the add post screen. This makes sure auto tweet works when you're posting from within an external editor.
38
 
4
  Tags: analytics, statistics, clicky
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
+ Stable tag: 1.0.3
8
 
9
  Integrates the Clicky web analytics service and optionally the Clicky.me short URL service into your blog.
10
 
33
 
34
  == Changelog ==
35
 
36
+ = 1.0.3 =
37
+ * Made all strings localizable (is that even a word).
38
+ * Added .pot file to allow localization.
39
+ * Added a Dutch translation.
40
+
41
  = 1.0.2 =
42
  * Added option to auto tweet articles, removing the checkbox from the add post screen. This makes sure auto tweet works when you're posting from within an external editor.
43
 
yst_plugin_tools.php CHANGED
@@ -61,7 +61,7 @@ if (!class_exists('Clicky_Base_Plugin_Admin')) {
61
  static $this_plugin;
62
  if( empty($this_plugin) ) $this_plugin = $this->filename;
63
  if ( $file == $this_plugin ) {
64
- $settings_link = '<a href="' . $this->plugin_options_url() . '">' . __('Settings') . '</a>';
65
  array_unshift( $links, $settings_link );
66
  }
67
  return $links;
@@ -135,21 +135,21 @@ if (!class_exists('Clicky_Base_Plugin_Admin')) {
135
  * Create a "plugin like" box.
136
  */
137
  function plugin_like() {
138
- $content = '<p>'.__('Why not do any or all of the following:','clickyplugin').'</p>';
139
  $content .= '<ul>';
140
- $content .= '<li><a href="'.$this->homepage.'">'.__('Link to it so other folks can find out about it.','clickyplugin').'</a></li>';
141
- $content .= '<li><a href="http://wordpress.org/extend/plugins/'.$this->hook.'/">'.__('Give it a good rating on WordPress.org.','clickyplugin').'</a></li>';
142
- $content .= '<li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2017947">'.__('Donate a token of your appreciation.','clickyplugin').'</a></li>';
143
  $content .= '</ul>';
144
- $this->postbox($this->hook.'like', 'Like this plugin?', $content);
145
  }
146
 
147
  /**
148
  * Info box with link to the support forums.
149
  */
150
  function plugin_support() {
151
- $content = '<p>'.__('If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the','clickyplugin').' <a href="http://wordpress.org/tags/'.$this->hook.'">'.__("Support forums",'clickyplugin').'</a>.</p>';
152
- $this->postbox($this->hook.'support', 'Need support?', $content);
153
  }
154
 
155
  /**
@@ -165,10 +165,10 @@ if (!class_exists('Clicky_Base_Plugin_Admin')) {
165
  $content .= '<a class="rsswidget" href="'.clean_url( $item['link'], $protocolls=null, 'display' ).'">'. htmlentities($item['title']) .'</a> ';
166
  $content .= '</li>';
167
  }
168
- $content .= '<li class="rss"><a href="'.$this->feed.'">Subscribe</a></li>';
169
- $this->postbox('clickylatest', 'Latest news from Clicky', $content);
170
  } else {
171
- $this->postbox('clickylatest', 'Latest news from Clicky', 'Nothing to say...');
172
  }
173
  }
174
 
61
  static $this_plugin;
62
  if( empty($this_plugin) ) $this_plugin = $this->filename;
63
  if ( $file == $this_plugin ) {
64
+ $settings_link = '<a href="' . $this->plugin_options_url() . '">' . __('Settings', 'clicky') . '</a>';
65
  array_unshift( $links, $settings_link );
66
  }
67
  return $links;
135
  * Create a "plugin like" box.
136
  */
137
  function plugin_like() {
138
+ $content = '<p>'.__('Why not do any or all of the following:','clicky').'</p>';
139
  $content .= '<ul>';
140
+ $content .= '<li><a href="'.$this->homepage.'">'.__('Link to it so other folks can find out about it.','clicky').'</a></li>';
141
+ $content .= '<li><a href="http://wordpress.org/extend/plugins/'.$this->hook.'/">'.__('Give it a good rating on WordPress.org.','clicky').'</a></li>';
142
+ $content .= '<li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2017947">'.__('Donate a token of your appreciation.','clicky').'</a></li>';
143
  $content .= '</ul>';
144
+ $this->postbox($this->hook.'like', __('Like this plugin?','clicky'), $content);
145
  }
146
 
147
  /**
148
  * Info box with link to the support forums.
149
  */
150
  function plugin_support() {
151
+ $content = '<p>'.__('If you have any problems with this plugin or good ideas for improvements or new features, please talk about them in the','clicky').' <a href="http://wordpress.org/tags/'.$this->hook.'">'.__("Support forums",'clicky').'</a>.</p>';
152
+ $this->postbox($this->hook.'support', __('Need support?','clicky'), $content);
153
  }
154
 
155
  /**
165
  $content .= '<a class="rsswidget" href="'.clean_url( $item['link'], $protocolls=null, 'display' ).'">'. htmlentities($item['title']) .'</a> ';
166
  $content .= '</li>';
167
  }
168
+ $content .= '<li class="rss"><a href="'.$this->feed.'">'.__('Subscribe','clicky').'</a></li>';
169
+ $this->postbox('clickylatest', __('Latest news from Clicky','clicky'), $content);
170
  } else {
171
+ $this->postbox('clickylatest', __('Latest news from Clicky','clicky'), __('Nothing to say...','clicky'));
172
  }
173
  }
174