20 #ifndef Config_Translator_H
21 #define Config_Translator_H
23 #include "Config_def.h"
24 #include <Events_InfoMessage.h>
52 static CONFIG_EXPORT
bool load(
const std::string& theFileName);
70 static CONFIG_EXPORT std::string
translate(
const std::string& theContext,
71 const std::string& theMessage,
72 const std::list<std::string>& theParams = std::list<std::string>());
79 static CONFIG_EXPORT std::string
codec(
const std::string& theContext);
88 #ifdef MISSED_TRANSLATION
89 static CONFIG_EXPORT
void saveMissedTranslations();
102 #ifdef MISSED_TRANSLATION
The definition provides collection and writing of missed translations.
Definition: Config_Translator.h:40
std::map< std::string, std::string > Dictionary
A data type of dictionary <KeyString, ResultString>
Definition: Config_Translator.h:43
static bool load(const std::string &theFileName)
Load translations from TS file.
Definition: Config_Translator.cpp:92
static std::string codec(const std::string &theContext)
Returns codec for the context.
Definition: Config_Translator.cpp:179
std::map< std::string, Dictionary > Translator
A data type of Translator with structure <Context, Dictionary>
Definition: Config_Translator.h:46
static std::string translate(const Events_InfoMessage &theInfo)
Returns translation from the given info message.
Definition: Config_Translator.cpp:123
An event message for sending a string message which has to be translated.
Definition: Events_InfoMessage.h:35