summaryrefslogtreecommitdiffstats
path: root/poxml/transxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'poxml/transxx.cpp')
-rw-r--r--poxml/transxx.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/poxml/transxx.cpp b/poxml/transxx.cpp
index d876d56c..92004372 100644
--- a/poxml/transxx.cpp
+++ b/poxml/transxx.cpp
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
return 1;
}
- const bool is_desktop = filename.find( "desktop_") >= 0;
+ const bool is_desktop = filename.tqfind( "desktop_") >= 0;
// The header is the last item (due too the sorting)
MsgList::const_iterator header = --translated.end();
@@ -62,7 +62,7 @@ int main(int argc, char **argv)
headerLines.gres( TQRegExp( "^Last-Translator:.*" ), "Last-Translator: transxx program <null@kde.org>" );
headerLines.gres( TQRegExp( "^Language-Team:.*" ), "Language-Team: Test Language <kde-i18n-doc@kde.org>" );
TQString revisionDate ( "PO-Revision-Date: " );
- const TQDateTime dt = TQDateTime::currentDateTime( Qt::UTC );
+ const TQDateTime dt = TQDateTime::tqcurrentDateTime( Qt::UTC );
revisionDate += dt.toString( "yyyy-MM-dd hh:mm+0000" );
headerLines.gres( TQRegExp( "^PO-Revision-Date:.*" ), revisionDate );
headerLines << "Plural-Forms: nplurals=1; plural=0;";
@@ -85,22 +85,22 @@ int main(int argc, char **argv)
TQString msgstr;
- if ( msgid.find( "Definition of PluralForm" ) != -1 ) {
+ if ( msgid.tqfind( "Definition of PluralForm" ) != -1 ) {
outputMsg("msgstr", "NoPlural");
cout << "\n";
continue;
}
if ( is_desktop ) {
- msgstr = msgid.left( msgid.find( '=' ) + 1);
- msgstr += translation + msgid.mid( msgid.find( '=' ) + 1) + translation;
+ msgstr = msgid.left( msgid.tqfind( '=' ) + 1);
+ msgstr += translation + msgid.mid( msgid.tqfind( '=' ) + 1) + translation;
outputMsg( "msgstr", escapePO(msgstr) );
cout << "\n";
continue;
}
if (msgid.startsWith("_n: ") || msgid.startsWith("_: ") ) { // KDE extentions
- msgid = msgid.mid(msgid.find("\\n") + 2, msgid.length());
+ msgid = msgid.mid(msgid.tqfind("\\n") + 2, msgid.length());
}
if (msgid.endsWith("%"))