|
Blender
V2.93
|
#include <stdlib.h>#include <string.h>#include "BLT_translation.h"#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"Go to the source code of this file.
Functions | |
| bool | BLT_is_default_context (const char *msgctxt) |
| const char * | BLT_pgettext (const char *msgctxt, const char *msgid) |
| bool | BLT_translate (void) |
| bool | BLT_translate_iface (void) |
| bool | BLT_translate_tooltips (void) |
| bool | BLT_translate_new_dataname (void) |
| 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_tooltip (const char *msgctxt, const char *msgid) |
| const char * | BLT_translate_do_new_dataname (const char *msgctxt, const char *msgid) |
Manages translation files and provides translation functions. (which are optional and can be disabled as a preference).
Definition in file blt_translation.c.
| bool BLT_is_default_context | ( | const char * | msgctxt | ) |
Definition at line 45 of file blt_translation.c.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA.
Referenced by BLT_pgettext(), and UI_but_string_info_get().
| const char* BLT_pgettext | ( | const char * | msgctxt, |
| const char * | msgid | ||
| ) |
Definition at line 54 of file blt_translation.c.
References bl_locale_pgettext(), BLT_I18NCONTEXT_DEFAULT, BLT_is_default_context(), and ret.
Referenced by app_translations_pgettext(), BLT_translate_do(), BLT_translate_do_iface(), BLT_translate_do_new_dataname(), BLT_translate_do_tooltip(), RNA_property_enum_item_from_value_gettexted(), and RNA_property_enum_name_gettexted().
| bool BLT_translate | ( | void | ) |
Definition at line 81 of file blt_translation.c.
References BLI_thread_is_main().
Referenced by BLT_lang_get(), BLT_translate_do(), BLT_translate_iface(), BLT_translate_new_dataname(), and BLT_translate_tooltips().
| const char* BLT_translate_do | ( | const char * | msgctxt, |
| const char * | msgid | ||
| ) |
Definition at line 117 of file blt_translation.c.
References BLT_pgettext(), and BLT_translate().
Referenced by IMB_thumb_ensure_translations().
| const char* BLT_translate_do_iface | ( | const char * | msgctxt, |
| const char * | msgid | ||
| ) |
Definition at line 132 of file blt_translation.c.
References BLT_pgettext(), and BLT_translate_iface().
Referenced by app_translations_pgettext_iface().
| const char* BLT_translate_do_new_dataname | ( | const char * | msgctxt, |
| const char * | msgid | ||
| ) |
Definition at line 162 of file blt_translation.c.
References BLT_pgettext(), and BLT_translate_new_dataname().
Referenced by app_translations_pgettext_data().
| const char* BLT_translate_do_tooltip | ( | const char * | msgctxt, |
| const char * | msgid | ||
| ) |
Definition at line 147 of file blt_translation.c.
References BLT_pgettext(), and BLT_translate_tooltips().
Referenced by app_translations_pgettext_tip().
| bool BLT_translate_iface | ( | void | ) |
Definition at line 90 of file blt_translation.c.
References BLT_translate(), and USER_TR_IFACE.
Referenced by BLT_translate_do_iface(), RNA_property_enum_item_from_value_gettexted(), and RNA_property_enum_name_gettexted().
| bool BLT_translate_new_dataname | ( | void | ) |
Definition at line 108 of file blt_translation.c.
References BLT_translate(), and USER_TR_NEWDATANAME.
Referenced by BLT_translate_do_new_dataname().
| bool BLT_translate_tooltips | ( | void | ) |
Definition at line 99 of file blt_translation.c.
References BLT_translate(), and USER_TR_TOOLTIPS.
Referenced by BLT_translate_do_tooltip().