mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-14 00:02:45 -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:
+10
-10
@@ -1859,7 +1859,7 @@ Singleton {
|
|||||||
function applyGtkColors() {
|
function applyGtkColors() {
|
||||||
if (!matugenAvailable) {
|
if (!matugenAvailable) {
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showError("matugen not available or disabled - cannot apply GTK colors");
|
ToastService.showError(I18n.tr("matugen not available or disabled - cannot apply GTK colors"));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1868,11 +1868,11 @@ Singleton {
|
|||||||
Proc.runCommand("gtkApplier", [shellDir + "/scripts/gtk.sh", configDir, isLight, shellDir], (output, exitCode) => {
|
Proc.runCommand("gtkApplier", [shellDir + "/scripts/gtk.sh", configDir, isLight, shellDir], (output, exitCode) => {
|
||||||
if (exitCode === 0) {
|
if (exitCode === 0) {
|
||||||
if (typeof ToastService !== "undefined" && typeof NiriService !== "undefined" && !NiriService.matugenSuppression) {
|
if (typeof ToastService !== "undefined" && typeof NiriService !== "undefined" && !NiriService.matugenSuppression) {
|
||||||
ToastService.showInfo("GTK colors applied successfully");
|
ToastService.showInfo(I18n.tr("GTK colors applied successfully"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showError("Failed to apply GTK colors");
|
ToastService.showError(I18n.tr("Failed to apply GTK colors"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1881,7 +1881,7 @@ Singleton {
|
|||||||
function applyQtColors() {
|
function applyQtColors() {
|
||||||
if (!matugenAvailable) {
|
if (!matugenAvailable) {
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showError("matugen not available or disabled - cannot apply Qt colors");
|
ToastService.showError(I18n.tr("matugen not available or disabled - cannot apply Qt colors"));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1889,11 +1889,11 @@ Singleton {
|
|||||||
Proc.runCommand("qtApplier", [shellDir + "/scripts/qt.sh", configDir], (output, exitCode) => {
|
Proc.runCommand("qtApplier", [shellDir + "/scripts/qt.sh", configDir], (output, exitCode) => {
|
||||||
if (exitCode === 0) {
|
if (exitCode === 0) {
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showInfo("Qt colors applied successfully");
|
ToastService.showInfo(I18n.tr("Qt colors applied successfully"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showError("Failed to apply Qt colors");
|
ToastService.showError(I18n.tr("Failed to apply Qt colors"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -2034,7 +2034,7 @@ Singleton {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showError("Theme worker failed (" + exitCode + ")");
|
ToastService.showError(I18n.tr("Theme worker failed (%1)").arg(exitCode));
|
||||||
}
|
}
|
||||||
log.warn("Matugen worker failed with exit code:", exitCode);
|
log.warn("Matugen worker failed with exit code:", exitCode);
|
||||||
root.matugenCompleted(currentMode, "error");
|
root.matugenCompleted(currentMode, "error");
|
||||||
@@ -2060,7 +2060,7 @@ Singleton {
|
|||||||
var themeData = JSON.parse(customThemeFileView.text());
|
var themeData = JSON.parse(customThemeFileView.text());
|
||||||
loadCustomTheme(themeData);
|
loadCustomTheme(themeData);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ToastService.showError("Invalid JSON format: " + e.message);
|
ToastService.showError(I18n.tr("Invalid JSON format: %1").arg(e.message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2074,7 +2074,7 @@ Singleton {
|
|||||||
|
|
||||||
onLoadFailed: function (error) {
|
onLoadFailed: function (error) {
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.showError("Failed to read theme file: " + error);
|
ToastService.showError(I18n.tr("Failed to read theme file: %1").arg(error));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2102,7 +2102,7 @@ Singleton {
|
|||||||
log.error("Failed to parse dynamic colors:", e);
|
log.error("Failed to parse dynamic colors:", e);
|
||||||
if (typeof ToastService !== "undefined") {
|
if (typeof ToastService !== "undefined") {
|
||||||
ToastService.wallpaperErrorStatus = "error";
|
ToastService.wallpaperErrorStatus = "error";
|
||||||
ToastService.showError("Dynamic colors parse error: " + e.message);
|
ToastService.showError(I18n.tr("Dynamic colors parse error: %1").arg(e.message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ DankModal {
|
|||||||
|
|
||||||
property string confirmTitle: ""
|
property string confirmTitle: ""
|
||||||
property string confirmMessage: ""
|
property string confirmMessage: ""
|
||||||
property string confirmButtonText: "Confirm"
|
property string confirmButtonText: I18n.tr("Confirm")
|
||||||
property string cancelButtonText: "Cancel"
|
property string cancelButtonText: I18n.tr("Cancel")
|
||||||
property color confirmButtonColor: Theme.primary
|
property color confirmButtonColor: Theme.primary
|
||||||
property var onConfirm: function () {}
|
property var onConfirm: function () {}
|
||||||
property var onCancel: function () {}
|
property var onCancel: function () {}
|
||||||
@@ -22,8 +22,8 @@ DankModal {
|
|||||||
function show(title, message, onConfirmCallback, onCancelCallback) {
|
function show(title, message, onConfirmCallback, onCancelCallback) {
|
||||||
confirmTitle = title || "";
|
confirmTitle = title || "";
|
||||||
confirmMessage = message || "";
|
confirmMessage = message || "";
|
||||||
confirmButtonText = "Confirm";
|
confirmButtonText = I18n.tr("Confirm");
|
||||||
cancelButtonText = "Cancel";
|
cancelButtonText = I18n.tr("Cancel");
|
||||||
confirmButtonColor = Theme.primary;
|
confirmButtonColor = Theme.primary;
|
||||||
onConfirm = onConfirmCallback || (() => {});
|
onConfirm = onConfirmCallback || (() => {});
|
||||||
onCancel = onCancelCallback || (() => {});
|
onCancel = onCancelCallback || (() => {});
|
||||||
@@ -35,8 +35,8 @@ DankModal {
|
|||||||
function showWithOptions(options) {
|
function showWithOptions(options) {
|
||||||
confirmTitle = options.title || "";
|
confirmTitle = options.title || "";
|
||||||
confirmMessage = options.message || "";
|
confirmMessage = options.message || "";
|
||||||
confirmButtonText = options.confirmText || "Confirm";
|
confirmButtonText = options.confirmText || I18n.tr("Confirm");
|
||||||
cancelButtonText = options.cancelText || "Cancel";
|
cancelButtonText = options.cancelText || I18n.tr("Cancel");
|
||||||
confirmButtonColor = options.confirmColor || Theme.primary;
|
confirmButtonColor = options.confirmColor || Theme.primary;
|
||||||
onConfirm = options.onConfirm || (() => {});
|
onConfirm = options.onConfirm || (() => {});
|
||||||
onCancel = options.onCancel || (() => {});
|
onCancel = options.onCancel || (() => {});
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ DankModal {
|
|||||||
|
|
||||||
function copyColorToClipboard(colorValue) {
|
function copyColorToClipboard(colorValue) {
|
||||||
Quickshell.execDetached(["dms", "cl", "copy", colorValue]);
|
Quickshell.execDetached(["dms", "cl", "copy", colorValue]);
|
||||||
ToastService.showInfo(`Color ${colorValue} copied`);
|
ToastService.showInfo(I18n.tr("Color %1 copied").arg(colorValue));
|
||||||
SessionData.addRecentColor(currentColor);
|
SessionData.addRecentColor(currentColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -679,7 +679,7 @@ DankModal {
|
|||||||
rgbString = `rgb(${r}, ${g}, ${b})`;
|
rgbString = `rgb(${r}, ${g}, ${b})`;
|
||||||
}
|
}
|
||||||
Quickshell.execDetached(["dms", "cl", "copy", rgbString]);
|
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}`;
|
hsvString = `${h}, ${s}, ${v}`;
|
||||||
}
|
}
|
||||||
Quickshell.execDetached(["dms", "cl", "copy", hsvString]);
|
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)
|
if (!selectedItem)
|
||||||
return;
|
return;
|
||||||
if (!SessionService.wtypeAvailable) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ DankModal {
|
|||||||
ssid: ssid
|
ssid: ssid
|
||||||
}, response => {
|
}, response => {
|
||||||
if (response.error) {
|
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) {
|
} else if (response.result) {
|
||||||
themedQrCodePath = response.result[0];
|
themedQrCodePath = response.result[0];
|
||||||
normalQrCodePath = response.result[1];
|
normalQrCodePath = response.result[1];
|
||||||
@@ -66,7 +66,7 @@ DankModal {
|
|||||||
path: path
|
path: path
|
||||||
}, response => {
|
}, response => {
|
||||||
if (response.error) {
|
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)));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ Rectangle {
|
|||||||
|
|
||||||
function setProfile(profile) {
|
function setProfile(profile) {
|
||||||
if (typeof PowerProfiles === "undefined") {
|
if (typeof PowerProfiles === "undefined") {
|
||||||
ToastService.showError("power-profiles-daemon not available");
|
ToastService.showError(I18n.tr("power-profiles-daemon not available"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PowerProfiles.profile = profile;
|
PowerProfiles.profile = profile;
|
||||||
if (PowerProfiles.profile !== profile) {
|
if (PowerProfiles.profile !== profile) {
|
||||||
ToastService.showError("Failed to set power profile");
|
ToastService.showError(I18n.tr("Failed to set power profile"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ BasePill {
|
|||||||
|
|
||||||
// This is after the other delta checks so it only shows on valid Y scroll
|
// This is after the other delta checks so it only shows on valid Y scroll
|
||||||
if (typeof PowerProfiles === "undefined") {
|
if (typeof PowerProfiles === "undefined") {
|
||||||
ToastService.showError("power-profiles-daemon not available");
|
ToastService.showError(I18n.tr("power-profiles-daemon not available"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ BasePill {
|
|||||||
// Set new profile
|
// Set new profile
|
||||||
PowerProfiles.profile = profiles[index];
|
PowerProfiles.profile = profiles[index];
|
||||||
if (PowerProfiles.profile !== profiles[index]) {
|
if (PowerProfiles.profile !== profiles[index]) {
|
||||||
ToastService.showError("Failed to set power profile");
|
ToastService.showError(I18n.tr("Failed to set power profile"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ Item {
|
|||||||
anchors.leftMargin: -Theme.spacingM
|
anchors.leftMargin: -Theme.spacingM
|
||||||
width: parent.width + Theme.spacingM
|
width: parent.width + Theme.spacingM
|
||||||
text: I18n.tr("Use Monospace Font")
|
text: I18n.tr("Use Monospace Font")
|
||||||
description: "Toggle fonts"
|
description: I18n.tr("Toggle fonts")
|
||||||
checked: SettingsData.notepadUseMonospace
|
checked: SettingsData.notepadUseMonospace
|
||||||
onToggled: checked => {
|
onToggled: checked => {
|
||||||
SettingsData.notepadUseMonospace = checked;
|
SettingsData.notepadUseMonospace = checked;
|
||||||
@@ -140,7 +140,7 @@ Item {
|
|||||||
anchors.leftMargin: -Theme.spacingM
|
anchors.leftMargin: -Theme.spacingM
|
||||||
width: parent.width + Theme.spacingM
|
width: parent.width + Theme.spacingM
|
||||||
text: I18n.tr("Show Line Numbers")
|
text: I18n.tr("Show Line Numbers")
|
||||||
description: "Display line numbers in editor"
|
description: I18n.tr("Display line numbers in editor")
|
||||||
checked: SettingsData.notepadShowLineNumbers
|
checked: SettingsData.notepadShowLineNumbers
|
||||||
onToggled: checked => {
|
onToggled: checked => {
|
||||||
SettingsData.notepadShowLineNumbers = checked;
|
SettingsData.notepadShowLineNumbers = checked;
|
||||||
@@ -212,7 +212,7 @@ Item {
|
|||||||
options: cachedFontFamilies
|
options: cachedFontFamilies
|
||||||
currentValue: {
|
currentValue: {
|
||||||
if (!SettingsData.notepadFontFamily || SettingsData.notepadFontFamily === "")
|
if (!SettingsData.notepadFontFamily || SettingsData.notepadFontFamily === "")
|
||||||
return "Default (Global)";
|
return I18n.tr("Default (Global)");
|
||||||
else
|
else
|
||||||
return SettingsData.notepadFontFamily;
|
return SettingsData.notepadFontFamily;
|
||||||
}
|
}
|
||||||
@@ -322,7 +322,7 @@ Item {
|
|||||||
anchors.leftMargin: -Theme.spacingM
|
anchors.leftMargin: -Theme.spacingM
|
||||||
width: parent.width + Theme.spacingM
|
width: parent.width + Theme.spacingM
|
||||||
text: I18n.tr("Custom Transparency")
|
text: I18n.tr("Custom Transparency")
|
||||||
description: "Override global transparency for Notepad"
|
description: I18n.tr("Override global transparency for Notepad")
|
||||||
checked: SettingsData.notepadTransparencyOverride >= 0
|
checked: SettingsData.notepadTransparencyOverride >= 0
|
||||||
onToggled: checked => {
|
onToggled: checked => {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
@@ -356,7 +356,7 @@ Item {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: SettingsData.notepadUseMonospace ? "Using global monospace font from Settings → Personalization" : "Global fonts can be configured in Settings → Personalization"
|
text: SettingsData.notepadUseMonospace ? I18n.tr("Using global monospace font from Settings → Personalization") : I18n.tr("Global fonts can be configured in Settings → Personalization")
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
color: Theme.surfaceTextMedium
|
color: Theme.surfaceTextMedium
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|||||||
@@ -203,10 +203,10 @@ StyledRect {
|
|||||||
const currentPluginId = root.pluginId;
|
const currentPluginId = root.pluginId;
|
||||||
DMSService.update(currentPluginName, response => {
|
DMSService.update(currentPluginName, response => {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
ToastService.showError("Update failed: " + response.error);
|
ToastService.showError(I18n.tr("Update failed: %1").arg(response.error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastService.showInfo("Plugin updated: " + currentPluginName);
|
ToastService.showInfo(I18n.tr("Plugin updated: %1").arg(currentPluginName));
|
||||||
PluginService.forceRescanPlugin(currentPluginId);
|
PluginService.forceRescanPlugin(currentPluginId);
|
||||||
if (DMSService.apiVersion >= 8)
|
if (DMSService.apiVersion >= 8)
|
||||||
DMSService.listInstalled();
|
DMSService.listInstalled();
|
||||||
@@ -246,10 +246,10 @@ StyledRect {
|
|||||||
const currentPluginName = root.pluginName;
|
const currentPluginName = root.pluginName;
|
||||||
DMSService.uninstall(currentPluginName, response => {
|
DMSService.uninstall(currentPluginName, response => {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
ToastService.showError("Uninstall failed: " + response.error);
|
ToastService.showError(I18n.tr("Uninstall failed: %1").arg(response.error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastService.showInfo("Plugin uninstalled: " + currentPluginName);
|
ToastService.showInfo(I18n.tr("Plugin uninstalled: %1").arg(currentPluginName));
|
||||||
PluginService.scanPlugins();
|
PluginService.scanPlugins();
|
||||||
if (root.isExpanded)
|
if (root.isExpanded)
|
||||||
root.expandedPluginId = "";
|
root.expandedPluginId = "";
|
||||||
@@ -290,10 +290,10 @@ StyledRect {
|
|||||||
const currentPluginName = root.pluginName;
|
const currentPluginName = root.pluginName;
|
||||||
root.isReloading = true;
|
root.isReloading = true;
|
||||||
if (PluginService.reloadPlugin(currentPluginId)) {
|
if (PluginService.reloadPlugin(currentPluginId)) {
|
||||||
ToastService.showInfo("Plugin reloaded: " + currentPluginName);
|
ToastService.showInfo(I18n.tr("Plugin reloaded: %1").arg(currentPluginName));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastService.showError("Failed to reload plugin: " + currentPluginName);
|
ToastService.showError(I18n.tr("Failed to reload plugin: %1").arg(currentPluginName));
|
||||||
root.isReloading = false;
|
root.isReloading = false;
|
||||||
}
|
}
|
||||||
onEntered: {
|
onEntered: {
|
||||||
@@ -317,19 +317,19 @@ StyledRect {
|
|||||||
|
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
if (PluginService.enablePlugin(currentPluginId)) {
|
if (PluginService.enablePlugin(currentPluginId)) {
|
||||||
ToastService.showInfo("Plugin enabled: " + currentPluginName);
|
ToastService.showInfo(I18n.tr("Plugin enabled: %1").arg(currentPluginName));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastService.showError("Failed to enable plugin: " + currentPluginName);
|
ToastService.showError(I18n.tr("Failed to enable plugin: %1").arg(currentPluginName));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (PluginService.disablePlugin(currentPluginId)) {
|
if (PluginService.disablePlugin(currentPluginId)) {
|
||||||
ToastService.showInfo("Plugin disabled: " + currentPluginName);
|
ToastService.showInfo(I18n.tr("Plugin disabled: %1").arg(currentPluginName));
|
||||||
if (root.isExpanded)
|
if (root.isExpanded)
|
||||||
root.expandedPluginId = "";
|
root.expandedPluginId = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastService.showError("Failed to disable plugin: " + currentPluginName);
|
ToastService.showError(I18n.tr("Failed to disable plugin: %1").arg(currentPluginName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ FocusScope {
|
|||||||
PluginService.openPluginDirectory();
|
PluginService.openPluginDirectory();
|
||||||
} else {
|
} else {
|
||||||
PluginService.createPluginDirectory();
|
PluginService.createPluginDirectory();
|
||||||
ToastService.showInfo("Created plugin directory: " + PluginService.pluginDirectory);
|
ToastService.showInfo(I18n.tr("Created plugin directory: %1").arg(PluginService.pluginDirectory));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -251,59 +251,69 @@ Item {
|
|||||||
settingKey: "fontWeight"
|
settingKey: "fontWeight"
|
||||||
text: I18n.tr("Font Weight")
|
text: I18n.tr("Font Weight")
|
||||||
description: I18n.tr("Select font weight for UI text")
|
description: I18n.tr("Select font weight for UI text")
|
||||||
options: ["Thin", "Extra Light", "Light", "Regular", "Medium", "Demi Bold", "Bold", "Extra Bold", "Black"]
|
options: [
|
||||||
|
I18n.tr("Thin"),
|
||||||
|
I18n.tr("Extra Light"),
|
||||||
|
I18n.tr("Light"),
|
||||||
|
I18n.tr("Regular"),
|
||||||
|
I18n.tr("Medium"),
|
||||||
|
I18n.tr("Demi Bold"),
|
||||||
|
I18n.tr("Bold"),
|
||||||
|
I18n.tr("Extra Bold"),
|
||||||
|
I18n.tr("Black")
|
||||||
|
]
|
||||||
currentValue: {
|
currentValue: {
|
||||||
switch (SettingsData.fontWeight) {
|
switch (SettingsData.fontWeight) {
|
||||||
case Font.Thin:
|
case Font.Thin:
|
||||||
return "Thin";
|
return I18n.tr("Thin");
|
||||||
case Font.ExtraLight:
|
case Font.ExtraLight:
|
||||||
return "Extra Light";
|
return I18n.tr("Extra Light");
|
||||||
case Font.Light:
|
case Font.Light:
|
||||||
return "Light";
|
return I18n.tr("Light");
|
||||||
case Font.Normal:
|
case Font.Normal:
|
||||||
return "Regular";
|
return I18n.tr("Regular");
|
||||||
case Font.Medium:
|
case Font.Medium:
|
||||||
return "Medium";
|
return I18n.tr("Medium");
|
||||||
case Font.DemiBold:
|
case Font.DemiBold:
|
||||||
return "Demi Bold";
|
return I18n.tr("Demi Bold");
|
||||||
case Font.Bold:
|
case Font.Bold:
|
||||||
return "Bold";
|
return I18n.tr("Bold");
|
||||||
case Font.ExtraBold:
|
case Font.ExtraBold:
|
||||||
return "Extra Bold";
|
return I18n.tr("Extra Bold");
|
||||||
case Font.Black:
|
case Font.Black:
|
||||||
return "Black";
|
return I18n.tr("Black");
|
||||||
default:
|
default:
|
||||||
return "Regular";
|
return I18n.tr("Regular");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onValueChanged: value => {
|
onValueChanged: value => {
|
||||||
var weight;
|
var weight;
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case "Thin":
|
case I18n.tr("Thin"):
|
||||||
weight = Font.Thin;
|
weight = Font.Thin;
|
||||||
break;
|
break;
|
||||||
case "Extra Light":
|
case I18n.tr("Extra Light"):
|
||||||
weight = Font.ExtraLight;
|
weight = Font.ExtraLight;
|
||||||
break;
|
break;
|
||||||
case "Light":
|
case I18n.tr("Light"):
|
||||||
weight = Font.Light;
|
weight = Font.Light;
|
||||||
break;
|
break;
|
||||||
case "Regular":
|
case I18n.tr("Regular"):
|
||||||
weight = Font.Normal;
|
weight = Font.Normal;
|
||||||
break;
|
break;
|
||||||
case "Medium":
|
case I18n.tr("Medium"):
|
||||||
weight = Font.Medium;
|
weight = Font.Medium;
|
||||||
break;
|
break;
|
||||||
case "Demi Bold":
|
case I18n.tr("Demi Bold"):
|
||||||
weight = Font.DemiBold;
|
weight = Font.DemiBold;
|
||||||
break;
|
break;
|
||||||
case "Bold":
|
case I18n.tr("Bold"):
|
||||||
weight = Font.Bold;
|
weight = Font.Bold;
|
||||||
break;
|
break;
|
||||||
case "Extra Bold":
|
case I18n.tr("Extra Bold"):
|
||||||
weight = Font.ExtraBold;
|
weight = Font.ExtraBold;
|
||||||
break;
|
break;
|
||||||
case "Black":
|
case I18n.tr("Black"):
|
||||||
weight = Font.Black;
|
weight = Font.Black;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ Singleton {
|
|||||||
if (wifiConnected && currentWifiSSID === pendingConnectionSSID && wifiIP) {
|
if (wifiConnected && currentWifiSSID === pendingConnectionSSID && wifiIP) {
|
||||||
const elapsed = Date.now() - pendingConnectionStartTime;
|
const elapsed = Date.now() - pendingConnectionStartTime;
|
||||||
log.info("Successfully connected to", pendingConnectionSSID, "in", elapsed, "ms");
|
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") {
|
if (userPreference === "wifi" || userPreference === "auto") {
|
||||||
setConnectionPriority("wifi");
|
setConnectionPriority("wifi");
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ Singleton {
|
|||||||
log.info("Connected (API v" + apiVersion + ", CLI " + cliVersion + ") -", JSON.stringify(capabilities));
|
log.info("Connected (API v" + apiVersion + ", CLI " + cliVersion + ") -", JSON.stringify(capabilities));
|
||||||
|
|
||||||
if (apiVersion < expectedApiVersion) {
|
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();
|
capabilitiesReceived();
|
||||||
|
|||||||
@@ -444,7 +444,7 @@ Singleton {
|
|||||||
// Night Mode Functions - Simplified
|
// Night Mode Functions - Simplified
|
||||||
function enableNightMode() {
|
function enableNightMode() {
|
||||||
if (!gammaControlAvailable) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ Singleton {
|
|||||||
if (exitCode === 0) {
|
if (exitCode === 0) {
|
||||||
configValidationOutput = "";
|
configValidationOutput = "";
|
||||||
} else if (hasInitialConnection && configValidationOutput.length > 0) {
|
} 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();
|
configReloaded();
|
||||||
|
|
||||||
if (hasInitialConnection && !suppressConfigToast && !suppressNextConfigToast && !matugenSuppression) {
|
if (hasInitialConnection && !suppressConfigToast && !suppressNextConfigToast && !matugenSuppression) {
|
||||||
ToastService.showInfo("niri: config reloaded", "", "", "niri-config");
|
ToastService.showInfo(I18n.tr("niri: config reloaded"), "", "", "niri-config");
|
||||||
} else if (suppressNextConfigToast) {
|
} else if (suppressNextConfigToast) {
|
||||||
suppressNextConfigToast = false;
|
suppressNextConfigToast = false;
|
||||||
suppressResetTimer.stop();
|
suppressResetTimer.stop();
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ Singleton {
|
|||||||
errorOutput = "";
|
errorOutput = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ToastService.showError("Hibernate failed", errorOutput);
|
ToastService.showError(I18n.tr("Hibernate failed"), errorOutput);
|
||||||
errorOutput = "";
|
errorOutput = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# ! Auto-generated file. Do not edit directly.
|
# Auto-generated by DMS - do not edit manually
|
||||||
# Remove source = ./dms/colors.conf from your config to override.
|
# Remove source = ./dms/colors.conf from your config to override.
|
||||||
|
|
||||||
$primary = rgb({{colors.primary.default.hex_stripped}})
|
$primary = rgb({{colors.primary.default.hex_stripped}})
|
||||||
|
|||||||
Reference in New Issue
Block a user