]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disable translation
authorvsv <vsv@opencascade.com>
Mon, 7 Oct 2019 11:33:37 +0000 (14:33 +0300)
committervsv <vsv@opencascade.com>
Mon, 7 Oct 2019 11:33:51 +0000 (14:33 +0300)
CMakeLists.txt
src/XGUI/XGUI_Workshop.cpp

index dfc3a0edbd7580f71b5eed7faa7b2a195bf5e74c..23c027052ffa1aa04261da269f0ac050205294f2 100644 (file)
@@ -120,6 +120,13 @@ ENDIF(${HAVE_SALOME})
 # Sketcher: Change radius of circular edges while dragging a point on the edge
 SET(SKETCHER_CHANGE_RADIUS_WHEN_MOVE TRUE)
 
+SET(MAKE_TRANSLATION NO)
+
+IF(${MAKE_TRANSLATION})
+       ADD_DEFINITIONS( -DMAKE_TRANSLATION )
+ENDIF(${MAKE_TRANSLATION})
+
+
 ADD_SUBDIRECTORY (src/Config)
 ADD_SUBDIRECTORY (src/Events)
 ADD_SUBDIRECTORY (src/Selector)
index 88386696d1aa2190e1dfcbac18a8a6be5686f142..2c6787a1972f3032076019be00cc33d7fca060c8 100644 (file)
@@ -219,13 +219,16 @@ XGUI_Workshop::XGUI_Workshop(XGUI_SalomeConnector* theConnector)
 
   // Load translations
   QStringList aLangs;
-  //aLangs << "*_en.ts"; // load by default eng translations
+#ifdef MAKE_TRANSLATION
   QString aCurrLang = aResMgr->stringValue("language", "language", "en");
   if(aCurrLang == "en") {
     aLangs << "*_en.ts";
   } else {
     aLangs << "*_" + aCurrLang + ".ts"; // then replace with translated files
   }
+#else
+  aLangs << "*_en.ts"; // load by default eng translations
+#endif
 
   foreach(QString aLang, aLangs) {
     QStringList aFilters;