OSDN Git Service

Implement support for addon manifest translation.
authorrui Batista <ruiandrebatista@gmail.com>
Tue, 24 Apr 2012 16:49:16 +0000 (17:49 +0100)
committerrui Batista <ruiandrebatista@gmail.com>
Tue, 24 Apr 2012 16:49:16 +0000 (17:49 +0100)
commit05da350d02f3208c93a612478b45c13f01bdc748
treefef8b9f496ab3b7d9619b3f9b52400bb39714871
parent735b59956bdbd367059e5da26231a46bf8106a48
Implement support for addon manifest translation.

* Addon manifest translations must be kept on <addon>\locale\<lang>\manifest.ini
* Only description and long description are supported.
* AddonManifest can receive an optional argument with a file-like object for the translation data (Addon and AddonBundle must provide it since retrieval is diferent).
* AddonManifest has a new _ methodto retrieve translated data. For instance manifest._('description')
* Other minor code tweaks and cleanups.
source/addonHandler.py