Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
frjo CreditAttribution: frjo commentedThe 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.
Comment #2
dgastudio CreditAttribution: dgastudio commentedyes, u are right. Thank u!
Comment #3
silentbob CreditAttribution: silentbob commentedNow 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.
Comment #4
rudiedirkx CreditAttribution: rudiedirkx commentedBut 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. AndDrupal.settings.colorbox.current
isn't translated.What's happening?
Comment #5
axe312 CreditAttribution: axe312 commentedI can confirm this bug. We have a translation set for "{current} of {total}", but its still not translated!
Comment #6
SteffenRActually 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