Salome HOME
Translate strings with corresponded codec
[modules/shaper.git] / src / Config / Config_Translator.h
index 9f989f9d0dac7e9caa5411e63aa1f416f8483286..72a305ec97803c1325baa2cdd3037dd6de78b084 100644 (file)
@@ -56,6 +56,13 @@ public:
     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();
@@ -64,8 +71,12 @@ public:
 
 
 private:
+  /// A map of translations
   static Translator myTranslator;
 
+  /// aMap of codecs for contexts
+  static Dictionary myCodecs;
+
 #ifdef _DEBUG
 #ifdef MISSED_TRANSLATION
   static Translator myMissed;