34#include <NDEVR/String.h>
35#include <NDEVR/INIFactory.h>
36#include <NDEVR/File.h>
37#include <NDEVR/Dictionary.h>
38#include <NDEVR/INIInterface.h>
49 virtual String convertText(
const String& text_string)
const;
50 virtual String convertText(
const String& text_string,
const String& default_text)
const;
51 void copyFrom(
const Translator& trans,
bool use_existing_ini_file);
52 void copyTranslationsFrom(
const Translator& trans);
53 File translatorFile(
bool user_file)
const;
57 const String&
id()
const {
return m_translation_id; }
59 void setID(
const String&
id);
60 bool isLeftToRight()
const;
61 void setName(
const String& name);
63 String commonCharacters()
const;
64 void saveTranslation(
File location =
File());
65 File activeTranslatorFile()
const;
69 static void SetMainTranslator(
Translator* translator);
72 void ensureLanguageLoaded()
const;
87 #define _t(english_string) (TranslatedString(Translator::DefaultLabel(english_string), english_string))
89 #define _tn(number_string, add_comma, min_decimals, max_decimals, min_digits) (Translator::MainTranslator()->convertNumber(number_string, add_comma, min_decimals, max_decimals, min_digits))
91 #define _td(def, english_string) (TranslatedString(Translator::DefaultLabel(def), english_string))
Definition Dictionary.h:48
Definition INIReader.h:57
Definition INIInterface.h:40
Definition Translator.h:42
bool m_has_loaded_language
Definition Translator.h:79
String m_translation_id
Definition Translator.h:78
File m_translation_file
Definition Translator.h:75
INIFactory m_language_ini
Definition Translator.h:74
const String & id() const
Definition Translator.h:57
char m_decimal_sep
Definition Translator.h:81
bool m_left_to_right
Definition Translator.h:82
String m_language_name
Definition Translator.h:76
String m_common_characters
Definition Translator.h:77
char m_number_sep
Definition Translator.h:80
const String & name() const
Definition Translator.h:58
static Resource< Translator * > main_translator
Definition Translator.h:84
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120