summaryrefslogtreecommitdiffstats
path: root/pylupdate3
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:23:29 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:23:29 -0600
commit2dfc9a2950b3c7179ede2903d5713a8486cb0e8d (patch)
treec1725476af2ed61a0c705b9312311e971d3c07b6 /pylupdate3
parent104997c6f7b545c0095fdc1b1573367bc4cb4d5b (diff)
downloadpytqt-2dfc9a2950b3c7179ede2903d5713a8486cb0e8d.tar.gz
pytqt-2dfc9a2950b3c7179ede2903d5713a8486cb0e8d.zip
Rename additional global TQt functions
Diffstat (limited to 'pylupdate3')
-rw-r--r--pylupdate3/fetchtr.cpp6
-rw-r--r--pylupdate3/main.cpp14
-rw-r--r--pylupdate3/merge.cpp2
-rw-r--r--pylupdate3/metatranslator.cpp4
-rw-r--r--pylupdate3/numberh.cpp2
-rw-r--r--pylupdate3/sametexth.cpp2
6 files changed, 15 insertions, 15 deletions
diff --git a/pylupdate3/fetchtr.cpp b/pylupdate3/fetchtr.cpp
index c21fcff..96978cd 100644
--- a/pylupdate3/fetchtr.cpp
+++ b/pylupdate3/fetchtr.cpp
@@ -262,7 +262,7 @@ static int getToken()
if ( yyCh != quoteChar ) {
printf("%c\n", yyCh);
- qWarning( "%s:%d: Unterminated string",
+ tqWarning( "%s:%d: Unterminated string",
(const char *) yyFileName, yyLineNo );
}
@@ -434,7 +434,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
}
if ( yyParenDepth != 0 )
- qWarning( "%s: Unbalanced parentheses in Python code",
+ tqWarning( "%s: Unbalanced parentheses in Python code",
(const char *) yyFileName );
}
@@ -444,7 +444,7 @@ void fetchtr_py( const char *fileName, MetaTranslator *tor,
yyInFile = fopen( fileName, "r" );
if ( yyInFile == 0 ) {
if ( mustExist )
- qWarning( "pylupdate error: cannot open Python source file '%s': %s",
+ tqWarning( "pylupdate error: cannot open Python source file '%s': %s",
fileName, strerror(errno) );
return;
}
diff --git a/pylupdate3/main.cpp b/pylupdate3/main.cpp
index 042fdc4..8b0c24c 100644
--- a/pylupdate3/main.cpp
+++ b/pylupdate3/main.cpp
@@ -51,7 +51,7 @@ typedef TQValueList<MetaTranslatorMessage> TML;
static void printUsage()
{
- qWarning( "Usage: pylupdate [options] file.pro...\n"
+ tqWarning( "Usage: pylupdate [options] file.pro...\n"
"Options:\n"
" -help Display this information and exits\n"
" -noobsolete\n"
@@ -80,14 +80,14 @@ int main( int argc, char **argv )
verbose = TRUE;
continue;
} else if ( qstrcmp(argv[i], "-version") == 0 ) {
- qWarning( "pylupdate version %s", TQT_VERSION_STR );
+ tqWarning( "pylupdate version %s", TQT_VERSION_STR );
return 0;
}
numProFiles++;
TQFile f( argv[i] );
if ( !f.open(IO_ReadOnly) ) {
- qWarning( "pylupdate error: Cannot open project file '%s': %s",
+ tqWarning( "pylupdate error: Cannot open project file '%s': %s",
argv[i], strerror(errno) );
return 1;
}
@@ -129,20 +129,20 @@ int main( int argc, char **argv )
if ( !codec.isEmpty() )
tor.setCodec( codec );
if ( verbose )
- qWarning( "Updating '%s'...", (*tf).latin1() );
+ tqWarning( "Updating '%s'...", (*tf).latin1() );
merge( &tor, &fetchedTor, verbose );
if ( noObsolete )
tor.stripObsoleteMessages();
tor.stripEmptyContexts();
if ( !tor.save(*tf) )
- qWarning( "pylupdate error: Cannot save '%s': %s", (*tf).latin1(),
+ tqWarning( "pylupdate error: Cannot save '%s': %s", (*tf).latin1(),
strerror(errno) );
}
if ( !metSomething ) {
- qWarning( "pylupdate warning: File '%s' does not look like a project"
+ tqWarning( "pylupdate warning: File '%s' does not look like a project"
" file", argv[i] );
} else if ( translatorFiles.isEmpty() ) {
- qWarning( "pylupdate warning: Met no 'TRANSLATIONS' entry in project"
+ tqWarning( "pylupdate warning: Met no 'TRANSLATIONS' entry in project"
" file '%s'", argv[i] );
}
}
diff --git a/pylupdate3/merge.cpp b/pylupdate3/merge.cpp
index d40c92c..8559830 100644
--- a/pylupdate3/merge.cpp
+++ b/pylupdate3/merge.cpp
@@ -105,6 +105,6 @@ void merge( MetaTranslator *tor, const MetaTranslator *virginTor, bool verbose )
applyNumberHeuristic( tor, verbose );
if ( verbose )
- qWarning( " %d known, %d new and %d obsoleted messages",
+ tqWarning( " %d known, %d new and %d obsoleted messages",
known, neww, obsoleted );
}
diff --git a/pylupdate3/metatranslator.cpp b/pylupdate3/metatranslator.cpp
index ab97b33..67b9ca6 100644
--- a/pylupdate3/metatranslator.cpp
+++ b/pylupdate3/metatranslator.cpp
@@ -175,7 +175,7 @@ bool TsHandler::fatalError( const TQXmlParseException& exception )
exception.lineNumber(), exception.columnNumber(),
exception.message().latin1() );
if ( tqApp == 0 )
- qWarning( "XML error: %s", msg.latin1() );
+ tqWarning( "XML error: %s", msg.latin1() );
else
TQMessageBox::information( tqApp->mainWidget(),
TQObject::tr("TQt Linguist"), msg );
@@ -453,7 +453,7 @@ bool MetaTranslator::release( const TQString& filename, bool verbose ) const
bool saved = tor.save( filename, TQTranslator::Stripped );
if ( saved && verbose )
- qWarning( " %d finished, %d unfinished and %d untranslated messages",
+ tqWarning( " %d finished, %d unfinished and %d untranslated messages",
finished, unfinished, untranslated );
return saved;
diff --git a/pylupdate3/numberh.cpp b/pylupdate3/numberh.cpp
index 4ba53d0..e5ff5de 100644
--- a/pylupdate3/numberh.cpp
+++ b/pylupdate3/numberh.cpp
@@ -225,6 +225,6 @@ void applyNumberHeuristic( MetaTranslator *tor, bool verbose )
}
}
if ( verbose && inserted != 0 )
- qWarning( " number heuristic provided %d translation%s",
+ tqWarning( " number heuristic provided %d translation%s",
inserted, inserted == 1 ? "" : "s" );
}
diff --git a/pylupdate3/sametexth.cpp b/pylupdate3/sametexth.cpp
index 0f8f56a..fd67a55 100644
--- a/pylupdate3/sametexth.cpp
+++ b/pylupdate3/sametexth.cpp
@@ -73,6 +73,6 @@ void applySameTextHeuristic( MetaTranslator *tor, bool verbose )
}
}
if ( verbose && inserted != 0 )
- qWarning( " same-text heuristic provided %d translation%s",
+ tqWarning( " same-text heuristic provided %d translation%s",
inserted, inserted == 1 ? "" : "s" );
}