1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-13 06:33:30 -04:00

i18n: remove redundant terms and sync

This commit is contained in:
bbedward
2026-06-03 10:32:51 -04:00
parent bfca1b46a6
commit 2f2d4c9d9b
32 changed files with 10323 additions and 6296 deletions
@@ -245,7 +245,7 @@ QtObject {
{
"id": "builtin_vpn",
"text": I18n.tr("VPN"),
"description": I18n.tr("VPN connections"),
"description": I18n.tr("VPN Connections"),
"icon": "vpn_key",
"type": "builtin_plugin",
"enabled": DMSNetworkService.available,
@@ -25,7 +25,7 @@ CompoundPill {
return `${BatteryService.batteryLevel}% ` + I18n.tr("Charging");
}
if (BatteryService.isPluggedIn) {
return `${BatteryService.batteryLevel}% ` + I18n.tr("Plugged in");
return `${BatteryService.batteryLevel}% ` + I18n.tr("Plugged In");
}
return `${BatteryService.batteryLevel}%`;
}
+1 -1
View File
@@ -966,7 +966,7 @@ Item {
SettingsControlledByFrame {
visible: SettingsData.frameEnabled
parentModal: dankBarTab.parentModal
settingLabel: I18n.tr("Bar transparency")
settingLabel: I18n.tr("Bar Transparency")
reason: I18n.tr("Managed by Frame")
}
}
@@ -46,7 +46,7 @@ Item {
},
{
"id": "osd",
"name": I18n.tr("On-Screen Displays"),
"name": I18n.tr("On-screen Displays"),
"description": I18n.tr("Volume, brightness, and other system OSDs"),
"icon": "picture_in_picture"
},
@@ -419,7 +419,7 @@ Item {
DankToggle {
width: parent.width
text: I18n.tr("Focused monitor only")
text: I18n.tr("Focused Monitor Only")
description: I18n.tr("Show notifications only on the currently focused monitor")
visible: parent.componentId === "notifications"
checked: SettingsData.notificationFocusedMonitor
+3 -3
View File
@@ -586,7 +586,7 @@ Item {
}
StyledText {
text: I18n.tr("Time format")
text: I18n.tr("Time Format")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
@@ -605,7 +605,7 @@ Item {
SettingsToggleRow {
settingKey: "greeterShowSeconds"
tags: ["greeter", "time", "seconds"]
text: I18n.tr("Show seconds")
text: I18n.tr("Show Seconds")
checked: SettingsData.greeterShowSeconds
onToggled: checked => SettingsData.set("greeterShowSeconds", checked)
}
@@ -630,7 +630,7 @@ Item {
SettingsDropdownRow {
settingKey: "greeterLockDateFormat"
tags: ["greeter", "date", "format"]
text: I18n.tr("Date format")
text: I18n.tr("Date Format")
description: I18n.tr("Greeter only — format for the date on the login screen")
options: root._lockDateFormatPresets.map(p => p.label)
currentValue: {
@@ -126,7 +126,7 @@ Item {
settingKey: "systemUpdaterAdvanced"
SettingsToggleRow {
text: I18n.tr("Use custom command")
text: I18n.tr("Use Custom Command")
description: I18n.tr("Open a terminal and run a custom command instead of the in-shell upgrade flow.")
checked: SettingsData.updaterUseCustomCommand
onToggled: checked => {
+1 -1
View File
@@ -225,7 +225,7 @@ Item {
StyledText {
id: greeterChipText
anchors.centerIn: parent
text: I18n.tr("greeter")
text: I18n.tr("Greeter")
font.pixelSize: Theme.fontSizeSmall
color: Theme.secondary
font.weight: Font.Medium
+1 -1
View File
@@ -1131,7 +1131,7 @@ Item {
}
StyledText {
text: I18n.tr("24-hour format")
text: I18n.tr("24-Hour Format")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
anchors.verticalCenter: parent.verticalCenter
@@ -1637,7 +1637,7 @@ Column {
rows: [
{
icon: "screen_record",
label: I18n.tr("Screen Sharing"),
label: I18n.tr("Screen sharing"),
setting: "showScreenSharingIcon"
}
]
@@ -1801,7 +1801,7 @@ Column {
id: longestControlCenterLabelMetrics
font.pixelSize: Theme.fontSizeSmall
text: {
const labels = [I18n.tr("Network"), I18n.tr("VPN"), I18n.tr("Bluetooth"), I18n.tr("Audio"), I18n.tr("Volume"), I18n.tr("Microphone"), I18n.tr("Microphone Volume"), I18n.tr("Brightness"), I18n.tr("Brightness Value"), I18n.tr("Battery"), I18n.tr("Printer"), I18n.tr("Screen Sharing"), I18n.tr("Idle Inhibitor"), I18n.tr("Do Not Disturb")];
const labels = [I18n.tr("Network"), I18n.tr("VPN"), I18n.tr("Bluetooth"), I18n.tr("Audio"), I18n.tr("Volume"), I18n.tr("Microphone"), I18n.tr("Microphone Volume"), I18n.tr("Brightness"), I18n.tr("Brightness Value"), I18n.tr("Battery"), I18n.tr("Printer"), I18n.tr("Screen sharing"), I18n.tr("Idle Inhibitor"), I18n.tr("Do Not Disturb")];
let longest = "";
for (let i = 0; i < labels.length; i++) {
if (labels[i].length > longest.length)
@@ -34,12 +34,12 @@ Item {
readonly property var matchLabels: ({
"appId": I18n.tr("App ID"),
"title": I18n.tr("Title"),
"isFloating": I18n.tr("Is Floating"),
"isActive": I18n.tr("Is Active"),
"isFocused": I18n.tr("Is Focused"),
"isActiveInColumn": I18n.tr("Active In Column"),
"isFloating": I18n.tr("Floating"),
"isActive": I18n.tr("Active"),
"isFocused": I18n.tr("Focused"),
"isActiveInColumn": I18n.tr("Active in Column"),
"isWindowCastTarget": I18n.tr("Cast Target"),
"isUrgent": I18n.tr("Is Urgent"),
"isUrgent": I18n.tr("Urgent"),
"atStartup": I18n.tr("At Startup"),
"xwayland": I18n.tr("XWayland"),
"fullscreen": I18n.tr("Fullscreen"),
@@ -64,7 +64,7 @@ Item {
continue;
const label = labels[k] || k;
if (typeof v === "boolean")
out.push(label + ": " + (v ? I18n.tr("yes") : I18n.tr("no")));
out.push(label + ": " + (v ? I18n.tr("Yes") : I18n.tr("No")));
else
out.push(label + ": " + v);
}
@@ -699,7 +699,7 @@ Item {
return Object.keys(a).filter(k => a[k] !== undefined && a[k] !== null && a[k] !== "").map(k => {
const val = a[k];
if (typeof val === "boolean")
return val ? (labels[k] || k) : (labels[k] || k) + ": " + I18n.tr("off");
return val ? (labels[k] || k) : (labels[k] || k) + ": " + I18n.tr("Off");
return (labels[k] || k) + ": " + val;
});
}
@@ -952,7 +952,7 @@ Item {
parts.push("title: " + m.title);
const base = parts.length > 0 ? parts.join(" · ") : I18n.tr("No match criteria");
const count = root.matchesOf(externalCard.modelData).length;
return count > 1 ? I18n.tr("%1 (+%2 more)").arg(base).arg(count - 1) : base;
return count > 1 ? I18n.tr("%1 (+%2 more)").arg(base).arg(count - 1) : base;
}
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
@@ -976,7 +976,7 @@ Item {
return Object.keys(a).filter(k => a[k] !== undefined && a[k] !== null && a[k] !== "").map(k => {
const val = a[k];
if (typeof val === "boolean")
return val ? (labels[k] || k) : (labels[k] || k) + ": " + I18n.tr("off");
return val ? (labels[k] || k) : (labels[k] || k) + ": " + I18n.tr("Off");
return (labels[k] || k) + ": " + val;
});
}