From 5f778dbd819851c46a188a8dbaefbe94aa998bba Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 4 Aug 2025 21:27:28 +0200 Subject: [PATCH] Add some translation contexts --- src/app/qml/RoomPage.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/qml/RoomPage.qml b/src/app/qml/RoomPage.qml index ca92b74e4..316a2af99 100644 --- a/src/app/qml/RoomPage.qml +++ b/src/app/qml/RoomPage.qml @@ -83,7 +83,7 @@ Kirigami.Page { target: root.currentRoom.connection function onIsOnlineChanged() { if (!root.currentRoom.connection.isOnline) { - banner.text = i18n("NeoChat is offline. Please check your network connection."); + banner.text = i18nc("@info:status", "NeoChat is offline. Please check your network connection."); banner.visible = true; banner.type = Kirigami.MessageType.Error; } else { @@ -138,8 +138,8 @@ Kirigami.Page { anchors.centerIn: parent sourceComponent: Kirigami.PlaceholderMessage { icon.name: "org.kde.neochat" - text: i18n("Welcome to NeoChat") - explanation: i18n("Select or join a room to get started") + text: i18nc("@title", "Welcome to NeoChat") + explanation: i18nc("@info:usagetip", "Select or join a room to get started") } } @@ -206,7 +206,7 @@ Kirigami.Page { applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'MessageSourceSheet'), { sourceText: root.currentRoom.getEventJsonSource(eventId) }, { - title: i18n("Message Source"), + title: i18nc("@title:dialog", "Message Source"), width: Kirigami.Units.gridUnit * 25 }); }