Commit 46880457 authored by Anupam Basak's avatar Anupam Basak

Change qsTr to i18n

parent 4342c8b4
......@@ -15,7 +15,7 @@ Maui.ApplicationWindow
{
id: root
title: Maui.App.displayName
Maui.App.description: qsTr("Contacts keeps your contacts synced across devices and allows you to make calls, send messages and organize")
Maui.App.description: i18n("Contacts keeps your contacts synced across devices and allows you to make calls, send messages and organize")
Maui.App.iconName: "qrc:/contacts.svg"
readonly property var views : ({
......@@ -50,20 +50,20 @@ Maui.ApplicationWindow
{
id: _favsButton
icon.name: "draw-star"
text: qsTr("Favorites")
text: i18n("Favorites")
}
Action
{
id: _logButton
icon.name: "view-media-recent"
text: qsTr("Recent")
text: i18n("Recent")
}
Action
{
icon.name: "view-pim-contacts"
text: qsTr("Contacts")
text: i18n("Contacts")
}
}
......@@ -91,8 +91,8 @@ Maui.ApplicationWindow
headBar.visible: false
gridView: true
holder.emoji: "qrc:/star.svg"
holder.title: qsTr("There's no favorite contacts")
holder.body: qsTr("You can mark as favorite your contacts to quickly access them")
holder.title: i18n("There's no favorite contacts")
holder.body: i18n("You can mark as favorite your contacts to quickly access them")
}
LogsView
......@@ -107,8 +107,8 @@ Maui.ApplicationWindow
list.query: ""
showAccountFilter: isAndroid
holder.emoji: "qrc:/list-add-user.svg"
holder.title: qsTr("There's no contacts")
holder.body: qsTr("You can add new contacts")
holder.title: i18n("There's no contacts")
holder.body: i18n("You can add new contacts")
Maui.FloatingButton
{
......@@ -126,7 +126,7 @@ Maui.ApplicationWindow
id: _searchField
Layout.preferredWidth: isWide ? _contacsView.width * 0.8 : _contacsView.view.width
focusReason : Qt.PopupFocusReason
placeholderText: qsTr("Search %1 contacts... ".arg(_contacsView.view.count))
placeholderText: i18n("Search %1 contacts... ".arg(_contacsView.view.count))
onAccepted: _contacsView.listModel.filter = text
onCleared: _contacsView.listModel.filter = ""
}
......@@ -145,7 +145,7 @@ Maui.ApplicationWindow
onNewContact:
{
_contacsView.list.insert(contact)
notify("list-add-user", qsTr("New contact added"), contact.n)
notify("list-add-user", i18n("New contact added"), contact.n)
}
}
......
......@@ -23,7 +23,7 @@ Maui.Dialog
ToolButton
{
icon.name: "draw-star"
text: qsTr("Fav")
text: i18n("Fav")
checked: contact.fav == "1"
checkable: false
// Kirigami.Theme.textColor: checked ? "#FFD700" : Kirigami.Theme.textColor
......@@ -40,7 +40,7 @@ Maui.Dialog
ToolButton
{
icon.name: "document-share"
text: qsTr("Share")
text: i18n("Share")
}
]
......@@ -50,7 +50,7 @@ Maui.Dialog
{
icon.name: "dialer-call"
visible: contact.tel
text: qsTr("Call")
text: i18n("Call")
onClicked:
{
if(isAndroid)
......@@ -64,7 +64,7 @@ Maui.Dialog
{
icon.name: "send-email"
visible: contact.email
text: qsTr("Email")
text: i18n("Email")
onClicked:
{
_messageComposer.contact = control.contact
......@@ -76,7 +76,7 @@ Maui.Dialog
{
icon.name: "send-sms"
visible: contact.tel
text: qsTr("SMS")
text: i18n("SMS")
onClicked:
{
_messageComposer.contact = control.contact
......@@ -91,14 +91,14 @@ Maui.Dialog
MenuItem
{
icon.name: "document-edit"
text: qsTr("Edit")
text: i18n("Edit")
onTriggered: _editContactDialog.open()
icon.color: Kirigami.Theme.positiveTextColor
}
MenuItem
{
text: qsTr("Delete")
text: i18n("Delete")
icon.name: "user-trash"
icon.color: Kirigami.Theme.negativeTextColor
onTriggered: _removeDialog.open()
......@@ -110,11 +110,11 @@ Maui.Dialog
{
id: _removeDialog
title: qsTr("Remove contact...")
message: qsTr("Are you sure you want to remove this contact? This action can not be undone.")
title: i18n("Remove contact...")
message: i18n("Are you sure you want to remove this contact? This action can not be undone.")
acceptButton.text: qsTr("Cancel")
rejectButton.text: qsTr("Remove")
acceptButton.text: i18n("Cancel")
rejectButton.text: i18n("Remove")
onAccepted: close()
onRejected:
{
......@@ -142,7 +142,7 @@ Maui.Dialog
headBar.rightContent: Button
{
icon.name: "user-trash"
// text: qsTr("Remove")
// text: i18n("Remove")
onClicked: _removeDialog.open()
Kirigami.Theme.backgroundColor: Kirigami.Theme.negativeTextColor
Kirigami.Theme.textColor: "#fff"
......@@ -257,7 +257,7 @@ Maui.Dialog
// {
// anchors.centerIn: parent
// icon.name: "document-edit"
// text: qsTr("Edit")
// text: i18n("Edit")
// onClicked: _editContactDialog.open()
// colorScheme.backgroundColor: suggestedColor
// colorScheme.textColor: "#fff"
......@@ -292,7 +292,7 @@ Maui.Dialog
{
Layout.fillHeight: true
Layout.fillWidth: true
text: qsTr("Account")
text: i18n("Account")
font.pointSize: Maui.Style.fontSizes.default
font.weight: Font.Light
color: Kirigami.Theme.textColor
......@@ -321,7 +321,7 @@ Maui.Dialog
{
Layout.fillHeight: true
Layout.fillWidth: true
text: qsTr("Name")
text: i18n("Name")
font.pointSize: Maui.Style.fontSizes.default
font.weight: Font.Light
color: Kirigami.Theme.textColor
......@@ -350,7 +350,7 @@ Maui.Dialog
{
Layout.fillHeight: true
Layout.fillWidth: true
text: qsTr("Phone")
text: i18n("Phone")
font.pointSize: Maui.Style.fontSizes.default
font.weight: Font.Light
color: Kirigami.Theme.textColor
......@@ -378,7 +378,7 @@ Maui.Dialog
{
Layout.fillHeight: true
Layout.fillWidth: true
text: qsTr("Email")
text: i18n("Email")
font.pointSize: Maui.Style.fontSizes.default
font.weight: Font.Light
color: Kirigami.Theme.textColor
......@@ -407,7 +407,7 @@ Maui.Dialog
{
Layout.fillHeight: true
Layout.fillWidth: true
text: qsTr("Organization")
text: i18n("Organization")
font.pointSize: Maui.Style.fontSizes.default
font.weight: Font.Light
color: Kirigami.Theme.textColor
......@@ -435,7 +435,7 @@ Maui.Dialog
{
Layout.fillHeight: parent.visible
Layout.fillWidth: parent.visible
text: qsTr("Title")
text: i18n("Title")
font.pointSize: Maui.Style.fontSizes.default
font.weight: Font.Light
color: Kirigami.Theme.textColor
......
......@@ -19,8 +19,8 @@ Maui.Dialog
onRejected: control.close()
acceptButton.text: qsTr("Save")
rejectButton.text: qsTr("Cancel")
acceptButton.text: i18n("Save")
rejectButton.text: i18n("Cancel")
onAccepted:
{
......@@ -182,7 +182,7 @@ Maui.Dialog
visible: isAndroid
Label
{
text: qsTr("Account")
text: i18n("Account")
font.pointSize: Maui.Style.fontSizes.default
font.bold: true
font.weight: Font.Bold
......@@ -204,7 +204,7 @@ Maui.Dialog
spacing: Maui.Style.space.small
Label
{
text: qsTr("Name")
text: i18n("Name")
font.pointSize: Maui.Style.fontSizes.default
font.bold: true
font.weight: Font.Bold
......@@ -225,7 +225,7 @@ Maui.Dialog
spacing: Maui.Style.space.small
Label
{
text: qsTr("Phone")
text: i18n("Phone")
font.pointSize: Maui.Style.fontSizes.default
font.bold: true
font.weight: Font.Bold
......@@ -247,7 +247,7 @@ Maui.Dialog
spacing: Maui.Style.space.small
Label
{
text: qsTr("Email")
text: i18n("Email")
font.pointSize: Maui.Style.fontSizes.default
font.bold: true
font.weight: Font.Bold
......@@ -268,7 +268,7 @@ Maui.Dialog
spacing: Maui.Style.space.small
Label
{
text: qsTr("Organization")
text: i18n("Organization")
font.pointSize: Maui.Style.fontSizes.default
font.bold: true
font.weight: Font.Bold
......@@ -290,7 +290,7 @@ Maui.Dialog
// spacing: space.small
// Label
// {
// text: qsTr("Phone")
// text: i18n("Phone")
// font.pointSize: fontSizes.default
// font.bold: true
// font.weight: Font.Bold
......@@ -312,7 +312,7 @@ Maui.Dialog
// spacing: space.small
// Label
// {
// text: qsTr("Address")
// text: i18n("Address")
// font.pointSize: fontSizes.default
// font.bold: true
// font.weight: Font.Bold
......
......@@ -36,7 +36,7 @@ Maui.Page
id: _textField
Layout.fillWidth: true
inputMethodHints: Qt.ImhDialableCharactersOnly
placeholderText: qsTr("Number...")
placeholderText: i18n("Number...")
readOnly: true
font.bold: true
font.weight: Font.Bold
......
......@@ -15,8 +15,8 @@ Maui.Page
id: _holder
emoji: "qrc:/amarok_artist.svg"
isMask: true
title: qsTr("There's no recent contacts")
body: qsTr("Recently used contacts will appear here")
title: i18n("There's no recent contacts")
body: i18n("Recently used contacts will appear here")
emojiSize: Maui.Style.iconSizes.huge
visible: !_listView.count
onActionTriggered: _newContactDialog.open()
......@@ -38,7 +38,7 @@ Maui.Page
id: _menu
MenuItem
{
text: qsTr("Call")
text: i18n("Call")
icon.name: "dialer-call"
onTriggered:
{
......@@ -49,7 +49,7 @@ Maui.Page
MenuItem
{
text: qsTr("Save as..")
text: i18n("Save as..")
icon.name: "list-add-user"
onTriggered:
{
......
......@@ -26,7 +26,7 @@ Maui.Dialog
else if(_combobox.currentText === contact.tel)
{
Qt.openUrlExternally("sms:" + contact.tel +"&sms_body:" + _editor.text)
notify("emblem-info", qsTr("Message sent"), contact.tel)
notify("emblem-info", i18n("Message sent"), contact.tel)
}
}else
{
......@@ -38,7 +38,7 @@ Maui.Dialog
close();
}
acceptButton.text: qsTr("Send...")
acceptButton.text: i18n("Send...")
acceptButton.icon.name: "mail-send"
rejectButton.visible: false
......@@ -75,7 +75,7 @@ Maui.Dialog
visible: _combobox.currentText === contact.email
Layout.fillWidth: true
Layout.preferredHeight: Maui.Style.toolBarHeightAlt
placeholderText: qsTr("Subject")
placeholderText: i18n("Subject")
font.bold: true
font.weight: Font.Bold
font.pointSize: Maui.Style.fontSizes.big
......
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