How does this fit into the Drupal translation logic? How can i translated in different languages on a multilingual website where every user have a different language? there is only one JS files and i need to put all this strings into a POT translation file... for translation the t() function is used.

[webfm.js]

Webfm.js_msg = [];
Webfm.js_msg["mkdir"] = "Create New Dir";
Webfm.js_msg["file"] = "file";
Webfm.js_msg["directory"] = "directory";
Webfm.js_msg["work"] = "Working...";
Webfm.js_msg["refresh"] = "refresh";
Webfm.js_msg["sort"] = "sort by this column";
Webfm.js_msg["column1"] = "Name";
Webfm.js_msg["column2"] = "Modified";
Webfm.js_msg["column3"] = "Size";
Webfm.js_msg["attach-title"] = "Attached Files";
...

Comments

robmilne’s picture

On my todo list. Ajax will send the drupal t() strings to the js_msg array.

hass’s picture

After i wrote this, i found kkaefer is working on javascript translation for D6 - http://drupal.org/node/118026. Maybe of your interests and may end with status "postphoned" here? Not sure if there are other ways to do this... never thought about JS translation yet.

robmilne’s picture

Status: Active » Postponed
nhck’s picture

As per #803722: Cease support of Drupal 5? support for D4 and D5 has been closed. Sorry, please upgrade to Drupal 6. If you think this issue still applies with Version 6.x please reopen this issue with correct version tag.

nhck’s picture

Status: Postponed » Closed (won't fix)