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:
authorBastien Montagne <montagne29@wanadoo.fr>2013-01-21 19:10:22 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-01-21 19:10:22 +0400
commit4c0ebedc66c849e2b019f3932bd2208dd9667428 (patch)
treecd1e3247c8aeff817ffb7d2068ed60698debad18 /source/blender/python/intern/bpy_app.c
parent595dc2e252328cee677722a02f057a339080a265 (diff)
On second thought, exposes bpy.app.translations also when built without i18n support, this will avoid the need for py scripts to test for its presence everywhere!
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r--source/blender/python/intern/bpy_app.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 9ffee3ec1f5..5195f821d56 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -36,9 +36,7 @@
#include "bpy_app_ffmpeg.h"
#include "bpy_app_build_options.h"
-#ifdef WITH_INTERNATIONAL
-# include "bpy_app_translations.h"
-#endif
+#include "bpy_app_translations.h"
#include "bpy_app_handlers.h"
#include "bpy_driver.h"
@@ -90,9 +88,7 @@ static PyStructSequence_Field app_info_fields[] = {
{(char *)"ffmpeg", (char *)"FFmpeg library information backend"},
{(char *)"build_options", (char *)"A set containing most important enabled optional build features"},
{(char *)"handlers", (char *)"Application handler callbacks"},
-#ifdef WITH_INTERNATIONAL
{(char *)"translations", (char *)"Application and addons internationalization API"},
-#endif
{NULL},
};
@@ -159,9 +155,7 @@ static PyObject *make_app_info(void)
SetObjItem(BPY_app_ffmpeg_struct());
SetObjItem(BPY_app_build_options_struct());
SetObjItem(BPY_app_handlers_struct());
-#ifdef WITH_INTERNATIONAL
SetObjItem(BPY_app_translations_struct());
-#endif
#undef SetIntItem
#undef SetStrItem