diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-24 21:06:28 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-28 18:25:42 +0900 |
commit | 8ef4ea451dd81dd66b34ed31aaa631f6df24a192 (patch) | |
tree | fb639fd5c35cb99f87172bc61484f5bf74b6beb9 /doc/i18n.doc | |
parent | 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc (diff) | |
download | tqt-8ef4ea45.tar.gz tqt-8ef4ea45.zip |
Rename environment class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/i18n.doc')
-rw-r--r-- | doc/i18n.doc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/i18n.doc b/doc/i18n.doc index e660f183d..b1924b9cd 100644 --- a/doc/i18n.doc +++ b/doc/i18n.doc @@ -368,7 +368,7 @@ qmake\endlink, you usually don't need an extra project file for \e lupdate; your \c qmake project file will work fine once you add the \c TRANSLATIONS entry. -In your application, you must \l QTranslator::load() the translation +In your application, you must \l TQTranslator::load() the translation files appropriate for the user's language, and install them using \l QApplication::installTranslator(). @@ -382,9 +382,9 @@ to get you started. While these utilities offer a convenient way to create \c .qm files, any system that writes \c .qm files is sufficient. You could make an -application that adds translations to a QTranslator with -QTranslator::insert() and then writes a \c .qm file with -QTranslator::save(). This way the translations can come from any +application that adds translations to a TQTranslator with +TQTranslator::insert() and then writes a \c .qm file with +TQTranslator::save(). This way the translations can come from any source you choose. \target qt-itself @@ -402,12 +402,12 @@ Typically, your application's main() function will look like this: QApplication app( argc, argv ); // translation file for Qt - QTranslator qt( 0 ); + TQTranslator qt( 0 ); qt.load( TQString( "qt_" ) + TQTextCodec::locale(), "." ); app.installTranslator( &qt ); // translation file for application strings - QTranslator myapp( 0 ); + TQTranslator myapp( 0 ); myapp.load( TQString( "myapp_" ) + TQTextCodec::locale(), "." ); app.installTranslator( &myapp ); @@ -535,7 +535,7 @@ void MyWidget::languageChange() \endcode The default event handler for TQWidget subclasses responds to the -\link QEvent::Type LanguageChange\endlink event, and will call this slot +\link TQEvent::Type LanguageChange\endlink event, and will call this slot when necessary; other application components can also connect signals to this slot to force widgets to update themselves. |