From 56bb9961db1158250bbfe971f4556b56c0bd6581 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 09 Jan 2004 19:13:35 +0000 Subject: Update lupdate and shared to Qt3.3 qt-copy sources Some special replacement for $$(OPIEDIR) to make ar_* happy --- (limited to 'development/translation/opie-lupdate/main.cpp') diff --git a/development/translation/opie-lupdate/main.cpp b/development/translation/opie-lupdate/main.cpp index ce65e7a..bf16fd7 100644 --- a/development/translation/opie-lupdate/main.cpp +++ b/development/translation/opie-lupdate/main.cpp @@ -62,6 +62,15 @@ static void printUsage() " Display the version of lupdate and exit\n" ); } +/*static QString opie_escape( const QString& str ) { + QString ret = str.stripWhiteSpace(); + qWarning(ret); + if ( ret.startsWith("$$(OPIEDIR)") ) + ret = ret.replace("$$(OPIEDIR)", OPIE::self()->opieDir() ); + qWarning(ret); + return ret; + }*/ + static void updateTsFiles( const MetaTranslator& fetchedTor, const QString& opiedir, const QStringList& languages, @@ -150,7 +159,7 @@ int main( int argc, char **argv ) tsFileNames.clear(); isLib = FALSE; - QMap tagMap = proFileTagMap( fullText ); + QMap tagMap = proFileTagMap( fullText, OPIE::self()->opieDir() ); QMap::Iterator it; for ( it = tagMap.begin(); it != tagMap.end(); ++it ) { -- cgit v0.9.0.2