1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

i18n: Add japanese + i18n service

This commit is contained in:
bbedward
2025-10-08 16:25:06 -04:00
parent 3909ce3350
commit ed1a5bfded
88 changed files with 3778 additions and 944 deletions

View File

@@ -248,7 +248,7 @@ Item {
}
StyledText {
text: qsTr("About")
text: I18n.tr("About")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -307,7 +307,7 @@ Item {
}
StyledText {
text: qsTr("Technical Details")
text: I18n.tr("Technical Details")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -322,7 +322,7 @@ Item {
rowSpacing: Theme.spacingS
StyledText {
text: qsTr("Framework:")
text: I18n.tr("Framework:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
@@ -345,20 +345,20 @@ Item {
}
StyledText {
text: qsTr("Language:")
text: I18n.tr("Language:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("QML (Qt Modeling Language)")
text: I18n.tr("QML (Qt Modeling Language)")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("Compositor:")
text: I18n.tr("Compositor:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
@@ -410,7 +410,7 @@ Item {
}
StyledText {
text: qsTr("Github:")
text: I18n.tr("Github:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
@@ -437,7 +437,7 @@ Item {
}
StyledText {
text: qsTr("- Support Us With a Star ⭐")
text: I18n.tr("- Support Us With a Star ⭐")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.verticalCenter: parent.verticalCenter
@@ -445,7 +445,7 @@ Item {
}
StyledText {
text: qsTr("System Monitoring:")
text: I18n.tr("System Monitoring:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
@@ -472,7 +472,7 @@ Item {
}
StyledText {
text: qsTr("- Stateless System Monitoring")
text: I18n.tr("- Stateless System Monitoring")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.verticalCenter: parent.verticalCenter
@@ -480,7 +480,7 @@ Item {
}
StyledText {
text: qsTr("Dank Suite:")
text: I18n.tr("Dank Suite:")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText

View File

@@ -22,170 +22,170 @@ Item {
property var baseWidgetDefinitions: {
var coreWidgets = [{
"id": "launcherButton",
"text": "App Launcher",
"description": "Quick access to application launcher",
"text": I18n.tr("App Launcher"),
"description": I18n.tr("Quick access to application launcher"),
"icon": "apps",
"enabled": true
}, {
"id": "workspaceSwitcher",
"text": "Workspace Switcher",
"description": "Shows current workspace and allows switching",
"text": I18n.tr("Workspace Switcher"),
"description": I18n.tr("Shows current workspace and allows switching"),
"icon": "view_module",
"enabled": true
}, {
"id": "focusedWindow",
"text": "Focused Window",
"description": "Display currently focused application title",
"text": I18n.tr("Focused Window"),
"description": I18n.tr("Display currently focused application title"),
"icon": "window",
"enabled": true
}, {
"id": "runningApps",
"text": "Running Apps",
"description": "Shows all running applications with focus indication",
"text": I18n.tr("Running Apps"),
"description": I18n.tr("Shows all running applications with focus indication"),
"icon": "apps",
"enabled": true
}, {
"id": "clock",
"text": "Clock",
"description": "Current time and date display",
"text": I18n.tr("Clock"),
"description": I18n.tr("Current time and date display"),
"icon": "schedule",
"enabled": true
}, {
"id": "weather",
"text": "Weather Widget",
"description": "Current weather conditions and temperature",
"text": I18n.tr("Weather Widget"),
"description": I18n.tr("Current weather conditions and temperature"),
"icon": "wb_sunny",
"enabled": true
}, {
"id": "music",
"text": "Media Controls",
"description": "Control currently playing media",
"text": I18n.tr("Media Controls"),
"description": I18n.tr("Control currently playing media"),
"icon": "music_note",
"enabled": true
}, {
"id": "clipboard",
"text": "Clipboard Manager",
"description": "Access clipboard history",
"text": I18n.tr("Clipboard Manager"),
"description": I18n.tr("Access clipboard history"),
"icon": "content_paste",
"enabled": true
}, {
"id": "cpuUsage",
"text": "CPU Usage",
"description": "CPU usage indicator",
"text": I18n.tr("CPU Usage"),
"description": I18n.tr("CPU usage indicator"),
"icon": "memory",
"enabled": DgopService.dgopAvailable,
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
"warning": !DgopService.dgopAvailable ? I18n.tr("Requires 'dgop' tool") : undefined
}, {
"id": "memUsage",
"text": "Memory Usage",
"description": "Memory usage indicator",
"text": I18n.tr("Memory Usage"),
"description": I18n.tr("Memory usage indicator"),
"icon": "developer_board",
"enabled": DgopService.dgopAvailable,
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
"warning": !DgopService.dgopAvailable ? I18n.tr("Requires 'dgop' tool") : undefined
}, {
"id": "diskUsage",
"text": "Disk Usage",
"description": "Percentage",
"text": I18n.tr("Disk Usage"),
"description": I18n.tr("Percentage"),
"icon": "storage",
"enabled": DgopService.dgopAvailable,
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
"warning": !DgopService.dgopAvailable ? I18n.tr("Requires 'dgop' tool") : undefined
}, {
"id": "cpuTemp",
"text": "CPU Temperature",
"description": "CPU temperature display",
"text": I18n.tr("CPU Temperature"),
"description": I18n.tr("CPU temperature display"),
"icon": "device_thermostat",
"enabled": DgopService.dgopAvailable,
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
"warning": !DgopService.dgopAvailable ? I18n.tr("Requires 'dgop' tool") : undefined
}, {
"id": "gpuTemp",
"text": "GPU Temperature",
"description": "GPU temperature display",
"text": I18n.tr("GPU Temperature"),
"description": I18n.tr("GPU temperature display"),
"icon": "auto_awesome_mosaic",
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : "This widget prevents GPU power off states, which can significantly impact battery life on laptops. It is not recommended to use this on laptops with hybrid graphics.",
"warning": !DgopService.dgopAvailable ? I18n.tr("Requires 'dgop' tool") : I18n.tr("This widget prevents GPU power off states, which can significantly impact battery life on laptops. It is not recommended to use this on laptops with hybrid graphics."),
"enabled": DgopService.dgopAvailable
}, {
"id": "systemTray",
"text": "System Tray",
"description": "System notification area icons",
"text": I18n.tr("System Tray"),
"description": I18n.tr("System notification area icons"),
"icon": "notifications",
"enabled": true
}, {
"id": "privacyIndicator",
"text": "Privacy Indicator",
"description": "Shows when microphone, camera, or screen sharing is active",
"text": I18n.tr("Privacy Indicator"),
"description": I18n.tr("Shows when microphone, camera, or screen sharing is active"),
"icon": "privacy_tip",
"enabled": true
}, {
"id": "controlCenterButton",
"text": "Control Center",
"description": "Access to system controls and settings",
"text": I18n.tr("Control Center"),
"description": I18n.tr("Access to system controls and settings"),
"icon": "settings",
"enabled": true
}, {
"id": "notificationButton",
"text": "Notification Center",
"description": "Access to notifications and do not disturb",
"text": I18n.tr("Notification Center"),
"description": I18n.tr("Access to notifications and do not disturb"),
"icon": "notifications",
"enabled": true
}, {
"id": "battery",
"text": "Battery",
"description": "Battery level and power management",
"text": I18n.tr("Battery"),
"description": I18n.tr("Battery level and power management"),
"icon": "battery_std",
"enabled": true
}, {
"id": "vpn",
"text": "VPN",
"description": "VPN status and quick connect",
"text": I18n.tr("VPN"),
"description": I18n.tr("VPN status and quick connect"),
"icon": "vpn_lock",
"enabled": true
}, {
"id": "idleInhibitor",
"text": "Idle Inhibitor",
"description": "Prevent screen timeout",
"text": I18n.tr("Idle Inhibitor"),
"description": I18n.tr("Prevent screen timeout"),
"icon": "motion_sensor_active",
"enabled": true
}, {
"id": "spacer",
"text": "Spacer",
"description": "Customizable empty space",
"text": I18n.tr("Spacer"),
"description": I18n.tr("Customizable empty space"),
"icon": "more_horiz",
"enabled": true
}, {
"id": "separator",
"text": "Separator",
"description": "Visual divider between widgets",
"text": I18n.tr("Separator"),
"description": I18n.tr("Visual divider between widgets"),
"icon": "remove",
"enabled": true
},
{
"id": "network_speed_monitor",
"text": "Network Speed Monitor",
"description": "Network download and upload speed display",
"text": I18n.tr("Network Speed Monitor"),
"description": I18n.tr("Network download and upload speed display"),
"icon": "network_check",
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined,
"warning": !DgopService.dgopAvailable ? I18n.tr("Requires 'dgop' tool") : undefined,
"enabled": DgopService.dgopAvailable
}, {
"id": "keyboard_layout_name",
"text": "Keyboard Layout Name",
"description": "Displays the active keyboard layout and allows switching",
"text": I18n.tr("Keyboard Layout Name"),
"description": I18n.tr("Displays the active keyboard layout and allows switching"),
"icon": "keyboard",
}, {
"id": "notepadButton",
"text": "Notepad",
"description": "Quick access to notepad",
"text": I18n.tr("Notepad"),
"description": I18n.tr("Quick access to notepad"),
"icon": "assignment",
"enabled": true
}, {
"id": "colorPicker",
"text": "Color Picker",
"description": "Quick access to color picker",
"text": I18n.tr("Color Picker"),
"description": I18n.tr("Quick access to color picker"),
"icon": "palette",
"enabled": true
}, {
"id": "systemUpdate",
"text": "System Update",
"description": "Check for system updates",
"text": I18n.tr("System Update"),
"description": I18n.tr("Check for system updates"),
"icon": "update",
"enabled": SystemUpdateService.distributionSupported
}]
@@ -199,7 +199,7 @@ Item {
"description": variant.description,
"icon": variant.icon,
"enabled": variant.loaded,
"warning": !variant.loaded ? "Plugin is disabled - enable in Plugins settings to use" : undefined
"warning": !variant.loaded ? I18n.tr("Plugin is disabled - enable in Plugins settings to use") : undefined
})
}
@@ -695,7 +695,7 @@ Item {
}
StyledText {
text: qsTr("Position")
text: I18n.tr("Position")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -765,14 +765,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Auto-hide")
text: I18n.tr("Auto-hide")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Automatically hide the top bar to expand screen real estate")
text: I18n.tr("Automatically hide the top bar to expand screen real estate")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -817,14 +817,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: "Manual Show/Hide"
text: I18n.tr("Manual Show/Hide")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Toggle top bar visibility manually (can be controlled via IPC)")
text: I18n.tr("Toggle top bar visibility manually (can be controlled via IPC)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -871,14 +871,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Show on Overview")
text: I18n.tr("Show on Overview")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: "Always show the top bar when niri's overview is open"
text: I18n.tr("Always show the top bar when niri's overview is open")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -930,7 +930,7 @@ Item {
}
StyledText {
text: qsTr("Spacing")
text: I18n.tr("Spacing")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -943,7 +943,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: "Edge Spacing (0 = edge-to-edge)"
text: I18n.tr("Edge Spacing (0 = edge-to-edge)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -971,7 +971,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Exclusive Zone Offset")
text: I18n.tr("Exclusive Zone Offset")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -999,7 +999,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Size")
text: I18n.tr("Size")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -1025,7 +1025,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Square Corners")
text: I18n.tr("Square Corners")
description: "Removes rounded corners from bar container."
checked: SettingsData.dankBarSquareCorners
onToggled: checked => {
@@ -1036,7 +1036,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("No Background")
text: I18n.tr("No Background")
description: "Remove widget backgrounds for a minimal look with tighter spacing."
checked: SettingsData.dankBarNoBackground
onToggled: checked => {
@@ -1047,7 +1047,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Goth Corners")
text: I18n.tr("Goth Corners")
description: "Add curved swooping tips at the bottom of the bar."
checked: SettingsData.dankBarGothCornersEnabled
onToggled: checked => {
@@ -1058,7 +1058,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Border")
text: I18n.tr("Border")
description: "Add a 1px border to the bar. Smart edge detection only shows border on exposed sides."
checked: SettingsData.dankBarBorderEnabled
onToggled: checked => {
@@ -1088,14 +1088,14 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("DankBar Font Scale")
text: I18n.tr("DankBar Font Scale")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Scale DankBar font sizes independently")
text: I18n.tr("Scale DankBar font sizes independently")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
@@ -1190,7 +1190,7 @@ Item {
StyledText {
id: widgetTitle
text: qsTr("Widget Management")
text: I18n.tr("Widget Management")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1228,7 +1228,7 @@ Item {
}
StyledText {
text: qsTr("Reset")
text: I18n.tr("Reset")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1270,7 +1270,7 @@ Item {
StyledText {
width: parent.width
text: "Drag widgets to reorder within sections. Use the eye icon to hide/show widgets (maintains spacing), or X to remove them completely."
text: I18n.tr("Drag widgets to reorder within sections. Use the eye icon to hide/show widgets (maintains spacing), or X to remove them completely.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -1372,7 +1372,7 @@ Item {
id: centerSection
anchors.fill: parent
anchors.margins: Theme.spacingL
title: qsTr("Center Section")
title: I18n.tr("Center Section")
titleIcon: "format_align_center"
sectionId: "center"
allWidgets: dankBarTab.baseWidgetDefinitions

View File

@@ -108,14 +108,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Connected Displays")
text: I18n.tr("Connected Displays")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Configure which displays show shell components")
text: I18n.tr("Configure which displays show shell components")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -131,7 +131,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Available Screens (") + Quickshell.screens.length + ")"
text: I18n.tr("Available Screens (") + Quickshell.screens.length + ")"
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
@@ -273,7 +273,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Show on screens:")
text: I18n.tr("Show on screens:")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -288,8 +288,8 @@ Item {
DankToggle {
width: parent.width
text: qsTr("All displays")
description: "Show on all connected displays"
text: I18n.tr("All displays")
description: I18n.tr("Show on all connected displays")
checked: parent.selectedScreens.includes("all")
onToggled: (checked) => {
if (checked)

View File

@@ -50,7 +50,7 @@ Item {
StyledText {
id: positionText
text: qsTr("Dock Position")
text: I18n.tr("Dock Position")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -125,14 +125,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Auto-hide Dock")
text: I18n.tr("Auto-hide Dock")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Hide the dock when not in use and reveal it when hovering near the dock area")
text: I18n.tr("Hide the dock when not in use and reveal it when hovering near the dock area")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -176,14 +176,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Show Dock")
text: I18n.tr("Show Dock")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Display a dock with pinned and running applications that can be positioned at the top, bottom, left, or right edge of the screen")
text: I18n.tr("Display a dock with pinned and running applications that can be positioned at the top, bottom, left, or right edge of the screen")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -229,14 +229,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Show on Overview")
text: I18n.tr("Show on Overview")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: "Always show the dock when niri's overview is open"
text: I18n.tr("Always show the dock when niri's overview is open")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -294,14 +294,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Group by App")
text: I18n.tr("Group by App")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Group multiple windows of the same app together with a window count indicator")
text: I18n.tr("Group multiple windows of the same app together with a window count indicator")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -360,7 +360,7 @@ Item {
}
StyledText {
text: qsTr("Spacing")
text: I18n.tr("Spacing")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -373,7 +373,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Padding")
text: I18n.tr("Padding")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -401,7 +401,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Height to Edge Gap (Exclusive Zone)")
text: I18n.tr("Height to Edge Gap (Exclusive Zone)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -464,7 +464,7 @@ Item {
}
StyledText {
text: qsTr("Dock Transparency")
text: I18n.tr("Dock Transparency")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText

View File

@@ -13,7 +13,7 @@ Item {
FileBrowserModal {
id: logoFileBrowser
browserTitle: qsTr("Select Launcher Logo")
browserTitle: I18n.tr("Select Launcher Logo")
browserIcon: "image"
browserType: "generic"
filterExtensions: ["*.svg", "*.png", "*.jpg", "*.jpeg", "*.webp"]
@@ -62,7 +62,7 @@ Item {
}
StyledText {
text: qsTr("Launcher Button Logo")
text: I18n.tr("Launcher Button Logo")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -72,7 +72,7 @@ Item {
StyledText {
width: parent.width
text: qsTr("Choose the logo displayed on the launcher button in DankBar")
text: I18n.tr("Choose the logo displayed on the launcher button in DankBar")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -86,12 +86,12 @@ Item {
id: logoModeGroup
anchors.horizontalCenter: parent.horizontalCenter
model: {
const modes = [qsTr("Apps Icon"), qsTr("OS Logo")]
const modes = [I18n.tr("Apps Icon"), I18n.tr("OS Logo")]
if (CompositorService.isNiri || CompositorService.isHyprland) {
const compositorName = CompositorService.isNiri ? "niri" : "Hyprland"
modes.push(compositorName)
}
modes.push(qsTr("Custom"))
modes.push(I18n.tr("Custom"))
return modes
}
currentIndex: {
@@ -149,7 +149,7 @@ Item {
anchors.left: parent.left
anchors.leftMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
text: SettingsData.launcherLogoCustomPath || qsTr("Select an image file...")
text: SettingsData.launcherLogoCustomPath || I18n.tr("Select an image file...")
font.pixelSize: Theme.fontSizeMedium
color: SettingsData.launcherLogoCustomPath ? Theme.surfaceText : Theme.outlineButton
width: parent.width - Theme.spacingM * 2
@@ -184,7 +184,7 @@ Item {
spacing: Theme.spacingM
StyledText {
text: qsTr("Color Override")
text: I18n.tr("Color Override")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -197,7 +197,7 @@ Item {
DankButtonGroup {
id: colorModeGroup
model: [qsTr("Default"), qsTr("Primary"), qsTr("Surface"), qsTr("Custom")]
model: [I18n.tr("Default"), I18n.tr("Primary"), I18n.tr("Surface"), I18n.tr("Custom")]
currentIndex: {
const override = SettingsData.launcherLogoColorOverride
if (override === "") return 0
@@ -248,7 +248,7 @@ Item {
onClicked: {
if (PopoutService.colorPickerModal) {
PopoutService.colorPickerModal.selectedColor = SettingsData.launcherLogoColorOverride
PopoutService.colorPickerModal.pickerTitle = qsTr("Choose Launcher Logo Color")
PopoutService.colorPickerModal.pickerTitle = I18n.tr("Choose Launcher Logo Color")
PopoutService.colorPickerModal.onColorSelectedCallback = function(selectedColor) {
SettingsData.setLauncherLogoColorOverride(selectedColor)
}
@@ -270,7 +270,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
StyledText {
text: qsTr("Size Offset")
text: I18n.tr("Size Offset")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -321,7 +321,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Brightness")
text: I18n.tr("Brightness")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -350,7 +350,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Contrast")
text: I18n.tr("Contrast")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -379,7 +379,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Invert on mode change")
text: I18n.tr("Invert on mode change")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -430,7 +430,7 @@ Item {
}
StyledText {
text: qsTr("Launch Prefix")
text: I18n.tr("Launch Prefix")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -440,7 +440,7 @@ Item {
StyledText {
width: parent.width
text: "Add a custom prefix to all application launches. This can be used for things like 'uwsm-app', 'systemd-run', or other command wrappers."
text: I18n.tr("Add a custom prefix to all application launches. This can be used for things like 'uwsm-app', 'systemd-run', or other command wrappers.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -510,7 +510,7 @@ Item {
}
StyledText {
text: qsTr("Recently Used Apps")
text: I18n.tr("Recently Used Apps")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -540,7 +540,7 @@ Item {
StyledText {
width: parent.width
text: qsTr("Apps are ordered by usage frequency, then last used, then alphabetically.")
text: I18n.tr("Apps are ordered by usage frequency, then last used, then alphabetically.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap

View File

@@ -104,7 +104,7 @@ Item {
}
StyledText {
text: qsTr("Wallpaper")
text: I18n.tr("Wallpaper")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -438,14 +438,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Per-Mode Wallpapers")
text: I18n.tr("Per-Mode Wallpapers")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Set different wallpapers for light and dark mode")
text: I18n.tr("Set different wallpapers for light and dark mode")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
@@ -495,14 +495,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Per-Monitor Wallpapers")
text: I18n.tr("Per-Monitor Wallpapers")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Set different wallpapers for each connected monitor")
text: I18n.tr("Set different wallpapers for each connected monitor")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
@@ -527,7 +527,7 @@ Item {
leftPadding: Theme.iconSize + Theme.spacingM
StyledText {
text: qsTr("Monitor Selection:")
text: I18n.tr("Monitor Selection:")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
@@ -536,8 +536,8 @@ Item {
DankDropdown {
id: monitorDropdown
text: qsTr("Monitor")
description: "Select monitor to configure wallpaper"
text: I18n.tr("Monitor")
description: I18n.tr("Select monitor to configure wallpaper")
currentValue: selectedMonitorName || "No monitors"
options: {
var screenNames = []
@@ -584,14 +584,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Automatic Cycling")
text: I18n.tr("Automatic Cycling")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Automatically cycle through wallpapers in the same folder")
text: I18n.tr("Automatically cycle through wallpapers in the same folder")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
@@ -633,7 +633,7 @@ Item {
width: parent.width - parent.leftPadding
StyledText {
text: qsTr("Mode:")
text: I18n.tr("Mode:")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
@@ -700,8 +700,8 @@ Item {
return SessionData.wallpaperCyclingMode === "interval"
}
}
text: qsTr("Interval")
description: "How often to change wallpaper"
text: I18n.tr("Interval")
description: I18n.tr("How often to change wallpaper")
options: intervalOptions
currentValue: {
var currentSeconds
@@ -755,7 +755,7 @@ Item {
width: parent.width - parent.leftPadding
StyledText {
text: qsTr("Daily at:")
text: I18n.tr("Daily at:")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
@@ -830,7 +830,7 @@ Item {
}
StyledText {
text: qsTr("24-hour format")
text: I18n.tr("24-hour format")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
anchors.verticalCenter: parent.verticalCenter
@@ -847,8 +847,8 @@ Item {
}
DankDropdown {
text: qsTr("Transition Effect")
description: "Visual effect used when wallpaper changes"
text: I18n.tr("Transition Effect")
description: I18n.tr("Visual effect used when wallpaper changes")
currentValue: {
if (SessionData.wallpaperTransition === "random") return "Random"
return SessionData.wallpaperTransition.charAt(0).toUpperCase() + SessionData.wallpaperTransition.slice(1)
@@ -866,14 +866,14 @@ Item {
visible: SessionData.wallpaperTransition === "random"
StyledText {
text: qsTr("Include Transitions")
text: I18n.tr("Include Transitions")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
}
StyledText {
text: qsTr("Select which transitions to include in randomization")
text: I18n.tr("Select which transitions to include in randomization")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -938,14 +938,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Dynamic Theming")
text: I18n.tr("Dynamic Theming")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Automatically extract colors from wallpaper")
text: I18n.tr("Automatically extract colors from wallpaper")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -970,7 +970,7 @@ Item {
DankDropdown {
id: personalizationMatugenPaletteDropdown
text: qsTr("Matugen Palette")
text: I18n.tr("Matugen Palette")
description: "Select the palette algorithm used for wallpaper-based colors"
options: Theme.availableMatugenSchemes.map(function (option) { return option.label })
currentValue: Theme.getMatugenScheme(SettingsData.matugenScheme).label
@@ -999,7 +999,7 @@ Item {
}
StyledText {
text: qsTr("matugen not detected - dynamic theming unavailable")
text: I18n.tr("matugen not detected - dynamic theming unavailable")
font.pixelSize: Theme.fontSizeSmall
color: Theme.error
visible: ToastService.wallpaperErrorStatus === "matugen_missing"
@@ -1037,7 +1037,7 @@ Item {
}
StyledText {
text: qsTr("Display Settings")
text: I18n.tr("Display Settings")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1047,8 +1047,8 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Light Mode")
description: "Use light theme instead of dark theme"
text: I18n.tr("Light Mode")
description: I18n.tr("Use light theme instead of dark theme")
checked: SessionData.isLightMode
onToggleCompleted: checked => {
Theme.screenTransition()
@@ -1068,7 +1068,7 @@ Item {
id: nightModeToggle
width: parent.width
text: qsTr("Night Mode")
text: I18n.tr("Night Mode")
description: "Apply warm color temperature to reduce eye strain. Use automation settings below to control when it activates."
checked: DisplayService.nightModeEnabled
onToggled: checked => {
@@ -1085,8 +1085,8 @@ Item {
}
DankDropdown {
text: qsTr("Temperature")
description: "Color temperature for night mode"
text: I18n.tr("Temperature")
description: I18n.tr("Color temperature for night mode")
currentValue: SessionData.nightModeTemperature + "K"
options: {
var temps = []
@@ -1104,7 +1104,7 @@ Item {
DankToggle {
id: automaticToggle
width: parent.width
text: qsTr("Automatic Control")
text: I18n.tr("Automatic Control")
description: "Only adjust gamma based on time or location rules."
checked: SessionData.nightModeAutoEnabled
onToggled: checked => {
@@ -1187,7 +1187,7 @@ Item {
leftPadding: 45
StyledText {
text: qsTr("Hour")
text: I18n.tr("Hour")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: 50
@@ -1196,7 +1196,7 @@ Item {
}
StyledText {
text: qsTr("Minute")
text: I18n.tr("Minute")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: 50
@@ -1212,7 +1212,7 @@ Item {
StyledText {
id: startLabel
text: qsTr("Start")
text: I18n.tr("Start")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
width: 50
@@ -1260,7 +1260,7 @@ Item {
height: 32
StyledText {
text: qsTr("End")
text: I18n.tr("End")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
width: startLabel.width
@@ -1311,7 +1311,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Auto-location")
text: I18n.tr("Auto-location")
description: DisplayService.geoclueAvailable ? "Use automatic location detection (geoclue2)" : "Geoclue service not running - cannot auto-detect location"
checked: SessionData.nightModeLocationProvider === "geoclue2"
enabled: DisplayService.geoclueAvailable
@@ -1327,7 +1327,7 @@ Item {
}
StyledText {
text: qsTr("Manual Coordinates")
text: I18n.tr("Manual Coordinates")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
visible: SessionData.nightModeLocationProvider !== "geoclue2"
@@ -1341,7 +1341,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Latitude")
text: I18n.tr("Latitude")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -1364,7 +1364,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Longitude")
text: I18n.tr("Longitude")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -1385,7 +1385,7 @@ Item {
}
StyledText {
text: "Uses sunrise/sunset times to automatically adjust night mode based on your location."
text: I18n.tr("Uses sunrise/sunset times to automatically adjust night mode based on your location.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
@@ -1424,7 +1424,7 @@ Item {
}
StyledText {
text: qsTr("Notification Popups")
text: I18n.tr("Notification Popups")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1433,8 +1433,8 @@ Item {
}
DankDropdown {
text: qsTr("Popup Position")
description: "Choose where notification popups appear on screen"
text: I18n.tr("Popup Position")
description: I18n.tr("Choose where notification popups appear on screen")
currentValue: {
if (SettingsData.notificationPopupPosition === -1) {
return "Top Center"
@@ -1484,8 +1484,8 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Always Show OSD Percentage")
description: "Display volume and brightness percentage values by default in OSD popups"
text: I18n.tr("Always Show OSD Percentage")
description: I18n.tr("Display volume and brightness percentage values by default in OSD popups")
checked: SettingsData.osdAlwaysShowValue
onToggled: checked => {
SettingsData.setOsdAlwaysShowValue(checked)
@@ -1522,7 +1522,7 @@ Item {
}
StyledText {
text: qsTr("Font Settings")
text: I18n.tr("Font Settings")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1531,8 +1531,8 @@ Item {
}
DankDropdown {
text: qsTr("Font Family")
description: "Select system font family"
text: I18n.tr("Font Family")
description: I18n.tr("Select system font family")
currentValue: {
if (SettingsData.fontFamily === SettingsData.defaultFontFamily)
return "Default"
@@ -1552,8 +1552,8 @@ Item {
}
DankDropdown {
text: qsTr("Font Weight")
description: "Select font weight"
text: I18n.tr("Font Weight")
description: I18n.tr("Select font weight")
currentValue: {
switch (SettingsData.fontWeight) {
case Font.Thin:
@@ -1618,8 +1618,8 @@ Item {
}
DankDropdown {
text: qsTr("Monospace Font")
description: "Select monospace font for process list and technical displays"
text: I18n.tr("Monospace Font")
description: I18n.tr("Select monospace font for process list and technical displays")
currentValue: {
if (SettingsData.monoFontFamily === SettingsData.defaultMonoFontFamily)
return "Default"
@@ -1653,14 +1653,14 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Font Scale")
text: I18n.tr("Font Scale")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Scale all font sizes")
text: I18n.tr("Scale all font sizes")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
@@ -1752,7 +1752,7 @@ Item {
}
StyledText {
text: qsTr("Animations")
text: I18n.tr("Animations")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1765,14 +1765,14 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Animation Speed")
text: I18n.tr("Animation Speed")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
}
StyledText {
text: qsTr("Control the speed of animations throughout the interface")
text: I18n.tr("Control the speed of animations throughout the interface")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -1823,7 +1823,7 @@ Item {
}
StyledText {
text: qsTr("Lock Screen")
text: I18n.tr("Lock Screen")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1833,7 +1833,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Show Power Actions")
text: I18n.tr("Show Power Actions")
description: "Show power, restart, and logout buttons on the lock screen"
checked: SettingsData.lockScreenShowPowerActions
onToggled: checked => {

View File

@@ -58,14 +58,14 @@ FocusScope {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Plugin Management")
text: I18n.tr("Plugin Management")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
}
StyledText {
text: qsTr("Manage and configure plugins for extending DMS functionality")
text: I18n.tr("Manage and configure plugins for extending DMS functionality")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -98,7 +98,7 @@ FocusScope {
}
StyledText {
text: qsTr("DMS Plugin Manager Unavailable")
text: I18n.tr("DMS Plugin Manager Unavailable")
font.pixelSize: Theme.fontSizeSmall
color: Theme.warning
font.weight: Font.Medium
@@ -107,7 +107,7 @@ FocusScope {
}
StyledText {
text: qsTr("The DMS_SOCKET environment variable is not set or the socket is unavailable. Automated plugin management requires the DMS_SOCKET.")
text: I18n.tr("The DMS_SOCKET environment variable is not set or the socket is unavailable. Automated plugin management requires the DMS_SOCKET.")
font.pixelSize: Theme.fontSizeSmall - 1
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -121,7 +121,7 @@ FocusScope {
spacing: Theme.spacingM
DankButton {
text: qsTr("Browse")
text: I18n.tr("Browse")
iconName: "store"
enabled: DMSService.dmsAvailable
onClicked: {
@@ -130,7 +130,7 @@ FocusScope {
}
DankButton {
text: qsTr("Scan")
text: I18n.tr("Scan")
iconName: "refresh"
onClicked: {
pluginsTab.isRefreshingPlugins = true
@@ -143,7 +143,7 @@ FocusScope {
}
DankButton {
text: qsTr("Create Dir")
text: I18n.tr("Create Dir")
iconName: "create_new_folder"
onClicked: {
PluginService.createPluginDirectory()
@@ -169,7 +169,7 @@ FocusScope {
spacing: Theme.spacingM
StyledText {
text: qsTr("Plugin Directory")
text: I18n.tr("Plugin Directory")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -183,7 +183,7 @@ FocusScope {
}
StyledText {
text: qsTr("Place plugin directories here. Each plugin should have a plugin.json manifest file.")
text: I18n.tr("Place plugin directories here. Each plugin should have a plugin.json manifest file.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -207,7 +207,7 @@ FocusScope {
spacing: Theme.spacingM
StyledText {
text: qsTr("Available Plugins")
text: I18n.tr("Available Plugins")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -563,7 +563,7 @@ FocusScope {
StyledText {
width: parent.width
text: "No plugins found.\nPlace plugins in " + PluginService.pluginDirectory
text: I18n.tr("No plugins found.") + "\n" + I18n.tr("Place plugins in") + " " + PluginService.pluginDirectory
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
horizontalAlignment: Text.AlignHCenter
@@ -782,7 +782,7 @@ FocusScope {
StyledText {
id: headerText
text: qsTr("Browse Plugins")
text: I18n.tr("Browse Plugins")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -831,7 +831,7 @@ FocusScope {
}
StyledText {
text: qsTr("Install plugins from the DMS plugin registry")
text: I18n.tr("Install plugins from the DMS plugin registry")
font.pixelSize: Theme.fontSizeSmall
color: Theme.outline
width: parent.width
@@ -853,7 +853,7 @@ FocusScope {
showClearButton: true
textColor: Theme.surfaceText
font.pixelSize: Theme.fontSizeMedium
placeholderText: qsTr("Search plugins...")
placeholderText: I18n.tr("Search plugins...")
text: pluginBrowserModal.searchQuery
focus: true
ignoreLeftRightKeys: true
@@ -889,7 +889,7 @@ FocusScope {
}
StyledText {
text: qsTr("Loading plugins...")
text: I18n.tr("Loading plugins...")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.horizontalCenter: parent.horizontalCenter
@@ -969,7 +969,7 @@ FocusScope {
StyledText {
id: firstPartyText
anchors.centerIn: parent
text: qsTr("official")
text: I18n.tr("official")
font.pixelSize: Theme.fontSizeSmall - 2
color: Theme.primary
font.weight: Font.Medium
@@ -989,7 +989,7 @@ FocusScope {
StyledText {
id: thirdPartyText
anchors.centerIn: parent
text: qsTr("3rd party")
text: I18n.tr("3rd party")
font.pixelSize: Theme.fontSizeSmall - 2
color: Theme.warning
font.weight: Font.Medium
@@ -1113,7 +1113,7 @@ FocusScope {
}
StyledText {
text: qsTr("No plugins found")
text: I18n.tr("No plugins found")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.horizontalCenter: parent.horizontalCenter
@@ -1162,7 +1162,7 @@ FocusScope {
}
StyledText {
text: qsTr("Third-Party Plugin Warning")
text: I18n.tr("Third-Party Plugin Warning")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1172,7 +1172,7 @@ FocusScope {
StyledText {
width: parent.width
text: "Third-party plugins are created by the community and are not officially supported by DankMaterialShell.\n\nThese plugins may pose security and privacy risks - install at your own risk."
text: I18n.tr("Third-party plugins are created by the community and are not officially supported by DankMaterialShell.\n\nThese plugins may pose security and privacy risks - install at your own risk.")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
wrapMode: Text.WordWrap
@@ -1183,19 +1183,19 @@ FocusScope {
spacing: Theme.spacingS
StyledText {
text: qsTr("• Plugins may contain bugs or security issues")
text: I18n.tr("• Plugins may contain bugs or security issues")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• Review code before installation when possible")
text: I18n.tr("• Review code before installation when possible")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• Install only from trusted sources")
text: I18n.tr("• Install only from trusted sources")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -1211,13 +1211,13 @@ FocusScope {
spacing: Theme.spacingM
DankButton {
text: qsTr("Cancel")
text: I18n.tr("Cancel")
iconName: "close"
onClicked: thirdPartyConfirmModal.close()
}
DankButton {
text: qsTr("I Understand")
text: I18n.tr("I Understand")
iconName: "check"
onClicked: {
SessionData.setShowThirdPartyPlugins(true)

View File

@@ -130,7 +130,7 @@ Item {
}
StyledText {
text: qsTr("Theme Color")
text: I18n.tr("Theme Color")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -651,7 +651,7 @@ Item {
DankDropdown {
id: matugenPaletteDropdown
text: qsTr("Matugen Palette")
text: I18n.tr("Matugen Palette")
description: "Select the palette algorithm used for wallpaper-based colors"
options: Theme.availableMatugenSchemes.map(function (option) { return option.label })
currentValue: Theme.getMatugenScheme(SettingsData.matugenScheme).label
@@ -756,7 +756,7 @@ Item {
}
StyledText {
text: qsTr("Widget Styling")
text: I18n.tr("Widget Styling")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -769,7 +769,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Dank Bar Transparency")
text: I18n.tr("Dank Bar Transparency")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -803,7 +803,7 @@ Item {
StyledText {
id: transparencyLabel
text: qsTr("Dank Bar Widget Transparency")
text: I18n.tr("Dank Bar Widget Transparency")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -867,7 +867,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Popup Transparency")
text: I18n.tr("Popup Transparency")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -904,7 +904,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: "Corner Radius (0 = square corners)"
text: I18n.tr("Corner Radius (0 = square corners)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -955,7 +955,7 @@ Item {
StyledText {
id: warningText
font.pixelSize: Theme.fontSizeSmall
text: "The below settings will modify your GTK and Qt settings. If you wish to preserve your current configurations, please back them up (qt5ct.conf|qt6ct.conf and ~/.config/gtk-3.0|gtk-4.0)."
text: I18n.tr("The below settings will modify your GTK and Qt settings. If you wish to preserve your current configurations, please back them up (qt5ct.conf|qt6ct.conf and ~/.config/gtk-3.0|gtk-4.0).")
wrapMode: Text.WordWrap
width: parent.width - Theme.iconSizeSmall - Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
@@ -993,7 +993,7 @@ Item {
DankDropdown {
anchors.verticalCenter: parent.verticalCenter
text: qsTr("Icon Theme")
text: I18n.tr("Icon Theme")
description: "DankShell & System Icons\n(requires restart)"
currentValue: SettingsData.iconTheme
enableFuzzySearch: true
@@ -1046,7 +1046,7 @@ Item {
}
StyledText {
text: qsTr("System App Theming")
text: I18n.tr("System App Theming")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1078,7 +1078,7 @@ Item {
}
StyledText {
text: qsTr("Apply GTK Colors")
text: I18n.tr("Apply GTK Colors")
font.pixelSize: Theme.fontSizeMedium
color: Theme.primary
font.weight: Font.Medium
@@ -1114,7 +1114,7 @@ Item {
}
StyledText {
text: qsTr("Apply Qt Colors")
text: I18n.tr("Apply Qt Colors")
font.pixelSize: Theme.fontSizeMedium
color: Theme.primary
font.weight: Font.Medium

View File

@@ -54,14 +54,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("24-Hour Format")
text: I18n.tr("24-Hour Format")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: "Use 24-hour time format instead of 12-hour AM/PM"
text: I18n.tr("Use 24-hour time format instead of 12-hour AM/PM")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -112,7 +112,7 @@ Item {
}
StyledText {
text: qsTr("Date Format")
text: I18n.tr("Date Format")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -122,7 +122,7 @@ Item {
DankDropdown {
height: 50
text: qsTr("Top Bar Format")
text: I18n.tr("Top Bar Format")
description: "Preview: " + (SettingsData.clockDateFormat ? new Date().toLocaleDateString(Qt.locale(), SettingsData.clockDateFormat) : new Date().toLocaleDateString(Qt.locale(), "ddd d"))
currentValue: {
if (!SettingsData.clockDateFormat || SettingsData.clockDateFormat.length === 0) {
@@ -158,7 +158,7 @@ Item {
return p.format
=== SettingsData.clockDateFormat
})
return match ? match.label: qsTr("Custom: ") + SettingsData.clockDateFormat
return match ? match.label: I18n.tr("Custom: ") + SettingsData.clockDateFormat
}
options: ["System Default", "Day Date", "Day Month Date", "Month Date", "Numeric (M/D)", "Numeric (D/M)", "Full with Year", "ISO Date", "Full Day & Month", "Custom..."]
onValueChanged: value => {
@@ -185,7 +185,7 @@ Item {
DankDropdown {
height: 50
text: qsTr("Lock Screen Format")
text: I18n.tr("Lock Screen Format")
description: "Preview: " + (SettingsData.lockDateFormat ? new Date().toLocaleDateString(Qt.locale(), SettingsData.lockDateFormat) : new Date().toLocaleDateString(Qt.locale(), Locale.LongFormat))
currentValue: {
if (!SettingsData.lockDateFormat || SettingsData.lockDateFormat.length === 0) {
@@ -221,7 +221,7 @@ Item {
return p.format
=== SettingsData.lockDateFormat
})
return match ? match.label: qsTr("Custom: ") + SettingsData.lockDateFormat
return match ? match.label: I18n.tr("Custom: ") + SettingsData.lockDateFormat
}
options: ["System Default", "Day Date", "Day Month Date", "Month Date", "Numeric (M/D)", "Numeric (D/M)", "Full with Year", "ISO Date", "Full Day & Month", "Custom..."]
onValueChanged: value => {
@@ -251,7 +251,7 @@ Item {
width: parent.width
visible: false
placeholderText: qsTr("Enter custom top bar format (e.g., ddd MMM d)")
placeholderText: I18n.tr("Enter custom top bar format (e.g., ddd MMM d)")
text: SettingsData.clockDateFormat
onTextChanged: {
if (visible && text)
@@ -264,7 +264,7 @@ Item {
width: parent.width
visible: false
placeholderText: qsTr("Enter custom lock screen format (e.g., dddd, MMMM d)")
placeholderText: I18n.tr("Enter custom lock screen format (e.g., dddd, MMMM d)")
text: SettingsData.lockDateFormat
onTextChanged: {
if (visible && text)
@@ -289,7 +289,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Format Legend")
text: I18n.tr("Format Legend")
font.pixelSize: Theme.fontSizeSmall
color: Theme.primary
font.weight: Font.Medium
@@ -304,31 +304,31 @@ Item {
spacing: 2
StyledText {
text: qsTr("• d - Day (1-31)")
text: I18n.tr("• d - Day (1-31)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• dd - Day (01-31)")
text: I18n.tr("• dd - Day (01-31)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• ddd - Day name (Mon)")
text: I18n.tr("• ddd - Day name (Mon)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• dddd - Day name (Monday)")
text: I18n.tr("• dddd - Day name (Monday)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• M - Month (1-12)")
text: I18n.tr("• M - Month (1-12)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -339,31 +339,31 @@ Item {
spacing: 2
StyledText {
text: qsTr("• MM - Month (01-12)")
text: I18n.tr("• MM - Month (01-12)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• MMM - Month (Jan)")
text: I18n.tr("• MMM - Month (Jan)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• MMMM - Month (January)")
text: I18n.tr("• MMMM - Month (January)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• yy - Year (24)")
text: I18n.tr("• yy - Year (24)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: qsTr("• yyyy - Year (2024)")
text: I18n.tr("• yyyy - Year (2024)")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}

View File

@@ -54,14 +54,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Enable Weather")
text: I18n.tr("Enable Weather")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Show weather information in top bar and control center")
text: I18n.tr("Show weather information in top bar and control center")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -120,14 +120,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Use Fahrenheit")
text: I18n.tr("Use Fahrenheit")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Use Fahrenheit instead of Celsius for temperature")
text: I18n.tr("Use Fahrenheit instead of Celsius for temperature")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -193,14 +193,14 @@ Item {
anchors.verticalCenter: parent.verticalCenter
StyledText {
text: qsTr("Auto Location")
text: I18n.tr("Auto Location")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
}
StyledText {
text: qsTr("Automatically determine your location using your IP address")
text: I18n.tr("Automatically determine your location using your IP address")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -233,7 +233,7 @@ Item {
}
StyledText {
text: qsTr("Custom Location")
text: I18n.tr("Custom Location")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
@@ -248,7 +248,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Latitude")
text: I18n.tr("Latitude")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -299,7 +299,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Longitude")
text: I18n.tr("Longitude")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -352,7 +352,7 @@ Item {
spacing: Theme.spacingXS
StyledText {
text: qsTr("Location Search")
text: I18n.tr("Location Search")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
font.weight: Font.Medium
@@ -362,7 +362,7 @@ Item {
id: locationSearchInput
width: parent.width
currentLocation: ""
placeholderText: qsTr("New York, NY")
placeholderText: I18n.tr("New York, NY")
keyNavigationBacktab: longitudeInput
onLocationSelected: (displayName, coordinates) => {
SettingsData.setWeatherLocation(displayName, coordinates)

View File

@@ -203,7 +203,7 @@ DankModal {
}
StyledText {
text: qsTr("Add Widget to ") + root.targetSection + " Section"
text: I18n.tr("Add Widget to ") + root.targetSection + " Section"
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -212,7 +212,7 @@ DankModal {
}
StyledText {
text: qsTr("Select a widget to add to the ") + root.targetSection.toLowerCase(
text: I18n.tr("Select a widget to add to the ") + root.targetSection.toLowerCase(
) + " section of the top bar. You can add multiple instances of the same widget if needed."
font.pixelSize: Theme.fontSizeSmall
color: Theme.outline

View File

@@ -47,7 +47,7 @@ Item {
}
StyledText {
text: qsTr("Workspace Settings")
text: I18n.tr("Workspace Settings")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -57,7 +57,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Workspace Index Numbers")
text: I18n.tr("Workspace Index Numbers")
description: "Show workspace index numbers in the top bar workspace switcher"
checked: SettingsData.showWorkspaceIndex
onToggled: checked => {
@@ -68,7 +68,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Workspace Padding")
text: I18n.tr("Workspace Padding")
description: "Always show a minimum of 3 workspaces, even if fewer are available"
checked: SettingsData.showWorkspacePadding
onToggled: checked => {
@@ -79,7 +79,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Show Workspace Apps")
text: I18n.tr("Show Workspace Apps")
description: "Display application icons in workspace indicators"
checked: SettingsData.showWorkspaceApps
onToggled: checked => {
@@ -101,7 +101,7 @@ Item {
spacing: Theme.spacingS
StyledText {
text: qsTr("Max apps to show")
text: I18n.tr("Max apps to show")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
@@ -132,7 +132,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Per-Monitor Workspaces")
text: I18n.tr("Per-Monitor Workspaces")
description: "Show only workspaces belonging to each specific monitor."
checked: SettingsData.workspacesPerMonitor
onToggled: checked => {
@@ -170,7 +170,7 @@ Item {
}
StyledText {
text: qsTr("Media Player Settings")
text: I18n.tr("Media Player Settings")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -180,7 +180,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Wave Progress Bars")
text: I18n.tr("Wave Progress Bars")
description: "Use animated wave progress bars for media playback"
checked: SettingsData.waveProgressEnabled
onToggled: checked => {
@@ -218,7 +218,7 @@ Item {
}
StyledText {
text: qsTr("Running Apps Settings")
text: I18n.tr("Running Apps Settings")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -228,7 +228,7 @@ Item {
DankToggle {
width: parent.width
text: qsTr("Running Apps Only In Current Workspace")
text: I18n.tr("Running Apps Only In Current Workspace")
description: "Show only apps running in current workspace"
checked: SettingsData.runningAppsCurrentWorkspace
onToggled: checked => {
@@ -268,7 +268,7 @@ Item {
}
StyledText {
text: qsTr("Named Workspace Icons")
text: I18n.tr("Named Workspace Icons")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -278,7 +278,7 @@ Item {
StyledText {
width: parent.width
text: qsTr("Configure icons for named workspaces. Icons take priority over numbers when both are enabled.")
text: I18n.tr("Configure icons for named workspaces. Icons take priority over numbers when both are enabled.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.outline
wrapMode: Text.WordWrap

View File

@@ -480,7 +480,7 @@ Column {
StyledText {
id: tooltipText
anchors.centerIn: parent
text: qsTr("Compact Mode")
text: I18n.tr("Compact Mode")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
}
@@ -667,7 +667,7 @@ Column {
anchors.horizontalCenter: parent.horizontalCenter
StyledText {
text: qsTr("Add Widget")
text: I18n.tr("Add Widget")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: Theme.primary
@@ -752,7 +752,7 @@ Column {
}
StyledText {
text: qsTr("Network Icon")
text: I18n.tr("Network Icon")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Normal
@@ -805,7 +805,7 @@ Column {
}
StyledText {
text: qsTr("Bluetooth Icon")
text: I18n.tr("Bluetooth Icon")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Normal
@@ -858,7 +858,7 @@ Column {
}
StyledText {
text: qsTr("Audio Icon")
text: I18n.tr("Audio Icon")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Normal