#include <string>
#include <map>
+
+/// The definition provides collection and writing of missed translations
//#define MISSED_TRANSLATION
/**
/**
* Returns translation from the given data.
- * If transdlation is not exists then it returns a string
+ * If translation is not exists then it returns a string
* from the info data without translation
* \param theContext context of the message (Feature Id)
* \param theMessage a message which dave to be translated
const std::string& theMessage,
const std::list<std::string>& theParams = std::list<std::string>());
+
+ /**
+ * Returns codec for the context
+ * \param theContext the context
+ */
+ static CONFIG_EXPORT std::string codec(const std::string& theContext);
+
#ifdef _DEBUG
#ifdef MISSED_TRANSLATION
static CONFIG_EXPORT void saveMissedTranslations();
private:
+ /// A map of translations
static Translator myTranslator;
+ /// aMap of codecs for contexts
+ static Dictionary myCodecs;
+
#ifdef _DEBUG
#ifdef MISSED_TRANSLATION
static Translator myMissed;