Karma/i18n: Difference between revisions
Petergijsels (talk | contribs) |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 25: | Line 25: | ||
* the arguments to the different calls should be string literals. Otherwise xgettext will not be able to extract the messages to be translated. | * the arguments to the different calls should be string literals. Otherwise xgettext will not be able to extract the messages to be translated. | ||
More resources: | |||
http://forum.jquery.com/topic/locale-information-should-be-separated-from-plugins | |||
http://wiki.jqueryui.com/i18n | |||
====HTML Strings==== | ====HTML Strings==== | ||
The Python library [http://www.hforge.org/itools itools] automates the job of parsing the HTML and creating the PO files. There are already concrete experiments, which you can find [http://git.olenepal.org/~km0r3/karma/km0r3-karma/commits/experimental here]. | |||
Things which still need to be done: | |||
* Dynamically change out strings per locale on page load (HIGH PRIORITY) | |||
* A well-defined workflow | |||
** integrate the JavaScript i18n within the workflow. | |||
* Documentation. | |||
I'm still actively working on it. Questions, comments, suggestions > km0r3 AT sugarlabs DOT org . | |||