Commit d46caed4 authored by Chupligin Sergey's avatar Chupligin Sergey

Add i18n

parent 8dffa309
/**************************************************************************************** /****************************************************************************************
** **
** Copyright (C) 2014 Aleksi Suomalainen <suomalainen.aleksi@gmail.com> ** Copyright (C) 2014 Aleksi Suomalainen <suomalainen.aleksi@gmail.com>
** Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
** All rights reserved. ** All rights reserved.
** **
** You may use this file under the terms of BSD license as follows: ** You may use this file under the terms of BSD license as follows:
...@@ -39,7 +40,7 @@ import Nemo.Dialogs 1.0 ...@@ -39,7 +40,7 @@ import Nemo.Dialogs 1.0
Page { Page {
id: root id: root
headerTools: HeaderToolsLayout { showBackButton: true; title: "Query dialog example" } headerTools: HeaderToolsLayout { showBackButton: true; title: qsTr("Query dialog example") }
QueryDialog { QueryDialog {
cancelText: qsTr("Cancel") cancelText: qsTr("Cancel")
...@@ -51,10 +52,10 @@ Page { ...@@ -51,10 +52,10 @@ Page {
image: "/usr/share/glacier-components/images/example.jpg" image: "/usr/share/glacier-components/images/example.jpg"
onAccepted: { onAccepted: {
result.text = "User accepted" result.text = qsTr("User accepted")
} }
onCanceled: { onCanceled: {
result.text = "User canceled" result.text = qsTr("User canceled")
} }
} }
Label { Label {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment