Skip to content
Open
4 changes: 2 additions & 2 deletions quickshell/Modals/NetworkInfoModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ DankModal {
}

StyledText {
text: `Details for "${networkSSID}"`
text: I18n.tr("Details for \"%1\"").arg(networkSSID)
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceTextMedium
width: parent.width
Expand Down Expand Up @@ -102,7 +102,7 @@ DankModal {
id: detailsText

width: parent.width
text: NetworkService.networkInfoDetails && NetworkService.networkInfoDetails.replace(/\\n/g, '\n') || "No information available"
text: NetworkService.networkInfoDetails && NetworkService.networkInfoDetails.replace(/\\n/g, '\n') || I18n.tr("No information available")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
wrapMode: Text.WordWrap
Expand Down
4 changes: 2 additions & 2 deletions quickshell/Modals/NetworkWiredInfoModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ DankModal {
}

StyledText {
text: `Details for "${networkID}"`
text: I18n.tr("Details for \"%1\"").arg(networkID)
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceTextMedium
width: parent.width
Expand Down Expand Up @@ -102,7 +102,7 @@ DankModal {
id: detailsText

width: parent.width
text: NetworkService.networkWiredInfoDetails && NetworkService.networkWiredInfoDetails.replace(/\\n/g, '\n') || "No information available"
text: NetworkService.networkWiredInfoDetails && NetworkService.networkWiredInfoDetails.replace(/\\n/g, '\n') || I18n.tr("No information available")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
wrapMode: Text.WordWrap
Expand Down
4 changes: 3 additions & 1 deletion quickshell/Modules/ControlCenter/Components/HeaderPane.qml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ Rectangle {
}

Typography {
text: DgopService.uptime || I18n.tr("Unknown")
text: DgopService.uptime
? I18n.tr("up") + " " + DgopService.uptime
: I18n.tr("up")
style: Typography.Style.Caption
color: Theme.surfaceVariantText
}
Expand Down
8 changes: 4 additions & 4 deletions quickshell/Modules/DankDash/MediaPlayerTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter

StyledText {
text: activePlayer?.trackTitle || "Unknown Track"
text: activePlayer?.trackTitle || I18n.tr("Unknown Track")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Bold
color: Theme.surfaceText
Expand All @@ -332,7 +332,7 @@ Item {
}

StyledText {
text: activePlayer?.trackArtist || "Unknown Artist"
text: activePlayer?.trackArtist || I18n.tr("Unknown Artist")
font.pixelSize: Theme.fontSizeMedium
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.8)
width: parent.width
Expand Down Expand Up @@ -669,7 +669,7 @@ Item {
const screenY = popoutY + contentOffsetY + btnY;
showPlayersDropdown(Qt.point(screenX, screenY), targetScreen, buttonsOnRight, activePlayer, allPlayers);
}
onEntered: sharedTooltip.show("Media Players", playerSelectorButton, 0, 0, isRightEdge ? "right" : "left")
onEntered: sharedTooltip.show(I18n.tr("Media Players"), playerSelectorButton, 0, 0, isRightEdge ? "right" : "left")
onExited: sharedTooltip.hide()
}
}
Expand Down Expand Up @@ -788,7 +788,7 @@ Item {
const screenY = popoutY + contentOffsetY + btnY;
showAudioDevicesDropdown(Qt.point(screenX, screenY), targetScreen, buttonsOnRight);
}
onEntered: sharedTooltip.show("Output Device", audioDevicesButton, 0, 0, isRightEdge ? "right" : "left")
onEntered: sharedTooltip.show(I18n.tr("Output Device"), audioDevicesButton, 0, 0, isRightEdge ? "right" : "left")
onExited: sharedTooltip.hide()
}
}
Expand Down
4 changes: 2 additions & 2 deletions quickshell/Modules/DankDash/Overview/MediaOverviewCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Card {
topPadding: Theme.spacingL

StyledText {
text: activePlayer?.trackTitle || "Unknown"
text: activePlayer?.trackTitle || I18n.tr("Unknown")
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium
color: Theme.surfaceText
Expand All @@ -99,7 +99,7 @@ Card {
}

StyledText {
text: activePlayer?.trackArtist || "Unknown Artist"
text: activePlayer?.trackArtist || I18n.tr("Unknown Artist")
font.pixelSize: Theme.fontSizeSmall
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
width: parent.width
Expand Down
4 changes: 3 additions & 1 deletion quickshell/Modules/DankDash/Overview/UserInfoCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ Card {
}

StyledText {
text: DgopService.shortUptime || I18n.tr("up")
text: DgopService.shortUptime
? I18n.tr("up") + DgopService.shortUptime
: I18n.tr("up")
font.pixelSize: Theme.fontSizeSmall
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
anchors.verticalCenter: parent.verticalCenter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Card {
}

StyledText {
text: WeatherService.weather.loading ? "Loading..." : "No Weather"
text: WeatherService.weather.loading ? I18n.tr("Loading...") : I18n.tr("No Weather")
font.pixelSize: Theme.fontSizeSmall
color: Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.7)
anchors.horizontalCenter: parent.horizontalCenter
Expand Down
6 changes: 5 additions & 1 deletion quickshell/Modules/DankDash/WallpaperTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,11 @@ Item {

StyledText {
anchors.verticalCenter: parent.verticalCenter
text: wallpaperFolderModel.count > 0 ? `${wallpaperFolderModel.count} wallpapers • ${currentPage + 1} / ${totalPages}` : "No wallpapers"
text: wallpaperFolderModel.count > 0
? (wallpaperFolderModel.count === 1
? I18n.tr("%1 wallpaper • %2 / %3").arg(wallpaperFolderModel.count).arg(currentPage + 1).arg(totalPages)
: I18n.tr("%1 wallpapers • %2 / %3").arg(wallpaperFolderModel.count).arg(currentPage + 1).arg(totalPages))
: I18n.tr("No wallpapers")
font.pixelSize: 14
color: Theme.surfaceText
opacity: 0.7
Expand Down
12 changes: 6 additions & 6 deletions quickshell/Modules/Greetd/GreeterContent.qml
Original file line number Diff line number Diff line change
Expand Up @@ -466,15 +466,15 @@ Item {
anchors.verticalCenter: parent.verticalCenter
text: {
if (GreeterState.unlocking) {
return "Logging in...";
return I18n.tr("Logging in...");
}
if (Greetd.state !== GreetdState.Inactive) {
return "Authenticating...";
return I18n.tr("Authenticating...");
}
if (GreeterState.showPasswordInput) {
return "Password...";
return I18n.tr("Password...");
}
return "Username...";
return I18n.tr("Username...");
}
color: GreeterState.unlocking ? Theme.primary : (Greetd.state !== GreetdState.Inactive ? Theme.primary : Theme.outline)
font.pixelSize: Theme.fontSizeMedium
Expand Down Expand Up @@ -606,9 +606,9 @@ Item {
Layout.bottomMargin: -Theme.spacingS
text: {
if (GreeterState.pamState === "error")
return "Authentication error - try again";
return I18n.tr("Authentication error - try again");
if (GreeterState.pamState === "fail")
return "Incorrect password";
return I18n.tr("Incorrect password");
return "";
}
color: Theme.error
Expand Down
4 changes: 2 additions & 2 deletions quickshell/Modules/Notifications/Center/NotificationCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ Rectangle {
StyledText {
id: expandedActionText
text: {
const baseText = modelData.text || "Open";
const baseText = modelData.text || I18n.tr("Open");
if (keyboardNavigationActive && (isGroupSelected || selectedNotificationIndex >= 0))
return `${baseText} (${index + 1})`;
return baseText;
Expand Down Expand Up @@ -849,7 +849,7 @@ Rectangle {
StyledText {
id: collapsedActionText
text: {
const baseText = modelData.text || "Open";
const baseText = modelData.text || I18n.tr("Open");
if (keyboardNavigationActive && isGroupSelected) {
return `${baseText} (${index + 1})`;
}
Expand Down
28 changes: 21 additions & 7 deletions quickshell/Modules/Notifications/Center/NotificationSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Rectangle {

function getTimeoutText(value) {
if (value === undefined || value === null || isNaN(value)) {
return "5 seconds";
return I18n.tr("5 seconds");
}

for (let i = 0; i < timeoutOptions.length; i++) {
Expand All @@ -94,15 +94,15 @@ Rectangle {
}
}
if (value === 0) {
return "Never";
return I18n.tr("Never");
}
if (value < 1000) {
return value + "ms";
}
if (value < 60000) {
return Math.round(value / 1000) + " seconds";
return Math.round(value / 1000) + " " + I18n.tr("seconds");
}
return Math.round(value / 60000) + " minutes";
return Math.round(value / 60000) + " " + I18n.tr("minutes");
}

Column {
Expand Down Expand Up @@ -169,7 +169,7 @@ Rectangle {

DankDropdown {
text: I18n.tr("Low Priority")
description: "Timeout for low priority notifications"
description: I18n.tr("Timeout for low priority notifications")
currentValue: getTimeoutText(SettingsData.notificationTimeoutLow)
options: timeoutOptions.map(opt => opt.text)
onValueChanged: value => {
Expand All @@ -184,7 +184,7 @@ Rectangle {

DankDropdown {
text: I18n.tr("Normal Priority")
description: "Timeout for normal priority notifications"
description: I18n.tr("Timeout for normal priority notifications")
currentValue: getTimeoutText(SettingsData.notificationTimeoutNormal)
options: timeoutOptions.map(opt => opt.text)
onValueChanged: value => {
Expand All @@ -199,7 +199,7 @@ Rectangle {

DankDropdown {
text: I18n.tr("Critical Priority")
description: "Timeout for critical priority notifications"
description: I18n.tr("Timeout for critical priority notifications")
currentValue: getTimeoutText(SettingsData.notificationTimeoutCritical)
options: timeoutOptions.map(opt => opt.text)
onValueChanged: value => {
Expand All @@ -225,6 +225,8 @@ Rectangle {
Row {
id: overlayRow
anchors.left: parent.left
anchors.right: overlayToggle.left
anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM

Expand All @@ -238,17 +240,22 @@ Rectangle {
Column {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
width: overlayRow.width - Theme.iconSizeSmall - Theme.spacingM

StyledText {
width: parent.width
text: I18n.tr("Notification Overlay")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
wrapMode: Text.Wrap
}

StyledText {
width: parent.width
text: I18n.tr("Display all priorities over fullscreen apps")
font.pixelSize: Theme.fontSizeSmall - 1
color: Theme.surfaceVariantText
wrapMode: Text.Wrap
}
}
}
Expand All @@ -269,6 +276,8 @@ Rectangle {
Row {
id: privacyRow
anchors.left: parent.left
anchors.right: privacyToggle.left
anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM

Expand All @@ -282,17 +291,22 @@ Rectangle {
Column {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
width: privacyRow.width - Theme.iconSizeSmall - Theme.spacingM

StyledText {
width: parent.width
text: I18n.tr("Privacy Mode")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
wrapMode: Text.Wrap
}

StyledText {
width: parent.width
text: I18n.tr("Hide notification content until expanded")
font.pixelSize: Theme.fontSizeSmall - 1
color: Theme.surfaceVariantText
wrapMode: Text.Wrap
}
}
}
Expand Down
26 changes: 13 additions & 13 deletions quickshell/Modules/Settings/AboutTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ Item {

property string compositorTooltip: {
if (isHyprland)
return "Hyprland Website";
return I18n.tr("Hyprland Website");
if (isSway)
return "Sway Website";
return I18n.tr("Sway Website");
if (isScroll)
return "Scroll Github";
return I18n.tr("Scroll GitHub");
if (isMiracle)
return "Miracle WM GitHub";
return I18n.tr("Scroll GitHub");
if (isDwl)
return "mangowc GitHub";
return I18n.tr("mangowc GitHub");
if (isLabwc)
return "LabWC Website";
return "niri GitHub";
return I18n.tr("LabWC Website");
return I18n.tr("niri GitHub");
}

property string dmsDiscordUrl: "https://discord.gg/ppWTpKmPgT"
property string dmsDiscordTooltip: "niri/dms Discord"
property string dmsDiscordTooltip: I18n.tr("niri/dms Discord")

property string compositorDiscordUrl: {
if (isHyprland)
Expand All @@ -95,17 +95,17 @@ Item {

property string compositorDiscordTooltip: {
if (isHyprland)
return "Hyprland Discord Server";
return I18n.tr("Hyprland Discord Server");
if (isDwl)
return "mangowc Discord Server";
return I18n.tr("mangowc Discord Server");
return "";
}

property string redditUrl: "https://reddit.com/r/niri"
property string redditTooltip: "r/niri Subreddit"
property string redditTooltip: I18n.tr("r/niri Subreddit")

property string ircUrl: "https://web.libera.chat/gamja/?channels=#labwc"
property string ircTooltip: "LabWC IRC Channel"
property string ircTooltip: I18n.tr("LabWC IRC Channel")

property bool showMatrix: isNiri && !isHyprland && !isSway && !isScroll && !isMiracle && !isDwl && !isLabwc
property bool showCompositorDiscord: isHyprland || isDwl
Expand Down Expand Up @@ -396,7 +396,7 @@ Item {
visible: showMatrix

property bool hovered: false
property string tooltipText: "niri Matrix Chat"
property string tooltipText: I18n.tr("niri Matrix Chat")

Image {
anchors.fill: parent
Expand Down
4 changes: 2 additions & 2 deletions quickshell/Modules/Settings/GammaControlTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
model: [
{
"text": "Time",
"text": I18n.tr("Time"),
"icon": "access_time"
},
{
"text": "Location",
"text": I18n.tr("Location"),
"icon": "place"
}
]
Expand Down
Loading
Loading