i18n: replace some bit checks from U.transopts with utility functions UI_translate*
[blender.git] / source / blender / editors / interface / interface.c
index a850fa993f07973485953c5a3595a62d9b9536da..2ff77d255c6b5c372241f5b6075986de62d71fbb 100644 (file)
@@ -96,12 +96,20 @@ static void ui_free_but(const bContext *C, uiBut *but);
 
 int UI_translate_iface(void)
 {
+#ifdef INTERNATIONAL
        return (U.transopts & USER_DOTRANSLATE) && (U.transopts & USER_TR_IFACE);
+#else
+       return 0;
+#endif
 }
 
 int UI_translate_tooltips(void)
 {
+#ifdef INTERNATIONAL
        return (U.transopts & USER_DOTRANSLATE) && (U.transopts & USER_TR_TOOLTIPS);
+#else
+       return 0;
+#endif
 }
 
 const char *UI_translate_do_iface(const char *msgid)