A context that uses a certain context string.
More...
#include <xentara/workbench/i18n/Context.hpp>
|
| static auto | translate (std::string_view text) -> ui::String |
| | Function to translate a string to the system language.
|
| |
| template<typename... Arguments> |
| static auto | format (std::string_view format, Arguments &&...arguments) -> ui::String |
| | Function to format a string and translate it to the system language.
|
| |
| template<typename OutputIterator , typename... Arguments> |
| static auto | format_to (OutputIterator output, std::string_view format, Arguments &&...arguments) -> OutputIterator |
| | Function to format a string to an output sequence and translate it to the system language.
|
| |
A context that uses a certain context string.
◆ Translate
A translated string that can be used as a template parameter.
- Parameters
-
| kText | The text to translate |
◆ format()
template<typename... Arguments>
Function to format a string and translate it to the system language.
- Parameters
-
| format | The format string (will be translated) |
| arguments | The format arguments (will not be translated) |
- Returns
- The formatted string
◆ format_to()
template<typename OutputIterator , typename... Arguments>
Function to format a string to an output sequence and translate it to the system language.
- Parameters
-
| output | The iterator that the translated text should be written to. |
| format | The format string (will be translated) |
| arguments | The format arguments (will not be translated) |
- Returns
- An iterator past the end of the output range.
◆ translate()
Function to translate a string to the system language.
- Parameters
-
| text | The text to translate |
- Returns
- The translated string