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::ustring, xtd::collections::specialized::string_map> language_values_;
104 static std::set<ustring> translated_languages_;
Represents translator class. This class cannot be inherited.
Definition translator.h:27
static xtd::ustring translate(const xtd::ustring &language, const xtd::ustring &value) noexcept
Translates a string into the specified lganguage.
static void language(const xtd::ustring &language)
Sets the current application language.
static xtd::ustring system_language()
Gets the current system language.
static void parse_locale(const xtd::ustring &locale_path)
Parses a specified path that contains translations.
static std::locale locale()
Gets the global locale.
static void add_value(const xtd::ustring &language, const xtd::ustring &key, const xtd::ustring &value)
Manually adds a translation for a specified key and language.
static void locale(const xtd::ustring &value)
Sets the global locale.
static xtd::ustring language()
Gets the current application language.
static void parse_file(const xtd::ustring &file, const xtd::ustring &language)
Parses a specified file that contains translations for a specified language.
static std::vector< xtd::ustring > languages()
Gets an array of languages supported by the application.
static xtd::ustring translate(const xtd::ustring &value) noexcept
Translates a string into the lganguage specified by the xtd::translate::language property.
static void locale(const std::locale &value)
Sets the global locale.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#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::collections::specialized::string_map typedef.
Contains xtd::ustring class.