blender/source/blender
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
..
avi style cleanup 2012-12-29 01:54:58 +00:00
blenfont Python i18n API. Many thanks to Campbell and Brecht for the reviews and suggestions! 2013-01-20 17:29:07 +00:00
blenkernel code cleanup: remove some paranoid checks which would have crashed anyway earlier on. 2013-01-20 14:50:50 +00:00
blenlib minor change r53918 was supposed to resolve. 2013-01-20 11:54:43 +00:00
blenloader Get rid of the BRUSH_FIXED_TEX flag, use mapping modes instead. Version 2013-01-16 14:36:13 +00:00
bmesh fix for own error in recent BLI_array commit 2013-01-20 16:58:14 +00:00
collada style cleanup 2013-01-15 23:45:41 +00:00
compositor style cleanup 2013-01-15 23:45:41 +00:00
datatoc avoid using strlen() for comparisons in for loops. for expanding whitespace in the text editor and ui paste. 2012-12-15 07:57:16 +00:00
editors Fix #33941. We need to free the image editor ibuf too if no image is 2013-01-20 17:25:46 +00:00
gpu Skip hidden faces in PBVH BMesh ray intersection test 2013-01-19 16:10:21 +00:00
ikplugin fix bug #33275: iTaSC ignores location of disconnected bones when they are changed in pose mode. 2012-12-29 19:43:08 +00:00
imbuf style cleanup 2013-01-19 06:12:25 +00:00
makesdna move draw all edges into the object settings (object panel), makes more sense here since its next to draw extra wire 2013-01-18 19:01:26 +00:00
makesrna Python i18n API. Many thanks to Campbell and Brecht for the reviews and suggestions! 2013-01-20 17:29:07 +00:00
modifiers style cleanup 2013-01-19 06:12:25 +00:00
nodes Code cleanup: remove some remaining code from the old compositor. 2013-01-15 12:16:44 +00:00
opencl Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
python Python i18n API. Many thanks to Campbell and Brecht for the reviews and suggestions! 2013-01-20 17:29:07 +00:00
quicktime style cleanup 2013-01-09 03:30:15 +00:00
render Fix #33916: 2.65a regression: particles duplicating objects with halo - crash 2013-01-18 12:29:18 +00:00
windowmanager edited wmSubWindowScissorSet for readability 2013-01-20 09:22:11 +00:00
CMakeLists.txt add option to build without blenders default avi codec. 2012-10-08 02:51:42 +00:00
SConscript Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00