From: vsr Date: Mon, 17 Mar 2008 14:35:49 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: VSR_280308~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dcab6c3d1f8c9f2da56076c9b4fef86d0c64447c;p=modules%2Fsmesh.git *** empty log message *** --- diff --git a/src/SMESHGUI/SMESHGUI_XmlHandler.cxx b/src/SMESHGUI/SMESHGUI_XmlHandler.cxx index a0859ceef..3bc04fdfa 100644 --- a/src/SMESHGUI/SMESHGUI_XmlHandler.cxx +++ b/src/SMESHGUI/SMESHGUI_XmlHandler.cxx @@ -102,8 +102,9 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&, { MESSAGE("Loading Resources " << aResName.toLatin1().data()); SUIT_ResourceMgr* resMgr = SMESHGUI::resourceMgr(); - resMgr->loadTranslator("resources",aResName+"_msg_en.qm"); - resMgr->loadTranslator("resources",aResName+"_images.qm"); + QString lang = resMgr->stringValue( resMgr->langSection(), "language", "en" ); + resMgr->loadTranslator( "resources", QString( "%1_msg_%2.qm" ).arg( aResName, lang ) ); + resMgr->loadTranslator( "resources", QString( "%1_images.qm" ).arg( aResName, lang ) ); } } }