Hello, I've been trying to find a way to translate the 'Next', 'Prev', 'Read More', etc text that is displayed automatically by the Views module when using the pager on a multilingual site. I tried doing it through the translate interface techniques that seem to work for text that passes through the t() function, but it doesn't seem to work for the pager text. Any ideas would be appreciated. Thanks!

Comments

perloe’s picture

I'm sure I can't be the only one who has come across this issue. Does anyone have any ideas?

knalstaaf’s picture

Looking for a way to translate the word "of" in the pager ( 1 "of" 3 ).

Should this be done with the template.php-file? If so: please tell us where to find the necessary code, so we can change it.

mariusilie’s picture

search for the string: @current of @max

knalstaaf’s picture

Works for me (found it through admin/build/translate/search).

On the Dutch forum I was given two other options in case @current of @max wouldn't work:

Use the Localization client-module or override the mini pager theme function.

LTech’s picture

I can't find @current of @max. I'm using drupal 7 (what is the equivalent admin/build/translate/search? )

knalstaaf’s picture

D7: admin/config/regional/translate/translate

Make sure you have enabled the Internationalization Views module.

ashok.gharpankar’s picture

Thanks @mariusilie, its worked for me.

LTech’s picture

Thanks, I found 'of'. Now I need 'next' and 'Prev', there were 'no strings available' when I searched for this. Any idea how to translate them? (I'm displaying a calendar using views and calander module).

jiong_ye’s picture

search for these instead:
« first
‹ previous
next ›
last »

LTech’s picture

I couldn't find the terms using the terms in the posting above either.

MURANJO’s picture

This was enough for me:

Edit views - then go to "Pager" section and click "Full" - then clik "settings" - then go to "Text for "first"-link" and change it to only "« "
Do the same for the rest of the tags.

Hope this may help somebody!!

jatf2’s picture

Use the module Configuration Translation and add a translation to your view. Then you find these translation options.