Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed i18n with variables translation, updated my settings.php file according to this post. Cleared cache ofc. But on page admin/config/user-interface/lightbox2
in text settings, there is nothing about variables being multilingual. They show just one version in all languages.
Also, on page admin/config/regional/i18n/variable
, there are no lightbox2 variables. (not sure if they should be here, perhaps yes)
I don't have an idea where to look further.
Comment | File | Size | Author |
---|---|---|---|
#1 | lightbox2-translate-string-variables-1717668-1.patch | 2.02 KB | gngn |
#1 | lightbox2-6.x-1.x-dev-translate-string-variables-1717668-1.patch | 2 KB | gngn |
Comments
Comment #1
gngn CreditAttribution: gngn commentedI experienced the same Problem with lightbox2-6.x-1.x-dev.
That is if you mean the variables lightbox2_node_link_text (default 'View Image Details'), lightbox2_image_count_str ('Image !current of !total'), lightbox2_video_count_str ('Video !current of !total'), lightbox2_page_count_str ('Page !current of !total') and lightbox2_download_link_text ('Download Original').
I edited file lightbox2.module and changed the
check_plain(variable_get(...))
tocheck_plain(t(variable_get(...)))
, i.e. adding at()
call.I'm not quite sure how the translation works with all the javascript, but this worked for me in 6.x-1.x-dev.
As the lines do not differ in 7.x-1.x-dev I assume that they will also work there.
So I add two patches:
Can you - or someone else - test the 7-patch?
greetings, gerhard
Comment #2
gngn CreditAttribution: gngn commentedUps, forgot to change the status to needs-review...
Comment #3
fox mulder CreditAttribution: fox mulder commentedWorks for me, thanks!
Comment #3.0
fox mulder CreditAttribution: fox mulder commentededit
Comment #4
gdaw CreditAttribution: gdaw as a volunteer commentedI came across this same translation issue on a new site design with the latest lightbox2 installed.
I discussed it with Joseph and this patch will be tweaked and applied soon.
Comment #6
joseph.olstadFixed in dev 7.x-2.x branch
Comment #7
joseph.olstad