Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blentranslation/BLT_translation.h
| Show All 22 Lines | |||||
| bool BLT_translate_iface(void); | bool BLT_translate_iface(void); | ||||
| bool BLT_translate_tooltips(void); | bool BLT_translate_tooltips(void); | ||||
| bool BLT_translate_new_dataname(void); | bool BLT_translate_new_dataname(void); | ||||
| const char *BLT_translate_do(const char *msgctxt, const char *msgid); | const char *BLT_translate_do(const char *msgctxt, const char *msgid); | ||||
| const char *BLT_translate_do_iface(const char *msgctxt, const char *msgid); | const char *BLT_translate_do_iface(const char *msgctxt, const char *msgid); | ||||
| const char *BLT_translate_do_tooltip(const char *msgctxt, const char *msgid); | const char *BLT_translate_do_tooltip(const char *msgctxt, const char *msgid); | ||||
| const char *BLT_translate_do_new_dataname(const char *msgctxt, const char *msgid); | const char *BLT_translate_do_new_dataname(const char *msgctxt, const char *msgid); | ||||
| /** | |||||
| * Note that "lang" here is the _output_ display language. We used to restrict | |||||
| * IME for keyboard _input_ language because our multilingual font was only used | |||||
| * when some output languages were selected. That font is used all the time now. | |||||
| */ | |||||
| bool BLT_lang_is_ime_supported(void); | |||||
| /* The "translation-marker" macro. */ | /* The "translation-marker" macro. */ | ||||
| #define N_(msgid) msgid | #define N_(msgid) msgid | ||||
| #define CTX_N_(context, msgid) msgid | #define CTX_N_(context, msgid) msgid | ||||
| /* These macros should be used everywhere in UI code. */ | /* These macros should be used everywhere in UI code. */ | ||||
| /*# define _(msgid) BLT_gettext(msgid) */ | /*# define _(msgid) BLT_gettext(msgid) */ | ||||
| #define IFACE_(msgid) BLT_translate_do_iface(NULL, msgid) | #define IFACE_(msgid) BLT_translate_do_iface(NULL, msgid) | ||||
| #define TIP_(msgid) BLT_translate_do_tooltip(NULL, msgid) | #define TIP_(msgid) BLT_translate_do_tooltip(NULL, msgid) | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||