i18n: replace some bit checks from U.transopts with utility functions UI_translate*

This commit is contained in:
2011-09-20 07:47:27 +00:00
parent 6d125e159d
commit e49e403953
3 changed files with 11 additions and 3 deletions

View 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)