diff options
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. |