Skip to content

RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process

Extract the new Input strings and mark layout names raw

oxydizer45beabf8f6ba
diff --git a/po/rediwm.pot b/po/rediwm.pot
index 0694a04..c1ab791 100644
--- a/po/rediwm.pot
+++ b/po/rediwm.pot
@@ -1769,6 +1769,10 @@ msgstr ""
msgid "Custom"
msgstr ""
+#: src/control_center/sections/input.zig
+msgid "Custom (config file)"
+msgstr ""
+
#: src/control_center/sections/portals.zig
msgid "Custom ({name})"
msgstr ""
@@ -3071,6 +3075,10 @@ msgstr ""
msgid "Keyboard Shortcuts"
msgstr ""
+#: src/control_center/sections/input.zig
+msgid "Keyboard layout"
+msgstr ""
+
#: src/control_center/search_index.zig
msgid "Keyboard repeat delay"
msgstr ""
@@ -3143,6 +3151,10 @@ msgstr ""
msgid "Left"
msgstr ""
+#: src/control_center/sections/input.zig
+msgid "Left-handed mouse"
+msgstr ""
+
#: src/control_center/search_index.zig
msgid "Lid close action"
msgstr ""
diff --git a/src/control_center/sections/input.zig b/src/control_center/sections/input.zig
index a5c6f89..e89a45f 100644
--- a/src/control_center/sections/input.zig
+++ b/src/control_center/sections/input.zig
@@ -28,19 +28,19 @@ const KeyboardLayout = struct { label: []const u8, layout: []const u8, variant:
// Layout names are shown in their own language, so they are not translated.
const keyboard_layouts = [_]KeyboardLayout{
- .{ .label = "English (US, QWERTY)", .layout = "us" },
- .{ .label = "Français (AZERTY)", .layout = "fr" },
- .{ .label = "Français (BÉPO)", .layout = "fr", .variant = "bepo" },
- .{ .label = "Belge (AZERTY)", .layout = "be" },
- .{ .label = "Suisse romand (QWERTZ)", .layout = "ch", .variant = "fr" },
- .{ .label = "Canadien multilingue", .layout = "ca", .variant = "multix" },
- .{ .label = "Deutsch (QWERTZ)", .layout = "de" },
- .{ .label = "Español", .layout = "es" },
- .{ .label = "Italiano", .layout = "it" },
- .{ .label = "Português", .layout = "pt" },
- .{ .label = "English (UK)", .layout = "gb" },
- .{ .label = "English (Dvorak)", .layout = "us", .variant = "dvorak" },
- .{ .label = "Русский", .layout = "ru" },
+ .{ .label = "English (US, QWERTY)", .layout = "us" }, // i18n: raw
+ .{ .label = "Français (AZERTY)", .layout = "fr" }, // i18n: raw
+ .{ .label = "Français (BÉPO)", .layout = "fr", .variant = "bepo" }, // i18n: raw
+ .{ .label = "Belge (AZERTY)", .layout = "be" }, // i18n: raw
+ .{ .label = "Suisse romand (QWERTZ)", .layout = "ch", .variant = "fr" }, // i18n: raw
+ .{ .label = "Canadien multilingue", .layout = "ca", .variant = "multix" }, // i18n: raw
+ .{ .label = "Deutsch (QWERTZ)", .layout = "de" }, // i18n: raw
+ .{ .label = "Español", .layout = "es" }, // i18n: raw
+ .{ .label = "Italiano", .layout = "it" }, // i18n: raw
+ .{ .label = "Português", .layout = "pt" }, // i18n: raw
+ .{ .label = "English (UK)", .layout = "gb" }, // i18n: raw
+ .{ .label = "English (Dvorak)", .layout = "us", .variant = "dvorak" }, // i18n: raw
+ .{ .label = "Русский", .layout = "ru" }, // i18n: raw
};
const keyboard_layout_labels = blk: {