Skip to content

Commit 284e44a

Browse files
authored
Fix tab bar translations
1 parent 5d085bb commit 284e44a

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

arch-updater/Settings.qml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,31 @@ ColumnLayout {
5555

5656
NTabButton {
5757
icon: "settings"
58-
text: "General"
58+
text: pluginApi.tr("settings.tabs.general")
5959
pointSize: Style.fontSizeL
6060
tabIndex: 0
6161
checked: tabBar.currentIndex === 0
6262
}
6363

6464
NTabButton {
6565
icon: "crop-16-9"
66-
text: "Bar"
66+
text: pluginApi.tr("settings.tabs.bar")
6767
pointSize: Style.fontSizeL
6868
tabIndex: 1
6969
checked: tabBar.currentIndex === 1
7070
}
7171

7272
NTabButton {
7373
icon: "table"
74-
text: "Panel"
74+
text: pluginApi.tr("settings.tabs.panel")
7575
pointSize: Style.fontSizeL
7676
tabIndex: 2
7777
checked: tabBar.currentIndex === 2
7878
}
7979

8080
NTabButton {
8181
icon: "clock"
82-
text: "Desktop"
82+
text: pluginApi.tr("settings.tabs.desktop")
8383
pointSize: Style.fontSizeL
8484
tabIndex: 3
8585
checked: tabBar.currentIndex === 3

arch-updater/i18n/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
"refreshed": "Available updates refreshed!"
2222
},
2323
"settings": {
24+
"tabs": {
25+
"general": "General",
26+
"bar": "Bar",
27+
"panel": "Panel",
28+
"desktop": "Desktop"
29+
},
2430
"general": {
2531
"title": "General",
2632
"desc": "Settings affecting the whole plugin",

0 commit comments

Comments
 (0)