Internalisation++
This commit is contained in:
@@ -14,16 +14,16 @@ Dialog {
|
||||
|
||||
id: root
|
||||
|
||||
title: "Invitation Received"
|
||||
title: i18n("Invitation Received")
|
||||
modal: true
|
||||
|
||||
contentItem: Label {
|
||||
text: "Accept this invitation?"
|
||||
text: i18n("Accept this invitation?")
|
||||
}
|
||||
|
||||
footer: DialogButtonBox {
|
||||
Button {
|
||||
text: "Accept"
|
||||
text: i18n("Accept")
|
||||
flat: true
|
||||
|
||||
onClicked: {
|
||||
@@ -33,7 +33,7 @@ Dialog {
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Reject"
|
||||
text: i18n("Reject")
|
||||
flat: true
|
||||
|
||||
onClicked: {
|
||||
@@ -43,7 +43,7 @@ Dialog {
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Cancel"
|
||||
text: i18n("Cancel")
|
||||
flat: true
|
||||
|
||||
onClicked: close()
|
||||
|
||||
@@ -17,7 +17,7 @@ Dialog {
|
||||
|
||||
id: root
|
||||
|
||||
title: "Create a Room"
|
||||
title: i18n("Create a Room")
|
||||
|
||||
contentItem: ColumnLayout {
|
||||
AutoTextField {
|
||||
@@ -25,7 +25,7 @@ Dialog {
|
||||
|
||||
id: roomNameField
|
||||
|
||||
placeholderText: "Room Name"
|
||||
placeholderText: i18n("Room Name")
|
||||
}
|
||||
|
||||
AutoTextField {
|
||||
@@ -33,7 +33,7 @@ Dialog {
|
||||
|
||||
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
|
||||
|
||||
title: "Start a Chat"
|
||||
title: i18n("Start a Chat")
|
||||
|
||||
contentItem: ColumnLayout {
|
||||
spacing: 0
|
||||
@@ -37,7 +37,7 @@ Dialog {
|
||||
|
||||
id: identifierField
|
||||
|
||||
placeholderText: "Find a user..."
|
||||
placeholderText: i18n("Find a user...")
|
||||
|
||||
onAccepted: {
|
||||
userDictListModel.search()
|
||||
@@ -47,7 +47,7 @@ Dialog {
|
||||
Button {
|
||||
visible: identifierField.isUserID
|
||||
|
||||
text: "Chat"
|
||||
text: i18n("Chat")
|
||||
highlighted: true
|
||||
|
||||
onClicked: {
|
||||
@@ -176,7 +176,7 @@ Dialog {
|
||||
|
||||
visible: userDictListView.count < 1
|
||||
|
||||
text: "No users available"
|
||||
text: i18n("No users available")
|
||||
color: MPalette.foreground
|
||||
}
|
||||
}
|
||||
|
||||
1
res.qrc
1
res.qrc
@@ -50,7 +50,6 @@
|
||||
<file>imports/NeoChat/Dialog/CreateRoomDialog.qml</file>
|
||||
<file>imports/NeoChat/Dialog/AcceptInvitationDialog.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/OpenFolderDialog.qml</file>
|
||||
<file>imports/NeoChat/Menu/qmldir</file>
|
||||
|
||||
Reference in New Issue
Block a user