diff options
Diffstat (limited to 'kbabel/datatools/not-translated/main.cc')
-rw-r--r-- | kbabel/datatools/not-translated/main.cc | 20 |
1 files changed, 10 insertions, 10 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 ); } } |