From 119255ee7c0e76edbc9a43e4550ccb664d0baea3 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 27 Jul 2023 10:35:58 +0800 Subject: Add missing i18n()s --- contents/ui/ActivityView.qml | 2 +- contents/ui/configCanvas.qml | 4 ++-- contents/ui/main.qml | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contents/ui/ActivityView.qml b/contents/ui/ActivityView.qml index 1407e64..c8ec3c9 100644 --- a/contents/ui/ActivityView.qml +++ b/contents/ui/ActivityView.qml @@ -141,7 +141,7 @@ PlasmaComponents.ListItem { PlasmaComponents3.Button { icon.name: "internet-web-browser" visible: expanded - text: "Open in browser" + text: i18n("Open in browser") onClicked: () => { Qt.openUrlExternally(url) } diff --git a/contents/ui/configCanvas.qml b/contents/ui/configCanvas.qml index aed1a3e..26f611e 100644 --- a/contents/ui/configCanvas.qml +++ b/contents/ui/configCanvas.qml @@ -63,13 +63,13 @@ Kirigami.FormLayout { Button { icon.name: "download" - text: "Fetch courses" + text: i18n("Fetch courses") onClicked: fetchCourses() } Label { id: fetchCoursesStatus - text: "Fetching courses from Canvas will overwrite your current config." + text: i18n("Fetching courses from Canvas will overwrite your current config.") } } diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 0fb0b64..7e4b3ba 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -43,12 +43,12 @@ Item { PlasmaExtras.Heading { level: 1 - text: "Kanvas" + text: i18n("Kanvas") } PlasmaExtras.Heading { level: 2 - text: "Announcements" + text: i18n("Announcements") } ListModel { @@ -86,14 +86,14 @@ Item { width: parent.width - (PlasmaCore.Units.largeSpacing * 4) visible: announcementsModel.count == 0 iconName: "mail-read-symbolic" - text: "No announcements" + text: i18n("No announcements") } } } PlasmaExtras.Heading { level: 2 - text: "Assignments" + text: i18n("Assignments") } ListModel { @@ -132,7 +132,7 @@ Item { width: parent.width - (PlasmaCore.Units.largeSpacing * 4) visible: assignmentsModel.count == 0 iconName: "mail-read-symbolic" - text: "No assignments" + text: i18n("No assignments") } } } @@ -147,7 +147,7 @@ Item { PlasmaComponents3.Label { id: offlineLabel visible: networkStatus.networkStatus != "Connected" - text: "Network disconnected" + text: i18n("Network disconnected") color: PlasmaCore.Theme.negativeTextColor } } -- cgit v1.2.3