Does anyone have an idea about using the .js translations?
I've seen a thread on the Plupload forum about this and tried to apply it with Drupal. I've created a little module which adds the language file, but no matter what my module's weight is, I can't bring the necessary .js file after the .js files loaded by Plupload.
(I've chosen to make a module for this purpose because
a) to be strict, this should be done with the Plupload integration module - at least I was able to tell Drupal that Plupload is a required module for it's translation, which is quite obvious anyway...
b) I don't want to mess up my theme with i18n code. )
Comments
Comment #1
scorchio CreditAttribution: scorchio commentedOkay, so I've modified my module to use $scope = 'footer' for adding the translation .js.
It works now, but still, I would like to load the translation only when it's needed. Any ideas about that?
Comment #2
Nikita Petrov CreditAttribution: Nikita Petrov commentedYou may use you'r template.php file and hook "preprocess_page" like this:
so, after that you must add in your_theme/js/ folder plupload-translation.js like this:
enjoy!
Comment #3
workonwomen CreditAttribution: workonwomen commentedMy developing page is using plupload what I try to translate:
http://new2.go-na.hu/new2/hu/content/galeria
If you check the source, what is wrong, why do I see no translation on my latest Drupal 7 plupload?
Comment #4
workonwomen CreditAttribution: workonwomen commented(Just changing the version to 7)
Comment #5
infojunkiePatch for 6.x over here: #1411856: Language files are not loaded
Comment #6
slashrsm CreditAttribution: slashrsm commentedThere was a patch commited to 7.x-1.x: #1219992: Fork plupload library so we can use Drupal native translation tools on it