From: asl Date: Thu, 18 Mar 2010 10:29:47 +0000 (+0000) Subject: implementation of i18n for datum labels X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6f66a5941af8309bf220b24813e4528b95c240a;p=modules%2Fgui.git implementation of i18n for datum labels --- diff --git a/src/QDS/QDS_Datum.cxx b/src/QDS/QDS_Datum.cxx index 4394119f5..7360486eb 100644 --- a/src/QDS/QDS_Datum.cxx +++ b/src/QDS/QDS_Datum.cxx @@ -342,9 +342,11 @@ QString QDS_Datum::label() const if( labStr.isNull() ) labStr = toQString( myDicItem->GetId() ); } - if( myTr ) + if( myTr && labStr.length()>0 ) { - QString dest = QApplication::translate( "QDS", labStr.toLatin1().constData() ); + QString source = "QDS_" + labStr; + source.replace( "::", "_" ); + QString dest = QApplication::translate( "", source.toLatin1().constData() ); if( labStr != dest ) labStr = dest; }