blender/intern
Bastien Montagne cef730d969 Python i18n API. Many thanks to Campbell and Brecht for the reviews and suggestions!
This commit adds:
* A new bpy.app.translations module giving some info about locales/translation stuff (current active locale, all locales currently known by blender, all translation contexts currently defined, etc.).

* The ability for addons to feature translations, using the (un)register functions of above module.

* Also cleans up "translate py string when storing into RNA prop" by removing "PROP_TRANSLATE" string's subtype, and adding a PROP_STRING_PY_TRANSLATE flag instead (this way it is no more exposed to python...).

Addon translations work with py dictionaries: each addon features a dict {lang: {(context, message): translation, ...}, ...}, which is registered when the addon is enabled (and unregistered when disabled). 

Then, when a key (context, message) is not found in regular mo catalog, a cache dict for current locale is built from all registered addon translations, and key is searched in it.

Note: currently addons writers have to do all the work by hand, will add something (probably extend "edit translation" addon) to automate messages extraction from addons soon(ish)! To get a look to expected behavior from addons, have a look at render_copy_settings/__init__.py and render_copy_settings/translations.py (rather stupid example currently, but...). Once we have a complete process, I'll also update relevant wiki pages.
2013-01-20 17:29:07 +00:00
..
audaspace Patch #33837: ffmpeg1.1 and libav9.1 compatibility update 2013-01-12 12:51:10 +00:00
bsp Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
container Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
cycles code cleanup: remove some paranoid checks which would have crashed anyway earlier on. 2013-01-20 14:50:50 +00:00
dualcon Add missing virtual destructor for VirtualMemoryAllocator 2013-01-20 15:36:32 +00:00
elbeem Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
ffmpeg Further tweaks to support libav from wheezy 2013-01-13 17:54:09 +00:00
ghost code cleanup: remove some paranoid checks which would have crashed anyway earlier on. 2013-01-20 14:50:50 +00:00
guardedalloc Ambient occlusion baker from multi-resolution mesh 2012-12-18 17:46:42 +00:00
iksolver Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
itasc Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
locale Python i18n API. Many thanks to Campbell and Brecht for the reviews and suggestions! 2013-01-20 17:29:07 +00:00
memutil Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
mikktspace Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
moto Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
opencolorio Style cleanup in OCIO area 2013-01-08 20:55:07 +00:00
opennl Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
raskter Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
smoke add option WITH_SYSTEM_BULLET to link against the bullet installation found on the system. 2013-01-03 00:23:52 +00:00
string Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
utfconv Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
CMakeLists.txt Replacing gettext i18n backend by boost::locale one. 2012-11-11 16:54:26 +00:00
SConscript Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00