diff options
Diffstat (limited to 'kbabel/datatools/not-translated')
-rw-r--r-- | kbabel/datatools/not-translated/main.cc | 20 | ||||
-rw-r--r-- | kbabel/datatools/not-translated/main.h | 8 |
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 |