Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
steppable::localization Namespace Reference

The namespace for the localization utilities. More...

Functions

std::string getLanguage ()
 
std::string $ (const std::string &origin, const std::string &key)
 Gets a string from origin, and by the key.
 
std::string $ (const std::string &origin, const std::string &formatKey, const std::vector< std::string > &formatStrings)
 Gets a string from origin, and by the key. Formats it with the format strings.
 

Detailed Description

The namespace for the localization utilities.

Function Documentation

◆ $() [1/2]

std::string steppable::localization::$ ( const std::string & origin,
const std::string & formatKey,
const std::vector< std::string > & formatStrings )

Gets a string from origin, and by the key. Formats it with the format strings.

The origin is the name of the file, and the key is the GUID of the string. This method also enables you to format the string with the format strings.

Parameters
originThe name of the file, without the extension.
formatKeyThe GUID key of the format string.
formatStringsThe format strings to format the string with.
Returns
The formatted string in its localized form, formatted with the format strings.
Here is the call graph for this function:

◆ $() [2/2]

std::string steppable::localization::$ ( const std::string & origin,
const std::string & key )

Gets a string from origin, and by the key.

The origin is the name of the file, and the key is the GUID of the string.

Parameters
originThe name of the file, without the extension.
keyThe GUID key of the string.
Returns
The string in its localized form.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLanguage()

std::string steppable::localization::getLanguage ( )
Here is the call graph for this function:
Here is the caller graph for this function:
Untitled