i18n: replace some bit checks from U.transopts with utility functions UI_translate*
[blender.git] / source / blender / editors / space_view3d / view3d_header.c
index 22146a22b9b4bec4e8a741d73dead0a7bd1134bb..55b30aec804f5b6a2ba089bb0f4faeb6fec80643 100644 (file)
@@ -470,7 +470,7 @@ void uiTemplateEditModeSelection(uiLayout *layout, struct bContext *C)
        }
 }
 
-#define TIP_(msgid) (((U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_TOOLTIPS))?BLF_gettext(msgid):(msgid))
+#define TIP_(msgid) UI_translate_do_tooltip(msgid)
 void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
 {
        bScreen *screen= CTX_wm_screen(C);