Internalisation++
This commit is contained in:
@@ -14,16 +14,16 @@ Dialog {
|
|||||||
|
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
title: "Invitation Received"
|
title: i18n("Invitation Received")
|
||||||
modal: true
|
modal: true
|
||||||
|
|
||||||
contentItem: Label {
|
contentItem: Label {
|
||||||
text: "Accept this invitation?"
|
text: i18n("Accept this invitation?")
|
||||||
}
|
}
|
||||||
|
|
||||||
footer: DialogButtonBox {
|
footer: DialogButtonBox {
|
||||||
Button {
|
Button {
|
||||||
text: "Accept"
|
text: i18n("Accept")
|
||||||
flat: true
|
flat: true
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@@ -33,7 +33,7 @@ Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: "Reject"
|
text: i18n("Reject")
|
||||||
flat: true
|
flat: true
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@@ -43,7 +43,7 @@ Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: "Cancel"
|
text: i18n("Cancel")
|
||||||
flat: true
|
flat: true
|
||||||
|
|
||||||
onClicked: close()
|
onClicked: close()
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Dialog {
|
|||||||
|
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
title: "Create a Room"
|
title: i18n("Create a Room")
|
||||||
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
AutoTextField {
|
AutoTextField {
|
||||||
@@ -25,7 +25,7 @@ Dialog {
|
|||||||
|
|
||||||
id: roomNameField
|
id: roomNameField
|
||||||
|
|
||||||
placeholderText: "Room Name"
|
placeholderText: i18n("Room Name")
|
||||||
}
|
}
|
||||||
|
|
||||||
AutoTextField {
|
AutoTextField {
|
||||||
@@ -33,7 +33,7 @@ Dialog {
|
|||||||
|
|
||||||
id: roomTopicField
|
id: roomTopicField
|
||||||
|
|
||||||
placeholderText: "Room Topic"
|
placeholderText: i18n("Room Topic")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
/**
|
|
||||||
* SPDX-FileCopyrightText: 2019 Black Hat <bhat@encom.eu.org>
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-only
|
|
||||||
*/
|
|
||||||
import QtQuick 2.12
|
|
||||||
import QtQuick.Controls 2.12
|
|
||||||
import QtQuick.Layouts 1.12
|
|
||||||
|
|
||||||
import NeoChat.Component 1.0
|
|
||||||
import NeoChat.Setting 1.0
|
|
||||||
|
|
||||||
Dialog {
|
|
||||||
anchors.centerIn: parent
|
|
||||||
width: 360
|
|
||||||
|
|
||||||
id: root
|
|
||||||
|
|
||||||
title: "Enter Font Family"
|
|
||||||
|
|
||||||
contentItem: AutoTextField {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
id:fontFamilyField
|
|
||||||
|
|
||||||
text: MSettings.fontFamily
|
|
||||||
placeholderText: "Font Family"
|
|
||||||
}
|
|
||||||
|
|
||||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
|
||||||
|
|
||||||
onAccepted: MSettings.fontFamily = fontFamilyField.text
|
|
||||||
|
|
||||||
onClosed: destroy()
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,7 @@ Dialog {
|
|||||||
|
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
title: "Start a Chat"
|
title: i18n("Start a Chat")
|
||||||
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
@@ -37,7 +37,7 @@ Dialog {
|
|||||||
|
|
||||||
id: identifierField
|
id: identifierField
|
||||||
|
|
||||||
placeholderText: "Find a user..."
|
placeholderText: i18n("Find a user...")
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
userDictListModel.search()
|
userDictListModel.search()
|
||||||
@@ -47,7 +47,7 @@ Dialog {
|
|||||||
Button {
|
Button {
|
||||||
visible: identifierField.isUserID
|
visible: identifierField.isUserID
|
||||||
|
|
||||||
text: "Chat"
|
text: i18n("Chat")
|
||||||
highlighted: true
|
highlighted: true
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@@ -176,7 +176,7 @@ Dialog {
|
|||||||
|
|
||||||
visible: userDictListView.count < 1
|
visible: userDictListView.count < 1
|
||||||
|
|
||||||
text: "No users available"
|
text: i18n("No users available")
|
||||||
color: MPalette.foreground
|
color: MPalette.foreground
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
res.qrc
1
res.qrc
@@ -50,7 +50,6 @@
|
|||||||
<file>imports/NeoChat/Dialog/CreateRoomDialog.qml</file>
|
<file>imports/NeoChat/Dialog/CreateRoomDialog.qml</file>
|
||||||
<file>imports/NeoChat/Dialog/AcceptInvitationDialog.qml</file>
|
<file>imports/NeoChat/Dialog/AcceptInvitationDialog.qml</file>
|
||||||
<file>imports/NeoChat/Dialog/StartChatDialog.qml</file>
|
<file>imports/NeoChat/Dialog/StartChatDialog.qml</file>
|
||||||
<file>imports/NeoChat/Dialog/FontFamilyDialog.qml</file>
|
|
||||||
<file>imports/NeoChat/Dialog/OpenFileDialog.qml</file>
|
<file>imports/NeoChat/Dialog/OpenFileDialog.qml</file>
|
||||||
<file>imports/NeoChat/Dialog/OpenFolderDialog.qml</file>
|
<file>imports/NeoChat/Dialog/OpenFolderDialog.qml</file>
|
||||||
<file>imports/NeoChat/Menu/qmldir</file>
|
<file>imports/NeoChat/Menu/qmldir</file>
|
||||||
|
|||||||
Reference in New Issue
Block a user