Revert "Update minor TQt3 tool names to match current TQt3 sources in GIT"

This reverts commit 40e50e6f20.
pull/1/head
Timothy Pearson 11 years ago
parent 40e50e6f20
commit 36753ac659

@ -1,14 +1,14 @@
#!/usr/bin/perl -w
#
# in sh/bash/zsh:
# make 2>&1 | .../qt/bin/ttqt20fix
# make 2>&1 | .../qt/bin/tqt20fix
# in csh/tcsh
# make |& .../qt/bin/ttqt20fix
# make |& .../qt/bin/tqt20fix
#
# repeat as long as ttqt20fix says to. if your make supports the -k
# repeat as long as tqt20fix says to. if your make supports the -k
# flag, that speeds up the process a bit.
#
# ttqt20fix tends to fix a bit over half of the remaining problems in
# tqt20fix tends to fix a bit over half of the remaining problems in
# each run.
#
# if you don't use gcc, you will need to change parseline.
@ -222,7 +222,7 @@ while( <STDIN> ) {
if ( defined( $lastfile ) ) {
open( O, "> $lastfile" ) ||
die "cannot write to $lastfile, stopped";
print "ttqt20fix: writing $lastfile (changes: $changes)\n";
print "tqt20fix: writing $lastfile (changes: $changes)\n";
print O @currentfile;
close O;
}
@ -248,12 +248,12 @@ while( <STDIN> ) {
if ( defined( $changes) && $changes > 0 && defined( $lastfile ) ) {
open( O, "> $lastfile" ) ||
die "cannot write to $lastfile, stopped";
print "ttqt20fix: writing $lastfile (changes: $changes)\n";
print "tqt20fix: writing $lastfile (changes: $changes)\n";
print O @currentfile;
close O;
}
if ( defined( $totalchanges) && $totalchanges > 0 ) {
print "ttqt20fix: total changes: $totalchanges\nttqt20fix: rerun recommended\n";
print "tqt20fix: total changes: $totalchanges\ntqt20fix: rerun recommended\n";
}

@ -37,7 +37,7 @@ msgstr ""
$scope = "";
if ( $#ARGV < 0 ) {
print STDERR "Usage: tqttqtfindtr sourcefile ... >project.po\n";
print STDERR "Usage: tqtfindtr sourcefile ... >project.po\n";
exit 1;
}

@ -347,7 +347,7 @@ file for <em>lupdate</em>; your <tt>qmake</tt> project file will work fine once
you add the <tt>TRANSLATIONS</tt> entry.
<p> In your application, you must <a href="ntqtranslator.html#load">TQTranslator::load</a>() the translation
files appropriate for the user's language, and install them using <a href="ntqapplication.html#installTranslator">TQApplication::installTranslator</a>().
<p> If you have been using the old TQt tools (<tt>tqttqtfindtr</tt>, <tt>msg2tqm</tt> and <tt>tqttqtmergetr</tt>), you can use <em>ttqm2ts</em> to convert your old <tt>.qm</tt> files.
<p> If you have been using the old TQt tools (<tt>tqtfindtr</tt>, <tt>msg2tqm</tt> and <tt>tqtmergetr</tt>), you can use <em>tqm2ts</em> to convert your old <tt>.qm</tt> files.
<p> <em>linguist</em>, <em>lupdate</em> and <em>lrelease</em> are installed in the <tt>bin</tt>
subdirectory of the base directory TQt is installed into. Click Help|Manual
in <em>TQt Linguist</em> to access the user's manual; it contains a tutorial

@ -32,7 +32,7 @@ body { background: #ffffff; color: black; }
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><p align="right">[<a href="linguist-manual-1.html">Prev: Introduction</a>] [<a href="linguist-manual.html">Home</a>] [<a href="linguist-manual-3.html">Next: Translators</a>]</p>
<h2 align="center">Release Manager</h2>
<!-- index Release Manager --><p>Two tools are provided for the release manager, <a href="linguist-manual-2.html#2">lupdate</a> and <a href="linguist-manual-2.html#3">lrelease</a>. These tools depend on <em>qmake</em> project files. You don't have to use <em>qmake</em>, though.</p>
<p>A third tool, <tt>ttqm2ts</tt>, can be used for converting TQt 2.x message files to <tt>.ts</tt> files.</p>
<p>A third tool, <tt>tqm2ts</tt>, can be used for converting TQt 2.x message files to <tt>.ts</tt> files.</p>
<h3><a name="1"></a>TQt Project Files</h3>
<!-- index .pro Files --><!-- index Project Files --><!-- index qmake!Project Files --><p><a href="linguist-manual-2.html#2">lupdate</a> and <a href="linguist-manual-2.html#3">lrelease</a> depend on information in the application's <tt>.pro</tt> TQt project file. There must be an entry in the <tt>TRANSLATIONS</tt> section of the project file for each language that is additional to the native language. A typical entry looks like this:</p>
<!-- index TRANSLATIONS!in Project Files --><pre> TRANSLATIONS = tt2_fr.ts \

@ -134,7 +134,7 @@ etc. are totally unaffected, but code that is
<em>not</em> in functions of classes inherited from <code>TQt</code>,
you must qualify these identifiers like this: <code>TQt::red,
TQt::LeftButton, TQt::AlignRight</code>, etc.
<p> <p>The <code>qt/bin/ttqt20fix</code> script helps to fix the code that
<p> <p>The <code>qt/bin/tqt20fix</code> script helps to fix the code that
needs adaption, though most code does not need changing.
<p> Compiling with -DQT1COMPATIBILITY will help you get going with TQt 2.x
- it allows all the old "dirty namespace" identifiers from TQt 1.x to

@ -372,8 +372,8 @@ In your application, you must \l QTranslator::load() the translation
files appropriate for the user's language, and install them using \l
QApplication::installTranslator().
If you have been using the old Qt tools (\c tqttqtfindtr, \c msg2tqm and \c
tqttqtmergetr), you can use \e ttqm2ts to convert your old \c .qm files.
If you have been using the old Qt tools (\c tqtfindtr, \c msg2tqm and \c
tqtmergetr), you can use \e tqm2ts to convert your old \c .qm files.
\e linguist, \e lupdate and \e lrelease are installed in the \c bin
subdirectory of the base directory Qt is installed into. Click Help|Manual

@ -36,14 +36,14 @@ Debian distribution
(http://ftp.de.debian.org/debian/pool/main/q/qt-x11-free/)
qt-x11-free_3.3.8b-11.*
qt-x11-free_3.3.8b.orig.tar.gz
man1/tqttqtcreatecw.1
man1/tqtcreatecw.1
man1/designer.1
man1/tqttqtfindtr.1
man1/tqtfindtr.1
man1/linguist.1
man1/maketqpf.1
man1/tqttqtmergetr.1
man1/tqtmergetr.1
man1/msg2tqm.1
man1/qembed.1
man1/ttqt20fix.1
man1/tqt20fix.1
man1/qtconfig.1
man1/tqvfb.1

@ -1,10 +1,10 @@
.TH "ttqt20fix" "1" "3.0.3" "Troll Tech AS, Norway." ""
.TH "tqt20fix" "1" "3.0.3" "Troll Tech AS, Norway." ""
.SH "NAME"
.LP
ttqt20fix \- Helps clean namespace when porting an app from Qt1 to Qt2
tqt20fix \- Helps clean namespace when porting an app from Qt1 to Qt2
.SH "SYNTAX"
.LP
ttqt20fix myapp.cpp
tqt20fix myapp.cpp
.SH "DESCRIPTION"
.LP
@ -19,7 +19,7 @@ functions of classes inherited from Qt, you must qualify
these identifiers like this: Qt::red, Qt::LeftButton,
Qt::AlignRight, etc.
The qt/bin/ttqt20fix script helps to fix the code that
The qt/bin/tqt20fix script helps to fix the code that
needs adaption, though most code does not need changing.
Compiling with \-DQT1COMPATIBILITY will help you get going

@ -1,10 +1,10 @@
.TH "tqttqtcreatecw" "1" "3.0.3" "Troll Tech AS, Norway." ""
.TH "tqtcreatecw" "1" "3.0.3" "Troll Tech AS, Norway." ""
.SH "NAME"
.LP
tqttqtcreatecw \- custom widget description creater for Qt Designer
tqtcreatecw \- custom widget description creater for Qt Designer
.SH "SYNTAX"
.LP
tqttqtcreatecw <\fIfilename.cw\fP>
tqtcreatecw <\fIfilename.cw\fP>
.SH "DESCRIPTION"
.LP
This small application makes it much easier to create
@ -44,8 +44,8 @@ would write here
After that compile the program, link it with your custom
widget (library or object file) and run it like this:
(unix): ./tqttqtcreatecw mywidgets.cw
(win32): tqttqtcreatecw mywidgets.cw
(unix): ./tqtcreatecw mywidgets.cw
(win32): tqtcreatecw mywidgets.cw
After that you can import this description file into the
Qt Designer using the Custom\-Widget Dialog (See

@ -1,10 +1,10 @@
.TH "tqttqtfindtr" "1" "3.0.3" "Troll Tech AS, Norway." ""
.TH "tqtfindtr" "1" "3.0.3" "Troll Tech AS, Norway." ""
.SH "NAME"
.LP
tqttqtfindtr \- Extracts information about text to be translated
tqtfindtr \- Extracts information about text to be translated
.SH "SYNTAX"
.LP
tqttqtfindtr *.cpp *.h >myapp.po
tqtfindtr *.cpp *.h >myapp.po
.SH "DESCRIPTION"
.LP
@ -17,7 +17,7 @@ translated versions of the file would then be
myapp_de.po, myapp_fr.po, and myapp_ja.po for
translations in German, French and Japanese respectively.
tqttqtfindtr *.cpp *.h >myapp.po
tqtfindtr *.cpp *.h >myapp.po
copy myapp.po myapp_de.po
edit myapp_de.po
.SH "AUTHORS"

@ -1,21 +1,21 @@
.TH "tqttqtmergetr" "1" "3.0.3" "Troll Tech AS, Norway." ""
.TH "tqtmergetr" "1" "3.0.3" "Troll Tech AS, Norway." ""
.SH "NAME"
.LP
tqttqtmergetr \- Merge changes in translations
tqtmergetr \- Merge changes in translations
.SH "SYNTAX"
.LP
tqttqtmergetr myapp_de.po myapp.po
tqtmergetr myapp_de.po myapp.po
.SH "DESCRIPTION"
.LP
When the texts in your program change as it is developed,
a the base .po file can be regenerated using tqttqtfindtr,
then tqttqtmergetr can be used to merge the changes into the
a the base .po file can be regenerated using tqtfindtr,
then tqtmergetr can be used to merge the changes into the
other .po files:
tqttqtmergetr myapp_de.po myapp.po
tqttqtmergetr myapp_fr.po myapp.po
tqttqtmergetr myapp_ja.po myapp.po
tqtmergetr myapp_de.po myapp.po
tqtmergetr myapp_fr.po myapp.po
tqtmergetr myapp_ja.po myapp.po
The translation team then edits the new .po files to

@ -157,7 +157,7 @@ etc. are totally unaffected, but code that is
you must qualify these identifiers like this: <code>Qt::red,
Qt::LeftButton, Qt::AlignRight</code>, etc.
<p>The <code>qt/bin/ttqt20fix</code> script helps to fix the code that
<p>The <code>qt/bin/tqt20fix</code> script helps to fix the code that
needs adaption, though most code does not need changing.
Compiling with -DQT1COMPATIBILITY will help you get going with Qt 2.x

@ -43,7 +43,7 @@
#define Q1XCOMPATIBILITY_H
#error "Compatibility with TQt 1.x is no longer guaranteed. Please"
#error "update your code (for example using ttqt20fix script). We"
#error "update your code (for example using tqt20fix script). We"
#error "apologize for any inconvenience."
#endif // Q1XCOMPATIBILITY_H

@ -6,8 +6,8 @@ SUBDIRS = uic \
uilib \
designer \
app \
tools/tqttqtcreatecw \
tools/tqtqtconv2ui
tools/tqtcreatecw \
tools/tqtconv2ui
dll:SUBDIRS *= editor plugins
shared:SUBDIRS *= editor plugins

@ -186,7 +186,7 @@
</property>
<property name="whatsThis" stdset="0">
<string>&lt;b&gt;Load Descriptions&lt;/b&gt;&lt;p&gt;Loads a file which contains descriptions of custom widgets, so that these custom widgets can be used in the TQt Designer.&lt;/p&gt;
&lt;p&gt;Since it is a lot of work to type in all the information for custom widgets, you should consider using the tqttqtcreatecw tool which is in $QTDIR/tools/designer/tools/tqttqtcreatecw. Using tqttqtcreatecw you can create custom widget description files for your custom widgets without the need to type in all the information manually. For more information about the README file in the tqttqtcreatecw directory&lt;/p&gt;</string>
&lt;p&gt;Since it is a lot of work to type in all the information for custom widgets, you should consider using the tqtcreatecw tool which is in $QTDIR/tools/designer/tools/tqtcreatecw. Using tqtcreatecw you can create custom widget description files for your custom widgets without the need to type in all the information manually. For more information about the README file in the tqtcreatecw directory&lt;/p&gt;</string>
</property>
</widget>
<widget class="TQPushButton" row="4" column="1">

@ -424,7 +424,7 @@ so it is not possible to rename it to this name.</source>
</message>
<message encoding="UTF-8">
<source>&lt;b&gt;Load Descriptions&lt;/b&gt;&lt;p&gt;Loads a file which contains descriptions of custom widgets, so that these custom widgets can be used in the Qt Designer.&lt;/p&gt;
&lt;p&gt;As it is a lot of work to type in all the information for custom widgets, you should check the tool tqttqtcreatecw which you can find in $QTDIR/tools/designer/tools/tqttqtcreatecw. Using that tool you can create custom widget description files for your custom widgets without the need of typing in all that information. For more information about that see the README file in that directory&lt;/p&gt;</source>
&lt;p&gt;As it is a lot of work to type in all the information for custom widgets, you should check the tool tqtcreatecw which you can find in $QTDIR/tools/designer/tools/tqtcreatecw. Using that tool you can create custom widget description files for your custom widgets without the need of typing in all that information. For more information about that see the README file in that directory&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">

@ -424,7 +424,7 @@ so it is not possible to rename it to this name.</source>
</message>
<message encoding="UTF-8">
<source>&lt;b&gt;Load Descriptions&lt;/b&gt;&lt;p&gt;Loads a file which contains descriptions of custom widgets, so that these custom widgets can be used in the Qt Designer.&lt;/p&gt;
&lt;p&gt;As it is a lot of work to type in all the information for custom widgets, you should check the tool tqttqtcreatecw which you can find in $QTDIR/tools/designer/tools/tqttqtcreatecw. Using that tool you can create custom widget description files for your custom widgets without the need of typing in all that information. For more information about that see the README file in that directory&lt;/p&gt;</source>
&lt;p&gt;As it is a lot of work to type in all the information for custom widgets, you should check the tool tqtcreatecw which you can find in $QTDIR/tools/designer/tools/tqtcreatecw. Using that tool you can create custom widget description files for your custom widgets without the need of typing in all that information. For more information about that see the README file in that directory&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message encoding="UTF-8">

@ -137,11 +137,11 @@ TQString Conv2ui::absName( const TQString & filename )
void printHelpMessage( TQStringList & formats )
{
printf( "Usage: tqtqtconv2ui [options] <file> <destination directory>\n\n" );
printf( "Usage: tqtconv2ui [options] <file> <destination directory>\n\n" );
printf( "Options:\n");
printf( "\t-help\t\tDisplay this information\n" );
printf( "\t-silent\t\tDon't write any messages\n");
printf( "\t-version\tDisplay version of tqtqtconv2ui\n");
printf( "\t-version\tDisplay version of tqtconv2ui\n");
printf( "Supported file formats:\n" );
for ( TQStringList::Iterator it = formats.begin(); it != formats.end(); ++it )
printf( "\t%s\n", (*it).latin1() );
@ -201,7 +201,7 @@ int main( int argc, char ** argv )
if ( !silent ) {
printf( "TQt user interface file converter.\n" );
if ( unrecognized ) {
printf( "tqtqtconv2ui: Unrecognized option\n" );
printf( "tqtconv2ui: Unrecognized option\n" );
}
}
if ( version ) {

@ -172,8 +172,8 @@ int main( int argc, char **argv )
//
// After that compile the program, link it with your custom widget
// (library or object file) and run it like this:
// (unix): ./tqttqtcreatecw mywidgets.cw
// (win32): tqttqtcreatecw mywidgets.cw
// (unix): ./tqtcreatecw mywidgets.cw
// (win32): tqtcreatecw mywidgets.cw
//
// After that you can import this description file into the TQt
// Designer using the Custom-Widget Dialog (See

@ -2,7 +2,7 @@ TEMPLATE = app
CONFIG += qt warn_on release
HEADERS =
SOURCES = main.cpp
TARGET = tqttqtcreatecw
TARGET = tqtcreatecw
target.path = $$bins.path
INSTALLS += target

@ -6,7 +6,7 @@ Two tools are provided for the release manager, \l lupdate and \l
lrelease. These tools depend on \e qmake project files. You don't
have to use \e qmake, though.
A third tool, \c ttqm2ts, can be used for converting Qt 2.x message
A third tool, \c tqm2ts, can be used for converting Qt 2.x message
files to \c .ts files.
\section1 Qt Project Files

@ -5,7 +5,7 @@ SUBDIRS = linguist \
tutorial/tt3 \
lrelease \
lupdate \
ttqm2ts
tqm2ts
CONFIG += ordered
REQUIRES=full-config nocrosscompiler

@ -42,13 +42,13 @@ typedef TQValueList<TQTranslatorMessage> TML;
static void printUsage()
{
fprintf( stderr, "Usage:\n"
" ttqm2ts [ options ] qm-files\n"
" tqm2ts [ options ] qm-files\n"
"Options:\n"
" -help Display this information and exit\n"
" -verbose\n"
" Explain what is being done\n"
" -version\n"
" Display the version of ttqm2ts and exit\n" );
" Display the version of tqm2ts and exit\n" );
}
int main( int argc, char **argv )
@ -64,7 +64,7 @@ int main( int argc, char **argv )
verbose = TRUE;
continue;
} else if ( qstrcmp(argv[i], "-version") == 0 ) {
fprintf( stderr, "ttqm2ts version %s\n", TQT_VERSION_STR );
fprintf( stderr, "tqm2ts version %s\n", TQT_VERSION_STR );
return 0;
}
@ -99,7 +99,7 @@ int main( int argc, char **argv )
if ( !metator.save(g) ) {
fprintf( stderr,
"ttqm2ts warning: For some reason, I cannot save '%s'\n",
"tqm2ts warning: For some reason, I cannot save '%s'\n",
g.latin1() );
} else {
if ( verbose ) {
@ -109,13 +109,13 @@ int main( int argc, char **argv )
}
if ( ignored > 0 )
fprintf( stderr,
"ttqm2ts warning: File '%s' is not a TQt 2.x .qm"
"tqm2ts warning: File '%s' is not a TQt 2.x .qm"
" file (some information is lost)\n",
argv[i] );
}
} else {
fprintf( stderr,
"ttqm2ts warning: For some reason, I cannot load '%s'\n",
"tqm2ts warning: For some reason, I cannot load '%s'\n",
argv[i] );
}
}

@ -1,4 +1,4 @@
.TH ttqm2ts 1 "18 October 2001" "Trolltech AS" \" -*- nroff -*-
.TH tqm2ts 1 "18 October 2001" "Trolltech AS" \" -*- nroff -*-
.\"
.\" Copyright (C) 2001-2008 Trolltech ASA. All rights reserved.
.\"
@ -6,9 +6,9 @@
.\" the terms and conditions described in the LICENSE file.
.\"
.SH NAME
ttqm2ts \- generate Qt Linguist translation files from Qt 2.x message files
tqm2ts \- generate Qt Linguist translation files from Qt 2.x message files
.SH SYNOPSIS
.B ttqm2ts
.B tqm2ts
.RI "[ " options " ] " qm-files
.SH DESCRIPTION
This page documents the
@ -25,11 +25,11 @@ used with version control systems if required. It is understood by
and
.B Qt Linguist.
.PP
.B ttqm2ts
.B tqm2ts
is provided to ease porting from the old internationalization
tools
.B (tqttqtfindtr,
.B tqttqtmergetr
.B (tqtfindtr,
.B tqtmergetr
and
.B msg2tqm)
to the new ones. It will not accept Qt message files generated by
@ -47,7 +47,7 @@ Explain what is being done.
.TP
.I "-version"
Display the version of
.B ttqm2ts
.B tqm2ts
and exit.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/i18n.html

@ -7,7 +7,7 @@ SOURCES = main.cpp \
DEFINES += QT_INTERNAL_XML
include( ../../../src/qt_professional.pri )
TARGET = ttqm2ts
TARGET = tqm2ts
INCLUDEPATH += ../shared
DESTDIR = ../../../bin

@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 1998-2008 Trolltech ASA. All rights reserved.
**
** This is a utility program for converting tqttqtfindtr msgfiles to
** This is a utility program for converting tqtfindtr msgfiles to
** qtranslator message files
**
** This file may be used under the terms of the GNU General

@ -7,7 +7,7 @@ no-png {
assistant \
linguist
unix:SUBDIRS += qtconfig \
tqttqtmergetr \
tqtmergetr \
qconfig \
maketqpf \
msg2tqm \

@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 1998-2008 Trolltech ASA. All rights reserved.
**
** This is a utility program for merging tqttqtfindtr msgfiles
** This is a utility program for merging tqtfindtr msgfiles
**
** This file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free

@ -1,8 +1,8 @@
TEMPLATE = app
CONFIG += console qt warn_on release
HEADERS =
SOURCES = tqttqtmergetr.cpp
TARGET = tqttqtmergetr
SOURCES = tqtmergetr.cpp
TARGET = tqtmergetr
REQUIRES=full-config nocrosscompiler
target.path = $$bins.path

Loading…
Cancel
Save