Blender
V3.3
|
#include <boost/locale.hpp>
#include <iostream>
#include <stdio.h>
#include "boost_locale_wrapper.h"
Go to the source code of this file.
Macros | |
#define | LOCALE_INFO std::use_facet<boost::locale::info>(_locale) |
Typedefs | |
typedef boost::locale::message_format< char > | char_message_facet |
Functions | |
static void | bl_locale_global_cache () |
void | bl_locale_init (const char *_messages_path, const char *_default_domain) |
void | bl_locale_set (const char *locale) |
const char * | bl_locale_get (void) |
const char * | bl_locale_pgettext (const char *msgctxt, const char *msgid) |
Variables | |
static std::string | messages_path |
static std::string | default_domain |
static std::string | locale_str |
static std::locale | locale_global |
static char_message_facet const * | facet_global = NULL |
#define LOCALE_INFO std::use_facet<boost::locale::info>(_locale) |
typedef boost::locale::message_format<char> char_message_facet |
Definition at line 21 of file boost_locale_wrapper.cpp.
const char* bl_locale_get | ( | void | ) |
Definition at line 120 of file boost_locale_wrapper.cpp.
References locale_str.
Referenced by BLT_lang_get().
|
static |
Definition at line 25 of file boost_locale_wrapper.cpp.
References e, facet_global, locale_global, NULL, and void.
Referenced by bl_locale_set().
void bl_locale_init | ( | const char * | _messages_path, |
const char * | _default_domain | ||
) |
Definition at line 53 of file boost_locale_wrapper.cpp.
References default_domain, and messages_path.
Referenced by BLT_lang_init().
const char* bl_locale_pgettext | ( | const char * | msgctxt, |
const char * | msgid | ||
) |
Definition at line 125 of file boost_locale_wrapper.cpp.
References facet_global, and r.
Referenced by BLT_pgettext().
void bl_locale_set | ( | const char * | locale | ) |
Definition at line 69 of file boost_locale_wrapper.cpp.
References bl_locale_global_cache(), default_domain, e, LOCALE_INFO, locale_str, messages_path, and osx_user_locale().
Referenced by BLT_lang_set().
|
static |
Definition at line 15 of file boost_locale_wrapper.cpp.
Referenced by bl_locale_init(), and bl_locale_set().
|
static |
Definition at line 23 of file boost_locale_wrapper.cpp.
Referenced by bl_locale_global_cache(), and bl_locale_pgettext().
|
static |
Definition at line 22 of file boost_locale_wrapper.cpp.
Referenced by bl_locale_global_cache().
|
static |
Definition at line 16 of file boost_locale_wrapper.cpp.
Referenced by bl_locale_get(), and bl_locale_set().
|
static |
Definition at line 14 of file boost_locale_wrapper.cpp.
Referenced by bl_locale_init(), and bl_locale_set().