summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-18 16:33:31 +0900
committerMichele Calgaro <[email protected]>2023-11-20 13:14:40 +0900
commit390bf1c592924b4b9cbc51c31a2618dccaea9241 (patch)
tree5e54996aad792aeb48425b9acf64912a0b9209d3
parentef06f14f2475bd08d3ea2ceec54a7b2238f3554e (diff)
downloadkoffice-390bf1c592924b4b9cbc51c31a2618dccaea9241.tar.gz
koffice-390bf1c592924b4b9cbc51c31a2618dccaea9241.zip
Replace various strings '#define'd in tqtinterface
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--kexi/main/kexinamewidget.cpp2
-rw-r--r--kugar/CMakeL10n.txt2
-rw-r--r--kugar/kudesigner_lib/structurewidget.cpp26
3 files changed, 15 insertions, 15 deletions
diff --git a/kexi/main/kexinamewidget.cpp b/kexi/main/kexinamewidget.cpp
index 7176aa6d..51c1e045 100644
--- a/kexi/main/kexinamewidget.cpp
+++ b/kexi/main/kexinamewidget.cpp
@@ -74,7 +74,7 @@ void KexiNameWidget::init(
this, "lbl_caption" );
lyr->addWidget( lbl_caption, 1, 0 );
- lbl_name = new TQLabel( nameLabel.isEmpty() ? tqtr( "Name:" ) : nameLabel,
+ lbl_name = new TQLabel( nameLabel.isEmpty() ? i18n( "Name:" ) : nameLabel,
this, "lbl_name" );
lyr->addWidget( lbl_name, 2, 0 );
diff --git a/kugar/CMakeL10n.txt b/kugar/CMakeL10n.txt
index 42b3d1b3..d576e8e6 100644
--- a/kugar/CMakeL10n.txt
+++ b/kugar/CMakeL10n.txt
@@ -2,5 +2,5 @@
tde_l10n_create_template(
CATALOG "kugar"
- KEYWORDS "tr" "tqtr"
+ KEYWORDS "tr"
)
diff --git a/kugar/kudesigner_lib/structurewidget.cpp b/kugar/kudesigner_lib/structurewidget.cpp
index 83b6db46..5c27be45 100644
--- a/kugar/kudesigner_lib/structurewidget.cpp
+++ b/kugar/kudesigner_lib/structurewidget.cpp
@@ -120,29 +120,29 @@ void StructureWidget::refreshSection( Kudesigner::Band *section, StructureItem *
switch ( section->rtti() )
{
case Kudesigner::Rtti_ReportHeader:
- name = tqtr( "Report Header" );
+ name = tr( "Report Header" );
break;
case Kudesigner::Rtti_ReportFooter:
- name = tqtr( "Report Footer" );
+ name = tr( "Report Footer" );
break;
case Kudesigner::Rtti_PageFooter:
- name = tqtr( "Page Footer" );
+ name = tr( "Page Footer" );
break;
case Kudesigner::Rtti_PageHeader:
- name = tqtr( "Page Header" );
+ name = tr( "Page Header" );
break;
case Kudesigner::Rtti_Detail:
- name = tqtr( "Detail" );
+ name = tr( "Detail" );
break;
case Kudesigner::Rtti_DetailHeader:
- name = tqtr( "Detail Header" );
+ name = tr( "Detail Header" );
break;
case Kudesigner::Rtti_DetailFooter:
- name = tqtr( "Detail Footer" );
+ name = tr( "Detail Footer" );
break;
}
if ( level > 0 )
- name += tqtr( " (level %1)" ).arg( level );
+ name += tr( " (level %1)" ).arg( level );
StructureItem *item = new StructureItem( root, name );
m_items[ section ] = item;
@@ -165,21 +165,21 @@ void StructureWidget::refreshSectionContents( Kudesigner::Band *section, Structu
switch ( box->rtti() )
{
case Kudesigner::Rtti_Label:
- name = tqtr( "Label: %1" ).arg( box->props[ "Text" ].value().toString() );
+ name = tr( "Label: %1" ).arg( box->props[ "Text" ].value().toString() );
break;
case Kudesigner::Rtti_Field:
- name = tqtr( "Field: %1" ).arg( box->props[ "Field" ].value().toString() );
+ name = tr( "Field: %1" ).arg( box->props[ "Field" ].value().toString() );
break;
case Kudesigner::Rtti_Calculated:
- name = tqtr( "Calculated Field: %1" ).arg( box->props[ "Field" ].value().toString() );
+ name = tr( "Calculated Field: %1" ).arg( box->props[ "Field" ].value().toString() );
break;
case Kudesigner::Rtti_Special:
idx = box->props[ "Type" ].listData()->keys.findIndex(
box->props[ "Type" ].value().toInt() );
- name = tqtr( "Special Field: %1" ).arg( box->props[ "Type" ].listData()->keys[ idx ].toString() );
+ name = tr( "Special Field: %1" ).arg( box->props[ "Type" ].listData()->keys[ idx ].toString() );
break;
case Kudesigner::Rtti_Line:
- name = tqtr( "Line" );
+ name = tr( "Line" );
break;
}