Hello there,
one short question.
Where can I translate the part "Page X of X" in the wp-pagenavi script. I need a german translation.
Couldn´t find id in the wp-pagenavi.php.
Thank you very much, Olli
(8 posts)
(3 voices)
Hello there,
one short question.
Where can I translate the part "Page X of X" in the wp-pagenavi script. I need a german translation.
Couldn´t find id in the wp-pagenavi.php.
Thank you very much, Olli
Hi Olli,
In the wp-pagenavi.php file, located in \lib\includes\, look for line 202, which looks like this:
$pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi');
Let me know if this is what you are looking for!
Cheers,
Dorian
Hi Dorian,
thanks for your quick answer.
This is what I´ve tried before.
It´s strange, I change the line
$pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi');
but nothing happened, even when I delete it (also when I delete the whole part from line 195 to the end).
I´ve no idea ...
Thanks again, Olli
Hi Olli,
I'd suggest you to try clearing the cache once you've modified the file, and also reactivate the theme (deactivate and reactivate). Let me know if this worked!
Cheers,
Dorian
Hi Dorian,
I´ve done all ;-) but nothing happened - in different browsers on different machines ...
With the original stand-alone wp-pagenavi-plugin you get an option panel in the backend, where you can change this term.
In your theme, the code for the backend option is in the wp-pagenavi.php, but in the wordpress backend there is no such option to change it.
May be this is the issue?
Thanks again, Olli
Hello ollimil,
The fix that Dorian provided should work for you. Do you have the WP page navi plugin installed? If that is so then go ahead and delete it from your plugin folder and clear your cache.
ollimil,
I forgot that this was being cached, see this thread..
http://mysitemyway.com/support/topic/language-pagination#post-3017
Sorry about that.
Hello Elliot,
strange, that is the solution!
Thank you very much,
Olli
You must log in to post.