diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-19 14:32:53 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-19 14:32:53 +0400 |
commit | 9b7b8464b9b09f4ca74e40624d3d6c8dffb0247e (patch) | |
tree | a39b7dae851f9eb90991366cee8ec4cc62d4417f /source/blender/editors/transform | |
parent | cd131098ab7d3a9549ec4e5cc76d1f3a009e3fa3 (diff) |
i18n: do not translate obect mode enum and transform orientation enum if UI translation is disabled
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 68bf7d181f5..d25e3307219 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -408,12 +408,16 @@ EnumPropertyItem *BIF_enumTransformOrientation(bContext *C) } const char * BIF_menustringTransformOrientation(const bContext *C, const char *title) { - const char* menu = _("%t|Global%x0|Local%x1|Gimbal%x4|Normal%x2|View%x3"); + const char* menu = N_("%t|Global%x0|Local%x1|Gimbal%x4|Normal%x2|View%x3"); ListBase *transform_spaces = &CTX_data_scene(C)->transform_spaces; TransformOrientation *ts; int i = V3D_MANIP_CUSTOM; char *str_menu, *p; + if((U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_IFACE)) { + title= BLF_gettext(title); + menu= BLF_gettext(menu); + } str_menu = MEM_callocN(strlen(menu) + strlen(title) + 1 + 40 * BIF_countTransformOrientation(C), _("UserTransSpace from matrix")); p = str_menu; |