Needs work
Project:
Lightbox2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2013 at 22:34 UTC
Updated:
28 Mar 2013 at 10:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
andiart commentedI have a solution for that. The module doesn't work with hook_variable_info to expose its variables to the translation module. Therefor I wrote a hook into the module file:
Important was to comment out some parts in lightbox2.install because deleting is handled automatically now:
And in lightbox2.admin.inc
* You can already find the variable under /de/admin/config/system/variable/module in a lightbox2 tab and alter it's value
* Secondly you have to declare the variable as multilingual, which is technically spoken adding it to the realm called " language" under: de/admin/config/regional/i18n/variable
* Then you can translate the variable in the variable realm called language under admin/config/system/variable/realm/language/edit
I will make a patch for the dev version soon.
Comment #2
andiart commentedComment #3
spade commentedThanks, I appreciate it.
Comment #4
andiart commentedHere is the patch. It though does not remove the image_count variable from the lightbox2 settings form, because users without variables module should still be able to edit it. For translation you will need variable translation and the variable module enabled. Then follow the instructions from #1
Comment #5
andiart commented