From c6f66a5941af8309bf220b24813e4528b95c240a Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 18 Mar 2010 10:29:47 +0000 Subject: [PATCH] implementation of i18n for datum labels --- src/QDS/QDS_Datum.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2