From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- examples/i18n/README | 9 +++ examples/i18n/i18n.doc | 34 +++++++++ examples/i18n/i18n.pro | 23 ++++++ examples/i18n/main.cpp | 171 +++++++++++++++++++++++++++++++++++++++++++ examples/i18n/mywidget.cpp | 73 ++++++++++++++++++ examples/i18n/mywidget.h | 33 +++++++++ examples/i18n/mywidget_ar.qm | Bin 0 -> 681 bytes examples/i18n/mywidget_ar.ts | 73 ++++++++++++++++++ examples/i18n/mywidget_cs.qm | Bin 0 -> 818 bytes examples/i18n/mywidget_cs.ts | 75 +++++++++++++++++++ examples/i18n/mywidget_de.qm | Bin 0 -> 880 bytes examples/i18n/mywidget_de.ts | 75 +++++++++++++++++++ examples/i18n/mywidget_el.qm | Bin 0 -> 832 bytes examples/i18n/mywidget_el.ts | 68 +++++++++++++++++ examples/i18n/mywidget_en.qm | Bin 0 -> 337 bytes examples/i18n/mywidget_en.ts | 68 +++++++++++++++++ examples/i18n/mywidget_eo.qm | Bin 0 -> 835 bytes examples/i18n/mywidget_eo.ts | 72 ++++++++++++++++++ examples/i18n/mywidget_fr.qm | Bin 0 -> 884 bytes examples/i18n/mywidget_fr.ts | 68 +++++++++++++++++ examples/i18n/mywidget_it.qm | Bin 0 -> 763 bytes examples/i18n/mywidget_it.ts | 72 ++++++++++++++++++ examples/i18n/mywidget_jp.qm | Bin 0 -> 738 bytes examples/i18n/mywidget_jp.ts | 68 +++++++++++++++++ examples/i18n/mywidget_ko.qm | Bin 0 -> 738 bytes examples/i18n/mywidget_ko.ts | 68 +++++++++++++++++ examples/i18n/mywidget_no.qm | Bin 0 -> 830 bytes examples/i18n/mywidget_no.ts | 68 +++++++++++++++++ examples/i18n/mywidget_ru.qm | Bin 0 -> 799 bytes examples/i18n/mywidget_ru.ts | 68 +++++++++++++++++ examples/i18n/mywidget_zh.qm | Bin 0 -> 706 bytes examples/i18n/mywidget_zh.ts | 68 +++++++++++++++++ 32 files changed, 1254 insertions(+) create mode 100644 examples/i18n/README create mode 100644 examples/i18n/i18n.doc create mode 100644 examples/i18n/i18n.pro create mode 100644 examples/i18n/main.cpp create mode 100644 examples/i18n/mywidget.cpp create mode 100644 examples/i18n/mywidget.h create mode 100644 examples/i18n/mywidget_ar.qm create mode 100644 examples/i18n/mywidget_ar.ts create mode 100644 examples/i18n/mywidget_cs.qm create mode 100644 examples/i18n/mywidget_cs.ts create mode 100644 examples/i18n/mywidget_de.qm create mode 100644 examples/i18n/mywidget_de.ts create mode 100644 examples/i18n/mywidget_el.qm create mode 100644 examples/i18n/mywidget_el.ts create mode 100644 examples/i18n/mywidget_en.qm create mode 100644 examples/i18n/mywidget_en.ts create mode 100644 examples/i18n/mywidget_eo.qm create mode 100644 examples/i18n/mywidget_eo.ts create mode 100644 examples/i18n/mywidget_fr.qm create mode 100644 examples/i18n/mywidget_fr.ts create mode 100644 examples/i18n/mywidget_it.qm create mode 100644 examples/i18n/mywidget_it.ts create mode 100644 examples/i18n/mywidget_jp.qm create mode 100644 examples/i18n/mywidget_jp.ts create mode 100644 examples/i18n/mywidget_ko.qm create mode 100644 examples/i18n/mywidget_ko.ts create mode 100644 examples/i18n/mywidget_no.qm create mode 100644 examples/i18n/mywidget_no.ts create mode 100644 examples/i18n/mywidget_ru.qm create mode 100644 examples/i18n/mywidget_ru.ts create mode 100644 examples/i18n/mywidget_zh.qm create mode 100644 examples/i18n/mywidget_zh.ts (limited to 'examples/i18n') diff --git a/examples/i18n/README b/examples/i18n/README new file mode 100644 index 000000000..2f740f45b --- /dev/null +++ b/examples/i18n/README @@ -0,0 +1,9 @@ +To add a language "XX": + + 1. Add mywidget_XX.ts to the TRANSLATIONS entry of i18n.pro. + 2. Run 'lupdate i18n.pro'. + 3. Run 'linguist mywidget_XX.ts' and translate the strings. + 4. Run 'lrelease i18n.pro'. + 5. Run './i18n XX'. + +Contributions are welcome. Send them to qt-bugs@trolltech.com. diff --git a/examples/i18n/i18n.doc b/examples/i18n/i18n.doc new file mode 100644 index 000000000..3f31627ca --- /dev/null +++ b/examples/i18n/i18n.doc @@ -0,0 +1,34 @@ +/* +*/ +/*! \page i18n-example.html + + \ingroup examples + \title Internationalization + + This example shows how to internationalize applications. Start it with +
# i18n de
+ to get a german version and with +
# i18n en
+ to get the english version. + + Refer also to the internationalization documentation. + +
+ + Header file: + + \include i18n/mywidget.h + +
+ + Implementation: + + \include i18n/mywidget.cpp + +
+ + Main: + + \include i18n/main.cpp +*/ + diff --git a/examples/i18n/i18n.pro b/examples/i18n/i18n.pro new file mode 100644 index 000000000..f0b84e247 --- /dev/null +++ b/examples/i18n/i18n.pro @@ -0,0 +1,23 @@ +TEMPLATE = app +TARGET = i18n + +CONFIG += qt warn_on release +DEPENDPATH = ../../include + +REQUIRES = full-config + +HEADERS = mywidget.h +SOURCES = main.cpp \ + mywidget.cpp +TRANSLATIONS = mywidget_cs.ts \ + mywidget_de.ts \ + mywidget_el.ts \ + mywidget_en.ts \ + mywidget_eo.ts \ + mywidget_fr.ts \ + mywidget_it.ts \ + mywidget_jp.ts \ + mywidget_ko.ts \ + mywidget_no.ts \ + mywidget_ru.ts \ + mywidget_zh.ts diff --git a/examples/i18n/main.cpp b/examples/i18n/main.cpp new file mode 100644 index 000000000..2c9fb2fc3 --- /dev/null +++ b/examples/i18n/main.cpp @@ -0,0 +1,171 @@ +/**************************************************************************** +** +** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. +** +** This file is part of an example program for TQt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(Q_OS_UNIX) +#include +#endif + +#include "mywidget.h" + +//#define USE_I18N_FONT + +class TQVDialog : public TQDialog { +public: + TQVDialog(TQWidget *parent=0, const char *name=0, bool modal=FALSE, + WFlags f=0) : TQDialog(parent,name,modal,f) + { + TQVBoxLayout* vb = new TQVBoxLayout(this,8); + vb->setAutoAdd(TRUE); + hb = 0; + sm = new TQSignalMapper(this); + connect(sm,SIGNAL(mapped(int)),this,SLOT(done(int))); + } + void addButtons( const TQString& cancel=TQString::null, + const TQString& ok=TQString::null, + const TQString& mid1=TQString::null, + const TQString& mid2=TQString::null, + const TQString& mid3=TQString::null) + { + addButton(ok.isNull() ? TQObject::tr("OK") : ok, 1); + if ( !mid1.isNull() ) addButton(mid1,2); + if ( !mid2.isNull() ) addButton(mid2,3); + if ( !mid3.isNull() ) addButton(mid3,4); + addButton(cancel.isNull() ? TQObject::tr("Cancel") : cancel, 0); + } + + void addButton( const TQString& text, int result ) + { + if ( !hb ) + hb = new TQHBox(this); + TQPushButton *c = new TQPushButton(text, hb); + sm->setMapping(c,result); + connect(c,SIGNAL(clicked()),sm,SLOT(map())); + } + +private: + TQSignalMapper *sm; + TQHBox *hb; +}; + +MyWidget* showLang(TQString lang) +{ + + static TQTranslator *translator = 0; + + qApp->setPalette(TQPalette(TQColor(220-rand()%64,220-rand()%64,220-rand()%64))); + + lang = "mywidget_" + lang + ".qm"; + TQFileInfo fi( lang ); + + if ( !fi.exists() ) { + TQMessageBox::warning( 0, "File error", + TQString("Cannot find translation for language: "+lang+ + "\n(try eg. 'de', 'ko' or 'no')") ); + return 0; + } + if ( translator ) { + qApp->removeTranslator( translator ); + delete translator; + } + translator = new TQTranslator( 0 ); + translator->load( lang, "." ); + qApp->installTranslator( translator ); + MyWidget *m = new MyWidget; + m->setCaption("TQt Example - i18n - " + m->caption() ); + return m; +} + +int main( int argc, char** argv ) +{ + TQApplication app( argc, argv ); + + const char* qm[]= + { "ar", "cs", "de", "el", "en", "eo", "fr", "it", "jp", "ko", "no", "ru", "zh", 0 }; + +#if defined(Q_OS_UNIX) + srand( getpid() << 2 ); +#endif + + TQString lang; + if ( argc == 2 ) + lang = argv[1]; + + if ( argc != 2 || lang == "all" ) { + TQVDialog dlg(0,0,TRUE); + TQCheckBox* qmb[sizeof(qm)/sizeof(qm[0])]; + int r; + if ( lang == "all" ) { + r = 2; + } else { + TQButtonGroup *bg = new TQButtonGroup(4,TQt::Vertical,"Choose Locales",&dlg); + TQString loc = TQTextCodec::locale(); + for ( int i=0; qm[i]; i++ ) { + qmb[i] = new TQCheckBox((const char*)qm[i],bg); + qmb[i]->setChecked( loc == qm[i] ); + } + dlg.addButtons("Cancel","OK","All"); + r = dlg.exec(); + } + if ( r ) { + TQRect screen = qApp->desktop()->availableGeometry(); + bool tight = screen.width() < 1024; + int x=screen.left()+5; + int y=screen.top()+25; + for ( int i=0; qm[i]; i++ ) { + if ( r == 2 || qmb[i]->isChecked() ) { + MyWidget* w = showLang((const char*)qm[i]); + + if( w == 0 ) exit( 0 ); + TQObject::connect(w, SIGNAL(closed()), qApp, SLOT(tquit())); + w->setGeometry(x,y,197,356); + w->show(); + if ( tight ) { + x += 8; + y += 8; + } else { + x += 205; + if ( x > 1000 ) { + x = 5; + y += 384; + } + } + } + } + } else { + exit( 0 ); + } + } else { + TQString lang = argv[1]; + TQWidget* m = showLang(lang); + app.setMainWidget( m ); + m->setCaption("TQt Example - i18n"); + m->show(); + } + +#ifdef USE_I18N_FONT + memorymanager->savePrerenderedFont(font.handle(),FALSE); +#endif + + // While we run "all", kill them all + return app.exec(); + +} diff --git a/examples/i18n/mywidget.cpp b/examples/i18n/mywidget.cpp new file mode 100644 index 000000000..94e21144e --- /dev/null +++ b/examples/i18n/mywidget.cpp @@ -0,0 +1,73 @@ +/**************************************************************************** +** +** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. +** +** This file is part of an example program for TQt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "mywidget.h" + +MyWidget::MyWidget( TQWidget* parent, const char* name ) + : TQMainWindow( parent, name ) +{ + TQVBox* central = new TQVBox(this); + central->setMargin( 5 ); + central->setSpacing( 5 ); + setCentralWidget(central); + + TQPopupMenu* file = new TQPopupMenu(this); + file->insertItem( tr("E&xit"), qApp, SLOT(tquit()), + TQAccel::stringToKey(tr("Ctrl+Q")) ); + menuBar()->insertItem( tr("&File"), file ); + + setCaption( tr( "Internationalization Example" ) ); + + TQString l; + statusBar()->message( tr("Language: English") ); + + ( void )new TQLabel( tr( "The Main Window" ), central ); + + TQButtonGroup* gbox = new TQButtonGroup( 1, TQGroupBox::Horizontal, + tr( "View" ), central ); + (void)new TQRadioButton( tr( "Perspective" ), gbox ); + (void)new TQRadioButton( tr( "Isometric" ), gbox ); + (void)new TQRadioButton( tr( "Oblique" ), gbox ); + + initChoices(central); +} + +static const char* choices[] = { + QT_TRANSLATE_NOOP( "MyWidget", "First" ), + QT_TRANSLATE_NOOP( "MyWidget", "Second" ), + QT_TRANSLATE_NOOP( "MyWidget", "Third" ), + 0 +}; + +void MyWidget::initChoices(TQWidget* parent) +{ + TQListBox* lb = new TQListBox( parent ); + for ( int i = 0; choices[i]; i++ ) + lb->insertItem( tr( choices[i] ) ); +} + +void MyWidget::closeEvent(TQCloseEvent* e) +{ + TQWidget::closeEvent(e); + emit closed(); +} diff --git a/examples/i18n/mywidget.h b/examples/i18n/mywidget.h new file mode 100644 index 000000000..964e05c49 --- /dev/null +++ b/examples/i18n/mywidget.h @@ -0,0 +1,33 @@ +/**************************************************************************** +** +** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. +** +** This file is part of an example program for TQt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#ifndef MYWIDGET_H +#define MYWIDGET_H + +#include +#include + +class MyWidget : public TQMainWindow +{ + Q_OBJECT + +public: + MyWidget( TQWidget* parent=0, const char* name = 0 ); + +signals: + void closed(); + +protected: + void closeEvent(TQCloseEvent*); + +private: + static void initChoices(TQWidget* parent); +}; + +#endif diff --git a/examples/i18n/mywidget_ar.qm b/examples/i18n/mywidget_ar.qm new file mode 100644 index 000000000..a8afc9d5e Binary files /dev/null and b/examples/i18n/mywidget_ar.qm differ diff --git a/examples/i18n/mywidget_ar.ts b/examples/i18n/mywidget_ar.ts new file mode 100644 index 000000000..837417ff5 --- /dev/null +++ b/examples/i18n/mywidget_ar.ts @@ -0,0 +1,73 @@ + + + MyWidget + + E&xit... + &Esci... + + + First + أ^? + + + Internationalization Example + ?ثا? ا?تد^S? + + + Isometric + ?ت?اث? + + + Language: English + ا??غة: ا?عربSة + + + Oblique + ?ص?ت + + + Perspective + ??ظ^ر + + + Second + ثا?? + + + The Main Window + ا??ا?ذة ا?رئSسSة + + + Third + ثا?ث + + + View + ?رئ? + + + E&xit + + + + Ctrl+Q + + + + &File + + + + + QVDialog + + OK + + + + Cancel + + + + + diff --git a/examples/i18n/mywidget_cs.qm b/examples/i18n/mywidget_cs.qm new file mode 100644 index 000000000..f95090d63 Binary files /dev/null and b/examples/i18n/mywidget_cs.qm differ diff --git a/examples/i18n/mywidget_cs.ts b/examples/i18n/mywidget_cs.ts new file mode 100644 index 000000000..4cf61f156 --- /dev/null +++ b/examples/i18n/mywidget_cs.ts @@ -0,0 +1,75 @@ + + + MyWidget + + View + Pohled + + + &File + &Soubor + + + E&xit + &Konec + + + First + První + + + Third + Třetí + + + Language: English + Jayzk: Český + + + The Main Window + Hlavní okno + + + Ctrl+Q + Ctrl+Q + + + Oblique + Nakloněný + + + Second + Druhý + + + Isometric + Isometrický + + + Perspective + Perspektivní + + + Internationalization Example + Ukázka lokalizace + + + + QAccel + + Ctrl + Ctrl + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_de.qm b/examples/i18n/mywidget_de.qm new file mode 100644 index 000000000..c251e2498 Binary files /dev/null and b/examples/i18n/mywidget_de.qm differ diff --git a/examples/i18n/mywidget_de.ts b/examples/i18n/mywidget_de.ts new file mode 100644 index 000000000..6533b9892 --- /dev/null +++ b/examples/i18n/mywidget_de.ts @@ -0,0 +1,75 @@ + + + MyWidget + + View + Ansicht + + + &File + &Datei + + + E&xit + Be&enden + + + First + Erstens + + + Third + Drittens + + + Language: English + Sprache: Deutsch + + + The Main Window + Das Hauptfenster + + + Ctrl+Q + Ctrl+E + + + Oblique + Schief + + + Second + Zweitens + + + Isometric + Isometrisch + + + Perspective + Perspektivisch + + + Internationalization Example + Internationalisierungsbeispiel + + + + QAccel + + Ctrl + Strg + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_el.qm b/examples/i18n/mywidget_el.qm new file mode 100644 index 000000000..15d768951 Binary files /dev/null and b/examples/i18n/mywidget_el.qm differ diff --git a/examples/i18n/mywidget_el.ts b/examples/i18n/mywidget_el.ts new file mode 100644 index 000000000..59fb2289a --- /dev/null +++ b/examples/i18n/mywidget_el.ts @@ -0,0 +1,68 @@ + + + MyWidget + + &File + &Αρχείο + + + Ctrl+Q + Ctrl+Q + + + E&xit + Έ&ξοδος + + + First + Πρώτο + + + Internationalization Example + Παράδειγμα διεθνοποίησης + + + Isometric + Ισομετρική + + + Language: English + Γλώσσα: Ελληνικά + + + Oblique + Πλάγια + + + Perspective + Προοπτική + + + Second + Δεύτερο + + + The Main Window + Κύριο παράθυρο + + + Third + Τρίτο + + + View + Όψη + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_en.qm b/examples/i18n/mywidget_en.qm new file mode 100644 index 000000000..6bd22c41d Binary files /dev/null and b/examples/i18n/mywidget_en.qm differ diff --git a/examples/i18n/mywidget_en.ts b/examples/i18n/mywidget_en.ts new file mode 100644 index 000000000..54c4df8ee --- /dev/null +++ b/examples/i18n/mywidget_en.ts @@ -0,0 +1,68 @@ + + + MyWidget + + E&xit + + + + Ctrl+Q + + + + &File + + + + Internationalization Example + + + + Language: English + + + + The Main Window + + + + View + + + + Perspective + + + + Isometric + + + + Oblique + + + + First + + + + Second + + + + Third + + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_eo.qm b/examples/i18n/mywidget_eo.qm new file mode 100644 index 000000000..372cf7921 Binary files /dev/null and b/examples/i18n/mywidget_eo.qm differ diff --git a/examples/i18n/mywidget_eo.ts b/examples/i18n/mywidget_eo.ts new file mode 100644 index 000000000..381870dee --- /dev/null +++ b/examples/i18n/mywidget_eo.ts @@ -0,0 +1,72 @@ + + + MyWidget + + &File + &Dosiero + + + Ctrl+Q + Ctrl+F + + + E&xit... + &Fini... + + + First + Unue + + + Internationalization Example + Ekzemplo pri internaciigo + + + Isometric + Isometria + + + Language: English + Lingvo: Esperanto (ĈĜĤĴŜŬĉĝĥĵŝŭ) + + + Oblique + Oblikva + + + Perspective + Perspektiva + + + Second + Due + + + The Main Window + La Ĉeffenestro + + + Third + Trie + + + View + Aspekto + + + E&xit + + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_fr.qm b/examples/i18n/mywidget_fr.qm new file mode 100644 index 000000000..12a846409 Binary files /dev/null and b/examples/i18n/mywidget_fr.qm differ diff --git a/examples/i18n/mywidget_fr.ts b/examples/i18n/mywidget_fr.ts new file mode 100644 index 000000000..a029084a8 --- /dev/null +++ b/examples/i18n/mywidget_fr.ts @@ -0,0 +1,68 @@ + + + MyWidget + + View + Vue + + + &File + &Fichier + + + E&xit + &Quitter + + + First + Premier + + + Third + Troisième + + + Language: English + Langage : Français + + + The Main Window + La fenêtre principale + + + Ctrl+Q + Ctrl+Q + + + Oblique + Oblique + + + Second + Second + + + Isometric + Isométrique + + + Perspective + Perspective + + + Internationalization Example + Exemple d'internationalisation + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_it.qm b/examples/i18n/mywidget_it.qm new file mode 100644 index 000000000..075bee250 Binary files /dev/null and b/examples/i18n/mywidget_it.qm differ diff --git a/examples/i18n/mywidget_it.ts b/examples/i18n/mywidget_it.ts new file mode 100644 index 000000000..a450deb4c --- /dev/null +++ b/examples/i18n/mywidget_it.ts @@ -0,0 +1,72 @@ + + + MyWidget + + E&xit... + &Esci... + + + First + Primo + + + Internationalization Example + Esempio di localizzazione + + + Isometric + Isometrica + + + Language: English + Lingua: Italiano + + + Oblique + Obliqua + + + Perspective + Prospettica + + + Second + Secondo + + + The Main Window + La Finestra Principale + + + Third + Terzo + + + View + Vista + + + E&xit + + + + Ctrl+Q + + + + &File + + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_jp.qm b/examples/i18n/mywidget_jp.qm new file mode 100644 index 000000000..8942dd7c1 Binary files /dev/null and b/examples/i18n/mywidget_jp.qm differ diff --git a/examples/i18n/mywidget_jp.ts b/examples/i18n/mywidget_jp.ts new file mode 100644 index 000000000..2a7345f60 --- /dev/null +++ b/examples/i18n/mywidget_jp.ts @@ -0,0 +1,68 @@ + + + MyWidget + + &File + ファイル(&F) + + + Ctrl+Q + Ctrl+Q + + + E&xit + 終了(&X) + + + First + 第一行 + + + Internationalization Example + 国際化(i18n)の例 + + + Isometric + 等角投影法 + + + Language: English + 言語: 日本語 + + + Oblique + 斜め投影法 + + + Perspective + 遠近法 + + + Second + 第二行 + + + The Main Window + メインウィンドウ + + + Third + 第三行 + + + View + 表示方式 + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_ko.qm b/examples/i18n/mywidget_ko.qm new file mode 100644 index 000000000..dccc2ba9f Binary files /dev/null and b/examples/i18n/mywidget_ko.qm differ diff --git a/examples/i18n/mywidget_ko.ts b/examples/i18n/mywidget_ko.ts new file mode 100644 index 000000000..acc8f9b5b --- /dev/null +++ b/examples/i18n/mywidget_ko.ts @@ -0,0 +1,68 @@ + + + MyWidget + + &File + 파일&F + + + Ctrl+Q + Ctrl+E + + + E&xit + 종료&X + + + First + 첫번째 + + + Internationalization Example + 국제화 예제 + + + Isometric + Isometric + + + Language: English + 언어 : 한국어 + + + Oblique + Oblique + + + Perspective + Perspective + + + Second + 두번째 + + + The Main Window + 메인 윈도우 + + + Third + 세번째 + + + View + 보기 + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_no.qm b/examples/i18n/mywidget_no.qm new file mode 100644 index 000000000..2adc1361f Binary files /dev/null and b/examples/i18n/mywidget_no.qm differ diff --git a/examples/i18n/mywidget_no.ts b/examples/i18n/mywidget_no.ts new file mode 100644 index 000000000..341c66477 --- /dev/null +++ b/examples/i18n/mywidget_no.ts @@ -0,0 +1,68 @@ + + + MyWidget + + View + Visning + + + &File + &Fil + + + E&xit + &Slutt + + + First + Første + + + Third + Tredje + + + Language: English + Språk: Norsk + + + The Main Window + Hovedvinduet + + + Ctrl+Q + Ctrl+S + + + Oblique + Skjev + + + Second + Andre + + + Isometric + Isometrisk + + + Perspective + Perspektiv + + + Internationalization Example + Internasjonaliseringseksempel + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_ru.qm b/examples/i18n/mywidget_ru.qm new file mode 100644 index 000000000..ebc512ecf Binary files /dev/null and b/examples/i18n/mywidget_ru.qm differ diff --git a/examples/i18n/mywidget_ru.ts b/examples/i18n/mywidget_ru.ts new file mode 100644 index 000000000..07070b036 --- /dev/null +++ b/examples/i18n/mywidget_ru.ts @@ -0,0 +1,68 @@ + + + MyWidget + + View + Вид + + + &File + Файл + + + E&xit + Выход + + + First + Первый + + + Third + Третий + + + Language: English + Язык: Русский + + + The Main Window + Главное окно + + + Oblique + Курсив + + + Second + Второй + + + Isometric + Изометрический + + + Perspective + Перспектива + + + Internationalization Example + Пример интернациноализации + + + Ctrl+Q + + + + + QVDialog + + OK + + + + Cancel + + + + diff --git a/examples/i18n/mywidget_zh.qm b/examples/i18n/mywidget_zh.qm new file mode 100644 index 000000000..a890c0961 Binary files /dev/null and b/examples/i18n/mywidget_zh.qm differ diff --git a/examples/i18n/mywidget_zh.ts b/examples/i18n/mywidget_zh.ts new file mode 100644 index 000000000..8b015d6d6 --- /dev/null +++ b/examples/i18n/mywidget_zh.ts @@ -0,0 +1,68 @@ + + + MyWidget + + View + 视图 + + + &File + 文件[&F] + + + E&xit + 退出[&x] + + + First + 第一个 + + + Third + 第三个 + + + Language: English + 语言: 简体中文 + + + The Main Window + 主窗口 + + + Ctrl+Q + Ctrl+Q + + + Oblique + 斜投影 + + + Second + 第二个 + + + Isometric + 等角投影 + + + Perspective + 透视投影 + + + Internationalization Example + 国际化范例 + + + + QVDialog + + OK + + + + Cancel + + + + -- cgit v1.2.1