Blender
V3.3
|
#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 29 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 38 of file blt_translation.c.
References bl_locale_pgettext(), BLT_I18NCONTEXT_DEFAULT, BLT_is_default_context(), ret, and void.
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().
Definition at line 65 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 101 of file blt_translation.c.
References BLT_pgettext(), BLT_translate(), and void.
Referenced by IMB_thumb_ensure_translations().
const char* BLT_translate_do_iface | ( | const char * | msgctxt, |
const char * | msgid | ||
) |
Definition at line 116 of file blt_translation.c.
References BLT_pgettext(), BLT_translate_iface(), and void.
Referenced by app_translations_pgettext_iface().
const char* BLT_translate_do_new_dataname | ( | const char * | msgctxt, |
const char * | msgid | ||
) |
Definition at line 146 of file blt_translation.c.
References BLT_pgettext(), BLT_translate_new_dataname(), and void.
Referenced by app_translations_pgettext_data().
const char* BLT_translate_do_tooltip | ( | const char * | msgctxt, |
const char * | msgid | ||
) |
Definition at line 131 of file blt_translation.c.
References BLT_pgettext(), BLT_translate_tooltips(), and void.
Referenced by app_translations_pgettext_tip().
Definition at line 74 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().
Definition at line 92 of file blt_translation.c.
References BLT_translate(), and USER_TR_NEWDATANAME.
Referenced by BLT_translate_do_new_dataname().
Definition at line 83 of file blt_translation.c.
References BLT_translate(), and USER_TR_TOOLTIPS.
Referenced by BLT_translate_do_tooltip().