summaryrefslogtreecommitdiffstats
path: root/poxml/transxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'poxml/transxx.cpp')
-rw-r--r--poxml/transxx.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/poxml/transxx.cpp b/poxml/transxx.cpp
index dc3dde00..d876d56c 100644
--- a/poxml/transxx.cpp
+++ b/poxml/transxx.cpp
@@ -4,9 +4,9 @@ using namespace std;
#include <fstream>
#include "GettextLexer.hpp"
-#include <qregexp.h>
-#include <qdatetime.h>
-#include <qfileinfo.h>
+#include <tqregexp.h>
+#include <tqdatetime.h>
+#include <tqfileinfo.h>
int main(int argc, char **argv)
{
@@ -15,15 +15,15 @@ int main(int argc, char **argv)
return -1;
}
- QString translation = "xx";
- QCString filename;
+ TQString translation = "xx";
+ TQCString filename;
if( argc == 4 ) {
- if( argv[1]!=QString("--text") ) {
+ if( argv[1]!=TQString("--text") ) {
qWarning( "usage: %s [--text translation] potfile", argv[0] );
return -1;
}
- translation = QString::fromLocal8Bit(argv[2]);
+ translation = TQString::fromLocal8Bit(argv[2]);
filename = argv[3];
} else {
filename = argv[1];
@@ -54,17 +54,17 @@ int main(int argc, char **argv)
}
else
{
- QStringList headerLines = QStringList::split( "\\n", ( *header ).msgstr, false );
- QFileInfo fi( QString::fromLocal8Bit( filename ) );
- QString projectId( "Project-Id-Version: " );
+ TQStringList headerLines = TQStringList::split( "\\n", ( *header ).msgstr, false );
+ TQFileInfo fi( TQString::fromLocal8Bit( filename ) );
+ TQString projectId( "Project-Id-Version: " );
projectId += fi.baseName( false );
- headerLines.gres( QRegExp( "^Project-Id-Version:.*" ), projectId );
- headerLines.gres( QRegExp( "^Last-Translator:.*" ), "Last-Translator: transxx program <null@kde.org>" );
- headerLines.gres( QRegExp( "^Language-Team:.*" ), "Language-Team: Test Language <kde-i18n-doc@kde.org>" );
- QString revisionDate ( "PO-Revision-Date: " );
- const QDateTime dt = QDateTime::currentDateTime( Qt::UTC );
+ headerLines.gres( TQRegExp( "^Project-Id-Version:.*" ), projectId );
+ 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 );
revisionDate += dt.toString( "yyyy-MM-dd hh:mm+0000" );
- headerLines.gres( QRegExp( "^PO-Revision-Date:.*" ), revisionDate );
+ headerLines.gres( TQRegExp( "^PO-Revision-Date:.*" ), revisionDate );
headerLines << "Plural-Forms: nplurals=1; plural=0;";
outputMsg ( "msgid", "" );
outputMsg ( "msgstr", escapePO( headerLines.join("\\n") + "\\n" ) );
@@ -74,8 +74,8 @@ int main(int argc, char **argv)
for (MsgList::ConstIterator it = translated.begin();
it != translated.end(); ++it)
{
- QString msgid = ( *it ).msgid;
- QString msgid_plural = ( *it ).msgid_plural;
+ TQString msgid = ( *it ).msgid;
+ TQString msgid_plural = ( *it ).msgid_plural;
if ( !msgid.isEmpty() ) {
outputMsg("msgid", escapePO( msgid) );
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
outputMsg("msgid_plural", escapePO( msgid_plural ) );
}
- QString msgstr;
+ TQString msgstr;
if ( msgid.find( "Definition of PluralForm" ) != -1 ) {
outputMsg("msgstr", "NoPlural");