]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_Tools.h
Salome HOME
Translated messages providing for SOLVER_ERROR attribute, code improvement
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.h
index 2e19e0f731e873527fc0d12da6d466a4447bc039..ad735c09b6d0d36947b59a6b941977d59cd1770d 100755 (executable)
@@ -302,6 +302,15 @@ bool MODULEBASE_EXPORT askToDelete(const std::set<FeaturePtr> aFeatures,
 /// \param theFeatures an out conteiner of features
 void MODULEBASE_EXPORT convertToFeatures(const QObjectPtrList& theObjects, std::set<FeaturePtr>& theFeatures);
 
+
+/// Returns translation from the given data.
+/// 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
+/// \param theParams a list of parameters (can be empty)
+void MODULEBASE_EXPORT translate(const std::string& theContext, std::string& theMessage);
+
 }
 
 #endif