Blender  V3.3
Functions
BLT_lang.h File Reference

Go to the source code of this file.

Functions

void BLT_lang_init (void)
 
void BLT_lang_free (void)
 
void BLT_lang_set (const char *)
 
const char * BLT_lang_get (void)
 
void BLT_lang_locale_explode (const char *locale, char **language, char **country, char **variant, char **language_country, char **language_variant)
 
struct EnumPropertyItemBLT_lang_RNA_enum_properties (void)
 

Function Documentation

◆ BLT_lang_free()

void BLT_lang_free ( void  )

Definition at line 224 of file blt_lang.c.

Referenced by WM_exit_ex().

◆ BLT_lang_get()

const char* BLT_lang_get ( void  )

Definition at line 269 of file blt_lang.c.

References bl_locale_get(), and BLT_translate().

Referenced by app_translations_locale_get().

◆ BLT_lang_init()

void BLT_lang_init ( void  )

◆ BLT_lang_locale_explode()

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.

Note
Keep that one always available, you never know, may become useful even in no #WITH_INTERNATIONAL context.

Definition at line 289 of file blt_lang.c.

References BLI_strdup(), BLI_strdupcat(), BLI_strdupn(), MEM_freeN, and NULL.

Referenced by app_translations_locale_explode().

◆ BLT_lang_RNA_enum_properties()

struct EnumPropertyItem* BLT_lang_RNA_enum_properties ( void  )

Definition at line 170 of file blt_lang.c.

References NULL.

Referenced by app_translations_locales_get().

◆ BLT_lang_set()

void BLT_lang_set ( const char *  str)