53 static void locale(
const std::locale& value);
95 static const char*
translate(
const char* value)
noexcept;
100 static void initialize();
102 static std::map<xtd::string, xtd::collections::specialized::string_dictionary> language_values_;
104 static std::set<string> translated_languages_;
Represents text as a sequence of character units.
Definition basic_string.h:79
Represents translator class. This class cannot be inherited.
Definition translator.h:27
static void add_value(const xtd::string &language, const xtd::string &key, const xtd::string &value)
Manually adds a translation for a specified key and language.
static xtd::string language()
Gets the current application language.
static void locale(const xtd::string &value)
Sets the global locale.
static xtd::string translate(const xtd::string &language, const xtd::string &value) noexcept
Translates a string into the specified lganguage.
static void language(const xtd::string &language)
Sets the current application language.
static xtd::string translate(const xtd::string &value) noexcept
Translates a string into the lganguage specified by the xtd::translate::language property.
static std::locale locale()
Gets the global locale.
static void parse_file(const xtd::string &file, const xtd::string &language)
Parses a specified file that contains translations for a specified language.
static void parse_locale(const xtd::string &locale_path)
Parses a specified path that contains translations.
static xtd::string system_language()
Gets the current system language.
static void locale(const std::locale &value)
Sets the global locale.
static std::vector< xtd::string > languages()
Gets an array of languages supported by the application.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::static_object class.
Contains xtd::string alias.
Contains xtd::collections::specialized::string_dictionary typedef.