l10n#

Fully qualified name: carb::l10n

namespace l10n#

Utilities for localizing text.

Enumerations#

LocalizedName

Boolean value tags for the getLanguageName() and getTerritoryName() functions.

Functions#

void deregisterLocalizationForClient() noexcept

Called during client shutdown to clear out the global state.

const char * getLocalizedStringFromHashNoPlugin(const LanguageTable *table, StringIdentifier id, const LanguageIdentifier *language) noexcept

A version of getLocalizedStringFromHash() for when the localization plugin is unloaded.

void registerLocalizationForClient() noexcept

Called during client initialization to obtain the globals needed for localization.

Structs#

IL10n

The localization interface.

LanguageIdentifier

An opaque struct representing a language ID.

LanguageTable

An opaque struct representing a localization table.

LanguageTableData

A definition that can be used for loading a language table embedded in C++ code.

Typedefs#

StringIdentifier

The return type for IL10n::getHashFromKeyString() .

localizeStringFn

The entry point to getLocalizedStringFromHash().

Variables#

const LanguageIdentifier *const kLanguageCurrent

The currently set language will be used when this is passed.

const LanguageIdentifier *const kLanguageDefault

The default language will be used when this is passed.

const LanguageTable *const kLanguageTableMain

Use the main language table for the process if this is passed.

const LanguageIdentifier *const kLanguageUnknown

This is returned from some interface functions when an unknown language is requested.