fix(portctl): normalize category translation keys

This commit is contained in:
Lemmy
2026-07-18 01:22:35 -04:00
parent 8c1d5ff2f6
commit a3287ecc1f
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ local function catSection(catName, ports)
fill = "surface_container/0.4", fill = "surface_container/0.4",
}, { }, {
ui.glyph({ name = meta.icon, size = 12, color = meta.color }), ui.glyph({ name = meta.icon, size = 12, color = meta.color }),
ui.label({ text = noctalia.tr("categories." .. catName), fontSize = 11, fontWeight = "bold", color = meta.color }), ui.label({ text = noctalia.tr("categories." .. catName:lower()), fontSize = 11, fontWeight = "bold", color = meta.color }),
ui.label({ text = tostring(#ports), fontSize = 10, color = meta.color .. "/0.6" }), ui.label({ text = tostring(#ports), fontSize = 10, color = meta.color .. "/0.6" }),
})) }))
+1 -1
View File
@@ -2,7 +2,7 @@
id = "rxtsel/portctl" id = "rxtsel/portctl"
name = "Portctl" name = "Portctl"
version = "0.2.0" version = "0.2.1"
plugin_api = 3 plugin_api = 3
author = "Cristhian Melo" author = "Cristhian Melo"
license = "MIT" license = "MIT"
+6 -6
View File
@@ -13,12 +13,12 @@
"pid_copied": "Copied PID {pid}" "pid_copied": "Copied PID {pid}"
}, },
"categories": { "categories": {
"Development": "Development", "development": "Development",
"Databases": "Databases", "databases": "Databases",
"Containers": "Containers", "containers": "Containers",
"Servers": "Servers", "servers": "Servers",
"Cloud": "Cloud", "cloud": "Cloud",
"Other": "Other" "other": "Other"
}, },
"service": { "service": {
"terminated": "Process {pid} terminated", "terminated": "Process {pid} terminated",