summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-07-27 10:35:58 +0800
committerFrederick Yin <fkfd@fkfd.me>2023-07-27 10:35:58 +0800
commit119255ee7c0e76edbc9a43e4550ccb664d0baea3 (patch)
treec3226847a9865aa5fabdb437d3884dca81d50e86
parentdb589d8f552e6ddaf80712fbbddfe2f296b135b4 (diff)
Add missing i18n()s
-rw-r--r--contents/ui/ActivityView.qml2
-rw-r--r--contents/ui/configCanvas.qml4
-rw-r--r--contents/ui/main.qml12
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
}
}