mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-14 16:22:46 -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:
@@ -373,7 +373,7 @@ Singleton {
|
||||
if (wifiConnected && currentWifiSSID === pendingConnectionSSID && wifiIP) {
|
||||
const elapsed = Date.now() - pendingConnectionStartTime;
|
||||
log.info("Successfully connected to", pendingConnectionSSID, "in", elapsed, "ms");
|
||||
ToastService.showInfo(`Connected to ${pendingConnectionSSID}`);
|
||||
ToastService.showInfo(I18n.tr("Connected to %1").arg(pendingConnectionSSID));
|
||||
|
||||
if (userPreference === "wifi" || userPreference === "auto") {
|
||||
setConnectionPriority("wifi");
|
||||
|
||||
@@ -342,7 +342,7 @@ Singleton {
|
||||
log.info("Connected (API v" + apiVersion + ", CLI " + cliVersion + ") -", JSON.stringify(capabilities));
|
||||
|
||||
if (apiVersion < expectedApiVersion) {
|
||||
ToastService.showError("DMS server is outdated (API v" + apiVersion + ", expected v" + expectedApiVersion + ")");
|
||||
ToastService.showError(I18n.tr("DMS server is outdated (API v%1, expected v%2)").arg(apiVersion).arg(expectedApiVersion));
|
||||
}
|
||||
|
||||
capabilitiesReceived();
|
||||
|
||||
@@ -444,7 +444,7 @@ Singleton {
|
||||
// Night Mode Functions - Simplified
|
||||
function enableNightMode() {
|
||||
if (!gammaControlAvailable) {
|
||||
ToastService.showWarning("Night mode failed: DMS gamma control not available");
|
||||
ToastService.showWarning(I18n.tr("Night mode failed: DMS gamma control not available"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ Singleton {
|
||||
if (exitCode === 0) {
|
||||
configValidationOutput = "";
|
||||
} else if (hasInitialConnection && configValidationOutput.length > 0) {
|
||||
ToastService.showError("niri: failed to load config", configValidationOutput, "", "niri-config");
|
||||
ToastService.showError(I18n.tr("niri: failed to load config"), configValidationOutput, "", "niri-config");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -568,7 +568,7 @@ Singleton {
|
||||
configReloaded();
|
||||
|
||||
if (hasInitialConnection && !suppressConfigToast && !suppressNextConfigToast && !matugenSuppression) {
|
||||
ToastService.showInfo("niri: config reloaded", "", "", "niri-config");
|
||||
ToastService.showInfo(I18n.tr("niri: config reloaded"), "", "", "niri-config");
|
||||
} else if (suppressNextConfigToast) {
|
||||
suppressNextConfigToast = false;
|
||||
suppressResetTimer.stop();
|
||||
|
||||
@@ -116,7 +116,7 @@ Singleton {
|
||||
errorOutput = "";
|
||||
return;
|
||||
}
|
||||
ToastService.showError("Hibernate failed", errorOutput);
|
||||
ToastService.showError(I18n.tr("Hibernate failed"), errorOutput);
|
||||
errorOutput = "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user