Represents translator class. This class cannot be inherited.
_t and translation files. Public Static Properties | |
| static xtd::string | language () | 
| Gets the current application language.   | |
| static void | language (const xtd::string &language) | 
| Sets the current application language.   | |
| static std::locale | locale () | 
| Gets the global locale.   | |
| static void | locale (const xtd::string &value) | 
| Sets the global locale.   | |
| 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.   | |
| static xtd::string | system_language () | 
| Gets the current system language.   | |
Public Static Methods | |
| 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 void | parse_locale (const xtd::string &locale_path) | 
| Parses a specified path that contains translations.   | |
| static void | parse_file (const xtd::string &file, const xtd::string &language) | 
| Parses a specified file that contains translations for a specified language.   | |
| static xtd::string | translate (const xtd::string &value) noexcept | 
| Translates a string into the lganguage specified by the xtd::translate::language property.   | |
| static xtd::string | translate (const xtd::string &language, const xtd::string &value) noexcept | 
| Translates a string into the specified lganguage.   | |
      
  | 
  static | 
Gets the current application language.
      
  | 
  static | 
Sets the current application language.
| language | The current application language. | 
      
  | 
  static | 
Gets the global locale.
std::locale {}; 
      
  | 
  static | 
Sets the global locale.
| value | The global locale. | 
std::locale::global(std::locale {value}); 
      
  | 
  static | 
Sets the global locale.
| value | The global locale. | 
std::locale::global(value); 
      
  | 
  static | 
Gets an array of languages supported by the application.
      
  | 
  static | 
Gets the current system language.
      
  | 
  static | 
Manually adds a translation for a specified key and language.
| language | The language of the key to be translated. | 
| key | The key to be translated. @parama value The translation of the key for the specified language. | 
      
  | 
  static | 
Parses a specified path that contains translations.
| locale_path | Path that contains translations. | 
      
  | 
  static | 
Parses a specified file that contains translations for a specified language.
| file | The file that contains translations. | 
| language | The language of the translation file. | 
      
  | 
  staticnoexcept | 
Translates a string into the lganguage specified by the xtd::translate::language property.
      
  | 
  staticnoexcept | 
Translates a string into the specified lganguage.
| language | The language used to translate the value |