summaryrefslogtreecommitdiffstats
path: root/kbabel/datatools/not-translated
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/datatools/not-translated
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/datatools/not-translated')
-rw-r--r--kbabel/datatools/not-translated/main.cc20
-rw-r--r--kbabel/datatools/not-translated/main.h8
2 files changed, 14 insertions, 14 deletions
diff --git a/kbabel/datatools/not-translated/main.cc b/kbabel/datatools/not-translated/main.cc
index 0714caf3..22e23c84 100644
--- a/kbabel/datatools/not-translated/main.cc
+++ b/kbabel/datatools/not-translated/main.cc
@@ -54,13 +54,13 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_nottranslatedtool, KGenericFactory<NotTransla
using namespace KBabel;
-NotTranslatedTool::NotTranslatedTool( QObject* parent, const char* name, const QStringList & )
+NotTranslatedTool::NotTranslatedTool( TQObject* parent, const char* name, const TQStringList & )
: KDataTool( parent, name ) , _cache_origin( 0 )
{
i18n("which check found errors","English text in translation");
}
-bool NotTranslatedTool::run( const QString& command, void* data, const QString& datatype, const QString& mimetype )
+bool NotTranslatedTool::run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype )
{
if ( command != "validate" )
@@ -97,19 +97,19 @@ bool NotTranslatedTool::run( const QString& command, void* data, const QString&
}
//FIXME Expand this to do substring matching of non-translation
- QStringList id, str;
+ TQStringList id, str;
if( item->pluralForm() == KDESpecific ) {
- str = QStringList::split( "\\n", item->msgstr().first(), true );
- id = QStringList::split( "\\n",
- item->msgid().first().replace( QRegExp(_plurals), ""), true );
+ str = TQStringList::split( "\\n", item->msgstr().first(), true );
+ id = TQStringList::split( "\\n",
+ item->msgid().first().replace( TQRegExp(_plurals), ""), true );
} else {
str = item->msgstr();
id = item->msgid();
}
- for( QStringList::Iterator i = id.begin() ; i != id.end() ; i++ ) {
- QString id_str = (*i).replace( QRegExp(_context), "");
- for( QStringList::Iterator j = str.begin() ; j != str.end() ; j++ ) {
- QString str_str = (*j);
+ for( TQStringList::Iterator i = id.begin() ; i != id.end() ; i++ ) {
+ TQString id_str = (*i).replace( TQRegExp(_context), "");
+ for( TQStringList::Iterator j = str.begin() ; j != str.end() ; j++ ) {
+ TQString str_str = (*j);
hasError = hasError || ( id_str == str_str );
}
}
diff --git a/kbabel/datatools/not-translated/main.h b/kbabel/datatools/not-translated/main.h
index 3b1176e8..c1aeabd8 100644
--- a/kbabel/datatools/not-translated/main.h
+++ b/kbabel/datatools/not-translated/main.h
@@ -43,13 +43,13 @@ class NotTranslatedTool : public KDataTool
Q_OBJECT
public:
- NotTranslatedTool( QObject* parent, const char* name, const QStringList & );
- virtual bool run( const QString& command, void* data, const QString& datatype, const QString& mimetype);
+ NotTranslatedTool( TQObject* parent, const char* name, const TQStringList & );
+ virtual bool run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype);
private:
KBabel::Project::Ptr _cache_origin;
- QRegExp _context;
- QRegExp _plurals;
+ TQRegExp _context;
+ TQRegExp _plurals;
};
#endif