![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
Internationalisation helpers for translating UI texts. More...
![]() |
Functions | |
const char * | oyLanguage (void) |
get language code More... | |
const char * | oyCountry (void) |
get country code More... | |
const char * | oyLang (void) |
get LANG code/variable More... | |
void | oyI18Nreset (void) |
reset i18n language and country variables More... | |
void | oyI18NSet (int active, int reserved) |
switch internationalisation of strings on or off More... | |
Variables | |
const char * | oy_domain_codeset = 0 |
codeset for Oyranos More... | |
Internationalisation helpers for translating UI texts.
Internationalisation is handled for Oyranos by a external library. To sync locale settings with the Oyranos use the standard C infaces. For debugging purposes the internal settings are exported read only.
A external application might want a different code set than Oyranos' default UTF-8. Thus a oy_domain_codeset variable is available and can be set to match the applications needs.
const char* oyCountry | ( | void | ) |
get country code
void oyI18Nreset | ( | void | ) |
reset i18n language and country variables
void oyI18NSet | ( | int | active, |
int | reserved | ||
) |
switch internationalisation of strings on or off
active | bool |
reserved | for future use |
const char* oyLang | ( | void | ) |
get LANG code/variable
const char* oyLanguage | ( | void | ) |
get language code
const char* oy_domain_codeset = 0 |
codeset for Oyranos
set here the codeset part, e.g. "UTF-8", which shall be delivered from Oyranos string translations. Set this variable before any call to Oyranos. The environment variable ::OY_LOCALEDIR overrides the static inbuild ::OY_LOCALEDIR macro defined in oyranos_version.h . ::OY_LOCALEDIR should match a corresponding $prefix/share/locale path.
Referenced by oyIconv().