diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-01-29 17:05:51 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-01-29 17:06:46 +0300 |
commit | 75838de7c30ddb69ea27754d70bf05693b5acf52 (patch) | |
tree | 2e1219069d81ee734bd7502ec996826bc77f2091 /source/blender | |
parent | d3989a314084736a5715b77ce1c2d7f8f5f2a537 (diff) |
Fix i18n-related points in T47265 - mostly, fix non-translated items in enum-search popup menu.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 | ||||
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 9ac2117d622..4faae453a60 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -4322,7 +4322,7 @@ static void operator_enum_search_cb(const struct bContext *C, void *but, const c EnumPropertyItem *item, *item_array; bool do_free; - RNA_property_enum_items((bContext *)C, ptr, prop, &item_array, NULL, &do_free); + RNA_property_enum_items_gettexted((bContext *)C, ptr, prop, &item_array, NULL, &do_free); for (item = item_array; item->identifier; item++) { /* note: need to give the index rather than the identifier because the enum can be freed */ diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index f9d13eefc09..bc60a0c6107 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -4300,12 +4300,12 @@ static void headerTranslation(TransInfo *t, const float vec[3], char str[MAX_INF if ((snode->flag & SNODE_SKIP_INSOFFSET) == 0) { const char *str_old = BLI_strdup(str); - const char *str_dir = (snode->insert_ofs_dir == SNODE_INSERTOFS_DIR_RIGHT) ? "right" : "left"; + const char *str_dir = (snode->insert_ofs_dir == SNODE_INSERTOFS_DIR_RIGHT) ? IFACE_("right") : IFACE_("left"); char str_km[MAX_INFO_LEN]; WM_modalkeymap_items_to_string(t->keymap, TFM_MODAL_INSERTOFS_TOGGLE_DIR, true, sizeof(str_km), str_km); - ofs += BLI_snprintf(str, MAX_INFO_LEN, "Auto-offset set to %s - press %s to toggle direction | %s", + ofs += BLI_snprintf(str, MAX_INFO_LEN, IFACE_("Auto-offset set to %s - press %s to toggle direction | %s"), str_dir, str_km, str_old); MEM_freeN((void *)str_old); |