]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3035: Translations for buttons tooltips
authorvsv <vsv@opencascade.com>
Thu, 3 Oct 2019 08:57:52 +0000 (11:57 +0300)
committervsv <vsv@opencascade.com>
Thu, 3 Oct 2019 08:57:52 +0000 (11:57 +0300)
src/XGUI/XGUI_ActionsMgr.cpp
src/XGUI/XGUI_msg_fr.ts

index 644027633cb26a7673b98cdf51769f905a44f937..2c2b87f4c8d7df3b455baf1f843369b8c135c28c 100644 (file)
@@ -251,28 +251,28 @@ QAction* XGUI_ActionsMgr::operationStateAction(OperationStateActionId theId)
       case Accept:
       case AcceptAll: {
         aResult = ModuleBase_Tools::createAction(QIcon(":pictures/button_ok.png"),
-                            "Apply" /*empty to show error*/, aParent);
+                            tr("Apply"), aParent);
       }
       break;
       case AcceptPlus: {
         aResult = ModuleBase_Tools::createAction(QIcon(":pictures/button_ok-plus.png"),
-                            "Apply and continue" /*empty to show error*/, aParent);
+                            tr("Apply and continue"), aParent);
       }
       break;
       case Abort:
       case AbortAll: {
-        aResult = ModuleBase_Tools::createAction(QIcon(":pictures/button_cancel.png"), "Cancel",
+        aResult = ModuleBase_Tools::createAction(QIcon(":pictures/button_cancel.png"), tr("Cancel"),
                                                  aParent);
       }
       break;
       case Help: {
-        aResult = ModuleBase_Tools::createAction(QIcon(":pictures/button_help.png"), "Help",
+        aResult = ModuleBase_Tools::createAction(QIcon(":pictures/button_help.png"), tr("Help"),
                                                  aParent);
       }
       break;
       case Preview: {
         aResult = ModuleBase_Tools::createAction(QIcon(), tr("See preview"),
-                                                 aParent, 0, 0, "Compute preview");
+                                                 aParent, 0, 0, tr("Compute preview"));
         aResult->setStatusTip(aResult->toolTip());
       }
       break;
index 7eaaaf252a335018b27d5dbbd03c1016d0f6e85c..26863da83a1ef7c4493022e9b2532f04923ab945 100644 (file)
         <source>Shortcut %1 is already defined. Ignore.</source>
         <translation>Le raccourci %1 est déjà défini. Ignorer.</translation>
     </message>
+    <message>
+        <location filename="XGUI_ActionsMgr.cpp" line="254"/>
+        <source>Apply</source>
+        <translation>Appliquer</translation>
+    </message>
+    <message>
+        <location filename="XGUI_ActionsMgr.cpp" line="259"/>
+        <source>Apply and continue</source>
+        <translation>Appliquer et continuer</translation>
+    </message>
+    <message>
+        <location filename="XGUI_ActionsMgr.cpp" line="264"/>
+        <source>Cancel</source>
+        <translation>Annuler</translation>
+    </message>
+    <message>
+        <location filename="XGUI_ActionsMgr.cpp" line="269"/>
+        <source>Help</source>
+        <translation>Aide</translation>
+    </message>
     <message>
         <location filename="XGUI_ActionsMgr.cpp" line="274"/>
         <source>See preview</source>
         <translation>Voir l&apos;aperçu</translation>
     </message>
+    <message>
+        <location filename="XGUI_ActionsMgr.cpp" line="275"/>
+        <source>Compute preview</source>
+        <translation>Calculer l&apos;aperçu avant impression</translation>
+    </message>
 </context>
 <context>
     <name>XGUI_ColorDialog</name>