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:
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r--source/blender/python/intern/bpy_app.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 3e2353c3571..9ffee3ec1f5 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -36,6 +36,10 @@
#include "bpy_app_ffmpeg.h"
#include "bpy_app_build_options.h"
+#ifdef WITH_INTERNATIONAL
+# include "bpy_app_translations.h"
+#endif
+
#include "bpy_app_handlers.h"
#include "bpy_driver.h"
@@ -86,7 +90,10 @@ 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"},
- {NULL}
+#ifdef WITH_INTERNATIONAL
+ {(char *)"translations", (char *)"Application and addons internationalization API"},
+#endif
+ {NULL},
};
static PyStructSequence_Desc app_info_desc = {
@@ -152,6 +159,9 @@ 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