|
Blender V5.0
|
#include <cstdlib>#include <cstring>#include <optional>#include "BLT_translation.hh"#include "DNA_userdef_types.h"Go to the source code of this file.
Functions | |
| bool | BLT_is_default_context (const StringRef msgctxt) |
| static std::optional< StringRefNull > | pgettext (StringRef msgctxt, const StringRef msgid) |
| const char * | BLT_pgettext (const char *msgctxt, const char *msgid) |
| blender::StringRef | BLT_pgettext (blender::StringRef msgctxt, blender::StringRef msgid) |
| bool | BLT_translate () |
| bool | BLT_translate_iface () |
| bool | BLT_translate_tooltips () |
| bool | BLT_translate_reports () |
| bool | BLT_translate_new_dataname () |
| template<typename StringT> | |
| StringT | translate_do (StringT msgctxt, StringT msgid) |
| const char * | BLT_translate_do (const char *msgctxt, const char *msgid) |
| StringRef | BLT_translate_do (StringRef msgctxt, StringRef msgid) |
| template<typename StringT> | |
| StringT | translate_do_iface (StringT msgctxt, StringT msgid) |
| const char * | BLT_translate_do_iface (const char *msgctxt, const char *msgid) |
| StringRef | BLT_translate_do_iface (StringRef msgctxt, StringRef msgid) |
| template<typename StringT> | |
| StringT | translate_do_tooltip (StringT msgctxt, StringT msgid) |
| const char * | BLT_translate_do_tooltip (const char *msgctxt, const char *msgid) |
| StringRef | BLT_translate_do_tooltip (StringRef msgctxt, StringRef msgid) |
| template<typename StringT> | |
| StringT | translate_do_report (StringT msgctxt, StringT msgid) |
| const char * | BLT_translate_do_report (const char *msgctxt, const char *msgid) |
| StringRef | BLT_translate_do_report (StringRef msgctxt, StringRef msgid) |
| template<typename StringT> | |
| StringT | translate_do_new_dataname (StringT msgctxt, StringT msgid) |
| const char * | BLT_translate_do_new_dataname (const char *msgctxt, const char *msgid) |
| StringRef | BLT_translate_do_new_dataname (StringRef msgctxt, StringRef msgid) |
Manages translation files and provides translation functions. (which are optional and can be disabled as a preference).
Definition in file blt_translation.cc.
| bool BLT_is_default_context | ( | const StringRef | msgctxt | ) |
Definition at line 32 of file blt_translation.cc.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA, and blender::StringRefBase::is_empty().
Referenced by pgettext().
| blender::StringRef BLT_pgettext | ( | blender::StringRef | msgctxt, |
| blender::StringRef | msgid ) |
Definition at line 73 of file blt_translation.cc.
References pgettext().
| const char * BLT_pgettext | ( | const char * | msgctxt, |
| const char * | msgid ) |
Definition at line 64 of file blt_translation.cc.
References pgettext().
Referenced by app_translations_pgettext(), translate_do(), translate_do_iface(), translate_do_new_dataname(), translate_do_report(), and translate_do_tooltip().
| bool BLT_translate | ( | ) |
Definition at line 82 of file blt_translation.cc.
References BLI_thread_is_main().
Referenced by BLT_lang_get(), BLT_translate_iface(), BLT_translate_new_dataname(), BLT_translate_reports(), BLT_translate_tooltips(), and translate_do().
| const char * BLT_translate_do | ( | const char * | msgctxt, |
| const char * | msgid ) |
Definition at line 142 of file blt_translation.cc.
References translate_do().
Definition at line 147 of file blt_translation.cc.
References translate_do().
| const char * BLT_translate_do_iface | ( | const char * | msgctxt, |
| const char * | msgid ) |
Definition at line 167 of file blt_translation.cc.
References translate_do_iface().
Referenced by app_translations_pgettext_iface(), RNA_enum_name_gettexted(), RNA_property_enum_item_from_value_gettexted(), and RNA_property_enum_name_gettexted().
Definition at line 172 of file blt_translation.cc.
References translate_do_iface().
| const char * BLT_translate_do_new_dataname | ( | const char * | msgctxt, |
| const char * | msgid ) |
Definition at line 242 of file blt_translation.cc.
References translate_do_new_dataname().
Referenced by app_translations_pgettext_data().
Definition at line 247 of file blt_translation.cc.
References translate_do_new_dataname().
| const char * BLT_translate_do_report | ( | const char * | msgctxt, |
| const char * | msgid ) |
Definition at line 217 of file blt_translation.cc.
References translate_do_report().
Referenced by app_translations_pgettext_rpt().
Definition at line 222 of file blt_translation.cc.
References translate_do_report().
| const char * BLT_translate_do_tooltip | ( | const char * | msgctxt, |
| const char * | msgid ) |
Definition at line 192 of file blt_translation.cc.
References translate_do_tooltip().
Referenced by app_translations_pgettext_tip(), and RNA_property_enum_item_from_value_gettexted().
Definition at line 197 of file blt_translation.cc.
References translate_do_tooltip().
| bool BLT_translate_iface | ( | ) |
Definition at line 91 of file blt_translation.cc.
References BLT_translate(), U, and USER_TR_IFACE.
Referenced by translate_do_iface().
| bool BLT_translate_new_dataname | ( | ) |
Definition at line 118 of file blt_translation.cc.
References BLT_translate(), U, and USER_TR_NEWDATANAME.
Referenced by translate_do_new_dataname(), wm_file_read_post(), and workspace_append_activate_exec().
| bool BLT_translate_reports | ( | ) |
Definition at line 109 of file blt_translation.cc.
References BLT_translate(), U, and USER_TR_REPORTS.
Referenced by translate_do_report().
| bool BLT_translate_tooltips | ( | ) |
Definition at line 100 of file blt_translation.cc.
References BLT_translate(), U, and USER_TR_TOOLTIPS.
Referenced by translate_do_tooltip().
|
static |
Definition at line 41 of file blt_translation.cc.
References BLT_I18NCONTEXT_DEFAULT, BLT_is_default_context(), blender::StringRefBase::is_empty(), blender::locale::translate(), and UNUSED_VARS.
Referenced by BLT_pgettext(), and BLT_pgettext().
| StringT translate_do | ( | StringT | msgctxt, |
| StringT | msgid ) |
Definition at line 127 of file blt_translation.cc.
References BLT_pgettext(), and BLT_translate().
Referenced by BLT_translate_do(), and BLT_translate_do().
| StringT translate_do_iface | ( | StringT | msgctxt, |
| StringT | msgid ) |
Definition at line 152 of file blt_translation.cc.
References BLT_pgettext(), and BLT_translate_iface().
Referenced by BLT_translate_do_iface(), and BLT_translate_do_iface().
| StringT translate_do_new_dataname | ( | StringT | msgctxt, |
| StringT | msgid ) |
Definition at line 227 of file blt_translation.cc.
References BLT_pgettext(), and BLT_translate_new_dataname().
Referenced by BLT_translate_do_new_dataname(), and BLT_translate_do_new_dataname().
| StringT translate_do_report | ( | StringT | msgctxt, |
| StringT | msgid ) |
Definition at line 202 of file blt_translation.cc.
References BLT_pgettext(), and BLT_translate_reports().
Referenced by BLT_translate_do_report(), and BLT_translate_do_report().
| StringT translate_do_tooltip | ( | StringT | msgctxt, |
| StringT | msgid ) |
Definition at line 177 of file blt_translation.cc.
References BLT_pgettext(), and BLT_translate_tooltips().
Referenced by BLT_translate_do_tooltip(), and BLT_translate_do_tooltip().