I’m not sure the same problem applies to your case but I had problems displaying texts in languages other than english. I have WPML installed and have tried several ways to get wp-pagenavi load my language files.
I looked at the source and noticed that gettext functions are not used when passing the text to output. I ended up hacking the plugin core and hope plugin authors fix this or provide better instructions.
// in core.php find $options and wrap it up in gettext function
// you should repeat this for each output text you want to translate
...
$pages_text = str_replace(
array( "%CURRENT_PAGE%", "%TOTAL_PAGES%" ),
array( number_format_i18n( $paged ), number_format_i18n( $total_pages ) ),
__($options['pages_text'], 'wp-pagenavi')
);
...
@lenart
Thanks for sharing your code, I changed it in core too.
Hope the plugin authors will fix this.
@plugin Author
Can you add the gettext functions in core.php please for WP-installs with the WPML plugin?
Hello!
I have qTranslate installed and I notice an issue with wp-pagenavi!
I have a site with 3 languages. The main language of the site is french.
When the visitor use english or spanish and when he is on a category, he can go to “Page 2” and the language remain in english or spanish, but when he comes back to the “Page 1”, the language is in french.
Please check http://lesherbesfolles.eu/category/presse?lang=en
Any help would be appreciated!