|
Blender V5.0
|
Classes | |
| class | Info |
| class | MOFile |
| struct | MessageKeyRef |
| struct | MessageKey |
| class | MOMessages |
Functions | |
| static constexpr bool | is_upper_ascii (const char c) |
| static constexpr bool | is_lower_ascii (const char c) |
| static bool | make_lower_ascii (char &c) |
| static bool | make_upper_ascii (char &c) |
| static constexpr bool | is_numeric_ascii (const char c) |
| bool | operator== (const MessageKey &a, const MessageKey &b) |
| bool | operator== (const MessageKeyRef &a, const MessageKey &b) |
| void | init (const StringRef locale_full_name, const Vector< std::string > &domains, const Vector< std::string > &paths) |
| void | free () |
| std::optional< StringRefNull > | translate (const int domain, const StringRef context, const StringRef key) |
| const char * | full_name () |
| std::string | macos_user_locale () |
Variables | |
| static CLG_LogRef | LOG = {"translation"} |
| static std::unique_ptr< MOMessages > | global_messages |
| static std::string | global_full_name |
| void blender::locale::free | ( | ) |
Definition at line 614 of file messages.cc.
References global_full_name, and global_messages.
Referenced by BLT_lang_free(), and init().
| const char * blender::locale::full_name | ( | ) |
Definition at line 631 of file messages.cc.
References global_full_name.
Referenced by BLT_lang_get().
| void blender::locale::init | ( | const StringRef | locale_full_name, |
| const Vector< std::string > & | domains, | ||
| const Vector< std::string > & | paths ) |
Definition at line 593 of file messages.cc.
References CLOG_ERROR, CLOG_INFO, free(), global_full_name, global_messages, LOG, and blender::locale::Info::to_full_name().
Referenced by BLT_lang_set().
|
staticconstexpr |
Definition at line 47 of file messages.cc.
Referenced by make_upper_ascii().
|
staticconstexpr |
Definition at line 70 of file messages.cc.
|
staticconstexpr |
Definition at line 42 of file messages.cc.
Referenced by make_lower_ascii().
| std::string blender::locale::macos_user_locale | ( | ) |
Definition at line 20 of file messages_apple.mm.
References result.
Referenced by blender::locale::Info::Info().
|
static |
Definition at line 52 of file messages.cc.
References is_upper_ascii().
|
static |
Definition at line 61 of file messages.cc.
References is_lower_ascii().
|
inline |
Definition at line 440 of file messages.cc.
References b, blender::locale::MessageKey::context, and blender::locale::MessageKey::str.
|
inline |
Definition at line 445 of file messages.cc.
References b, blender::locale::MessageKeyRef::context, and blender::locale::MessageKeyRef::str.
| std::optional< StringRefNull > blender::locale::translate | ( | const int | domain, |
| const StringRef | context, | ||
| const StringRef | key ) |
|
static |
Definition at line 591 of file messages.cc.
Referenced by free(), full_name(), and init().
|
static |
Definition at line 590 of file messages.cc.
Referenced by free(), init(), and translate().
|
static |
Definition at line 38 of file messages.cc.
Referenced by init().