WP-PageNavi - Version 2.40

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-PageNavi
Version 2.40
Comparing to
See all releases

Code changes from version 2.31 to 2.40

Files changed (7) hide show
  1. pagenavi-css.css +1 -1
  2. pagenavi-options.php +7 -6
  3. readme.html +20 -7
  4. readme.txt +2 -2
  5. wp-pagenavi.mo +0 -0
  6. wp-pagenavi.php +20 -38
  7. wp-pagenavi.pot +48 -47
pagenavi-css.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
- | WordPress 2.5 Plugin: WP-PageNavi 2.31 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
+ | WordPress 2.6 Plugin: WP-PageNavi 2.40 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
pagenavi-options.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-PageNavi 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -103,7 +103,8 @@ switch($mode) {
103
  ?>
104
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
105
  <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
106
- <div class="wrap">
 
107
  <h2><?php _e('Page Navigation Options', 'wp-pagenavi'); ?></h2>
108
  <h3><?php _e('Page Navigation Text', 'wp-pagenavi'); ?></h3>
109
  <table class="form-table">
@@ -205,15 +206,15 @@ switch($mode) {
205
  <!-- Uninstall WP-PageNavi -->
206
  <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
207
  <div class="wrap">
208
- <h2><?php _e('Uninstall WP-PageNavi', 'wp-pagenavi'); ?></h2>
209
- <p style="text-align: left;">
210
  <?php _e('Deactivating WP-PageNavi plugin does not remove any data that may have been created, such as the page navigation options. To completely remove this plugin, you can uninstall it here.', 'wp-pagenavi'); ?>
211
  </p>
212
- <p style="text-align: left; color: red">
213
  <strong><?php _e('WARNING:', 'wp-pagenavi'); ?></strong><br />
214
  <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-pagenavi'); ?>
215
  </p>
216
- <p style="text-align: left; color: red">
217
  <strong><?php _e('The following WordPress Options will be DELETED:', 'wp-pagenavi'); ?></strong><br />
218
  </p>
219
  <table class="widefat">
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.6 Plugin: WP-PageNavi 2.40 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
103
  ?>
104
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
105
  <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
106
+ <div class="wrap">
107
+ <?php screen_icon(); ?>
108
  <h2><?php _e('Page Navigation Options', 'wp-pagenavi'); ?></h2>
109
  <h3><?php _e('Page Navigation Text', 'wp-pagenavi'); ?></h3>
110
  <table class="form-table">
206
  <!-- Uninstall WP-PageNavi -->
207
  <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
208
  <div class="wrap">
209
+ <h3><?php _e('Uninstall WP-PageNavi', 'wp-pagenavi'); ?></h3>
210
+ <p>
211
  <?php _e('Deactivating WP-PageNavi plugin does not remove any data that may have been created, such as the page navigation options. To completely remove this plugin, you can uninstall it here.', 'wp-pagenavi'); ?>
212
  </p>
213
+ <p style="color: red">
214
  <strong><?php _e('WARNING:', 'wp-pagenavi'); ?></strong><br />
215
  <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-pagenavi'); ?>
216
  </p>
217
+ <p style="color: red">
218
  <strong><?php _e('The following WordPress Options will be DELETED:', 'wp-pagenavi'); ?></strong><br />
219
  </p>
220
  <table class="widefat">
readme.html CHANGED
@@ -1,8 +1,8 @@
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
- <title>WP-PageNavi 2.31 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
@@ -203,7 +203,7 @@
203
  <body>
204
  <div id="Container">
205
  <!-- Title -->
206
- <div id="Title">WP-PageNavi 2.31&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
207
 
208
  <!-- Tabs -->
209
  <ul id="Tabs">
@@ -234,7 +234,8 @@
234
  </p>
235
  <p>
236
  <strong>Download:</strong><br />
237
- <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.2.31.zip">WP-PageNavi 2.31 For WordPress 2.1.x And Above</a><br />
 
238
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.2.03.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.2.03.zip">WP-PageNavi 2.03 For WordPress 2.0.x</a><br />
239
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.1.00.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.1.00.zip">WP-PageNavi 1.00 For WordPress 1.5.2</a>
240
  </p>
@@ -254,9 +255,13 @@
254
  <strong>Translations:</strong><br />
255
  <strong>&raquo;</strong> <a href="http://dev.wp-plugins.org/browser/wp-pagenavi/i18n/" title="http://dev.wp-plugins.org/browser/wp-pagenavi/i18n/">http://dev.wp-plugins.org/browser/wp-pagenavi/i18n/</a>
256
  </p>
257
- <p><strong>Support Forums:</strong><br />
258
  <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=14.0" title="http://forums.lesterchan.net/index.php?board=14.0">http://forums.lesterchan.net/index.php?board=14.0</a>
259
  </p>
 
 
 
 
260
  <p>
261
  <strong>Note:</strong><br />
262
  <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.
@@ -276,6 +281,14 @@
276
  <div id="Changelog" style="display: none;">
277
  <div class="SubTitle">&raquo; Changelog</div>
278
  <ul>
 
 
 
 
 
 
 
 
279
  <li>
280
  <strong>Version 2.31 (16-07-2008)</strong>
281
  <ul>
@@ -367,7 +380,7 @@
367
  <!-- Upgrade Instructions -->
368
  <div id="Upgrade" style="display: none;">
369
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
370
- <div class="SubSubTitle">From v2.0x To v2.31</div>
371
  <ol>
372
  <li>
373
  <strong>Deactivate</strong> WP-PageNavi Plugin
@@ -431,6 +444,6 @@
431
  </div>
432
  </div>
433
  </div>
434
- <p id="Copyright">WP-PageNavi 2.31<br />Copyright &copy; 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
435
  </body>
436
  </html>
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-PageNavi 2.40 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
203
  <body>
204
  <div id="Container">
205
  <!-- Title -->
206
+ <div id="Title">WP-PageNavi 2.40&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
207
 
208
  <!-- Tabs -->
209
  <ul id="Tabs">
234
  </p>
235
  <p>
236
  <strong>Download:</strong><br />
237
+ <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.2.40.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.2.40.zip">WP-PageNavi 2.40 For WordPress 2.7.x</a><br />
238
+ <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.2.31.zip">WP-PageNavi 2.31 For WordPress 2.1.x To WordPress 2.6.x</a><br />
239
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.2.03.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.2.03.zip">WP-PageNavi 2.03 For WordPress 2.0.x</a><br />
240
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-pagenavi.1.00.zip" title="http://downloads.wordpress.org/plugin/wp-pagenavi.1.00.zip">WP-PageNavi 1.00 For WordPress 1.5.2</a>
241
  </p>
255
  <strong>Translations:</strong><br />
256
  <strong>&raquo;</strong> <a href="http://dev.wp-plugins.org/browser/wp-pagenavi/i18n/" title="http://dev.wp-plugins.org/browser/wp-pagenavi/i18n/">http://dev.wp-plugins.org/browser/wp-pagenavi/i18n/</a>
257
  </p>
258
+ <p><strong>Support Forums:</strong><br />
259
  <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=14.0" title="http://forums.lesterchan.net/index.php?board=14.0">http://forums.lesterchan.net/index.php?board=14.0</a>
260
  </p>
261
+ <p>
262
+ <strong>Credits:</strong><br />
263
+ <strong>&raquo;</strong> Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a>.
264
+ </p>
265
  <p>
266
  <strong>Note:</strong><br />
267
  <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.
281
  <div id="Changelog" style="display: none;">
282
  <div class="SubTitle">&raquo; Changelog</div>
283
  <ul>
284
+ <li>
285
+ <strong>Version 2.40 (12-12-2008)</strong>
286
+ <ul>
287
+ <li>NEW: Works For WordPress 2.7 Only</li>
288
+ <li>NEW: Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
289
+ <li>NEW: Called pagenavi_textdomain() In pagenavi_init() by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
290
+ </ul>
291
+ </li>
292
  <li>
293
  <strong>Version 2.31 (16-07-2008)</strong>
294
  <ul>
380
  <!-- Upgrade Instructions -->
381
  <div id="Upgrade" style="display: none;">
382
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
383
+ <div class="SubSubTitle">From v2.0x To v2.40</div>
384
  <ol>
385
  <li>
386
  <strong>Deactivate</strong> WP-PageNavi Plugin
444
  </div>
445
  </div>
446
  </div>
447
+ <p id="Copyright">WP-PageNavi 2.40<br />Copyright &copy; 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
448
  </body>
449
  </html>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/wordpress
4
  Tags: pagenavi, navi, navigation, wp-pagenavi, page
5
- Requires at least: 2.5.0
6
- Stable tag: 2.31
7
 
8
  Adds a more advanced paging navigation your WordPress blog.
9
 
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/wordpress
4
  Tags: pagenavi, navi, navigation, wp-pagenavi, page
5
+ Requires at least: 2.7
6
+ Stable tag: 2.40
7
 
8
  Adds a more advanced paging navigation your WordPress blog.
9
 
wp-pagenavi.mo CHANGED
Binary file
wp-pagenavi.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-PageNavi
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Adds a more advanced paging navigation to your WordPress blog.
6
- Version: 2.31
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
@@ -28,29 +28,10 @@ Author URI: http://lesterchan.net
28
  */
29
 
30
 
31
- ### Use WordPress 2.6 Constants
32
- if (!defined('WP_CONTENT_DIR')) {
33
- define( 'WP_CONTENT_DIR', ABSPATH.'wp-content');
34
- }
35
- if (!defined('WP_CONTENT_URL')) {
36
- define('WP_CONTENT_URL', get_option('siteurl').'/wp-content');
37
- }
38
- if (!defined('WP_PLUGIN_DIR')) {
39
- define('WP_PLUGIN_DIR', WP_CONTENT_DIR.'/plugins');
40
- }
41
- if (!defined('WP_PLUGIN_URL')) {
42
- define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
43
- }
44
-
45
-
46
  ### Create Text Domain For Translations
47
  add_action('init', 'pagenavi_textdomain');
48
  function pagenavi_textdomain() {
49
- if (!function_exists('wp_print_styles')) {
50
- load_plugin_textdomain('wp-pagenavi', 'wp-content/plugins/wp-pagenavi');
51
- } else {
52
- load_plugin_textdomain('wp-pagenavi', false, 'wp-pagenavi');
53
- }
54
  }
55
 
56
 
@@ -66,13 +47,13 @@ function pagenavi_menu() {
66
  ### Function: Page Navigation CSS
67
  add_action('wp_head', 'pagenavi_css');
68
  function pagenavi_css() {
69
- echo "\n".'<!-- Start Of Script Generated By WP-PageNavi 2.31 -->'."\n";
70
  if(@file_exists(TEMPLATEPATH.'/pagenavi-css.css')) {
71
  echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/pagenavi-css.css" type="text/css" media="screen" />'."\n";
72
  } else {
73
  echo '<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-pagenavi/pagenavi-css.css" type="text/css" media="screen" />'."\n";
74
  }
75
- echo '<!-- End Of Script Generated By WP-PageNavi 2.31 -->'."\n";
76
  }
77
 
78
 
@@ -123,38 +104,38 @@ function wp_pagenavi($before = '', $after = '') {
123
  $start_page = 1;
124
  }
125
  if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) {
126
- $pages_text = str_replace("%CURRENT_PAGE%", $paged, $pagenavi_options['pages_text']);
127
- $pages_text = str_replace("%TOTAL_PAGES%", $max_page, $pages_text);
128
  echo $before.'<div class="wp-pagenavi">'."\n";
129
  switch(intval($pagenavi_options['style'])) {
130
  case 1:
131
  if(!empty($pages_text)) {
132
- echo '<span class="pages">'.$pages_text.'</span>';
133
  }
134
  if ($start_page >= 2 && $pages_to_show < $max_page) {
135
- $first_page_text = str_replace("%TOTAL_PAGES%", $max_page, $pagenavi_options['first_text']);
136
- echo '<a href="'.clean_url(get_pagenum_link()).'" title="'.$first_page_text.'">'.$first_page_text.'</a>';
137
  if(!empty($pagenavi_options['dotleft_text'])) {
138
- echo '<span class="extend">'.$pagenavi_options['dotleft_text'].'</span>';
139
  }
140
  }
141
  previous_posts_link($pagenavi_options['prev_text']);
142
  for($i = $start_page; $i <= $end_page; $i++) {
143
  if($i == $paged) {
144
- $current_page_text = str_replace("%PAGE_NUMBER%", $i, $pagenavi_options['current_text']);
145
- echo '<span class="current">'.$current_page_text.'</span>';
146
  } else {
147
- $page_text = str_replace("%PAGE_NUMBER%", $i, $pagenavi_options['page_text']);
148
- echo '<a href="'.clean_url(get_pagenum_link($i)).'" title="'.$page_text.'">'.$page_text.'</a>';
149
  }
150
  }
151
  next_posts_link($pagenavi_options['next_text'], $max_page);
152
  if ($end_page < $max_page) {
153
  if(!empty($pagenavi_options['dotright_text'])) {
154
- echo '<span class="extend">'.$pagenavi_options['dotright_text'].'</span>';
155
  }
156
- $last_page_text = str_replace("%TOTAL_PAGES%", $max_page, $pagenavi_options['last_text']);
157
- echo '<a href="'.clean_url(get_pagenum_link($max_page)).'" title="'.$last_page_text.'">'.$last_page_text.'</a>';
158
  }
159
  break;
160
  case 2;
@@ -166,10 +147,10 @@ function wp_pagenavi($before = '', $after = '') {
166
  $page_num = 0;
167
  }
168
  if($i == $paged) {
169
- $current_page_text = str_replace("%PAGE_NUMBER%", $i, $pagenavi_options['current_text']);
170
  echo '<option value="'.clean_url(get_pagenum_link($page_num)).'" selected="selected" class="current">'.$current_page_text."</option>\n";
171
  } else {
172
- $page_text = str_replace("%PAGE_NUMBER%", $i, $pagenavi_options['page_text']);
173
  echo '<option value="'.clean_url(get_pagenum_link($page_num)).'">'.$page_text."</option>\n";
174
  }
175
  }
@@ -192,6 +173,7 @@ function wp_pagenavi_dropdown() {
192
  ### Function: Page Navigation Options
193
  add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init');
194
  function pagenavi_init() {
 
195
  // Add Options
196
  $pagenavi_options = array();
197
  $pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi');
3
  Plugin Name: WP-PageNavi
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Adds a more advanced paging navigation to your WordPress blog.
6
+ Version: 2.40
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
28
  */
29
 
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  ### Create Text Domain For Translations
32
  add_action('init', 'pagenavi_textdomain');
33
  function pagenavi_textdomain() {
34
+ load_plugin_textdomain('wp-pagenavi', false, 'wp-pagenavi');
 
 
 
 
35
  }
36
 
37
 
47
  ### Function: Page Navigation CSS
48
  add_action('wp_head', 'pagenavi_css');
49
  function pagenavi_css() {
50
+ echo "\n".'<!-- Start Of Script Generated By WP-PageNavi 2.40 -->'."\n";
51
  if(@file_exists(TEMPLATEPATH.'/pagenavi-css.css')) {
52
  echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/pagenavi-css.css" type="text/css" media="screen" />'."\n";
53
  } else {
54
  echo '<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-pagenavi/pagenavi-css.css" type="text/css" media="screen" />'."\n";
55
  }
56
+ echo '<!-- End Of Script Generated By WP-PageNavi 2.40 -->'."\n";
57
  }
58
 
59
 
104
  $start_page = 1;
105
  }
106
  if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) {
107
+ $pages_text = str_replace("%CURRENT_PAGE%", number_format_i18n($paged), $pagenavi_options['pages_text']);
108
+ $pages_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pages_text);
109
  echo $before.'<div class="wp-pagenavi">'."\n";
110
  switch(intval($pagenavi_options['style'])) {
111
  case 1:
112
  if(!empty($pages_text)) {
113
+ echo '<span class="pages">&#8201;'.$pages_text.'&#8201;</span>';
114
  }
115
  if ($start_page >= 2 && $pages_to_show < $max_page) {
116
+ $first_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['first_text']);
117
+ echo '<a href="'.clean_url(get_pagenum_link()).'" title="'.$first_page_text.'">&#8201;'.$first_page_text.'&#8201;</a>';
118
  if(!empty($pagenavi_options['dotleft_text'])) {
119
+ echo '<span class="extend">&#8201;'.$pagenavi_options['dotleft_text'].'&#8201;</span>';
120
  }
121
  }
122
  previous_posts_link($pagenavi_options['prev_text']);
123
  for($i = $start_page; $i <= $end_page; $i++) {
124
  if($i == $paged) {
125
+ $current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
126
+ echo '<span class="current">&#8201;'.$current_page_text.'&#8201;</span>';
127
  } else {
128
+ $page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
129
+ echo '<a href="'.clean_url(get_pagenum_link($i)).'" title="'.$page_text.'">&#8201;'.$page_text.'&#8201;</a>';
130
  }
131
  }
132
  next_posts_link($pagenavi_options['next_text'], $max_page);
133
  if ($end_page < $max_page) {
134
  if(!empty($pagenavi_options['dotright_text'])) {
135
+ echo '<span class="extend">&#8201;'.$pagenavi_options['dotright_text'].'&#8201;</span>';
136
  }
137
+ $last_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['last_text']);
138
+ echo '<a href="'.clean_url(get_pagenum_link($max_page)).'" title="'.$last_page_text.'">&#8201;'.$last_page_text.'&#8201;</a>';
139
  }
140
  break;
141
  case 2;
147
  $page_num = 0;
148
  }
149
  if($i == $paged) {
150
+ $current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
151
  echo '<option value="'.clean_url(get_pagenum_link($page_num)).'" selected="selected" class="current">'.$current_page_text."</option>\n";
152
  } else {
153
+ $page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
154
  echo '<option value="'.clean_url(get_pagenum_link($page_num)).'">'.$page_text."</option>\n";
155
  }
156
  }
173
  ### Function: Page Navigation Options
174
  add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init');
175
  function pagenavi_init() {
176
+ pagenavi_textdomain();
177
  // Add Options
178
  $pagenavi_options = array();
179
  $pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi');
wp-pagenavi.pot CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-PageNavi 2.31\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-07-15 15:52+0800\n"
6
- "PO-Revision-Date: 2008-07-15 15:52+0800\n"
7
  "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
8
  "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -11,13 +11,14 @@ msgstr ""
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: English\n"
13
  "X-Poedit-Country: SINGAPORE\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
 
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
  #: pagenavi-options.php:46
19
- #: pagenavi-options.php:107
20
- #: pagenavi-options.php:171
21
  msgid "Page Navigation Options"
22
  msgstr ""
23
 
@@ -30,7 +31,7 @@ msgid "No Page Navigation Option Updated"
30
  msgstr ""
31
 
32
  #: pagenavi-options.php:62
33
- #: pagenavi-options.php:240
34
  msgid "UNINSTALL WP-PageNavi"
35
  msgstr ""
36
 
@@ -45,7 +46,7 @@ msgid "Error deleting Setting Key '%s'."
45
  msgstr ""
46
 
47
  #: pagenavi-options.php:96
48
- #: pagenavi-options.php:208
49
  msgid "Uninstall WP-PageNavi"
50
  msgstr ""
51
 
@@ -54,115 +55,115 @@ msgstr ""
54
  msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-PageNavi Will Be Deactivated Automatically."
55
  msgstr ""
56
 
57
- #: pagenavi-options.php:108
58
  msgid "Page Navigation Text"
59
  msgstr ""
60
 
61
- #: pagenavi-options.php:111
62
  msgid "Text For Number Of Pages"
63
  msgstr ""
64
 
65
- #: pagenavi-options.php:114
66
  msgid "The current page number."
67
  msgstr ""
68
 
69
- #: pagenavi-options.php:115
70
- #: pagenavi-options.php:136
71
- #: pagenavi-options.php:143
72
  msgid "The total number of pages."
73
  msgstr ""
74
 
75
- #: pagenavi-options.php:119
76
  msgid "Text For Current Page"
77
  msgstr ""
78
 
79
- #: pagenavi-options.php:122
80
- #: pagenavi-options.php:129
81
  msgid "The page number."
82
  msgstr ""
83
 
84
- #: pagenavi-options.php:126
85
  msgid "Text For Page"
86
  msgstr ""
87
 
88
- #: pagenavi-options.php:133
89
  msgid "Text For First Post"
90
  msgstr ""
91
 
92
- #: pagenavi-options.php:140
93
  msgid "Text For Last Post"
94
  msgstr ""
95
 
96
- #: pagenavi-options.php:147
97
  msgid "Text For Next Post"
98
  msgstr ""
99
 
100
- #: pagenavi-options.php:153
101
  msgid "Text For Previous Post"
102
  msgstr ""
103
 
104
- #: pagenavi-options.php:159
105
  msgid "Text For Next ..."
106
  msgstr ""
107
 
108
- #: pagenavi-options.php:165
109
  msgid "Text For Previous ..."
110
  msgstr ""
111
 
112
- #: pagenavi-options.php:174
113
  msgid "Page Navigation Style"
114
  msgstr ""
115
 
116
- #: pagenavi-options.php:177
117
  msgid "Normal"
118
  msgstr ""
119
 
120
- #: pagenavi-options.php:178
121
  msgid "Drop Down List"
122
  msgstr ""
123
 
124
- #: pagenavi-options.php:183
125
  msgid "Number Of Pages To Show?"
126
  msgstr ""
127
 
128
- #: pagenavi-options.php:189
129
  msgid "Always Show Page Navigation?"
130
  msgstr ""
131
 
132
- #: pagenavi-options.php:192
133
- #: pagenavi-options.php:239
134
  msgid "Yes"
135
  msgstr ""
136
 
137
- #: pagenavi-options.php:193
138
  msgid "No"
139
  msgstr ""
140
 
141
- #: pagenavi-options.php:199
142
  msgid "Save Changes"
143
  msgstr ""
144
 
145
- #: pagenavi-options.php:210
146
  msgid "Deactivating WP-PageNavi plugin does not remove any data that may have been created, such as the page navigation options. To completely remove this plugin, you can uninstall it here."
147
  msgstr ""
148
 
149
- #: pagenavi-options.php:213
150
  msgid "WARNING:"
151
  msgstr ""
152
 
153
- #: pagenavi-options.php:214
154
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
155
  msgstr ""
156
 
157
- #: pagenavi-options.php:217
158
  msgid "The following WordPress Options will be DELETED:"
159
  msgstr ""
160
 
161
- #: pagenavi-options.php:222
162
  msgid "WordPress Options"
163
  msgstr ""
164
 
165
- #: pagenavi-options.php:240
166
  msgid ""
167
  "You Are About To Uninstall WP-PageNavi From WordPress.\\n"
168
  "This Action Is Not Reversible.\\n"
@@ -170,32 +171,32 @@ msgid ""
170
  " Choose [Cancel] To Stop, [OK] To Uninstall."
171
  msgstr ""
172
 
173
- #: wp-pagenavi.php:61
174
  msgid "PageNavi"
175
  msgstr ""
176
 
177
- #: wp-pagenavi.php:197
178
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
179
  msgstr ""
180
 
181
- #: wp-pagenavi.php:200
182
  msgid "&laquo; First"
183
  msgstr ""
184
 
185
- #: wp-pagenavi.php:201
186
  msgid "Last &raquo;"
187
  msgstr ""
188
 
189
- #: wp-pagenavi.php:202
190
  msgid "&raquo;"
191
  msgstr ""
192
 
193
- #: wp-pagenavi.php:203
194
  msgid "&laquo;"
195
  msgstr ""
196
 
197
- #: wp-pagenavi.php:204
198
- #: wp-pagenavi.php:205
199
  msgid "..."
200
  msgstr ""
201
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-PageNavi 2.40\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-10 00:43+0800\n"
6
+ "PO-Revision-Date: 2008-12-10 00:43+0800\n"
7
  "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
8
  "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: English\n"
13
  "X-Poedit-Country: SINGAPORE\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
  #: pagenavi-options.php:46
20
+ #: pagenavi-options.php:108
21
+ #: pagenavi-options.php:172
22
  msgid "Page Navigation Options"
23
  msgstr ""
24
 
31
  msgstr ""
32
 
33
  #: pagenavi-options.php:62
34
+ #: pagenavi-options.php:241
35
  msgid "UNINSTALL WP-PageNavi"
36
  msgstr ""
37
 
46
  msgstr ""
47
 
48
  #: pagenavi-options.php:96
49
+ #: pagenavi-options.php:209
50
  msgid "Uninstall WP-PageNavi"
51
  msgstr ""
52
 
55
  msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-PageNavi Will Be Deactivated Automatically."
56
  msgstr ""
57
 
58
+ #: pagenavi-options.php:109
59
  msgid "Page Navigation Text"
60
  msgstr ""
61
 
62
+ #: pagenavi-options.php:112
63
  msgid "Text For Number Of Pages"
64
  msgstr ""
65
 
66
+ #: pagenavi-options.php:115
67
  msgid "The current page number."
68
  msgstr ""
69
 
70
+ #: pagenavi-options.php:116
71
+ #: pagenavi-options.php:137
72
+ #: pagenavi-options.php:144
73
  msgid "The total number of pages."
74
  msgstr ""
75
 
76
+ #: pagenavi-options.php:120
77
  msgid "Text For Current Page"
78
  msgstr ""
79
 
80
+ #: pagenavi-options.php:123
81
+ #: pagenavi-options.php:130
82
  msgid "The page number."
83
  msgstr ""
84
 
85
+ #: pagenavi-options.php:127
86
  msgid "Text For Page"
87
  msgstr ""
88
 
89
+ #: pagenavi-options.php:134
90
  msgid "Text For First Post"
91
  msgstr ""
92
 
93
+ #: pagenavi-options.php:141
94
  msgid "Text For Last Post"
95
  msgstr ""
96
 
97
+ #: pagenavi-options.php:148
98
  msgid "Text For Next Post"
99
  msgstr ""
100
 
101
+ #: pagenavi-options.php:154
102
  msgid "Text For Previous Post"
103
  msgstr ""
104
 
105
+ #: pagenavi-options.php:160
106
  msgid "Text For Next ..."
107
  msgstr ""
108
 
109
+ #: pagenavi-options.php:166
110
  msgid "Text For Previous ..."
111
  msgstr ""
112
 
113
+ #: pagenavi-options.php:175
114
  msgid "Page Navigation Style"
115
  msgstr ""
116
 
117
+ #: pagenavi-options.php:178
118
  msgid "Normal"
119
  msgstr ""
120
 
121
+ #: pagenavi-options.php:179
122
  msgid "Drop Down List"
123
  msgstr ""
124
 
125
+ #: pagenavi-options.php:184
126
  msgid "Number Of Pages To Show?"
127
  msgstr ""
128
 
129
+ #: pagenavi-options.php:190
130
  msgid "Always Show Page Navigation?"
131
  msgstr ""
132
 
133
+ #: pagenavi-options.php:193
134
+ #: pagenavi-options.php:240
135
  msgid "Yes"
136
  msgstr ""
137
 
138
+ #: pagenavi-options.php:194
139
  msgid "No"
140
  msgstr ""
141
 
142
+ #: pagenavi-options.php:200
143
  msgid "Save Changes"
144
  msgstr ""
145
 
146
+ #: pagenavi-options.php:211
147
  msgid "Deactivating WP-PageNavi plugin does not remove any data that may have been created, such as the page navigation options. To completely remove this plugin, you can uninstall it here."
148
  msgstr ""
149
 
150
+ #: pagenavi-options.php:214
151
  msgid "WARNING:"
152
  msgstr ""
153
 
154
+ #: pagenavi-options.php:215
155
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
156
  msgstr ""
157
 
158
+ #: pagenavi-options.php:218
159
  msgid "The following WordPress Options will be DELETED:"
160
  msgstr ""
161
 
162
+ #: pagenavi-options.php:223
163
  msgid "WordPress Options"
164
  msgstr ""
165
 
166
+ #: pagenavi-options.php:241
167
  msgid ""
168
  "You Are About To Uninstall WP-PageNavi From WordPress.\\n"
169
  "This Action Is Not Reversible.\\n"
171
  " Choose [Cancel] To Stop, [OK] To Uninstall."
172
  msgstr ""
173
 
174
+ #: wp-pagenavi.php:42
175
  msgid "PageNavi"
176
  msgstr ""
177
 
178
+ #: wp-pagenavi.php:179
179
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
180
  msgstr ""
181
 
182
+ #: wp-pagenavi.php:182
183
  msgid "&laquo; First"
184
  msgstr ""
185
 
186
+ #: wp-pagenavi.php:183
187
  msgid "Last &raquo;"
188
  msgstr ""
189
 
190
+ #: wp-pagenavi.php:184
191
  msgid "&raquo;"
192
  msgstr ""
193
 
194
+ #: wp-pagenavi.php:185
195
  msgid "&laquo;"
196
  msgstr ""
197
 
198
+ #: wp-pagenavi.php:186
199
+ #: wp-pagenavi.php:187
200
  msgid "..."
201
  msgstr ""
202