|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| void | BLT_lang_init () |
| void | BLT_lang_free () |
| void | BLT_lang_set (const char *) |
| const char * | BLT_lang_get () |
| void | BLT_lang_locale_explode (const char *locale, char **language, char **country, char **variant, char **language_country, char **language_variant) |
| const EnumPropertyItem * | BLT_lang_RNA_enum_properties () |
| void BLT_lang_free | ( | ) |
Definition at line 227 of file blt_lang.cc.
Referenced by WM_exit_ex().
| const char * BLT_lang_get | ( | ) |
Definition at line 281 of file blt_lang.cc.
References bl_locale_get(), and BLT_translate().
Referenced by app_translations_locale_get().
| void BLT_lang_init | ( | ) |
Definition at line 182 of file blt_lang.cc.
References BKE_appdir_folder_id(), bl_locale_init(), BLENDER_DATAFILES, BLI_getenv(), BLI_strdup(), MEM_freeN(), printf, and TEXT_DOMAIN_NAME.
Referenced by reloadtranslation_exec(), and WM_init().
| void BLT_lang_locale_explode | ( | const char * | locale, |
| char ** | language, | ||
| char ** | country, | ||
| char ** | variant, | ||
| char ** | language_country, | ||
| char ** | language_variant ) |
Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g. if there is no variant, *variant and *language_variant will always be NULL). Non-null elements are always MEM_mallocN'ed, it's the caller's responsibility to free them.
Definition at line 301 of file blt_lang.cc.
References BLI_strdup(), BLI_strdupcat(), BLI_strdupn(), and MEM_freeN().
Referenced by app_translations_locale_explode().
| const EnumPropertyItem * BLT_lang_RNA_enum_properties | ( | ) |
Definition at line 173 of file blt_lang.cc.
Referenced by app_translations_locales_get().
| void BLT_lang_set | ( | const char * | str | ) |
Definition at line 251 of file blt_lang.cc.
References bl_locale_set(), BLI_sprintfN(), BLI_strdupn(), MEM_freeN(), and str.
Referenced by reloadtranslation_exec(), and WM_init().