summaryrefslogtreecommitdiffstats
path: root/examples/declarative/i18n/i18n.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-05 08:06:20 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-05-05 08:07:32 (GMT)
commit39e992988f21553df7e839f36ced75ca5bf8588c (patch)
tree9362676768e3c8229f6700103a44cf2b247c423f /examples/declarative/i18n/i18n.qml
parent1383f287137c50c7e58e7f9395f7a9ffd9441852 (diff)
downloadQt-39e992988f21553df7e839f36ced75ca5bf8588c.zip
Qt-39e992988f21553df7e839f36ced75ca5bf8588c.tar.gz
Qt-39e992988f21553df7e839f36ced75ca5bf8588c.tar.bz2
Fix i18n example.
Add french translation to photoviewer demo.
Diffstat (limited to 'examples/declarative/i18n/i18n.qml')
-rw-r--r--examples/declarative/i18n/i18n.qml30
1 files changed, 17 insertions, 13 deletions
diff --git a/examples/declarative/i18n/i18n.qml b/examples/declarative/i18n/i18n.qml
index 3b1279a..c3030b2 100644
--- a/examples/declarative/i18n/i18n.qml
+++ b/examples/declarative/i18n/i18n.qml
@@ -6,8 +6,9 @@ import Qt 4.7
//
// The files are created/updated by running:
//
-// lupdate i18n.qml -ts i18n/*.ts
+// lupdate i18n.qml -ts i18n/base.ts
//
+// 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:
//
// linguist i18n/qml_fr.ts
@@ -16,18 +17,21 @@ import Qt 4.7
//
// lrelease i18n/*.ts
//
-// Translations for new languages are created by copying i18n/base.ts to i18n/qml_<lang>.ts
-// and editing the result with Linguist.
-//
-Column {
- Text {
- text: "If a translation is available for the system language (eg. Franch) then the string below will translated (eg. 'Bonjour'). Otherwise is will show 'Hello'."
- width: 200
- wrapMode: Text.WordWrap
- }
- Text {
- text: qsTr("Hello")
- font.pointSize: 25
+Rectangle {
+ width: 640; height: 480
+
+ Column {
+ anchors.fill: parent; spacing: 20
+
+ Text {
+ text: "If a translation is available for the system language (eg. French) then the string below will translated (eg. 'Bonjour'). Otherwise is will show 'Hello'."
+ width: parent.width; wrapMode: Text.WordWrap
+ }
+
+ Text {
+ text: qsTr("Hello")
+ font.pointSize: 25; anchors.horizontalCenter: parent.horizontalCenter
+ }
}
}