Menu

Commit [r7705]  Maximize  Restore  History

i18n: add infrastructure for enabling translation of plugins, using different ''translation domains''

Initial patch contributed by Pedro Algarvio on #7497, many thanks!

Changelog:
- adapt `add_domain` to the Babel:milestone:0.9.4 API + added locking
- added `domain_functions` for creating domain-specific translation functions, to be used in plugins (one would usually create at least `_` and `add_domain`)

Closes #7497.

cboos 2008-11-21

changed /trunk/trac/util/translation.py
changed /trunk/trac/web/api.py
changed /trunk/trac/web/chrome.py
changed /trunk/trac/web/main.py
/trunk/trac/util/translation.py Diff Switch to side-by-side view
Loading...
/trunk/trac/web/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/web/chrome.py Diff Switch to side-by-side view
Loading...
/trunk/trac/web/main.py Diff Switch to side-by-side view
Loading...