aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/i18n
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/i18n')
-rw-r--r--examples/qml/i18n/doc/src/i18n.qdoc9
-rw-r--r--examples/qml/i18n/i18n.qml2
-rw-r--r--examples/qml/i18n/i18n.qmlproject16
3 files changed, 25 insertions, 2 deletions
diff --git a/examples/qml/i18n/doc/src/i18n.qdoc b/examples/qml/i18n/doc/src/i18n.qdoc
index 888a98105b..a342e99ea5 100644
--- a/examples/qml/i18n/doc/src/i18n.qdoc
+++ b/examples/qml/i18n/doc/src/i18n.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -35,14 +35,21 @@
The files are created/updated by running:
+\code
lupdate i18n.qml -ts i18n/base.ts
+\endcode
Translations for new languages are created by copying i18n/base.ts to i18n/qml_<lang>.ts
The .ts files can then be edited with Linguist:
+\code
linguist i18n/qml_fr.ts
+\endcode
The run-time translation files are then generated by running:
+\code
lrelease i18n/*.ts
+\endcode
+
*/
diff --git a/examples/qml/i18n/i18n.qml b/examples/qml/i18n/i18n.qml
index c02082ca34..00fc310a6c 100644
--- a/examples/qml/i18n/i18n.qml
+++ b/examples/qml/i18n/i18n.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
diff --git a/examples/qml/i18n/i18n.qmlproject b/examples/qml/i18n/i18n.qmlproject
new file mode 100644
index 0000000000..7ee5b76b92
--- /dev/null
+++ b/examples/qml/i18n/i18n.qmlproject
@@ -0,0 +1,16 @@
+import QmlProject 1.1
+
+Project {
+ mainFile: "i18n.qml"
+
+ /* Include .qml, .js, and image files from current directory and subdirectories */
+ QmlFiles {
+ directory: "."
+ }
+ JavaScriptFiles {
+ directory: "."
+ }
+ ImageFiles {
+ directory: "."
+ }
+}