Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-09-20 17:41:43 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-09-20 17:41:43 +0400
commitf0aac81466bb5b3a935d74d3a35b545002b0451b (patch)
tree4ff0b58172337883e4f7ac8420e90ae384d76ef5 /source/blender/windowmanager/intern/wm_init_exit.c
parent1657cbe61a756222feac5107f87d0d699a92b4a6 (diff)
parent7172316b945c62797e6beba953ff203766614531 (diff)
Improved Internationalization and Localization
============================================== Commiting GSoC project by Xiangquan Xiao trunk. Applied as separated patch, because svn merge produces to much false conflicts and worked really slow. Details for usage would be published on code.blender.org soon. Thanks to Xiao for implementation of project, Campbell to code review, Dalai and Gez for pointing to nice font and everybody else who took part in improving i18n support.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 837b7eb1f2f..1819fbe00c9 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -99,6 +99,7 @@
#include "UI_interface.h"
#include "BLF_api.h"
+#include "BLF_translation.h"
#include "GPU_buffers.h"
#include "GPU_extensions.h"
@@ -143,6 +144,8 @@ void WM_init(bContext *C, int argc, const char **argv)
/* get the default database, plus a wm */
WM_read_homefile(C, NULL, G.factory_startup);
+ BLF_lang_set(NULL);
+
/* note: there is a bug where python needs initializing before loading the
* startup.blend because it may contain PyDrivers. It also needs to be after
* initializing space types and other internal data.
@@ -379,7 +382,7 @@ void WM_exit_ext(bContext *C, const short do_python)
BIF_freeTemplates(C);
free_ttfont(); /* bke_font.h */
-
+
free_openrecent();
BKE_freecubetable();
@@ -399,6 +402,7 @@ void WM_exit_ext(bContext *C, const short do_python)
free_posebuf();
BLF_exit();
+ BLF_free_unifont();
ANIM_keyingset_infos_exit();