aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/qdeclarativei18n.qdoc
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-11-10 18:33:27 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-22 03:32:21 +0100
commit88fefbc68ddcbe99e718a07c5f25e5d28c839439 (patch)
tree84d422addf8589b1412dee3abed5ba7f08e832eb /doc/src/declarative/qdeclarativei18n.qdoc
parentd2c1adc6f9afc4dd1bab3c487bbde70f3b8f2e81 (diff)
Qt.locale() and JS locale type extension.
Task-number: QTBUG-17129 Change-Id: I69cbbe858735b750b4e37ce489f2fa1ad5d8b5d3 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'doc/src/declarative/qdeclarativei18n.qdoc')
-rw-r--r--doc/src/declarative/qdeclarativei18n.qdoc16
1 files changed, 13 insertions, 3 deletions
diff --git a/doc/src/declarative/qdeclarativei18n.qdoc b/doc/src/declarative/qdeclarativei18n.qdoc
index 00422002c3..79a935657d 100644
--- a/doc/src/declarative/qdeclarativei18n.qdoc
+++ b/doc/src/declarative/qdeclarativei18n.qdoc
@@ -34,6 +34,7 @@
\nextpage {QML Features}
\title QML Internationalization
+\section1 Translation
Strings in QML can be marked for translation using the qsTr(), qsTranslate(),
QT_TR_NOOP(), and QT_TRANSLATE_NOOP() functions.
@@ -55,14 +56,14 @@ capabilities are described more fully in:
You can test a translation with the \l {QML Viewer} using the -translation option.
-\section1 Example
+\section2 Example
First we create a simple QML file with text to be translated. The string
that needs to be translated is enclosed in a call to \c qsTr().
hello.qml:
\qml
-import QtQuick 1.0
+import QtQuick 2.0
Rectangle {
width: 200; height: 200
@@ -83,6 +84,15 @@ Finally, we can test the translation:
qmlviewer -translation hello.qm hello.qml
\endcode
-
You can see a complete example and source code in the \l{declarative/i18n}{QML Internationalization example}.
+
+\section1 Localization
+
+Localization is the process of adapting to local conventions,
+for example presenting dates and times using the locally preferred formats.
+
+Qt Quick supports localization via the \l {QtQuick2::Locale}{Locale} object and extensions to the
+ECMAScript \l {QtQuick2::Date}{Date} and \l {QtQuick2::Number}{Number} types.
+
+
*/