mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-15 00:32:47 -04:00
Added Missing i18n Strings (#2398)
* Update hypr-colors.conf * added i18n strings * added missing i18n strings * Update TypographyMotionTab.qml
This commit is contained in:
@@ -11,8 +11,8 @@ DankModal {
|
||||
|
||||
property string confirmTitle: ""
|
||||
property string confirmMessage: ""
|
||||
property string confirmButtonText: "Confirm"
|
||||
property string cancelButtonText: "Cancel"
|
||||
property string confirmButtonText: I18n.tr("Confirm")
|
||||
property string cancelButtonText: I18n.tr("Cancel")
|
||||
property color confirmButtonColor: Theme.primary
|
||||
property var onConfirm: function () {}
|
||||
property var onCancel: function () {}
|
||||
@@ -22,8 +22,8 @@ DankModal {
|
||||
function show(title, message, onConfirmCallback, onCancelCallback) {
|
||||
confirmTitle = title || "";
|
||||
confirmMessage = message || "";
|
||||
confirmButtonText = "Confirm";
|
||||
cancelButtonText = "Cancel";
|
||||
confirmButtonText = I18n.tr("Confirm");
|
||||
cancelButtonText = I18n.tr("Cancel");
|
||||
confirmButtonColor = Theme.primary;
|
||||
onConfirm = onConfirmCallback || (() => {});
|
||||
onCancel = onCancelCallback || (() => {});
|
||||
@@ -35,8 +35,8 @@ DankModal {
|
||||
function showWithOptions(options) {
|
||||
confirmTitle = options.title || "";
|
||||
confirmMessage = options.message || "";
|
||||
confirmButtonText = options.confirmText || "Confirm";
|
||||
cancelButtonText = options.cancelText || "Cancel";
|
||||
confirmButtonText = options.confirmText || I18n.tr("Confirm");
|
||||
cancelButtonText = options.cancelText || I18n.tr("Cancel");
|
||||
confirmButtonColor = options.confirmColor || Theme.primary;
|
||||
onConfirm = options.onConfirm || (() => {});
|
||||
onCancel = options.onCancel || (() => {});
|
||||
|
||||
@@ -73,7 +73,7 @@ DankModal {
|
||||
|
||||
function copyColorToClipboard(colorValue) {
|
||||
Quickshell.execDetached(["dms", "cl", "copy", colorValue]);
|
||||
ToastService.showInfo(`Color ${colorValue} copied`);
|
||||
ToastService.showInfo(I18n.tr("Color %1 copied").arg(colorValue));
|
||||
SessionData.addRecentColor(currentColor);
|
||||
}
|
||||
|
||||
@@ -679,7 +679,7 @@ DankModal {
|
||||
rgbString = `rgb(${r}, ${g}, ${b})`;
|
||||
}
|
||||
Quickshell.execDetached(["dms", "cl", "copy", rgbString]);
|
||||
ToastService.showInfo(`${rgbString} copied`);
|
||||
ToastService.showInfo(I18n.tr("%1 copied").arg(rgbString));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -744,7 +744,7 @@ DankModal {
|
||||
hsvString = `${h}, ${s}, ${v}`;
|
||||
}
|
||||
Quickshell.execDetached(["dms", "cl", "copy", hsvString]);
|
||||
ToastService.showInfo(`HSV ${hsvString} copied`);
|
||||
ToastService.showInfo(I18n.tr("HSV %1 copied").arg(hsvString));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ Item {
|
||||
if (!selectedItem)
|
||||
return;
|
||||
if (!SessionService.wtypeAvailable) {
|
||||
ToastService.showError("wtype not available - install wtype for paste support");
|
||||
ToastService.showError(I18n.tr("wtype not available - install wtype for paste support"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ DankModal {
|
||||
ssid: ssid
|
||||
}, response => {
|
||||
if (response.error) {
|
||||
ToastService.showError("Failed to fetch network QR code: ", JSON.stringify(response.error));
|
||||
ToastService.showError(I18n.tr("Failed to fetch network QR code: %1").arg(JSON.stringify(response.error)));
|
||||
} else if (response.result) {
|
||||
themedQrCodePath = response.result[0];
|
||||
normalQrCodePath = response.result[1];
|
||||
@@ -66,7 +66,7 @@ DankModal {
|
||||
path: path
|
||||
}, response => {
|
||||
if (response.error) {
|
||||
ToastService.showError(`Failed to remove QR code at ${path}: `, JSON.stringify(response.error));
|
||||
ToastService.showError(I18n.tr("Failed to remove QR code at %1: %2").arg(path).arg(JSON.stringify(response.error)));
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user