From: vsv Date: Mon, 7 Oct 2019 11:33:37 +0000 (+0300) Subject: Disable translation X-Git-Tag: V9_4_0a2~4^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2c832ecd8e1b2d536a4d5192b41db4de6113b98;p=modules%2Fshaper.git Disable translation --- diff --git a/CMakeLists.txt b/CMakeLists.txt index dfc3a0edb..23c027052 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 88386696d..2c6787a19 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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;