Salome HOME
Translated messages providing for SOLVER_ERROR attribute, code improvement
[modules/shaper.git] / src / Config / Config_Translator.h
index 9f989f9d0dac7e9caa5411e63aa1f416f8483286..6f79f81d1459a3e1548846d59f3d945de02599de 100644 (file)
@@ -13,6 +13,8 @@
 #include <string>
 #include <map>
 
+
+/// The definition provides collection and writing of missed translations
 //#define MISSED_TRANSLATION
 
 /**
@@ -46,7 +48,7 @@ public:
 
   /**
   * 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
@@ -56,6 +58,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 +73,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;