i have a website with 2 languages, for both of them i have installed the translation (drupal localize) for colorbox.

but "image {current} of {total}" is not translated.

i'm doing something wrong? thanks

Comments

frjo’s picture

The Colorbox module uses "{current} of {total}" as the default.

If you go to "admin/config/regional/translate/translate" and search for:

{current} of {total}

you can add/change the translation.

dgastudio’s picture

Status: Active » Closed (works as designed)

yes, u are right. Thank u!

silentbob’s picture

Now in recent version of colorbox you can change it directly in the module settings under:
"admin/config/media/colorbox".

Go to Styles and Options -> Custom.

rudiedirkx’s picture

But the translation doesn't exist in JS...

I'm using Colorbox 1.2. I haven't changed the default {current} of {total}. It's translated, but the translation doesn't exist in JS, because it's never literally called in JS. And Drupal.settings.colorbox.current isn't translated.

What's happening?

axe312’s picture

I can confirm this bug. We have a translation set for "{current} of {total}", but its still not translated!

SteffenR’s picture

Issue summary: View changes

Actually this is not a bug. You need the variable Module to translate the settings. Afterwards you can enable these variables to be translatable at admin/config/regional/i18n/variable
Screenshot: http://share.undpaul.de/bilder/sr/20140501_140829.jpg

On the configuration page you'll find the following box for translating the strings http://share.undpaul.de/bilder/sr/20140501_141008.jpg