Menu

Trac Commit Log


Commit Date  
[r9764] by cboos

Makefile: updated L10N tasks to take into account the catalogs dedicated to the messages in Javascript files (#6353).

Also, added an `init-xy` target for creating the catalogs for a given locale `xy` (only create the missing catalogs, e.g. the new messages-js.po one).

2010-05-24 21:48:01 Tree
[r9763] by cboos

setup: move all l10n related commands in `trac.util.dist`.

This way, plugins can easily re-use the Trac operating mode (compile before install). If they need to localize .js files, they should do something like:

{{{#!python
from trac.util.dist import get_l10n_js_cmdclass
extra['cmdclass'] = get_l10n_js_cmdclass()
}}}

If they don't need the new `*_js` related commands, they should do:

{{{#!python
from trac.util.dist import get_l10n_cmdclass
extra['cmdclass'] = get_l10n_cmdclass()
}}}

Also, don't modify the standard `build` command in place, but rather subclass it (http://www.mail-archive.com/distutils-sig@.../msg11760.html).

2010-05-24 21:47:26 Tree
[r9762] by cboos

setup: in `generate_messages_js` command, use binary mode to open the catalog file

2010-05-24 21:46:21 Tree
[r9761] by cboos

l10n/fr: fill in translation for Javascript messages

2010-05-24 21:45:52 Tree
[r9760] by cboos

l10n/fr: `python setup.py init_catalog_js -l fr`

2010-05-24 21:44:42 Tree
[r9759] by cboos

#6353: tweak `trac.web.chrome` changes, in fact we always need babel.js in order to have `_` and `babel.format` defined and working.

Adding some fallback methods instead would have worked for `_` and `ngettext`, but for `babel.format` this needed too much copying from babel.js, so just include it.

Also fixed unit-tests in trac.web.tests.chrome.

2010-05-24 21:43:24 Tree
[r9758] by cboos

i18n: add support for translating messages contained in Javascript sources.

Patch contributed by Jun Omae on #6353, many thanks!

2010-05-24 21:40:10 Tree
[r9757] by nzoltan

l10n/hu: updated to r9752

2010-05-24 20:54:16 Tree
[r9756] by cboos

l10n/es_AR: update submitted by cramm0@... via Transifex (78%)

2010-05-24 10:26:58 Tree
[r9755] by mrelbe

l10n/en_GB: Updated to extraction r9752 (100%)

2010-05-23 16:35:20 Tree
Older >