I noticed that I can insert another language into the webfm.js file. I just have two questions.
1). I have Chinese and English on my site. Is it possible for me to create another webfm.js file (webfmchinese.js for example) and then call it depending on what category my users are browsing? For example, if I have my site divided into a English and Chinese category, would it be possible for me to call one or the other .js files depending on which category...?
2). I am having trouble with the Chinese characters...can I use Chinese with javascript? Do I need to make any special changes to the coding?
Thanks a lot!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 403642-4_translate_js.patch | 9.7 KB | pasqualle |
Comments
Comment #1
castawaybcn commentedI would also like to translate the strings embeded in the .js file of the module (in a multilanguage site), did you find a solution?
Comment #2
robmilne commentedI'll be applying the Drupal.t() function to my js strings in the next rev so that proper translation will be possible.
Comment #3
castawaybcn commentedexcellent news!!
Comment #4
pasquallepatch for HEAD..
The patch is not perfect as sentences should not be divided into smaller pieces.
for example this:
should be something like:
Comment #5
robmilne commentedThanks - I'll review this carefully before making any changes (I'm totally swamped and my promised 'next rev' is not on the horizon yet)
-rob
Comment #6
robmilne commented