Skip to content

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

Add languages (es, pt_BR, de, fr, ru), calculator, torrents and many fixes

oxydizer1b9f8b93b54c
diff --git a/README.md b/README.md
index 2638a71..c956f8e 100644
--- a/README.md
+++ b/README.md
@@ -56,10 +56,18 @@ Installing never replaces your login manager
Requirements: Zig 0.16, wlroots 0.20, and the development files for Wayland,
wayland-protocols, xkbcommon, pixman, FreeType, HarfBuzz, Fontconfig,
librsvg/GdkPixbuf, PangoCairo, libinput, PAM, libpulse, libpipewire-0.3, Poppler GLib,
-libseccomp, libarchive, libjpeg, libpng, libwebp and GNU Readline. Files embeds
+libseccomp, libarchive, libjpeg, libpng, libwebp and GNU Readline. Background
+[Files transfers](docs/files-torrents.md) additionally require libtorrent-rasterbar,
+JSON-GLib and a system C++17 compiler. Files embeds
the pinned libvterm 0.3.3 source (downloaded by Zig; no system libvterm needed). Optional:
Xwayland, `foot`, `brightnessctl`, `gio`/`xdg-open`, `git` (optional).
+In Files, right-click a type-2 AppImage and choose **Add to applications** to
+install its bundled launcher, icon and file/link associations. This needs
+`unsquashfs` from `squashfs-tools`; it reads metadata without running the app.
+Keep the AppImage in its current location after adding it. Existing default
+applications are preserved; unhandled link schemes become available to browsers.
+
Printer support links against `libcups` (CUPS development headers are needed to
build). Settings → Printers uses `cups-pk-helper` when installed, or talks directly
to the local CUPS server and prompts for a CUPS administrator account when needed.
diff --git a/TESTING.md b/TESTING.md
index 9230e4a..0515f56 100644
--- a/TESTING.md
+++ b/TESTING.md
@@ -334,6 +334,15 @@ against an unlisted disposable child before exercising UI actions. These tests
require Linux seccomp user notifications; production builds contain no hooks.
**Desktop, Files, Images**: `desktop_icons.py`, `desktop_damage.py`,
+`zig build test-files-torrents` builds the applications, then runs a real
+libtorrent seed/tracker/selected download on loopback, persistence and collision
+checks, and a headless Files/tray flow. Requires Python's libtorrent bindings,
+PyGObject, a C compiler and the ordinary headless dependencies. The noninstalled
+`tests/torrent_network.c` confines the helper's networking to loopback. All
+state and the session bus are private. The UI screenshots are written to
+`/tmp/rediwm-transfers-list.png`, `/tmp/rediwm-transfers-files.png` and
+`/tmp/rediwm-transfers-folder.png` (folder controls and hover details) for inspection.
+
`zig build test-files-terminal` (Files units plus isolated Bash/PTY and real drawer tests;
also `python3 tests/files_terminal.py` after building; supports `REDIWM_TEST_SCALE=1.5`),
`files_browser.py` (file-path selection; with `REDIWM_FORCE_DBUS=1` on a private
@@ -345,7 +354,9 @@ both views, hand cursors, selection/drag cancellation and the live Settings togg
colour, EXIF rotation, the shared freedesktop cache read and write, a 240-picture
folder, the `REDIWM_FILES_THUMBNAILS=0` switch and idle wakeups; it sets a scratch
`XDG_CACHE_HOME`), `files_fixes.py` (wl-clipboard), `files_associations.py` (private MIME/app
-databases; needs update-mime-database, update-desktop-database and gio), `files_drag.py` (GTK 3; `--browser` tests
+databases and AppImage registration/browser callbacks; needs update-mime-database,
+update-desktop-database, gio and squashfs-tools; `--appimage-only` isolates the
+AppImage context action, metadata, defaults and real URL launches), `files_drag.py` (GTK 3; `--browser` tests
real Brave uploads with an isolated profile; `--select` selects by dragging
from empty space, `--list` exercises list view, and `--pin` drags folders and a
file onto PLACES: insertion line, order, refused drops, open and remove;
@@ -404,6 +415,54 @@ is the signal to revisit, not a regression.
- Synchronize on protocol acknowledgements, IPC events and `wait_for_frame`,
not sleeps, wherever possible.
+## Languages and locale correctness
+
+`zig build i18n-check` checks source/catalog drift, placeholder sets, plural
+forms and French spacing. `zig build i18n-lint` checks converted UI files listed
+in `po/lint-files`; `zig build test-i18n` covers compiled lookup, fallback,
+formatting and plural rules. PO parser/compiler tests also run in `zig build
+test`. Run `zig build i18n-extract` after changing source messages and merge the
+updated template into every catalog. Fuzzy entries are excluded from the UI
+and generated desktop/polkit metadata. Every PO and the POT are explicit build
+inputs, so edits and review flags invalidate generated catalogs and metadata.
+
+A local ReleaseSafe microbenchmark (20 million calls, three `perf stat` runs on
+one pinned core) measured about 0.031 s for English lookup versus 0.022 s for a
+literal loop, and 0.324 s for qps. These are lookup measurements, not complete
+frame timings. The 1,879-message qps catalog has 3,759 64-byte slots and about
+83 KiB of translated text, plus source IDs and form slices. Fuzzy catalogs
+have empty lookup tables; reviewed catalogs will increase binary size.
+
+`python3 tests/i18n.py` checks explicit-language precedence, localized desktop
+names and live catalog/cache invalidation, stable widget names, and expanded
+power-menu labels. `python3 tests/calendar_popup.py --locale-only` uses a
+private German locale generated by `localedef`, checks localized calendar
+names and reloads formats. The full calendar test also checks picker/child
+locale persistence. `tests/input_protocols.py` covers ru/ua-only shortcuts;
+`tests/dead_keys.py` covers Portuguese/Spanish compose and German/French layouts.
+`zig build test-polkit` covers language re-registration, including active
+requests that must finish before registration changes.
+
+Files collation tests run C and, when available, de_DE.UTF-8 and ru_RU.UTF-8.
+To avoid host changes, generate private locales and pass their directory as
+`LOCPATH`; missing locales are reported as skips. The directory worker owns
+LC_COLLATE and computes keys once per listing. A 100,000-file ReleaseSafe
+benchmark on the development machine measured about 135 ms German / 134 ms
+Russian for enumeration, keys and both sorts, versus about 221 ms for direct
+strcoll comparisons. C remained around 95–96 ms. These are local measurements,
+not performance thresholds.
+
+`python3 scripts/i18n-screens.py qps --out /tmp/rediwm-qps-review` captures the
+shell, every available Settings section and app/dialog fixtures into an
+isolated directory. Repeat for each reviewed language and `--scale 1.5`.
+`review.json` records measured overflow, skipped/unavailable surfaces and the
+manual security-screen checklist. Icon-only controls carry accessible labels
+but have zero painted text width; synthetic IPC hit targets may not have a
+text measurement. `--allow-overflow` only keeps the report-producing walk from
+failing; it does not approve a language. Review every recorded ellipsis/overflow
+before changing its native-review header. Lock/greeter/polkit screenshots use
+their existing isolated fixtures; production locked IPC stays denied.
+
## Fixtures that must stay stable
`src/ipc_serializers.jsonl` pins response serialization. `src/ipc_tests.zig`
diff --git a/assets/icons/users.svg b/assets/icons/users.svg
index ca88f5e..0763f79 100644
--- a/assets/icons/users.svg
+++ b/assets/icons/users.svg
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8"?><svg fill="#000000" width="800px" height="800px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><circle cx="435.2" cy="409.5" r="102.4"/><path d="M588.8 409.5c0 17.6-3.1 34.5-8.6 50.3 2.9.2 5.7.9 8.6.9 56.6 0 102.4-45.8 102.4-102.4 0-56.6-45.8-102.4-102.4-102.4-26.1 0-49.7 10.1-67.8 26.2 40.9 27.7 67.8 74.4 67.8 127.4zM435.2 563.1c-128 0-179.2 25.6-179.2 102.4v102.6h358.4V665.5c0-77.3-51.2-102.4-179.2-102.4z"/><path d="M588.8 511.9c-14.5 0-27.9.4-40.5 1.1-2.3 2.5-4.6 4.9-7 7.2 63.7 13.5 124.2 49.5 124.2 145.3v51.4H768V614.3c0-77.3-51.2-102.4-179.2-102.4z"/></svg>
+<?xml version="1.0" encoding="utf-8"?><svg fill="#000000" viewBox="226 251 572 572" xmlns="http://www.w3.org/2000/svg"><circle cx="435.2" cy="409.5" r="102.4"/><path d="M588.8 409.5c0 17.6-3.1 34.5-8.6 50.3 2.9.2 5.7.9 8.6.9 56.6 0 102.4-45.8 102.4-102.4 0-56.6-45.8-102.4-102.4-102.4-26.1 0-49.7 10.1-67.8 26.2 40.9 27.7 67.8 74.4 67.8 127.4zM435.2 563.1c-128 0-179.2 25.6-179.2 102.4v102.6h358.4V665.5c0-77.3-51.2-102.4-179.2-102.4z"/><path d="M588.8 511.9c-14.5 0-27.9.4-40.5 1.1-2.3 2.5-4.6 4.9-7 7.2 63.7 13.5 124.2 49.5 124.2 145.3v51.4H768V614.3c0-77.3-51.2-102.4-179.2-102.4z"/></svg>
diff --git a/build.zig b/build.zig
index 163ed8c..a964eb3 100644
--- a/build.zig
+++ b/build.zig
@@ -81,7 +81,23 @@ pub fn build(b: *std.Build) void {
// Module roots enforce one-way dependencies: shared code cannot import Server.
const memory_mod = b.createModule(.{ .root_source_file = b.path("src/memory/allocator.zig"), .target = target, .optimize = optimize });
+ const i18n_tool = b.addExecutable(.{ .name = "i18n-tool", .root_module = b.createModule(.{ .root_source_file = b.path("tools/i18n.zig"), .target = b.graph.host, .optimize = .ReleaseSafe }) });
+ const catalog_compile = b.addRunArtifact(i18n_tool);
+ catalog_compile.setCwd(b.path("."));
+ catalog_compile.addArg("compile");
+ const catalog_source = catalog_compile.addOutputFileArg("catalogs.zig");
+ catalog_compile.addDirectoryArg(b.path("po"));
+ addCatalogInputs(b, catalog_compile);
+ const i18n_mod = b.createModule(.{ .root_source_file = b.path("src/i18n/mod.zig"), .target = target, .optimize = optimize });
+ i18n_mod.addAnonymousImport("catalogs", .{ .root_source_file = catalog_source });
+ inline for (.{ .{ "extract", "Regenerate the UI message template" }, .{ "check", "Check UI catalogs, placeholders and plural forms" }, .{ "lint", "Check converted UI files for untranslated literals" } }) |entry| {
+ const run = b.addRunArtifact(i18n_tool);
+ run.setCwd(b.path("."));
+ run.addArg(entry[0]);
+ b.step("i18n-" ++ entry[0], entry[1]).dependOn(&run.step);
+ }
const ui_mod = b.createModule(.{ .root_source_file = b.path("src/ui/mod.zig"), .target = target, .optimize = optimize, .link_libc = true });
+ ui_mod.addImport("i18n", i18n_mod);
ui_mod.addImport("memory", memory_mod);
ui_mod.addImport("wayland", wayland);
ui_mod.linkSystemLibrary("xkbcommon", .{});
@@ -103,6 +119,7 @@ pub fn build(b: *std.Build) void {
dbus_mod.linkSystemLibrary("wayland-server", .{});
const config_mod = b.createModule(.{ .root_source_file = b.path("src/config/mod.zig"), .target = target, .optimize = optimize, .link_libc = true });
config_mod.addImport("ui", ui_mod);
+ config_mod.addImport("i18n", i18n_mod);
config_mod.addImport("xkbcommon", xkbcommon);
config_mod.linkSystemLibrary("xkbcommon", .{});
@@ -114,12 +131,13 @@ pub fn build(b: *std.Build) void {
});
theme_helper.root_module.addImport("config", config_mod);
theme_helper.root_module.addImport("ui", ui_mod);
+ theme_helper.root_module.addImport("i18n", i18n_mod);
theme_helper.root_module.addCSourceFile(.{ .file = b.path("src/theme_helper/native.c"), .flags = &.{ "-std=c11", "-Wall", "-Wextra", "-Werror" } });
inline for (.{ "libarchive", "librsvg-2.0", "gdk-pixbuf-2.0" }) |lib| theme_helper.root_module.linkSystemLibrary(lib, .{});
addThumbCodec(b, theme_helper.root_module);
theme_helper.root_module.linkSystemLibrary("libwebp", .{});
b.installArtifact(theme_helper);
- b.getInstallStep().dependOn(&b.addInstallFileWithDir(b.path("data/rediwm-theme.desktop"), .prefix, "share/applications/rediwm-theme.desktop").step);
+ b.getInstallStep().dependOn(&b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-theme.desktop"), .prefix, "share/applications/rediwm-theme.desktop").step);
b.getInstallStep().dependOn(&b.addInstallFileWithDir(b.path("data/rediwm-theme.xml"), .prefix, "share/mime/packages/rediwm-theme.xml").step);
const protocol_mod = b.createModule(.{
@@ -203,13 +221,27 @@ pub fn build(b: *std.Build) void {
addFilesTerminal(b, files.root_module, false);
const terminal_license = b.addInstallFileWithDir(b.dependency("vterm", .{}).path("LICENSE"), .prefix, "share/licenses/rediwm/libvterm-LICENSE");
b.getInstallStep().dependOn(&terminal_license.step);
+ // Use the system C++ ABI, matching the distro's libtorrent-rasterbar.
+ const torrents = b.addSystemCommand(&.{ "sh", "-c", "exec c++ -std=c++17 -Wall -Wextra -Werror -Wno-deprecated-declarations -Wno-missing-field-initializers $(pkg-config --cflags libtorrent-rasterbar gio-unix-2.0 json-glib-1.0) \"$@\" $(pkg-config --libs libtorrent-rasterbar gio-unix-2.0 json-glib-1.0)", "build-transfers" });
+ torrents.addArg(if (optimize == .Debug) "-O0" else "-O2");
+ torrents.addArg("-g");
+ torrents.addArg("-D_GLIBCXX_ASSERTIONS");
+ torrents.addArg("-fstack-protector-strong");
+ if (optimize != .Debug) torrents.addArg("-D_FORTIFY_SOURCE=3");
+ torrents.addFileArg(b.path("src/files/torrent/helper.cpp"));
+ torrents.addArg("-o");
+ const torrent_binary = torrents.addOutputFileArg("rediwm-transfers");
+ const install_torrents = b.addInstallFileWithDir(torrent_binary, .bin, "rediwm-transfers");
+ b.getInstallStep().dependOn(&install_torrents.step);
+ const torrent_license = b.addInstallFileWithDir(b.path("src/files/torrent/LICENSE.libtorrent"), .prefix, "share/licenses/rediwm/libtorrent-LICENSE");
+ b.getInstallStep().dependOn(&torrent_license.step);
const install_files = b.addInstallArtifact(files, .{});
// Advertises rediwm-files to the start menu's applications scanner
// (src/start_menu/applications.zig) and to any other XDG-aware
// launcher. Its icon is installed in the hicolor fallback theme so the
// start menu and taskbar can resolve the desktop entry's Icon name.
const install_files_desktop_entry = b.addInstallFileWithDir(
- b.path("data/rediwm-files.desktop"),
+ localizedData(b, i18n_tool, "data/rediwm-files.desktop"),
.prefix,
"share/applications/rediwm-files.desktop",
);
@@ -225,6 +257,17 @@ pub fn build(b: *std.Build) void {
// builds everything, this only adds a narrower entry point.
const files_step = b.step("files", "Build the standalone Files and image viewer clients");
files_step.dependOn(&install_files.step);
+ files_step.dependOn(&install_torrents.step);
+ files_step.dependOn(&torrent_license.step);
+ const transfers_entry = b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-transfers.desktop"), .prefix, "share/applications/rediwm-transfers.desktop");
+ b.getInstallStep().dependOn(&transfers_entry.step);
+ files_step.dependOn(&transfers_entry.step);
+ const test_torrents = b.step("test-files-torrents", "Test real loopback transfers and the Files/tray interface");
+ const torrent_engine_test = b.addSystemCommand(&.{ "python3", "tests/files_torrents.py" });
+ torrent_engine_test.step.dependOn(b.getInstallStep());
+ const torrent_ui_test = b.addSystemCommand(&.{ "python3", "tests/files_transfers_ui.py" });
+ torrent_ui_test.step.dependOn(&torrent_engine_test.step);
+ test_torrents.dependOn(&torrent_ui_test.step);
files_step.dependOn(&install_files_desktop_entry.step);
files_step.dependOn(&terminal_license.step);
const terminal_child = b.addExecutable(.{
@@ -256,7 +299,7 @@ pub fn build(b: *std.Build) void {
images.root_module.addImport("wayland", wayland);
inline for (.{ "wayland-client", "wayland-cursor", "gdk-pixbuf-2.0", "gobject-2.0", "glib-2.0", "xkbcommon" }) |lib| images.root_module.linkSystemLibrary(lib, .{});
const install_images = b.addInstallArtifact(images, .{});
- const images_entry = b.addInstallFileWithDir(b.path("data/rediwm-images.desktop"), .prefix, "share/applications/rediwm-images.desktop");
+ const images_entry = b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-images.desktop"), .prefix, "share/applications/rediwm-images.desktop");
b.getInstallStep().dependOn(&install_images.step);
b.getInstallStep().dependOn(&images_entry.step);
const images_step = b.step("images", "Build the standalone image viewer");
@@ -274,7 +317,7 @@ pub fn build(b: *std.Build) void {
monitor.root_module.addImport("wayland", wayland);
inline for (.{ "wayland-client", "wayland-cursor", "xkbcommon" }) |lib| monitor.root_module.linkSystemLibrary(lib, .{});
const install_monitor = b.addInstallArtifact(monitor, .{});
- const monitor_entry = b.addInstallFileWithDir(b.path("data/rediwm-monitor.desktop"), .prefix, "share/applications/rediwm-monitor.desktop");
+ const monitor_entry = b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-monitor.desktop"), .prefix, "share/applications/rediwm-monitor.desktop");
const monitor_icon = b.addInstallFileWithDir(b.path("data/rediwm-monitor.svg"), .prefix, "share/icons/hicolor/scalable/apps/rediwm-monitor.svg");
const monitor_step = b.step("monitor", "Build the standalone System Monitor");
inline for (.{ &install_monitor.step, &monitor_entry.step, &monitor_icon.step }) |step| {
@@ -282,6 +325,23 @@ pub fn build(b: *std.Build) void {
monitor_step.dependOn(step);
}
+ const calculator = b.addExecutable(.{
+ .name = "rediwm-calculator",
+ .root_module = b.createModule(.{ .root_source_file = b.path("src/calculator_main.zig"), .target = target, .optimize = optimize, .link_libc = true }),
+ .use_llvm = use_llvm,
+ .use_lld = use_llvm,
+ });
+ calculator.root_module.addImport("wayland", wayland);
+ inline for (.{ "wayland-client", "wayland-cursor", "xkbcommon" }) |lib| calculator.root_module.linkSystemLibrary(lib, .{});
+ const install_calculator = b.addInstallArtifact(calculator, .{});
+ const calculator_entry = b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-calculator.desktop"), .prefix, "share/applications/rediwm-calculator.desktop");
+ const calculator_icon = b.addInstallFileWithDir(b.path("data/rediwm-calculator.svg"), .prefix, "share/icons/hicolor/scalable/apps/rediwm-calculator.svg");
+ const calculator_step = b.step("calculator", "Build the standalone Calculator");
+ inline for (.{ &install_calculator.step, &calculator_entry.step, &calculator_icon.step }) |step| {
+ b.getInstallStep().dependOn(step);
+ calculator_step.dependOn(step);
+ }
+
const editor = b.addExecutable(.{
.name = "rediwm-editor",
.root_module = b.createModule(.{ .root_source_file = b.path("src/editor_main.zig"), .target = target, .optimize = optimize, .link_libc = true }),
@@ -291,7 +351,7 @@ pub fn build(b: *std.Build) void {
editor.root_module.addImport("wayland", wayland);
inline for (.{ "wayland-client", "wayland-cursor", "xkbcommon", "pangocairo" }) |lib| editor.root_module.linkSystemLibrary(lib, .{});
const install_editor = b.addInstallArtifact(editor, .{});
- const editor_entry = b.addInstallFileWithDir(b.path("data/rediwm-editor.desktop"), .prefix, "share/applications/rediwm-editor.desktop");
+ const editor_entry = b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-editor.desktop"), .prefix, "share/applications/rediwm-editor.desktop");
b.getInstallStep().dependOn(&install_editor.step);
b.getInstallStep().dependOn(&editor_entry.step);
const editor_step = b.step("editor", "Build the standalone text editor");
@@ -312,7 +372,7 @@ pub fn build(b: *std.Build) void {
pdf.root_module.linkSystemLibrary("seccomp", .{});
inline for (.{ "wayland-client", "wayland-cursor", "poppler-glib", "cairo", "gio-2.0", "gobject-2.0", "glib-2.0", "xkbcommon" }) |lib| pdf.root_module.linkSystemLibrary(lib, .{});
const install_pdf = b.addInstallArtifact(pdf, .{});
- const pdf_entry = b.addInstallFileWithDir(b.path("data/rediwm-pdf.desktop"), .prefix, "share/applications/rediwm-pdf.desktop");
+ const pdf_entry = b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-pdf.desktop"), .prefix, "share/applications/rediwm-pdf.desktop");
b.getInstallStep().dependOn(&install_pdf.step);
b.getInstallStep().dependOn(&pdf_entry.step);
const pdf_step = b.step("pdf", "Build the standalone PDF viewer");
@@ -354,11 +414,14 @@ pub fn build(b: *std.Build) void {
"share/xdg-desktop-portal-wlr/config",
).step);
b.getInstallStep().dependOn(&b.addInstallFileWithDir(
- b.path("data/rediwm.desktop"),
+ localizedData(b, i18n_tool, "data/rediwm.desktop"),
.prefix,
"share/wayland-sessions/rediwm.desktop",
).step);
+ b.getInstallStep().dependOn(&b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/org.rediwm.accounts.policy"), .prefix, "share/polkit-1/actions/org.rediwm.accounts.policy").step);
+ b.getInstallStep().dependOn(&b.addInstallFileWithDir(localizedData(b, i18n_tool, "data/rediwm-release-safe.desktop"), .prefix, "share/wayland-sessions/rediwm-release-safe.desktop").step);
+
// Wallpapers, found at runtime through share/rediwm/wallpapers next to
// the binaries (wallpapers.zig); `[compositor] wallpaper` picks one.
b.installDirectory(.{
@@ -512,6 +575,12 @@ pub fn build(b: *std.Build) void {
const run_ipc_tests = b.addRunArtifact(ipc_tests);
const test_step = b.step("test", "Run the project unit tests");
+ const i18n_tests = b.addTest(.{ .root_module = i18n_mod });
+ const run_i18n_tests = b.addRunArtifact(i18n_tests);
+ test_step.dependOn(&run_i18n_tests.step);
+ const i18n_tool_tests = b.addTest(.{ .root_module = i18n_tool.root_module });
+ test_step.dependOn(&b.addRunArtifact(i18n_tool_tests).step);
+ b.step("test-i18n", "Test locale resolution, catalogs and formatting").dependOn(&run_i18n_tests.step);
const monitor_tests = b.addTest(.{ .root_module = b.createModule(.{
.root_source_file = b.path("src/system_monitor_tests.zig"),
.target = target,
@@ -529,6 +598,7 @@ pub fn build(b: *std.Build) void {
.link_libc = true,
}) });
printing_tests.root_module.addImport("dbus", dbus_mod);
+ printing_tests.root_module.addImport("i18n", i18n_mod);
printing_tests.root_module.addImport("wayland", wayland);
printing_tests.root_module.linkSystemLibrary("wayland-server", .{});
printing_tests.root_module.linkSystemLibrary("cups", .{});
@@ -590,6 +660,7 @@ pub fn build(b: *std.Build) void {
.use_lld = use_llvm,
});
polkit_service.root_module.addImport("wayland", wayland);
+ polkit_service.root_module.addImport("i18n", i18n_mod);
polkit_service.root_module.linkSystemLibrary("wayland-server", .{});
polkit_service.root_module.addCSourceFile(.{ .file = b.path("src/polkit/native.c"), .flags = &.{ "-std=c11", "-Wall", "-Wextra", "-Werror" } });
polkit_service.root_module.linkSystemLibrary("pthread", .{});
@@ -757,11 +828,12 @@ pub fn build(b: *std.Build) void {
test_step.dependOn(&run_ipc_tests.step);
// Hosts also rasterize app-specific content through their own C imports.
- inline for (.{ files.root_module, images.root_module, editor.root_module, pdf.root_module, share_picker.root_module, monitor.root_module, files_tests.root_module, images_tests.root_module, editor_tests.root_module, pdf_tests.root_module }) |module| {
+ inline for (.{ files.root_module, images.root_module, editor.root_module, pdf.root_module, share_picker.root_module, monitor.root_module, calculator.root_module, files_tests.root_module, images_tests.root_module, editor_tests.root_module, pdf_tests.root_module }) |module| {
inline for (.{ "cairo", "librsvg-2.0", "freetype2", "harfbuzz", "fontconfig" }) |lib| module.linkSystemLibrary(lib, .{});
}
- inline for (.{ compositor.root_module, ui_tests_module, files.root_module, images.root_module, editor.root_module, pdf.root_module, share_picker.root_module, monitor.root_module, editor_tests.root_module, images_tests.root_module, pdf_tests.root_module, files_tests.root_module, ipc_tests_module, protocol_mod, session_supervisor.root_module, session_tests.root_module, share_picker_tests.root_module, dbus_tests.root_module }) |module| {
+ inline for (.{ compositor.root_module, ui_tests_module, files.root_module, images.root_module, editor.root_module, pdf.root_module, share_picker.root_module, monitor.root_module, calculator.root_module, editor_tests.root_module, images_tests.root_module, pdf_tests.root_module, files_tests.root_module, ipc_tests_module, protocol_mod, session_supervisor.root_module, session_tests.root_module, share_picker_tests.root_module, dbus_tests.root_module }) |module| {
module.addImport("ui", ui_mod);
+ module.addImport("i18n", i18n_mod);
module.addImport("config", config_mod);
module.addImport("memory", memory_mod);
}
@@ -961,3 +1033,35 @@ fn addShellIcons(b: *std.Build, module: *std.Build.Module) void {
module.addAnonymousImport("shell-icon-" ++ name, .{ .root_source_file = b.path("assets/icons/" ++ name ++ ".svg") });
}
}
+
+/// Localize installed metadata from the same reviewed catalog entries as UI.
+fn localizedData(b: *std.Build, tool: *std.Build.Step.Compile, path: []const u8) std.Build.LazyPath {
+ const run = b.addRunArtifact(tool);
+ run.setCwd(b.path("."));
+ run.addArg("data");
+ run.addFileArg(b.path(path));
+ const result = run.addOutputFileArg(std.fs.path.basename(path));
+ run.addDirectoryArg(b.path("po"));
+ addCatalogInputs(b, run);
+ return result;
+}
+
+/// Directory arguments alone do not hash their contents. Track every catalog
+/// explicitly so edits, review flags and newly added languages invalidate both
+/// compiled UI tables and installed desktop/polkit metadata.
+fn addCatalogInputs(b: *std.Build, run: *std.Build.Step.Run) void {
+ var dir = b.build_root.handle.openDir(b.graph.io, "po", .{ .iterate = true }) catch @panic("cannot open po/");
+ defer dir.close(b.graph.io);
+ var paths: std.ArrayList([]const u8) = .empty;
+ var it = dir.iterate();
+ while (it.next(b.graph.io) catch @panic("cannot read po/")) |entry| {
+ if (entry.kind != .file) continue;
+ if (std.mem.endsWith(u8, entry.name, ".po") or std.mem.eql(u8, entry.name, "rediwm.pot")) paths.append(b.allocator, b.fmt("po/{s}", .{entry.name})) catch @panic("OOM");
+ }
+ std.mem.sort([]const u8, paths.items, {}, struct {
+ fn less(_: void, left: []const u8, right: []const u8) bool {
+ return std.mem.lessThan(u8, left, right);
+ }
+ }.less);
+ for (paths.items) |path| run.addFileInput(b.path(path));
+}
diff --git a/data/rediwm-calculator.desktop b/data/rediwm-calculator.desktop
new file mode 100644
index 0000000..4a0f807
--- /dev/null
+++ b/data/rediwm-calculator.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Calculator
+Comment=Simple arithmetic calculator
+Exec=rediwm-calculator
+Icon=rediwm-calculator
+Terminal=false
+Categories=Utility;Calculator;
+Keywords=arithmetic;math;calculate;
+StartupWMClass=rediwm-calculator
diff --git a/data/rediwm-calculator.svg b/data/rediwm-calculator.svg
new file mode 100644
index 0000000..6823b12
--- /dev/null
+++ b/data/rediwm-calculator.svg
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
+ <rect x="20" y="8" width="88" height="112" rx="18" fill="#283346"/>
+ <rect x="30" y="20" width="68" height="27" rx="6" fill="#c5e9de"/>
+ <g fill="#dbe4ef">
+ <rect x="31" y="59" width="16" height="14" rx="4"/>
+ <rect x="56" y="59" width="16" height="14" rx="4"/>
+ <rect x="31" y="81" width="16" height="14" rx="4"/>
+ <rect x="56" y="81" width="16" height="14" rx="4"/>
+ <rect x="31" y="103" width="41" height="7" rx="3.5"/>
+ </g>
+ <rect x="81" y="59" width="16" height="51" rx="5" fill="#6dbcae"/>
+ <path d="M85 81h8m-8 7h8" stroke="#203040" stroke-width="2.5" stroke-linecap="round"/>
+</svg>
diff --git a/data/rediwm-transfers.desktop b/data/rediwm-transfers.desktop
new file mode 100644
index 0000000..7102d12
--- /dev/null
+++ b/data/rediwm-transfers.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Files Transfers
+Comment=Download torrents and magnet links in Files
+Exec=rediwm-files --torrent %u
+MimeType=application/x-bittorrent;x-scheme-handler/magnet;
+Icon=folder-download
+Terminal=false
+NoDisplay=true
+Categories=Network;FileTransfer;
diff --git a/docs/agent-notes/dock.md b/docs/agent-notes/dock.md
index 406f240..710a22b 100644
--- a/docs/agent-notes/dock.md
+++ b/docs/agent-notes/dock.md
@@ -17,6 +17,18 @@ taskbar, OSD and input integration. General rules remain in
samples the nearest pixel and shows stair-steps at the dock's fractional
downscale.
+* Apps with multiple dock-eligible windows show a circular count in the icon's
+ upper-right corner (including minimized windows, capped at `99+`). The count
+ is part of the item key and stays inside the icon's bounds during hover zoom.
+ Clicking opens the compact window picker in `taskbar/window_menu.zig`, sharing
+ the context menu's input routing, inward placement and auto-hide hold. It owns
+ window IDs and title copies; detaching any listed window dismisses it through
+ `Menu.references`. Each row has a shared chrome close button; close dismisses
+ the picker before requesting the window close, without activating the window.
+ Keyboard and wheel navigation reach rows beyond the output.
+ A shortcut opens it during its press: the menu input path must still balance
+ that press's `active_buttons` on release (pins open after their release).
+
* Hover zoom keeps the screen-edge side fixed and grows toward the desktop.
Its spring (`dock_hover`) is underdamped: `zoomRange` gives the overshoot
headroom that rasters, icon size and cells are sized for, so never clamp a
diff --git a/docs/files-torrents.md b/docs/files-torrents.md
new file mode 100644
index 0000000..f894118
--- /dev/null
+++ b/docs/files-torrents.md
@@ -0,0 +1,84 @@
+# Files transfers
+
+Files opens `.torrent` files directly. Magnet handlers use the installed
+`rediwm-transfers.desktop` entry, which invokes `rediwm-files --torrent URI`.
+It advertises support without replacing an existing default application.
+`rediwm-files --transfers` opens the transfer list. The Transfers section below
+removable devices opens the same interface and shows aggregate activity.
+Transfers appears in the main Files pane using the file-list rows and column
+headers. Add torrent, Pause all and Stop seeding appear in the toolbar beside
+the view icons. Open a row for file selection and per-transfer controls; Back
+or a sidebar place returns to browsing folders.
+
+Folder listings also show transfer status beside the name, a circular progress
+indicator and a play/pause button. Hover the circle for percentage, download and
+upload speeds, connected peers, seeds, known peers and ETA. A stalled or paused
+download has no ETA until data is arriving again. Space toggles the focused
+transfer; clicking its circle opens details. A visible `.torrent` source gets
+these controls too. Before publication, the destination folder shows a transfer
+entry for the staged download; it opens transfer details and is excluded from
+copy, rename, trash and drag operations. Completion replaces it with the real
+published folder. No files are renamed to encode progress.
+
+Choose an existing destination folder, then choose files and start. Magnet
+links fetch metadata first; they do not download payload until confirmed.
+The first version has paged file selection, pause/resume, removal that keeps
+files, and two upload limits (128 KiB/s or 1 MiB/s). Seeding can stop at download
+completion, ratio 1 or ratio 2. The session upload ceiling is 1 MiB/s.
+
+Downloads and seeding continue after the last Files window closes. The tray
+indicator opens Transfers; its menu offers Pause all and Stop seeding. It is
+hidden when all transfers are stopped. A completion notification is sent when
+a notification service is already running. Transfers recover when Files next
+starts after logout or a helper crash; there is no new login autostart service.
+
+## Build
+
+Install development packages for **libtorrent-rasterbar**, **gio-unix-2.0**
+and **json-glib-1.0**, plus a system C++17 compiler and pkg-config. The helper
+is compiled with the system compiler to match the distribution's C++ ABI;
+it is a native Linux helper. The tested libtorrent version is 2.1.2. Files
+itself does not link C++ or libtorrent. `zig build` and `zig build files`
+build and install `rediwm-transfers` beside `rediwm-files`.
+
+## Storage and lifetime
+
+The per-user helper listens on `$XDG_RUNTIME_DIR/files-transfers.sock`, mode
+0600, with a singleton flock and same-user credential checks. The socket name
+must not match the compositor's `rediwm-*.sock` discovery pattern. Files uses
+nonblocking messages and a bounded connection-start deadline, not idle polling.
+The helper sends bounded snapshots, disconnecting stalled subscribers rather
+than blocking its engine. It permits up to 64 transfers and 512 files per
+torrent; local torrent metadata is limited to 8 MiB.
+
+Resume data and transfer settings live under
+`$XDG_STATE_HOME/rediwm/transfers`, or `~/.local/state/rediwm/transfers`. Writes
+use temporary files, fsync and rename. Active sessions checkpoint every 30
+seconds and on state changes. SIGTERM requests final resume data with a bounded
+shutdown deadline. The helper releases libtorrent entirely once all transfers
+are paused and outstanding save alerts have drained; attached Files windows
+then require no torrent worker timers. With no clients and no active transfers,
+the helper exits. A later command restores the engine from saved state.
+
+Incomplete data lives in the selected folder's private
+`.rediwm-partials/INFOHASH/` directory. Completion pauses disk activity and
+atomically publishes that whole directory as `TORRENT-NAME.download/`, retaining
+the torrent's internal paths. Existing destination folders are never replaced.
+The storage path is then updated and seeding resumes if allowed. A collision
+pauses the transfer and preserves its partial data; rename the conflicting
+folder and Resume to retry. This staging scheme keeps incomplete files out of
+the normal folder view and thumbnail pipeline.
+
+Remove always keeps payloads, including partials. Use Show in folder to locate
+them before removing a transfer. Moving or editing files outside the transfer
+engine can interrupt seeding; pause/remove the transfer before reorganizing
+its data. This version does not include tracker editing, torrent creation,
+streaming previews, automatic move tracking or individual file-row progress.
+
+## Validation
+
+`zig build test-files-torrents` runs real engine and headless UI/tray tests
+without contacting public peers, trackers or the user's session bus. Set
+`REDIWM_TEST_BIN_DIR` to an alternate build's `bin` directory to exercise it. The
+fixture network shim is never installed or linked into production binaries.
+See `TESTING.md` for dependencies and isolation rules.
diff --git a/docs/plans/files-terminal.md b/docs/plans/files-terminal.md
index 1d7473b..ca01a01 100644
--- a/docs/plans/files-terminal.md
+++ b/docs/plans/files-terminal.md
@@ -70,6 +70,10 @@ external terminal application are not automatically imported.
shortcuts and Escape reach the terminal while it is focused, except for
the explicitly reserved drawer toggle and existing compositor shortcuts.
Modal Files dialogs take precedence and restore the prior focus on close.
+* **Drop paths:** drag selected files or folders onto the terminal body to
+ insert their absolute paths as shell-quoted arguments and focus the terminal.
+ Each path ends with a space; press Enter to execute the command. This also
+ works between Files windows. Paths containing control characters are refused.
The drawer belongs to normal Files windows. Open/Save/folder chooser dialogs
do not expose it. Include an Open external terminal action using the configured
diff --git a/docs/plans/i18n.md b/docs/plans/i18n.md
index d68bd2e..2ceca3b 100644
--- a/docs/plans/i18n.md
+++ b/docs/plans/i18n.md
@@ -1,14 +1,17 @@
# Plan: translating the RediWM UI
-Status: decided. Phase 0 (survey) done 2026-10-08, results below. Next step is
-Phase 1.
+Status: implemented with the language work on 2026-10-20. The original survey
+and design below describe the groundwork. Compiled catalogs, extraction,
+validation, lint, pseudo-language, shell/Control Center/app conversion and
+review tooling now exist. See [languages.md](languages.md) and
+[the contributor guide](../../po/README.md); native review remains pending.
Scope: this is the groundwork only. It stops hardcoding English so that a
language can be added later by dropping in one `po/<lang>.po` file, with no
code change. No real translation ships as part of it; the `qps`
pseudo-locale is what proves the machinery works.
-## Where we are
+## Starting point (original survey)
Every user-facing string is an English literal at its call site
(`"Cancel"`, `"Forget Device"`, `"Delete {s}?"` through `std.fmt.allocPrint`).
@@ -225,7 +228,7 @@ Document how to add a language in the wiki (`docs/wiki`), `README.md` and
**Later, not part of this plan: adding actual languages.**
Each one is a `.po` file plus a check of fonts and fallback metrics on real
text. A language whose plural rules are not yet in the table needs one
-function and a test.
+function and a test. Planned in [languages.md](languages.md).
## Phase 0 results
diff --git a/docs/plans/languages.md b/docs/plans/languages.md
new file mode 100644
index 0000000..6219862
--- /dev/null
+++ b/docs/plans/languages.md
@@ -0,0 +1,379 @@
+# Plan: shipping UI languages
+
+Status: implementation and draft catalogs, 2026-10-20. L0 and the i18n
+prerequisites are implemented; all five catalogs are machine drafts. Native
+review and approval of the screenshot findings remain release gates. See
+[po/README.md](../../po/README.md) for the glossary and review status.
+
+Scope: ship real translations of RediWM's own UI for the common languages,
+for now Spanish, Brazilian Portuguese, German, French and Russian. It builds on [i18n.md](i18n.md), which provides the
+machinery (`i18n` module, `tr`/`trc`/`trn`/`fmt`, `.po` catalogs, `qps`
+pseudo-locale, extraction and checks) and ends where this plan starts: "adding
+actual languages". This plan covers what a language needs beyond a `.po`
+file, the order to ship them in, and how a translation is judged ready.
+
+## Where we are
+
+* `src/i18n`, `tools/i18n.zig`, the PO template and five catalogs now exist.
+ The shell, Control Center and app clients use the compiled lookup API.
+ Draft entries remain fuzzy and fall back to English until reviewed.
+* The original survey estimated about 1,000 strings. The implemented
+ template contains 1,879 messages, including app clients, keybinding
+ descriptions and Control Center search keywords; `i18n-check` reports
+ current coverage.
+* Dead keys and compose work in every text field since 2026-10-08
+ (`ui/compose.zig`, `tests/dead_keys.py`).
+* **Fonts are not a blocker for the first languages.** Bundled Manrope
+ (`assets/fonts/Manrope-VariableFont_wght.ttf`) has every letter of German,
+ French, Spanish, Portuguese, Italian, Polish, Czech, Turkish, Romanian,
+ Russian, Ukrainian, Greek and Vietnamese, plus `…`, `–`, `—`, curly quotes,
+ U+00A0 and U+2011. It lacks **U+202F** (narrow no-break space, which French
+ typesetting puts before `;:!?` and inside `« »`). This machine has no CJK
+ font installed (`fc-list :lang=ja` is empty).
+
+The following pre-implementation findings motivated L0. Their code excerpts
+and line references describe the original state; the implementation record
+below records the fixes and remaining review gates:
+
+* **Case-insensitive matching is ASCII-only.** Start menu search lowercases
+ with `std.ascii.lowerString` (`start_menu/search.zig:91,143`), Control
+ Center search uses `std.ascii.eqlIgnoreCase` (`control_center/search_index.zig:147,164`),
+ and the Files filter uses `std.ascii.indexOfIgnoreCase`
+ (`files/app_listing.zig:280`). Typing `терм` does not find `Терминал`, and
+ `camara` does not find `Cámara`.
+* **Files sorts names by raw bytes.** `lessThan` ends in
+ `std.mem.order(u8, a.text(), b.text())` (`files/app_listing.zig:306`), so it
+ is case-sensitive (`Zebra` before `apple`), and `Äpfel`, `Élan` and every
+ Cyrillic name sort after `z`. `files/worker.zig:627` and
+ `files/associations.zig:169` use `std.ascii.lessThanIgnoreCase`, which
+ only folds ASCII.
+* **The calendar is English regardless of locale.** Month names are a
+ literal array (`calendar.zig:192`), and the date heading is
+ `strftime("%A, %B %-d, %Y")` in the compositor's C locale
+ (`calendar.zig:148`). The taskbar clock already formats with a private
+ `locale_t` for `[region] formats` (`taskbar/clock.zig:42`).
+* **Two more places read the process locale, not `[region] language`:**
+ besides the start menu's `Locale.fromEnv` (i18n.md Phase 0), the polkit
+ agent registers with `LC_ALL`/`LC_MESSAGES`/`LANG` from its own
+ environment (`polkit/agent.zig:83`). polkitd localises the action
+ message from that, so a German UI would still show the English polkit
+ message.
+* **The language picker lists only installed glibc locales** (`locale -a`,
+ filtered through `newlocale`, `control_center/sections/region.zig:116`),
+ labelled with glibc's English language name (`localeLabel`). On Arch-family
+ systems a language nobody uncommented in `/etc/locale.gen` cannot be
+ chosen, and nothing shows which languages RediWM itself is translated
+ into.
+* **Widget text is single-line and ellipsized** (`ui/text.zig`
+ `fitWithEllipsis`); the few hand-wrapped paragraphs break at ASCII spaces
+ only (`control_center/sections/printers.zig` `wrapLabels`). That is fine
+ for every language in this plan, but German compounds have no space to
+ break at, so long ones will ellipsize where English wrapped.
+* **Keyboard shortcuts with a Cyrillic layout.** `config/keymap.zig`
+ `bindingSyms` falls back to layout 0's keysyms when the active layout
+ matches no binding, so the usual `us,ru` setup keeps Super+letter
+ shortcuts. A keymap with only `ru` (or `ua`) has no Latin layout to fall
+ back to, so letter bindings never match. Needs checking in a nested session
+ before Russian ships.
+
+## Goals and non-goals
+
+Goals:
+
+* Five languages that read as written by a native speaker, not as a word
+ substitution, on every surface RediWM draws: shell, Control Center, lock
+ screen, polkit dialog, greeter, Files, Images, PDF, Editor, share picker.
+* Search, sorting and dates behave correctly in those languages.
+* A repeatable per-language process, so the ninth language costs only
+ translation and review.
+* No cost for English and no per-frame cost (i18n.md goals stand).
+
+Non-goals:
+
+* **CJK (Chinese, Japanese, Korean).** Displaying them needs a fallback font
+ dependency (none is bundled) and line breaking without spaces; using them
+ needs an input method in the shell's own fields, which does not exist
+ (i18n.md Phase 0). A separate plan if wanted.
+* **Right-to-left languages**, as in i18n.md.
+* Translating the wiki, `README.md`, man pages, IPC, logs or `rediwm-msg`
+ output.
+* Translating text from other programs (NetworkManager, bluez, logind
+ errors, notification bodies).
+
+## Languages
+
+| Language | Catalog | Resolves from | Plural family | Length vs English |
+|---|---|---|---|---|
+| Spanish | `es` | `es_*` | one (n=1) / other | +15–30% |
+| Brazilian Portuguese | `pt_BR` | `pt_BR`, `pt` | one (0, 1) / other | +15–30% |
+| German | `de` | `de_*` | one (n=1) / other | +30–35% |
+| French | `fr` | `fr_*` | one (0, 1) / other | +15–25% |
+| Russian | `ru` | `ru_*` | one / few / many | +20–30% |
+
+Later, only on request or when a contributor offers: Italian (`it`),
+Ukrainian (`uk`), Polish (`pl`), Dutch (`nl`), Turkish (`tr`), Czech (`cs`),
+Swedish (`sv`), Romanian (`ro`). The fonts already cover them.
+
+Plural rules needed in the i18n.md rule table (CLDR, integer counts only):
+
+* **one/other, n = 1**: `es`, `de`. CLDR's `many` for exact millions in
+ `es` is ignored, as i18n.md decided.
+* **one/other, n = 0 or 1**: `fr`, `pt_BR`.
+* **East Slavic** (`ru`): one if `n%10 == 1 and n%100 != 11`; few if
+ `n%10` is 2–4 and `n%100` is not 12–14; else many.
+
+Later languages reuse these (`it`, `nl`, `sv`, `tr` are n = 1; `uk` is East
+Slavic) or add one function each (Polish: few as East Slavic but 21 is
+"many"; Czech: one/few/other).
+
+Notes per language, for the glossary and review:
+
+* **German.** Long compounds ("Bildschirmsperre", "Tastenkombinationen")
+ stress fixed widths more than the `qps` expansion does, because they
+ ellipsize as one unit. Formal "Sie" or informal "du" is a decision (D3).
+* **French.** Space before `:;!?` and inside `« »`. Catalogs use U+00A0
+ (Manrope has it); `i18n-check` rewrites or rejects U+202F, which would fall
+ back to another font. Infinitive for buttons ("Annuler", "Enregistrer").
+* **Spanish, Portuguese.** As in i18n.md: neutral `es` (no voseo), `pt_BR`
+ serves `pt` until a `pt_PT` catalog exists.
+* **Russian.** Three plural forms, so every count string must be `trn`
+ (i18n.md Phase 3/4 converts the `if (n == 1) "" else "s"` sites). Search
+ folds `ё` to `е`.
+* **Turkish** (later). Dotted/dotless i: case folding must map `I`↔`ı` and
+ `İ`↔`i` when the UI language is Turkish, and the ASCII mapping otherwise.
+
+## Design
+
+### Search folding: `ui/fold.zig`
+
+A small allocation-free fold for matching, used by the start menu, Control
+Center search, the Files filter and any other substring search:
+
+* Simple Unicode case folding plus diacritic removal for Latin (Latin-1
+ Supplement, Extended-A/B), Greek and Cyrillic, writing into a caller
+ buffer. Extras that decomposition misses: `ł`→`l`, `ø`→`o`, `ß`→`ss`,
+ `ё`→`е`, `æ`→`ae`, `œ`→`oe`. Other scripts pass through unchanged.
+* Tables generated at build time from the Unicode data files by a
+ `tools/` program, checked in (a few KiB), so the build needs no network.
+* Turkish rules only when the resolved UI language is `tr`.
+* The query and every candidate go through the same fold, so `camara`,
+ `Cámara` and `CÁMARA` all match `Cámara`, and highlighting maps folded
+ offsets back to the original text.
+
+Control Center search entries get translated titles and keywords through
+`tr`. The English keywords stay searchable as well, because users copy
+setting names from English guides.
+
+### Sorting names in Files
+
+Names sort by the collation of `[region] formats` (`LC_COLLATE`), with a
+`newlocale(LC_COLLATE_MASK, ...)` owned by the worker, never `setlocale`
+(as `region.zig` already does for numbers). glibc then gets `Äpfel` beside
+`Apfel` in German and `ё` after `е` in Russian. Keep the folders-first rule
+and the existing size and date orders. Measure a 100,000-entry folder
+before and after; if `strcoll_l` is too slow, precompute `strxfrm_l` keys
+once per listing. Natural number order ("file2" before "file10") is a
+separate question and not part of this.
+
+### Dates and calendar
+
+The calendar takes month and weekday names from the `[region] formats`
+locale (`nl_langinfo_l(MON_1…, ABDAY_1…)`) through the same private
+`locale_t` pattern as `taskbar/clock.zig`, and drops the `months` array. The
+long heading pattern (`"%A, %B %-d, %Y"`) becomes a `trc("date", ...)` string,
+so each catalog supplies its word order ("%A, %-d de %B de %Y") while the
+names follow `formats`. Files' modified column already uses a fixed ISO date
+and `prefs.timeFormat()`; leave it.
+
+### One resolver for every locale consumer
+
+The shared resolver from i18n.md replaces the polkit agent's environment
+lookup and the start menu's `Locale.fromEnv`, so the polkit action message,
+desktop-entry `Name[xx]` and RediWM's own text all follow
+`[region] language`. A language change re-registers the polkit agent.
+
+### Language picker
+
+The Region section's Language list:
+
+* Shows each language in its own name ("Deutsch", "Русский", "Español"),
+ from a small table compiled with the catalogs, with the glibc name as a
+ subtitle.
+* Lists languages RediWM is translated into first, then the other installed
+ locales with "RediWM stays in English" next to them.
+* Offers a translated language even when its glibc locale is not generated,
+ with a hint on how to enable it (D4). The UI catalog does not need the glibc
+ locale, but apps launched with that `LANG` and the calendar names do.
+
+### Our own data files
+
+* `data/*.desktop` (Files, Editor, Images, PDF, Monitor, Theme, Transfers
+ and the session entries): `Name[xx]`, `GenericName[xx]`, `Comment[xx]`,
+ `Keywords[xx]` generated from the same `.po` files at build time by
+ `tools/i18n.zig`, so translators touch one file.
+* `data/org.rediwm.accounts.policy`: `<message xml:lang="xx">` entries
+ generated the same way; polkitd picks them using the locale the agent
+ registered.
+
+### Translation workflow
+
+* **Glossary.** `po/README.md` holds the contributor guide and, per
+ language, about 60 fixed terms (window, workspace, dock, taskbar, tile,
+ lock screen, Control Center, Files, …) plus tone (formal or informal
+ address, button mood). Product names ("RediWM") are never translated; the
+ app names "Files", "Images", "Editor" are translated as ordinary words
+ (D5).
+* **Drafting and review** follow D1. A string marked `#, fuzzy` is never
+ shown, so an unreviewed draft falls back to English.
+* **Screenshots for reviewers.** `scripts/i18n-screens.py <lang>` starts a
+ headless session with `[region] language` set (scratch `XDG_STATE_HOME`),
+ walks every panel, Control Center section, dialog and app window, and
+ writes IPC screenshots to one folder. Reviewers judge text in place
+ without building RediWM, and the same walk asserts
+ `text_width <= box.w` (the field i18n.md Phase 1 adds) for every labelled
+ widget in that language.
+* **Context for translators.** `trc` contexts and `// i18n:` comments above
+ ambiguous strings are extracted into the `.pot` as `#.` notes ("Open" the
+ verb vs. "Open" the state).
+
+### When a language ships
+
+A catalog is listed as translated in the picker only when:
+
+1. `zig build i18n-check` passes (no stale entries, placeholders and plural
+ counts match).
+2. Every string of the shell, Control Center, lock screen, polkit dialog and
+ greeter is translated and not fuzzy. App clients may lag; missing
+ strings fall back to English.
+3. The screenshot walk passes the overflow assertion, and every ellipsized
+ label has been looked at and either shortened in the catalog or given room
+ in the layout.
+4. A native speaker has reviewed the screenshots (D1). The status table
+ in `po/README.md` records each language's coverage and review state.
+
+Below that bar a catalog is still compiled in and can be chosen through the
+config key, so contributors can test it, but the picker marks it
+"incomplete".
+
+## Phases
+
+**L0: language correctness, independent of catalogs.** Can start now, in
+parallel with i18n.md Phase 1, and fixes behaviour English users with
+non-English names already hit. `ui/fold.zig` and its use in start menu,
+Control Center and Files search; Files collation; calendar names from
+`formats`; polkit agent and start menu on the shared resolver (or, before
+the resolver exists, on `[region] language` directly). Check Super+letter
+bindings with a `ru`-only keymap in a nested session and fix if needed.
+Unit tests for folding and collation order (`zig build test`); extend
+`tests/calendar_popup.py` with a German `formats`.
+
+**L1: first catalogs, Spanish and Brazilian Portuguese.** Needs i18n.md
+Phases 1–3. Plural families for the five languages in the rule table; `po/README.md`
+with glossary and status table; `scripts/i18n-screens.py`; desktop file and
+polkit policy generation; the language picker. Ship `es` and `pt_BR` through
+the bar above. These two come first because they were already the intended
+first languages and need the fewest new rules.
+
+**L2: German and French.** Latin script, the longest strings. Expect
+layout fixes from German that the `qps` pass missed (single long words);
+add a long-unbroken-word variant to the `qps` generator if it finds real
+problems. French space handling in `i18n-check`.
+
+**L3: Russian.** The three-form plural family gets its first real use: run `i18n-check` and review every `trn` string with the
+reviewer, since a missing `few` form is invisible in English. Cyrillic
+search and sorting were fixed in L0; check them again with the real
+catalog.
+
+**L4: app clients catch up.** As i18n.md Phase 4 converts Files, Images,
+PDF, Editor and the share picker, each catalog gains those strings. A
+language is "complete" when the apps are too.
+
+**L5: more languages on request.** Each one is a `.po`, a glossary section, a
+review and, for Turkish, the folding special case.
+
+## Testing
+
+* `zig build test`: plural rules for every family above with the CLDR
+ example numbers (ru: 1, 2, 5, 11, 12, 21, 22, 25, 111;
+ fr/pt_BR: 0, 1, 2); fold tables (case, diacritics, the extra
+ letters, Turkish); collation of a mixed name list under `de_DE`,
+ `ru_RU` and `C`.
+* Integration: the screenshot walk in every shipped language runs the
+ overflow assertion; `tests/dead_keys.py` gains a German (`de` nodeadkeys
+ vs. deadkeys) and a French layout case; existing English suites stay
+ unchanged.
+* Before calling a language done: build Debug and ReleaseSafe, check
+ ReleaseSafe binary size against the catalog estimate from i18n.md
+ Phase 1, and confirm no test hook leaked (`strings`).
+
+## Risks
+
+* **Translation quality.** A fluent-looking but wrong translation is worse
+ than English, especially in the lock screen, polkit and power dialogs,
+ where a mistranslated button can mislead the user into the wrong action.
+ The review gate and in-place screenshots are the mitigation; security
+ dialogs get a second look.
+* **Drift.** Every English change marks strings fuzzy in all five
+ catalogs. With five languages, a UI-heavy commit can drop several below
+ the "translated" bar. The status table makes that visible; i18n-check does
+ not fail the build for fuzzy entries, only for structural errors.
+* **Reviewer availability.** Native reviewers for five languages may not be
+ found at once. Shipping order lets the first languages proceed while
+ others wait as "incomplete".
+* **Width.** German and Russian strings may need layout changes in places
+ the `qps` pass judged fine; L2 budgets time for that.
+* **Distribution of locales.** On Arch-family systems the glibc locale must be
+ generated; without it apps launched from RediWM stay in English while
+ RediWM itself is translated. D4 decides how much RediWM helps.
+
+## Decisions
+
+1. **D1: who translates.** (a) Only native-speaker contributions by pull
+ request, as i18n.md decided; slow, possibly years for five languages.
+ (b) Machine-drafted catalogs (Claude), committed as `#, fuzzy` and so
+ never shown, then reviewed and un-fuzzied by a native speaker using the
+ screenshot walk. **Recommended: (b)**: it keeps i18n.md's
+ contribution-by-PR model, and reviewers correct a draft in place
+ instead of starting from 1,000 empty strings.
+2. **D2: first languages.** Decided 2026-10-20: Spanish, Brazilian
+ Portuguese, German, French and Russian, in the order L1–L3. Others wait
+ for a request or a contributor.
+3. **D3: German and other formal/informal address.** Recommended: informal
+ "du" for German (confirm with the reviewer), "vous" for
+ French, "tú" for Spanish, "você" for Portuguese, "вы" for Russian; recorded in the glossary.
+4. **D4: uninstalled locales.** (a) Show translated languages with a
+ distro-neutral hint ("Enable `de_DE.UTF-8` in your system's locale
+ settings"). (b) Enable the locale through the accounts helper
+ (`/etc/locale.gen` + `locale-gen` on Arch, `locale-gen` package on
+ Debian, langpacks on Fedora): distro-specific root code. **Recommended:
+ (a)** for now; revisit with the printers-style failure ladder if users
+ ask.
+5. **D5: app names.** Recommended: translate "Files", "Images", "Editor",
+ "Control Center" as ordinary words (Dateien, Imágenes, Редактор), keep
+ "RediWM" as is. Alternative: keep all as brand names, which reads oddly
+ next to translated menus.
+6. **D6: search keywords in two languages.** Recommended: translated
+ keywords plus the English ones in Control Center search, as above.
+ Alternative: translated only, smaller index, but English guides stop
+ working as search terms.
+
+## Implementation record (2026-10-20)
+
+L0 uses generated Unicode folding (with original byte ranges for highlights),
+worker-owned collation keys, private calendar locales and the shared language
+resolver. The start-menu cache rescans on language changes. Polkit registration
+changes after outstanding authentication requests finish. Cyrillic-only
+keymaps retain modifier-letter shortcuts without changing client text.
+
+L1–L4 have the catalog/compiler/extraction/check/lint infrastructure, named
+formatting and plural rules, five complete fuzzy drafts, catalog-aware language
+picker, generated desktop/polkit metadata, and the isolated screenshot/review
+walk. Layout changes give navigation and buttons room and wrap Region
+paragraphs, including long words. No catalog is declared native-reviewed.
+The screenshot and manual security-screen review gates still apply; app captures
+need visual review because client apps do not expose shell widget measurements.
+
+Implementation uses D1(b), D3's proposed tones, D4(a), D5 translated app names
+and D6 bilingual search keywords. D2 is unchanged. These are drafting defaults
+for native reviewers, not claims that linguistic review has happened. L5 remains
+future work on request. The source of current message counts is `i18n-check`.
diff --git a/docs/wiki/Home.md b/docs/wiki/Home.md
index 32a9289..c5e05cf 100644
--- a/docs/wiki/Home.md
+++ b/docs/wiki/Home.md
@@ -9,6 +9,7 @@ no waybar/greeter/launcher/notification daemon to wire up.
- [Getting Started](Getting-Started.md): build, install, recover a stuck session
- [Using RediWM](Using-RediWM.md): keybinds, mouse, zoom, tabs, tiling
- [Configuration](Configuration.md): the config file, window rules, sandbox allowances
+- [Languages](Languages.md): locale settings, translation drafts and contributing a catalog
- [IPC](IPC.md): the socket, the wire format, events, waiting, automation
- [IPC Commands](IPC-Commands.md): every command, grouped
- [rediwm-msg](rediwm-msg.md): the CLI, with copy-paste recipes
diff --git a/docs/wiki/Languages.md b/docs/wiki/Languages.md
new file mode 100644
index 0000000..0df05ec
--- /dev/null
+++ b/docs/wiki/Languages.md
@@ -0,0 +1,30 @@
+# Languages
+
+Set `[region] language` for RediWM and newly launched apps, and `[region]
+formats` for dates and filename collation. Settings → Region & Language lists
+catalog languages in their own names, including languages whose system locale
+has not yet been generated. Its hint explains which locale to enable for other
+apps. Existing app windows use their launch language until reopened.
+
+Spanish, Brazilian Portuguese, German, French and Russian currently have
+complete machine drafts. All entries are fuzzy and fall back to English until
+native review; the picker marks these catalogs incomplete. This does not mark
+those languages as released or reviewed.
+
+To contribute a new language, copy `po/rediwm.pot` to `po/<tag>.po`, add its
+Language/native-name/locale headers, and translate with a PO editor. Preserve
+contexts, named placeholders and plural forms. Run:
+
+```sh
+zig build i18n-extract
+zig build i18n-check i18n-lint
+zig build
+python3 scripts/i18n-screens.py qps --out /tmp/rediwm-qps-review
+```
+
+The build discovers PO files automatically and generates both UI catalogs and
+localized desktop/polkit metadata. Use `qps` to stress expanded labels; review
+actual translations and security screens before removing fuzzy flags. The
+[translation guide](../../po/README.md) contains the glossary, plural examples,
+review process and current status. Tests and screenshot options are described
+in [TESTING.md](../../TESTING.md#languages-and-locale-correctness).
diff --git a/docs/wiki/Theme.md b/docs/wiki/Theme.md
index d0a400e..f4dd85c 100644
--- a/docs/wiki/Theme.md
+++ b/docs/wiki/Theme.md
@@ -39,8 +39,9 @@ apply again after selecting or editing a theme, then restart the apps.
GTK colors are written to `gtk-3.0/rediwm-colors.css` and
`gtk-4.0/rediwm-colors.css` under `$XDG_CONFIG_HOME` (otherwise `~/.config`).
-A marked import is added to each `gtk.css`, preserving existing rules and
-their precedence. GTK3 includes common widget color overrides; GTK4 also
+A marked import is added at the *end* of each `gtk.css`, so it wins over palettes
+imported there by other generators (matugen, DMS) while the rest of the file is
+preserved. Applying again moves an older block that sits first. GTK3 includes common widget color overrides; GTK4 also
gets the CSS variables used by recent libadwaita. No theme package is patched
and the dark-mode preference is never briefly flipped to force a refresh.
@@ -50,6 +51,11 @@ and the palette-aware Fusion style. Other preferences are preserved.
RediWM launches receive the selected platform theme and style immediately;
sign in again to update the environment for apps activated by D-Bus or
launched elsewhere. This opt-in is recorded in `rediwm/app-colors.conf`.
+KDE apps such as Dolphin read `kdeglobals` rather than the qt6ct palette, so
+the Qt export also rewrites the `[Colors:*]` groups there (Window, View,
+Button, Selection, Tooltip, Complementary, Header). Other keys are kept, and
+the first copy is saved as `kdeglobals.rediwm-backup`. The file is shared with
+any Plasma session, which will see the same palette.
Bundled Qt runtimes, sandboxed apps, and apps with their own styles may need
their own configuration.
@@ -61,7 +67,7 @@ contents plus the RediWM block; the link target is not modified. A config
*folder* that is a symlink is refused and reported in Settings. To undo GTK colors,
remove the marked RediWM import blocks from both `gtk.css` files (or restore
their backups). To undo Qt colors, restore the qt5ct/qt6ct configuration
-backups (or delete configurations created by the export if no backup exists),
+and `kdeglobals` backups (or delete configurations created by the export if no backup exists),
remove `rediwm/app-colors.conf`, and sign in again.
## Color tokens
diff --git a/po/README.md b/po/README.md
new file mode 100644
index 0000000..a435194
--- /dev/null
+++ b/po/README.md
@@ -0,0 +1,164 @@
+# Translating RediWM
+
+RediWM uses English source messages and compiled PO catalogs. The initial
+languages are Spanish (`es`), Brazilian Portuguese (`pt_BR`), German (`de`),
+French (`fr`) and Russian (`ru`). `pt` falls back to `pt_BR`; regional tags
+fall back to their language. English and unknown languages use the source text.
+`qps` is an expanded pseudo-language for layout testing, hidden from the picker.
+
+## Status and review
+
+All five initial catalogs are **machine drafts that have not had native-speaker
+review**. The maintainer removed the `fuzzy` flags on 2026-10-22, so every
+translated entry now reaches the UI, installed desktop files and polkit policy.
+The picker lists each catalog language by name with no status suffix, and
+choosing one applies it immediately. Untranslated messages still show English.
+
+| Catalog | Native name | Address | Review status |
+| --- | --- | --- | --- |
+| es | Español | tú; neutral vocabulary, no voseo | Draft; native and screenshot review pending |
+| pt_BR | Português (Brasil) | você | Draft; native and screenshot review pending |
+| de | Deutsch | du | Draft; native and screenshot review pending |
+| fr | Français | vous; infinitive button labels | Draft; native and screenshot review pending |
+| ru | Русский | вы | Draft; native and screenshot review pending |
+
+Run `zig build i18n-check` for current coverage. The picker lists catalog
+languages even without a generated system locale. A native reviewer should
+re-add `fuzzy` to any entry they find wrong. Set `X-RediWM-Reviewed: yes` only
+after the whole catalog, screenshots, and the manual security-dialog checklist
+have been reviewed, and record the reviewer's name, date and revision here. No
+such review has happened yet.
+
+The UI catalog needs no installed glibc locale. Dates, sorting and other apps
+may need one: enable the suggested `xx_XX.UTF-8` locale in the distribution's
+locale settings. RediWM does not edit system locale files or run privileged
+locale-generation commands.
+
+## Workflow
+
+1. Run `zig build i18n-extract` after changing user-facing source strings.
+2. Translate `po/<tag>.po` with a PO editor. Preserve `msgctxt`, English
+ `msgid`, named `{placeholders}`, strftime directives in the `date` context,
+ and desktop-entry keyword semicolons. Put draft translations behind `fuzzy`.
+3. Run `zig build i18n-check` and `zig build i18n-lint`. The checker rejects
+ stale IDs, placeholder mismatches, malformed plurals and French U+202F.
+ Use U+00A0, the no-break space supported by the bundled font, in French.
+4. Build with `zig build`. Select `[region] language = "<tag>"` in a scratch
+ configuration. For draft review, remove `fuzzy` in a separate local review
+ copy; do not silently publish that copy as reviewed.
+5. Run `python3 scripts/i18n-screens.py <tag> --out /tmp/rediwm-<tag>-review`.
+ It starts an isolated headless session, captures the shell, Settings and
+ apps, and writes a review report of text wider than its widget. Inspect
+ ellipsized labels, long unbroken words and dialogs at normal and fractional
+ scale. Run the same walk for `qps` after UI changes.
+6. Review lock, greeter and authentication screens through the existing
+ isolated lock/polkit fixtures and a test login. Production policy deliberately
+ denies pixel-reading IPC while locked; the screenshot walk does not bypass
+ it. Security buttons need a second review for meaning and action.
+7. Build Debug and ReleaseSafe, run `zig build test`, `python3 tests/i18n.py`,
+ and affected integration suites. Submit the PO and review record in a PR.
+
+New catalogs may supply `X-RediWM-Native-Name`, `X-RediWM-Locale` and
+`X-RediWM-Reviewed` headers. The build discovers `.po` files automatically.
+A new plural family needs a rule in `src/i18n/mod.zig` and the matching compiler
+validation in `tools/i18n.zig`; add examples to the tests. Review metadata is
+not evidence by itself: link the actual review in this document.
+
+## Source conventions
+
+Use `i18n.tr("Cancel")`, `trc("menu", "Open")` or
+`trn("{n} item", "{n} items", n)`. `i18n.fmt`/`allocPrint` substitute named
+arguments and allow reordering. Preformat numbers when precision or units need
+special handling. `fmtZ` and `trZ` serve APIs requiring a trailing NUL.
+`i18n.msg("Label")` stores a prehashed message in a static descriptor;
+`.get()` resolves it when building UI. Never retain a slice to a local array
+of runtime translations in a widget tree.
+
+Widget names, IPC/config keys, filesystem names, commands, MIME values,
+logs and external messages are not translated. Add `// i18n:` comments above
+ambiguous UI messages; they are copied to the template. `po/lint-files` lists
+files checked for untranslated UI literals; `// i18n: raw` documents an
+intentional exception. Broaden that list with each reviewed conversion.
+
+Catalog lookup never reads files, changes the process locale, allocates,
+hashes a source string at runtime, or starts a timer. Language reload rebuilds
+shell UI; app clients resolve the launch environment and change on relaunch.
+Root helpers keep returning codes, with wording owned by the unprivileged UI.
+
+## Working glossary
+
+These terms are a starting point for reviewers. Keep RediWM and protocol/
+product names intact; translate app names as ordinary words. Prefer a short,
+clear label over a literal English construction.
+
+| English | es | pt_BR | de | fr | ru |
+| --- | --- | --- | --- | --- | --- |
+| Window | Ventana | Janela | Fenster | Fenêtre | Окно |
+| Workspace | Espacio de trabajo | Área de trabalho | Arbeitsfläche | Espace de travail | Рабочее пространство |
+| Desktop | Escritorio | Área de trabalho | Schreibtisch | Bureau | Рабочий стол |
+| Dock | Dock | Dock | Dock | Dock | Док |
+| Taskbar | Barra de tareas | Barra de tarefas | Taskleiste | Barre des tâches | Панель задач |
+| Tile | Mosaico | Lado a lado | Kachel | Mosaïque | Плитка |
+| Lock screen | Pantalla de bloqueo | Tela de bloqueio | Sperrbildschirm | Écran de verrouillage | Экран блокировки |
+| Control Center | Centro de control | Central de configurações | Kontrollzentrum | Centre de contrôle | Центр управления |
+| Settings | Configuración | Configurações | Einstellungen | Paramètres | Настройки |
+| Files | Archivos | Arquivos | Dateien | Fichiers | Файлы |
+| Images | Imágenes | Imagens | Bilder | Images | Изображения |
+| Editor | Editor | Editor | Editor | Éditeur | Редактор |
+| Calculator | Calculadora | Calculadora | Rechner | Calculatrice | Калькулятор |
+| System Monitor | Monitor del sistema | Monitor do sistema | Systemmonitor | Moniteur système | Системный монитор |
+| Transfers | Transferencias | Transferências | Übertragungen | Transferts | Передачи |
+| File | Archivo | Arquivo | Datei | Fichier | Файл |
+| Folder | Carpeta | Pasta | Ordner | Dossier | Папка |
+| Home | Carpeta personal | Pasta pessoal | Persönlicher Ordner | Dossier personnel | Домашняя папка |
+| Trash | Papelera | Lixeira | Papierkorb | Corbeille | Корзина |
+| Open | Abrir | Abrir | Öffnen | Ouvrir | Открыть |
+| Close | Cerrar | Fechar | Schließen | Fermer | Закрыть |
+| Save | Guardar | Salvar | Speichern | Enregistrer | Сохранить |
+| Save As | Guardar como | Salvar como | Speichern unter | Enregistrer sous | Сохранить как |
+| Cancel | Cancelar | Cancelar | Abbrechen | Annuler | Отмена |
+| Apply | Aplicar | Aplicar | Anwenden | Appliquer | Применить |
+| Delete | Eliminar | Excluir | Löschen | Supprimer | Удалить |
+| Remove | Quitar | Remover | Entfernen | Retirer | Убрать |
+| Discard | Descartar | Descartar | Verwerfen | Abandonner | Отбросить |
+| Rename | Cambiar nombre | Renomear | Umbenennen | Renommer | Переименовать |
+| Copy | Copiar | Copiar | Kopieren | Copier | Копировать |
+| Cut | Cortar | Recortar | Ausschneiden | Couper | Вырезать |
+| Paste | Pegar | Colar | Einfügen | Coller | Вставить |
+| Undo | Deshacer | Desfazer | Rückgängig | Annuler l’action | Отменить действие |
+| Search | Buscar | Pesquisar | Suchen | Rechercher | Поиск |
+| Filter | Filtrar | Filtrar | Filtern | Filtrer | Фильтр |
+| Sort | Ordenar | Ordenar | Sortieren | Trier | Сортировка |
+| Name | Nombre | Nome | Name | Nom | Имя |
+| Size | Tamaño | Tamanho | Größe | Taille | Размер |
+| Modified | Modificado | Modificado | Geändert | Modifié | Изменён |
+| Properties | Propiedades | Propriedades | Eigenschaften | Propriétés | Свойства |
+| Permissions | Permisos | Permissões | Berechtigungen | Permissions | Права доступа |
+| User | Usuario | Usuário | Benutzer | Utilisateur | Пользователь |
+| Password | Contraseña | Senha | Passwort | Mot de passe | Пароль |
+| Authenticate | Autenticar | Autenticar | Authentifizieren | S’authentifier | Подтвердить личность |
+| Lock | Bloquear | Bloquear | Sperren | Verrouiller | Заблокировать |
+| Unlock | Desbloquear | Desbloquear | Entsperren | Déverrouiller | Разблокировать |
+| Log Out | Cerrar sesión | Sair da sessão | Abmelden | Fermer la session | Выйти из системы |
+| Restart | Reiniciar | Reiniciar | Neustarten | Redémarrer | Перезагрузить |
+| Suspend | Suspender | Suspender | Bereitschaft | Mettre en veille | Приостановить |
+| Power Off | Apagar | Desligar | Ausschalten | Éteindre | Выключить |
+| Network | Red | Rede | Netzwerk | Réseau | Сеть |
+| Connect | Conectar | Conectar | Verbinden | Connecter | Подключить |
+| Disconnect | Desconectar | Desconectar | Trennen | Déconnecter | Отключить |
+| Display | Pantalla | Tela | Bildschirm | Écran | Экран |
+| Sound | Sonido | Som | Klang | Son | Звук |
+| Volume | Volumen | Volume | Lautstärke | Volume | Громкость |
+| Keyboard | Teclado | Teclado | Tastatur | Clavier | Клавиатура |
+| Shortcut | Atajo de teclado | Atalho de teclado | Tastenkombination | Raccourci clavier | Сочетание клавиш |
+| Language | Idioma | Idioma | Sprache | Langue | Язык |
+| Region | Región | Região | Region | Région | Регион |
+| Time zone | Zona horaria | Fuso horário | Zeitzone | Fuseau horaire | Часовой пояс |
+| Printer | Impresora | Impressora | Drucker | Imprimante | Принтер |
+| Print | Imprimir | Imprimir | Drucken | Imprimer | Печать |
+| Queue | Cola | Fila | Warteschlange | File d’attente | Очередь |
+| Notifications | Notificaciones | Notificações | Benachrichtigungen | Notifications | Уведомления |
+
+Integer plural examples: `es`/`de`: 1 versus 0/2; `pt_BR`/`fr`: 0/1 versus
+2; `ru`: 1/21, 2/22, 5/11/12/25/111. Check each `trn` entry in all forms,
+especially Russian few. French uses U+00A0 before `:;!?` and within guillemets.
diff --git a/po/de.po b/po/de.po
new file mode 100644
index 0000000..95f4304
--- /dev/null
+++ b/po/de.po
@@ -0,0 +1,7577 @@
+# Deutsch translation draft for RediWM.
+# Machine-drafted; fuzzy flags removed by the maintainer, native review pending.
+# Native and screenshot/layout review are still required.
+msgid ""
+msgstr ""
+"Project-Id-Version: RediWM\n"
+"PO-Revision-Date: 2026-10-20 00:00+0000\n"
+"Last-Translator: Unreviewed machine draft\n"
+"Language-Team: German (native review pending)\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-RediWM-Native-Name: Deutsch\n"
+"X-RediWM-Locale: de_DE.UTF-8\n"
+"X-RediWM-Reviewed: no\n"
+
+#: src/system_monitor/app.zig
+msgid " · /proc unavailable"
+msgstr " · /proc nicht verfügbar"
+
+#: src/control_center/sections/printers.zig
+msgid " · Default"
+msgstr " · Standard"
+
+#: src/system_monitor/app.zig
+msgid " · List limited"
+msgstr " · Liste begrenzt"
+
+#: src/system_monitor/app.zig
+msgid " · Paused"
+msgstr " · Pausiert"
+
+#: src/system_monitor/app.zig
+msgid " · Some processes unavailable"
+msgstr " · Einige Prozesse nicht verfügbar"
+
+#: src/control_center/sections/printers.zig
+msgid " · System default"
+msgstr " · Systemstandard"
+
+#: src/control_center/sections/desktop.zig
+msgid "1 second"
+msgstr "1 Sekunde"
+
+#: src/control_center/sections/desktop.zig
+msgid "1.5 seconds"
+msgstr "1,5 Sekunden"
+
+#: src/control_center/welcome.zig
+msgid "100%"
+msgstr "100%"
+
+#: src/control_center/welcome.zig
+msgid "125%"
+msgstr "125%"
+
+#: src/control_center/welcome.zig
+msgid "150%"
+msgstr "150%"
+
+#: src/control_center/welcome.zig
+msgid "175%"
+msgstr "175%"
+
+#: src/control_center/sections/display.zig
+msgid "180°"
+msgstr "180°"
+
+#: src/control_center/sections/desktop.zig
+msgid "2 seconds"
+msgstr "2 Sekunden"
+
+#: src/control_center/welcome.zig
+msgid "200%"
+msgstr "200%"
+
+#: src/control_center/search_index.zig
+msgid "24-hour clock"
+msgstr "24-Stunden-Uhr"
+
+#: src/control_center/welcome.zig
+msgid "250%"
+msgstr "250%"
+
+#: src/control_center/sections/display.zig
+msgid "270°"
+msgstr "270°"
+
+#: src/control_center/sections/desktop.zig
+msgid "3 seconds"
+msgstr "3 Sekunden"
+
+#: src/control_center/welcome.zig
+msgid "300%"
+msgstr "300%"
+
+#: src/control_center/sections/desktop.zig
+msgid "5 seconds"
+msgstr "5 Sekunden"
+
+#: src/system_monitor/app.zig
+msgid "60 seconds"
+msgstr "60 Sekunden"
+
+#: src/control_center/sections/display.zig
+msgid "90°"
+msgstr "90°"
+
+#: src/printing/ladder.zig
+msgid "A USB character device is not applicable to this connection."
+msgstr "Ein USB-Zeichengerät ist für diese Verbindung nicht erforderlich."
+
+#: src/files/app_opening.zig
+msgid "A file operation is already running"
+msgstr "Ein Dateivorgang läuft bereits"
+
+#: src/files/app_chooser.zig
+msgid "A file with this name exists. Replace it?"
+msgstr "Eine Datei mit diesem Namen ist vorhanden. Ersetzen?"
+
+#: src/printing/ladder.zig
+msgid "A matched device-node path is a regular file or another wrong file type."
+msgstr "Ein passender Geräteknotenpfad ist eine reguläre Datei oder ein anderer falscher Dateityp."
+
+#: src/printing/ladder.zig
+msgid "A matching USB printer interface is attached."
+msgstr "Eine passende USB-Druckerschnittstelle ist angeschlossen."
+
+#: src/printing/ladder.zig
+msgid "A matching character device exists; backend access has not been tested."
+msgstr "Ein passendes Zeichengerät ist vorhanden; der Backend-Zugriff wurde nicht getestet."
+
+#: src/control_center/sections/printers.zig
+msgid "A printer with this queue name already exists. Choose another name."
+msgstr "Ein Drucker mit diesem Warteschlangennamen ist bereits vorhanden. Wähle einen anderen Namen."
+
+#: src/control_center/sections/printers.zig
+msgid "A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."
+msgstr "Eine Rohwarteschlange reicht Befehle unverändert durch; zum normalen PDF-Druck ist ein passender Treiber nötig."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."
+msgstr "Ein Konfigurationsordner des Toolkits ist ein symbolischer Link. Wende die Farben am tatsächlichen Speicherort an oder ersetze den Link durch einen normalen Ordner."
+
+#: src/control_center/sections/appearance.zig
+msgid "APPEARANCE"
+msgstr "DARSTELLUNG"
+
+#: src/printing/cups.zig
+msgid "Aborted"
+msgstr "Abgebrochen"
+
+#: src/control_center/sections/printers.zig
+msgid "Accept jobs"
+msgstr "Aufträge annehmen"
+
+#: src/control_center/sections/users.zig
+msgid "Account details · {name}"
+msgstr "Kontodetails · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Account settings are unlocked for this session."
+msgstr "Die Kontoeinstellungen sind für diese Sitzung entsperrt."
+
+#: src/control_center/sections/users.zig
+msgid "Account type"
+msgstr "Kontotyp"
+
+#: src/control_center/search_index.zig
+msgid "Accounts"
+msgstr "Konten"
+
+#: src/control_center/sections/services.zig
+msgid "Activated by: {name}"
+msgstr "Aktiviert von: {name}"
+
+#: src/files/open_with.zig
+msgid "Add Application Shortcut"
+msgstr "Anwendungsverknüpfung hinzufügen"
+
+#: src/desktop/app_actions.zig
+msgid "Add Application…"
+msgstr "Anwendung hinzufügen…"
+
+#: src/files/open_with.zig
+msgid "Add Shortcut"
+msgstr "Verknüpfung hinzufügen"
+
+#: src/control_center/sections/printers.zig
+msgid "Add a printer"
+msgstr "Drucker hinzufügen"
+
+#: src/files/app_model.zig
+msgid "Add to applications"
+msgstr "Zu Anwendungen hinzufügen"
+
+#: src/files/app_torrents.zig
+msgid "Add torrent…"
+msgstr "Torrent hinzufügen…"
+
+#: src/control_center/sections/users.zig
+msgid "Add user"
+msgstr "Benutzer hinzufügen"
+
+#: src/control_center/sections/users.zig
+msgid "Add user…"
+msgstr "Benutzer hinzufügen…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images"
+msgstr "Eigene Bilder hinzufügen"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images to {folder}"
+msgstr "Füge eigene Bilder zu {folder} hinzu"
+
+#: src/files/app_places.zig
+msgid "Added to Places"
+msgstr "Zu Orten hinzugefügt"
+
+#: src/files/worker.zig
+msgid "Added to applications. Keep the AppImage in its current location."
+msgstr "Zu Anwendungen hinzugefügt. Lass das AppImage an seinem aktuellen Speicherort."
+
+#: src/files/app_places.zig
+msgid "Added {value} items to Places"
+msgstr "{value} Objekte zu Orten hinzugefügt"
+
+#: src/files/app_places.zig
+msgid "Added {value} to Places"
+msgstr "{value} zu Orten hinzugefügt"
+
+#: src/files/app_opening.zig
+msgid "Adding to applications…"
+msgstr "Wird zu Anwendungen hinzugefügt…"
+
+#: src/network/manager.zig
+msgid "Additional setup required"
+msgstr "Weitere Einrichtung erforderlich"
+
+#: src/control_center/sections/printers.zig
+msgid "Address checks support IPP printers. Other connections can be tested with an explicit print after setup."
+msgstr "Adressprüfungen unterstützen IPP-Drucker. Andere Verbindungen lassen sich nach der Einrichtung mit einem ausdrücklich ausgelösten Druck testen."
+
+#: src/control_center/sections/users.zig
+msgid "Administrator"
+msgstr "Administrator"
+
+#: src/polkit/dialog.zig
+msgid "Administrator privileges are required to continue."
+msgstr "Zum Fortfahren sind Administratorrechte erforderlich."
+
+#: src/control_center/sections/services.zig
+msgid "All"
+msgstr "Alle"
+
+#: src/files/open_with.zig
+msgid "All Applications"
+msgstr "Alle Anwendungen"
+
+#: src/files/app_chooser.zig
+msgid "All files"
+msgstr "Alle Dateien"
+
+#: src/delete_dialog.zig
+msgid "All items in Trash"
+msgstr "Gesamter Papierkorbinhalt"
+
+#: src/system_monitor/app.zig
+msgid "All processes"
+msgstr "Alle Prozesse"
+
+#: src/desktop/app_actions.zig
+msgid "Allow Launching"
+msgstr "Start erlauben"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow connections from this device without asking."
+msgstr "Verbindungen dieses Geräts ohne Rückfrage zulassen."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow pairing with this device?"
+msgstr "Kopplung mit diesem Gerät erlauben?"
+
+#: src/files/app_places.zig
+msgid "Already in Places"
+msgstr "Bereits in Orten"
+
+#: src/files/open_with.zig
+msgid "Always use this app for this file type"
+msgstr "Diesen Dateityp immer mit dieser Anwendung öffnen"
+
+#: src/files/open_with.zig
+msgid "Always use this app for {value} files"
+msgstr "{value}-Dateien immer mit dieser Anwendung öffnen"
+
+#: src/files/app_opening.zig
+msgid "An application is already being added"
+msgstr "Eine Anwendung wird bereits hinzugefügt"
+
+#: src/control_center/sections/services.zig
+msgid "Analyze"
+msgstr "Analysieren"
+
+#: src/control_center/sections/services.zig
+msgid "Analyzing…"
+msgstr "Wird analysiert…"
+
+#: src/control_center/search_index.zig
+msgid "Animation speed"
+msgstr "Animationsgeschwindigkeit"
+
+#: src/control_center/search_index.zig
+msgid "Animations"
+msgstr "Animationen"
+
+#: src/session/power.zig
+msgid "Another power action is already in progress."
+msgstr "Eine andere Energieaktion läuft bereits."
+
+#: src/control_center/sections/appearance.zig
+msgid "App colors"
+msgstr "Anwendungsfarben"
+
+#: src/control_center/sections/sound.zig
+msgid "App streams"
+msgstr "Audioströme der Anwendungen"
+
+#: src/control_center/panel.zig
+msgid "Appearance"
+msgstr "Erscheinungsbild"
+
+#: src/files/appimage.zig
+msgid "Application added, but some file or link associations could not be registered"
+msgstr "Anwendung hinzugefügt, aber einige Datei- oder Linkzuordnungen konnten nicht registriert werden"
+
+#: src/start_menu/launch.zig
+msgid "Application could not be started"
+msgstr "Anwendung konnte nicht gestartet werden"
+
+#: src/control_center/search_index.zig
+msgid "Application language"
+msgstr "Anwendungssprache"
+
+#: src/start_menu/panel.zig
+msgid "Applications"
+msgstr "Anwendungen"
+
+#: src/control_center/sections/desktop.zig
+msgid "Applies to output edges and the space between automatic tiles."
+msgstr "Gilt für Bildschirmränder und die Abstände zwischen automatisch angeordneten Fenstern."
+
+#: src/images/app.zig
+msgid "Apply"
+msgstr "Anwenden"
+
+#: src/control_center/search_index.zig
+msgid "Apply GTK colors"
+msgstr "GTK-Farben anwenden"
+
+#: src/control_center/search_index.zig
+msgid "Apply Qt colors"
+msgstr "Qt-Farben anwenden"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply connection"
+msgstr "Verbindung anwenden"
+
+#: src/images/app.zig
+msgid "Apply crop"
+msgstr "Zuschnitt anwenden"
+
+#: src/images/app.zig
+msgid "Apply crop · Enter"
+msgstr "Zuschnitt anwenden · Eingabe"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply value"
+msgstr "Wert anwenden"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Applying app colors…"
+msgstr "Anwendungsfarben werden angewendet…"
+
+#: src/printing/admin.zig
+msgid "Applying printer change; authorization may be required…"
+msgstr "Druckeränderung wird angewendet; eine Autorisierung kann erforderlich sein…"
+
+#: src/start_menu/panel.zig
+msgid "Apps"
+msgstr "Apps"
+
+#: src/control_center/sections/appearance.zig
+msgid "Apps and web pages"
+msgstr "Anwendungen und Webseiten"
+
+#: src/files/archive.zig
+msgid "Archive contains an unsafe path"
+msgstr "Archiv enthält einen unsicheren Pfad"
+
+#: src/files/archive.zig
+msgid "Archive contains unsupported links or special files"
+msgstr "Archiv enthält nicht unterstützte Links oder Spezialdateien"
+
+#: src/files/archive.zig
+msgid "Archive has too many entries"
+msgstr "Archiv enthält zu viele Einträge"
+
+#: src/files/archive.zig
+msgid "Archive is corrupt or unsupported"
+msgstr "Archiv ist beschädigt oder wird nicht unterstützt"
+
+#: src/control_center/welcome.zig
+msgid "Arrange windows automatically."
+msgstr "Fenster automatisch anordnen."
+
+#: src/control_center/search_index.zig
+msgid "Arrangement"
+msgstr "Anordnung"
+
+#: src/control_center/panel.zig
+msgid "Arrangement, resolution, refresh rate and scaling."
+msgstr "Anordnung, Auflösung, Bildwiederholrate und Skalierung."
+
+#: src/control_center/sections/desktop.zig
+msgid "Assigned to the current output when first used."
+msgstr "Wird bei der ersten Verwendung dem aktuellen Bildschirm zugewiesen."
+
+#: src/control_center/sections/printers.zig
+msgid "Attached USB printers"
+msgstr "Angeschlossene USB-Drucker"
+
+#: src/polkit/dialog.zig
+msgid "Attempt {attempt} of 3"
+msgstr "Versuch {attempt} von 3"
+
+#: src/control_center/panel.zig
+msgid "Audio"
+msgstr "Audio"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio (A2DP) · High quality audio"
+msgstr "Audio (A2DP) · Hohe Klangqualität"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio Settings"
+msgstr "Audioeinstellungen"
+
+#: src/control_center/panel.zig
+msgid "Audio output"
+msgstr "Audioausgabe"
+
+#: src/control_center/search_index.zig
+msgid "Audio output device"
+msgstr "Audioausgabegerät"
+
+#: src/control_center/panel.zig
+msgid "Audio settings"
+msgstr "Audioeinstellungen"
+
+#: src/control_center/panel.zig
+msgid "Audio unavailable"
+msgstr "Audio nicht verfügbar"
+
+#: src/control_center/sections/printers.zig
+msgid "Authenticate"
+msgstr "Authentifizieren"
+
+#: src/printing/admin.zig
+msgid "Authenticating with CUPS…"
+msgstr "Authentifizierung bei CUPS…"
+
+#: src/polkit/dialog.zig
+msgid "Authenticating…"
+msgstr "Authentifizierung läuft…"
+
+#: src/polkit/dialog.zig
+msgid "Authentication"
+msgstr "Authentifizierung"
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed."
+msgstr "Authentifizierung fehlgeschlagen."
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed. Please try again."
+msgstr "Authentifizierung fehlgeschlagen. Versuche es erneut."
+
+#: src/polkit/dialog.zig
+msgid "Authentication required"
+msgstr "Authentifizierung erforderlich"
+
+#: src/polkit/dialog.zig
+msgid "Authentication service unavailable."
+msgstr "Authentifizierungsdienst nicht verfügbar."
+
+#: src/session/lock.zig
+msgid "Authentication unavailable. Try again."
+msgstr "Authentifizierung nicht verfügbar. Versuche es erneut."
+
+#: src/control_center/sections/users.zig
+msgid "Authentication was cancelled or denied."
+msgstr "Authentifizierung wurde abgebrochen oder verweigert."
+
+#: src/systemd.zig
+msgid "Authentication was cancelled or denied. Notify setting is unchanged."
+msgstr "Authentifizierung abgebrochen oder verweigert. Die Notify-Einstellung bleibt unverändert."
+
+#: src/control_center/sections/printers.zig
+msgid "Authorize printer administration"
+msgstr "Druckerverwaltung erlauben"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto"
+msgstr "Automatisch"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto-hide dock"
+msgstr "Dock automatisch ausblenden"
+
+#: src/network/popup.zig
+msgid "Auto-join this network"
+msgstr "Automatisch mit diesem Netzwerk verbinden"
+
+#: src/printing/options.zig
+msgid "Automatic"
+msgstr "Automatisch"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Automatic ($TERMINAL / Foot)"
+msgstr "Automatisch ($TERMINAL / Foot)"
+
+#: src/control_center/search_index.zig
+msgid "Automatic login"
+msgstr "Automatische Anmeldung"
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating."
+msgstr "Automatische Kacheln mit fester Ansicht und Tastenkürzeln im Hyprland-Stil. Ziehe Kacheln zum Anordnen; Super+V schaltet schwebende Fenster um."
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiling"
+msgstr "Automatische Kachelung"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Available Devices"
+msgstr "Verfügbare Geräte"
+
+#: src/files/app_torrents.zig
+msgid "Back"
+msgstr "Zurück"
+
+#: src/files/open_with.zig
+msgid "Back to recommended apps"
+msgstr "Zurück zu empfohlenen Anwendungen"
+
+#: src/control_center/sections/printers.zig
+msgid "Backend"
+msgstr "Backend"
+
+#: src/printing/ladder.zig
+msgid "Backend communication and device identity have not been confirmed."
+msgstr "Backend-Kommunikation und Geräteidentität wurden nicht bestätigt."
+
+#: src/control_center/sections/sound.zig
+msgid "Balance"
+msgstr "Balance"
+
+#: src/power_profiles.zig
+msgid "Balanced"
+msgstr "Ausgewogen"
+
+#: src/control_center/sections/sound.zig
+msgid "Bass Boost"
+msgstr "Bassverstärkung"
+
+#: src/control_center/search_index.zig
+msgid "Bass boost"
+msgstr "Bassverstärkung"
+
+#: src/printing/options.zig
+msgid "Black and white"
+msgstr "Schwarzweiß"
+
+#: src/control_center/sections/printers.zig
+msgid "Blank or no output"
+msgstr "Leere Seite oder keine Ausgabe"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Blocked"
+msgstr "Blockiert"
+
+#: src/session/power.zig
+msgid "Blocked by an active inhibitor lock."
+msgstr "Durch eine aktive Sperre blockiert."
+
+#: src/session/power.zig
+msgid "Blocked by an application."
+msgstr "Von einer Anwendung blockiert."
+
+#: src/session/power.zig
+msgid "Blocked by {application}."
+msgstr "Von {application} blockiert."
+
+#: src/session/power.zig
+msgid "Blocked by {application}: {reason}"
+msgstr "Von {application} blockiert: {reason}"
+
+#: src/control_center/panel.zig
+msgid "Bluetooth"
+msgstr "Bluetooth"
+
+#: src/control_center/search_index.zig
+msgid "Bluetooth devices"
+msgstr "Bluetooth-Geräte"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth is turned off"
+msgstr "Bluetooth ist ausgeschaltet"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth service is unavailable"
+msgstr "Bluetooth-Dienst nicht verfügbar"
+
+#: src/control_center/search_index.zig
+msgid "Bold clock"
+msgstr "Uhr fett"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bold clock text"
+msgstr "Uhrtext fett"
+
+#: src/control_center/sections/appearance.zig
+msgid "Boost window"
+msgstr "Fenster hervorheben"
+
+#: src/systemd.zig
+msgid "Boot summary is unavailable."
+msgstr "Startübersicht nicht verfügbar."
+
+#: src/control_center/sections/services.zig
+msgid "Boot time: {duration}"
+msgstr "Startzeit: {duration}"
+
+#: src/control_center/sections/services.zig
+msgid "Boot: from kernel start. Activation times overlap; — means unavailable."
+msgstr "Start: ab Kernelstart. Aktivierungszeiten können sich überschneiden; — bedeutet nicht verfügbar."
+
+#: src/control_center/search_index.zig
+msgid "Border glow"
+msgstr "Rahmenleuchten"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bottom"
+msgstr "Unten"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom center"
+msgstr "Unten mittig"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom left"
+msgstr "Unten links"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom right"
+msgstr "Unten rechts"
+
+#: src/files/git.zig
+msgid "Branch name cannot be empty"
+msgstr "Der Zweigname darf nicht leer sein"
+
+#: src/control_center/sections/appearance.zig
+msgid "Brief placeholder while apps start"
+msgstr "Kurzer Platzhalter beim Anwendungsstart"
+
+#: src/control_center/panel.zig
+msgid "Brightness"
+msgstr "Helligkeit"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Down"
+msgstr "Helligkeit verringern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Up"
+msgstr "Helligkeit erhöhen"
+
+#: src/files/app_listing.zig
+msgid "Broken link"
+msgstr "Defekter Link"
+
+#: src/control_center/welcome.zig
+msgid "Browser"
+msgstr "Browser"
+
+#: src/images/app.zig
+msgid "C: crop · Ctrl+S: save · Delete: trash"
+msgstr "C: zuschneiden · Strg+S: speichern · Entf: Papierkorb"
+
+#: src/control_center/sections/appearance.zig
+msgid "CENTER"
+msgstr "MITTE"
+
+#: src/system_monitor/app.zig
+msgid "CPU %"
+msgstr "CPU %"
+
+#: src/system_monitor/app.zig
+msgid "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"
+msgstr "CPU: 100% = ein Kern · Speicher: resident · Strg+F: suchen · Entf: beenden · Umschalt+Entf: Beenden erzwingen"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS"
+msgstr "CUPS"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS accepted the change; the resulting driver value could not be verified."
+msgstr "CUPS hat die Änderung angenommen; der resultierende Treiberwert konnte nicht überprüft werden."
+
+#: src/printing/ladder.zig
+msgid "CUPS answered an IPP request."
+msgstr "CUPS hat eine IPP-Anfrage beantwortet."
+
+#: src/printing/admin.zig
+msgid "CUPS authentication failed after three attempts. Check the administrator account and permissions."
+msgstr "CUPS-Authentifizierung nach drei Versuchen fehlgeschlagen. Prüfe Administratorkonto und Berechtigungen."
+
+#: src/printing/ladder.zig
+msgid "CUPS availability has not been checked."
+msgstr "Die Verfügbarkeit von CUPS wurde nicht geprüft."
+
+#: src/printing/cups.zig
+msgid "CUPS cannot honor the requested print settings. Check the paper, format and scaling options."
+msgstr "CUPS kann die angeforderten Druckeinstellungen nicht erfüllen. Prüfe Papier, Format und Skalierungsoptionen."
+
+#: src/printing/ladder.zig
+msgid "CUPS completed the job with zero sheets reported; physical output is not confirmed."
+msgstr "CUPS hat den Auftrag mit null gemeldeten Blättern abgeschlossen; eine physische Ausgabe ist nicht bestätigt."
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."
+msgstr "CUPS kopiert die Warteschlange und entfernt ihre alte Kennung. Beende zuerst alle Aufträge. Prüfe danach die Treiberoptionen."
+
+#: src/printing/cups.zig
+msgid "CUPS denied permission. The operation requires authorization."
+msgstr "CUPS hat den Zugriff verweigert. Der Vorgang erfordert eine Autorisierung."
+
+#: src/printing/ladder.zig
+msgid "CUPS did not answer an IPP request."
+msgstr "CUPS hat die IPP-Anfrage nicht beantwortet."
+
+#: src/printing/cups.zig
+msgid "CUPS did not respond in time. Refresh to try again."
+msgstr "CUPS hat nicht rechtzeitig geantwortet. Aktualisiere für einen neuen Versuch."
+
+#: src/printing/admin.zig
+msgid "CUPS discovered no supported printer addresses. You can enter a network address."
+msgstr "CUPS hat keine unterstützten Druckeradressen gefunden. Du kannst eine Netzwerkadresse eingeben."
+
+#: src/printing/cups.zig
+msgid "CUPS is unavailable. Install or start CUPS, then refresh."
+msgstr "CUPS ist nicht verfügbar. Installiere oder starte CUPS und aktualisiere dann."
+
+#: src/printing/admin.zig
+msgid "CUPS refused or could not complete the request. Check authorization and refresh before retrying."
+msgstr "CUPS hat die Anfrage verweigert oder konnte sie nicht abschließen. Prüfe die Autorisierung und aktualisiere vor einem neuen Versuch."
+
+#: src/printing/admin.zig
+msgid "CUPS refused the printer change. Check authorization, the address and driver, then refresh."
+msgstr "CUPS hat die Druckeränderung verweigert. Prüfe Autorisierung, Adresse und Treiber und aktualisiere dann."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports conflicting queue and driver defaults."
+msgstr "CUPS meldet widersprüchliche Warteschlangen- und Treiberstandards."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports the job completed; physical printed output is not confirmed."
+msgstr "CUPS meldet den Auftrag als abgeschlossen; ein physischer Ausdruck ist nicht bestätigt."
+
+#: src/printing/admin.zig
+msgid "CUPS requires an administrator username and password."
+msgstr "CUPS benötigt einen Administrator-Benutzernamen und ein Passwort."
+
+#: src/printing/cups.zig
+msgid "CUPS returned an invalid response or the connection failed. Refresh to try again."
+msgstr "CUPS hat eine ungültige Antwort geliefert oder die Verbindung ist fehlgeschlagen. Aktualisiere für einen neuen Versuch."
+
+#: src/printing/admin.zig
+msgid "CUPS start requested. Refresh to check when it is ready."
+msgstr "CUPS-Start angefordert. Aktualisiere, um die Bereitschaft zu prüfen."
+
+#: src/network/manager.zig
+msgid "Cable unplugged"
+msgstr "Kabel nicht angeschlossen"
+
+#: src/files/app_model.zig
+msgid "Calculate size"
+msgstr "Größe berechnen"
+
+#: src/calculator/app.zig
+msgid "Calculator"
+msgstr "Rechner"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom In"
+msgstr "Kamera hineinzoomen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Out"
+msgstr "Kamera herauszoomen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Reset"
+msgstr "Kamerazoom zurücksetzen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel"
+msgstr "Abbrechen"
+
+#: src/files/app_paint.zig
+msgid "Cancel (C)"
+msgstr "Abbrechen (C)"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel Pairing"
+msgstr "Kopplung abbrechen"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel job"
+msgstr "Auftrag abbrechen"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel setup"
+msgstr "Einrichtung abbrechen"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel test"
+msgstr "Test abbrechen"
+
+#: src/files/volumes.zig
+msgid "Cancelled"
+msgstr "Abgebrochen"
+
+#: src/files/ops.zig
+msgid "Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Abgebrochen. Entpackt: {completed}. Übersprungen: {skipped}. Fehlgeschlagen: {failed}. Verbleibend: {remaining}."
+
+#: src/files/ops.zig
+msgid "Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Abgebrochen. Übertragen: {completed}. Übersprungen: {skipped}. Fehlgeschlagen: {failed}. Verbleibend: {remaining}."
+
+#: src/files/app_keyboard.zig
+msgid "Cancelling operation..."
+msgstr "Vorgang wird abgebrochen…"
+
+#: src/calculator/model.zig
+msgid "Cannot divide by zero"
+msgstr "Division durch null ist nicht möglich"
+
+#: src/files/main.zig
+msgid "Cannot drop a folder into itself"
+msgstr "Ein Ordner kann nicht in sich selbst gezogen werden"
+
+#: src/files/app_terminal.zig
+msgid "Cannot insert paths containing control characters"
+msgstr "Pfade mit Steuerzeichen können nicht eingefügt werden"
+
+#: src/session/lock.zig
+msgid "Cannot reach login service. Try again."
+msgstr "Anmeldedienst nicht erreichbar. Versuche es erneut."
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas"
+msgstr "Leinwand"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas & Focus"
+msgstr "Leinwand und Fokus"
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas Preview"
+msgstr "Leinwandvorschau"
+
+#: src/control_center/search_index.zig
+msgid "Canvas Size"
+msgstr "Leinwandgröße"
+
+#: src/control_center/search_index.zig
+msgid "Canvas pan speed"
+msgstr "Schwenkgeschwindigkeit der Leinwand"
+
+#: src/control_center/search_index.zig
+msgid "Canvas size"
+msgstr "Leinwandgröße"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas · RediWM preset"
+msgstr "Leinwand · RediWM-Vorgabe"
+
+#: src/session/lock.zig
+msgid "Caps Lock is on"
+msgstr "Feststelltaste ist aktiv"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture a region of your screen."
+msgstr "Einen Bildschirmbereich aufnehmen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture the current display."
+msgstr "Den aktuellen Bildschirm aufnehmen."
+
+#: src/control_center/sections/sound.zig
+msgid "Centre"
+msgstr "Zentriert"
+
+#: src/desktop/app_actions.zig
+msgid "Change Wallpaper"
+msgstr "Hintergrund ändern"
+
+#: src/control_center/sections/printers.zig
+msgid "Change connection…"
+msgstr "Verbindung ändern…"
+
+#: src/control_center/sections/users.zig
+msgid "Change password · {name}"
+msgstr "Passwort ändern · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Change password…"
+msgstr "Passwort ändern…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change printer connection"
+msgstr "Druckerverbindung ändern"
+
+#: src/control_center/sections/printers.zig
+msgid "Change queue identifier…"
+msgstr "Warteschlangenkennung ändern…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change this queue identifier"
+msgstr "Diese Warteschlangenkennung ändern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Change window depth."
+msgstr "Fenstertiefe ändern."
+
+#: src/control_center/sections/printers.zig
+msgid "Change {old} to {name}?"
+msgstr "{old} in {name} ändern?"
+
+#: src/control_center/sections/portals.zig
+msgid "Changes apply next time you sign in."
+msgstr "Änderungen gelten ab der nächsten Anmeldung."
+
+#: src/control_center/sections/display.zig
+msgid "Changes are saved automatically. Scroll the lists for more modes."
+msgstr "Änderungen werden automatisch gespeichert. Scrolle in den Listen für weitere Modi."
+
+#: src/control_center/sections/users.zig
+msgid "Changes saved."
+msgstr "Änderungen gespeichert."
+
+#: src/control_center/sections/region.zig
+msgid "Changes the taskbar calendar."
+msgstr "Ändert den Kalender der Taskleiste."
+
+#: src/taskbar/battery.zig
+msgid "Charging"
+msgstr "Wird geladen"
+
+#: src/control_center/sections/printers.zig
+msgid "Check IPP address"
+msgstr "IPP-Adresse prüfen"
+
+#: src/control_center/sections/users.zig
+msgid "Check NSS and /etc/login.defs."
+msgstr "Prüfe NSS und /etc/login.defs."
+
+#: src/control_center/sections/printers.zig
+msgid "Check measured scale"
+msgstr "Gemessenen Maßstab prüfen"
+
+#: src/printing/ladder.zig
+msgid "Check power, the USB cable, and which printer this queue uses."
+msgstr "Prüfe Stromversorgung, USB-Kabel und den Drucker, den diese Warteschlange verwendet."
+
+#: src/printing/ladder.zig
+msgid "Check printer power, the address, and access through the network or VPN."
+msgstr "Prüfe die Stromversorgung des Druckers, seine Adresse und den Zugang über Netzwerk oder VPN."
+
+#: src/printing/ladder.zig
+msgid "Check the configured CUPS server and whether the print service is installed and available."
+msgstr "Prüfe den konfigurierten CUPS-Server und ob der Druckdienst installiert und verfügbar ist."
+
+#: src/printing/ladder.zig
+msgid "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."
+msgstr "Prüfe Verbindung und Backend-Adresse. Eine Zeitüberschreitung allein beweist nicht, dass eine USB-Sonderbehandlung nötig ist."
+
+#: src/printing/ladder.zig
+msgid "Check the device's USB mode and its self-test instructions."
+msgstr "Prüfe den USB-Modus des Geräts und die Anleitung für den Selbsttest."
+
+#: src/printing/ladder.zig
+msgid "Check the document, driver, media size, and resolution. Compare with a test that skips the filters."
+msgstr "Prüfe Dokument, Treiber, Papierformat und Auflösung. Vergleiche mit einem Test ohne Filter."
+
+#: src/calculator/model.zig
+msgid "Check the expression"
+msgstr "Prüfe den Ausdruck"
+
+#: src/printing/ladder.zig
+msgid "Check the job's reported reason before retrying."
+msgstr "Prüfe den gemeldeten Auftragsgrund vor einem neuen Versuch."
+
+#: src/printing/ladder.zig
+msgid "Check the physical output and any document or filter failure; sheet counters can be incomplete."
+msgstr "Prüfe die tatsächliche Ausgabe und mögliche Dokument- oder Filterfehler; Blattzähler können unvollständig sein."
+
+#: src/control_center/sections/printers.zig
+msgid "Check the printer's self-test sheet for its language and real resolution."
+msgstr "Prüfe die Druckersprache und tatsächliche Auflösung auf der Selbsttestseite des Druckers."
+
+#: src/printing/ladder.zig
+msgid "Check the queue address and USB serial; reconnecting can change a device-node path."
+msgstr "Prüfe Warteschlangenadresse und USB-Seriennummer; erneutes Anschließen kann den Geräteknotenpfad ändern."
+
+#: src/printing/ladder.zig
+msgid "Check the usblp driver and the queue's device path; node names can change after reconnection."
+msgstr "Prüfe den usblp-Treiber und den Gerätepfad der Warteschlange; Knotennamen können sich beim erneuten Anschließen ändern."
+
+#: src/control_center/sections/desktop.zig
+msgid "Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."
+msgstr "Markierte Anwendungen öffnen schwebend. Super+V ändert die Platzierung einzelner Fenster. Dialoge und Fenster mit fester Größe schweben automatisch."
+
+#: src/control_center/panel.zig
+msgid "Checking backlight…"
+msgstr "Hintergrundbeleuchtung wird geprüft…"
+
+#: src/session/lock.zig
+msgid "Checking password…"
+msgstr "Passwort wird geprüft…"
+
+#: src/printing/admin.zig
+msgid "Checking printer administration…"
+msgstr "Druckerverwaltung wird geprüft…"
+
+#: src/session/lock.zig
+msgid "Checking…"
+msgstr "Wird geprüft…"
+
+#: src/files/app.zig
+msgid "Choose Folder"
+msgstr "Ordner auswählen"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose Start button logo"
+msgstr "Logo der Starttaste auswählen"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a driver…"
+msgstr "Treiber auswählen…"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language."
+msgstr "Wähle eine Sprache von der Selbsttestseite oder probiere ein Muster. Halte das Ergebnis fest, bevor du eine andere Sprache wählst."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose a path without quotes, backslashes or control characters."
+msgstr "Wähle einen Pfad ohne Anführungszeichen, Rückstriche oder Steuerzeichen."
+
+#: src/share_picker/client.zig
+msgid "Choose a source. Escape cancels."
+msgstr "Wähle eine Quelle. Escape bricht ab."
+
+#: src/files/app_chooser.zig
+msgid "Choose an accessible file or folder and a valid filename."
+msgstr "Wähle eine zugängliche Datei oder einen Ordner und einen gültigen Dateinamen."
+
+#: src/files/open_with.zig
+msgid "Choose an application to add to the desktop"
+msgstr "Wähle eine Anwendung für den Schreibtisch"
+
+#: src/files/open_with.zig
+msgid "Choose another app…"
+msgstr "Andere Anwendung auswählen…"
+
+#: src/files/app_torrent_rows.zig
+msgid "Choose files"
+msgstr "Dateien auswählen"
+
+#: src/files/torrents.zig
+msgid "Choose files to download"
+msgstr "Dateien zum Herunterladen auswählen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Choose file…"
+msgstr "Datei auswählen…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose folder"
+msgstr "Ordner auswählen"
+
+#: src/control_center/welcome.zig
+msgid "Choose how your desktop works."
+msgstr "Wähle, wie dein Schreibtisch funktioniert."
+
+#: src/printing/cups.zig
+msgid "Choose the actual paper dimensions before printing this test."
+msgstr "Wähle vor dem Drucken dieses Tests die tatsächlichen Papiermaße."
+
+#: src/control_center/panel.zig
+msgid "Choose the keys for your everyday actions."
+msgstr "Wähle die Tasten für deine täglichen Aktionen."
+
+#: src/printing/ladder.zig
+msgid "Choose the paper or label size actually loaded in the printer."
+msgstr "Wähle das tatsächlich eingelegte Papier- oder Etikettenformat."
+
+#: src/control_center/sections/portals.zig
+msgid "Choose the services apps use for desktop dialogs. The selected backend must be installed."
+msgstr "Wähle die Dienste für Anwendungsdialoge. Das ausgewählte Backend muss installiert sein."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose wallpaper folder"
+msgstr "Hintergrundordner auswählen"
+
+#: src/control_center/sections/users.zig
+msgid "Choose whether to keep the home folder or remove its files."
+msgstr "Wähle, ob der persönliche Ordner behalten oder sein Inhalt entfernt werden soll."
+
+#: src/control_center/welcome.zig
+msgid "Choose your window layout"
+msgstr "Wähle deine Fensteranordnung"
+
+#: src/control_center/welcome.zig
+msgid "Classic (stacking)"
+msgstr "Klassisch (überlappend)"
+
+#: src/control_center/search.zig
+msgid "Clear search"
+msgstr "Suche leeren"
+
+#: src/editor/app.zig
+msgid "Clipboard selections are limited to 1 MiB."
+msgstr "Zwischenablageauswahlen sind auf 1 MiB begrenzt."
+
+#: src/files/app_keyboard.zig
+msgid "Clipboard text is invalid or too long"
+msgstr "Zwischenablagetext ist ungültig oder zu lang"
+
+#: src/files/main.zig
+msgid "Clipboard transfer failed or exceeded 1 MiB"
+msgstr "Zwischenablageübertragung fehlgeschlagen oder größer als 1 MiB"
+
+#: src/files/main.zig
+msgid "Clipboard transfer timed out"
+msgstr "Zeitüberschreitung bei der Zwischenablageübertragung"
+
+#: src/control_center/search_index.zig
+msgid "Clock day"
+msgstr "Datum in der Uhr"
+
+#: src/control_center/search_index.zig
+msgid "Clock seconds"
+msgstr "Sekunden in der Uhr"
+
+#: src/calculator/client.zig
+msgid "Close"
+msgstr "Schließen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close Window"
+msgstr "Fenster schließen"
+
+#: src/chrome_tabs.zig
+msgid "Close tab"
+msgstr "Tab schließen"
+
+#: src/files/app_terminal.zig
+msgid "Close terminal session?"
+msgstr "Terminalsitzung schließen?"
+
+#: src/control_center/sections/printers.zig
+msgid "Close test result"
+msgstr "Testergebnis schließen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close the focused window."
+msgstr "Das fokussierte Fenster schließen."
+
+#: src/taskbar/window_menu.zig
+msgid "Close window"
+msgstr "Fenster schließen"
+
+#: src/files/app_paint.zig
+msgid "Closing ends this shell and its running jobs."
+msgstr "Beim Schließen werden diese Shell und ihre laufenden Aufträge beendet."
+
+#: src/system_monitor/app.zig
+msgid "Collecting processes…"
+msgstr "Prozesse werden erfasst…"
+
+#: src/control_center/sections/display.zig
+msgid "Color temperature"
+msgstr "Farbtemperatur"
+
+#: src/printing/options.zig
+msgid "Colour"
+msgstr "Farbe"
+
+#: src/control_center/sections/printers.zig
+msgid "Colour: {colour}"
+msgstr "Farbe: {colour}"
+
+#: src/files/app_torrent_rows.zig
+msgid "Complete"
+msgstr "Abgeschlossen"
+
+#: src/files/torrents.zig
+msgid "Complete · Stopped"
+msgstr "Abgeschlossen · Angehalten"
+
+#: src/printing/cups.zig
+msgid "Completed"
+msgstr "Abgeschlossen"
+
+#: src/control_center/sections/network.zig
+msgid "Configure this network with a network tool"
+msgstr "Richte dieses Netzwerk mit einem Netzwerkwerkzeug ein"
+
+#: src/control_center/panel.zig
+msgid "Configure your desktop canvas and panning area."
+msgstr "Richte die Leinwand und den Schwenkbereich deines Schreibtischs ein."
+
+#: src/control_center/sections/users.zig
+msgid "Confirm"
+msgstr "Bestätigen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Confirm Pairing"
+msgstr "Kopplung bestätigen"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm new password"
+msgstr "Neues Passwort bestätigen"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm password"
+msgstr "Passwort bestätigen"
+
+#: src/printing/ladder.zig
+msgid "Confirm resolution using the printer's self-test or a measured ruler test."
+msgstr "Bestätige die Auflösung anhand des Druckerselbsttests oder eines gemessenen Linealtests."
+
+#: src/files/app_paint.zig
+msgid "Conflict"
+msgstr "Konflikt"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connect"
+msgstr "Verbinden"
+
+#: src/control_center/panel.zig
+msgid "Connect and manage your Bluetooth devices."
+msgstr "Verbinde und verwalte deine Bluetooth-Geräte."
+
+#: src/control_center/sections/network.zig
+msgid "Connect automatically"
+msgstr "Automatisch verbinden"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connected"
+msgstr "Verbunden"
+
+#: src/files/app_torrent_rows.zig
+msgid "Connected peers: {peers} · Seeds: {seeds}"
+msgstr "Verbundene Peers: {peers} · Seeds: {seeds}"
+
+#: src/control_center/sections/printers.zig
+msgid "Connected to CUPS."
+msgstr "Mit CUPS verbunden."
+
+#: src/network/manager.zig
+msgid "Connected · Saved"
+msgstr "Verbunden · Gespeichert"
+
+#: src/network/manager.zig
+msgid "Connecting Ethernet…"
+msgstr "Ethernet-Verbindung wird hergestellt…"
+
+#: src/files/app_paint.zig
+msgid "Connecting…"
+msgstr "Verbindung wird hergestellt…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connection"
+msgstr "Verbindung"
+
+#: src/network/manager.zig
+msgid "Connection failed"
+msgstr "Verbindung fehlgeschlagen"
+
+#: src/network/manager.zig
+msgid "Connection failed. Check the password and try again."
+msgstr "Verbindung fehlgeschlagen. Prüfe das Passwort und versuche es erneut."
+
+#: src/session/lock.zig
+msgid "Continue"
+msgstr "Fortfahren"
+
+#: src/files/app_fileops.zig
+msgid "Copied"
+msgstr "Kopiert"
+
+#: src/files/app_fileops.zig
+msgid "Copied {count} item"
+msgid_plural "Copied {count} items"
+msgstr[0] "{count} Objekt kopiert"
+msgstr[1] "{count} Objekte kopiert"
+
+#: src/desktop/app_actions.zig
+msgid "Copy"
+msgstr "Kopieren"
+
+#: src/control_center/sections/printers.zig
+msgid "Copy diagnostic report"
+msgstr "Diagnosebericht kopieren"
+
+#: src/control_center/search_index.zig
+msgid "Corner radius"
+msgstr "Eckenradius"
+
+#: src/files/appimage.zig
+msgid "Could not add the AppImage to applications"
+msgstr "AppImage konnte nicht zu Anwendungen hinzugefügt werden"
+
+#: src/files/app_opening.zig
+msgid "Could not add the application"
+msgstr "Anwendung konnte nicht hinzugefügt werden"
+
+#: src/control_center/sections/users.zig
+msgid "Could not allocate locked password storage."
+msgstr "Geschützter Passwortspeicher konnte nicht reserviert werden."
+
+#: src/files/app_terminal.zig
+msgid "Could not allocate terminal"
+msgstr "Terminal konnte nicht reserviert werden"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors. Check your configuration files and permissions."
+msgstr "Anwendungsfarben konnten nicht angewendet werden. Prüfe Konfigurationsdateien und Zugriffsrechte."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors: {reason}. Check your configuration files and permissions."
+msgstr "Anwendungsfarben konnten nicht angewendet werden: {reason}. Prüfe Konfigurationsdateien und Zugriffsrechte."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply or save the display scale."
+msgstr "Bildschirmskalierung konnte nicht angewendet oder gespeichert werden."
+
+#: src/control_center/sections/display.zig
+msgid "Could not apply that display setting."
+msgstr "Diese Bildschirmeinstellung konnte nicht angewendet werden."
+
+#: src/printing/admin.zig
+msgid "Could not apply the printer option."
+msgstr "Druckeroption konnte nicht angewendet werden."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply this choice. Please try again."
+msgstr "Diese Auswahl konnte nicht angewendet werden. Versuche es erneut."
+
+#: src/session/power.zig
+msgid "Could not build the request."
+msgstr "Anfrage konnte nicht erstellt werden."
+
+#: src/files/properties.zig
+msgid "Could not change permissions"
+msgstr "Zugriffsrechte konnten nicht geändert werden"
+
+#: src/printing/admin.zig
+msgid "Could not clear the canonical default override."
+msgstr "Die kanonische Standardüberschreibung konnte nicht entfernt werden."
+
+#: src/files/app_torrents.zig
+msgid "Could not connect to Transfers"
+msgstr "Verbindung zu Übertragungen konnte nicht hergestellt werden"
+
+#: src/systemd.zig
+msgid "Could not connect to systemd."
+msgstr "Verbindung mit systemd konnte nicht hergestellt werden."
+
+#: src/images/app.zig
+msgid "Could not crop this selection."
+msgstr "Diese Auswahl konnte nicht zugeschnitten werden."
+
+#: src/files/app_fileops.zig
+msgid "Could not delete all items"
+msgstr "Nicht alle Objekte konnten gelöscht werden"
+
+#: src/images/app.zig
+msgid "Could not delete. The file was kept."
+msgstr "Löschen fehlgeschlagen. Die Datei wurde behalten."
+
+#: src/files/volumes.zig
+msgid "Could not eject {name}"
+msgstr "{name} konnte nicht ausgeworfen werden"
+
+#: src/files/app_fileops.zig
+msgid "Could not empty Trash"
+msgstr "Papierkorb konnte nicht geleert werden"
+
+#: src/files/archive.zig
+msgid "Could not extract archive"
+msgstr "Archiv konnte nicht entpackt werden"
+
+#: src/files/app_dialogs.zig
+msgid "Could not load applications"
+msgstr "Anwendungen konnten nicht geladen werden"
+
+#: src/systemd.zig
+msgid "Could not load services. Try Refresh."
+msgstr "Dienste konnten nicht geladen werden. Versuche Aktualisieren."
+
+#: src/files/volumes.zig
+msgid "Could not mount {name}"
+msgstr "{name} konnte nicht eingebunden werden"
+
+#: src/files/app_fileops.zig
+msgid "Could not move all items to Trash"
+msgstr "Nicht alle Objekte konnten in den Papierkorb verschoben werden"
+
+#: src/images/app.zig
+msgid "Could not move to Trash. The file was kept."
+msgstr "Verschieben in den Papierkorb fehlgeschlagen. Die Datei wurde behalten."
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Appearance: {error}"
+msgstr "Darstellung konnte nicht geöffnet werden: {error}"
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Desktop Settings: {error}"
+msgstr "Schreibtischeinstellungen konnten nicht geöffnet werden: {error}"
+
+#: src/files/app_opening.zig
+msgid "Could not open Text Editor"
+msgstr "Texteditor konnte nicht geöffnet werden"
+
+#: src/files/app_places.zig
+msgid "Could not open Trash"
+msgstr "Papierkorb konnte nicht geöffnet werden"
+
+#: src/files/archive.zig
+msgid "Could not open archive"
+msgstr "Archiv konnte nicht geöffnet werden"
+
+#: src/files/app_opening.zig
+msgid "Could not open archive member"
+msgstr "Archivdatei konnte nicht geöffnet werden"
+
+#: src/pdf/app_document.zig
+msgid "Could not open document."
+msgstr "Dokument konnte nicht geöffnet werden."
+
+#: src/files/app_opening.zig
+msgid "Could not open file"
+msgstr "Datei konnte nicht geöffnet werden"
+
+#: src/files/app_places.zig
+msgid "Could not open folder"
+msgstr "Ordner konnte nicht geöffnet werden"
+
+#: src/files/app_opening.zig
+msgid "Could not open folder picker"
+msgstr "Ordnerauswahl konnte nicht geöffnet werden"
+
+#: src/files/app_opening.zig
+msgid "Could not open image viewer"
+msgstr "Bildbetrachter konnte nicht geöffnet werden"
+
+#: src/files/app_places.zig
+msgid "Could not open new window"
+msgstr "Neues Fenster konnte nicht geöffnet werden"
+
+#: src/images/app.zig
+msgid "Could not open the delete dialog."
+msgstr "Löschdialog konnte nicht geöffnet werden."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Could not open the file chooser."
+msgstr "Dateiauswahl konnte nicht geöffnet werden."
+
+#: src/systemd.zig
+msgid "Could not open the service edit for authorization."
+msgstr "Dienstbearbeitung konnte nicht zur Autorisierung geöffnet werden."
+
+#: src/files/open_with.zig
+msgid "Could not open with this app. Choose another."
+msgstr "Mit dieser Anwendung konnte nicht geöffnet werden. Wähle eine andere."
+
+#: src/pdf/app_document.zig
+msgid "Could not prepare password. Please try again."
+msgstr "Passwort konnte nicht vorbereitet werden. Versuche es erneut."
+
+#: src/control_center/sections/users.zig
+msgid "Could not prepare the group update."
+msgstr "Gruppenänderung konnte nicht vorbereitet werden."
+
+#: src/session/power.zig
+msgid "Could not query logind."
+msgstr "Logind konnte nicht abgefragt werden."
+
+#: src/session/power.zig
+msgid "Could not reach logind."
+msgstr "Logind konnte nicht erreicht werden."
+
+#: src/session/power.zig
+msgid "Could not reach the system's power service."
+msgstr "Der Energiedienst des Systems konnte nicht erreicht werden."
+
+#: src/network/manager.zig
+msgid "Could not read Wi-Fi networks"
+msgstr "WLAN-Netzwerke konnten nicht gelesen werden"
+
+#: src/files/app_dialogs.zig
+msgid "Could not read file properties"
+msgstr "Dateieigenschaften konnten nicht gelesen werden"
+
+#: src/files/app_opening.zig
+msgid "Could not read folder picker result"
+msgstr "Ergebnis der Ordnerauswahl konnte nicht gelesen werden"
+
+#: src/control_center/sections/users.zig
+msgid "Could not read login accounts."
+msgstr "Anmeldekonten konnten nicht gelesen werden."
+
+#: src/files/properties.zig
+msgid "Could not read permissions"
+msgstr "Zugriffsrechte konnten nicht gelesen werden"
+
+#: src/files/worker.zig
+msgid "Could not read recent files"
+msgstr "Zuletzt verwendete Dateien konnten nicht gelesen werden"
+
+#: src/files/appimage.zig
+msgid "Could not read the AppImage's application details"
+msgstr "Anwendungsdetails des AppImage konnten nicht gelesen werden"
+
+#: src/files/main.zig
+msgid "Could not read the dropped items"
+msgstr "Abgelegte Objekte konnten nicht gelesen werden"
+
+#: src/images/app.zig
+msgid "Could not read this image"
+msgstr "Dieses Bild konnte nicht gelesen werden"
+
+#: src/printing/admin.zig
+msgid "Could not request CUPS start."
+msgstr "CUPS-Start konnte nicht angefordert werden."
+
+#: src/systemd.zig
+msgid "Could not request authentication. Check that polkit is running."
+msgstr "Authentifizierung konnte nicht angefordert werden. Prüfe, ob polkit läuft."
+
+#: src/images/app.zig
+msgid "Could not rotate: not enough memory."
+msgstr "Drehen fehlgeschlagen: nicht genug Speicher."
+
+#: src/files/git.zig
+msgid "Could not run git"
+msgstr "Git konnte nicht ausgeführt werden"
+
+#: src/systemd.zig
+msgid "Could not save Notify. Service editing requires systemd 256 or newer."
+msgstr "Notify konnte nicht gespeichert werden. Die Dienstbearbeitung erfordert systemd 256 oder neuer."
+
+#: src/files/app_places.zig
+msgid "Could not save Places"
+msgstr "Orte konnten nicht gespeichert werden"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save desktop mode."
+msgstr "Schreibtischmodus konnte nicht gespeichert werden."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save floating apps."
+msgstr "Schwebende Anwendungen konnten nicht gespeichert werden."
+
+#: src/control_center/sections/portals.zig
+msgid "Could not save portal preferences. Check your configuration directory."
+msgstr "Portaleinstellungen konnten nicht gespeichert werden. Prüfe deinen Konfigurationsordner."
+
+#: src/control_center/panel.zig
+msgid "Could not save the Files setting."
+msgstr "Die Dateieneinstellung konnte nicht gespeichert werden."
+
+#: src/control_center/welcome.zig
+msgid "Could not save the default app. Please try again."
+msgstr "Standardanwendung konnte nicht gespeichert werden. Versuche es erneut."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Could not save the default application."
+msgstr "Standardanwendung konnte nicht gespeichert werden."
+
+#: src/control_center/sections/display.zig
+msgid "Could not save the display setting."
+msgstr "Bildschirmeinstellung konnte nicht gespeichert werden."
+
+#: src/files/app.zig
+msgid "Could not save view preferences"
+msgstr "Ansichtseinstellungen konnten nicht gespeichert werden"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save window spacing."
+msgstr "Fensterabstände konnten nicht gespeichert werden."
+
+#: src/control_center/welcome.zig
+msgid "Could not save your layout. Please try again."
+msgstr "Deine Anordnung konnte nicht gespeichert werden. Versuche es erneut."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save. Check the configuration file and try again."
+msgstr "Speichern fehlgeschlagen. Prüfe die Konfigurationsdatei und versuche es erneut."
+
+#: src/images/app.zig
+msgid "Could not save. Check the folder and permissions."
+msgstr "Speichern fehlgeschlagen. Prüfe den Ordner und die Zugriffsrechte."
+
+#: src/printing/admin.zig
+msgid "Could not send printer administration request."
+msgstr "Anfrage zur Druckerverwaltung konnte nicht gesendet werden."
+
+#: src/polkit/dialog.zig
+msgid "Could not send response. Please try again."
+msgstr "Antwort konnte nicht gesendet werden. Versuche es erneut."
+
+#: src/network/manager.zig
+msgid "Could not send the Ethernet request."
+msgstr "Ethernet-Anfrage konnte nicht gesendet werden."
+
+#: src/network/manager.zig
+msgid "Could not send the Wi-Fi request"
+msgstr "WLAN-Anfrage konnte nicht gesendet werden"
+
+#: src/systemd.zig
+msgid "Could not send the service action."
+msgstr "Dienstaktion konnte nicht gesendet werden."
+
+#: src/files/worker.zig
+msgid "Could not sort folder names"
+msgstr "Ordnernamen konnten nicht sortiert werden"
+
+#: src/printing/admin.zig
+msgid "Could not start CUPS administration."
+msgstr "CUPS-Verwaltung konnte nicht gestartet werden."
+
+#: src/files/app_torrents.zig
+msgid "Could not start Transfers"
+msgstr "Übertragungen konnte nicht gestartet werden"
+
+#: src/images/app.zig
+msgid "Could not start deleting this file."
+msgstr "Löschen dieser Datei konnte nicht gestartet werden."
+
+#: src/files/app_opening.zig
+msgid "Could not start extraction"
+msgstr "Entpacken konnte nicht gestartet werden"
+
+#: src/files/main.zig
+msgid "Could not start file drag"
+msgstr "Dateizug konnte nicht gestartet werden"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not start printer diagnostics."
+msgstr "Druckerdiagnose konnte nicht gestartet werden."
+
+#: src/images/app.zig
+msgid "Could not start saving."
+msgstr "Speichern konnte nicht gestartet werden."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the authentication request."
+msgstr "Authentifizierungsanfrage konnte nicht gestartet werden."
+
+#: src/session/power.zig
+msgid "Could not start the power command."
+msgstr "Energiebefehl konnte nicht gestartet werden."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the request."
+msgstr "Anfrage konnte nicht gestartet werden."
+
+#: src/systemd.zig
+msgid "Could not subscribe to service updates."
+msgstr "Dienstaktualisierungen konnten nicht abonniert werden."
+
+#: src/files/volumes.zig
+msgid "Could not use the device"
+msgstr "Gerät konnte nicht verwendet werden"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers before changing the identifier."
+msgstr "Vorhandene Drucker konnten vor der Kennungsänderung nicht überprüft werden."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers. Refresh before creating a queue."
+msgstr "Vorhandene Drucker konnten nicht überprüft werden. Aktualisiere die Liste vor dem Erstellen einer Warteschlange."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify the printer's jobs. Refresh before changing its identifier."
+msgstr "Druckeraufträge konnten nicht überprüft werden. Aktualisiere die Liste vor der Kennungsänderung."
+
+#: src/session/power.zig
+msgid "Could not watch the power command."
+msgstr "Energiebefehl konnte nicht überwacht werden."
+
+#: src/files/archive.zig
+msgid "Could not write extracted file (check space and permissions)"
+msgstr "Entpackte Datei konnte nicht geschrieben werden (prüfe Speicherplatz und Zugriffsrechte)"
+
+#: src/desktop/watcher.zig
+msgid "Could not {operation}: {error}"
+msgstr "{operation} fehlgeschlagen: {error}"
+
+#: src/control_center/sections/printers.zig
+msgid "Create printer"
+msgstr "Drucker erstellen"
+
+#: src/control_center/sections/users.zig
+msgid "Create user"
+msgstr "Benutzer erstellen"
+
+#: src/files/properties.zig
+msgid "Created"
+msgstr "Erstellt"
+
+#: src/files/app_dialogs.zig
+msgid "Created and switched to {name}"
+msgstr "{name} erstellt und ausgewählt"
+
+#: src/images/app.zig
+msgid "Crop"
+msgstr "Zuschneiden"
+
+#: src/control_center/sections/region.zig
+msgid "Currency"
+msgstr "Währung"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current font"
+msgstr "Aktuelle Schrift"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current theme"
+msgstr "Aktuelles Thema"
+
+#: src/control_center/sections/region.zig
+msgid "Current: {locale}"
+msgstr "Aktuell: {locale}"
+
+#: src/control_center/search_index.zig
+msgid "Cursor theme"
+msgstr "Zeigerthema"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom"
+msgstr "Benutzerdefiniert"
+
+#: src/control_center/sections/portals.zig
+msgid "Custom ({name})"
+msgstr "Benutzerdefiniert ({name})"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom size"
+msgstr "Eigene Größe"
+
+#: src/desktop/app_actions.zig
+msgid "Cut"
+msgstr "Ausschneiden"
+
+#: src/files/app_fileops.zig
+msgid "Cut {count} item"
+msgid_plural "Cut {count} items"
+msgstr[0] "{count} Objekt ausgeschnitten"
+msgstr[1] "{count} Objekte ausgeschnitten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the next existing workspace."
+msgstr "Zum nächsten vorhandenen Arbeitsbereich wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the previous existing workspace."
+msgstr "Zum vorherigen vorhandenen Arbeitsbereich wechseln."
+
+#: src/battery_popup.zig
+msgid "Cycles"
+msgstr "Zyklen"
+
+#: src/files/app_sidebar_paint.zig
+msgid "DEVICES"
+msgstr "GERÄTE"
+
+#: src/control_center/sections/display.zig
+msgid "DISPLAY"
+msgstr "BILDSCHIRM"
+
+#: src/control_center/sections/network.zig
+msgid "DNS servers"
+msgstr "DNS-Server"
+
+#: src/control_center/search_index.zig
+msgid "Dark mode"
+msgstr "Dunkler Modus"
+
+#: src/printing/options.zig
+msgid "Darkness"
+msgstr "Dunkelheit"
+
+#: src/control_center/sections/region.zig
+msgid "Date"
+msgstr "Datum"
+
+#: src/control_center/sections/region.zig
+msgid "Date format for the taskbar; date, number and currency formats for new apps."
+msgstr "Datumsformat der Taskleiste; Datums-, Zahlen- und Währungsformate für neue Anwendungen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease display brightness."
+msgstr "Bildschirmhelligkeit verringern."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease system volume."
+msgstr "Systemlautstärke verringern."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease the focused window's size."
+msgstr "Größe des fokussierten Fensters verringern."
+
+#: src/control_center/sections/appearance.zig
+msgid "Default"
+msgstr "Standard"
+
+#: src/control_center/sections/appearance.zig
+msgid "Default R logo · PNG or SVG"
+msgstr "Standard-R-Logo · PNG oder SVG"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Default applications"
+msgstr "Standardanwendungen"
+
+#: src/control_center/welcome.zig
+msgid "Default apps"
+msgstr "Standard-Apps"
+
+#: src/control_center/search_index.zig
+msgid "Default file manager"
+msgstr "Standard-Dateimanager"
+
+#: src/control_center/search_index.zig
+msgid "Default terminal"
+msgstr "Standard-Terminal"
+
+#: src/control_center/sections/services.zig
+msgid "Deferred"
+msgstr "Zurückgestellt"
+
+#: src/delete_dialog.zig
+msgid "Delete file?"
+msgstr "Datei löschen?"
+
+#: src/control_center/sections/users.zig
+msgid "Delete files"
+msgstr "Dateien löschen"
+
+#: src/delete_dialog.zig
+msgid "Delete folder?"
+msgstr "Ordner löschen?"
+
+#: src/delete_dialog.zig
+msgid "Delete items?"
+msgstr "Objekte löschen?"
+
+#: src/delete_dialog.zig
+msgid "Delete permanently"
+msgstr "Endgültig löschen"
+
+#: src/control_center/sections/users.zig
+msgid "Delete user…"
+msgstr "Benutzer löschen…"
+
+#: src/control_center/sections/users.zig
+msgid "Delete {name}?"
+msgstr "{name} löschen?"
+
+#: src/session/power.zig
+msgid "Denied by policy"
+msgstr "Durch Richtlinie verweigert"
+
+#: src/session/power.zig
+msgid "Denied by system policy."
+msgstr "Durch Systemrichtlinie verweigert."
+
+#: src/control_center/panel.zig
+msgid "Desktop"
+msgstr "Schreibtisch"
+
+#: src/desktop/app_actions.zig
+msgid "Desktop Settings"
+msgstr "Schreibtischeinstellungen"
+
+#: src/control_center/search_index.zig
+msgid "Desktop Switching"
+msgstr "Schreibtischwechsel"
+
+#: src/control_center/sections/display.zig
+msgid "Desktop icons appear on this display."
+msgstr "Schreibtischsymbole erscheinen auf diesem Bildschirm."
+
+#: src/control_center/search_index.zig
+msgid "Desktop mode"
+msgstr "Schreibtischmodus"
+
+#: src/control_center/search_index.zig
+msgid "Desktop portals"
+msgstr "Schreibtischportale"
+
+#: src/control_center/search_index.zig
+msgid "Desktop switching"
+msgstr "Schreibtischwechsel"
+
+#: src/files/app_git_sidebar.zig
+msgid "Detached {count}"
+msgstr "Abgetrennt: {count}"
+
+#: src/control_center/sections/users.zig
+msgid "Details"
+msgstr "Details"
+
+#: src/files/app_places.zig
+msgid "Device"
+msgstr "Gerät"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Device Settings"
+msgstr "Geräteeinstellungen"
+
+#: src/control_center/sections/printers.zig
+msgid "Device node"
+msgstr "Geräteknoten"
+
+#: src/control_center/sections/printers.zig
+msgid "Did the test produce printed output? CUPS completion alone cannot tell."
+msgstr "Hat der Test tatsächlich gedruckt? Ein CUPS-Abschluss allein sagt das nicht aus."
+
+#: src/control_center/search_index.zig
+msgid "Dim inactive windows"
+msgstr "Inaktive Fenster abdunkeln"
+
+#: src/control_center/sections/printers.zig
+msgid "Disable printer"
+msgstr "Drucker deaktivieren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disable shortcut"
+msgstr "Tastenkürzel deaktivieren"
+
+#: src/control_center/search_index.zig
+msgid "Disable touchpad while typing"
+msgstr "Touchpad beim Tippen deaktivieren"
+
+#: src/control_center/sections/services.zig
+msgid "Disabled"
+msgstr "Deaktiviert"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disabled shortcut."
+msgstr "Tastenkürzel deaktiviert."
+
+#: src/editor/app.zig
+msgid "Discard"
+msgstr "Verwerfen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Disconnect"
+msgstr "Trennen"
+
+#: src/files/app_torrent_rows.zig
+msgid "Disconnected"
+msgstr "Getrennt"
+
+#: src/network/manager.zig
+msgid "Disconnecting Ethernet…"
+msgstr "Ethernet-Verbindung wird getrennt…"
+
+#: src/network/manager.zig
+msgid "Disconnecting…"
+msgstr "Verbindung wird getrennt…"
+
+#: src/printing/admin.zig
+msgid "Discovering printers; authorization may be required…"
+msgstr "Drucker werden gesucht; eine Autorisierung kann erforderlich sein…"
+
+#: src/system_monitor/app.zig
+msgid "Disk wait"
+msgstr "Warten auf Datenträger"
+
+#: src/control_center/panel.zig
+msgid "Display"
+msgstr "Bildschirm"
+
+#: src/control_center/search_index.zig
+msgid "Display arrangement"
+msgstr "Bildschirmanordnung"
+
+#: src/control_center/sections/printers.zig
+msgid "Display name"
+msgstr "Anzeigename"
+
+#: src/control_center/search_index.zig
+msgid "Display scale"
+msgstr "Bildschirmskalierung"
+
+#: src/control_center/panel.zig
+msgid "Display settings"
+msgstr "Bildschirmeinstellungen"
+
+#: src/control_center/panel.zig
+msgid "Displays"
+msgstr "Bildschirme"
+
+#: src/control_center/sections/display.zig
+msgid "Do nothing"
+msgstr "Nichts tun"
+
+#: src/control_center/search_index.zig
+msgid "Dock"
+msgstr "Dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock active highlight"
+msgstr "Aktive Dock-Anwendung hervorheben"
+
+#: src/control_center/search_index.zig
+msgid "Dock auto hide"
+msgstr "Dock automatisch ausblenden"
+
+#: src/control_center/search_index.zig
+msgid "Dock corner radius"
+msgstr "Eckenradius des Docks"
+
+#: src/control_center/search_index.zig
+msgid "Dock height"
+msgstr "Dock-Höhe"
+
+#: src/control_center/search_index.zig
+msgid "Dock hover zoom"
+msgstr "Dock-Vergrößerung beim Zeigen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock hover zoom (1.00× disables)"
+msgstr "Dock-Vergrößerung beim Zeigen (1,00× deaktiviert)"
+
+#: src/control_center/search_index.zig
+msgid "Dock opacity"
+msgstr "Deckkraft des Docks"
+
+#: src/control_center/search_index.zig
+msgid "Dock position"
+msgstr "Dock-Position"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock size"
+msgstr "Dock-Größe"
+
+#: src/control_center/search_index.zig
+msgid "Dock trash"
+msgstr "Papierkorb im Dock"
+
+#: src/pdf/app_document.zig
+msgid "Document is encrypted. Enter password:"
+msgstr "Dokument ist verschlüsselt. Passwort eingeben:"
+
+#: src/files/app.zig
+msgid "Documents"
+msgstr "Dokumente"
+
+#: src/control_center/search_index.zig
+msgid "Dodge file drags"
+msgstr "Dateizügen ausweichen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Does this code match the code on your device?"
+msgstr "Stimmt dieser Code mit dem Code auf deinem Gerät überein?"
+
+#: src/control_center/sections/users.zig
+msgid "Done"
+msgstr "Fertig"
+
+#: src/files/app_items.zig
+msgid "Download"
+msgstr "Herunterladen"
+
+#: src/files/app_torrents.zig
+msgid "Download to folder"
+msgstr "In Ordner herunterladen"
+
+#: src/files/torrents.zig
+msgid "Downloaded · Seeding"
+msgstr "Heruntergeladen · Wird verteilt"
+
+#: src/files/app_torrent_rows.zig
+msgid "Downloading"
+msgstr "Wird heruntergeladen"
+
+#: src/files/app.zig
+msgid "Downloads"
+msgstr "Downloads"
+
+#: src/files/app_torrents.zig
+msgid "Downloads continue after closing Files."
+msgstr "Downloads laufen nach dem Schließen von Dateien weiter."
+
+#: src/printing/options.zig
+msgid "Draft"
+msgstr "Entwurf"
+
+#: src/images/app.zig
+msgid "Drag a larger crop selection."
+msgstr "Wähle einen größeren Zuschnitt."
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."
+msgstr "Ziehe ein Element zum Umordnen oder Verschieben in einen anderen Abschnitt. Schalte es aus, um es auszublenden. Der Akku erscheint, wenn vorhanden."
+
+#: src/control_center/sections/display.zig
+msgid "Drag displays to match your desk. Click one to edit it."
+msgstr "Ordne die Bildschirme passend zu deinem Schreibtisch an. Klicke einen zum Bearbeiten an."
+
+#: src/control_center/search_index.zig
+msgid "Drag feedback"
+msgstr "Rückmeldung beim Ziehen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag items here"
+msgstr "Elemente hierher ziehen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag lift scale"
+msgstr "Anhebeskalierung beim Ziehen"
+
+#: src/control_center/search_index.zig
+msgid "Drag scale"
+msgstr "Skalierung beim Ziehen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag to move"
+msgstr "Zum Verschieben ziehen"
+
+#: src/screenshot/selector.zig
+msgid "Drag to save and copy · Esc to cancel"
+msgstr "Zum Speichern und Kopieren ziehen · Esc zum Abbrechen"
+
+#: src/images/app.zig
+msgid "Drag to select · Enter: crop · Esc: cancel"
+msgstr "Zum Auswählen ziehen · Eingabe: zuschneiden · Esc: abbrechen"
+
+#: src/control_center/sections/desktop.zig
+msgid "Dragging stops on release. Edges settle with a short animation."
+msgstr "Das Ziehen endet beim Loslassen. Die Kanten richten sich mit einer kurzen Animation aus."
+
+#: src/control_center/sections/printers.zig
+msgid "Driver"
+msgstr "Treiber"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Choose files first"
+msgstr "Restzeit: zuerst Dateien auswählen"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Complete"
+msgstr "Restzeit: abgeschlossen"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Paused"
+msgstr "Restzeit: pausiert"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Unknown · waiting for data"
+msgstr "Restzeit: unbekannt · warte auf Daten"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}h {value2}m"
+msgstr "Restzeit: {value} Std. {value2} Min."
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}m {value2}s"
+msgstr "Restzeit: {value} Min. {value2} Sek."
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}s"
+msgstr "Restzeit: {value} Sek."
+
+#: src/control_center/sections/appearance.zig
+msgid "Edge glow"
+msgstr "Kantenleuchten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Edit shortcut"
+msgstr "Tastenkürzel bearbeiten"
+
+#: src/images/app.zig
+msgid "Edits undone."
+msgstr "Bearbeitungen rückgängig gemacht."
+
+#: src/files/app_model.zig
+msgid "Eject"
+msgstr "Auswerfen"
+
+#: src/files/app_places.zig
+msgid "Ejected"
+msgstr "Ausgeworfen"
+
+#: src/files/app_places.zig
+msgid "Ejecting…"
+msgstr "Wird ausgeworfen…"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash"
+msgstr "Papierkorb leeren"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash?"
+msgstr "Papierkorb leeren?"
+
+#: src/desktop/app_actions.zig
+msgid "Empty Trash…"
+msgstr "Papierkorb leeren…"
+
+#: src/printing/ladder.zig
+msgid "Enable acceptance of jobs when the printer is ready."
+msgstr "Aktiviere die Auftragsannahme, sobald der Drucker bereit ist."
+
+#: src/control_center/sections/region.zig
+msgid "Enable {locale} in your system’s locale settings to use it in other apps and regional formats."
+msgstr "Aktiviere {locale} in den Spracheinstellungen deines Systems, um es in anderen Anwendungen und regionalen Formaten zu verwenden."
+
+#: src/control_center/sections/services.zig
+msgid "Enabled"
+msgstr "Aktiviert"
+
+#: src/system_monitor/app.zig
+msgid "End process"
+msgstr "Prozess beenden"
+
+#: src/files/app_terminal.zig
+msgid "Enlarge this window to show the terminal"
+msgstr "Vergrößere dieses Fenster, um das Terminal anzuzeigen"
+
+#: src/calculator/app.zig
+msgid "Enter = Esc clear F9 ± % = ÷100"
+msgstr "Eingabe = Esc leeren F9 ± % = ÷100"
+
+#: src/polkit/dialog.zig
+msgid "Enter Password"
+msgstr "Passwort eingeben"
+
+#: src/images/app.zig
+msgid "Enter a filename or an absolute path."
+msgstr "Gib einen Dateinamen oder absoluten Pfad ein."
+
+#: src/images/app.zig
+msgid "Enter a filename."
+msgstr "Gib einen Dateinamen ein."
+
+#: src/network/manager.zig
+msgid "Enter a network name."
+msgstr "Gib einen Netzwerknamen ein."
+
+#: src/network/manager.zig
+msgid "Enter a password (1–63 bytes)."
+msgstr "Gib ein Passwort ein (1–63 Bytes)."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a supported printer address without credentials."
+msgstr "Gib eine unterstützte Druckeradresse ohne Zugangsdaten ein."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a valid CUPS administrator username and password."
+msgstr "Gib einen gültigen Benutzernamen und ein Passwort für die CUPS-Administration ein."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid full name."
+msgstr "Gib einen gültigen vollständigen Namen ein."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid username and full name."
+msgstr "Gib einen gültigen Benutzernamen und vollständigen Namen ein."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter an account permitted to administer the local CUPS server."
+msgstr "Gib ein Konto mit Verwaltungsrechten für den lokalen CUPS-Server ein."
+
+#: src/files/app_paint.zig
+msgid "Enter confirms · Esc cancels"
+msgstr "Eingabe bestätigt · Esc bricht ab"
+
+#: src/control_center/sections/users.zig
+msgid "Enter matching passwords."
+msgstr "Gib übereinstimmende Passwörter ein."
+
+#: src/network/popup.zig
+msgid "Enter network name"
+msgstr "Netzwerknamen eingeben"
+
+#: src/control_center/sections/users.zig
+msgid "Enter new password"
+msgstr "Neues Passwort eingeben"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Enter or leave fullscreen."
+msgstr "Vollbild ein- oder ausschalten."
+
+#: src/control_center/sections/users.zig
+msgid "Enter password"
+msgstr "Passwort eingeben"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's PIN"
+msgstr "Geräte-PIN eingeben"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's six-digit passkey"
+msgstr "Sechsstelligen Geräteschlüssel eingeben"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter this code on your device, then press Enter."
+msgstr "Gib diesen Code auf deinem Gerät ein und drücke dann Eingabe."
+
+#: src/polkit/dialog.zig
+msgid "Enter your response"
+msgstr "Antwort eingeben"
+
+#: src/files/app_torrent_rows.zig
+msgid "Error"
+msgstr "Fehler"
+
+#: src/files/app_paint.zig
+msgid "Error: {value}"
+msgstr "Fehler: {value}"
+
+#: src/control_center/search_index.zig
+msgid "Ethernet"
+msgstr "Ethernet"
+
+#: src/network/manager.zig
+msgid "Ethernet adapter was removed."
+msgstr "Ethernet-Adapter wurde entfernt."
+
+#: src/network/manager.zig
+msgid "Ethernet connection timed out. Check the cable and try again."
+msgstr "Zeitüberschreitung bei Ethernet. Prüfe das Kabel und versuche es erneut."
+
+#: src/network/manager.zig
+msgid "Ethernet could not connect. Check the cable and connection settings."
+msgstr "Ethernet-Verbindung fehlgeschlagen. Prüfe Kabel und Verbindungseinstellungen."
+
+#: src/network/manager.zig
+msgid "Ethernet request failed. Check permissions and try again."
+msgstr "Ethernet-Anfrage fehlgeschlagen. Prüfe die Berechtigungen und versuche es erneut."
+
+#: src/control_center/panel.zig
+msgid "Everyday controls, all in one place."
+msgstr "Alltägliche Einstellungen an einem Ort."
+
+#: src/control_center/sections/network.zig
+msgid "Excellent"
+msgstr "Ausgezeichnet"
+
+#: src/files/properties.zig
+msgid "Execute"
+msgstr "Ausführen"
+
+#: src/control_center/sections/desktop.zig
+msgid "Existing windows outside a smaller canvas stay reachable."
+msgstr "Fenster außerhalb einer verkleinerten Leinwand bleiben erreichbar."
+
+#: src/system_monitor/app.zig
+msgid "Exited"
+msgstr "Beendet"
+
+#: src/calculator/model.zig
+msgid "Expression is full"
+msgstr "Ausdruck ist voll"
+
+#: src/files/app_model.zig
+msgid "Extract"
+msgstr "Entpacken"
+
+#: src/files/app_model.zig
+msgid "Extract to…"
+msgstr "Entpacken nach…"
+
+#: src/files/ops.zig
+msgid "Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Entpackt: {completed}. Übersprungen: {skipped}. Fehlgeschlagen: {failed}. Verbleibend: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Extracting {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Entpacken {current}/{total}: {name}… (Esc zum Abbrechen)"
+
+#: src/files/archive.zig
+msgid "Extraction cancelled"
+msgstr "Entpacken abgebrochen"
+
+#: src/control_center/sections/services.zig
+msgid "Failed"
+msgstr "Fehlgeschlagen"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create file"
+msgstr "Datei konnte nicht erstellt werden"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create folder"
+msgstr "Ordner konnte nicht erstellt werden"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to rename"
+msgstr "Umbenennen fehlgeschlagen"
+
+#: src/files/app_fileops.zig
+msgid "Failed to start transfer job"
+msgstr "Übertragungsauftrag konnte nicht gestartet werden"
+
+#: src/files/torrents.zig
+msgid "Fetching file list…"
+msgstr "Dateiliste wird abgerufen…"
+
+#: src/delete_dialog.zig
+msgid "File"
+msgstr "Datei"
+
+#: src/files/app_paint.zig
+msgid "File '{value}' already exists in destination."
+msgstr "Die Datei „{value}“ ist am Ziel bereits vorhanden."
+
+#: src/files/app_dialogs.zig
+msgid "File Conflict"
+msgstr "Dateikonflikt"
+
+#: src/control_center/sections/default_apps.zig
+msgid "File Manager"
+msgstr "Dateimanager"
+
+#: src/files/app_dialogs.zig
+msgid "File already exists"
+msgstr "Datei ist bereits vorhanden"
+
+#: src/editor/app.zig
+msgid "File changed on disk. Use Save As to keep your edits in another file."
+msgstr "Die Datei wurde auf dem Datenträger geändert. Nutze „Speichern unter“, um deine Änderungen in einer anderen Datei zu behalten."
+
+#: src/files/app_dialogs.zig
+msgid "File created"
+msgstr "Datei erstellt"
+
+#: src/control_center/search_index.zig
+msgid "File dialogs"
+msgstr "Dateidialoge"
+
+#: src/files/app_chooser.zig
+msgid "File name:"
+msgstr "Dateiname:"
+
+#: src/files/archive.zig
+msgid "File no longer exists in the archive"
+msgstr "Datei ist im Archiv nicht mehr vorhanden"
+
+#: src/pdf/app_document.zig
+msgid "File not found."
+msgstr "Datei nicht gefunden."
+
+#: src/desktop/watcher.zig
+msgid "File operation failed"
+msgstr "Dateivorgang fehlgeschlagen"
+
+#: src/delete_dialog.zig
+msgid "Files and folders in this selection"
+msgstr "Dateien und Ordner in dieser Auswahl"
+
+#: src/files/app_paint.zig
+msgid "Filter"
+msgstr "Filter"
+
+#: src/editor/app.zig
+msgid "Find"
+msgstr "Suchen"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers"
+msgstr "Verfügbare Drucker suchen"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers again and choose the current discovered device."
+msgstr "Suche erneut nach verfügbaren Druckern und wähle das aktuell erkannte Gerät."
+
+#: src/pdf/app_paint.zig
+msgid "Find in document..."
+msgstr "Im Dokument suchen…"
+
+#: src/pdf/app_paint.zig
+msgid "Find ▲"
+msgstr "Suchen ▲"
+
+#: src/editor/app.zig
+msgid "Find…"
+msgstr "Suchen…"
+
+#: src/control_center/sections/printers.zig
+msgid "Finish or cancel the printer's jobs before changing its identifier."
+msgstr "Beende oder entferne die Druckaufträge, bevor du die Kennung änderst."
+
+#: src/editor/app.zig
+msgid "Finish the file dialog or operation before closing."
+msgstr "Beende den Dateidialog oder Vorgang vor dem Schließen."
+
+#: src/files/app_places.zig
+msgid "Finish the running file operation first"
+msgstr "Beende zuerst den laufenden Dateivorgang"
+
+#: src/control_center/sections/region.zig
+msgid "First day of the week"
+msgstr "Erster Tag der Woche"
+
+#: src/control_center/search_index.zig
+msgid "First day of week"
+msgstr "Erster Wochentag"
+
+#: src/images/app.zig
+msgid "Fit"
+msgstr "Einpassen"
+
+#: src/pdf/app_paint.zig
+msgid "Fit page"
+msgstr "Seite einpassen"
+
+#: src/pdf/app_paint.zig
+msgid "Fit width"
+msgstr "Auf Breite einpassen"
+
+#: src/start_menu/panel.zig
+msgid "Five applications already pinned"
+msgstr "Bereits fünf Anwendungen angeheftet"
+
+#: src/control_center/search_index.zig
+msgid "Fixed desktop icons"
+msgstr "Feste Schreibtischsymbole"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped"
+msgstr "Gespiegelt"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 180°"
+msgstr "Gespiegelt um 180°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 270°"
+msgstr "Gespiegelt um 270°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 90°"
+msgstr "Gespiegelt um 90°"
+
+#: src/control_center/sections/desktop.zig
+msgid "Floating"
+msgstr "Schwebend"
+
+#: src/control_center/search_index.zig
+msgid "Floating apps"
+msgstr "Schwebende Anwendungen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Down"
+msgstr "Nach unten fokussieren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Left"
+msgstr "Nach links fokussieren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Next"
+msgstr "Nächstes Fenster fokussieren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Prev"
+msgstr "Vorheriges Fenster fokussieren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Right"
+msgstr "Nach rechts fokussieren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Up"
+msgstr "Nach oben fokussieren"
+
+#: src/control_center/sections/appearance.zig
+msgid "Focus camera"
+msgstr "Fokuskamera"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window above."
+msgstr "Das Fenster darüber fokussieren."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window below."
+msgstr "Das Fenster darunter fokussieren."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the left."
+msgstr "Das Fenster links fokussieren."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the right."
+msgstr "Das Fenster rechts fokussieren."
+
+#: src/control_center/search_index.zig
+msgid "Focus zoom"
+msgstr "Fokuszoom"
+
+#: src/desktop/app_paint.zig
+msgid "Folder"
+msgstr "Ordner"
+
+#: src/files/app_dialogs.zig
+msgid "Folder already exists"
+msgstr "Ordner ist bereits vorhanden"
+
+#: src/files/app_dialogs.zig
+msgid "Folder created"
+msgstr "Ordner erstellt"
+
+#: src/files/worker.zig
+msgid "Folder not found"
+msgstr "Ordner nicht gefunden"
+
+#: src/delete_dialog.zig
+msgid "Folder · includes its contents"
+msgstr "Ordner · einschließlich Inhalt"
+
+#: src/files/app_chooser.zig
+msgid "Folder:"
+msgstr "Ordner:"
+
+#: src/files/app_menu.zig
+msgid "Folders only"
+msgstr "Nur Ordner"
+
+#: src/control_center/search_index.zig
+msgid "Font"
+msgstr "Schrift"
+
+#: src/control_center/search_index.zig
+msgid "Font size"
+msgstr "Schriftgröße"
+
+#: src/control_center/sections/appearance.zig
+msgid "Fonts & cursor"
+msgstr "Schriften und Zeiger"
+
+#: src/taskbar/window_menu.zig
+msgid "Force Close"
+msgstr "Schließen erzwingen"
+
+#: src/system_monitor/app.zig
+msgid "Force quit"
+msgstr "Beenden erzwingen"
+
+#: src/system_monitor/app.zig
+msgid "Force quit requested"
+msgstr "Erzwungenes Beenden angefordert"
+
+#: src/system_monitor/app.zig
+msgid "Force quit this process?"
+msgstr "Beenden dieses Prozesses erzwingen?"
+
+#: src/system_monitor/app.zig
+msgid "Force quit…"
+msgstr "Beenden erzwingen…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget Device"
+msgstr "Gerät vergessen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget this device? Pair it again to reconnect."
+msgstr "Dieses Gerät vergessen? Kopple es zum erneuten Verbinden wieder."
+
+#: src/control_center/sections/region.zig
+msgid "Formats Preview"
+msgstr "Formatvorschau"
+
+#: src/files/app_torrents.zig
+msgid "Forward"
+msgstr "Vorwärts"
+
+#: src/control_center/sections/region.zig
+msgid "Friday"
+msgstr "Freitag"
+
+#: src/screenshot/selector.zig
+msgid "Full Screen"
+msgstr "Vollbild"
+
+#: src/battery_popup.zig
+msgid "Full capacity"
+msgstr "Volle Kapazität"
+
+#: src/control_center/sections/users.zig
+msgid "Full name"
+msgstr "Vollständiger Name"
+
+#: src/taskbar/battery.zig
+msgid "Fully Charged"
+msgstr "Vollständig geladen"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."
+msgstr "GTK-Farben angewendet. Starte GTK-Anwendungen neu. Anwendungen mit eigenen Stilen oder Sandbox-Einstellungen können abweichen."
+
+#: src/control_center/sections/desktop.zig
+msgid "Gap ({n} px)"
+msgstr "Abstand ({n} px)"
+
+#: src/control_center/sections/network.zig
+msgid "Gateway"
+msgstr "Gateway"
+
+#: src/control_center/panel.zig
+msgid "General"
+msgstr "Allgemein"
+
+#: src/files/app_layout.zig
+msgid "Git"
+msgstr "Git"
+
+#: src/files/app_paint.zig
+msgid "Git View"
+msgstr "Git-Ansicht"
+
+#: src/control_center/sections/network.zig
+msgid "Good"
+msgstr "Gut"
+
+#: src/files/app_torrents.zig
+msgid "Grid"
+msgstr "Raster"
+
+#: src/files/properties.zig
+msgid "Group"
+msgstr "Gruppe"
+
+#: src/control_center/sections/users.zig
+msgid "Groups"
+msgstr "Gruppen"
+
+#: src/control_center/sections/network.zig
+msgid "Hardware blocked"
+msgstr "Durch Hardware gesperrt"
+
+#: src/printing/ladder.zig
+msgid "Have an administrator inspect the node; never write print data to a regular file."
+msgstr "Lass einen Administrator den Knoten prüfen; schreibe niemals Druckdaten in eine reguläre Datei."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Headset · Audio and microphone"
+msgstr "Headset · Audio und Mikrofon"
+
+#: src/battery_popup.zig
+msgid "Health"
+msgstr "Zustand"
+
+#: src/printing/cups.zig
+msgid "Held"
+msgstr "Zurückgehalten"
+
+#: src/control_center/sections/desktop.zig
+msgid "Hide after"
+msgstr "Ausblenden nach"
+
+#: src/printing/options.zig
+msgid "High"
+msgstr "Hoch"
+
+#: src/control_center/sections/appearance.zig
+msgid "Highlight active app"
+msgstr "Aktive Anwendung hervorheben"
+
+#: src/control_center/sections/desktop.zig
+msgid "Highlighted: bottom-left screen"
+msgstr "Hervorgehoben: Bildschirm unten links"
+
+#: src/desktop/watcher.zig
+msgid "Home"
+msgstr "Persönlicher Ordner"
+
+#: src/control_center/sections/desktop.zig
+msgid "Horizontal Pan"
+msgstr "Horizontal schwenken"
+
+#: src/control_center/sections/desktop.zig
+msgid "How long Super + arrow keys take to slide to the next desktop."
+msgstr "Dauer des Schreibtischwechsels mit Super und Pfeiltasten."
+
+#: src/control_center/sections/input.zig
+msgid "INPUT"
+msgstr "EINGABE"
+
+#: src/control_center/sections/printers.zig
+msgid "IPP Everywhere / AirPrint"
+msgstr "IPP Everywhere / AirPrint"
+
+#: src/control_center/sections/network.zig
+msgid "IPv4 address"
+msgstr "IPv4-Adresse"
+
+#: src/control_center/search_index.zig
+msgid "Icon bottom padding"
+msgstr "Unterer Symbolabstand"
+
+#: src/control_center/search_index.zig
+msgid "Icon left padding"
+msgstr "Linker Symbolabstand"
+
+#: src/control_center/search_index.zig
+msgid "Icon theme"
+msgstr "Symbolthema"
+
+#: src/system_monitor/app.zig
+msgid "Idle"
+msgstr "Leerlauf"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Image"
+msgstr "Bild"
+
+#: src/images/app.zig
+msgid "Image exceeds the 32 megapixel preview limit"
+msgstr "Bild überschreitet die Vorschaugrenze von 32 Megapixeln"
+
+#: src/images/app.zig
+msgid "Images ({position}/{count})"
+msgstr "Bilder ({position}/{count})"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in the chosen folder"
+msgstr "Bilder im ausgewählten Ordner"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in {folder}"
+msgstr "Bilder in {folder}"
+
+#: src/control_center/panel.zig
+msgid "In Files, click an icon to open it in list or icons view. Click the name to select."
+msgstr "Klicke in Dateien in der Listen- oder Symbolansicht auf ein Symbol zum Öffnen. Klicke auf den Namen zum Auswählen."
+
+#: src/control_center/search_index.zig
+msgid "Inactive window opacity"
+msgstr "Deckkraft inaktiver Fenster"
+
+#: src/control_center/sections/printers.zig
+msgid "Inches"
+msgstr "Zoll"
+
+#: src/session/lock.zig
+msgid "Incorrect password. Try again."
+msgstr "Falsches Passwort. Versuche es erneut."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase display brightness."
+msgstr "Bildschirmhelligkeit erhöhen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase system volume."
+msgstr "Systemlautstärke erhöhen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase the focused window's size."
+msgstr "Das fokussierte Fenster vergrößern."
+
+#: src/control_center/sections/region.zig
+msgid "Inherited from login ({locale})"
+msgstr "Von der Anmeldung übernommen ({locale})"
+
+#: src/control_center/panel.zig
+msgid "Input"
+msgstr "Eingabe"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Input · Keyboard, mouse or controller"
+msgstr "Eingabe · Tastatur, Maus oder Controller"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Install"
+msgstr "Installieren"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."
+msgstr "Installiere qt5ct für Qt-5- oder qt6ct für Qt-6-Anwendungen und wende die Farben erneut an."
+
+#: src/files/appimage.zig
+msgid "Install squashfs-tools to add AppImages to applications"
+msgstr "Installiere squashfs-tools, um AppImages zu Anwendungen hinzuzufügen"
+
+#: src/control_center/search_index.zig
+msgid "Install theme"
+msgstr "Thema installieren"
+
+#: src/control_center/sections/appearance.zig
+msgid "Install theme…"
+msgstr "Thema installieren…"
+
+#: src/files/app_opening.zig
+msgid "Installing theme…"
+msgstr "Thema wird installiert…"
+
+#: src/session/power.zig
+msgid "Interactive authorization required."
+msgstr "Interaktive Autorisierung erforderlich."
+
+#: src/control_center/welcome.zig
+msgid "Interface scale"
+msgstr "Oberflächenskalierung"
+
+#: src/control_center/sections/network.zig
+msgid "Internet"
+msgstr "Internet"
+
+#: src/control_center/sections/network.zig
+msgid "Internet access not verified"
+msgstr "Internetzugang nicht überprüft"
+
+#: src/files/git.zig
+msgid "Invalid branch name"
+msgstr "Ungültiger Zweigname"
+
+#: src/files/app_dialogs.zig
+msgid "Invalid characters in name"
+msgstr "Ungültige Zeichen im Namen"
+
+#: src/printing/admin.zig
+msgid "Invalid cups-pk-helper reply."
+msgstr "Ungültige cups-pk-helper-Antwort."
+
+#: src/files/main.zig
+msgid "Invalid dropped list"
+msgstr "Ungültige Ablegeliste"
+
+#: src/files/main.zig
+msgid "Invalid file clipboard"
+msgstr "Ungültige Datei-Zwischenablage"
+
+#: src/files/app_opening.zig
+msgid "Invalid folder picker result"
+msgstr "Ungültiges Ergebnis der Ordnerauswahl"
+
+#: src/pdf/app_document.zig
+msgid "Invalid or corrupt PDF document."
+msgstr "Ungültiges oder beschädigtes PDF-Dokument."
+
+#: src/printing/admin.zig
+msgid "Invalid or oversized printer discovery reply."
+msgstr "Ungültige oder zu große Antwort der Druckersuche."
+
+#: src/printing/admin.zig
+msgid "Invalid printer administration reply."
+msgstr "Ungültige Antwort der Druckerverwaltung."
+
+#: src/printing/admin.zig
+msgid "Invalid service-manager reply."
+msgstr "Ungültige Antwort der Dienstverwaltung."
+
+#: src/printing/admin.zig
+msgid "Invalid system bus reply."
+msgstr "Ungültige Systembus-Antwort."
+
+#: src/files/torrents.zig
+msgid "Invalid transfer metadata"
+msgstr "Ungültige Übertragungsmetadaten"
+
+#: src/files/torrents.zig
+msgid "Invalid transfer update"
+msgstr "Ungültige Übertragungsaktualisierung"
+
+#: src/control_center/sections/printers.zig
+msgid "It printed"
+msgstr "Es wurde gedruckt"
+
+#: src/control_center/search_index.zig
+msgid "Italic clock"
+msgstr "Uhr kursiv"
+
+#: src/control_center/sections/appearance.zig
+msgid "Italic clock text"
+msgstr "Uhrtext kursiv"
+
+#: src/files/app_paint.zig
+msgid "Items"
+msgstr "Objekte"
+
+#: src/files/app_fileops.zig
+msgid "Items moved to Trash"
+msgstr "Objekte in den Papierkorb verschoben"
+
+#: src/files/app_fileops.zig
+msgid "Items permanently deleted"
+msgstr "Objekte endgültig gelöscht"
+
+#: src/control_center/sections/printers.zig
+msgid "Job history · {n}"
+msgstr "Auftragsverlauf · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Job {id} · {state}"
+msgstr "Auftrag {id} · {state}"
+
+#: src/network/popup.zig
+msgid "Join"
+msgstr "Beitreten"
+
+#: src/control_center/sections/network.zig
+msgid "Join Hidden Network"
+msgstr "Verstecktem Netzwerk beitreten"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep connection"
+msgstr "Verbindung behalten"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep desktop icons in place"
+msgstr "Schreibtischsymbole fixieren"
+
+#: src/control_center/sections/users.zig
+msgid "Keep home"
+msgstr "Persönlichen Ordner behalten"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep icons fixed on screen while panning and zooming."
+msgstr "Symbole beim Schwenken und Zoomen an ihrer Bildschirmposition halten."
+
+#: src/control_center/sections/printers.zig
+msgid "Keep identifier"
+msgstr "Kennung behalten"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep printer"
+msgstr "Drucker behalten"
+
+#: src/control_center/sections/appearance.zig
+msgid "Keep zoom"
+msgstr "Zoom behalten"
+
+#: src/control_center/panel.zig
+msgid "Keyboard Shortcuts"
+msgstr "Tastenkürzel"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat delay"
+msgstr "Tastenwiederholverzögerung"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat rate"
+msgstr "Tastenwiederholrate"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard shortcuts"
+msgstr "Tastenkürzel"
+
+#: src/files/app_torrent_rows.zig
+msgid "Known peers: {value}"
+msgstr "Bekannte Peers: {value}"
+
+#: src/control_center/sections/appearance.zig
+msgid "LEFT"
+msgstr "LINKS"
+
+#: src/control_center/sections/printers.zig
+msgid "Label printer and advanced test tools"
+msgstr "Etikettendrucker und erweiterte Testwerkzeuge"
+
+#: src/control_center/sections/region.zig
+msgid "Language"
+msgstr "Sprache"
+
+#: src/control_center/sections/printers.zig
+msgid "Language: {language}. This sample bypasses the filters and uses the queue's backend."
+msgstr "Sprache: {language}. Dieses Muster umgeht die Filter und nutzt das Backend der Warteschlange."
+
+#: src/control_center/sections/appearance.zig
+msgid "Large"
+msgstr "Groß"
+
+#: src/files/app_menu.zig
+msgid "Largest first"
+msgstr "Größte zuerst"
+
+#: src/control_center/sections/printers.zig
+msgid "Last job"
+msgstr "Letzter Auftrag"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Last reported signal: {signal} dBm"
+msgstr "Zuletzt gemeldetes Signal: {signal} dBm"
+
+#: src/start_menu/panel.zig
+msgid "Launch failed. The application may have been removed."
+msgstr "Start fehlgeschlagen. Die Anwendung wurde möglicherweise entfernt."
+
+#: src/control_center/search_index.zig
+msgid "Launch splash"
+msgstr "Startanzeige"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Launcher"
+msgstr "Anwendungsstarter"
+
+#: src/control_center/sections/desktop.zig
+msgid "Layouts and split sizes are saved for your next session."
+msgstr "Anordnungen und Teilungsgrößen werden für deine nächste Sitzung gespeichert."
+
+#: src/network/popup.zig
+msgid "Leave blank to use saved password"
+msgstr "Leer lassen, um das gespeicherte Passwort zu verwenden"
+
+#: src/control_center/sections/appearance.zig
+msgid "Left"
+msgstr "Links"
+
+#: src/control_center/search_index.zig
+msgid "Lid close action"
+msgstr "Aktion beim Zuklappen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Light the active window's edge near the pointer"
+msgstr "Fensterkante in Zeigernähe aufhellen"
+
+#: src/control_center/sections/network.zig
+msgid "Limited access"
+msgstr "Eingeschränkter Zugang"
+
+#: src/editor/app.zig
+msgid "Line {line}, Column {column} · UTF-8{bom} · {ending}"
+msgstr "Zeile {line}, Spalte {column} · UTF-8{bom} · {ending}"
+
+#: src/files/app_listing.zig
+msgid "Link"
+msgstr "Verknüpfung"
+
+#: src/pdf/app_pointer.zig
+msgid "Link copied. Paste it into your browser."
+msgstr "Link kopiert. Füge ihn in deinen Browser ein."
+
+#: src/files/properties.zig
+msgid "Link permissions cannot be changed"
+msgstr "Link-Zugriffsrechte können nicht geändert werden"
+
+#: src/control_center/sections/network.zig
+msgid "Link speed"
+msgstr "Verbindungsgeschwindigkeit"
+
+#: src/files/app_torrents.zig
+msgid "List"
+msgstr "Liste"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper height"
+msgstr "Höhe des eingelegten Papiers"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper width"
+msgstr "Breite des eingelegten Papiers"
+
+#: src/images/app.zig
+msgid "Loading image…"
+msgstr "Bild wird geladen…"
+
+#: src/control_center/sections/printers.zig
+msgid "Loading printers…"
+msgstr "Drucker werden geladen…"
+
+#: src/control_center/sections/services.zig
+msgid "Loading services…"
+msgstr "Dienste werden geladen…"
+
+#: src/files/properties.zig
+msgid "Location"
+msgstr "Speicherort"
+
+#: src/control_center/sections/display.zig
+msgid "Lock"
+msgstr "Sperren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock Screen"
+msgstr "Bildschirm sperren"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock the session and turn off the display."
+msgstr "Sitzung sperren und Bildschirm ausschalten."
+
+#: src/control_center/sections/display.zig
+msgid "Locks and sleeps, even with another display connected."
+msgstr "Sperrt und versetzt den Rechner in Bereitschaft, auch mit angeschlossenem Zweitbildschirm."
+
+#: src/control_center/sections/display.zig
+msgid "Locks, and turns off the built-in screen while another display is connected."
+msgstr "Sperrt und schaltet den eingebauten Bildschirm bei angeschlossenem Zweitbildschirm aus."
+
+#: src/session/lock.zig
+msgid "Log In"
+msgstr "Anmelden"
+
+#: src/power_menu.zig
+msgid "Log Out"
+msgstr "Abmelden"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Log out of the desktop session."
+msgstr "Von der Schreibtischsitzung abmelden."
+
+#: src/session/power.zig
+msgid "Logind refused the request."
+msgstr "Logind hat die Anfrage verweigert."
+
+#: src/session/power.zig
+msgid "Logind request failed."
+msgstr "Logind-Anfrage fehlgeschlagen."
+
+#: src/session/power.zig
+msgid "Logind returned a malformed reply."
+msgstr "Logind hat eine fehlerhafte Antwort geliefert."
+
+#: src/session/power.zig
+msgid "Logind returned an unrecognized reply."
+msgstr "Logind hat eine unbekannte Antwort geliefert."
+
+#: src/session/lock.zig
+msgid "Lost contact with login service. Try again."
+msgstr "Verbindung zum Anmeldedienst verloren. Versuche es erneut."
+
+#: src/control_center/sections/network.zig
+msgid "MAC address"
+msgstr "MAC-Adresse"
+
+#: src/control_center/sections/display.zig
+msgid "Main display"
+msgstr "Hauptbildschirm"
+
+#: src/control_center/sections/display.zig
+msgid "Make main display"
+msgstr "Als Hauptbildschirm festlegen"
+
+#: src/control_center/panel.zig
+msgid "Make your desktop your own."
+msgstr "Gestalte deinen Schreibtisch nach deinen Wünschen."
+
+#: src/control_center/panel.zig
+msgid "Make your mouse and keyboard feel right."
+msgstr "Passe Maus und Tastatur an deine Bedürfnisse an."
+
+#: src/control_center/panel.zig
+msgid "Manage and analyze systemd services."
+msgstr "Systemd-Dienste verwalten und analysieren."
+
+#: src/control_center/sections/printers.zig
+msgid "Manage…"
+msgstr "Verwalten…"
+
+#: src/control_center/sections/printers.zig
+msgid "Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"
+msgstr "Ränder (mm): links {left}, rechts {right}, oben {top}, unten {bottom}"
+
+#: src/control_center/panel.zig
+msgid "Master volume"
+msgstr "Gesamtlautstärke"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Maximize or restore the focused window."
+msgstr "Das fokussierte Fenster maximieren oder wiederherstellen."
+
+#: src/control_center/sections/printers.zig
+msgid "Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."
+msgstr "Miss das Rechteck von Kante zu Kante in der ausgewählten Einheit. Die Druckskalierung ist für diesen Test deaktiviert."
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle height"
+msgstr "Gemessene Rechteckhöhe"
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle width"
+msgstr "Gemessene Rechteckbreite"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Media"
+msgstr "Medium"
+
+#: src/control_center/sections/printers.zig
+msgid "Media and resolution"
+msgstr "Medium und Auflösung"
+
+#: src/printing/ladder.zig
+msgid "Media and resolution need confirmation against what is loaded in the printer."
+msgstr "Papier und Auflösung müssen mit dem eingelegten Material abgeglichen werden."
+
+#: src/control_center/sections/appearance.zig
+msgid "Medium"
+msgstr "Mittel"
+
+#: src/system_monitor/app.zig
+msgid "Memory (resident)"
+msgstr "Speicher (resident)"
+
+#: src/editor/main.zig
+msgid "Menu"
+msgstr "Menü"
+
+#: src/control_center/search_index.zig
+msgid "Menu bottom padding"
+msgstr "Unterer Menüabstand"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu height"
+msgstr "Menühöhe"
+
+#: src/control_center/search_index.zig
+msgid "Menu left padding"
+msgstr "Linker Menüabstand"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu width"
+msgstr "Menübreite"
+
+#: src/files/app_torrent_rows.zig
+msgid "Metadata…"
+msgstr "Metadaten…"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mic Mute"
+msgstr "Mikrofon stummschalten"
+
+#: src/osd_paint.zig
+msgid "Mic on"
+msgstr "Mikrofon an"
+
+#: src/control_center/search_index.zig
+msgid "Microphone volume"
+msgstr "Mikrofonlautstärke"
+
+#: src/control_center/sections/printers.zig
+msgid "Millimetres"
+msgstr "Millimeter"
+
+#: src/control_center/sections/desktop.zig
+msgid "Mini Map"
+msgstr "Minikarte"
+
+#: src/control_center/search_index.zig
+msgid "Mini map"
+msgstr "Minikarte"
+
+#: src/control_center/search_index.zig
+msgid "Mini map hide delay"
+msgstr "Ausblendverzögerung der Minikarte"
+
+#: src/control_center/search_index.zig
+msgid "Mini map position"
+msgstr "Position der Minikarte"
+
+#: src/files/app_layout.zig
+msgid "Modified"
+msgstr "Geändert"
+
+#: src/control_center/sections/region.zig
+msgid "Monday"
+msgstr "Montag"
+
+#: src/control_center/search_index.zig
+msgid "Monitor"
+msgstr "Monitor"
+
+#: src/control_center/sections/printers.zig
+msgid "More printing options"
+msgstr "Weitere Druckoptionen"
+
+#: src/control_center/welcome.zig
+msgid "More settings"
+msgstr "Weitere Einstellungen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Motion & feedback"
+msgstr "Bewegung und Rückmeldung"
+
+#: src/files/app_model.zig
+msgid "Mount"
+msgstr "Einhängen"
+
+#: src/files/app_places.zig
+msgid "Mounted"
+msgstr "Eingebunden"
+
+#: src/files/app_places.zig
+msgid "Mounting…"
+msgstr "Wird eingebunden…"
+
+#: src/control_center/search_index.zig
+msgid "Mouse speed"
+msgstr "Mausgeschwindigkeit"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move To Workspace"
+msgstr "In Arbeitsbereich verschieben"
+
+#: src/control_center/sections/appearance.zig
+msgid "Move file manager aside"
+msgstr "Dateimanager zur Seite schieben"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider down."
+msgstr "Die zugehörige Teilungsgrenze nach unten bewegen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider left."
+msgstr "Die zugehörige Teilungsgrenze nach links bewegen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider right."
+msgstr "Die zugehörige Teilungsgrenze nach rechts bewegen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider up."
+msgstr "Die zugehörige Teilungsgrenze nach oben bewegen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to depth {depth}."
+msgstr "Das Fenster auf Tiefe {depth} verschieben."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to workspace {n} and follow it."
+msgstr "Das Fenster in Arbeitsbereich {n} verschieben und ihm folgen."
+
+#: src/images/app.zig
+msgid "Move this image to Trash?"
+msgstr "Dieses Bild in den Papierkorb verschieben?"
+
+#: src/delete_dialog.zig
+msgid "Move to Trash"
+msgstr "In den Papierkorb verschieben"
+
+#: src/files/app_dialogs.zig
+msgid "Move to Trash?"
+msgstr "In den Papierkorb verschieben?"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move to workspace."
+msgstr "In Arbeitsbereich verschieben."
+
+#: src/control_center/welcome.zig
+msgid "Move, resize and overlap windows."
+msgstr "Fenster verschieben, skalieren und überlappen."
+
+#: src/images/app.zig
+msgid "Moved to Trash."
+msgstr "In den Papierkorb verschoben."
+
+#: src/images/app.zig
+msgid "Moving to Trash…"
+msgstr "Wird in den Papierkorb verschoben…"
+
+#: src/files/app.zig
+msgid "Music"
+msgstr "Musik"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute system audio."
+msgstr "Systemaudio stummschalten oder Stummschaltung aufheben."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute the microphone."
+msgstr "Mikrofon stummschalten oder Stummschaltung aufheben."
+
+#: src/osd_paint.zig
+msgid "Muted"
+msgstr "Stumm"
+
+#: src/system_monitor/app.zig
+msgid "My processes"
+msgstr "Meine Prozesse"
+
+#: src/files/app_layout.zig
+msgid "Name"
+msgstr "Name"
+
+#: src/files/app_dialogs.zig
+msgid "Name cannot be empty"
+msgstr "Der Name darf nicht leer sein"
+
+#: src/files/app_menu.zig
+msgid "Name: A to Z"
+msgstr "Name: A bis Z"
+
+#: src/files/app_menu.zig
+msgid "Name: Z to A"
+msgstr "Name: Z bis A"
+
+#: src/files/properties.zig
+msgid "Named pipe"
+msgstr "Benannte Pipe"
+
+#: src/control_center/search_index.zig
+msgid "Natural scroll"
+msgstr "Natürliches Scrollen"
+
+#: src/control_center/sections/printers.zig
+msgid "Neither test produced output: check the backend, connection, printer and loaded paper."
+msgstr "Keiner der Tests hat gedruckt: Prüfe Backend, Verbindung, Drucker und eingelegtes Papier."
+
+#: src/control_center/panel.zig
+msgid "Network"
+msgstr "Netzwerk"
+
+#: src/network/popup.zig
+msgid "Network Name (SSID)"
+msgstr "Netzwerkname (SSID)"
+
+#: src/network/popup.zig
+msgid "Network Settings"
+msgstr "Netzwerkeinstellungen"
+
+#: src/control_center/sections/network.zig
+msgid "Network name"
+msgstr "Netzwerkname"
+
+#: src/control_center/sections/network.zig
+msgid "Network name (SSID)"
+msgstr "Netzwerkname (SSID)"
+
+#: src/control_center/sections/network.zig
+msgid "Network names must be at most 32 bytes."
+msgstr "Netzwerknamen dürfen höchstens 32 Bytes lang sein."
+
+#: src/printing/ladder.zig
+msgid "Network reachability has not been checked."
+msgstr "Die Erreichbarkeit im Netzwerk wurde nicht geprüft."
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager is unavailable"
+msgstr "NetworkManager ist nicht verfügbar"
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager unavailable"
+msgstr "NetworkManager nicht verfügbar"
+
+#: src/editor/app.zig
+msgid "New"
+msgstr "Neu"
+
+#: src/files/app_dialogs.zig
+msgid "New Branch"
+msgstr "Neuer Zweig"
+
+#: src/desktop/app_actions.zig
+msgid "New File"
+msgstr "Neue Datei"
+
+#: src/desktop/app_paint.zig
+msgid "New File — Enter creates"
+msgstr "Neue Datei — Eingabe erstellt"
+
+#: src/files/app_dialogs.zig
+msgid "New File.txt"
+msgstr "Neue Datei.txt"
+
+#: src/desktop/app_actions.zig
+msgid "New Folder"
+msgstr "Neuer Ordner"
+
+#: src/files/app_git_sidebar.zig
+msgid "New branch"
+msgstr "Neuer Zweig"
+
+#: src/control_center/sections/users.zig
+msgid "New password"
+msgstr "Neues Passwort"
+
+#: src/chrome_tabs.zig
+msgid "New tab"
+msgstr "Neuer Tab"
+
+#: src/files/app_menu.zig
+msgid "Newest first"
+msgstr "Neueste zuerst"
+
+#: src/editor/app.zig
+msgid "Next"
+msgstr "Weiter"
+
+#: src/session/lock.zig
+msgid "Next account"
+msgstr "Nächstes Konto"
+
+#: src/control_center/search_index.zig
+msgid "Night light"
+msgstr "Nachtlicht"
+
+#: src/control_center/search_index.zig
+msgid "Night light temperature"
+msgstr "Nachtlichttemperatur"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No Bluetooth adapter found"
+msgstr "Kein Bluetooth-Adapter gefunden"
+
+#: src/control_center/sections/network.zig
+msgid "No Wi-Fi adapter found"
+msgstr "Kein WLAN-Adapter gefunden"
+
+#: src/control_center/sections/sound.zig
+msgid "No active audio streams"
+msgstr "Keine aktiven Audioströme"
+
+#: src/control_center/sections/printers.zig
+msgid "No active jobs"
+msgstr "Keine aktiven Aufträge"
+
+#: src/control_center/sections/network.zig
+msgid "No adapter"
+msgstr "Kein Adapter"
+
+#: src/files/open_with.zig
+msgid "No applications available"
+msgstr "Keine Anwendungen verfügbar"
+
+#: src/start_menu/panel.zig
+msgid "No applications found"
+msgstr "Keine Anwendungen gefunden"
+
+#: src/control_center/panel.zig
+msgid "No audio device available"
+msgstr "Kein Audiogerät verfügbar"
+
+#: src/files/app_paint.zig
+msgid "No changed files"
+msgstr "Keine geänderten Dateien"
+
+#: src/control_center/sections/users.zig
+msgid "No changes were made. Authentication was cancelled or the request failed."
+msgstr "Es wurden keine Änderungen vorgenommen. Die Authentifizierung wurde abgebrochen oder die Anfrage ist fehlgeschlagen."
+
+#: src/pdf/app_paint.zig
+msgid "No document open. Click 'Open' or press Ctrl+O."
+msgstr "Kein Dokument geöffnet. Klicke auf „Öffnen“ oder drücke Strg+O."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "No images in this folder"
+msgstr "Keine Bilder in diesem Ordner"
+
+#: src/control_center/sections/network.zig
+msgid "No internet access"
+msgstr "Kein Internetzugang"
+
+#: src/control_center/sections/network.zig
+msgid "No internet connection"
+msgstr "Keine Internetverbindung"
+
+#: src/control_center/sections/users.zig
+msgid "No login accounts were found."
+msgstr "Keine Anmeldekonten gefunden."
+
+#: src/session/lock.zig
+msgid "No login service"
+msgstr "Kein Anmeldedienst"
+
+#: src/printing/ladder.zig
+msgid "No matching USB device is available to identify its node."
+msgstr "Kein passendes USB-Gerät zum Ermitteln seines Knotens verfügbar."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No matching devices"
+msgstr "Keine passenden Geräte"
+
+#: src/files/app_paint.zig
+msgid "No matching items"
+msgstr "Keine passenden Objekte"
+
+#: src/system_monitor/app.zig
+msgid "No matching processes"
+msgstr "Keine passenden Prozesse"
+
+#: src/control_center/sections/services.zig
+msgid "No matching services."
+msgstr "Keine passenden Dienste."
+
+#: src/control_center/sections/network.zig
+msgid "No networks found. Scan to try again."
+msgstr "Keine Netzwerke gefunden. Suche erneut."
+
+#: src/network/popup.zig
+msgid "No networks found. Try reopening to scan again."
+msgstr "Keine Netzwerke gefunden. Öffne die Ansicht erneut zum Suchen."
+
+#: src/pdf/app_paint.zig
+msgid "No outline in document"
+msgstr "Dokument enthält kein Inhaltsverzeichnis"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No paired devices. Choose Pair New Device to get started."
+msgstr "Keine gekoppelten Geräte. Wähle „Neues Gerät koppeln“, um zu beginnen."
+
+#: src/pdf/main.zig
+msgid "No print service answered (xdg-desktop-portal)."
+msgstr "Kein Druckdienst hat geantwortet (xdg-desktop-portal)."
+
+#: src/control_center/sections/printers.zig
+msgid "No printers configured."
+msgstr "Keine Drucker eingerichtet."
+
+#: src/files/app_paint.zig
+msgid "No recent files"
+msgstr "Keine zuletzt verwendeten Dateien"
+
+#: src/printing/ladder.zig
+msgid "No recent job information is available."
+msgstr "Keine aktuellen Auftragsinformationen verfügbar."
+
+#: src/control_center/sections/users.zig
+msgid "No sessions available"
+msgstr "Keine Sitzungen verfügbar"
+
+#: src/session/lock.zig
+msgid "No sessions installed"
+msgstr "Keine Sitzungen installiert"
+
+#: src/control_center/search.zig
+msgid "No settings found"
+msgstr "Keine Einstellungen gefunden"
+
+#: src/share_picker/client.zig
+msgid "No sources available."
+msgstr "Keine Quellen verfügbar."
+
+#: src/control_center/panel.zig
+msgid "No supported backlight"
+msgstr "Keine unterstützte Hintergrundbeleuchtung"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No supported profiles reported"
+msgstr "Keine unterstützten Profile gemeldet"
+
+#: src/control_center/sections/printers.zig
+msgid "No supported resolution consistently matches both measurements. Check the ruler and print scaling."
+msgstr "Keine unterstützte Auflösung passt zu beiden Messungen. Prüfe Lineal und Druckskalierung."
+
+#: src/files/app_terminal.zig
+msgid "No terminal directory"
+msgstr "Kein Terminalordner"
+
+#: src/files/app_torrents.zig
+msgid "No transfers yet. Add a .torrent file or magnet link."
+msgstr "Noch keine Übertragungen. Füge eine .torrent-Datei oder einen Magnet-Link hinzu."
+
+#: src/control_center/sections/printers.zig
+msgid "No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."
+msgstr "Kein eindeutiger automatischer Treibertreffer. Wähle einen Treiber, prüfe eine IPP-Adresse oder wähle ausdrücklich eine Rohwarteschlange."
+
+#: src/control_center/sections/printers.zig
+msgid "No usblp node was found; CUPS may still use libusb or ipp-usb."
+msgstr "Kein usblp-Geräteknoten gefunden; CUPS kann dennoch libusb oder ipp-usb nutzen."
+
+#: src/session/lock.zig
+msgid "No user accounts found"
+msgstr "Keine Benutzerkonten gefunden"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter"
+msgstr "Kein Kabelnetzwerkadapter"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter found"
+msgstr "Kein Kabelnetzwerkadapter gefunden"
+
+#: src/control_center/sections/appearance.zig
+msgid "None"
+msgstr "Keine"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Noop"
+msgstr "Keine Aktion"
+
+#: src/control_center/sections/display.zig
+msgid "Normal"
+msgstr "Normal"
+
+#: src/files/worker.zig
+msgid "Not a directory"
+msgstr "Kein Ordner"
+
+#: src/control_center/sections/printers.zig
+msgid "Not accepting new jobs"
+msgstr "Keine Annahme neuer Aufträge"
+
+#: src/files/volumes.zig
+msgid "Not authorized to eject {name}"
+msgstr "Keine Berechtigung zum Auswerfen von {name}"
+
+#: src/files/volumes.zig
+msgid "Not authorized to mount {name}"
+msgstr "Keine Berechtigung zum Einbinden von {name}"
+
+#: src/session/power.zig
+msgid "Not available on this system."
+msgstr "Auf diesem System nicht verfügbar."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Not connected"
+msgstr "Nicht verbunden"
+
+#: src/editor/app.zig
+msgid "Not enough free memory to hold this file."
+msgstr "Nicht genug freier Speicher für diese Datei."
+
+#: src/system_monitor/app.zig
+msgid "Not enough memory to display every process"
+msgstr "Nicht genug Speicher zum Anzeigen aller Prozesse"
+
+#: src/printing/cups.zig
+msgid "Not enough memory to load printer status. Refresh to check the result."
+msgstr "Nicht genug Speicher zum Laden des Druckerstatus. Aktualisiere, um das Ergebnis zu prüfen."
+
+#: src/pdf/app_document.zig
+msgid "Not enough memory to open this document."
+msgstr "Nicht genug Speicher zum Öffnen dieses Dokuments."
+
+#: src/control_center/panel.zig
+msgid "Not enough memory to show this page."
+msgstr "Nicht genug Speicher zum Anzeigen dieser Seite."
+
+#: src/images/app.zig
+msgid "Not enough memory."
+msgstr "Nicht genug Speicher."
+
+#: src/files/app_places.zig
+msgid "Not found"
+msgstr "Nicht gefunden"
+
+#: src/control_center/sections/sound.zig
+msgid "Not saved"
+msgstr "Nicht gespeichert"
+
+#: src/control_center/sections/region.zig
+msgid "Not specified"
+msgstr "Nicht angegeben"
+
+#: src/session/power.zig
+msgid "Not supported"
+msgstr "Nicht unterstützt"
+
+#: src/files/app_places.zig
+msgid "Nothing to add to Places"
+msgstr "Nichts zu Orten hinzuzufügen"
+
+#: src/notifications/toast.zig
+msgid "Notification"
+msgstr "Benachrichtigung"
+
+#: src/control_center/sections/services.zig
+msgid "Notify"
+msgstr "Notify"
+
+#: src/systemd.zig
+msgid "Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."
+msgstr "Notify-Überschreibung gespeichert, aber systemd konnte sie nicht neu laden. Versuche Aktualisieren nach einem Daemon-Neuladen."
+
+#: src/systemd.zig
+msgid "Notify override saved, but the selected type is not active in systemd. Check other service overrides."
+msgstr "Notify-Überschreibung gespeichert, aber der gewählte Typ ist in systemd nicht aktiv. Prüfe andere Dienstüberschreibungen."
+
+#: src/control_center/sections/services.zig
+msgid "Notify sets the service type and applies on its next start. Saving requires administrator authentication."
+msgstr "Notify legt den Diensttyp fest und gilt beim nächsten Start. Zum Speichern ist eine Administrator-Authentifizierung erforderlich."
+
+#: src/systemd.zig
+msgid "Notify setting saved. Applies on the next service start."
+msgstr "Notify-Einstellung gespeichert. Gilt beim nächsten Dienststart."
+
+#: src/control_center/sections/region.zig
+msgid "Number"
+msgstr "Zahl"
+
+#: src/files/app_paint.zig
+msgid "OK"
+msgstr "OK"
+
+#: src/control_center/sections/appearance.zig
+msgid "Off"
+msgstr "Aus"
+
+#: src/control_center/sections/network.zig
+msgid "Offline"
+msgstr "Offline"
+
+#: src/printing/admin.zig
+msgid "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+msgstr "Alte Druckerstandardüberschreibung entfernt, aber die neue Druckeroption konnte nicht angewendet werden. Aktualisiere und prüfe die Option."
+
+#: src/files/app_menu.zig
+msgid "Oldest first"
+msgstr "Älteste zuerst"
+
+#: src/control_center/sections/appearance.zig
+msgid "On"
+msgstr "An"
+
+#: src/taskbar/battery.zig
+msgid "On Battery"
+msgstr "Akkubetrieb"
+
+#: src/printing/options.zig
+msgid "One-sided"
+msgstr "Einseitig"
+
+#: src/files/properties.zig
+msgid "Only the owner can change permissions"
+msgstr "Nur der Besitzer kann die Zugriffsrechte ändern"
+
+#: src/files/appimage.zig
+msgid "Only type-2 AppImages are supported"
+msgstr "Nur AppImages vom Typ 2 werden unterstützt"
+
+#: src/control_center/sections/network.zig
+msgid "Open"
+msgstr "Öffnen"
+
+#: src/files/app.zig
+msgid "Open File"
+msgstr "Datei öffnen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor"
+msgstr "Systemmonitor öffnen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor, or restore and focus its window."
+msgstr "Systemmonitor öffnen oder sein Fenster wiederherstellen und fokussieren."
+
+#: src/files/app_dialogs.zig
+msgid "Open With"
+msgstr "Öffnen mit"
+
+#: src/desktop/app_actions.zig
+msgid "Open With…"
+msgstr "Öffnen mit…"
+
+#: src/control_center/sections/network.zig
+msgid "Open a browser to sign in"
+msgstr "Zur Anmeldung einen Browser öffnen"
+
+#: src/control_center/sections/desktop.zig
+msgid "Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."
+msgstr "Öffne eine Anwendung, um sie hier hinzuzufügen. Erweiterte Regeln für Titel, Backend und Platzhalter nutzen floating unter [[window_rules]] in deiner Konfiguration."
+
+#: src/pdf/app_keyboard.zig
+msgid "Open another PDF from Files in a new window."
+msgstr "Öffne ein weiteres PDF aus Dateien in einem neuen Fenster."
+
+#: src/control_center/search_index.zig
+msgid "Open files with a single click"
+msgstr "Dateien mit einfachem Klick öffnen"
+
+#: src/files/app_model.zig
+msgid "Open in New Window"
+msgstr "In neuem Fenster öffnen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open or close the application launcher."
+msgstr "Den Anwendungsstarter öffnen oder schließen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open the session and power menu."
+msgstr "Das Sitzungs- und Energiemenü öffnen."
+
+#: src/files/app_layout.zig
+msgid "Opened"
+msgstr "Geöffnet"
+
+#: src/files/open_with.zig
+msgid "Opened, but could not save the default app"
+msgstr "Geöffnet, aber Standardanwendung konnte nicht gespeichert werden"
+
+#: src/pdf/app_paint.zig
+msgid "Opening document..."
+msgstr "Dokument wird geöffnet…"
+
+#: src/editor/app.zig
+msgid "Opening…"
+msgstr "Wird geöffnet…"
+
+#: src/control_center/sections/services.zig
+msgid "Optimize"
+msgstr "Optimieren"
+
+#: src/files/properties.zig
+msgid "Others"
+msgstr "Andere"
+
+#: src/files/git.zig
+msgid "Out of memory"
+msgstr "Nicht genug Speicher"
+
+#: src/pdf/app_paint.zig
+msgid "Outline"
+msgstr "Inhaltsverzeichnis"
+
+#: src/control_center/sections/sound.zig
+msgid "Output"
+msgstr "Ausgabe"
+
+#: src/control_center/search_index.zig
+msgid "Output balance"
+msgstr "Ausgabebalance"
+
+#: src/control_center/sections/display.zig
+msgid "Output name"
+msgstr "Ausgabename"
+
+#: src/control_center/search_index.zig
+msgid "Output volume"
+msgstr "Ausgabelautstärke"
+
+#: src/control_center/sections/desktop.zig
+msgid "Output: {name}"
+msgstr "Ausgabe: {name}"
+
+#: src/files/properties.zig
+msgid "Owner"
+msgstr "Besitzer"
+
+#: src/pdf/app.zig
+msgid "PDF Viewer"
+msgstr "PDF-Betrachter"
+
+#: src/delete_dialog.zig
+msgid "PDF document"
+msgstr "PDF-Dokument"
+
+#: src/system_monitor/app.zig
+msgid "PID"
+msgstr "PID"
+
+#: src/files/app_sidebar_paint.zig
+msgid "PLACES"
+msgstr "ORTE"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "PNG and SVG images"
+msgstr "PNG- und SVG-Bilder"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pack or system default"
+msgstr "Themen- oder Systemstandard"
+
+#: src/control_center/sections/appearance.zig
+msgid "Packs include colours and artwork. Personal edits are saved as overrides."
+msgstr "Pakete enthalten Farben und Grafiken. Eigene Änderungen werden als Überschreibungen gespeichert."
+
+#: src/pdf/app_paint.zig
+msgid "Pages"
+msgstr "Seiten"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair Device"
+msgstr "Gerät koppeln"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair New Device"
+msgstr "Neues Gerät koppeln"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Paired Devices"
+msgstr "Gekoppelte Geräte"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing"
+msgstr "Kopplung"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing code"
+msgstr "Kopplungscode"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Down"
+msgstr "Nach unten schwenken"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Left"
+msgstr "Nach links schwenken"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Right"
+msgstr "Nach rechts schwenken"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Up"
+msgstr "Nach oben schwenken"
+
+#: src/control_center/sections/desktop.zig
+msgid "Pan and zoom the canvas. Switching back restores your canvas positions and zoom."
+msgstr "Schwenke und zoome auf der Leinwand. Beim Zurückwechseln werden Positionen und Zoom wiederhergestellt."
+
+#: src/control_center/sections/input.zig
+msgid "Pan speed"
+msgstr "Schwenkgeschwindigkeit"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pan to the selected window without changing zoom."
+msgstr "Zum ausgewählten Fenster schwenken, ohne den Zoom zu ändern."
+
+#: src/printing/options.zig
+msgid "Paper size"
+msgstr "Papierformat"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {paper}"
+msgstr "Papier: {paper}"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {width} × {height} mm"
+msgstr "Papier: {width} × {height} mm"
+
+#: src/control_center/sections/printers.zig
+msgid "Pass"
+msgstr "Bestanden"
+
+#: src/control_center/sections/network.zig
+msgid "Password"
+msgstr "Passwort"
+
+#: src/control_center/sections/network.zig
+msgid "Password (leave empty to use saved)"
+msgstr "Passwort (für gespeichertes Passwort leer lassen)"
+
+#: src/pdf/app_paint.zig
+msgid "Password Required"
+msgstr "Passwort erforderlich"
+
+#: src/files/archive.zig
+msgid "Password-protected archives are not supported yet"
+msgstr "Passwortgeschützte Archive werden noch nicht unterstützt"
+
+#: src/desktop/app_actions.zig
+msgid "Paste"
+msgstr "Einfügen"
+
+#: src/files/app_torrent_rows.zig
+msgid "Pause"
+msgstr "Pausieren"
+
+#: src/files/app_torrents.zig
+msgid "Pause all"
+msgstr "Alle pausieren"
+
+#: src/system_monitor/app.zig
+msgid "Pause updates"
+msgstr "Aktualisierungen pausieren"
+
+#: src/files/app_torrent_rows.zig
+msgid "Paused"
+msgstr "Pausiert"
+
+#: src/printing/cups.zig
+msgid "Pending"
+msgstr "Ausstehend"
+
+#: src/power_profiles.zig
+msgid "Performance"
+msgstr "Leistung"
+
+#: src/delete_dialog.zig
+msgid "Permanently delete all trashed files and folders"
+msgstr "Alle Dateien und Ordner im Papierkorb endgültig löschen"
+
+#: src/files/app_dialogs.zig
+msgid "Permission denied"
+msgstr "Zugriff verweigert"
+
+#: src/editor/app.zig
+msgid "Permission denied. Try Save As in a writable folder."
+msgstr "Zugriff verweigert. Nutze „Speichern unter“ in einem beschreibbaren Ordner."
+
+#: src/files/app_layout.zig
+msgid "Permissions"
+msgstr "Zugriffsrechte"
+
+#: src/files/properties.zig
+msgid "Permissions updated"
+msgstr "Zugriffsrechte aktualisiert"
+
+#: src/files/app.zig
+msgid "Pictures"
+msgstr "Bilder"
+
+#: src/start_menu/panel.zig
+msgid "Pin application"
+msgstr "Anwendung anheften"
+
+#: src/start_menu/panel.zig
+msgid "Pinned & Recent"
+msgstr "Angeheftet und zuletzt verwendet"
+
+#: src/control_center/sections/desktop.zig
+msgid "Placement"
+msgstr "Platzierung"
+
+#: src/files/app_places.zig
+msgid "Places is full"
+msgstr "Orte ist voll"
+
+#: src/images/app.zig
+msgid "Please wait for the file operation to finish."
+msgstr "Warte, bis der Dateivorgang abgeschlossen ist."
+
+#: src/taskbar/battery.zig
+msgid "Plugged In"
+msgstr "Netzbetrieb"
+
+#: src/control_center/sections/desktop.zig
+msgid "Position"
+msgstr "Position"
+
+#: src/session/lock.zig
+msgid "Power"
+msgstr "Energie"
+
+#: src/power_menu.zig
+msgid "Power Off"
+msgstr "Ausschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Power Profile Cycle"
+msgstr "Energieprofil wechseln"
+
+#: src/power_profiles.zig
+msgid "Power Saver"
+msgstr "Energiesparen"
+
+#: src/session/power.zig
+msgid "Power action failed"
+msgstr "Energieaktion fehlgeschlagen"
+
+#: src/session/power.zig
+msgid "Power off"
+msgstr "Ausschalten"
+
+#: src/session/lock.zig
+msgid "Power off? Activate Power again to confirm."
+msgstr "Ausschalten? Aktiviere Energie erneut zum Bestätigen."
+
+#: src/session/lock.zig
+msgid "Power request accepted"
+msgstr "Energieanfrage angenommen"
+
+#: src/session/lock.zig
+msgid "Power request denied or unavailable"
+msgstr "Energieanfrage verweigert oder nicht verfügbar"
+
+#: src/session/power.zig
+msgid "Power request failed. Check permissions and applications blocking shutdown."
+msgstr "Energieanfrage fehlgeschlagen. Prüfe Berechtigungen und Anwendungen, die das Herunterfahren blockieren."
+
+#: src/session/lock.zig
+msgid "Power service unavailable"
+msgstr "Energiedienst nicht verfügbar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff"
+msgstr "Ausschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff Auto"
+msgstr "Automatisch ausschalten"
+
+#: src/session/lock.zig
+msgid "Press Enter to log in"
+msgstr "Zum Anmelden Eingabe drücken"
+
+#: src/session/lock.zig
+msgid "Press Enter to unlock"
+msgstr "Zum Entsperren Eingabe drücken"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press keys to record. Esc cancels."
+msgstr "Drücke die gewünschten Tasten. Esc bricht ab."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press new shortcut…"
+msgstr "Neues Tastenkürzel drücken…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Prevent this device from connecting."
+msgstr "Verbindungen dieses Geräts verhindern."
+
+#: src/files/app_torrents.zig
+msgid "Previous"
+msgstr "Zurück"
+
+#: src/session/lock.zig
+msgid "Previous account"
+msgstr "Vorheriges Konto"
+
+#: src/pdf/app_paint.zig
+msgid "Print"
+msgstr "Drucken"
+
+#: src/control_center/sections/printers.zig
+msgid "Print a 2 × 3 inch ruler…"
+msgstr "Lineal mit 2 × 3 Zoll drucken…"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one test"
+msgstr "Einen Test drucken"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one {kind} test on {name}?"
+msgstr "Einen {kind}-Test auf {name} drucken?"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue"
+msgstr "Druckwarteschlange"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue · {n}"
+msgstr "Druckwarteschlange · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test"
+msgstr "Drucktest"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test page…"
+msgstr "Testseite drucken…"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer"
+msgstr "Drucker"
+
+#: src/printing/admin.zig
+msgid "Printer added, enabled and accepting jobs."
+msgstr "Drucker hinzugefügt, aktiviert und zur Auftragsannahme bereit."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer address (ipp, ipps, socket or lpd)"
+msgstr "Druckeradresse (ipp, ipps, socket oder lpd)"
+
+#: src/printing/admin.zig
+msgid "Printer administration failed; refresh and check the printer status."
+msgstr "Druckerverwaltung fehlgeschlagen; aktualisiere und prüfe den Druckerstatus."
+
+#: src/printing/admin.zig
+msgid "Printer administration timed out. Refresh before trying again."
+msgstr "Zeitüberschreitung bei der Druckerverwaltung. Aktualisiere vor einem neuen Versuch."
+
+#: src/printing/admin.zig
+msgid "Printer administration was cancelled."
+msgstr "Druckerverwaltung wurde abgebrochen."
+
+#: src/printing/admin.zig
+msgid "Printer administration was not authorized or was cancelled."
+msgstr "Druckerverwaltung wurde nicht autorisiert oder abgebrochen."
+
+#: src/printing/admin.zig
+msgid "Printer authorization helper unavailable. Refresh before trying again."
+msgstr "Autorisierungshilfe für Drucker nicht verfügbar. Aktualisiere vor einem neuen Versuch."
+
+#: src/printing/admin.zig
+msgid "Printer change applied."
+msgstr "Druckeränderung angewendet."
+
+#: src/printing/admin.zig
+msgid "Printer connection changed."
+msgstr "Druckerverbindung geändert."
+
+#: src/printing/admin.zig
+msgid "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+msgstr "Druckerstandardbereinigung teilweise abgeschlossen, aber die neue Druckeroption konnte nicht angewendet werden. Aktualisiere und prüfe die Option."
+
+#: src/printing/admin.zig
+msgid "Printer discovery complete."
+msgstr "Druckersuche abgeschlossen."
+
+#: src/printing/admin.zig
+msgid "Printer option applied."
+msgstr "Druckeroption angewendet."
+
+#: src/printing/cups.zig
+msgid "Printer preferences could not be saved safely. Check the existing preferences file."
+msgstr "Druckereinstellungen konnten nicht sicher gespeichert werden. Prüfe die vorhandene Einstellungsdatei."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setting verified."
+msgstr "Druckereinstellung überprüft."
+
+#: src/printing/options.zig
+msgid "Printer settings"
+msgstr "Druckereinstellungen"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setup requires the local default CUPS server."
+msgstr "Die Druckereinrichtung benötigt den lokalen CUPS-Standardserver."
+
+#: src/control_center/panel.zig
+msgid "Printer status, jobs and connection diagnostics."
+msgstr "Druckerstatus, Aufträge und Verbindungsdiagnose."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but could not be enabled. Refresh and resume it."
+msgstr "Drucker wurde hinzugefügt, konnte aber nicht aktiviert werden. Aktualisiere und setze ihn fort."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+msgstr "Drucker hinzugefügt, aber Aktivierung oder Auftragsannahme fehlgeschlagen. Aktualisiere, setze ihn fort und erlaube Aufträge."
+
+#: src/control_center/panel.zig
+msgid "Printers"
+msgstr "Drucker"
+
+#: src/control_center/sections/printers.zig
+msgid "Printers are unavailable in the greeter."
+msgstr "Drucker sind im Anmeldebildschirm nicht verfügbar."
+
+#: src/printing/cups.zig
+msgid "Printing"
+msgstr "Drucken"
+
+#: src/pdf/main.zig
+msgid "Printing is not available."
+msgstr "Drucken ist nicht verfügbar."
+
+#: src/control_center/sections/printers.zig
+msgid "Printing preferences"
+msgstr "Druckeinstellungen"
+
+#: src/control_center/sections/printers.zig
+msgid "Problem"
+msgstr "Problem"
+
+#: src/system_monitor/app.zig
+msgid "Process data unavailable"
+msgstr "Prozessdaten nicht verfügbar"
+
+#: src/system_monitor/app.zig
+msgid "Processes"
+msgstr "Prozesse"
+
+#: src/printing/cups.zig
+msgid "Processing"
+msgstr "In Bearbeitung"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles"
+msgstr "Profile"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles appear after pairing"
+msgstr "Profile erscheinen nach dem Koppeln"
+
+#: src/files/app_layout.zig
+msgid "Progress"
+msgstr "Fortschritt"
+
+#: src/files/app.zig
+msgid "Projects"
+msgstr "Projekte"
+
+#: src/desktop/app_actions.zig
+msgid "Properties"
+msgstr "Eigenschaften"
+
+#: src/desktop/app_paint.zig
+msgid "Properties — Escape closes"
+msgstr "Eigenschaften — Escape schließt"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Put the computer to sleep."
+msgstr "Den Rechner in Bereitschaft versetzen."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Put your device in pairing mode. Nearby devices appear here."
+msgstr "Versetze dein Gerät in den Kopplungsmodus. Geräte in der Nähe erscheinen hier."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+msgstr "Qt-5- und Qt-6-Farben angewendet. Starte Anwendungen neu; melde dich erneut an, falls die Farben unverändert bleiben."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Qt-5-Farben angewendet. Installiere qt6ct für Qt-6-Anwendungen. Starte Anwendungen neu; melde dich erneut an, falls die Farben unverändert bleiben."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Qt-6-Farben angewendet. Installiere qt5ct für Qt-5-Anwendungen. Starte Anwendungen neu; melde dich erneut an, falls die Farben unverändert bleiben."
+
+#: src/printing/options.zig
+msgid "Quality"
+msgstr "Qualität"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue"
+msgstr "Warteschlange"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue identifier"
+msgstr "Warteschlangenkennung"
+
+#: src/printing/ladder.zig
+msgid "Queue media and resolution could not be read."
+msgstr "Papier und Auflösung der Warteschlange konnten nicht gelesen werden."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue name"
+msgstr "Warteschlangenname"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue paper setting: {paper}. Check that this matches the loaded paper."
+msgstr "Papier der Warteschlange: {paper}. Prüfe, ob es dem eingelegten Papier entspricht."
+
+#: src/printing/admin.zig
+msgid "Queue rename only partly completed. Refresh and check both queues before retrying."
+msgstr "Warteschlange nur teilweise umbenannt. Aktualisiere und prüfe beide Warteschlangen vor einem neuen Versuch."
+
+#: src/printing/admin.zig
+msgid "Queue rename request completed. Check the refreshed queues and options."
+msgstr "Umbenennungsanfrage abgeschlossen. Prüfe die aktualisierten Warteschlangen und Optionen."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue: {name}"
+msgstr "Warteschlange: {name}"
+
+#: src/start_menu/panel.zig
+msgid "Quick Launch"
+msgstr "Schnellstart"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Quit"
+msgstr "Beenden"
+
+#: src/control_center/sections/display.zig
+msgid "REDIWM_SCALE sets scaling; restart to apply Xwayland changes."
+msgstr "REDIWM_SCALE legt die Skalierung fest; starte für Xwayland-Änderungen neu."
+
+#: src/control_center/sections/appearance.zig
+msgid "RIGHT"
+msgstr "RECHTS"
+
+#: src/control_center/sections/appearance.zig
+msgid "Radius"
+msgstr "Radius"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw queue (printer commands only)"
+msgstr "Rohwarteschlange (nur Druckerbefehle)"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw sample resolution (dpi)"
+msgstr "Auflösung des Rohmusters (dpi)"
+
+#: src/files/properties.zig
+msgid "Read"
+msgstr "Lesen"
+
+#: src/control_center/sections/users.zig
+msgid "Read only"
+msgstr "Schreibgeschützt"
+
+#: src/printing/cups.zig
+msgid "Ready"
+msgstr "Bereit"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Ready to pair"
+msgstr "Bereit zum Koppeln"
+
+#: src/printing/ladder.zig
+msgid "Reapply the intended paper, resolution or driver option, then refresh to verify the result."
+msgstr "Wende das gewünschte Papier, die Auflösung oder Treiberoption erneut an und aktualisiere zum Überprüfen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot"
+msgstr "Neu starten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot Auto"
+msgstr "Automatisch neu starten"
+
+#: src/files/app.zig
+msgid "Recent"
+msgstr "Zuletzt verwendet"
+
+#: src/files/open_with.zig
+msgid "Recommended Apps"
+msgstr "Empfohlene Anwendungen"
+
+#: src/files/app.zig
+msgid "RediWM Files"
+msgstr "RediWM Dateien"
+
+#: src/control_center/sections/default_apps.zig
+msgid "RediWM Files (built-in)"
+msgstr "RediWM Dateien (integriert)"
+
+#: src/control_center/sections/appearance.zig
+msgid "RediWM dock"
+msgstr "RediWM-Dock"
+
+#: src/control_center/sections/display.zig
+msgid "Reduce blue light with a warm tint"
+msgstr "Blaues Licht mit einem warmen Farbton verringern"
+
+#: src/control_center/search_index.zig
+msgid "Reduced motion"
+msgstr "Weniger Bewegung"
+
+#: src/control_center/sections/printers.zig
+msgid "Refresh"
+msgstr "Aktualisieren"
+
+#: src/control_center/search_index.zig
+msgid "Refresh rate"
+msgstr "Bildwiederholrate"
+
+#: src/control_center/sections/region.zig
+msgid "Region"
+msgstr "Region"
+
+#: src/control_center/panel.zig
+msgid "Region & Language"
+msgstr "Region und Sprache"
+
+#: src/control_center/search_index.zig
+msgid "Regional formats"
+msgstr "Regionale Formate"
+
+#: src/control_center/sections/region.zig
+msgid "Regional formats are unavailable for this session."
+msgstr "Regionale Formate sind für diese Sitzung nicht verfügbar."
+
+#: src/control_center/sections/printers.zig
+msgid "Remember loaded paper size"
+msgstr "Format des eingelegten Papiers merken"
+
+#: src/control_center/sections/appearance.zig
+msgid "Remove"
+msgstr "Entfernen"
+
+#: src/files/app_model.zig
+msgid "Remove from Places"
+msgstr "Aus Orten entfernen"
+
+#: src/taskbar/window_menu.zig
+msgid "Remove from dock"
+msgstr "Aus Dock entfernen"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer {name} ({queue})? This deletes its queue and settings."
+msgstr "Drucker {name} ({queue}) entfernen? Seine Warteschlange und Einstellungen werden gelöscht."
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer…"
+msgstr "Drucker entfernen…"
+
+#: src/control_center/search_index.zig
+msgid "Remove theme"
+msgstr "Thema entfernen"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove this printer"
+msgstr "Diesen Drucker entfernen"
+
+#: src/files/app_torrents.zig
+msgid "Remove · keep files"
+msgstr "Entfernen · Dateien behalten"
+
+#: src/desktop/app_actions.zig
+msgid "Rename"
+msgstr "Umbenennen"
+
+#: src/files/app_paint.zig
+msgid "Rename (R)"
+msgstr "Umbenennen (R)"
+
+#: src/desktop/app_paint.zig
+msgid "Rename — Enter saves, Escape cancels"
+msgstr "Umbenennen — Eingabe speichert, Escape bricht ab"
+
+#: src/files/app_dialogs.zig
+msgid "Renamed successfully"
+msgstr "Erfolgreich umbenannt"
+
+#: src/pdf/app_paint.zig
+msgid "Rendering page {value}..."
+msgstr "Seite {value} wird gerendert…"
+
+#: src/control_center/sections/region.zig
+msgid "Reopen running apps to use the selected language."
+msgstr "Öffne laufende Anwendungen erneut, damit sie die gewählte Sprache verwenden."
+
+#: src/control_center/sections/input.zig
+msgid "Repeat delay"
+msgstr "Wiederholverzögerung"
+
+#: src/control_center/sections/input.zig
+msgid "Repeat rate"
+msgstr "Wiederholrate"
+
+#: src/files/app_chooser.zig
+msgid "Replace"
+msgstr "Ersetzen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Replace installed theme"
+msgstr "Installiertes Thema ersetzen"
+
+#: src/control_center/sections/printers.zig
+msgid "Report copied"
+msgstr "Bericht kopiert"
+
+#: src/control_center/sections/printers.zig
+msgid "Reports omit document names, user names, USB serials and private printer addresses."
+msgstr "Berichte enthalten keine Dokumentnamen, Benutzernamen, USB-Seriennummern oder privaten Druckeradressen."
+
+#: src/systemd.zig
+msgid "Request accepted. Status updates when the job completes."
+msgstr "Anfrage angenommen. Der Status wird nach Auftragsabschluss aktualisiert."
+
+#: src/printing/admin.zig
+msgid "Requesting CUPS start; authorization may be required…"
+msgstr "CUPS-Start wird angefordert; eine Autorisierung kann erforderlich sein…"
+
+#: src/session/lock.zig
+msgid "Requesting power action…"
+msgstr "Energieaktion wird angefordert…"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved file name"
+msgstr "Reservierter Dateiname"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved folder name"
+msgstr "Reservierter Ordnername"
+
+#: src/control_center/search_index.zig
+msgid "Reset theme"
+msgstr "Thema zurücksetzen"
+
+#: src/control_center/sections/desktop.zig
+msgid "Reset to Default"
+msgstr "Auf Standard zurücksetzen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to default"
+msgstr "Auf Standard zurücksetzen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to theme"
+msgstr "Auf Thema zurücksetzen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Down"
+msgstr "Teilung nach unten vergrößern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Left"
+msgstr "Teilung nach links vergrößern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Right"
+msgstr "Teilung nach rechts vergrößern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Up"
+msgstr "Teilung nach oben vergrößern"
+
+#: src/control_center/search_index.zig
+msgid "Resolution"
+msgstr "Auflösung"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: Unavailable"
+msgstr "Auflösung: nicht verfügbar"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: {x} × {y} dpi"
+msgstr "Auflösung: {x} × {y} dpi"
+
+#: src/printing/ladder.zig
+msgid "Resolve the reported printer problem before resuming the queue."
+msgstr "Behebe das gemeldete Druckerproblem, bevor du die Warteschlange fortsetzt."
+
+#: src/session/lock.zig
+msgid "Response"
+msgstr "Antwort"
+
+#: src/control_center/sections/services.zig
+msgid "Restart"
+msgstr "Neu starten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart Shell"
+msgstr "Shell neu starten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the computer."
+msgstr "Den Rechner neu starten."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the desktop shell."
+msgstr "Die Schreibtisch-Shell neu starten."
+
+#: src/session/lock.zig
+msgid "Restart? Activate Restart again to confirm."
+msgstr "Neu starten? Aktiviere Neustart erneut zum Bestätigen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Layout"
+msgstr "Anordnung wiederherstellen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Shortcuts"
+msgstr "Tastenkürzel wiederherstellen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore a saved layout."
+msgstr "Eine gespeicherte Anordnung wiederherstellen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore layout: {name}"
+msgstr "Anordnung wiederherstellen: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the desktop zoom."
+msgstr "Den Schreibtischzoom wiederherstellen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the focused window's size."
+msgstr "Größe des fokussierten Fensters wiederherstellen."
+
+#: src/calculator/model.zig
+msgid "Result is too large"
+msgstr "Ergebnis ist zu groß"
+
+#: src/files/app_torrent_rows.zig
+msgid "Resume"
+msgstr "Fortsetzen"
+
+#: src/control_center/sections/printers.zig
+msgid "Resume printer"
+msgstr "Drucker fortsetzen"
+
+#: src/system_monitor/app.zig
+msgid "Resume updates"
+msgstr "Aktualisierungen fortsetzen"
+
+#: src/control_center/panel.zig
+msgid "Review login accounts and automatic-login settings."
+msgstr "Anmeldekonten und Einstellungen für automatische Anmeldung prüfen."
+
+#: src/control_center/sections/printers.zig
+msgid "Review the suggested resolution, then apply it explicitly."
+msgstr "Prüfe die vorgeschlagene Auflösung und wende sie dann ausdrücklich an."
+
+#: src/control_center/sections/appearance.zig
+msgid "Right"
+msgstr "Rechts"
+
+#: src/images/app.zig
+msgid "Rotate"
+msgstr "Drehen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Rotate the nearest tiled split."
+msgstr "Die nächste Kachelteilung drehen."
+
+#: src/control_center/search_index.zig
+msgid "Rotation"
+msgstr "Drehung"
+
+#: src/control_center/sections/appearance.zig
+msgid "Round"
+msgstr "Rund"
+
+#: src/system_monitor/app.zig
+msgid "Running"
+msgstr "Läuft"
+
+#: src/control_center/sections/sound.zig
+msgid "SOUND"
+msgstr "KLANG"
+
+#: src/control_center/sections/appearance.zig
+msgid "Same as theme"
+msgstr "Wie Thema"
+
+#: src/images/app.zig
+msgid "Same folder, or enter an absolute path."
+msgstr "Gleicher Ordner, oder gib einen absoluten Pfad ein."
+
+#: src/control_center/sections/region.zig
+msgid "Saturday"
+msgstr "Samstag"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save"
+msgstr "Speichern"
+
+#: src/editor/app.zig
+msgid "Save As"
+msgstr "Speichern unter"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save Layout"
+msgstr "Anordnung speichern"
+
+#: src/images/app.zig
+msgid "Save a PNG copy"
+msgstr "PNG-Kopie speichern"
+
+#: src/images/app.zig
+msgid "Save as"
+msgstr "Speichern unter"
+
+#: src/images/app.zig
+msgid "Save as…"
+msgstr "Speichern unter…"
+
+#: src/editor/app.zig
+msgid "Save changes before closing?"
+msgstr "Änderungen vor dem Schließen speichern?"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save current look as theme"
+msgstr "Aktuelle Darstellung als Thema speichern"
+
+#: src/control_center/sections/printers.zig
+msgid "Save display name"
+msgstr "Anzeigenamen speichern"
+
+#: src/control_center/sections/users.zig
+msgid "Save groups"
+msgstr "Gruppen speichern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save layout: {name}"
+msgstr "Anordnung speichern: {name}"
+
+#: src/control_center/sections/appearance.zig
+msgid "Save look…"
+msgstr "Darstellung speichern…"
+
+#: src/control_center/sections/users.zig
+msgid "Save name"
+msgstr "Namen speichern"
+
+#: src/control_center/sections/users.zig
+msgid "Save password"
+msgstr "Passwort speichern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save shortcut"
+msgstr "Tastenkürzel speichern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save the window layout."
+msgstr "Die Fensteranordnung speichern."
+
+#: src/control_center/search_index.zig
+msgid "Save theme"
+msgstr "Thema speichern"
+
+#: src/images/app.zig
+msgid "Save your edits?"
+msgstr "Deine Bearbeitungen speichern?"
+
+#: src/editor/app.zig
+msgid "Saved"
+msgstr "Gespeichert"
+
+#: src/images/app.zig
+msgid "Saved PNG copy."
+msgstr "PNG-Kopie gespeichert."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved for RediWM, but could not update the system folder association."
+msgstr "Für RediWM gespeichert, aber die Systemzuordnung für Ordner konnte nicht aktualisiert werden."
+
+#: src/control_center/sections/region.zig
+msgid "Saved for your user’s RediWM session only; system defaults are unchanged."
+msgstr "Nur für die RediWM-Sitzung deines Benutzers gespeichert; Systemstandards bleiben unverändert."
+
+#: src/images/app.zig
+msgid "Saved {name}"
+msgstr "{name} gespeichert"
+
+#: src/control_center/sections/portals.zig
+msgid "Saved. Changes apply next time you sign in."
+msgstr "Gespeichert. Änderungen gelten ab der nächsten Anmeldung."
+
+#: src/control_center/welcome.zig
+msgid "Saved. You can change these later in Settings."
+msgstr "Gespeichert. Du kannst dies später in den Einstellungen ändern."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved. Your choice applies immediately."
+msgstr "Gespeichert. Deine Auswahl gilt sofort."
+
+#: src/editor/app.zig
+msgid "Saving a large file. Editing resumes when it is written."
+msgstr "Eine große Datei wird gespeichert. Die Bearbeitung wird nach dem Schreiben fortgesetzt."
+
+#: src/images/app.zig
+msgid "Saving image…"
+msgstr "Bild wird gespeichert…"
+
+#: src/editor/app.zig
+msgid "Saving…"
+msgstr "Wird gespeichert…"
+
+#: src/files/app_paint.zig
+msgid "Scanning folder..."
+msgstr "Ordner wird eingelesen…"
+
+#: src/control_center/sections/appearance.zig
+msgid "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+msgstr "Die Bildschirmaufnahmeanzeige erscheint beim Aufzeichnen oder Teilen deines Bildschirms. Es wird empfohlen, sie aktiviert zu lassen."
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens tall (1–10)"
+msgstr "Bildschirme hoch (1–10)"
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens wide (1–10)"
+msgstr "Bildschirme breit (1–10)"
+
+#: src/screenshot/selector.zig
+msgid "Screenshot"
+msgstr "Bildschirmfoto"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Output"
+msgstr "Bildschirmfoto der Ausgabe"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Region"
+msgstr "Bildschirmfoto eines Bereichs"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot failed"
+msgstr "Bildschirmfoto fehlgeschlagen"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved and copied"
+msgstr "Bildschirmfoto gespeichert und kopiert"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved; clipboard failed"
+msgstr "Bildschirmfoto gespeichert; Zwischenablage fehlgeschlagen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshots"
+msgstr "Bildschirmfotos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop above."
+msgstr "Zum Schreibtisch darüber wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop below."
+msgstr "Zum Schreibtisch darunter wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the left."
+msgstr "Zum Schreibtisch links wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the right."
+msgstr "Zum Schreibtisch rechts wechseln."
+
+#: src/control_center/search_index.zig
+msgid "Scrollbar width"
+msgstr "Bildlaufleistenbreite"
+
+#: src/start_menu/panel.zig
+msgid "Search applications…"
+msgstr "Anwendungen suchen…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Search devices…"
+msgstr "Geräte suchen…"
+
+#: src/system_monitor/app.zig
+msgid "Search name, PID or user"
+msgstr "Nach Name, PID oder Benutzer suchen"
+
+#: src/control_center/sections/services.zig
+msgid "Search services…"
+msgstr "Dienste suchen…"
+
+#: src/control_center/panel.zig
+msgid "Search settings"
+msgstr "Einstellungen suchen"
+
+#: src/control_center/search.zig
+msgid "Search settings…"
+msgstr "Einstellungen suchen…"
+
+#: src/files/app_paint.zig
+msgid "Search this folder"
+msgstr "Diesen Ordner durchsuchen"
+
+#: src/files/open_with.zig
+msgid "Search: {query}"
+msgstr "Suche: {query}"
+
+#: src/control_center/sections/network.zig
+msgid "Searching for networks…"
+msgstr "Netzwerke werden gesucht…"
+
+#: src/network/manager.zig
+msgid "Secured"
+msgstr "Gesichert"
+
+#: src/control_center/sections/network.zig
+msgid "Security"
+msgstr "Sicherheit"
+
+#: src/control_center/sections/desktop.zig
+msgid "See your position while navigating. Drag the highlighted view to pan."
+msgstr "Behalte beim Navigieren deine Position im Blick. Ziehe den hervorgehobenen Bereich zum Schwenken."
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 1"
+msgstr "Verteilen: Verhältnis 1"
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 2"
+msgstr "Verteilen: Verhältnis 2"
+
+#: src/files/app_torrents.zig
+msgid "Seed: stop at finish"
+msgstr "Verteilen: nach Abschluss stoppen"
+
+#: src/files/app_torrent_rows.zig
+msgid "Seeding"
+msgstr "Wird verteilt"
+
+#: src/files/app_chooser.zig
+msgid "Select"
+msgstr "Auswählen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Select a device"
+msgstr "Gerät auswählen"
+
+#: src/system_monitor/app.zig
+msgid "Select a process first"
+msgstr "Wähle zuerst einen Prozess"
+
+#: src/printing/ladder.zig
+msgid "Select an existing queue or add the printer again."
+msgstr "Wähle eine vorhandene Warteschlange oder füge den Drucker erneut hinzu."
+
+#: src/control_center/sections/printers.zig
+msgid "Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."
+msgstr "Wähle ein installiertes USB-Backend aus den gefundenen Geräten oder gib eine Netzwerkadresse ein. Dies ändert die Verbindung der ausgewählten Warteschlange."
+
+#: src/files/app_dialogs.zig
+msgid "Select one item to view its properties"
+msgstr "Wähle ein einzelnes Objekt, um seine Eigenschaften anzuzeigen"
+
+#: src/files/open_with.zig
+msgid "Selected files"
+msgstr "Ausgewählte Dateien"
+
+#: src/delete_dialog.zig
+msgid "Selected items"
+msgstr "Ausgewählte Objekte"
+
+#: src/system_monitor/app.zig
+msgid "Selected process"
+msgstr "Ausgewählter Prozess"
+
+#: src/control_center/sections/services.zig
+msgid "Service"
+msgstr "Dienst"
+
+#: src/control_center/sections/services.zig
+msgid "Service changes are unlocked for this session."
+msgstr "Dienständerungen sind für diese Sitzung entsperrt."
+
+#: src/control_center/panel.zig
+msgid "Services"
+msgstr "Dienste"
+
+#: src/control_center/sections/services.zig
+msgid "Services taking at least 1 second to activate."
+msgstr "Dienste mit mindestens 1 Sekunde Aktivierungszeit."
+
+#: src/control_center/sections/users.zig
+msgid "Session"
+msgstr "Sitzung"
+
+#: src/session/lock.zig
+msgid "Session ›"
+msgstr "Sitzung ›"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Set Depth"
+msgstr "Tiefe festlegen"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as my default"
+msgstr "Als meinen Standard festlegen"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as system default"
+msgstr "Als Systemstandard festlegen"
+
+#: src/start_menu/panel.zig
+msgid "Settings"
+msgstr "Einstellungen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Shadow"
+msgstr "Schatten"
+
+#: src/share_picker/client.zig
+msgid "Share screen"
+msgstr "Bildschirm teilen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sharp"
+msgstr "Scharf"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shortcut already in use. Try another."
+msgstr "Tastenkürzel wird bereits verwendet. Versuche ein anderes."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Show Paired Devices"
+msgstr "Gekoppelte Geräte anzeigen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show Trash"
+msgstr "Papierkorb anzeigen"
+
+#: src/control_center/sections/users.zig
+msgid "Show all groups"
+msgstr "Alle Gruppen anzeigen"
+
+#: src/files/app_menu.zig
+msgid "Show changed files"
+msgstr "Geänderte Dateien anzeigen"
+
+#: src/control_center/sections/users.zig
+msgid "Show curated"
+msgstr "Empfohlene anzeigen"
+
+#: src/control_center/sections/region.zig
+msgid "Show day"
+msgstr "Datum anzeigen"
+
+#: src/files/app_menu.zig
+msgid "Show full paths"
+msgstr "Vollständige Pfade anzeigen"
+
+#: src/files/app_menu.zig
+msgid "Show hidden files"
+msgstr "Versteckte Dateien anzeigen"
+
+#: src/files/app_torrents.zig
+msgid "Show in folder"
+msgstr "Im Ordner anzeigen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show launch splash"
+msgstr "Startanzeige anzeigen"
+
+#: src/control_center/sections/desktop.zig
+msgid "Show mini map"
+msgstr "Minikarte anzeigen"
+
+#: src/control_center/sections/printers.zig
+msgid "Show more"
+msgstr "Mehr anzeigen"
+
+#: src/control_center/sections/region.zig
+msgid "Show seconds"
+msgstr "Sekunden anzeigen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shut down the computer."
+msgstr "Den Rechner herunterfahren."
+
+#: src/control_center/sections/printers.zig
+msgid "Sides: {sides}"
+msgstr "Seiten: {sides}"
+
+#: src/session/lock.zig
+msgid "Sign-in cancelled"
+msgstr "Anmeldung abgebrochen"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed"
+msgstr "Anmeldung fehlgeschlagen"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed: {reason}"
+msgstr "Anmeldung fehlgeschlagen: {reason}"
+
+#: src/control_center/sections/network.zig
+msgid "Sign-in required"
+msgstr "Anmeldung erforderlich"
+
+#: src/session/greeter.zig
+msgid "Signing in…"
+msgstr "Anmeldung läuft…"
+
+#: src/control_center/panel.zig
+msgid "Single-click file and folder icons"
+msgstr "Datei- und Ordnersymbole einfach anklicken"
+
+#: src/files/app_layout.zig
+msgid "Size"
+msgstr "Größe"
+
+#: src/control_center/sections/appearance.zig
+msgid "Size to screen"
+msgstr "An Bildschirm anpassen"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sized to fit your screen · move a slider to set your own"
+msgstr "An deinen Bildschirm angepasst · verschiebe einen Regler für eigene Werte"
+
+#: src/files/app_paint.zig
+msgid "Skip (S)"
+msgstr "Überspringen (S)"
+
+#: src/control_center/sections/display.zig
+msgid "Sleep"
+msgstr "Bereitschaft"
+
+#: src/system_monitor/app.zig
+msgid "Sleeping"
+msgstr "Schlafend"
+
+#: src/control_center/sections/appearance.zig
+msgid "Slightly darken and mute windows that are not focused"
+msgstr "Nicht fokussierte Fenster leicht abdunkeln und entsättigen"
+
+#: src/control_center/sections/services.zig
+msgid "Slow"
+msgstr "Langsam"
+
+#: src/control_center/sections/appearance.zig
+msgid "Small"
+msgstr "Klein"
+
+#: src/files/app_menu.zig
+msgid "Smallest first"
+msgstr "Kleinste zuerst"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a bottom quarter, or restore it."
+msgstr "Das fokussierte Fenster in ein unteres Viertel einpassen oder wiederherstellen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a top quarter, or maximize it."
+msgstr "Das fokussierte Fenster in ein oberes Viertel einpassen oder maximieren."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the left half."
+msgstr "Das fokussierte Fenster in die linke Hälfte einpassen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the right half."
+msgstr "Das fokussierte Fenster in die rechte Hälfte einpassen."
+
+#: src/control_center/search_index.zig
+msgid "Snapped window gap"
+msgstr "Abstand eingerasteter Fenster"
+
+#: src/files/properties.zig
+msgid "Socket"
+msgstr "Socket"
+
+#: src/control_center/sections/appearance.zig
+msgid "Soft"
+msgstr "Weich"
+
+#: src/control_center/sections/users.zig
+msgid "Some groups cannot be safely shown; group changes are disabled."
+msgstr "Einige Gruppen können nicht sicher angezeigt werden; Gruppenänderungen sind deaktiviert."
+
+#: src/systemd.zig
+msgid "Some startup times are unavailable."
+msgstr "Einige Startzeiten sind nicht verfügbar."
+
+#: src/images/app.zig
+msgid "Space / Esc to close · Arrow keys to browse"
+msgstr "Leertaste / Esc zum Schließen · Pfeiltasten zum Blättern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Spawn"
+msgstr "Starten"
+
+#: src/printing/options.zig
+msgid "Speed"
+msgstr "Geschwindigkeit"
+
+#: src/control_center/sections/users.zig
+msgid "Standard"
+msgstr "Standard"
+
+#: src/control_center/sections/services.zig
+msgid "Start"
+msgstr "Starten"
+
+#: src/control_center/sections/printers.zig
+msgid "Start CUPS"
+msgstr "CUPS starten"
+
+#: src/control_center/search_index.zig
+msgid "Start button gap"
+msgstr "Abstand der Starttaste"
+
+#: src/control_center/search_index.zig
+msgid "Start button icon size"
+msgstr "Symbolgröße der Starttaste"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start button logo"
+msgstr "Logo der Starttaste"
+
+#: src/files/app_torrents.zig
+msgid "Start download"
+msgstr "Download starten"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start menu"
+msgstr "Startmenü"
+
+#: src/control_center/search_index.zig
+msgid "Start menu height"
+msgstr "Startmenühöhe"
+
+#: src/control_center/search_index.zig
+msgid "Start menu logo"
+msgstr "Startmenülogo"
+
+#: src/control_center/search_index.zig
+msgid "Start menu size"
+msgstr "Startmenügröße"
+
+#: src/control_center/sections/services.zig
+msgid "Start mode"
+msgstr "Startmodus"
+
+#: src/control_center/welcome.zig
+msgid "Start using RediWM"
+msgstr "RediWM verwenden"
+
+#: src/session/greeter.zig
+msgid "Starting session…"
+msgstr "Sitzung wird gestartet…"
+
+#: src/systemd.zig
+msgid "Startup setting saved. Running status is unchanged."
+msgstr "Starteinstellung gespeichert. Der Laufstatus bleibt unverändert."
+
+#: src/control_center/sections/services.zig
+msgid "Startup settings apply at boot. Deferred is coming later."
+msgstr "Starteinstellungen gelten beim Systemstart. Zurückgestellt folgt später."
+
+#: src/control_center/sections/services.zig
+msgid "Startup time"
+msgstr "Startzeit"
+
+#: src/system_monitor/app.zig
+msgid "State"
+msgstr "Zustand"
+
+#: src/printing/cups.zig
+msgid "State unavailable"
+msgstr "Zustand nicht verfügbar"
+
+#: src/control_center/sections/network.zig
+msgid "Status"
+msgstr "Status"
+
+#: src/control_center/sections/services.zig
+msgid "Stop"
+msgstr "Stoppen"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Stop Searching"
+msgstr "Suche beenden"
+
+#: src/control_center/sections/printers.zig
+msgid "Stop accepting jobs"
+msgstr "Keine Aufträge mehr annehmen"
+
+#: src/files/app_torrents.zig
+msgid "Stop seeding"
+msgstr "Verteilen stoppen"
+
+#: src/printing/cups.zig
+msgid "Stopped"
+msgstr "Gestoppt"
+
+#: src/control_center/sections/appearance.zig
+msgid "Strong"
+msgstr "Stark"
+
+#: src/control_center/sections/printers.zig
+msgid "Suggested supported resolution: {x} × {y} dpi"
+msgstr "Vorgeschlagene unterstützte Auflösung: {x} × {y} dpi"
+
+#: src/control_center/sections/region.zig
+msgid "Sunday"
+msgstr "Sonntag"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."
+msgstr "Super+Q öffnet das Terminal; Super+M öffnet Energie. Pfeile fokussieren; Zahlen wechseln Arbeitsbereiche."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend"
+msgstr "In Bereitschaft versetzen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend Auto"
+msgstr "Automatisch in Bereitschaft"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Down"
+msgstr "Nach unten tauschen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Left"
+msgstr "Nach links tauschen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Right"
+msgstr "Nach rechts tauschen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Up"
+msgstr "Nach oben tauschen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile down."
+msgstr "Die fokussierte Kachel nach unten tauschen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile left."
+msgstr "Die fokussierte Kachel nach links tauschen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile right."
+msgstr "Die fokussierte Kachel nach rechts tauschen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile up."
+msgstr "Die fokussierte Kachel nach oben tauschen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next power profile."
+msgstr "Zum nächsten Energieprofil wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next window."
+msgstr "Zum nächsten Fenster wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the previous window."
+msgstr "Zum vorherigen Fenster wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to workspace {n}."
+msgstr "Zu Arbeitsbereich {n} wechseln."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch workspace."
+msgstr "Arbeitsbereich wechseln."
+
+#: src/files/app_dialogs.zig
+msgid "Switched branch"
+msgstr "Zweig gewechselt"
+
+#: src/files/app_dialogs.zig
+msgid "Switched to {name}"
+msgstr "Zu {name} gewechselt"
+
+#: src/files/properties.zig
+msgid "Symbolic link"
+msgstr "Symbolischer Link"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "System"
+msgstr "System"
+
+#: src/system_monitor/app.zig
+msgid "System Monitor"
+msgstr "Systemmonitor"
+
+#: src/printing/admin.zig
+msgid "System bus connection lost. Reopen Printers to reconnect."
+msgstr "Systembus-Verbindung verloren. Öffne Drucker erneut zum Verbinden."
+
+#: src/printing/admin.zig
+msgid "System bus disconnected during printer administration."
+msgstr "Systembus während der Druckerverwaltung getrennt."
+
+#: src/control_center/sections/appearance.zig
+msgid "System default"
+msgstr "Systemstandard"
+
+#: src/control_center/sections/services.zig
+msgid "Systemd is unavailable."
+msgstr "Systemd ist nicht verfügbar."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Take shortcuts back from a virtual machine or remote desktop."
+msgstr "Tastenkürzel von einer virtuellen Maschine oder einem entfernten Schreibtisch zurückholen."
+
+#: src/control_center/sections/users.zig
+msgid "Takes effect at next boot. The keyring will not unlock automatically."
+msgstr "Gilt beim nächsten Start. Der Schlüsselbund wird nicht automatisch entsperrt."
+
+#: src/control_center/search_index.zig
+msgid "Tap to click"
+msgstr "Tippen zum Klicken"
+
+#: src/files/app_dialogs.zig
+msgid "Target name already exists"
+msgstr "Zielname ist bereits vorhanden"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar"
+msgstr "Taskleiste"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar clock. The date uses your regional format."
+msgstr "Taskleistenuhr. Das Datum nutzt dein regionales Format."
+
+#: src/control_center/search_index.zig
+msgid "Taskbar corner radius"
+msgstr "Eckenradius der Taskleiste"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar edge gap"
+msgstr "Randabstand der Taskleiste"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar gap from edge"
+msgstr "Abstand der Taskleiste zum Rand"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar items"
+msgstr "Taskleistenelemente"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar length"
+msgstr "Taskleistenlänge"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar position"
+msgstr "Taskleistenposition"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar sections"
+msgstr "Taskleistenabschnitte"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar size"
+msgstr "Taskleistengröße"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar theme"
+msgstr "Taskleistenthema"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar, calendar, lock screen and new apps."
+msgstr "Taskleiste, Kalender, Sperrbildschirm und neue Anwendungen."
+
+#: src/control_center/sections/appearance.zig
+msgid "Temporarily show the selected window at full size; keep desktop zoom."
+msgstr "Das ausgewählte Fenster vorübergehend in voller Größe zeigen und den Schreibtischzoom beibehalten."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Terminal"
+msgstr "Terminal"
+
+#: src/files/app_terminal.zig
+msgid "Terminal helper is unavailable"
+msgstr "Terminal-Hilfsprogramm nicht verfügbar"
+
+#: src/control_center/search_index.zig
+msgid "Terminal opacity"
+msgstr "Terminaldeckkraft"
+
+#: src/control_center/sections/appearance.zig
+msgid "Terminal opacity (new windows)"
+msgstr "Terminaldeckkraft (neue Fenster)"
+
+#: src/files/app_terminal.zig
+msgid "Terminal paste exceeds the available input queue"
+msgstr "Terminaleinfügung überschreitet die verfügbare Eingabewarteschlange"
+
+#: src/system_monitor/app.zig
+msgid "Termination requested"
+msgstr "Beenden angefordert"
+
+#: src/control_center/sections/printers.zig
+msgid "Test without the driver…"
+msgstr "Ohne Treiber testen…"
+
+#: src/editor/app.zig
+msgid "Text file"
+msgstr "Textdatei"
+
+#: src/editor/app.zig
+msgid "Text files are limited to 4 GiB."
+msgstr "Textdateien sind auf 4 GiB begrenzt."
+
+#: src/editor/app.zig
+msgid "Text not found"
+msgstr "Text nicht gefunden"
+
+#: src/images/app.zig
+msgid "That file already exists. Choose another name."
+msgstr "Diese Datei ist bereits vorhanden. Wähle einen anderen Namen."
+
+#: src/editor/app.zig
+msgid "That file is open in another tab. Choose a different name."
+msgstr "Diese Datei ist in einem anderen Tab geöffnet. Wähle einen anderen Namen."
+
+#: src/files/appimage.zig
+msgid "The AppImage contains more than one application launcher"
+msgstr "Das AppImage enthält mehrere Anwendungsstarter"
+
+#: src/files/appimage.zig
+msgid "The AppImage has no usable application launcher"
+msgstr "Das AppImage enthält keinen nutzbaren Anwendungsstarter"
+
+#: src/printing/ladder.zig
+msgid "The CUPS USB backend uses libusb; a usblp node is not required."
+msgstr "Das CUPS-USB-Backend nutzt libusb; ein usblp-Knoten ist nicht erforderlich."
+
+#: src/printing/cups.zig
+msgid "The CUPS client configuration could not be read or is invalid."
+msgstr "Die CUPS-Clientkonfiguration konnte nicht gelesen werden oder ist ungültig."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "The RediWM block in gtk.css is incomplete. Repair it before applying colors."
+msgstr "Der RediWM-Block in gtk.css ist unvollständig. Repariere ihn vor dem Anwenden der Farben."
+
+#: src/printing/ladder.zig
+msgid "The available queue settings match the supplied media or resolution expectations."
+msgstr "Die verfügbaren Warteschlangeneinstellungen entsprechen den vorgegebenen Papier- oder Auflösungserwartungen."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen stays on."
+msgstr "Der eingebaute Bildschirm bleibt an."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen turns off while another display is connected."
+msgstr "Der eingebaute Bildschirm schaltet sich bei angeschlossenem Zweitbildschirm aus."
+
+#: src/printing/ladder.zig
+msgid "The character-device path used by this queue is missing."
+msgstr "Der von dieser Warteschlange verwendete Zeichengerätepfad fehlt."
+
+#: src/control_center/sections/printers.zig
+msgid "The current printer resolution is unavailable."
+msgstr "Die aktuelle Druckerauflösung ist nicht verfügbar."
+
+#: src/files/main.zig
+msgid "The destination folder is unavailable"
+msgstr "Der Zielordner ist nicht verfügbar"
+
+#: src/printing/ladder.zig
+msgid "The device address matches; successful communication has not been confirmed."
+msgstr "Die Geräteadresse stimmt überein; erfolgreiche Kommunikation ist nicht bestätigt."
+
+#: src/pdf/main.zig
+msgid "The document could not be printed."
+msgstr "Das Dokument konnte nicht gedruckt werden."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver did not report the requested value. Review its settings before printing."
+msgstr "Der Treiber hat den angeforderten Wert nicht gemeldet. Prüfe seine Einstellungen vor dem Drucken."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver reports label media."
+msgstr "Der Treiber meldet Etikettenpapier."
+
+#: src/files/main.zig
+msgid "The drop timed out"
+msgstr "Zeitüberschreitung beim Ablegen"
+
+#: src/files/main.zig
+msgid "The dropped list failed or exceeded 1 MiB"
+msgstr "Die Ablegeliste ist fehlgeschlagen oder größer als 1 MiB"
+
+#: src/files/app_terminal.zig
+msgid "The dropped paths are invalid or too long"
+msgstr "Die abgelegten Pfade sind ungültig oder zu lang"
+
+#: src/images/app.zig
+msgid "The file changed. Please try again."
+msgstr "Die Datei wurde geändert. Versuche es erneut."
+
+#: src/printing/ladder.zig
+msgid "The file type of the queue's device-node path could not be read."
+msgstr "Der Dateityp des Geräteknotenpfads der Warteschlange konnte nicht gelesen werden."
+
+#: src/images/app.zig
+msgid "The filename is too long."
+msgstr "Der Dateiname ist zu lang."
+
+#: src/printing/ladder.zig
+msgid "The last job has not completed."
+msgstr "Der letzte Auftrag ist noch nicht abgeschlossen."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a backend connection problem."
+msgstr "Der letzte Auftrag meldet ein Backend-Verbindungsproblem."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a document or filter failure."
+msgstr "Der letzte Auftrag meldet einen Dokument- oder Filterfehler."
+
+#: src/printing/ladder.zig
+msgid "The last job was aborted or stopped."
+msgstr "Der letzte Auftrag wurde abgebrochen oder gestoppt."
+
+#: src/printing/ladder.zig
+msgid "The last job was canceled."
+msgstr "Der letzte Auftrag wurde abgebrochen."
+
+#: src/printing/ladder.zig
+msgid "The matching USB device has no printer-class interface."
+msgstr "Das passende USB-Gerät hat keine Schnittstelle der Druckerklasse."
+
+#: src/printing/ladder.zig
+msgid "The matching USB printer was not found."
+msgstr "Der passende USB-Drucker wurde nicht gefunden."
+
+#: src/printing/ladder.zig
+msgid "The matching device-node file type could not be read."
+msgstr "Der Dateityp des passenden Geräteknotens konnte nicht gelesen werden."
+
+#: src/printing/ladder.zig
+msgid "The network printer did not answer."
+msgstr "Der Netzwerkdrucker hat nicht geantwortet."
+
+#: src/printing/ladder.zig
+msgid "The printer answered an IPP request."
+msgstr "Der Drucker hat eine IPP-Anfrage beantwortet."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer change could not be requested."
+msgstr "Die Druckeränderung konnte nicht angefordert werden."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer no longer exists. Refresh before retrying."
+msgstr "Der Drucker ist nicht mehr vorhanden. Aktualisiere vor einem neuen Versuch."
+
+#: src/printing/cups.zig
+msgid "The printer or job no longer exists. Refresh the list."
+msgstr "Drucker oder Auftrag ist nicht mehr vorhanden. Aktualisiere die Liste."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is not accepting new jobs."
+msgstr "Die Druckwarteschlange nimmt keine neuen Aufträge an."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is stopped."
+msgstr "Die Druckwarteschlange ist gestoppt."
+
+#: src/printing/cups.zig
+msgid "The queue changed, but personal preferences could not be moved. Check your default printer."
+msgstr "Warteschlange geändert, aber persönliche Einstellungen konnten nicht verschoben werden. Prüfe deinen Standarddrucker."
+
+#: src/printing/ladder.zig
+msgid "The queue could not be checked without a CUPS response."
+msgstr "Die Warteschlange konnte ohne CUPS-Antwort nicht geprüft werden."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, but its state or acceptance of jobs is unknown."
+msgstr "Die Warteschlange ist vorhanden, aber Zustand oder Auftragsannahme sind unbekannt."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, is enabled, and accepts jobs."
+msgstr "Die Warteschlange ist vorhanden, aktiviert und nimmt Aufträge an."
+
+#: src/control_center/sections/printers.zig
+msgid "The queue identifier change could not be verified. Review the printer list before retrying."
+msgstr "Die Änderung der Warteschlangenkennung konnte nicht überprüft werden. Prüfe die Druckerliste vor einem neuen Versuch."
+
+#: src/printing/ladder.zig
+msgid "The queue resolution differs from the expected resolution."
+msgstr "Die Auflösung der Warteschlange weicht von der erwarteten Auflösung ab."
+
+#: src/printing/ladder.zig
+msgid "The queue's character device exists; backend access has not been tested."
+msgstr "Das Zeichengerät der Warteschlange ist vorhanden; der Backend-Zugriff wurde nicht getestet."
+
+#: src/printing/ladder.zig
+msgid "The queue's default media differs from the expected media."
+msgstr "Das Standardpapier der Warteschlange weicht vom erwarteten Papier ab."
+
+#: src/printing/ladder.zig
+msgid "The queue's device address does not match the selected printer."
+msgstr "Die Geräteadresse der Warteschlange passt nicht zum ausgewählten Drucker."
+
+#: src/printing/ladder.zig
+msgid "The queue's device-node path is a regular file or another wrong file type."
+msgstr "Der Geräteknotenpfad der Warteschlange ist eine reguläre Datei oder ein anderer falscher Dateityp."
+
+#: src/control_center/sections/printers.zig
+msgid "The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."
+msgstr "Das Rohmuster wurde gedruckt, der Treibertest nicht: Prüfe Treiber, Filter, Papierformat und Auflösung."
+
+#: src/printing/ladder.zig
+msgid "The selected queue was not found."
+msgstr "Die ausgewählte Warteschlange wurde nicht gefunden."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable."
+msgstr "Die Systemdienstverwaltung ist nicht verfügbar."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable; start CUPS using your distribution's service tools."
+msgstr "Die Systemdienstverwaltung ist nicht verfügbar; starte CUPS mit den Dienstwerkzeugen deiner Distribution."
+
+#: src/control_center/search_index.zig
+msgid "Theme"
+msgstr "Thema"
+
+#: src/files/worker.zig
+msgid "Theme installed. Choose it in Settings → Appearance."
+msgstr "Thema installiert. Wähle es unter Einstellungen → Darstellung."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed."
+msgstr "Themenvorgang fehlgeschlagen."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed: {reason}"
+msgstr "Themenvorgang fehlgeschlagen: {reason}"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme packs"
+msgstr "Themenpakete"
+
+#: src/control_center/sections/appearance.zig
+msgid "Themes & colours"
+msgstr "Themen und Farben"
+
+#: src/printing/cups.zig
+msgid "This CUPS server does not support the requested operation."
+msgstr "Dieser CUPS-Server unterstützt den angeforderten Vorgang nicht."
+
+#: src/printing/ladder.zig
+msgid "This backend needs a character device, but no matching node was found."
+msgstr "Dieses Backend benötigt ein Zeichengerät, aber kein passender Knoten wurde gefunden."
+
+#: src/delete_dialog.zig
+msgid "This cannot be undone."
+msgstr "Dies kann nicht rückgängig gemacht werden."
+
+#: src/control_center/sections/printers.zig
+msgid "This capability has no selectable queue default in the current driver."
+msgstr "Für diese Fähigkeit bietet der aktuelle Treiber keinen wählbaren Warteschlangenstandard."
+
+#: src/printing/ladder.zig
+msgid "This connection has no direct presence check."
+msgstr "Diese Verbindung hat keine direkte Anwesenheitsprüfung."
+
+#: src/control_center/sections/printers.zig
+msgid "This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."
+msgstr "Der Treiber stellt die vorgeschlagene Auflösung nicht als Warteschlangeneinstellung bereit. Prüfe seine Qualitäts- oder Treiberoptionen."
+
+#: src/editor/app.zig
+msgid "This file contains binary data and cannot be edited as text."
+msgstr "Diese Datei enthält Binärdaten und kann nicht als Text bearbeitet werden."
+
+#: src/editor/app.zig
+msgid "This file has multiple hard links. Use Save As to create a separate copy."
+msgstr "Diese Datei hat mehrere harte Links. Nutze „Speichern unter“, um eine unabhängige Kopie zu erstellen."
+
+#: src/editor/app.zig
+msgid "This file is not valid UTF-8 text."
+msgstr "Diese Datei ist kein gültiger UTF-8-Text."
+
+#: src/files/app_paint.zig
+msgid "This folder is empty"
+msgstr "Dieser Ordner ist leer"
+
+#: src/images/app.zig
+msgid "This image has unsaved changes."
+msgstr "Dieses Bild enthält ungespeicherte Änderungen."
+
+#: src/control_center/sections/printers.zig
+msgid "This is a label printer"
+msgstr "Dies ist ein Etikettendrucker"
+
+#: src/control_center/sections/display.zig
+msgid "This output does not advertise editable display modes."
+msgstr "Dieser Bildschirm bietet keine bearbeitbaren Anzeigemodi an."
+
+#: src/printing/cups.zig
+msgid "This print server requires an unsupported encrypted or authenticated connection."
+msgstr "Dieser Druckserver erfordert eine nicht unterstützte verschlüsselte oder authentifizierte Verbindung."
+
+#: src/printing/admin.zig
+msgid "This printer belongs to a CUPS class. Manage its class membership before renaming it here."
+msgstr "Dieser Drucker gehört zu einer CUPS-Klasse. Verwalte seine Klassenzugehörigkeit, bevor du ihn hier umbenennst."
+
+#: src/control_center/sections/printers.zig
+msgid "This range has no selectable queue setting in the current driver."
+msgstr "Für diesen Bereich bietet der aktuelle Treiber keine wählbare Warteschlangeneinstellung."
+
+#: src/files/git.zig
+msgid "This repository runs its own programs; switch branches in a terminal"
+msgstr "Dieses Repository führt eigene Programme aus; wechsle Zweige im Terminal"
+
+#: src/network/manager.zig
+msgid "This security type needs a network configuration tool."
+msgstr "Dieser Sicherheitstyp benötigt ein Netzwerk-Konfigurationswerkzeug."
+
+#: src/control_center/panel.zig
+msgid "This setting is unavailable on this device or in the current mode."
+msgstr "Diese Einstellung ist auf diesem Gerät oder im aktuellen Modus nicht verfügbar."
+
+#: src/files/app_torrents.zig
+msgid "This transfer is no longer available."
+msgstr "Diese Übertragung ist nicht mehr verfügbar."
+
+#: src/control_center/sections/region.zig
+msgid "Thursday"
+msgstr "Donnerstag"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Down"
+msgstr "Nach unten einpassen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Left"
+msgstr "Nach links einpassen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Right"
+msgstr "Nach rechts einpassen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Up"
+msgstr "Nach oben einpassen"
+
+#: src/control_center/welcome.zig
+msgid "Tiling"
+msgstr "Kachelung"
+
+#: src/control_center/sections/region.zig
+msgid "Time"
+msgstr "Uhrzeit"
+
+#: src/control_center/sections/region.zig
+msgid "Time & Date"
+msgstr "Uhrzeit und Datum"
+
+#: src/control_center/sections/region.zig
+msgid "Time zone"
+msgstr "Zeitzone"
+
+#: src/control_center/search_index.zig
+msgid "Titlebar height"
+msgstr "Titelleistenhöhe"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Floating"
+msgstr "Schwebend umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Fullscreen"
+msgstr "Vollbild umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Launcher"
+msgstr "Anwendungsstarter umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Maximize"
+msgstr "Maximieren umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Power Menu"
+msgstr "Energiemenü umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Split"
+msgstr "Teilung umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Workspace Tiling"
+msgstr "Arbeitsbereichskachelung umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle automatic tiling for the current workspace."
+msgstr "Automatische Kachelung im aktuellen Arbeitsbereich umschalten."
+
+#: src/pdf/app_paint.zig
+msgid "Toggle sidebar"
+msgstr "Seitenleiste umschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle the focused window between floating and automatic tiling."
+msgstr "Das fokussierte Fenster zwischen schwebend und automatisch gekachelt umschalten."
+
+#: src/control_center/sections/appearance.zig
+msgid "Top"
+msgstr "Oben"
+
+#: src/files/app_torrents.zig
+msgid "Torrent file or magnet link"
+msgstr "Torrent-Datei oder Magnet-Link"
+
+#: src/control_center/search_index.zig
+msgid "Touchpad speed"
+msgstr "Touchpad-Geschwindigkeit"
+
+#: src/files/app_torrents.zig
+msgid "Transfer"
+msgstr "Übertragung"
+
+#: src/files/torrents.zig
+msgid "Transfer request could not be sent. Please retry."
+msgstr "Übertragungsanfrage konnte nicht gesendet werden. Versuche es erneut."
+
+#: src/files/ops.zig
+msgid "Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Übertragen: {completed}. Übersprungen: {skipped}. Fehlgeschlagen: {failed}. Verbleibend: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Transferring {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Übertragung {current}/{total}: {name}… (Esc zum Abbrechen)"
+
+#: src/files/app_paint.zig
+msgid "Transferring..."
+msgstr "Übertragung…"
+
+#: src/files/app.zig
+msgid "Transfers"
+msgstr "Übertragungen"
+
+#: src/files/torrents.zig
+msgid "Transfers disconnected. Reopen Transfers to reconnect."
+msgstr "Übertragungen wurde getrennt. Öffne Übertragungen erneut zum Verbinden."
+
+#: src/files/torrents.zig
+msgid "Transfers is disconnected. Reopen Transfers to reconnect."
+msgstr "Übertragungen ist getrennt. Öffne Übertragungen erneut zum Verbinden."
+
+#: src/files/app_torrents.zig
+msgid "Transfers needs attention"
+msgstr "Übertragungen benötigt Aufmerksamkeit"
+
+#: src/control_center/sections/display.zig
+msgid "Transform"
+msgstr "Transformation"
+
+#: src/desktop/watcher.zig
+msgid "Trash"
+msgstr "Papierkorb"
+
+#: src/files/app_fileops.zig
+msgid "Trash emptied"
+msgstr "Papierkorb geleert"
+
+#: src/images/app.zig
+msgid "Trash is unavailable: install gio to use it."
+msgstr "Papierkorb nicht verfügbar: installiere gio."
+
+#: src/files/app_fileops.zig
+msgid "Trash unavailable (gio not installed)"
+msgstr "Papierkorb nicht verfügbar (gio nicht installiert)"
+
+#: src/control_center/search_index.zig
+msgid "Treble"
+msgstr "Höhen"
+
+#: src/control_center/sections/printers.zig
+msgid "Troubleshooting"
+msgstr "Fehlerbehebung"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Trusted Device"
+msgstr "Vertrauenswürdiges Gerät"
+
+#: src/control_center/search.zig
+msgid "Try a setting name, such as volume, wallpaper or scroll."
+msgstr "Versuche einen Einstellungsnamen wie Lautstärke, Hintergrund oder Scrollen."
+
+#: src/control_center/sections/printers.zig
+msgid "Try one language sample…"
+msgstr "Ein Sprachmuster testen…"
+
+#: src/control_center/sections/region.zig
+msgid "Tuesday"
+msgstr "Dienstag"
+
+#: src/control_center/sections/display.zig
+msgid "Turn off screen"
+msgstr "Bildschirm ausschalten"
+
+#: src/control_center/sections/network.zig
+msgid "Turned off"
+msgstr "Ausgeschaltet"
+
+#: src/printing/options.zig
+msgid "Two-sided printing"
+msgstr "Beidseitiger Druck"
+
+#: src/printing/options.zig
+msgid "Two-sided, long edge"
+msgstr "Beidseitig, lange Kante"
+
+#: src/printing/options.zig
+msgid "Two-sided, short edge"
+msgstr "Beidseitig, kurze Kante"
+
+#: src/files/app_layout.zig
+msgid "Type"
+msgstr "Typ"
+
+#: src/desktop/app_paint.zig
+msgid "Type to search applications — Enter chooses"
+msgstr "Zum Suchen von Anwendungen tippen — Eingabe wählt aus"
+
+#: src/start_menu/panel.zig
+msgid "Type to search…"
+msgstr "Zum Suchen tippen…"
+
+#: src/files/app_menu.zig
+msgid "Type: A to Z"
+msgstr "Typ: A bis Z"
+
+#: src/files/app_menu.zig
+msgid "Type: Z to A"
+msgstr "Typ: Z bis A"
+
+#: src/control_center/sections/appearance.zig
+msgid "UI font"
+msgstr "Oberflächenschrift"
+
+#: src/printing/ladder.zig
+msgid "USB presence or queue-to-device identity could not be established."
+msgstr "USB-Anwesenheit oder Zuordnung zwischen Warteschlange und Gerät konnte nicht festgestellt werden."
+
+#: src/files/app_dialogs.zig
+msgid "Unable to prepare deletion"
+msgstr "Löschen konnte nicht vorbereitet werden"
+
+#: src/session/lock.zig
+msgid "Unable to unlock. Try again."
+msgstr "Entsperren fehlgeschlagen. Versuche es erneut."
+
+#: src/battery_popup.zig
+msgid "Unavailable"
+msgstr "Nicht verfügbar"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Unavailable: {name}"
+msgstr "Nicht verfügbar: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo"
+msgstr "Rückgängig"
+
+#: src/images/app.zig
+msgid "Undo edits"
+msgstr "Bearbeitungen rückgängig machen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo the last layout change."
+msgstr "Die letzte Anordnungsänderung rückgängig machen."
+
+#: src/control_center/sections/printers.zig
+msgid "Unknown"
+msgstr "Unbekannt"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Unknown key"
+msgstr "Unbekannte Taste"
+
+#: src/control_center/sections/services.zig
+msgid "Unlock"
+msgstr "Entsperren"
+
+#: src/control_center/sections/users.zig
+msgid "Unlock to make account changes."
+msgstr "Zum Ändern von Konten entsperren."
+
+#: src/control_center/sections/services.zig
+msgid "Unlock to make service changes."
+msgstr "Zum Ändern von Diensten entsperren."
+
+#: src/network/manager.zig
+msgid "Unmanaged"
+msgstr "Nicht verwaltet"
+
+#: src/files/app_model.zig
+msgid "Unpin"
+msgstr "Lösen"
+
+#: src/start_menu/panel.zig
+msgid "Unpin an application first (five pins maximum)."
+msgstr "Löse zuerst eine Anwendung (höchstens fünf angeheftet)."
+
+#: src/start_menu/panel.zig
+msgid "Unpin application"
+msgstr "Anwendung lösen"
+
+#: src/taskbar/window_menu.zig
+msgid "Unpin from dock"
+msgstr "Aus Dock lösen"
+
+#: src/images/app.zig
+msgid "Unsaved edits will be discarded."
+msgstr "Ungespeicherte Bearbeitungen werden verworfen."
+
+#: src/images/app.zig
+msgid "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo"
+msgstr "Ungespeicherte Bearbeitungen · Strg+S: speichern · Strg+Z: rückgängig"
+
+#: src/system_monitor/app.zig
+msgid "Unsaved work will be lost."
+msgstr "Ungespeicherte Arbeit geht verloren."
+
+#: src/images/app.zig
+msgid "Unsupported image, missing decoder, or file unavailable"
+msgstr "Bild nicht unterstützt, Decoder fehlt oder Datei nicht verfügbar"
+
+#: src/editor/app.zig
+msgid "Untitled"
+msgstr "Unbenannt"
+
+#: src/files/app_torrents.zig
+msgid "Up"
+msgstr "Nach oben"
+
+#: src/network/manager.zig
+msgid "Updating Wi-Fi…"
+msgstr "WLAN wird aktualisiert…"
+
+#: src/files/app_layout.zig
+msgid "Upload"
+msgstr "Hochladen"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 1 MiB/s"
+msgstr "Hochladen: 1 MiB/s"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 128 KiB/s"
+msgstr "Hochladen: 128 KiB/s"
+
+#: src/power_menu.zig
+msgid "Uptime unavailable"
+msgstr "Betriebszeit nicht verfügbar"
+
+#: src/power_menu.zig
+msgid "Uptime {hours}h {minutes}m"
+msgstr "Betriebszeit {hours} Std. {minutes} Min."
+
+#: src/control_center/sections/region.zig
+msgid "Use 24-hour time"
+msgstr "24-Stunden-Format verwenden"
+
+#: src/network/manager.zig
+msgid "Use 8–63 characters or a 64-digit hex key."
+msgstr "Verwende 8–63 Zeichen oder einen 64-stelligen Hexadezimalschlüssel."
+
+#: src/images/app.zig
+msgid "Use a .png filename to save a PNG copy."
+msgstr "Nutze einen Dateinamen mit .png, um eine PNG-Kopie zu speichern."
+
+#: src/control_center/folder_picker.zig
+msgid "Use folder"
+msgstr "Ordner verwenden"
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue identifier."
+msgstr "Nutze Buchstaben, Zahlen, Punkte, Bindestriche oder Unterstriche für die Warteschlangenkennung."
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue name."
+msgstr "Nutze Buchstaben, Zahlen, Punkte, Bindestriche oder Unterstriche für den Warteschlangennamen."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Use logo"
+msgstr "Logo verwenden"
+
+#: src/control_center/sections/printers.zig
+msgid "Use suggested resolution"
+msgstr "Vorgeschlagene Auflösung verwenden"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Used for desktop folders, app shortcuts and apps that run in a terminal."
+msgstr "Für Schreibtischordner, Anwendungsverknüpfungen und Terminalanwendungen."
+
+#: src/control_center/sections/users.zig
+msgid "User"
+msgstr "Benutzer"
+
+#: src/control_center/sections/printers.zig
+msgid "Username"
+msgstr "Benutzername"
+
+#: src/control_center/panel.zig
+msgid "Users"
+msgstr "Benutzer"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Uses the main theme. Apply again after changing it; restart apps to see the colors."
+msgstr "Nutzt das Hauptthema. Wende es nach Änderungen erneut an; starte Anwendungen für neue Farben neu."
+
+#: src/control_center/sections/desktop.zig
+msgid "Vertical Pan"
+msgstr "Vertikal schwenken"
+
+#: src/files/app.zig
+msgid "Videos"
+msgstr "Videos"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "View its connection, battery and device settings."
+msgstr "Verbindung, Akku und Geräteeinstellungen anzeigen."
+
+#: src/files/app_places.zig
+msgid "Volume"
+msgstr "Lautstärke"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Down"
+msgstr "Lautstärke verringern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Mute"
+msgstr "Stummschalten"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Up"
+msgstr "Lautstärke erhöhen"
+
+#: src/control_center/panel.zig
+msgid "Volume, microphones and output devices."
+msgstr "Lautstärke, Mikrofone und Ausgabegeräte."
+
+#: src/control_center/sections/network.zig
+msgid "WPA2 / WPA3 Personal"
+msgstr "WPA2 / WPA3 Personal"
+
+#: src/control_center/sections/network.zig
+msgid "WPA3 Personal"
+msgstr "WPA3 Personal"
+
+#: src/control_center/sections/printers.zig
+msgid "Wait for the current printer operation to finish."
+msgstr "Warte, bis der aktuelle Druckervorgang abgeschlossen ist."
+
+#: src/polkit/dialog.zig
+msgid "Waiting for authentication service…"
+msgstr "Warte auf Authentifizierungsdienst…"
+
+#: src/control_center/sections/services.zig
+msgid "Waiting for authentication…"
+msgstr "Warte auf Authentifizierung…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Waiting for the device…"
+msgstr "Warte auf das Gerät…"
+
+#: src/polkit/dialog.zig
+msgid "Waiting…"
+msgstr "Warten…"
+
+#: src/control_center/search_index.zig
+msgid "Wallpaper"
+msgstr "Hintergrundbild"
+
+#: src/control_center/sections/appearance.zig
+msgid "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."
+msgstr "Warnung: Bildschirmaufnahme ist ausgeblendet. Aufnahmen und Bildschirmfreigaben können ohne sichtbare Anzeige oder Schaltfläche zum Beenden weiterlaufen. Ausblenden wird nicht empfohlen."
+
+#: src/control_center/sections/network.zig
+msgid "Weak"
+msgstr "Schwach"
+
+#: src/control_center/sections/region.zig
+msgid "Wednesday"
+msgstr "Mittwoch"
+
+#: src/control_center/welcome.zig
+msgid "Welcome to RediWM"
+msgstr "Willkommen bei RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "When the lid is closed"
+msgstr "Beim Zuklappen"
+
+#: src/control_center/sections/display.zig
+msgid "Where desktop icons appear."
+msgstr "Wo Schreibtischsymbole erscheinen."
+
+#: src/control_center/sections/appearance.zig
+msgid "While dragging a file out of it"
+msgstr "Beim Herausziehen einer Datei"
+
+#: src/control_center/search_index.zig
+msgid "Wi-Fi"
+msgstr "WLAN"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is disabled by the hardware switch"
+msgstr "WLAN ist am Hardwareschalter deaktiviert"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is turned off"
+msgstr "WLAN ist ausgeschaltet"
+
+#: src/network/manager.zig
+msgid "Wi-Fi network"
+msgstr "WLAN-Netzwerk"
+
+#: src/network/manager.zig
+msgid "Wi-Fi request failed. Check credentials and permissions."
+msgstr "WLAN-Anfrage fehlgeschlagen. Prüfe Zugangsdaten und Berechtigungen."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Window Management"
+msgstr "Fensterverwaltung"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window and panel transitions"
+msgstr "Fenster- und Panelübergänge"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome darkness"
+msgstr "Dunkelheit der Fensterdekoration"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome height"
+msgstr "Höhe der Fensterdekoration"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome opacity"
+msgstr "Deckkraft der Fensterdekoration"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window control gap"
+msgstr "Abstand der Fensterknöpfe"
+
+#: src/control_center/search_index.zig
+msgid "Window control spacing"
+msgstr "Abstand zwischen Fensterknöpfen"
+
+#: src/control_center/search_index.zig
+msgid "Window darkness"
+msgstr "Fensterdunkelheit"
+
+#: src/control_center/search_index.zig
+msgid "Window item gap"
+msgstr "Abstand der Fenstereinträge"
+
+#: src/control_center/search_index.zig
+msgid "Window item width"
+msgstr "Breite der Fenstereinträge"
+
+#: src/control_center/search_index.zig
+msgid "Window opacity"
+msgstr "Fensterdeckkraft"
+
+#: src/control_center/search_index.zig
+msgid "Window shadow"
+msgstr "Fensterschatten"
+
+#: src/control_center/search_index.zig
+msgid "Window spacing"
+msgstr "Fensterabstände"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window switching zoom"
+msgstr "Zoom beim Fensterwechsel"
+
+#: src/control_center/search_index.zig
+msgid "Window tabs"
+msgstr "Fenstertabs"
+
+#: src/control_center/sections/appearance.zig
+msgid "Windows"
+msgstr "Fenster"
+
+#: src/control_center/panel.zig
+msgid "Wired and wireless connections."
+msgstr "Kabel- und Funkverbindungen."
+
+#: src/control_center/sections/network.zig
+msgid "Wireless connections"
+msgstr "Funkverbindungen"
+
+#: src/editor/app.zig
+msgid "Word Wrap"
+msgstr "Zeilenumbruch"
+
+#: src/images/app.zig
+msgid "Working…"
+msgstr "Wird ausgeführt…"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace"
+msgstr "Arbeitsbereich"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Next"
+msgstr "Nächster Arbeitsbereich"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Prev"
+msgstr "Vorheriger Arbeitsbereich"
+
+#: src/control_center/search_index.zig
+msgid "Workspace layout"
+msgstr "Arbeitsbereichsanordnung"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace {n}"
+msgstr "Arbeitsbereich {n}"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspaces"
+msgstr "Arbeitsbereiche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspaces · Hyprland-style preset"
+msgstr "Arbeitsbereiche · Hyprland-Vorgabe"
+
+#: src/files/properties.zig
+msgid "Write"
+msgstr "Schreiben"
+
+#: src/control_center/search_index.zig
+msgid "Xwayland scale"
+msgstr "Xwayland-Skalierung"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland scale (global)"
+msgstr "Xwayland-Skalierung (global)"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Changes require a compositor restart."
+msgstr "Xwayland: {active}× aktiv. Änderungen erfordern einen Neustart des Compositors."
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Restart the compositor to apply {pending}×."
+msgstr "Xwayland: {active}× aktiv. Starte den Compositor neu, um {pending}× anzuwenden."
+
+#: src/control_center/sections/users.zig
+msgid "You"
+msgstr "Du"
+
+#: src/control_center/welcome.zig
+msgid "You can change these later in Settings."
+msgstr "Du kannst dies später in den Einstellungen ändern."
+
+#: src/delete_dialog.zig
+msgid "You can restore it later from Trash."
+msgstr "Du kannst es später aus dem Papierkorb wiederherstellen."
+
+#: src/images/app.zig
+msgid "You can restore the file from Trash."
+msgstr "Du kannst die Datei aus dem Papierkorb wiederherstellen."
+
+#: src/delete_dialog.zig
+msgid "You can restore them later from Trash."
+msgstr "Du kannst sie später aus dem Papierkorb wiederherstellen."
+
+#: src/control_center/sections/network.zig
+msgid "You're connected to this network"
+msgstr "Du bist mit diesem Netzwerk verbunden"
+
+#: src/control_center/sections/network.zig
+msgid "You're online."
+msgstr "Du bist online."
+
+#: src/control_center/sections/printers.zig
+msgid "Your default printer"
+msgstr "Dein Standarddrucker"
+
+#: src/control_center/sections/desktop.zig
+msgid "Your desktop panning area."
+msgstr "Der Schwenkbereich deines Schreibtischs."
+
+#: src/control_center/panel.zig
+msgid "Your language, regional formats and calendar preferences."
+msgstr "Deine Sprache, regionalen Formate und Kalendereinstellungen."
+
+#: src/editor/app.zig
+msgid "Your unsaved changes will be lost if you discard them."
+msgstr "Deine ungespeicherten Änderungen gehen beim Verwerfen verloren."
+
+#: src/system_monitor/app.zig
+msgid "Zombie"
+msgstr "Zombie"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom In"
+msgstr "Hineinzoomen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Out"
+msgstr "Herauszoomen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Reset"
+msgstr "Zoom zurücksetzen"
+
+#: src/images/app.zig
+msgid "Zoom in"
+msgstr "Vergrößern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom into the desktop canvas."
+msgstr "In die Schreibtischleinwand hineinzoomen."
+
+#: src/images/app.zig
+msgid "Zoom out"
+msgstr "Verkleinern"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom out of the desktop canvas."
+msgstr "Aus der Schreibtischleinwand herauszoomen."
+
+#: src/control_center/sections/appearance.zig
+msgid "Zoom the desktop to the selected window's level; fade windows passed by the camera."
+msgstr "Den Schreibtisch auf die Ebene des ausgewählten Fensters zoomen; von der Kamera passierte Fenster ausblenden."
+
+#: src/control_center/search_index.zig
+msgid "accessibility animations"
+msgstr "barrierefreiheit animationen"
+
+#: src/control_center/search_index.zig
+msgid "application colours theme"
+msgstr "anwendung farben thema"
+
+#: src/control_center/search_index.zig
+msgid "application shell console"
+msgstr "anwendung shell konsole"
+
+#: src/control_center/search_index.zig
+msgid "applications titlebar grouping"
+msgstr "anwendungen titelleiste gruppierung"
+
+#: src/control_center/search_index.zig
+msgid "autologin boot"
+msgstr "automatische anmeldung start"
+
+#: src/control_center/search_index.zig
+msgid "backend gtk kde dialogs"
+msgstr "backend gtk kde dialoge"
+
+#: src/control_center/search_index.zig
+msgid "background desktop image folder"
+msgstr "hintergrund schreibtisch bild ordner"
+
+#: src/control_center/search_index.zig
+msgid "backlight screen light"
+msgstr "hintergrundbeleuchtung bildschirm licht"
+
+#: src/control_center/search_index.zig
+msgid "blue light warm screen"
+msgstr "blaues licht warmer bildschirm"
+
+#: src/control_center/search_index.zig
+msgid "buttons close maximize minimize"
+msgstr "knöpfe schließen maximieren minimieren"
+
+#: src/delete_dialog.zig
+msgid "bytes"
+msgstr "Bytes"
+
+#: src/control_center/search_index.zig
+msgid "calendar monday sunday"
+msgstr "kalender montag sonntag"
+
+#: src/control_center/search_index.zig
+msgid "canvas workspaces tiling"
+msgstr "leinwand arbeitsbereiche kachelung"
+
+#: src/control_center/search_index.zig
+msgid "chooser portal"
+msgstr "auswahl portal"
+
+#: src/control_center/search_index.zig
+msgid "chrome tint"
+msgstr "fensterdekoration farbton"
+
+#: src/control_center/search_index.zig
+msgid "clock battery tray notifications capture"
+msgstr "uhr akku tray benachrichtigungen aufnahme"
+
+#: src/control_center/search_index.zig
+msgid "colors colours dark light preset"
+msgstr "farben dunkel hell vorgabe"
+
+#: src/control_center/search_index.zig
+msgid "date weekday"
+msgstr "datum wochentag"
+
+#: src/control_center/search_index.zig
+msgid "defaults restore"
+msgstr "standard wiederherstellen"
+
+#: src/control_center/search_index.zig
+msgid "delete pack"
+msgstr "paket löschen"
+
+#: src/control_center/search_index.zig
+msgid "desktop panning"
+msgstr "schreibtisch schwenken"
+
+#: src/control_center/search_index.zig
+msgid "double click folders"
+msgstr "doppelklick ordner"
+
+#: src/control_center/search_index.zig
+msgid "drag drop windows"
+msgstr "ziehen ablegen fenster"
+
+#: src/notifications/toast.zig
+msgid "earlier"
+msgstr "früher"
+
+#: src/control_center/search_index.zig
+msgid "edge pan transitions"
+msgstr "rand schwenken übergänge"
+
+#: src/control_center/search_index.zig
+msgid "effects motion"
+msgstr "effekte bewegung"
+
+#: src/control_center/search_index.zig
+msgid "enable apps launcher"
+msgstr "aktivieren anwendungen starter"
+
+#: src/control_center/search_index.zig
+msgid "export look"
+msgstr "darstellung exportieren"
+
+#: src/control_center/search_index.zig
+msgid "files folders application"
+msgstr "dateien ordner anwendung"
+
+#: src/control_center/search_index.zig
+msgid "gaps tiling"
+msgstr "abstände kachelung"
+
+#: src/files/git.zig
+msgid "git switch failed"
+msgstr "git switch fehlgeschlagen"
+
+#: src/control_center/search_index.zig
+msgid "hide automatically"
+msgstr "automatisch ausblenden"
+
+#: src/control_center/search_index.zig
+msgid "hotkeys keybindings bindings terminal screenshot volume brightness workspaces"
+msgstr "tastenkürzel tastenbelegung terminal bildschirmfoto lautstärke helligkeit arbeitsbereiche"
+
+#: src/control_center/search_index.zig
+msgid "icons pack"
+msgstr "symbole paket"
+
+#: src/control_center/search_index.zig
+msgid "import pack"
+msgstr "paket importieren"
+
+#: src/control_center/search_index.zig
+msgid "keep icons in place"
+msgstr "symbole fixieren"
+
+#: src/control_center/search_index.zig
+msgid "keyboard trackpad"
+msgstr "tastatur touchpad"
+
+#: src/control_center/search_index.zig
+msgid "laptop suspend sleep"
+msgstr "laptop bereitschaft schlafen"
+
+#: src/control_center/search_index.zig
+msgid "launcher icon image"
+msgstr "starter symbol bild"
+
+#: src/control_center/search_index.zig
+msgid "launcher size"
+msgstr "startergröße"
+
+#: src/control_center/search_index.zig
+msgid "launcher width"
+msgstr "starterbreite"
+
+#: src/control_center/search_index.zig
+msgid "left right speakers"
+msgstr "links rechts lautsprecher"
+
+#: src/control_center/search_index.zig
+msgid "light appearance theme"
+msgstr "hell darstellung thema"
+
+#: src/control_center/search_index.zig
+msgid "locale numbers currency dates"
+msgstr "gebietsschema zahlen währung daten"
+
+#: src/control_center/search_index.zig
+msgid "locale translation"
+msgstr "gebietsschema übersetzung"
+
+#: src/control_center/search_index.zig
+msgid "logo launcher"
+msgstr "logo starter"
+
+#: src/control_center/sections/users.zig
+msgid "lowercase username"
+msgstr "benutzername kleinbuchstaben"
+
+#: src/control_center/search_index.zig
+msgid "magnification mouse"
+msgstr "vergrößerung maus"
+
+#: src/control_center/search_index.zig
+msgid "minimap overview"
+msgstr "minikarte übersicht"
+
+#: src/control_center/search_index.zig
+msgid "motion duration"
+msgstr "bewegung dauer"
+
+#: src/notifications/toast.zig
+msgid "now"
+msgstr "jetzt"
+
+#: src/control_center/search_index.zig
+msgid "orientation portrait landscape screen"
+msgstr "ausrichtung hochformat querformat bildschirm"
+
+#: src/control_center/search_index.zig
+msgid "overview location"
+msgstr "übersicht position"
+
+#: src/control_center/search_index.zig
+msgid "overview timeout"
+msgstr "übersicht zeitlimit"
+
+#: src/control_center/search_index.zig
+msgid "panel colors colours"
+msgstr "panel farben"
+
+#: src/control_center/search_index.zig
+msgid "panel height"
+msgstr "panelhöhe"
+
+#: src/control_center/search_index.zig
+msgid "panel margin"
+msgstr "panelrand"
+
+#: src/control_center/search_index.zig
+msgid "panel rounded"
+msgstr "panel abgerundet"
+
+#: src/control_center/search_index.zig
+msgid "panel top bottom"
+msgstr "panel oben unten"
+
+#: src/control_center/search_index.zig
+msgid "panel width"
+msgstr "panelbreite"
+
+#: src/control_center/search_index.zig
+msgid "pointer acceleration sensitivity"
+msgstr "zeiger beschleunigung empfindlichkeit"
+
+#: src/control_center/search_index.zig
+msgid "pointer mouse"
+msgstr "zeiger maus"
+
+#: src/control_center/search_index.zig
+msgid "printing cups add queue jobs paper driver label"
+msgstr "drucken cups hinzufügen warteschlange aufträge papier treiber etikett"
+
+#: src/control_center/search_index.zig
+msgid "recycle bin"
+msgstr "papierkorb"
+
+#: src/control_center/search_index.zig
+msgid "rounded"
+msgstr "abgerundet"
+
+#: src/control_center/search_index.zig
+msgid "rounded windows"
+msgstr "abgerundete fenster"
+
+#: src/control_center/search_index.zig
+msgid "rows columns panning area"
+msgstr "zeilen spalten schwenkbereich"
+
+#: src/control_center/search_index.zig
+msgid "rules tiling windows"
+msgstr "regeln kachelung fenster"
+
+#: src/control_center/search_index.zig
+msgid "running apps indicator"
+msgstr "anzeige laufender anwendungen"
+
+#: src/control_center/search_index.zig
+msgid "screen frequency hz"
+msgstr "bildschirm frequenz hz"
+
+#: src/control_center/search_index.zig
+msgid "screen output"
+msgstr "bildschirm ausgabe"
+
+#: src/control_center/search_index.zig
+msgid "screen position monitors main display"
+msgstr "bildschirmposition monitore hauptbildschirm"
+
+#: src/control_center/search_index.zig
+msgid "screen scaling dpi zoom"
+msgstr "bildschirmskalierung dpi zoom"
+
+#: src/control_center/search_index.zig
+msgid "screen size pixels"
+msgstr "bildschirmgröße pixel"
+
+#: src/control_center/search_index.zig
+msgid "scrolling direction reverse invert mouse touchpad"
+msgstr "scrollrichtung umkehren invertieren maus touchpad"
+
+#: src/control_center/search_index.zig
+msgid "shadows"
+msgstr "schatten"
+
+#: src/control_center/search_index.zig
+msgid "size"
+msgstr "größe"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer high frequencies"
+msgstr "klang equalizer hohe frequenzen"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer low frequencies"
+msgstr "klang equalizer tiefe frequenzen"
+
+#: src/control_center/search_index.zig
+msgid "sound input recording mute"
+msgstr "klang eingabe aufnahme stumm"
+
+#: src/control_center/search_index.zig
+msgid "sound speakers loudness mute"
+msgstr "klang lautsprecher lautstärke stumm"
+
+#: src/control_center/search_index.zig
+msgid "spacing tiled margin"
+msgstr "abstand gekachelt rand"
+
+#: src/control_center/search_index.zig
+msgid "speakers headphones sound default"
+msgstr "lautsprecher kopfhörer klang standard"
+
+#: src/control_center/search_index.zig
+msgid "start menu spacing"
+msgstr "startmenü abstände"
+
+#: src/control_center/search_index.zig
+msgid "startup welcome animation"
+msgstr "start willkommen animation"
+
+#: src/control_center/search_index.zig
+msgid "systemd startup boot daemon unit enabled failed slow"
+msgstr "systemd start boot daemon unit aktiviert fehlgeschlagen langsam"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip size"
+msgstr "taskleiste eintragsgröße"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip spacing"
+msgstr "taskleiste eintragsabstand"
+
+#: src/control_center/search_index.zig
+msgid "taskbar launcher spacing"
+msgstr "taskleiste starterabstand"
+
+#: src/control_center/search_index.zig
+msgid "text size accessibility"
+msgstr "textgröße barrierefreiheit"
+
+#: src/control_center/search_index.zig
+msgid "thickness scrolling accessibility"
+msgstr "breite scrollen barrierefreiheit"
+
+#: src/control_center/search_index.zig
+msgid "tiling master stack"
+msgstr "kachelung hauptfenster stapel"
+
+#: src/control_center/search_index.zig
+msgid "time"
+msgstr "zeit"
+
+#: src/control_center/search_index.zig
+msgid "time am pm"
+msgstr "zeit vormittags nachmittags"
+
+#: src/control_center/search_index.zig
+msgid "time taskbar font"
+msgstr "zeit taskleiste schrift"
+
+#: src/control_center/search_index.zig
+msgid "top bottom left right"
+msgstr "oben unten links rechts"
+
+#: src/control_center/search_index.zig
+msgid "touchpad trackpad"
+msgstr "touchpad trackpad"
+
+#: src/control_center/search_index.zig
+msgid "trackpad acceleration sensitivity"
+msgstr "touchpad beschleunigung empfindlichkeit"
+
+#: src/control_center/search_index.zig
+msgid "transparency"
+msgstr "transparenz"
+
+#: src/control_center/search_index.zig
+msgid "transparency chrome"
+msgstr "transparenz fensterdekoration"
+
+#: src/control_center/search_index.zig
+msgid "transparency unfocused"
+msgstr "transparenz unfokussiert"
+
+#: src/control_center/search_index.zig
+msgid "typeface text"
+msgstr "schriftart text"
+
+#: src/control_center/search_index.zig
+msgid "typing keys"
+msgstr "tippen tasten"
+
+#: src/control_center/search_index.zig
+msgid "typing keys speed"
+msgstr "tippen tasten geschwindigkeit"
+
+#: src/control_center/search_index.zig
+msgid "unfocused darkness"
+msgstr "unfokussiert dunkelheit"
+
+#: src/control_center/search_index.zig
+msgid "users login password administrator groups"
+msgstr "benutzer anmeldung passwort administrator gruppen"
+
+#: src/control_center/search_index.zig
+msgid "warmth colour color"
+msgstr "wärme farbe"
+
+#: src/control_center/search_index.zig
+msgid "window borders"
+msgstr "fensterrahmen"
+
+#: src/control_center/search_index.zig
+msgid "window chrome"
+msgstr "fensterdekoration"
+
+#: src/control_center/search_index.zig
+msgid "window focus"
+msgstr "fensterfokus"
+
+#: src/control_center/search_index.zig
+msgid "window moving"
+msgstr "fenster verschieben"
+
+#: src/control_center/search_index.zig
+msgid "window moving size"
+msgstr "fenster verschieben größe"
+
+#: src/control_center/search_index.zig
+msgid "wired internet adapter"
+msgstr "kabel internet adapter"
+
+#: src/control_center/search_index.zig
+msgid "wireless internet wlan hotspot hidden network"
+msgstr "funk internet wlan hotspot verstecktes netzwerk"
+
+#: src/control_center/search_index.zig
+msgid "wireless pairing paired headphones mouse keyboard"
+msgstr "funk kopplung gekoppelt kopfhörer maus tastatur"
+
+#: src/control_center/search_index.zig
+msgid "x11 legacy apps scaling"
+msgstr "x11 ältere anwendungen skalierung"
+
+#: src/session/power.zig
+msgid "{action} failed"
+msgstr "{action} fehlgeschlagen"
+
+#: src/control_center/sections/desktop.zig
+msgid "{columns} × {rows} · {n} screen total"
+msgid_plural "{columns} × {rows} · {n} screens total"
+msgstr[0] "{columns} × {rows} · insgesamt {n} Bildschirm"
+msgstr[1] "{columns} × {rows} · insgesamt {n} Bildschirme"
+
+#: src/files/app_paint.zig
+msgid "{count} item selected · {size}"
+msgid_plural "{count} items selected · {size}"
+msgstr[0] "{count} Objekt ausgewählt · {size}"
+msgstr[1] "{count} Objekte ausgewählt · {size}"
+
+#: src/files/open_with.zig
+msgid "{count} selected file"
+msgid_plural "{count} selected files"
+msgstr[0] "{count} ausgewählte Datei"
+msgstr[1] "{count} ausgewählte Dateien"
+
+#: src/delete_dialog.zig
+msgid "{count} selected item"
+msgid_plural "{count} selected items"
+msgstr[0] "{count} ausgewähltes Objekt"
+msgstr[1] "{count} ausgewählte Objekte"
+
+#: src/files/app_paint.zig
+msgid "{count} transfer · Downloads continue after closing Files."
+msgid_plural "{count} transfers · Downloads continue after closing Files."
+msgstr[0] "{count} Übertragung · Downloads laufen nach dem Schließen von Dateien weiter."
+msgstr[1] "{count} Übertragungen · Downloads laufen nach dem Schließen von Dateien weiter."
+
+#: src/notifications/toast.zig
+msgid "{count}h ago"
+msgstr "vor {count} Std."
+
+#: src/notifications/toast.zig
+msgid "{count}m ago"
+msgstr "vor {count} Min."
+
+#: src/files/app_paint.zig
+msgid "{count}{more} item"
+msgid_plural "{count}{more} items"
+msgstr[0] "{count}{more} Objekt"
+msgstr[1] "{count}{more} Objekte"
+
+#: src/desktop/app_paint.zig
+msgid "{kind} · {bytes} bytes"
+msgstr "{kind} · {bytes} Bytes"
+
+#: src/delete_dialog.zig
+msgid "{kind} · {size} {unit}"
+msgstr "{kind} · {size} {unit}"
+
+#: src/control_center/sections/region.zig
+msgid "{locale} · RediWM stays in English"
+msgstr "{locale} · RediWM bleibt auf Englisch"
+
+#: src/images/app.zig
+msgid "{modified}{name} — Images ({position}/{count})"
+msgstr "{modified}{name} — Bilder ({position}/{count})"
+
+#: src/editor/app.zig
+msgid "{modified}{name} — Text Editor ({tab}/{tabs})"
+msgstr "{modified}{name} — Texteditor ({tab}/{tabs})"
+
+#: src/files/open_with.zig
+msgid "{name} (default)"
+msgstr "{name} (Standard)"
+
+#: src/control_center/sections/region.zig
+msgid "{name} ({locale})"
+msgstr "{name} ({locale})"
+
+#: src/files/app_places.zig
+msgid "{name} can be safely removed"
+msgstr "{name} kann sicher entfernt werden"
+
+#: src/control_center/sections/appearance.zig
+msgid "{name} could not be loaded · showing the default R"
+msgstr "{name} konnte nicht geladen werden · das Standard-R wird angezeigt"
+
+#: src/files/volumes.zig
+msgid "{name} is already mounted"
+msgstr "{name} ist bereits eingebunden"
+
+#: src/files/volumes.zig
+msgid "{name} is busy"
+msgstr "{name} ist belegt"
+
+#: src/files/volumes.zig
+msgid "{name} is no longer available"
+msgstr "{name} ist nicht mehr verfügbar"
+
+#: src/files/app_places.zig
+msgid "{name} is no longer there"
+msgstr "{name} ist nicht mehr vorhanden"
+
+#: src/files/app_places.zig
+msgid "{name} mounted"
+msgstr "{name} eingebunden"
+
+#: src/control_center/sections/users.zig
+msgid "{name} · primary"
+msgstr "{name} · primär"
+
+#: src/pdf/app.zig
+msgid "{name} — PDF Viewer ({page}/{pages})"
+msgstr "{name} — PDF-Betrachter ({page}/{pages})"
+
+#: src/files/app.zig
+msgid "{name} — RediWM Files"
+msgstr "{name} — RediWM Dateien"
+
+#: src/control_center/sections/printers.zig
+msgid "{name}: level unavailable"
+msgstr "{name}: Ladestand nicht verfügbar"
+
+#: src/control_center/sections/printers.zig
+msgid "{n} completed sheet reported by CUPS"
+msgid_plural "{n} completed sheets reported by CUPS"
+msgstr[0] "{n} fertiggestelltes Blatt von CUPS gemeldet"
+msgstr[1] "{n} fertiggestellte Blätter von CUPS gemeldet"
+
+#: src/system_monitor/app.zig
+msgid "{n} process · Swap {swap}{status}"
+msgid_plural "{n} processes · Swap {swap}{status}"
+msgstr[0] "{n} Prozess · Auslagerung {swap}{status}"
+msgstr[1] "{n} Prozesse · Auslagerung {swap}{status}"
+
+#: src/control_center/sections/services.zig
+msgid "{n} service, {enabled} enabled"
+msgid_plural "{n} services, {enabled} enabled"
+msgstr[0] "{n} Dienst, {enabled} aktiviert"
+msgstr[1] "{n} Dienste, {enabled} aktiviert"
+
+#: src/files/app_torrents.zig
+msgid "{rate} KiB/s"
+msgstr "{rate} KiB/s"
+
+#: src/files/properties.zig
+msgid "{size} ({bytes} byte)"
+msgid_plural "{size} ({bytes} bytes)"
+msgstr[0] "{size} ({bytes} Byte)"
+msgstr[1] "{size} ({bytes} Bytes)"
+
+#: src/files/app_places.zig
+msgid "{size} Volume"
+msgstr "{size}-Datenträger"
+
+#: src/files/app_torrents.zig
+msgid "{size} selected · {path}"
+msgstr "{size} ausgewählt · {path}"
+
+#: src/control_center/sections/printers.zig
+msgid "{value} (supported {min}–{max})"
+msgstr "{value} (unterstützt {min}–{max})"
+
+#: src/files/app_torrents.zig
+msgid "{value} active · {rate} KiB/s"
+msgstr "{value} aktiv · {rate} KiB/s"
+
+#: src/files/app_torrents.zig
+msgid "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+msgstr "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+
+#: src/files/app_torrent_rows.zig
+msgid "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+msgstr "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "L"
+msgstr "L"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "R"
+msgstr "R"
+
+#: src/session/lock.zig
+msgctxt "date"
+msgid "%A, %B %-d"
+msgstr "%A, %-d. %B"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%A, %B %-d, %Y"
+msgstr "%A, %-d. %B %Y"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%B %Y"
+msgstr "%B %Y"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Comment"
+msgid "Browse, open and manage local files and folders"
+msgstr "Lokale Dateien und Ordner durchsuchen, öffnen und verwalten"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Comment"
+msgid "Download torrents and magnet links in Files"
+msgstr "Torrents und Magnet-Links in Dateien herunterladen"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Comment"
+msgid "Edit text files in tabs"
+msgstr "Textdateien in Tabs bearbeiten"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Comment"
+msgid "RediWM Wayland compositor"
+msgstr "RediWM-Wayland-Compositor"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Comment"
+msgid "Simple arithmetic calculator"
+msgstr "Einfacher Rechner für Grundrechenarten"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Comment"
+msgid "Validate and install a RediWM theme pack"
+msgstr "Ein RediWM-Themenpaket prüfen und installieren"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Comment"
+msgid "View CPU, memory and processes"
+msgstr "CPU, Speicher und Prozesse anzeigen"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Comment"
+msgid "View PDF documents with RediWM"
+msgstr "PDF-Dokumente mit RediWM anzeigen"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Comment"
+msgid "View images with RediWM"
+msgstr "Bilder mit RediWM anzeigen"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:GenericName"
+msgid "File Manager"
+msgstr "Dateimanager"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Keywords"
+msgid "arithmetic;math;calculate;"
+msgstr "arithmetik;mathematik;rechnen;"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Keywords"
+msgid "files;folder;browser;explorer;manager;"
+msgstr "dateien;ordner;browser;explorer;verwaltung;"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Keywords"
+msgid "process;task;CPU;memory;performance;"
+msgstr "prozess;aufgabe;CPU;speicher;leistung;"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Name"
+msgid "Calculator"
+msgstr "Rechner"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Name"
+msgid "Files Transfers"
+msgstr "Dateiübertragungen"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Name"
+msgid "Image Viewer"
+msgstr "Bildbetrachter"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Name"
+msgid "Install theme"
+msgstr "Thema installieren"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Name"
+msgid "PDF Viewer"
+msgstr "PDF-Betrachter"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Name"
+msgid "RediWM"
+msgstr "RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Name"
+msgid "RediWM Files"
+msgstr "RediWM Dateien"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Name"
+msgid "System Monitor"
+msgstr "Systemmonitor"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Name"
+msgid "Text Editor"
+msgstr "Texteditor"
+
+#: data/org.rediwm.accounts.policy
+msgctxt "polkit"
+msgid "Authentication is required to manage login accounts"
+msgstr "Zum Verwalten von Anmeldekonten ist eine Authentifizierung erforderlich"
+
+#: src/Dock.zig
+msgid "Application"
+msgstr "Anwendung"
+
+#: src/Dock.zig
+msgid "Files"
+msgstr "Dateien"
+
+#: src/start_menu/search.zig
+msgid "Loading applications…"
+msgstr "Anwendungen werden geladen…"
+
+#: src/toplevel/info.zig
+msgid "RediWM Settings"
+msgstr "RediWM-Einstellungen"
+
+#: src/start_menu/search.zig
+msgid "Scanning installed apps"
+msgstr "Installierte Anwendungen werden gesucht"
+
+#: src/start_menu/search.zig
+msgid "System preferences, display, appearance and input"
+msgstr "Systemeinstellungen, Anzeige, Erscheinungsbild und Eingabe"
+
+#: src/start_menu/search.zig
+msgid "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing"
+msgstr "Einstellungen;Steuerung;Bedienfeld;Voreinstellungen;Bildschirm;Erscheinungsbild;Maus;Tastatur;Drucker;Drucker;Drucken"
+
+#: src/control_center/sections/region.zig
+msgid "English"
+msgstr "Englisch"
diff --git a/po/es.po b/po/es.po
new file mode 100644
index 0000000..6e5a087
--- /dev/null
+++ b/po/es.po
@@ -0,0 +1,7574 @@
+# Español translation draft for RediWM.
+# Machine-drafted; fuzzy flags removed by the maintainer, native review pending.
+# Native review and screenshot/layout review are still required.
+msgid ""
+msgstr ""
+"Project-Id-Version: RediWM\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-RediWM-Native-Name: Español\n"
+"X-RediWM-Locale: es_ES.UTF-8\n"
+"X-RediWM-Reviewed: no\n"
+
+#: src/system_monitor/app.zig
+msgid " · /proc unavailable"
+msgstr " · /proc no disponible"
+
+#: src/control_center/sections/printers.zig
+msgid " · Default"
+msgstr " · Predeterminado"
+
+#: src/system_monitor/app.zig
+msgid " · List limited"
+msgstr " · Lista limitada"
+
+#: src/system_monitor/app.zig
+msgid " · Paused"
+msgstr " · En pausa"
+
+#: src/system_monitor/app.zig
+msgid " · Some processes unavailable"
+msgstr " · Algunos procesos no disponibles"
+
+#: src/control_center/sections/printers.zig
+msgid " · System default"
+msgstr " · Predeterminado del sistema"
+
+#: src/control_center/sections/desktop.zig
+msgid "1 second"
+msgstr "1 segundo"
+
+#: src/control_center/sections/desktop.zig
+msgid "1.5 seconds"
+msgstr "1,5 segundos"
+
+#: src/control_center/welcome.zig
+msgid "100%"
+msgstr "100%"
+
+#: src/control_center/welcome.zig
+msgid "125%"
+msgstr "125%"
+
+#: src/control_center/welcome.zig
+msgid "150%"
+msgstr "150%"
+
+#: src/control_center/welcome.zig
+msgid "175%"
+msgstr "175%"
+
+#: src/control_center/sections/display.zig
+msgid "180°"
+msgstr "180°"
+
+#: src/control_center/sections/desktop.zig
+msgid "2 seconds"
+msgstr "2 segundos"
+
+#: src/control_center/welcome.zig
+msgid "200%"
+msgstr "200%"
+
+#: src/control_center/search_index.zig
+msgid "24-hour clock"
+msgstr "Reloj de 24 horas"
+
+#: src/control_center/welcome.zig
+msgid "250%"
+msgstr "250%"
+
+#: src/control_center/sections/display.zig
+msgid "270°"
+msgstr "270°"
+
+#: src/control_center/sections/desktop.zig
+msgid "3 seconds"
+msgstr "3 segundos"
+
+#: src/control_center/welcome.zig
+msgid "300%"
+msgstr "300%"
+
+#: src/control_center/sections/desktop.zig
+msgid "5 seconds"
+msgstr "5 segundos"
+
+#: src/system_monitor/app.zig
+msgid "60 seconds"
+msgstr "60 segundos"
+
+#: src/control_center/sections/display.zig
+msgid "90°"
+msgstr "90°"
+
+#: src/printing/ladder.zig
+msgid "A USB character device is not applicable to this connection."
+msgstr "Un dispositivo de caracteres USB no es aplicable a esta conexión."
+
+#: src/files/app_opening.zig
+msgid "A file operation is already running"
+msgstr "Ya hay una operación de archivos en curso"
+
+#: src/files/app_chooser.zig
+msgid "A file with this name exists. Replace it?"
+msgstr "Ya existe un archivo con este nombre. ¿Reemplazarlo?"
+
+#: src/printing/ladder.zig
+msgid "A matched device-node path is a regular file or another wrong file type."
+msgstr "La ruta de dispositivo USB correspondiente es un archivo normal o de otro tipo incorrecto."
+
+#: src/printing/ladder.zig
+msgid "A matching USB printer interface is attached."
+msgstr "Hay conectada una interfaz de impresora USB correspondiente."
+
+#: src/printing/ladder.zig
+msgid "A matching character device exists; backend access has not been tested."
+msgstr "Existe un dispositivo de caracteres correspondiente; no se ha probado el acceso del servicio."
+
+#: src/control_center/sections/printers.zig
+msgid "A printer with this queue name already exists. Choose another name."
+msgstr "Ya existe una impresora con este nombre de cola. Elige otro nombre."
+
+#: src/control_center/sections/printers.zig
+msgid "A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."
+msgstr "Una cola sin procesar transmite los comandos sin cambios; imprimir archivos PDF requiere un controlador compatible."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."
+msgstr "La carpeta de configuración de un toolkit es un enlace simbólico. Aplica los colores en su ubicación real o conviértela en una carpeta normal."
+
+#: src/control_center/sections/appearance.zig
+msgid "APPEARANCE"
+msgstr "APARIENCIA"
+
+#: src/printing/cups.zig
+msgid "Aborted"
+msgstr "Anulado"
+
+#: src/control_center/sections/printers.zig
+msgid "Accept jobs"
+msgstr "Aceptar trabajos"
+
+#: src/control_center/sections/users.zig
+msgid "Account details · {name}"
+msgstr "Detalles de la cuenta · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Account settings are unlocked for this session."
+msgstr "Los ajustes de cuenta están desbloqueados para esta sesión."
+
+#: src/control_center/sections/users.zig
+msgid "Account type"
+msgstr "Tipo de cuenta"
+
+#: src/control_center/search_index.zig
+msgid "Accounts"
+msgstr "Cuentas"
+
+#: src/control_center/sections/services.zig
+msgid "Activated by: {name}"
+msgstr "Activado por: {name}"
+
+#: src/files/open_with.zig
+msgid "Add Application Shortcut"
+msgstr "Añadir acceso directo a una aplicación"
+
+#: src/desktop/app_actions.zig
+msgid "Add Application…"
+msgstr "Añadir aplicación…"
+
+#: src/files/open_with.zig
+msgid "Add Shortcut"
+msgstr "Añadir acceso directo"
+
+#: src/control_center/sections/printers.zig
+msgid "Add a printer"
+msgstr "Añadir una impresora"
+
+#: src/files/app_model.zig
+msgid "Add to applications"
+msgstr "Añadir a las aplicaciones"
+
+#: src/files/app_torrents.zig
+msgid "Add torrent…"
+msgstr "Añadir torrent…"
+
+#: src/control_center/sections/users.zig
+msgid "Add user"
+msgstr "Añadir usuario"
+
+#: src/control_center/sections/users.zig
+msgid "Add user…"
+msgstr "Añadir usuario…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images"
+msgstr "Añade tus propias imágenes"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images to {folder}"
+msgstr "Añade tus propias imágenes a {folder}"
+
+#: src/files/app_places.zig
+msgid "Added to Places"
+msgstr "Añadido a Lugares"
+
+#: src/files/worker.zig
+msgid "Added to applications. Keep the AppImage in its current location."
+msgstr "Añadido a las aplicaciones. Mantén el AppImage en su ubicación actual."
+
+#: src/files/app_places.zig
+msgid "Added {value} items to Places"
+msgstr "Se añadieron {value} elementos a Lugares"
+
+#: src/files/app_places.zig
+msgid "Added {value} to Places"
+msgstr "Se añadió {value} a Lugares"
+
+#: src/files/app_opening.zig
+msgid "Adding to applications…"
+msgstr "Añadiendo a las aplicaciones…"
+
+#: src/network/manager.zig
+msgid "Additional setup required"
+msgstr "Requiere configuración adicional"
+
+#: src/control_center/sections/printers.zig
+msgid "Address checks support IPP printers. Other connections can be tested with an explicit print after setup."
+msgstr "La comprobación de direcciones admite impresoras IPP. Las demás conexiones se pueden probar imprimiendo tras configurarlas."
+
+#: src/control_center/sections/users.zig
+msgid "Administrator"
+msgstr "Administrador"
+
+#: src/polkit/dialog.zig
+msgid "Administrator privileges are required to continue."
+msgstr "Se necesitan privilegios de administrador para continuar."
+
+#: src/control_center/sections/services.zig
+msgid "All"
+msgstr "Todo"
+
+#: src/files/open_with.zig
+msgid "All Applications"
+msgstr "Todas las aplicaciones"
+
+#: src/files/app_chooser.zig
+msgid "All files"
+msgstr "Todos los archivos"
+
+#: src/delete_dialog.zig
+msgid "All items in Trash"
+msgstr "Todos los elementos de la papelera"
+
+#: src/system_monitor/app.zig
+msgid "All processes"
+msgstr "Todos los procesos"
+
+#: src/desktop/app_actions.zig
+msgid "Allow Launching"
+msgstr "Permitir la ejecución"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow connections from this device without asking."
+msgstr "Permitir conexiones de este dispositivo sin preguntar."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow pairing with this device?"
+msgstr "¿Permitir el emparejamiento con este dispositivo?"
+
+#: src/files/app_places.zig
+msgid "Already in Places"
+msgstr "Ya está en Lugares"
+
+#: src/files/open_with.zig
+msgid "Always use this app for this file type"
+msgstr "Usar siempre esta aplicación para este tipo de archivo"
+
+#: src/files/open_with.zig
+msgid "Always use this app for {value} files"
+msgstr "Usar siempre esta aplicación para archivos {value}"
+
+#: src/files/app_opening.zig
+msgid "An application is already being added"
+msgstr "Ya se está añadiendo una aplicación"
+
+#: src/control_center/sections/services.zig
+msgid "Analyze"
+msgstr "Analizar"
+
+#: src/control_center/sections/services.zig
+msgid "Analyzing…"
+msgstr "Analizando…"
+
+#: src/control_center/search_index.zig
+msgid "Animation speed"
+msgstr "Velocidad de animación"
+
+#: src/control_center/search_index.zig
+msgid "Animations"
+msgstr "Animaciones"
+
+#: src/session/power.zig
+msgid "Another power action is already in progress."
+msgstr "Ya hay otra acción de energía en curso."
+
+#: src/control_center/sections/appearance.zig
+msgid "App colors"
+msgstr "Colores de aplicaciones"
+
+#: src/control_center/sections/sound.zig
+msgid "App streams"
+msgstr "Flujos de aplicaciones"
+
+#: src/control_center/panel.zig
+msgid "Appearance"
+msgstr "Apariencia"
+
+#: src/files/appimage.zig
+msgid "Application added, but some file or link associations could not be registered"
+msgstr "Se añadió la aplicación, pero no se pudieron registrar algunas asociaciones de archivos o enlaces"
+
+#: src/start_menu/launch.zig
+msgid "Application could not be started"
+msgstr "No se pudo iniciar la aplicación"
+
+#: src/control_center/search_index.zig
+msgid "Application language"
+msgstr "Idioma de las aplicaciones"
+
+#: src/start_menu/panel.zig
+msgid "Applications"
+msgstr "Aplicaciones"
+
+#: src/control_center/sections/desktop.zig
+msgid "Applies to output edges and the space between automatic tiles."
+msgstr "Se aplica a los bordes de la pantalla y al espacio entre ventanas en mosaico automático."
+
+#: src/images/app.zig
+msgid "Apply"
+msgstr "Aplicar"
+
+#: src/control_center/search_index.zig
+msgid "Apply GTK colors"
+msgstr "Aplicar colores de GTK"
+
+#: src/control_center/search_index.zig
+msgid "Apply Qt colors"
+msgstr "Aplicar colores de Qt"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply connection"
+msgstr "Aplicar conexión"
+
+#: src/images/app.zig
+msgid "Apply crop"
+msgstr "Aplicar recorte"
+
+#: src/images/app.zig
+msgid "Apply crop · Enter"
+msgstr "Aplicar recorte · Intro"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply value"
+msgstr "Aplicar valor"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Applying app colors…"
+msgstr "Aplicando colores de aplicaciones…"
+
+#: src/printing/admin.zig
+msgid "Applying printer change; authorization may be required…"
+msgstr "Aplicando cambio de impresora; puede requerir autorización…"
+
+#: src/start_menu/panel.zig
+msgid "Apps"
+msgstr "Aplicaciones"
+
+#: src/control_center/sections/appearance.zig
+msgid "Apps and web pages"
+msgstr "Aplicaciones y páginas web"
+
+#: src/files/archive.zig
+msgid "Archive contains an unsafe path"
+msgstr "El archivo comprimido contiene una ruta insegura"
+
+#: src/files/archive.zig
+msgid "Archive contains unsupported links or special files"
+msgstr "El archivo comprimido contiene enlaces o archivos especiales no admitidos"
+
+#: src/files/archive.zig
+msgid "Archive has too many entries"
+msgstr "El archivo comprimido contiene demasiados elementos"
+
+#: src/files/archive.zig
+msgid "Archive is corrupt or unsupported"
+msgstr "El archivo comprimido está dañado o no es compatible"
+
+#: src/control_center/welcome.zig
+msgid "Arrange windows automatically."
+msgstr "Organizar las ventanas automáticamente."
+
+#: src/control_center/search_index.zig
+msgid "Arrangement"
+msgstr "Disposición"
+
+#: src/control_center/panel.zig
+msgid "Arrangement, resolution, refresh rate and scaling."
+msgstr "Disposición, resolución, frecuencia de actualización y escala."
+
+#: src/control_center/sections/desktop.zig
+msgid "Assigned to the current output when first used."
+msgstr "Se asigna a la pantalla actual al usarse por primera vez."
+
+#: src/control_center/sections/printers.zig
+msgid "Attached USB printers"
+msgstr "Impresoras USB conectadas"
+
+#: src/polkit/dialog.zig
+msgid "Attempt {attempt} of 3"
+msgstr "Intento {attempt} de 3"
+
+#: src/control_center/panel.zig
+msgid "Audio"
+msgstr "Audio"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio (A2DP) · High quality audio"
+msgstr "Audio (A2DP) · Alta calidad"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio Settings"
+msgstr "Ajustes de audio"
+
+#: src/control_center/panel.zig
+msgid "Audio output"
+msgstr "Salida de audio"
+
+#: src/control_center/search_index.zig
+msgid "Audio output device"
+msgstr "Dispositivo de salida de audio"
+
+#: src/control_center/panel.zig
+msgid "Audio settings"
+msgstr "Ajustes de audio"
+
+#: src/control_center/panel.zig
+msgid "Audio unavailable"
+msgstr "Audio no disponible"
+
+#: src/control_center/sections/printers.zig
+msgid "Authenticate"
+msgstr "Autenticar"
+
+#: src/printing/admin.zig
+msgid "Authenticating with CUPS…"
+msgstr "Autenticando con CUPS…"
+
+#: src/polkit/dialog.zig
+msgid "Authenticating…"
+msgstr "Autenticando…"
+
+#: src/polkit/dialog.zig
+msgid "Authentication"
+msgstr "Autenticación"
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed."
+msgstr "La autenticación falló."
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed. Please try again."
+msgstr "La autenticación falló. Inténtalo de nuevo."
+
+#: src/polkit/dialog.zig
+msgid "Authentication required"
+msgstr "Se requiere autenticación"
+
+#: src/polkit/dialog.zig
+msgid "Authentication service unavailable."
+msgstr "Servicio de autenticación no disponible."
+
+#: src/session/lock.zig
+msgid "Authentication unavailable. Try again."
+msgstr "Autenticación no disponible. Inténtalo de nuevo."
+
+#: src/control_center/sections/users.zig
+msgid "Authentication was cancelled or denied."
+msgstr "La autenticación se canceló o se denegó."
+
+#: src/systemd.zig
+msgid "Authentication was cancelled or denied. Notify setting is unchanged."
+msgstr "La autenticación se canceló o denegó. El ajuste Notify no cambió."
+
+#: src/control_center/sections/printers.zig
+msgid "Authorize printer administration"
+msgstr "Autorizar la administración de impresoras"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto"
+msgstr "Automático"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto-hide dock"
+msgstr "Ocultar el dock automáticamente"
+
+#: src/network/popup.zig
+msgid "Auto-join this network"
+msgstr "Conectarse automáticamente a esta red"
+
+#: src/printing/options.zig
+msgid "Automatic"
+msgstr "Automático"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Automatic ($TERMINAL / Foot)"
+msgstr "Automático ($TERMINAL / Foot)"
+
+#: src/control_center/search_index.zig
+msgid "Automatic login"
+msgstr "Inicio de sesión automático"
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating."
+msgstr "Mosaico automático con una vista fija y atajos al estilo de Hyprland. Arrastra las ventanas para reorganizarlas; Super+V cambia el modo flotante."
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiling"
+msgstr "Mosaico automático"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Available Devices"
+msgstr "Dispositivos disponibles"
+
+#: src/files/app_torrents.zig
+msgid "Back"
+msgstr "Atrás"
+
+#: src/files/open_with.zig
+msgid "Back to recommended apps"
+msgstr "Volver a las aplicaciones recomendadas"
+
+#: src/control_center/sections/printers.zig
+msgid "Backend"
+msgstr "Servicio de integración"
+
+#: src/printing/ladder.zig
+msgid "Backend communication and device identity have not been confirmed."
+msgstr "No se han confirmado la comunicación con el servicio ni la identidad del dispositivo."
+
+#: src/control_center/sections/sound.zig
+msgid "Balance"
+msgstr "Balance"
+
+#: src/power_profiles.zig
+msgid "Balanced"
+msgstr "Equilibrado"
+
+#: src/control_center/sections/sound.zig
+msgid "Bass Boost"
+msgstr "Refuerzo de graves"
+
+#: src/control_center/search_index.zig
+msgid "Bass boost"
+msgstr "Refuerzo de graves"
+
+#: src/printing/options.zig
+msgid "Black and white"
+msgstr "Blanco y negro"
+
+#: src/control_center/sections/printers.zig
+msgid "Blank or no output"
+msgstr "En blanco o sin salida"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Blocked"
+msgstr "Bloqueado"
+
+#: src/session/power.zig
+msgid "Blocked by an active inhibitor lock."
+msgstr "Bloqueado por un inhibidor activo."
+
+#: src/session/power.zig
+msgid "Blocked by an application."
+msgstr "Bloqueado por una aplicación."
+
+#: src/session/power.zig
+msgid "Blocked by {application}."
+msgstr "Bloqueado por {application}."
+
+#: src/session/power.zig
+msgid "Blocked by {application}: {reason}"
+msgstr "Bloqueado por {application}: {reason}"
+
+#: src/control_center/panel.zig
+msgid "Bluetooth"
+msgstr "Bluetooth"
+
+#: src/control_center/search_index.zig
+msgid "Bluetooth devices"
+msgstr "Dispositivos Bluetooth"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth is turned off"
+msgstr "Bluetooth está desactivado"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth service is unavailable"
+msgstr "El servicio Bluetooth no está disponible"
+
+#: src/control_center/search_index.zig
+msgid "Bold clock"
+msgstr "Reloj en negrita"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bold clock text"
+msgstr "Texto del reloj en negrita"
+
+#: src/control_center/sections/appearance.zig
+msgid "Boost window"
+msgstr "Ampliar ventana"
+
+#: src/systemd.zig
+msgid "Boot summary is unavailable."
+msgstr "Resumen de arranque no disponible."
+
+#: src/control_center/sections/services.zig
+msgid "Boot time: {duration}"
+msgstr "Tiempo de arranque: {duration}"
+
+#: src/control_center/sections/services.zig
+msgid "Boot: from kernel start. Activation times overlap; — means unavailable."
+msgstr "Arranque: desde el inicio del núcleo. Los tiempos de activación se solapan; — indica no disponible."
+
+#: src/control_center/search_index.zig
+msgid "Border glow"
+msgstr "Resplandor del borde"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bottom"
+msgstr "Abajo"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom center"
+msgstr "Abajo, centro"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom left"
+msgstr "Abajo, izquierda"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom right"
+msgstr "Abajo, derecha"
+
+#: src/files/git.zig
+msgid "Branch name cannot be empty"
+msgstr "El nombre de la rama no puede estar vacío"
+
+#: src/control_center/sections/appearance.zig
+msgid "Brief placeholder while apps start"
+msgstr "Indicador breve mientras se inician las aplicaciones"
+
+#: src/control_center/panel.zig
+msgid "Brightness"
+msgstr "Brillo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Down"
+msgstr "Bajar brillo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Up"
+msgstr "Subir brillo"
+
+#: src/files/app_listing.zig
+msgid "Broken link"
+msgstr "Enlace roto"
+
+#: src/control_center/welcome.zig
+msgid "Browser"
+msgstr "Navegador"
+
+#: src/images/app.zig
+msgid "C: crop · Ctrl+S: save · Delete: trash"
+msgstr "C: recortar · Ctrl+S: guardar · Supr: papelera"
+
+#: src/control_center/sections/appearance.zig
+msgid "CENTER"
+msgstr "CENTRO"
+
+#: src/system_monitor/app.zig
+msgid "CPU %"
+msgstr "CPU %"
+
+#: src/system_monitor/app.zig
+msgid "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"
+msgstr "CPU: 100% = un núcleo · Memoria: residente · Ctrl+F buscar · Supr terminar · Mayús+Supr forzar salida"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS"
+msgstr "CUPS"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS accepted the change; the resulting driver value could not be verified."
+msgstr "CUPS aceptó el cambio; no se pudo verificar el valor resultante del controlador."
+
+#: src/printing/ladder.zig
+msgid "CUPS answered an IPP request."
+msgstr "CUPS respondió a una solicitud IPP."
+
+#: src/printing/admin.zig
+msgid "CUPS authentication failed after three attempts. Check the administrator account and permissions."
+msgstr "La autenticación de CUPS falló tras tres intentos. Comprueba la cuenta de administración y sus permisos."
+
+#: src/printing/ladder.zig
+msgid "CUPS availability has not been checked."
+msgstr "No se ha comprobado la disponibilidad de CUPS."
+
+#: src/printing/cups.zig
+msgid "CUPS cannot honor the requested print settings. Check the paper, format and scaling options."
+msgstr "CUPS no puede aplicar los ajustes de impresión solicitados. Comprueba el papel, el formato y la escala."
+
+#: src/printing/ladder.zig
+msgid "CUPS completed the job with zero sheets reported; physical output is not confirmed."
+msgstr "CUPS completó el trabajo e indicó cero hojas; no se ha confirmado la salida física."
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."
+msgstr "CUPS copia la cola y elimina su identificador anterior. Finaliza primero todos los trabajos. Después comprueba las opciones del controlador."
+
+#: src/printing/cups.zig
+msgid "CUPS denied permission. The operation requires authorization."
+msgstr "CUPS denegó el permiso. La operación requiere autorización."
+
+#: src/printing/ladder.zig
+msgid "CUPS did not answer an IPP request."
+msgstr "CUPS no respondió a una solicitud IPP."
+
+#: src/printing/cups.zig
+msgid "CUPS did not respond in time. Refresh to try again."
+msgstr "CUPS no respondió a tiempo. Actualiza para reintentar."
+
+#: src/printing/admin.zig
+msgid "CUPS discovered no supported printer addresses. You can enter a network address."
+msgstr "CUPS no detectó direcciones de impresora compatibles. Puedes introducir una dirección de red."
+
+#: src/printing/cups.zig
+msgid "CUPS is unavailable. Install or start CUPS, then refresh."
+msgstr "CUPS no está disponible. Instala o inicia CUPS y actualiza."
+
+#: src/printing/admin.zig
+msgid "CUPS refused or could not complete the request. Check authorization and refresh before retrying."
+msgstr "CUPS rechazó o no pudo completar la solicitud. Comprueba la autorización y actualiza antes de reintentar."
+
+#: src/printing/admin.zig
+msgid "CUPS refused the printer change. Check authorization, the address and driver, then refresh."
+msgstr "CUPS rechazó el cambio de impresora. Comprueba la autorización, la dirección y el controlador, y actualiza."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports conflicting queue and driver defaults."
+msgstr "CUPS indica valores predeterminados contradictorios en la cola y el controlador."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports the job completed; physical printed output is not confirmed."
+msgstr "CUPS indica que el trabajo se completó; no se ha confirmado la impresión física."
+
+#: src/printing/admin.zig
+msgid "CUPS requires an administrator username and password."
+msgstr "CUPS requiere un nombre de usuario y contraseña de administración."
+
+#: src/printing/cups.zig
+msgid "CUPS returned an invalid response or the connection failed. Refresh to try again."
+msgstr "CUPS devolvió una respuesta no válida o falló la conexión. Actualiza para reintentar."
+
+#: src/printing/admin.zig
+msgid "CUPS start requested. Refresh to check when it is ready."
+msgstr "Se solicitó iniciar CUPS. Actualiza para comprobar cuándo está listo."
+
+#: src/network/manager.zig
+msgid "Cable unplugged"
+msgstr "Cable desconectado"
+
+#: src/files/app_model.zig
+msgid "Calculate size"
+msgstr "Calcular tamaño"
+
+#: src/calculator/app.zig
+msgid "Calculator"
+msgstr "Calculadora"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom In"
+msgstr "Ampliar cámara"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Out"
+msgstr "Reducir cámara"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Reset"
+msgstr "Restablecer ampliación de cámara"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel"
+msgstr "Cancelar"
+
+#: src/files/app_paint.zig
+msgid "Cancel (C)"
+msgstr "Cancelar (C)"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel Pairing"
+msgstr "Cancelar emparejamiento"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel job"
+msgstr "Cancelar trabajo"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel setup"
+msgstr "Cancelar configuración"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel test"
+msgstr "Cancelar prueba"
+
+#: src/files/volumes.zig
+msgid "Cancelled"
+msgstr "Cancelado"
+
+#: src/files/ops.zig
+msgid "Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Cancelado. Extraídos: {completed}. Omitidos: {skipped}. Fallidos: {failed}. Pendientes: {remaining}."
+
+#: src/files/ops.zig
+msgid "Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Cancelado. Transferidos: {completed}. Omitidos: {skipped}. Fallidos: {failed}. Pendientes: {remaining}."
+
+#: src/files/app_keyboard.zig
+msgid "Cancelling operation..."
+msgstr "Cancelando operación..."
+
+#: src/calculator/model.zig
+msgid "Cannot divide by zero"
+msgstr "No se puede dividir entre cero"
+
+#: src/files/main.zig
+msgid "Cannot drop a folder into itself"
+msgstr "No se puede soltar una carpeta dentro de sí misma"
+
+#: src/files/app_terminal.zig
+msgid "Cannot insert paths containing control characters"
+msgstr "No se pueden insertar rutas con caracteres de control"
+
+#: src/session/lock.zig
+msgid "Cannot reach login service. Try again."
+msgstr "No se puede contactar con el servicio de inicio de sesión. Inténtalo de nuevo."
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas"
+msgstr "Lienzo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas & Focus"
+msgstr "Lienzo y foco"
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas Preview"
+msgstr "Vista previa del lienzo"
+
+#: src/control_center/search_index.zig
+msgid "Canvas Size"
+msgstr "Tamaño del lienzo"
+
+#: src/control_center/search_index.zig
+msgid "Canvas pan speed"
+msgstr "Velocidad de desplazamiento del lienzo"
+
+#: src/control_center/search_index.zig
+msgid "Canvas size"
+msgstr "Tamaño del lienzo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas · RediWM preset"
+msgstr "Lienzo · Preajuste de RediWM"
+
+#: src/session/lock.zig
+msgid "Caps Lock is on"
+msgstr "Bloq Mayús está activado"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture a region of your screen."
+msgstr "Capturar una región de la pantalla."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture the current display."
+msgstr "Capturar la pantalla actual."
+
+#: src/control_center/sections/sound.zig
+msgid "Centre"
+msgstr "Centro"
+
+#: src/desktop/app_actions.zig
+msgid "Change Wallpaper"
+msgstr "Cambiar fondo de pantalla"
+
+#: src/control_center/sections/printers.zig
+msgid "Change connection…"
+msgstr "Cambiar conexión…"
+
+#: src/control_center/sections/users.zig
+msgid "Change password · {name}"
+msgstr "Cambiar contraseña · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Change password…"
+msgstr "Cambiar contraseña…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change printer connection"
+msgstr "Cambiar conexión de la impresora"
+
+#: src/control_center/sections/printers.zig
+msgid "Change queue identifier…"
+msgstr "Cambiar identificador de la cola…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change this queue identifier"
+msgstr "Cambiar el identificador de esta cola"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Change window depth."
+msgstr "Cambiar la profundidad de la ventana."
+
+#: src/control_center/sections/printers.zig
+msgid "Change {old} to {name}?"
+msgstr "¿Cambiar {old} por {name}?"
+
+#: src/control_center/sections/portals.zig
+msgid "Changes apply next time you sign in."
+msgstr "Los cambios se aplicarán la próxima vez que inicies sesión."
+
+#: src/control_center/sections/display.zig
+msgid "Changes are saved automatically. Scroll the lists for more modes."
+msgstr "Los cambios se guardan automáticamente. Desplaza las listas para ver más modos."
+
+#: src/control_center/sections/users.zig
+msgid "Changes saved."
+msgstr "Cambios guardados."
+
+#: src/control_center/sections/region.zig
+msgid "Changes the taskbar calendar."
+msgstr "Cambia el calendario de la barra de tareas."
+
+#: src/taskbar/battery.zig
+msgid "Charging"
+msgstr "Cargando"
+
+#: src/control_center/sections/printers.zig
+msgid "Check IPP address"
+msgstr "Comprobar dirección IPP"
+
+#: src/control_center/sections/users.zig
+msgid "Check NSS and /etc/login.defs."
+msgstr "Comprueba NSS y /etc/login.defs."
+
+#: src/control_center/sections/printers.zig
+msgid "Check measured scale"
+msgstr "Comprobar la escala medida"
+
+#: src/printing/ladder.zig
+msgid "Check power, the USB cable, and which printer this queue uses."
+msgstr "Comprueba la alimentación, el cable USB y qué impresora usa esta cola."
+
+#: src/printing/ladder.zig
+msgid "Check printer power, the address, and access through the network or VPN."
+msgstr "Comprueba la alimentación, la dirección y el acceso a la impresora por red o VPN."
+
+#: src/printing/ladder.zig
+msgid "Check the configured CUPS server and whether the print service is installed and available."
+msgstr "Comprueba el servidor CUPS configurado y si el servicio de impresión está instalado y disponible."
+
+#: src/printing/ladder.zig
+msgid "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."
+msgstr "Comprueba la conexión y la dirección del servicio. Un tiempo de espera agotado no demuestra que haga falta un ajuste USB especial."
+
+#: src/printing/ladder.zig
+msgid "Check the device's USB mode and its self-test instructions."
+msgstr "Comprueba el modo USB del dispositivo y sus instrucciones de autoprueba."
+
+#: src/printing/ladder.zig
+msgid "Check the document, driver, media size, and resolution. Compare with a test that skips the filters."
+msgstr "Comprueba el documento, el controlador, el tamaño del papel y la resolución. Compara con una prueba sin filtros."
+
+#: src/calculator/model.zig
+msgid "Check the expression"
+msgstr "Comprueba la expresión"
+
+#: src/printing/ladder.zig
+msgid "Check the job's reported reason before retrying."
+msgstr "Comprueba el motivo indicado por el trabajo antes de reintentar."
+
+#: src/printing/ladder.zig
+msgid "Check the physical output and any document or filter failure; sheet counters can be incomplete."
+msgstr "Comprueba la salida física y los fallos de documentos o filtros; los contadores de hojas pueden estar incompletos."
+
+#: src/control_center/sections/printers.zig
+msgid "Check the printer's self-test sheet for its language and real resolution."
+msgstr "Consulta el lenguaje y la resolución real en la hoja de autoprueba de la impresora."
+
+#: src/printing/ladder.zig
+msgid "Check the queue address and USB serial; reconnecting can change a device-node path."
+msgstr "Comprueba la dirección de la cola y el número de serie USB; reconectar puede cambiar la ruta del dispositivo."
+
+#: src/printing/ladder.zig
+msgid "Check the usblp driver and the queue's device path; node names can change after reconnection."
+msgstr "Comprueba el controlador usblp y la ruta del dispositivo de la cola; los nombres de nodo pueden cambiar al reconectar."
+
+#: src/control_center/sections/desktop.zig
+msgid "Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."
+msgstr "Las aplicaciones marcadas se abren flotantes. Super+V puede cambiar la disposición de una ventana. Los diálogos y las ventanas de tamaño fijo siempre flotan."
+
+#: src/control_center/panel.zig
+msgid "Checking backlight…"
+msgstr "Comprobando iluminación…"
+
+#: src/session/lock.zig
+msgid "Checking password…"
+msgstr "Comprobando contraseña…"
+
+#: src/printing/admin.zig
+msgid "Checking printer administration…"
+msgstr "Comprobando administración de impresoras…"
+
+#: src/session/lock.zig
+msgid "Checking…"
+msgstr "Comprobando…"
+
+#: src/files/app.zig
+msgid "Choose Folder"
+msgstr "Elegir carpeta"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose Start button logo"
+msgstr "Elegir el logotipo del botón de inicio"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a driver…"
+msgstr "Elegir un controlador…"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language."
+msgstr "Elige un lenguaje de la hoja de autoprueba o prueba una muestra. Anota el resultado antes de elegir otro lenguaje."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose a path without quotes, backslashes or control characters."
+msgstr "Elige una ruta sin comillas, barras inversas ni caracteres de control."
+
+#: src/share_picker/client.zig
+msgid "Choose a source. Escape cancels."
+msgstr "Elige una fuente. Escape cancela."
+
+#: src/files/app_chooser.zig
+msgid "Choose an accessible file or folder and a valid filename."
+msgstr "Elige un archivo o carpeta accesible y un nombre de archivo válido."
+
+#: src/files/open_with.zig
+msgid "Choose an application to add to the desktop"
+msgstr "Elegir una aplicación para añadir al escritorio"
+
+#: src/files/open_with.zig
+msgid "Choose another app…"
+msgstr "Elegir otra aplicación…"
+
+#: src/files/app_torrent_rows.zig
+msgid "Choose files"
+msgstr "Elegir archivos"
+
+#: src/files/torrents.zig
+msgid "Choose files to download"
+msgstr "Elegir archivos para descargar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Choose file…"
+msgstr "Elegir archivo…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose folder"
+msgstr "Elegir carpeta"
+
+#: src/control_center/welcome.zig
+msgid "Choose how your desktop works."
+msgstr "Elige cómo funciona tu escritorio."
+
+#: src/printing/cups.zig
+msgid "Choose the actual paper dimensions before printing this test."
+msgstr "Elige las dimensiones reales del papel antes de imprimir esta prueba."
+
+#: src/control_center/panel.zig
+msgid "Choose the keys for your everyday actions."
+msgstr "Elige las teclas para las acciones cotidianas."
+
+#: src/printing/ladder.zig
+msgid "Choose the paper or label size actually loaded in the printer."
+msgstr "Elige el tamaño de papel o etiqueta que está cargado en la impresora."
+
+#: src/control_center/sections/portals.zig
+msgid "Choose the services apps use for desktop dialogs. The selected backend must be installed."
+msgstr "Elige los servicios que usan las aplicaciones para los diálogos del escritorio. El servicio elegido debe estar instalado."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose wallpaper folder"
+msgstr "Elegir carpeta del fondo de pantalla"
+
+#: src/control_center/sections/users.zig
+msgid "Choose whether to keep the home folder or remove its files."
+msgstr "Elige si quieres conservar la carpeta personal o eliminar sus archivos."
+
+#: src/control_center/welcome.zig
+msgid "Choose your window layout"
+msgstr "Elige la disposición de las ventanas"
+
+#: src/control_center/welcome.zig
+msgid "Classic (stacking)"
+msgstr "Clásico (apilado)"
+
+#: src/control_center/search.zig
+msgid "Clear search"
+msgstr "Limpiar búsqueda"
+
+#: src/editor/app.zig
+msgid "Clipboard selections are limited to 1 MiB."
+msgstr "Las selecciones del portapapeles tienen un límite de 1 MiB."
+
+#: src/files/app_keyboard.zig
+msgid "Clipboard text is invalid or too long"
+msgstr "El texto del portapapeles no es válido o es demasiado largo"
+
+#: src/files/main.zig
+msgid "Clipboard transfer failed or exceeded 1 MiB"
+msgstr "La transferencia del portapapeles falló o superó 1 MiB"
+
+#: src/files/main.zig
+msgid "Clipboard transfer timed out"
+msgstr "La transferencia del portapapeles agotó el tiempo de espera"
+
+#: src/control_center/search_index.zig
+msgid "Clock day"
+msgstr "Día en el reloj"
+
+#: src/control_center/search_index.zig
+msgid "Clock seconds"
+msgstr "Segundos en el reloj"
+
+#: src/calculator/client.zig
+msgid "Close"
+msgstr "Cerrar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close Window"
+msgstr "Cerrar ventana"
+
+#: src/chrome_tabs.zig
+msgid "Close tab"
+msgstr "Cerrar pestaña"
+
+#: src/files/app_terminal.zig
+msgid "Close terminal session?"
+msgstr "¿Cerrar la sesión de terminal?"
+
+#: src/control_center/sections/printers.zig
+msgid "Close test result"
+msgstr "Cerrar resultado de prueba"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close the focused window."
+msgstr "Cerrar la ventana enfocada."
+
+#: src/taskbar/window_menu.zig
+msgid "Close window"
+msgstr "Cerrar ventana"
+
+#: src/files/app_paint.zig
+msgid "Closing ends this shell and its running jobs."
+msgstr "Al cerrar se termina esta shell y sus tareas en ejecución."
+
+#: src/system_monitor/app.zig
+msgid "Collecting processes…"
+msgstr "Recopilando procesos…"
+
+#: src/control_center/sections/display.zig
+msgid "Color temperature"
+msgstr "Temperatura de color"
+
+#: src/printing/options.zig
+msgid "Colour"
+msgstr "Color"
+
+#: src/control_center/sections/printers.zig
+msgid "Colour: {colour}"
+msgstr "Color: {colour}"
+
+#: src/files/app_torrent_rows.zig
+msgid "Complete"
+msgstr "Completado"
+
+#: src/files/torrents.zig
+msgid "Complete · Stopped"
+msgstr "Completado · Detenido"
+
+#: src/printing/cups.zig
+msgid "Completed"
+msgstr "Completado"
+
+#: src/control_center/sections/network.zig
+msgid "Configure this network with a network tool"
+msgstr "Configura esta red con una herramienta de red"
+
+#: src/control_center/panel.zig
+msgid "Configure your desktop canvas and panning area."
+msgstr "Configura el lienzo y el área de desplazamiento del escritorio."
+
+#: src/control_center/sections/users.zig
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Confirm Pairing"
+msgstr "Confirmar emparejamiento"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm new password"
+msgstr "Confirmar nueva contraseña"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm password"
+msgstr "Confirmar contraseña"
+
+#: src/printing/ladder.zig
+msgid "Confirm resolution using the printer's self-test or a measured ruler test."
+msgstr "Confirma la resolución con la autoprueba de la impresora o una prueba de regla medida."
+
+#: src/files/app_paint.zig
+msgid "Conflict"
+msgstr "Conflicto"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connect"
+msgstr "Conectar"
+
+#: src/control_center/panel.zig
+msgid "Connect and manage your Bluetooth devices."
+msgstr "Conecta y gestiona tus dispositivos Bluetooth."
+
+#: src/control_center/sections/network.zig
+msgid "Connect automatically"
+msgstr "Conectar automáticamente"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connected"
+msgstr "Conectado"
+
+#: src/files/app_torrent_rows.zig
+msgid "Connected peers: {peers} · Seeds: {seeds}"
+msgstr "Pares conectados: {peers} · Semillas: {seeds}"
+
+#: src/control_center/sections/printers.zig
+msgid "Connected to CUPS."
+msgstr "Conectado a CUPS."
+
+#: src/network/manager.zig
+msgid "Connected · Saved"
+msgstr "Conectado · Guardado"
+
+#: src/network/manager.zig
+msgid "Connecting Ethernet…"
+msgstr "Conectando Ethernet…"
+
+#: src/files/app_paint.zig
+msgid "Connecting…"
+msgstr "Conectando…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connection"
+msgstr "Conexión"
+
+#: src/network/manager.zig
+msgid "Connection failed"
+msgstr "La conexión falló"
+
+#: src/network/manager.zig
+msgid "Connection failed. Check the password and try again."
+msgstr "La conexión falló. Comprueba la contraseña e inténtalo de nuevo."
+
+#: src/session/lock.zig
+msgid "Continue"
+msgstr "Continuar"
+
+#: src/files/app_fileops.zig
+msgid "Copied"
+msgstr "Copiado"
+
+#: src/files/app_fileops.zig
+msgid "Copied {count} item"
+msgid_plural "Copied {count} items"
+msgstr[0] "Se copió {count} elemento"
+msgstr[1] "Se copiaron {count} elementos"
+
+#: src/desktop/app_actions.zig
+msgid "Copy"
+msgstr "Copiar"
+
+#: src/control_center/sections/printers.zig
+msgid "Copy diagnostic report"
+msgstr "Copiar informe de diagnóstico"
+
+#: src/control_center/search_index.zig
+msgid "Corner radius"
+msgstr "Radio de las esquinas"
+
+#: src/files/appimage.zig
+msgid "Could not add the AppImage to applications"
+msgstr "No se pudo añadir el AppImage a las aplicaciones"
+
+#: src/files/app_opening.zig
+msgid "Could not add the application"
+msgstr "No se pudo añadir la aplicación"
+
+#: src/control_center/sections/users.zig
+msgid "Could not allocate locked password storage."
+msgstr "No se pudo reservar memoria protegida para la contraseña."
+
+#: src/files/app_terminal.zig
+msgid "Could not allocate terminal"
+msgstr "No se pudo crear el terminal"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors. Check your configuration files and permissions."
+msgstr "No se pudieron aplicar los colores. Comprueba los archivos de configuración y sus permisos."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors: {reason}. Check your configuration files and permissions."
+msgstr "No se pudieron aplicar los colores: {reason}. Comprueba los archivos de configuración y sus permisos."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply or save the display scale."
+msgstr "No se pudo aplicar o guardar la escala de la pantalla."
+
+#: src/control_center/sections/display.zig
+msgid "Could not apply that display setting."
+msgstr "No se pudo aplicar ese ajuste de pantalla."
+
+#: src/printing/admin.zig
+msgid "Could not apply the printer option."
+msgstr "No se pudo aplicar la opción de impresora."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply this choice. Please try again."
+msgstr "No se pudo aplicar esta opción. Inténtalo de nuevo."
+
+#: src/session/power.zig
+msgid "Could not build the request."
+msgstr "No se pudo crear la solicitud."
+
+#: src/files/properties.zig
+msgid "Could not change permissions"
+msgstr "No se pudieron cambiar los permisos"
+
+#: src/printing/admin.zig
+msgid "Could not clear the canonical default override."
+msgstr "No se pudo borrar el ajuste predeterminado canónico."
+
+#: src/files/app_torrents.zig
+msgid "Could not connect to Transfers"
+msgstr "No se pudo conectar con Transferencias"
+
+#: src/systemd.zig
+msgid "Could not connect to systemd."
+msgstr "No se pudo conectar con systemd."
+
+#: src/images/app.zig
+msgid "Could not crop this selection."
+msgstr "No se pudo recortar esta selección."
+
+#: src/files/app_fileops.zig
+msgid "Could not delete all items"
+msgstr "No se pudieron eliminar todos los elementos"
+
+#: src/images/app.zig
+msgid "Could not delete. The file was kept."
+msgstr "No se pudo eliminar. Se conservó el archivo."
+
+#: src/files/volumes.zig
+msgid "Could not eject {name}"
+msgstr "No se pudo expulsar {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not empty Trash"
+msgstr "No se pudo vaciar la papelera"
+
+#: src/files/archive.zig
+msgid "Could not extract archive"
+msgstr "No se pudo extraer el archivo comprimido"
+
+#: src/files/app_dialogs.zig
+msgid "Could not load applications"
+msgstr "No se pudieron cargar las aplicaciones"
+
+#: src/systemd.zig
+msgid "Could not load services. Try Refresh."
+msgstr "No se pudieron cargar los servicios. Prueba Actualizar."
+
+#: src/files/volumes.zig
+msgid "Could not mount {name}"
+msgstr "No se pudo montar {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not move all items to Trash"
+msgstr "No se pudieron mover todos los elementos a la papelera"
+
+#: src/images/app.zig
+msgid "Could not move to Trash. The file was kept."
+msgstr "No se pudo mover a la papelera. Se conservó el archivo."
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Appearance: {error}"
+msgstr "No se pudo abrir Apariencia: {error}"
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Desktop Settings: {error}"
+msgstr "No se pudieron abrir los ajustes del escritorio: {error}"
+
+#: src/files/app_opening.zig
+msgid "Could not open Text Editor"
+msgstr "No se pudo abrir el editor de texto"
+
+#: src/files/app_places.zig
+msgid "Could not open Trash"
+msgstr "No se pudo abrir la papelera"
+
+#: src/files/archive.zig
+msgid "Could not open archive"
+msgstr "No se pudo abrir el archivo comprimido"
+
+#: src/files/app_opening.zig
+msgid "Could not open archive member"
+msgstr "No se pudo abrir el elemento del archivo comprimido"
+
+#: src/pdf/app_document.zig
+msgid "Could not open document."
+msgstr "No se pudo abrir el documento."
+
+#: src/files/app_opening.zig
+msgid "Could not open file"
+msgstr "No se pudo abrir el archivo"
+
+#: src/files/app_places.zig
+msgid "Could not open folder"
+msgstr "No se pudo abrir la carpeta"
+
+#: src/files/app_opening.zig
+msgid "Could not open folder picker"
+msgstr "No se pudo abrir el selector de carpetas"
+
+#: src/files/app_opening.zig
+msgid "Could not open image viewer"
+msgstr "No se pudo abrir el visor de imágenes"
+
+#: src/files/app_places.zig
+msgid "Could not open new window"
+msgstr "No se pudo abrir una ventana nueva"
+
+#: src/images/app.zig
+msgid "Could not open the delete dialog."
+msgstr "No se pudo abrir el diálogo de eliminación."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Could not open the file chooser."
+msgstr "No se pudo abrir el selector de archivos."
+
+#: src/systemd.zig
+msgid "Could not open the service edit for authorization."
+msgstr "No se pudo abrir la edición del servicio para autorizarla."
+
+#: src/files/open_with.zig
+msgid "Could not open with this app. Choose another."
+msgstr "No se pudo abrir con esta aplicación. Elige otra."
+
+#: src/pdf/app_document.zig
+msgid "Could not prepare password. Please try again."
+msgstr "No se pudo preparar la contraseña. Inténtalo de nuevo."
+
+#: src/control_center/sections/users.zig
+msgid "Could not prepare the group update."
+msgstr "No se pudo preparar el cambio de grupos."
+
+#: src/session/power.zig
+msgid "Could not query logind."
+msgstr "No se pudo consultar logind."
+
+#: src/session/power.zig
+msgid "Could not reach logind."
+msgstr "No se pudo contactar con logind."
+
+#: src/session/power.zig
+msgid "Could not reach the system's power service."
+msgstr "No se pudo contactar con el servicio de energía del sistema."
+
+#: src/network/manager.zig
+msgid "Could not read Wi-Fi networks"
+msgstr "No se pudieron leer las redes Wi-Fi"
+
+#: src/files/app_dialogs.zig
+msgid "Could not read file properties"
+msgstr "No se pudieron leer las propiedades del archivo"
+
+#: src/files/app_opening.zig
+msgid "Could not read folder picker result"
+msgstr "No se pudo leer el resultado del selector de carpetas"
+
+#: src/control_center/sections/users.zig
+msgid "Could not read login accounts."
+msgstr "No se pudieron leer las cuentas de usuario."
+
+#: src/files/properties.zig
+msgid "Could not read permissions"
+msgstr "No se pudieron leer los permisos"
+
+#: src/files/worker.zig
+msgid "Could not read recent files"
+msgstr "No se pudieron leer los archivos recientes"
+
+#: src/files/appimage.zig
+msgid "Could not read the AppImage's application details"
+msgstr "No se pudieron leer los datos de aplicación del AppImage"
+
+#: src/files/main.zig
+msgid "Could not read the dropped items"
+msgstr "No se pudieron leer los elementos soltados"
+
+#: src/images/app.zig
+msgid "Could not read this image"
+msgstr "No se pudo leer esta imagen"
+
+#: src/printing/admin.zig
+msgid "Could not request CUPS start."
+msgstr "No se pudo solicitar el inicio de CUPS."
+
+#: src/systemd.zig
+msgid "Could not request authentication. Check that polkit is running."
+msgstr "No se pudo solicitar autenticación. Comprueba que polkit esté en ejecución."
+
+#: src/images/app.zig
+msgid "Could not rotate: not enough memory."
+msgstr "No se pudo girar: memoria insuficiente."
+
+#: src/files/git.zig
+msgid "Could not run git"
+msgstr "No se pudo ejecutar git"
+
+#: src/systemd.zig
+msgid "Could not save Notify. Service editing requires systemd 256 or newer."
+msgstr "No se pudo guardar Notify. Editar servicios requiere systemd 256 o posterior."
+
+#: src/files/app_places.zig
+msgid "Could not save Places"
+msgstr "No se pudo guardar Lugares"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save desktop mode."
+msgstr "No se pudo guardar el modo de escritorio."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save floating apps."
+msgstr "No se pudieron guardar las aplicaciones flotantes."
+
+#: src/control_center/sections/portals.zig
+msgid "Could not save portal preferences. Check your configuration directory."
+msgstr "No se pudieron guardar las preferencias de portales. Comprueba la carpeta de configuración."
+
+#: src/control_center/panel.zig
+msgid "Could not save the Files setting."
+msgstr "No se pudo guardar el ajuste de Archivos."
+
+#: src/control_center/welcome.zig
+msgid "Could not save the default app. Please try again."
+msgstr "No se pudo guardar la aplicación predeterminada. Inténtalo de nuevo."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Could not save the default application."
+msgstr "No se pudo guardar la aplicación predeterminada."
+
+#: src/control_center/sections/display.zig
+msgid "Could not save the display setting."
+msgstr "No se pudo guardar el ajuste de pantalla."
+
+#: src/files/app.zig
+msgid "Could not save view preferences"
+msgstr "No se pudieron guardar las preferencias de vista"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save window spacing."
+msgstr "No se pudo guardar el espacio entre ventanas."
+
+#: src/control_center/welcome.zig
+msgid "Could not save your layout. Please try again."
+msgstr "No se pudo guardar la disposición. Inténtalo de nuevo."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save. Check the configuration file and try again."
+msgstr "No se pudo guardar. Comprueba el archivo de configuración e inténtalo de nuevo."
+
+#: src/images/app.zig
+msgid "Could not save. Check the folder and permissions."
+msgstr "No se pudo guardar. Comprueba la carpeta y los permisos."
+
+#: src/printing/admin.zig
+msgid "Could not send printer administration request."
+msgstr "No se pudo enviar la solicitud de administración de impresoras."
+
+#: src/polkit/dialog.zig
+msgid "Could not send response. Please try again."
+msgstr "No se pudo enviar la respuesta. Inténtalo de nuevo."
+
+#: src/network/manager.zig
+msgid "Could not send the Ethernet request."
+msgstr "No se pudo enviar la solicitud de Ethernet."
+
+#: src/network/manager.zig
+msgid "Could not send the Wi-Fi request"
+msgstr "No se pudo enviar la solicitud de Wi-Fi"
+
+#: src/systemd.zig
+msgid "Could not send the service action."
+msgstr "No se pudo enviar la acción de servicio."
+
+#: src/files/worker.zig
+msgid "Could not sort folder names"
+msgstr "No se pudieron ordenar los nombres de las carpetas"
+
+#: src/printing/admin.zig
+msgid "Could not start CUPS administration."
+msgstr "No se pudo iniciar la administración de CUPS."
+
+#: src/files/app_torrents.zig
+msgid "Could not start Transfers"
+msgstr "No se pudo iniciar Transferencias"
+
+#: src/images/app.zig
+msgid "Could not start deleting this file."
+msgstr "No se pudo empezar a eliminar este archivo."
+
+#: src/files/app_opening.zig
+msgid "Could not start extraction"
+msgstr "No se pudo iniciar la extracción"
+
+#: src/files/main.zig
+msgid "Could not start file drag"
+msgstr "No se pudo iniciar el arrastre del archivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not start printer diagnostics."
+msgstr "No se pudo iniciar el diagnóstico de impresoras."
+
+#: src/images/app.zig
+msgid "Could not start saving."
+msgstr "No se pudo empezar a guardar."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the authentication request."
+msgstr "No se pudo iniciar la solicitud de autenticación."
+
+#: src/session/power.zig
+msgid "Could not start the power command."
+msgstr "No se pudo iniciar la orden de energía."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the request."
+msgstr "No se pudo iniciar la solicitud."
+
+#: src/systemd.zig
+msgid "Could not subscribe to service updates."
+msgstr "No se pudo suscribir a las actualizaciones de servicios."
+
+#: src/files/volumes.zig
+msgid "Could not use the device"
+msgstr "No se pudo usar el dispositivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers before changing the identifier."
+msgstr "No se pudieron verificar las impresoras antes de cambiar el identificador."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers. Refresh before creating a queue."
+msgstr "No se pudieron verificar las impresoras existentes. Actualiza antes de crear una cola."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify the printer's jobs. Refresh before changing its identifier."
+msgstr "No se pudieron verificar los trabajos de la impresora. Actualiza antes de cambiar su identificador."
+
+#: src/session/power.zig
+msgid "Could not watch the power command."
+msgstr "No se pudo supervisar la orden de energía."
+
+#: src/files/archive.zig
+msgid "Could not write extracted file (check space and permissions)"
+msgstr "No se pudo escribir el archivo extraído (comprueba el espacio y los permisos)"
+
+#: src/desktop/watcher.zig
+msgid "Could not {operation}: {error}"
+msgstr "No se pudo {operation}: {error}"
+
+#: src/control_center/sections/printers.zig
+msgid "Create printer"
+msgstr "Crear impresora"
+
+#: src/control_center/sections/users.zig
+msgid "Create user"
+msgstr "Crear usuario"
+
+#: src/files/properties.zig
+msgid "Created"
+msgstr "Creado"
+
+#: src/files/app_dialogs.zig
+msgid "Created and switched to {name}"
+msgstr "Se creó y se cambió a {name}"
+
+#: src/images/app.zig
+msgid "Crop"
+msgstr "Recortar"
+
+#: src/control_center/sections/region.zig
+msgid "Currency"
+msgstr "Moneda"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current font"
+msgstr "Fuente actual"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current theme"
+msgstr "Tema actual"
+
+#: src/control_center/sections/region.zig
+msgid "Current: {locale}"
+msgstr "Actual: {locale}"
+
+#: src/control_center/search_index.zig
+msgid "Cursor theme"
+msgstr "Tema del cursor"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom"
+msgstr "Personalizado"
+
+#: src/control_center/sections/portals.zig
+msgid "Custom ({name})"
+msgstr "Personalizado ({name})"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom size"
+msgstr "Tamaño personalizado"
+
+#: src/desktop/app_actions.zig
+msgid "Cut"
+msgstr "Cortar"
+
+#: src/files/app_fileops.zig
+msgid "Cut {count} item"
+msgid_plural "Cut {count} items"
+msgstr[0] "Se cortó {count} elemento"
+msgstr[1] "Se cortaron {count} elementos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the next existing workspace."
+msgstr "Cambiar al siguiente espacio de trabajo existente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the previous existing workspace."
+msgstr "Cambiar al espacio de trabajo existente anterior."
+
+#: src/battery_popup.zig
+msgid "Cycles"
+msgstr "Ciclos"
+
+#: src/files/app_sidebar_paint.zig
+msgid "DEVICES"
+msgstr "DISPOSITIVOS"
+
+#: src/control_center/sections/display.zig
+msgid "DISPLAY"
+msgstr "PANTALLA"
+
+#: src/control_center/sections/network.zig
+msgid "DNS servers"
+msgstr "Servidores DNS"
+
+#: src/control_center/search_index.zig
+msgid "Dark mode"
+msgstr "Modo oscuro"
+
+#: src/printing/options.zig
+msgid "Darkness"
+msgstr "Oscuridad"
+
+#: src/control_center/sections/region.zig
+msgid "Date"
+msgstr "Fecha"
+
+#: src/control_center/sections/region.zig
+msgid "Date format for the taskbar; date, number and currency formats for new apps."
+msgstr "Formato de fecha de la barra de tareas; formatos de fecha, números y moneda para aplicaciones nuevas."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease display brightness."
+msgstr "Disminuir el brillo de la pantalla."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease system volume."
+msgstr "Disminuir el volumen del sistema."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease the focused window's size."
+msgstr "Reducir el tamaño de la ventana enfocada."
+
+#: src/control_center/sections/appearance.zig
+msgid "Default"
+msgstr "Predeterminado"
+
+#: src/control_center/sections/appearance.zig
+msgid "Default R logo · PNG or SVG"
+msgstr "Logotipo R predeterminado · PNG o SVG"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Default applications"
+msgstr "Aplicaciones predeterminadas"
+
+#: src/control_center/welcome.zig
+msgid "Default apps"
+msgstr "Aplicaciones predeterminadas"
+
+#: src/control_center/search_index.zig
+msgid "Default file manager"
+msgstr "Gestor de archivos predeterminado"
+
+#: src/control_center/search_index.zig
+msgid "Default terminal"
+msgstr "Terminal predeterminado"
+
+#: src/control_center/sections/services.zig
+msgid "Deferred"
+msgstr "Pospuesto"
+
+#: src/delete_dialog.zig
+msgid "Delete file?"
+msgstr "¿Eliminar el archivo?"
+
+#: src/control_center/sections/users.zig
+msgid "Delete files"
+msgstr "Eliminar archivos"
+
+#: src/delete_dialog.zig
+msgid "Delete folder?"
+msgstr "¿Eliminar la carpeta?"
+
+#: src/delete_dialog.zig
+msgid "Delete items?"
+msgstr "¿Eliminar los elementos?"
+
+#: src/delete_dialog.zig
+msgid "Delete permanently"
+msgstr "Eliminar permanentemente"
+
+#: src/control_center/sections/users.zig
+msgid "Delete user…"
+msgstr "Eliminar usuario…"
+
+#: src/control_center/sections/users.zig
+msgid "Delete {name}?"
+msgstr "¿Eliminar {name}?"
+
+#: src/session/power.zig
+msgid "Denied by policy"
+msgstr "Denegado por la política"
+
+#: src/session/power.zig
+msgid "Denied by system policy."
+msgstr "Denegado por la política del sistema."
+
+#: src/control_center/panel.zig
+msgid "Desktop"
+msgstr "Escritorio"
+
+#: src/desktop/app_actions.zig
+msgid "Desktop Settings"
+msgstr "Ajustes del escritorio"
+
+#: src/control_center/search_index.zig
+msgid "Desktop Switching"
+msgstr "Cambio de escritorio"
+
+#: src/control_center/sections/display.zig
+msgid "Desktop icons appear on this display."
+msgstr "Los iconos del escritorio aparecen en esta pantalla."
+
+#: src/control_center/search_index.zig
+msgid "Desktop mode"
+msgstr "Modo de escritorio"
+
+#: src/control_center/search_index.zig
+msgid "Desktop portals"
+msgstr "Portales del escritorio"
+
+#: src/control_center/search_index.zig
+msgid "Desktop switching"
+msgstr "Cambio de escritorio"
+
+#: src/files/app_git_sidebar.zig
+msgid "Detached {count}"
+msgstr "Separados: {count}"
+
+#: src/control_center/sections/users.zig
+msgid "Details"
+msgstr "Detalles"
+
+#: src/files/app_places.zig
+msgid "Device"
+msgstr "Dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Device Settings"
+msgstr "Ajustes del dispositivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Device node"
+msgstr "Nodo del dispositivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Did the test produce printed output? CUPS completion alone cannot tell."
+msgstr "¿La prueba produjo una impresión? Que CUPS la complete no permite saberlo."
+
+#: src/control_center/search_index.zig
+msgid "Dim inactive windows"
+msgstr "Atenuar ventanas inactivas"
+
+#: src/control_center/sections/printers.zig
+msgid "Disable printer"
+msgstr "Desactivar impresora"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disable shortcut"
+msgstr "Desactivar atajo"
+
+#: src/control_center/search_index.zig
+msgid "Disable touchpad while typing"
+msgstr "Desactivar el panel táctil al escribir"
+
+#: src/control_center/sections/services.zig
+msgid "Disabled"
+msgstr "Desactivado"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disabled shortcut."
+msgstr "Atajo desactivado."
+
+#: src/editor/app.zig
+msgid "Discard"
+msgstr "Descartar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Disconnect"
+msgstr "Desconectar"
+
+#: src/files/app_torrent_rows.zig
+msgid "Disconnected"
+msgstr "Desconectado"
+
+#: src/network/manager.zig
+msgid "Disconnecting Ethernet…"
+msgstr "Desconectando Ethernet…"
+
+#: src/network/manager.zig
+msgid "Disconnecting…"
+msgstr "Desconectando…"
+
+#: src/printing/admin.zig
+msgid "Discovering printers; authorization may be required…"
+msgstr "Buscando impresoras; puede requerir autorización…"
+
+#: src/system_monitor/app.zig
+msgid "Disk wait"
+msgstr "Espera de disco"
+
+#: src/control_center/panel.zig
+msgid "Display"
+msgstr "Pantalla"
+
+#: src/control_center/search_index.zig
+msgid "Display arrangement"
+msgstr "Disposición de pantallas"
+
+#: src/control_center/sections/printers.zig
+msgid "Display name"
+msgstr "Nombre visible"
+
+#: src/control_center/search_index.zig
+msgid "Display scale"
+msgstr "Escala de pantalla"
+
+#: src/control_center/panel.zig
+msgid "Display settings"
+msgstr "Ajustes de pantalla"
+
+#: src/control_center/panel.zig
+msgid "Displays"
+msgstr "Pantallas"
+
+#: src/control_center/sections/display.zig
+msgid "Do nothing"
+msgstr "No hacer nada"
+
+#: src/control_center/search_index.zig
+msgid "Dock"
+msgstr "Dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock active highlight"
+msgstr "Resaltado activo del dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock auto hide"
+msgstr "Ocultación automática del dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock corner radius"
+msgstr "Radio de las esquinas del dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock height"
+msgstr "Altura del dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock hover zoom"
+msgstr "Ampliación al pasar sobre el dock"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock hover zoom (1.00× disables)"
+msgstr "Ampliación al pasar sobre el dock (1,00× la desactiva)"
+
+#: src/control_center/search_index.zig
+msgid "Dock opacity"
+msgstr "Opacidad del dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock position"
+msgstr "Posición del dock"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock size"
+msgstr "Tamaño del dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock trash"
+msgstr "Papelera en el dock"
+
+#: src/pdf/app_document.zig
+msgid "Document is encrypted. Enter password:"
+msgstr "El documento está cifrado. Introduce la contraseña:"
+
+#: src/files/app.zig
+msgid "Documents"
+msgstr "Documentos"
+
+#: src/control_center/search_index.zig
+msgid "Dodge file drags"
+msgstr "Apartarse al arrastrar archivos"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Does this code match the code on your device?"
+msgstr "¿Este código coincide con el de tu dispositivo?"
+
+#: src/control_center/sections/users.zig
+msgid "Done"
+msgstr "Hecho"
+
+#: src/files/app_items.zig
+msgid "Download"
+msgstr "Descargar"
+
+#: src/files/app_torrents.zig
+msgid "Download to folder"
+msgstr "Descargar en carpeta"
+
+#: src/files/torrents.zig
+msgid "Downloaded · Seeding"
+msgstr "Descargado · Compartiendo"
+
+#: src/files/app_torrent_rows.zig
+msgid "Downloading"
+msgstr "Descargando"
+
+#: src/files/app.zig
+msgid "Downloads"
+msgstr "Descargas"
+
+#: src/files/app_torrents.zig
+msgid "Downloads continue after closing Files."
+msgstr "Las descargas continúan al cerrar Archivos."
+
+#: src/printing/options.zig
+msgid "Draft"
+msgstr "Borrador"
+
+#: src/images/app.zig
+msgid "Drag a larger crop selection."
+msgstr "Arrastra una selección de recorte más grande."
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."
+msgstr "Arrastra un elemento para reordenarlo o moverlo a otra sección. Desactívalo para ocultarlo. La batería aparece cuando está disponible."
+
+#: src/control_center/sections/display.zig
+msgid "Drag displays to match your desk. Click one to edit it."
+msgstr "Arrastra las pantallas para reflejar su disposición física. Haz clic en una para editarla."
+
+#: src/control_center/search_index.zig
+msgid "Drag feedback"
+msgstr "Respuesta al arrastrar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag items here"
+msgstr "Arrastra elementos aquí"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag lift scale"
+msgstr "Escala de elevación al arrastrar"
+
+#: src/control_center/search_index.zig
+msgid "Drag scale"
+msgstr "Escala al arrastrar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag to move"
+msgstr "Arrastra para mover"
+
+#: src/screenshot/selector.zig
+msgid "Drag to save and copy · Esc to cancel"
+msgstr "Arrastra para guardar y copiar · Esc para cancelar"
+
+#: src/images/app.zig
+msgid "Drag to select · Enter: crop · Esc: cancel"
+msgstr "Arrastra para seleccionar · Intro: recortar · Esc: cancelar"
+
+#: src/control_center/sections/desktop.zig
+msgid "Dragging stops on release. Edges settle with a short animation."
+msgstr "El arrastre termina al soltar. Los bordes se ajustan con una breve animación."
+
+#: src/control_center/sections/printers.zig
+msgid "Driver"
+msgstr "Controlador"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Choose files first"
+msgstr "Tiempo restante: elige primero los archivos"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Complete"
+msgstr "Tiempo restante: completado"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Paused"
+msgstr "Tiempo restante: en pausa"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Unknown · waiting for data"
+msgstr "Tiempo restante: desconocido · esperando datos"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}h {value2}m"
+msgstr "Tiempo restante: {value}h {value2}min"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}m {value2}s"
+msgstr "Tiempo restante: {value}min {value2}s"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}s"
+msgstr "Tiempo restante: {value}s"
+
+#: src/control_center/sections/appearance.zig
+msgid "Edge glow"
+msgstr "Resplandor de bordes"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Edit shortcut"
+msgstr "Editar atajo"
+
+#: src/images/app.zig
+msgid "Edits undone."
+msgstr "Ediciones deshechas."
+
+#: src/files/app_model.zig
+msgid "Eject"
+msgstr "Expulsar"
+
+#: src/files/app_places.zig
+msgid "Ejected"
+msgstr "Expulsado"
+
+#: src/files/app_places.zig
+msgid "Ejecting…"
+msgstr "Expulsando…"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash"
+msgstr "Vaciar papelera"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash?"
+msgstr "¿Vaciar la papelera?"
+
+#: src/desktop/app_actions.zig
+msgid "Empty Trash…"
+msgstr "Vaciar papelera…"
+
+#: src/printing/ladder.zig
+msgid "Enable acceptance of jobs when the printer is ready."
+msgstr "Activa la aceptación de trabajos cuando la impresora esté lista."
+
+#: src/control_center/sections/region.zig
+msgid "Enable {locale} in your system’s locale settings to use it in other apps and regional formats."
+msgstr "Activa {locale} en los ajustes regionales del sistema para usarlo en otras aplicaciones y en los formatos regionales."
+
+#: src/control_center/sections/services.zig
+msgid "Enabled"
+msgstr "Activado"
+
+#: src/system_monitor/app.zig
+msgid "End process"
+msgstr "Terminar proceso"
+
+#: src/files/app_terminal.zig
+msgid "Enlarge this window to show the terminal"
+msgstr "Amplía esta ventana para mostrar el terminal"
+
+#: src/calculator/app.zig
+msgid "Enter = Esc clear F9 ± % = ÷100"
+msgstr "Intro = Esc borrar F9 ± % = ÷100"
+
+#: src/polkit/dialog.zig
+msgid "Enter Password"
+msgstr "Introducir contraseña"
+
+#: src/images/app.zig
+msgid "Enter a filename or an absolute path."
+msgstr "Introduce un nombre de archivo o una ruta absoluta."
+
+#: src/images/app.zig
+msgid "Enter a filename."
+msgstr "Introduce un nombre de archivo."
+
+#: src/network/manager.zig
+msgid "Enter a network name."
+msgstr "Introduce un nombre de red."
+
+#: src/network/manager.zig
+msgid "Enter a password (1–63 bytes)."
+msgstr "Introduce una contraseña (1–63 bytes)."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a supported printer address without credentials."
+msgstr "Introduce una dirección de impresora compatible sin credenciales."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a valid CUPS administrator username and password."
+msgstr "Introduce un usuario y contraseña válidos de administración de CUPS."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid full name."
+msgstr "Introduce un nombre completo válido."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid username and full name."
+msgstr "Introduce un nombre de usuario y un nombre completo válidos."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter an account permitted to administer the local CUPS server."
+msgstr "Introduce una cuenta con permiso para administrar el servidor CUPS local."
+
+#: src/files/app_paint.zig
+msgid "Enter confirms · Esc cancels"
+msgstr "Intro confirma · Esc cancela"
+
+#: src/control_center/sections/users.zig
+msgid "Enter matching passwords."
+msgstr "Introduce contraseñas que coincidan."
+
+#: src/network/popup.zig
+msgid "Enter network name"
+msgstr "Introduce el nombre de la red"
+
+#: src/control_center/sections/users.zig
+msgid "Enter new password"
+msgstr "Introduce la nueva contraseña"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Enter or leave fullscreen."
+msgstr "Entrar o salir de pantalla completa."
+
+#: src/control_center/sections/users.zig
+msgid "Enter password"
+msgstr "Introduce la contraseña"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's PIN"
+msgstr "Introduce el PIN del dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's six-digit passkey"
+msgstr "Introduce la clave de seis dígitos del dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter this code on your device, then press Enter."
+msgstr "Introduce este código en el dispositivo y pulsa Intro."
+
+#: src/polkit/dialog.zig
+msgid "Enter your response"
+msgstr "Introduce tu respuesta"
+
+#: src/files/app_torrent_rows.zig
+msgid "Error"
+msgstr "Error"
+
+#: src/files/app_paint.zig
+msgid "Error: {value}"
+msgstr "Error: {value}"
+
+#: src/control_center/search_index.zig
+msgid "Ethernet"
+msgstr "Ethernet"
+
+#: src/network/manager.zig
+msgid "Ethernet adapter was removed."
+msgstr "Se retiró el adaptador Ethernet."
+
+#: src/network/manager.zig
+msgid "Ethernet connection timed out. Check the cable and try again."
+msgstr "La conexión Ethernet agotó el tiempo de espera. Comprueba el cable e inténtalo de nuevo."
+
+#: src/network/manager.zig
+msgid "Ethernet could not connect. Check the cable and connection settings."
+msgstr "No se pudo conectar Ethernet. Comprueba el cable y los ajustes de conexión."
+
+#: src/network/manager.zig
+msgid "Ethernet request failed. Check permissions and try again."
+msgstr "La solicitud Ethernet falló. Comprueba los permisos e inténtalo de nuevo."
+
+#: src/control_center/panel.zig
+msgid "Everyday controls, all in one place."
+msgstr "Controles cotidianos, todos en un mismo lugar."
+
+#: src/control_center/sections/network.zig
+msgid "Excellent"
+msgstr "Excelente"
+
+#: src/files/properties.zig
+msgid "Execute"
+msgstr "Ejecutar"
+
+#: src/control_center/sections/desktop.zig
+msgid "Existing windows outside a smaller canvas stay reachable."
+msgstr "Las ventanas que queden fuera de un lienzo reducido seguirán siendo accesibles."
+
+#: src/system_monitor/app.zig
+msgid "Exited"
+msgstr "Finalizado"
+
+#: src/calculator/model.zig
+msgid "Expression is full"
+msgstr "La expresión está llena"
+
+#: src/files/app_model.zig
+msgid "Extract"
+msgstr "Extraer"
+
+#: src/files/app_model.zig
+msgid "Extract to…"
+msgstr "Extraer en…"
+
+#: src/files/ops.zig
+msgid "Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Extraídos: {completed}. Omitidos: {skipped}. Fallidos: {failed}. Pendientes: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Extracting {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Extrayendo {current}/{total}: {name}... (Esc para cancelar)"
+
+#: src/files/archive.zig
+msgid "Extraction cancelled"
+msgstr "Extracción cancelada"
+
+#: src/control_center/sections/services.zig
+msgid "Failed"
+msgstr "Fallido"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create file"
+msgstr "No se pudo crear el archivo"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create folder"
+msgstr "No se pudo crear la carpeta"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to rename"
+msgstr "No se pudo renombrar"
+
+#: src/files/app_fileops.zig
+msgid "Failed to start transfer job"
+msgstr "No se pudo iniciar la transferencia"
+
+#: src/files/torrents.zig
+msgid "Fetching file list…"
+msgstr "Obteniendo lista de archivos…"
+
+#: src/delete_dialog.zig
+msgid "File"
+msgstr "Archivo"
+
+#: src/files/app_paint.zig
+msgid "File '{value}' already exists in destination."
+msgstr "El archivo «{value}» ya existe en el destino."
+
+#: src/files/app_dialogs.zig
+msgid "File Conflict"
+msgstr "Conflicto de archivos"
+
+#: src/control_center/sections/default_apps.zig
+msgid "File Manager"
+msgstr "Gestor de archivos"
+
+#: src/files/app_dialogs.zig
+msgid "File already exists"
+msgstr "El archivo ya existe"
+
+#: src/editor/app.zig
+msgid "File changed on disk. Use Save As to keep your edits in another file."
+msgstr "El archivo cambió en el disco. Usa Guardar como para conservar tus cambios en otro archivo."
+
+#: src/files/app_dialogs.zig
+msgid "File created"
+msgstr "Archivo creado"
+
+#: src/control_center/search_index.zig
+msgid "File dialogs"
+msgstr "Diálogos de archivos"
+
+#: src/files/app_chooser.zig
+msgid "File name:"
+msgstr "Nombre del archivo:"
+
+#: src/files/archive.zig
+msgid "File no longer exists in the archive"
+msgstr "El archivo ya no existe en el archivo comprimido"
+
+#: src/pdf/app_document.zig
+msgid "File not found."
+msgstr "No se encontró el archivo."
+
+#: src/desktop/watcher.zig
+msgid "File operation failed"
+msgstr "La operación de archivos falló"
+
+#: src/delete_dialog.zig
+msgid "Files and folders in this selection"
+msgstr "Archivos y carpetas de esta selección"
+
+#: src/files/app_paint.zig
+msgid "Filter"
+msgstr "Filtrar"
+
+#: src/editor/app.zig
+msgid "Find"
+msgstr "Buscar"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers"
+msgstr "Buscar impresoras disponibles"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers again and choose the current discovered device."
+msgstr "Vuelve a buscar las impresoras disponibles y elige el dispositivo detectado actual."
+
+#: src/pdf/app_paint.zig
+msgid "Find in document..."
+msgstr "Buscar en el documento..."
+
+#: src/pdf/app_paint.zig
+msgid "Find ▲"
+msgstr "Buscar ▲"
+
+#: src/editor/app.zig
+msgid "Find…"
+msgstr "Buscar…"
+
+#: src/control_center/sections/printers.zig
+msgid "Finish or cancel the printer's jobs before changing its identifier."
+msgstr "Finaliza o cancela los trabajos antes de cambiar el identificador de la impresora."
+
+#: src/editor/app.zig
+msgid "Finish the file dialog or operation before closing."
+msgstr "Finaliza el diálogo o la operación de archivos antes de cerrar."
+
+#: src/files/app_places.zig
+msgid "Finish the running file operation first"
+msgstr "Finaliza primero la operación de archivos en curso"
+
+#: src/control_center/sections/region.zig
+msgid "First day of the week"
+msgstr "Primer día de la semana"
+
+#: src/control_center/search_index.zig
+msgid "First day of week"
+msgstr "Primer día de la semana"
+
+#: src/images/app.zig
+msgid "Fit"
+msgstr "Ajustar"
+
+#: src/pdf/app_paint.zig
+msgid "Fit page"
+msgstr "Ajustar página"
+
+#: src/pdf/app_paint.zig
+msgid "Fit width"
+msgstr "Ajustar ancho"
+
+#: src/start_menu/panel.zig
+msgid "Five applications already pinned"
+msgstr "Ya hay cinco aplicaciones fijadas"
+
+#: src/control_center/search_index.zig
+msgid "Fixed desktop icons"
+msgstr "Iconos del escritorio fijos"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped"
+msgstr "Reflejado"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 180°"
+msgstr "Reflejado 180°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 270°"
+msgstr "Reflejado 270°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 90°"
+msgstr "Reflejado 90°"
+
+#: src/control_center/sections/desktop.zig
+msgid "Floating"
+msgstr "Flotante"
+
+#: src/control_center/search_index.zig
+msgid "Floating apps"
+msgstr "Aplicaciones flotantes"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Down"
+msgstr "Enfocar abajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Left"
+msgstr "Enfocar izquierda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Next"
+msgstr "Enfocar siguiente"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Prev"
+msgstr "Enfocar anterior"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Right"
+msgstr "Enfocar derecha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Up"
+msgstr "Enfocar arriba"
+
+#: src/control_center/sections/appearance.zig
+msgid "Focus camera"
+msgstr "Enfocar cámara"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window above."
+msgstr "Enfocar la ventana superior."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window below."
+msgstr "Enfocar la ventana inferior."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the left."
+msgstr "Enfocar la ventana de la izquierda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the right."
+msgstr "Enfocar la ventana de la derecha."
+
+#: src/control_center/search_index.zig
+msgid "Focus zoom"
+msgstr "Ampliación al enfocar"
+
+#: src/desktop/app_paint.zig
+msgid "Folder"
+msgstr "Carpeta"
+
+#: src/files/app_dialogs.zig
+msgid "Folder already exists"
+msgstr "La carpeta ya existe"
+
+#: src/files/app_dialogs.zig
+msgid "Folder created"
+msgstr "Carpeta creada"
+
+#: src/files/worker.zig
+msgid "Folder not found"
+msgstr "No se encontró la carpeta"
+
+#: src/delete_dialog.zig
+msgid "Folder · includes its contents"
+msgstr "Carpeta · incluye su contenido"
+
+#: src/files/app_chooser.zig
+msgid "Folder:"
+msgstr "Carpeta:"
+
+#: src/files/app_menu.zig
+msgid "Folders only"
+msgstr "Solo carpetas"
+
+#: src/control_center/search_index.zig
+msgid "Font"
+msgstr "Fuente"
+
+#: src/control_center/search_index.zig
+msgid "Font size"
+msgstr "Tamaño de la fuente"
+
+#: src/control_center/sections/appearance.zig
+msgid "Fonts & cursor"
+msgstr "Fuentes y cursor"
+
+#: src/taskbar/window_menu.zig
+msgid "Force Close"
+msgstr "Forzar cierre"
+
+#: src/system_monitor/app.zig
+msgid "Force quit"
+msgstr "Forzar salida"
+
+#: src/system_monitor/app.zig
+msgid "Force quit requested"
+msgstr "Se solicitó forzar la salida"
+
+#: src/system_monitor/app.zig
+msgid "Force quit this process?"
+msgstr "¿Forzar la salida de este proceso?"
+
+#: src/system_monitor/app.zig
+msgid "Force quit…"
+msgstr "Forzar salida…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget Device"
+msgstr "Olvidar dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget this device? Pair it again to reconnect."
+msgstr "¿Olvidar este dispositivo? Tendrás que emparejarlo de nuevo para reconectar."
+
+#: src/control_center/sections/region.zig
+msgid "Formats Preview"
+msgstr "Vista previa de formatos"
+
+#: src/files/app_torrents.zig
+msgid "Forward"
+msgstr "Adelante"
+
+#: src/control_center/sections/region.zig
+msgid "Friday"
+msgstr "Viernes"
+
+#: src/screenshot/selector.zig
+msgid "Full Screen"
+msgstr "Pantalla completa"
+
+#: src/battery_popup.zig
+msgid "Full capacity"
+msgstr "Capacidad total"
+
+#: src/control_center/sections/users.zig
+msgid "Full name"
+msgstr "Nombre completo"
+
+#: src/taskbar/battery.zig
+msgid "Fully Charged"
+msgstr "Carga completa"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."
+msgstr "Colores de GTK aplicados. Reinicia las aplicaciones GTK. Las aplicaciones con estilos propios o aisladas pueden verse distintas."
+
+#: src/control_center/sections/desktop.zig
+msgid "Gap ({n} px)"
+msgstr "Separación ({n} px)"
+
+#: src/control_center/sections/network.zig
+msgid "Gateway"
+msgstr "Puerta de enlace"
+
+#: src/control_center/panel.zig
+msgid "General"
+msgstr "General"
+
+#: src/files/app_layout.zig
+msgid "Git"
+msgstr "Git"
+
+#: src/files/app_paint.zig
+msgid "Git View"
+msgstr "Vista de Git"
+
+#: src/control_center/sections/network.zig
+msgid "Good"
+msgstr "Bueno"
+
+#: src/files/app_torrents.zig
+msgid "Grid"
+msgstr "Cuadrícula"
+
+#: src/files/properties.zig
+msgid "Group"
+msgstr "Grupo"
+
+#: src/control_center/sections/users.zig
+msgid "Groups"
+msgstr "Grupos"
+
+#: src/control_center/sections/network.zig
+msgid "Hardware blocked"
+msgstr "Bloqueado por hardware"
+
+#: src/printing/ladder.zig
+msgid "Have an administrator inspect the node; never write print data to a regular file."
+msgstr "Pide a un administrador que revise el nodo; nunca escribas datos de impresión en un archivo normal."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Headset · Audio and microphone"
+msgstr "Auriculares · Audio y micrófono"
+
+#: src/battery_popup.zig
+msgid "Health"
+msgstr "Salud"
+
+#: src/printing/cups.zig
+msgid "Held"
+msgstr "Retenido"
+
+#: src/control_center/sections/desktop.zig
+msgid "Hide after"
+msgstr "Ocultar después de"
+
+#: src/printing/options.zig
+msgid "High"
+msgstr "Alta"
+
+#: src/control_center/sections/appearance.zig
+msgid "Highlight active app"
+msgstr "Resaltar la aplicación activa"
+
+#: src/control_center/sections/desktop.zig
+msgid "Highlighted: bottom-left screen"
+msgstr "Resaltada: pantalla inferior izquierda"
+
+#: src/desktop/watcher.zig
+msgid "Home"
+msgstr "Inicio"
+
+#: src/control_center/sections/desktop.zig
+msgid "Horizontal Pan"
+msgstr "Desplazamiento horizontal"
+
+#: src/control_center/sections/desktop.zig
+msgid "How long Super + arrow keys take to slide to the next desktop."
+msgstr "Tiempo que tardan Super + flechas en pasar al siguiente escritorio."
+
+#: src/control_center/sections/input.zig
+msgid "INPUT"
+msgstr "ENTRADA"
+
+#: src/control_center/sections/printers.zig
+msgid "IPP Everywhere / AirPrint"
+msgstr "IPP Everywhere / AirPrint"
+
+#: src/control_center/sections/network.zig
+msgid "IPv4 address"
+msgstr "Dirección IPv4"
+
+#: src/control_center/search_index.zig
+msgid "Icon bottom padding"
+msgstr "Margen inferior del icono"
+
+#: src/control_center/search_index.zig
+msgid "Icon left padding"
+msgstr "Margen izquierdo del icono"
+
+#: src/control_center/search_index.zig
+msgid "Icon theme"
+msgstr "Tema de iconos"
+
+#: src/system_monitor/app.zig
+msgid "Idle"
+msgstr "Inactivo"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Image"
+msgstr "Imagen"
+
+#: src/images/app.zig
+msgid "Image exceeds the 32 megapixel preview limit"
+msgstr "La imagen supera el límite de vista previa de 32 megapíxeles"
+
+#: src/images/app.zig
+msgid "Images ({position}/{count})"
+msgstr "Imágenes ({position}/{count})"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in the chosen folder"
+msgstr "Imágenes de la carpeta elegida"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in {folder}"
+msgstr "Imágenes de {folder}"
+
+#: src/control_center/panel.zig
+msgid "In Files, click an icon to open it in list or icons view. Click the name to select."
+msgstr "En Archivos, haz clic en un icono para abrirlo en cualquier vista. Haz clic en el nombre para seleccionarlo."
+
+#: src/control_center/search_index.zig
+msgid "Inactive window opacity"
+msgstr "Opacidad de ventanas inactivas"
+
+#: src/control_center/sections/printers.zig
+msgid "Inches"
+msgstr "Pulgadas"
+
+#: src/session/lock.zig
+msgid "Incorrect password. Try again."
+msgstr "Contraseña incorrecta. Inténtalo de nuevo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase display brightness."
+msgstr "Aumentar el brillo de la pantalla."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase system volume."
+msgstr "Aumentar el volumen del sistema."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase the focused window's size."
+msgstr "Aumentar el tamaño de la ventana enfocada."
+
+#: src/control_center/sections/region.zig
+msgid "Inherited from login ({locale})"
+msgstr "Heredado del inicio de sesión ({locale})"
+
+#: src/control_center/panel.zig
+msgid "Input"
+msgstr "Entrada"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Input · Keyboard, mouse or controller"
+msgstr "Entrada · Teclado, ratón o mando"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Install"
+msgstr "Instalar"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."
+msgstr "Instala qt5ct para aplicaciones Qt 5 o qt6ct para Qt 6 y vuelve a aplicar."
+
+#: src/files/appimage.zig
+msgid "Install squashfs-tools to add AppImages to applications"
+msgstr "Instala squashfs-tools para añadir AppImages a las aplicaciones"
+
+#: src/control_center/search_index.zig
+msgid "Install theme"
+msgstr "Instalar tema"
+
+#: src/control_center/sections/appearance.zig
+msgid "Install theme…"
+msgstr "Instalar tema…"
+
+#: src/files/app_opening.zig
+msgid "Installing theme…"
+msgstr "Instalando tema…"
+
+#: src/session/power.zig
+msgid "Interactive authorization required."
+msgstr "Se requiere autorización interactiva."
+
+#: src/control_center/welcome.zig
+msgid "Interface scale"
+msgstr "Escala de la interfaz"
+
+#: src/control_center/sections/network.zig
+msgid "Internet"
+msgstr "Internet"
+
+#: src/control_center/sections/network.zig
+msgid "Internet access not verified"
+msgstr "Acceso a Internet sin verificar"
+
+#: src/files/git.zig
+msgid "Invalid branch name"
+msgstr "Nombre de rama no válido"
+
+#: src/files/app_dialogs.zig
+msgid "Invalid characters in name"
+msgstr "Caracteres no válidos en el nombre"
+
+#: src/printing/admin.zig
+msgid "Invalid cups-pk-helper reply."
+msgstr "Respuesta no válida de cups-pk-helper."
+
+#: src/files/main.zig
+msgid "Invalid dropped list"
+msgstr "Lista de elementos soltados no válida"
+
+#: src/files/main.zig
+msgid "Invalid file clipboard"
+msgstr "Portapapeles de archivos no válido"
+
+#: src/files/app_opening.zig
+msgid "Invalid folder picker result"
+msgstr "Resultado del selector de carpetas no válido"
+
+#: src/pdf/app_document.zig
+msgid "Invalid or corrupt PDF document."
+msgstr "Documento PDF no válido o dañado."
+
+#: src/printing/admin.zig
+msgid "Invalid or oversized printer discovery reply."
+msgstr "Respuesta de detección de impresoras no válida o demasiado grande."
+
+#: src/printing/admin.zig
+msgid "Invalid printer administration reply."
+msgstr "Respuesta de administración de impresoras no válida."
+
+#: src/printing/admin.zig
+msgid "Invalid service-manager reply."
+msgstr "Respuesta del gestor de servicios no válida."
+
+#: src/printing/admin.zig
+msgid "Invalid system bus reply."
+msgstr "Respuesta del bus del sistema no válida."
+
+#: src/files/torrents.zig
+msgid "Invalid transfer metadata"
+msgstr "Metadatos de transferencia no válidos"
+
+#: src/files/torrents.zig
+msgid "Invalid transfer update"
+msgstr "Actualización de transferencia no válida"
+
+#: src/control_center/sections/printers.zig
+msgid "It printed"
+msgstr "Se imprimió"
+
+#: src/control_center/search_index.zig
+msgid "Italic clock"
+msgstr "Reloj en cursiva"
+
+#: src/control_center/sections/appearance.zig
+msgid "Italic clock text"
+msgstr "Texto del reloj en cursiva"
+
+#: src/files/app_paint.zig
+msgid "Items"
+msgstr "Elementos"
+
+#: src/files/app_fileops.zig
+msgid "Items moved to Trash"
+msgstr "Elementos movidos a la papelera"
+
+#: src/files/app_fileops.zig
+msgid "Items permanently deleted"
+msgstr "Elementos eliminados permanentemente"
+
+#: src/control_center/sections/printers.zig
+msgid "Job history · {n}"
+msgstr "Historial de trabajos · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Job {id} · {state}"
+msgstr "Trabajo {id} · {state}"
+
+#: src/network/popup.zig
+msgid "Join"
+msgstr "Conectar"
+
+#: src/control_center/sections/network.zig
+msgid "Join Hidden Network"
+msgstr "Conectar a una red oculta"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep connection"
+msgstr "Conservar conexión"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep desktop icons in place"
+msgstr "Mantener fijos los iconos del escritorio"
+
+#: src/control_center/sections/users.zig
+msgid "Keep home"
+msgstr "Conservar carpeta personal"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep icons fixed on screen while panning and zooming."
+msgstr "Mantener los iconos fijos en pantalla al desplazar y ampliar."
+
+#: src/control_center/sections/printers.zig
+msgid "Keep identifier"
+msgstr "Conservar identificador"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep printer"
+msgstr "Conservar impresora"
+
+#: src/control_center/sections/appearance.zig
+msgid "Keep zoom"
+msgstr "Conservar ampliación"
+
+#: src/control_center/panel.zig
+msgid "Keyboard Shortcuts"
+msgstr "Atajos de teclado"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat delay"
+msgstr "Retardo de repetición del teclado"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat rate"
+msgstr "Frecuencia de repetición del teclado"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard shortcuts"
+msgstr "Atajos de teclado"
+
+#: src/files/app_torrent_rows.zig
+msgid "Known peers: {value}"
+msgstr "Pares conocidos: {value}"
+
+#: src/control_center/sections/appearance.zig
+msgid "LEFT"
+msgstr "IZQUIERDA"
+
+#: src/control_center/sections/printers.zig
+msgid "Label printer and advanced test tools"
+msgstr "Impresoras de etiquetas y herramientas de prueba avanzadas"
+
+#: src/control_center/sections/region.zig
+msgid "Language"
+msgstr "Idioma"
+
+#: src/control_center/sections/printers.zig
+msgid "Language: {language}. This sample bypasses the filters and uses the queue's backend."
+msgstr "Idioma: {language}. Esta muestra omite los filtros y usa el servicio de la cola."
+
+#: src/control_center/sections/appearance.zig
+msgid "Large"
+msgstr "Grande"
+
+#: src/files/app_menu.zig
+msgid "Largest first"
+msgstr "Más grande primero"
+
+#: src/control_center/sections/printers.zig
+msgid "Last job"
+msgstr "Último trabajo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Last reported signal: {signal} dBm"
+msgstr "Última señal recibida: {signal} dBm"
+
+#: src/start_menu/panel.zig
+msgid "Launch failed. The application may have been removed."
+msgstr "No se pudo iniciar. Puede que la aplicación se haya eliminado."
+
+#: src/control_center/search_index.zig
+msgid "Launch splash"
+msgstr "Pantalla de inicio"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Launcher"
+msgstr "Lanzador"
+
+#: src/control_center/sections/desktop.zig
+msgid "Layouts and split sizes are saved for your next session."
+msgstr "Las disposiciones y los tamaños de división se guardan para la próxima sesión."
+
+#: src/network/popup.zig
+msgid "Leave blank to use saved password"
+msgstr "Déjalo vacío para usar la contraseña guardada"
+
+#: src/control_center/sections/appearance.zig
+msgid "Left"
+msgstr "Izquierda"
+
+#: src/control_center/search_index.zig
+msgid "Lid close action"
+msgstr "Acción al cerrar la tapa"
+
+#: src/control_center/sections/appearance.zig
+msgid "Light the active window's edge near the pointer"
+msgstr "Iluminar el borde de la ventana activa cerca del puntero"
+
+#: src/control_center/sections/network.zig
+msgid "Limited access"
+msgstr "Acceso limitado"
+
+#: src/editor/app.zig
+msgid "Line {line}, Column {column} · UTF-8{bom} · {ending}"
+msgstr "Línea {line}, columna {column} · UTF-8{bom} · {ending}"
+
+#: src/files/app_listing.zig
+msgid "Link"
+msgstr "Enlace"
+
+#: src/pdf/app_pointer.zig
+msgid "Link copied. Paste it into your browser."
+msgstr "Enlace copiado. Pégalo en tu navegador."
+
+#: src/files/properties.zig
+msgid "Link permissions cannot be changed"
+msgstr "No se pueden cambiar los permisos de un enlace"
+
+#: src/control_center/sections/network.zig
+msgid "Link speed"
+msgstr "Velocidad del enlace"
+
+#: src/files/app_torrents.zig
+msgid "List"
+msgstr "Lista"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper height"
+msgstr "Altura del papel cargado"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper width"
+msgstr "Ancho del papel cargado"
+
+#: src/images/app.zig
+msgid "Loading image…"
+msgstr "Cargando imagen…"
+
+#: src/control_center/sections/printers.zig
+msgid "Loading printers…"
+msgstr "Cargando impresoras…"
+
+#: src/control_center/sections/services.zig
+msgid "Loading services…"
+msgstr "Cargando servicios…"
+
+#: src/files/properties.zig
+msgid "Location"
+msgstr "Ubicación"
+
+#: src/control_center/sections/display.zig
+msgid "Lock"
+msgstr "Bloquear"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock Screen"
+msgstr "Bloquear pantalla"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock the session and turn off the display."
+msgstr "Bloquear la sesión y apagar la pantalla."
+
+#: src/control_center/sections/display.zig
+msgid "Locks and sleeps, even with another display connected."
+msgstr "Bloquea y suspende, incluso con otra pantalla conectada."
+
+#: src/control_center/sections/display.zig
+msgid "Locks, and turns off the built-in screen while another display is connected."
+msgstr "Bloquea y apaga la pantalla integrada mientras hay otra pantalla conectada."
+
+#: src/session/lock.zig
+msgid "Log In"
+msgstr "Iniciar sesión"
+
+#: src/power_menu.zig
+msgid "Log Out"
+msgstr "Cerrar sesión"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Log out of the desktop session."
+msgstr "Cerrar la sesión del escritorio."
+
+#: src/session/power.zig
+msgid "Logind refused the request."
+msgstr "Logind rechazó la solicitud."
+
+#: src/session/power.zig
+msgid "Logind request failed."
+msgstr "La solicitud a logind falló."
+
+#: src/session/power.zig
+msgid "Logind returned a malformed reply."
+msgstr "Logind devolvió una respuesta malformada."
+
+#: src/session/power.zig
+msgid "Logind returned an unrecognized reply."
+msgstr "Logind devolvió una respuesta desconocida."
+
+#: src/session/lock.zig
+msgid "Lost contact with login service. Try again."
+msgstr "Se perdió el contacto con el servicio de inicio de sesión. Inténtalo de nuevo."
+
+#: src/control_center/sections/network.zig
+msgid "MAC address"
+msgstr "Dirección MAC"
+
+#: src/control_center/sections/display.zig
+msgid "Main display"
+msgstr "Pantalla principal"
+
+#: src/control_center/sections/display.zig
+msgid "Make main display"
+msgstr "Establecer como pantalla principal"
+
+#: src/control_center/panel.zig
+msgid "Make your desktop your own."
+msgstr "Haz tuyo el escritorio."
+
+#: src/control_center/panel.zig
+msgid "Make your mouse and keyboard feel right."
+msgstr "Ajusta el ratón y el teclado a tu gusto."
+
+#: src/control_center/panel.zig
+msgid "Manage and analyze systemd services."
+msgstr "Gestiona y analiza los servicios de systemd."
+
+#: src/control_center/sections/printers.zig
+msgid "Manage…"
+msgstr "Gestionar…"
+
+#: src/control_center/sections/printers.zig
+msgid "Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"
+msgstr "Márgenes (mm): izquierdo {left}, derecho {right}, superior {top}, inferior {bottom}"
+
+#: src/control_center/panel.zig
+msgid "Master volume"
+msgstr "Volumen principal"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Maximize or restore the focused window."
+msgstr "Maximizar o restaurar la ventana enfocada."
+
+#: src/control_center/sections/printers.zig
+msgid "Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."
+msgstr "Mide el rectángulo de borde a borde con la unidad elegida. Esta prueba desactiva la escala de impresión."
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle height"
+msgstr "Altura del rectángulo medido"
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle width"
+msgstr "Ancho del rectángulo medido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Media"
+msgstr "Papel"
+
+#: src/control_center/sections/printers.zig
+msgid "Media and resolution"
+msgstr "Papel y resolución"
+
+#: src/printing/ladder.zig
+msgid "Media and resolution need confirmation against what is loaded in the printer."
+msgstr "Hay que confirmar el papel y la resolución según lo que esté cargado en la impresora."
+
+#: src/control_center/sections/appearance.zig
+msgid "Medium"
+msgstr "Medio"
+
+#: src/system_monitor/app.zig
+msgid "Memory (resident)"
+msgstr "Memoria (residente)"
+
+#: src/editor/main.zig
+msgid "Menu"
+msgstr "Menú"
+
+#: src/control_center/search_index.zig
+msgid "Menu bottom padding"
+msgstr "Margen inferior del menú"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu height"
+msgstr "Altura del menú"
+
+#: src/control_center/search_index.zig
+msgid "Menu left padding"
+msgstr "Margen izquierdo del menú"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu width"
+msgstr "Ancho del menú"
+
+#: src/files/app_torrent_rows.zig
+msgid "Metadata…"
+msgstr "Metadatos…"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mic Mute"
+msgstr "Silenciar micrófono"
+
+#: src/osd_paint.zig
+msgid "Mic on"
+msgstr "Micrófono activo"
+
+#: src/control_center/search_index.zig
+msgid "Microphone volume"
+msgstr "Volumen del micrófono"
+
+#: src/control_center/sections/printers.zig
+msgid "Millimetres"
+msgstr "Milímetros"
+
+#: src/control_center/sections/desktop.zig
+msgid "Mini Map"
+msgstr "Minimapa"
+
+#: src/control_center/search_index.zig
+msgid "Mini map"
+msgstr "Minimapa"
+
+#: src/control_center/search_index.zig
+msgid "Mini map hide delay"
+msgstr "Retardo para ocultar el minimapa"
+
+#: src/control_center/search_index.zig
+msgid "Mini map position"
+msgstr "Posición del minimapa"
+
+#: src/files/app_layout.zig
+msgid "Modified"
+msgstr "Modificado"
+
+#: src/control_center/sections/region.zig
+msgid "Monday"
+msgstr "Lunes"
+
+#: src/control_center/search_index.zig
+msgid "Monitor"
+msgstr "Monitor"
+
+#: src/control_center/sections/printers.zig
+msgid "More printing options"
+msgstr "Más opciones de impresión"
+
+#: src/control_center/welcome.zig
+msgid "More settings"
+msgstr "Más ajustes"
+
+#: src/control_center/sections/appearance.zig
+msgid "Motion & feedback"
+msgstr "Movimiento y respuesta"
+
+#: src/files/app_model.zig
+msgid "Mount"
+msgstr "Montar"
+
+#: src/files/app_places.zig
+msgid "Mounted"
+msgstr "Montado"
+
+#: src/files/app_places.zig
+msgid "Mounting…"
+msgstr "Montando…"
+
+#: src/control_center/search_index.zig
+msgid "Mouse speed"
+msgstr "Velocidad del ratón"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move To Workspace"
+msgstr "Mover al espacio de trabajo"
+
+#: src/control_center/sections/appearance.zig
+msgid "Move file manager aside"
+msgstr "Apartar el gestor de archivos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider down."
+msgstr "Mover hacia abajo el separador correspondiente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider left."
+msgstr "Mover hacia la izquierda el separador correspondiente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider right."
+msgstr "Mover hacia la derecha el separador correspondiente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider up."
+msgstr "Mover hacia arriba el separador correspondiente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to depth {depth}."
+msgstr "Mover la ventana a la profundidad {depth}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to workspace {n} and follow it."
+msgstr "Mover la ventana al espacio de trabajo {n} y seguirla."
+
+#: src/images/app.zig
+msgid "Move this image to Trash?"
+msgstr "¿Mover esta imagen a la papelera?"
+
+#: src/delete_dialog.zig
+msgid "Move to Trash"
+msgstr "Mover a la papelera"
+
+#: src/files/app_dialogs.zig
+msgid "Move to Trash?"
+msgstr "¿Mover a la papelera?"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move to workspace."
+msgstr "Mover al espacio de trabajo."
+
+#: src/control_center/welcome.zig
+msgid "Move, resize and overlap windows."
+msgstr "Mueve, cambia el tamaño y superpone ventanas."
+
+#: src/images/app.zig
+msgid "Moved to Trash."
+msgstr "Movido a la papelera."
+
+#: src/images/app.zig
+msgid "Moving to Trash…"
+msgstr "Moviendo a la papelera…"
+
+#: src/files/app.zig
+msgid "Music"
+msgstr "Música"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute system audio."
+msgstr "Silenciar o activar el audio del sistema."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute the microphone."
+msgstr "Silenciar o activar el micrófono."
+
+#: src/osd_paint.zig
+msgid "Muted"
+msgstr "Silenciado"
+
+#: src/system_monitor/app.zig
+msgid "My processes"
+msgstr "Mis procesos"
+
+#: src/files/app_layout.zig
+msgid "Name"
+msgstr "Nombre"
+
+#: src/files/app_dialogs.zig
+msgid "Name cannot be empty"
+msgstr "El nombre no puede estar vacío"
+
+#: src/files/app_menu.zig
+msgid "Name: A to Z"
+msgstr "Nombre: de A a Z"
+
+#: src/files/app_menu.zig
+msgid "Name: Z to A"
+msgstr "Nombre: de Z a A"
+
+#: src/files/properties.zig
+msgid "Named pipe"
+msgstr "Tubería con nombre"
+
+#: src/control_center/search_index.zig
+msgid "Natural scroll"
+msgstr "Desplazamiento natural"
+
+#: src/control_center/sections/printers.zig
+msgid "Neither test produced output: check the backend, connection, printer and loaded paper."
+msgstr "Ninguna prueba produjo impresión: comprueba el servicio, la conexión, la impresora y el papel cargado."
+
+#: src/control_center/panel.zig
+msgid "Network"
+msgstr "Red"
+
+#: src/network/popup.zig
+msgid "Network Name (SSID)"
+msgstr "Nombre de red (SSID)"
+
+#: src/network/popup.zig
+msgid "Network Settings"
+msgstr "Ajustes de red"
+
+#: src/control_center/sections/network.zig
+msgid "Network name"
+msgstr "Nombre de red"
+
+#: src/control_center/sections/network.zig
+msgid "Network name (SSID)"
+msgstr "Nombre de red (SSID)"
+
+#: src/control_center/sections/network.zig
+msgid "Network names must be at most 32 bytes."
+msgstr "Los nombres de red pueden tener como máximo 32 bytes."
+
+#: src/printing/ladder.zig
+msgid "Network reachability has not been checked."
+msgstr "No se ha comprobado la conexión de red."
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager is unavailable"
+msgstr "NetworkManager no está disponible"
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager unavailable"
+msgstr "NetworkManager no disponible"
+
+#: src/editor/app.zig
+msgid "New"
+msgstr "Nuevo"
+
+#: src/files/app_dialogs.zig
+msgid "New Branch"
+msgstr "Nueva rama"
+
+#: src/desktop/app_actions.zig
+msgid "New File"
+msgstr "Archivo nuevo"
+
+#: src/desktop/app_paint.zig
+msgid "New File — Enter creates"
+msgstr "Archivo nuevo — Intro para crear"
+
+#: src/files/app_dialogs.zig
+msgid "New File.txt"
+msgstr "Archivo nuevo.txt"
+
+#: src/desktop/app_actions.zig
+msgid "New Folder"
+msgstr "Carpeta nueva"
+
+#: src/files/app_git_sidebar.zig
+msgid "New branch"
+msgstr "Nueva rama"
+
+#: src/control_center/sections/users.zig
+msgid "New password"
+msgstr "Contraseña nueva"
+
+#: src/chrome_tabs.zig
+msgid "New tab"
+msgstr "Pestaña nueva"
+
+#: src/files/app_menu.zig
+msgid "Newest first"
+msgstr "Más reciente primero"
+
+#: src/editor/app.zig
+msgid "Next"
+msgstr "Siguiente"
+
+#: src/session/lock.zig
+msgid "Next account"
+msgstr "Siguiente cuenta"
+
+#: src/control_center/search_index.zig
+msgid "Night light"
+msgstr "Luz nocturna"
+
+#: src/control_center/search_index.zig
+msgid "Night light temperature"
+msgstr "Temperatura de la luz nocturna"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No Bluetooth adapter found"
+msgstr "No se encontró un adaptador Bluetooth"
+
+#: src/control_center/sections/network.zig
+msgid "No Wi-Fi adapter found"
+msgstr "No se encontró un adaptador Wi-Fi"
+
+#: src/control_center/sections/sound.zig
+msgid "No active audio streams"
+msgstr "No hay flujos de audio activos"
+
+#: src/control_center/sections/printers.zig
+msgid "No active jobs"
+msgstr "No hay trabajos activos"
+
+#: src/control_center/sections/network.zig
+msgid "No adapter"
+msgstr "Sin adaptador"
+
+#: src/files/open_with.zig
+msgid "No applications available"
+msgstr "No hay aplicaciones disponibles"
+
+#: src/start_menu/panel.zig
+msgid "No applications found"
+msgstr "No se encontraron aplicaciones"
+
+#: src/control_center/panel.zig
+msgid "No audio device available"
+msgstr "No hay dispositivos de audio disponibles"
+
+#: src/files/app_paint.zig
+msgid "No changed files"
+msgstr "No hay archivos modificados"
+
+#: src/control_center/sections/users.zig
+msgid "No changes were made. Authentication was cancelled or the request failed."
+msgstr "No se realizó ningún cambio. Se canceló la autenticación o falló la solicitud."
+
+#: src/pdf/app_paint.zig
+msgid "No document open. Click 'Open' or press Ctrl+O."
+msgstr "No hay ningún documento abierto. Haz clic en «Abrir» o pulsa Ctrl+O."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "No images in this folder"
+msgstr "No hay imágenes en esta carpeta"
+
+#: src/control_center/sections/network.zig
+msgid "No internet access"
+msgstr "Sin acceso a Internet"
+
+#: src/control_center/sections/network.zig
+msgid "No internet connection"
+msgstr "Sin conexión a Internet"
+
+#: src/control_center/sections/users.zig
+msgid "No login accounts were found."
+msgstr "No se encontraron cuentas de usuario."
+
+#: src/session/lock.zig
+msgid "No login service"
+msgstr "Sin servicio de inicio de sesión"
+
+#: src/printing/ladder.zig
+msgid "No matching USB device is available to identify its node."
+msgstr "No hay un dispositivo USB correspondiente para identificar su nodo."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No matching devices"
+msgstr "No hay dispositivos coincidentes"
+
+#: src/files/app_paint.zig
+msgid "No matching items"
+msgstr "No hay elementos coincidentes"
+
+#: src/system_monitor/app.zig
+msgid "No matching processes"
+msgstr "No hay procesos coincidentes"
+
+#: src/control_center/sections/services.zig
+msgid "No matching services."
+msgstr "No hay servicios coincidentes."
+
+#: src/control_center/sections/network.zig
+msgid "No networks found. Scan to try again."
+msgstr "No se encontraron redes. Busca de nuevo."
+
+#: src/network/popup.zig
+msgid "No networks found. Try reopening to scan again."
+msgstr "No se encontraron redes. Vuelve a abrir para buscar de nuevo."
+
+#: src/pdf/app_paint.zig
+msgid "No outline in document"
+msgstr "El documento no tiene índice"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No paired devices. Choose Pair New Device to get started."
+msgstr "No hay dispositivos emparejados. Elige Emparejar dispositivo nuevo para empezar."
+
+#: src/pdf/main.zig
+msgid "No print service answered (xdg-desktop-portal)."
+msgstr "Ningún servicio de impresión respondió (xdg-desktop-portal)."
+
+#: src/control_center/sections/printers.zig
+msgid "No printers configured."
+msgstr "No hay impresoras configuradas."
+
+#: src/files/app_paint.zig
+msgid "No recent files"
+msgstr "No hay archivos recientes"
+
+#: src/printing/ladder.zig
+msgid "No recent job information is available."
+msgstr "No hay información disponible de trabajos recientes."
+
+#: src/control_center/sections/users.zig
+msgid "No sessions available"
+msgstr "No hay sesiones disponibles"
+
+#: src/session/lock.zig
+msgid "No sessions installed"
+msgstr "No hay sesiones instaladas"
+
+#: src/control_center/search.zig
+msgid "No settings found"
+msgstr "No se encontraron ajustes"
+
+#: src/share_picker/client.zig
+msgid "No sources available."
+msgstr "No hay fuentes disponibles."
+
+#: src/control_center/panel.zig
+msgid "No supported backlight"
+msgstr "No hay iluminación compatible"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No supported profiles reported"
+msgstr "No se notificaron perfiles compatibles"
+
+#: src/control_center/sections/printers.zig
+msgid "No supported resolution consistently matches both measurements. Check the ruler and print scaling."
+msgstr "Ninguna resolución compatible coincide con ambas medidas. Comprueba la regla y la escala de impresión."
+
+#: src/files/app_terminal.zig
+msgid "No terminal directory"
+msgstr "Sin carpeta de terminal"
+
+#: src/files/app_torrents.zig
+msgid "No transfers yet. Add a .torrent file or magnet link."
+msgstr "Aún no hay transferencias. Añade un archivo .torrent o un enlace magnet."
+
+#: src/control_center/sections/printers.zig
+msgid "No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."
+msgstr "No se encontró un controlador inequívoco. Elige uno de la lista, comprueba una dirección IPP o elige expresamente una cola sin procesar."
+
+#: src/control_center/sections/printers.zig
+msgid "No usblp node was found; CUPS may still use libusb or ipp-usb."
+msgstr "No se encontró un nodo usblp; CUPS aún puede usar libusb o ipp-usb."
+
+#: src/session/lock.zig
+msgid "No user accounts found"
+msgstr "No se encontraron cuentas de usuario"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter"
+msgstr "Sin adaptador de red cableada"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter found"
+msgstr "No se encontró un adaptador de red cableada"
+
+#: src/control_center/sections/appearance.zig
+msgid "None"
+msgstr "Ninguno"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Noop"
+msgstr "Sin acción"
+
+#: src/control_center/sections/display.zig
+msgid "Normal"
+msgstr "Normal"
+
+#: src/files/worker.zig
+msgid "Not a directory"
+msgstr "No es una carpeta"
+
+#: src/control_center/sections/printers.zig
+msgid "Not accepting new jobs"
+msgstr "No acepta trabajos nuevos"
+
+#: src/files/volumes.zig
+msgid "Not authorized to eject {name}"
+msgstr "Sin autorización para expulsar {name}"
+
+#: src/files/volumes.zig
+msgid "Not authorized to mount {name}"
+msgstr "Sin autorización para montar {name}"
+
+#: src/session/power.zig
+msgid "Not available on this system."
+msgstr "No disponible en este sistema."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Not connected"
+msgstr "Sin conexión"
+
+#: src/editor/app.zig
+msgid "Not enough free memory to hold this file."
+msgstr "No hay suficiente memoria libre para este archivo."
+
+#: src/system_monitor/app.zig
+msgid "Not enough memory to display every process"
+msgstr "No hay suficiente memoria para mostrar todos los procesos"
+
+#: src/printing/cups.zig
+msgid "Not enough memory to load printer status. Refresh to check the result."
+msgstr "No hay suficiente memoria para cargar el estado de la impresora. Actualiza para comprobar el resultado."
+
+#: src/pdf/app_document.zig
+msgid "Not enough memory to open this document."
+msgstr "No hay suficiente memoria para abrir este documento."
+
+#: src/control_center/panel.zig
+msgid "Not enough memory to show this page."
+msgstr "No hay suficiente memoria para mostrar esta página."
+
+#: src/images/app.zig
+msgid "Not enough memory."
+msgstr "Memoria insuficiente."
+
+#: src/files/app_places.zig
+msgid "Not found"
+msgstr "No encontrado"
+
+#: src/control_center/sections/sound.zig
+msgid "Not saved"
+msgstr "Sin guardar"
+
+#: src/control_center/sections/region.zig
+msgid "Not specified"
+msgstr "Sin especificar"
+
+#: src/session/power.zig
+msgid "Not supported"
+msgstr "No compatible"
+
+#: src/files/app_places.zig
+msgid "Nothing to add to Places"
+msgstr "No hay nada que añadir a Lugares"
+
+#: src/notifications/toast.zig
+msgid "Notification"
+msgstr "Notificación"
+
+#: src/control_center/sections/services.zig
+msgid "Notify"
+msgstr "Notify"
+
+#: src/systemd.zig
+msgid "Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."
+msgstr "Se guardó el ajuste Notify, pero systemd no pudo recargarlo. Prueba Actualizar tras recargar el gestor."
+
+#: src/systemd.zig
+msgid "Notify override saved, but the selected type is not active in systemd. Check other service overrides."
+msgstr "Se guardó el ajuste Notify, pero el tipo elegido no está activo en systemd. Comprueba los demás ajustes del servicio."
+
+#: src/control_center/sections/services.zig
+msgid "Notify sets the service type and applies on its next start. Saving requires administrator authentication."
+msgstr "Notify configura el tipo de servicio y se aplica en el siguiente inicio. Guardar requiere autenticación de administrador."
+
+#: src/systemd.zig
+msgid "Notify setting saved. Applies on the next service start."
+msgstr "Ajuste Notify guardado. Se aplica en el siguiente inicio del servicio."
+
+#: src/control_center/sections/region.zig
+msgid "Number"
+msgstr "Número"
+
+#: src/files/app_paint.zig
+msgid "OK"
+msgstr "Aceptar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Off"
+msgstr "Desactivado"
+
+#: src/control_center/sections/network.zig
+msgid "Offline"
+msgstr "Sin conexión"
+
+#: src/printing/admin.zig
+msgid "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+msgstr "Se borró el ajuste predeterminado anterior, pero no se pudo aplicar la nueva opción. Actualiza y revísala."
+
+#: src/files/app_menu.zig
+msgid "Oldest first"
+msgstr "Más antiguo primero"
+
+#: src/control_center/sections/appearance.zig
+msgid "On"
+msgstr "Activado"
+
+#: src/taskbar/battery.zig
+msgid "On Battery"
+msgstr "Con batería"
+
+#: src/printing/options.zig
+msgid "One-sided"
+msgstr "Una cara"
+
+#: src/files/properties.zig
+msgid "Only the owner can change permissions"
+msgstr "Solo el propietario puede cambiar los permisos"
+
+#: src/files/appimage.zig
+msgid "Only type-2 AppImages are supported"
+msgstr "Solo se admiten AppImages de tipo 2"
+
+#: src/control_center/sections/network.zig
+msgid "Open"
+msgstr "Abrir"
+
+#: src/files/app.zig
+msgid "Open File"
+msgstr "Abrir archivo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor"
+msgstr "Abrir Monitor del sistema"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor, or restore and focus its window."
+msgstr "Abrir el Monitor del sistema o restaurar y enfocar su ventana."
+
+#: src/files/app_dialogs.zig
+msgid "Open With"
+msgstr "Abrir con"
+
+#: src/desktop/app_actions.zig
+msgid "Open With…"
+msgstr "Abrir con…"
+
+#: src/control_center/sections/network.zig
+msgid "Open a browser to sign in"
+msgstr "Abre un navegador para iniciar sesión"
+
+#: src/control_center/sections/desktop.zig
+msgid "Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."
+msgstr "Abre una aplicación para añadirla aquí. Las reglas avanzadas de título, plataforma y patrones usan floating en [[window_rules]] de la configuración."
+
+#: src/pdf/app_keyboard.zig
+msgid "Open another PDF from Files in a new window."
+msgstr "Abre otro PDF desde Archivos en una ventana nueva."
+
+#: src/control_center/search_index.zig
+msgid "Open files with a single click"
+msgstr "Abrir archivos con un solo clic"
+
+#: src/files/app_model.zig
+msgid "Open in New Window"
+msgstr "Abrir en ventana nueva"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open or close the application launcher."
+msgstr "Abrir o cerrar el lanzador de aplicaciones."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open the session and power menu."
+msgstr "Abrir el menú de sesión y energía."
+
+#: src/files/app_layout.zig
+msgid "Opened"
+msgstr "Abierto"
+
+#: src/files/open_with.zig
+msgid "Opened, but could not save the default app"
+msgstr "Abierto, pero no se pudo guardar la aplicación predeterminada"
+
+#: src/pdf/app_paint.zig
+msgid "Opening document..."
+msgstr "Abriendo documento..."
+
+#: src/editor/app.zig
+msgid "Opening…"
+msgstr "Abriendo…"
+
+#: src/control_center/sections/services.zig
+msgid "Optimize"
+msgstr "Optimizar"
+
+#: src/files/properties.zig
+msgid "Others"
+msgstr "Otros"
+
+#: src/files/git.zig
+msgid "Out of memory"
+msgstr "Memoria agotada"
+
+#: src/pdf/app_paint.zig
+msgid "Outline"
+msgstr "Índice"
+
+#: src/control_center/sections/sound.zig
+msgid "Output"
+msgstr "Salida"
+
+#: src/control_center/search_index.zig
+msgid "Output balance"
+msgstr "Balance de salida"
+
+#: src/control_center/sections/display.zig
+msgid "Output name"
+msgstr "Nombre de la salida"
+
+#: src/control_center/search_index.zig
+msgid "Output volume"
+msgstr "Volumen de salida"
+
+#: src/control_center/sections/desktop.zig
+msgid "Output: {name}"
+msgstr "Salida: {name}"
+
+#: src/files/properties.zig
+msgid "Owner"
+msgstr "Propietario"
+
+#: src/pdf/app.zig
+msgid "PDF Viewer"
+msgstr "Visor de PDF"
+
+#: src/delete_dialog.zig
+msgid "PDF document"
+msgstr "Documento PDF"
+
+#: src/system_monitor/app.zig
+msgid "PID"
+msgstr "PID"
+
+#: src/files/app_sidebar_paint.zig
+msgid "PLACES"
+msgstr "LUGARES"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "PNG and SVG images"
+msgstr "Imágenes PNG y SVG"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pack or system default"
+msgstr "Predeterminado del paquete o del sistema"
+
+#: src/control_center/sections/appearance.zig
+msgid "Packs include colours and artwork. Personal edits are saved as overrides."
+msgstr "Los paquetes incluyen colores e imágenes. Los cambios personales se guardan como ajustes adicionales."
+
+#: src/pdf/app_paint.zig
+msgid "Pages"
+msgstr "Páginas"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair Device"
+msgstr "Emparejar dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair New Device"
+msgstr "Emparejar dispositivo nuevo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Paired Devices"
+msgstr "Dispositivos emparejados"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing"
+msgstr "Emparejando"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing code"
+msgstr "Código de emparejamiento"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Down"
+msgstr "Desplazar abajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Left"
+msgstr "Desplazar izquierda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Right"
+msgstr "Desplazar derecha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Up"
+msgstr "Desplazar arriba"
+
+#: src/control_center/sections/desktop.zig
+msgid "Pan and zoom the canvas. Switching back restores your canvas positions and zoom."
+msgstr "Desplaza y amplía el lienzo. Al volver se restauran sus posiciones y ampliación."
+
+#: src/control_center/sections/input.zig
+msgid "Pan speed"
+msgstr "Velocidad de desplazamiento"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pan to the selected window without changing zoom."
+msgstr "Desplazarse a la ventana seleccionada sin cambiar la ampliación."
+
+#: src/printing/options.zig
+msgid "Paper size"
+msgstr "Tamaño del papel"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {paper}"
+msgstr "Papel: {paper}"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {width} × {height} mm"
+msgstr "Papel: {width} × {height} mm"
+
+#: src/control_center/sections/printers.zig
+msgid "Pass"
+msgstr "Correcto"
+
+#: src/control_center/sections/network.zig
+msgid "Password"
+msgstr "Contraseña"
+
+#: src/control_center/sections/network.zig
+msgid "Password (leave empty to use saved)"
+msgstr "Contraseña (vacía para usar la guardada)"
+
+#: src/pdf/app_paint.zig
+msgid "Password Required"
+msgstr "Se requiere contraseña"
+
+#: src/files/archive.zig
+msgid "Password-protected archives are not supported yet"
+msgstr "Todavía no se admiten archivos comprimidos protegidos por contraseña"
+
+#: src/desktop/app_actions.zig
+msgid "Paste"
+msgstr "Pegar"
+
+#: src/files/app_torrent_rows.zig
+msgid "Pause"
+msgstr "Pausar"
+
+#: src/files/app_torrents.zig
+msgid "Pause all"
+msgstr "Pausar todo"
+
+#: src/system_monitor/app.zig
+msgid "Pause updates"
+msgstr "Pausar actualizaciones"
+
+#: src/files/app_torrent_rows.zig
+msgid "Paused"
+msgstr "En pausa"
+
+#: src/printing/cups.zig
+msgid "Pending"
+msgstr "Pendiente"
+
+#: src/power_profiles.zig
+msgid "Performance"
+msgstr "Rendimiento"
+
+#: src/delete_dialog.zig
+msgid "Permanently delete all trashed files and folders"
+msgstr "Eliminar permanentemente todos los archivos y carpetas de la papelera"
+
+#: src/files/app_dialogs.zig
+msgid "Permission denied"
+msgstr "Permiso denegado"
+
+#: src/editor/app.zig
+msgid "Permission denied. Try Save As in a writable folder."
+msgstr "Permiso denegado. Usa Guardar como en una carpeta con permiso de escritura."
+
+#: src/files/app_layout.zig
+msgid "Permissions"
+msgstr "Permisos"
+
+#: src/files/properties.zig
+msgid "Permissions updated"
+msgstr "Permisos actualizados"
+
+#: src/files/app.zig
+msgid "Pictures"
+msgstr "Imágenes"
+
+#: src/start_menu/panel.zig
+msgid "Pin application"
+msgstr "Fijar aplicación"
+
+#: src/start_menu/panel.zig
+msgid "Pinned & Recent"
+msgstr "Fijadas y recientes"
+
+#: src/control_center/sections/desktop.zig
+msgid "Placement"
+msgstr "Ubicación"
+
+#: src/files/app_places.zig
+msgid "Places is full"
+msgstr "Lugares está lleno"
+
+#: src/images/app.zig
+msgid "Please wait for the file operation to finish."
+msgstr "Espera a que termine la operación de archivos."
+
+#: src/taskbar/battery.zig
+msgid "Plugged In"
+msgstr "Enchufado"
+
+#: src/control_center/sections/desktop.zig
+msgid "Position"
+msgstr "Posición"
+
+#: src/session/lock.zig
+msgid "Power"
+msgstr "Energía"
+
+#: src/power_menu.zig
+msgid "Power Off"
+msgstr "Apagar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Power Profile Cycle"
+msgstr "Cambiar perfil de energía"
+
+#: src/power_profiles.zig
+msgid "Power Saver"
+msgstr "Ahorro de energía"
+
+#: src/session/power.zig
+msgid "Power action failed"
+msgstr "La acción de energía falló"
+
+#: src/session/power.zig
+msgid "Power off"
+msgstr "Apagar"
+
+#: src/session/lock.zig
+msgid "Power off? Activate Power again to confirm."
+msgstr "¿Apagar? Activa Apagar otra vez para confirmar."
+
+#: src/session/lock.zig
+msgid "Power request accepted"
+msgstr "Solicitud de energía aceptada"
+
+#: src/session/lock.zig
+msgid "Power request denied or unavailable"
+msgstr "Solicitud de energía denegada o no disponible"
+
+#: src/session/power.zig
+msgid "Power request failed. Check permissions and applications blocking shutdown."
+msgstr "La solicitud de energía falló. Comprueba los permisos y las aplicaciones que impiden el apagado."
+
+#: src/session/lock.zig
+msgid "Power service unavailable"
+msgstr "Servicio de energía no disponible"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff"
+msgstr "Apagar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff Auto"
+msgstr "Apagar automáticamente"
+
+#: src/session/lock.zig
+msgid "Press Enter to log in"
+msgstr "Pulsa Intro para iniciar sesión"
+
+#: src/session/lock.zig
+msgid "Press Enter to unlock"
+msgstr "Pulsa Intro para desbloquear"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press keys to record. Esc cancels."
+msgstr "Pulsa las teclas para grabar. Esc cancela."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press new shortcut…"
+msgstr "Pulsa el nuevo atajo…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Prevent this device from connecting."
+msgstr "Impedir que este dispositivo se conecte."
+
+#: src/files/app_torrents.zig
+msgid "Previous"
+msgstr "Anterior"
+
+#: src/session/lock.zig
+msgid "Previous account"
+msgstr "Cuenta anterior"
+
+#: src/pdf/app_paint.zig
+msgid "Print"
+msgstr "Imprimir"
+
+#: src/control_center/sections/printers.zig
+msgid "Print a 2 × 3 inch ruler…"
+msgstr "Imprimir una regla de 2 × 3 pulgadas…"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one test"
+msgstr "Imprimir una prueba"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one {kind} test on {name}?"
+msgstr "¿Imprimir una prueba {kind} en {name}?"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue"
+msgstr "Cola de impresión"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue · {n}"
+msgstr "Cola de impresión · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test"
+msgstr "Prueba de impresión"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test page…"
+msgstr "Imprimir página de prueba…"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer"
+msgstr "Impresora"
+
+#: src/printing/admin.zig
+msgid "Printer added, enabled and accepting jobs."
+msgstr "Impresora añadida, activada y aceptando trabajos."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer address (ipp, ipps, socket or lpd)"
+msgstr "Dirección de impresora (ipp, ipps, socket o lpd)"
+
+#: src/printing/admin.zig
+msgid "Printer administration failed; refresh and check the printer status."
+msgstr "La administración de impresoras falló; actualiza y comprueba el estado de la impresora."
+
+#: src/printing/admin.zig
+msgid "Printer administration timed out. Refresh before trying again."
+msgstr "La administración de impresoras agotó el tiempo de espera. Actualiza antes de reintentar."
+
+#: src/printing/admin.zig
+msgid "Printer administration was cancelled."
+msgstr "La administración de impresoras se canceló."
+
+#: src/printing/admin.zig
+msgid "Printer administration was not authorized or was cancelled."
+msgstr "La administración de impresoras no se autorizó o se canceló."
+
+#: src/printing/admin.zig
+msgid "Printer authorization helper unavailable. Refresh before trying again."
+msgstr "El asistente de autorización de impresoras no está disponible. Actualiza antes de reintentar."
+
+#: src/printing/admin.zig
+msgid "Printer change applied."
+msgstr "Cambio de impresora aplicado."
+
+#: src/printing/admin.zig
+msgid "Printer connection changed."
+msgstr "Conexión de impresora cambiada."
+
+#: src/printing/admin.zig
+msgid "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+msgstr "La limpieza de preferencias se completó en parte, pero no se pudo aplicar la nueva opción. Actualiza y revísala."
+
+#: src/printing/admin.zig
+msgid "Printer discovery complete."
+msgstr "Detección de impresoras completada."
+
+#: src/printing/admin.zig
+msgid "Printer option applied."
+msgstr "Opción de impresora aplicada."
+
+#: src/printing/cups.zig
+msgid "Printer preferences could not be saved safely. Check the existing preferences file."
+msgstr "No se pudieron guardar las preferencias de impresora de forma segura. Comprueba el archivo de preferencias existente."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setting verified."
+msgstr "Ajuste de impresora verificado."
+
+#: src/printing/options.zig
+msgid "Printer settings"
+msgstr "Ajustes de impresora"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setup requires the local default CUPS server."
+msgstr "La configuración de impresoras requiere el servidor CUPS local predeterminado."
+
+#: src/control_center/panel.zig
+msgid "Printer status, jobs and connection diagnostics."
+msgstr "Estado, trabajos y diagnóstico de conexiones de impresoras."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but could not be enabled. Refresh and resume it."
+msgstr "La impresora se añadió, pero no se pudo activar. Actualiza y reanúdala."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+msgstr "La impresora se añadió, pero falló su activación o aceptación de trabajos. Actualiza, reanúdala y permite trabajos."
+
+#: src/control_center/panel.zig
+msgid "Printers"
+msgstr "Impresoras"
+
+#: src/control_center/sections/printers.zig
+msgid "Printers are unavailable in the greeter."
+msgstr "Las impresoras no están disponibles en la pantalla de acceso."
+
+#: src/printing/cups.zig
+msgid "Printing"
+msgstr "Imprimiendo"
+
+#: src/pdf/main.zig
+msgid "Printing is not available."
+msgstr "La impresión no está disponible."
+
+#: src/control_center/sections/printers.zig
+msgid "Printing preferences"
+msgstr "Preferencias de impresión"
+
+#: src/control_center/sections/printers.zig
+msgid "Problem"
+msgstr "Problema"
+
+#: src/system_monitor/app.zig
+msgid "Process data unavailable"
+msgstr "Datos de procesos no disponibles"
+
+#: src/system_monitor/app.zig
+msgid "Processes"
+msgstr "Procesos"
+
+#: src/printing/cups.zig
+msgid "Processing"
+msgstr "Procesando"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles"
+msgstr "Perfiles"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles appear after pairing"
+msgstr "Los perfiles aparecen tras emparejar"
+
+#: src/files/app_layout.zig
+msgid "Progress"
+msgstr "Progreso"
+
+#: src/files/app.zig
+msgid "Projects"
+msgstr "Proyectos"
+
+#: src/desktop/app_actions.zig
+msgid "Properties"
+msgstr "Propiedades"
+
+#: src/desktop/app_paint.zig
+msgid "Properties — Escape closes"
+msgstr "Propiedades — Escape para cerrar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Put the computer to sleep."
+msgstr "Suspender el equipo."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Put your device in pairing mode. Nearby devices appear here."
+msgstr "Pon el dispositivo en modo de emparejamiento. Los dispositivos cercanos aparecen aquí."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+msgstr "Colores de Qt 5 y Qt 6 aplicados. Reinicia las aplicaciones; vuelve a iniciar sesión si sus colores no cambian."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Colores de Qt 5 aplicados. Instala qt6ct para Qt 6. Reinicia las aplicaciones; vuelve a iniciar sesión si sus colores no cambian."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Colores de Qt 6 aplicados. Instala qt5ct para Qt 5. Reinicia las aplicaciones; vuelve a iniciar sesión si sus colores no cambian."
+
+#: src/printing/options.zig
+msgid "Quality"
+msgstr "Calidad"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue"
+msgstr "Cola"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue identifier"
+msgstr "Identificador de cola"
+
+#: src/printing/ladder.zig
+msgid "Queue media and resolution could not be read."
+msgstr "No se pudieron leer el papel y la resolución de la cola."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue name"
+msgstr "Nombre de cola"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue paper setting: {paper}. Check that this matches the loaded paper."
+msgstr "Papel configurado en la cola: {paper}. Comprueba que coincide con el papel cargado."
+
+#: src/printing/admin.zig
+msgid "Queue rename only partly completed. Refresh and check both queues before retrying."
+msgstr "El cambio de nombre de la cola solo se completó en parte. Actualiza y revisa ambas colas antes de reintentar."
+
+#: src/printing/admin.zig
+msgid "Queue rename request completed. Check the refreshed queues and options."
+msgstr "Solicitud de cambio de nombre completada. Comprueba las colas y opciones actualizadas."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue: {name}"
+msgstr "Cola: {name}"
+
+#: src/start_menu/panel.zig
+msgid "Quick Launch"
+msgstr "Inicio rápido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Quit"
+msgstr "Salir"
+
+#: src/control_center/sections/display.zig
+msgid "REDIWM_SCALE sets scaling; restart to apply Xwayland changes."
+msgstr "REDIWM_SCALE establece la escala; reinicia para aplicar cambios de Xwayland."
+
+#: src/control_center/sections/appearance.zig
+msgid "RIGHT"
+msgstr "DERECHA"
+
+#: src/control_center/sections/appearance.zig
+msgid "Radius"
+msgstr "Radio"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw queue (printer commands only)"
+msgstr "Cola sin procesar (solo comandos de impresora)"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw sample resolution (dpi)"
+msgstr "Resolución de la muestra sin procesar (ppp)"
+
+#: src/files/properties.zig
+msgid "Read"
+msgstr "Leer"
+
+#: src/control_center/sections/users.zig
+msgid "Read only"
+msgstr "Solo lectura"
+
+#: src/printing/cups.zig
+msgid "Ready"
+msgstr "Listo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Ready to pair"
+msgstr "Listo para emparejar"
+
+#: src/printing/ladder.zig
+msgid "Reapply the intended paper, resolution or driver option, then refresh to verify the result."
+msgstr "Vuelve a aplicar el papel, la resolución o la opción de controlador deseados y actualiza para verificar el resultado."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot"
+msgstr "Reiniciar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot Auto"
+msgstr "Reiniciar automáticamente"
+
+#: src/files/app.zig
+msgid "Recent"
+msgstr "Recientes"
+
+#: src/files/open_with.zig
+msgid "Recommended Apps"
+msgstr "Aplicaciones recomendadas"
+
+#: src/files/app.zig
+msgid "RediWM Files"
+msgstr "Archivos de RediWM"
+
+#: src/control_center/sections/default_apps.zig
+msgid "RediWM Files (built-in)"
+msgstr "Archivos de RediWM (integrado)"
+
+#: src/control_center/sections/appearance.zig
+msgid "RediWM dock"
+msgstr "Dock de RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "Reduce blue light with a warm tint"
+msgstr "Reducir la luz azul con un tono cálido"
+
+#: src/control_center/search_index.zig
+msgid "Reduced motion"
+msgstr "Movimiento reducido"
+
+#: src/control_center/sections/printers.zig
+msgid "Refresh"
+msgstr "Actualizar"
+
+#: src/control_center/search_index.zig
+msgid "Refresh rate"
+msgstr "Frecuencia de actualización"
+
+#: src/control_center/sections/region.zig
+msgid "Region"
+msgstr "Región"
+
+#: src/control_center/panel.zig
+msgid "Region & Language"
+msgstr "Región e idioma"
+
+#: src/control_center/search_index.zig
+msgid "Regional formats"
+msgstr "Formatos regionales"
+
+#: src/control_center/sections/region.zig
+msgid "Regional formats are unavailable for this session."
+msgstr "Los formatos regionales no están disponibles para esta sesión."
+
+#: src/control_center/sections/printers.zig
+msgid "Remember loaded paper size"
+msgstr "Recordar el tamaño del papel cargado"
+
+#: src/control_center/sections/appearance.zig
+msgid "Remove"
+msgstr "Eliminar"
+
+#: src/files/app_model.zig
+msgid "Remove from Places"
+msgstr "Eliminar de Lugares"
+
+#: src/taskbar/window_menu.zig
+msgid "Remove from dock"
+msgstr "Eliminar del dock"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer {name} ({queue})? This deletes its queue and settings."
+msgstr "¿Eliminar la impresora {name} ({queue})? Se borrarán su cola y sus ajustes."
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer…"
+msgstr "Eliminar impresora…"
+
+#: src/control_center/search_index.zig
+msgid "Remove theme"
+msgstr "Eliminar tema"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove this printer"
+msgstr "Eliminar esta impresora"
+
+#: src/files/app_torrents.zig
+msgid "Remove · keep files"
+msgstr "Eliminar · conservar archivos"
+
+#: src/desktop/app_actions.zig
+msgid "Rename"
+msgstr "Renombrar"
+
+#: src/files/app_paint.zig
+msgid "Rename (R)"
+msgstr "Renombrar (R)"
+
+#: src/desktop/app_paint.zig
+msgid "Rename — Enter saves, Escape cancels"
+msgstr "Renombrar — Intro guarda, Escape cancela"
+
+#: src/files/app_dialogs.zig
+msgid "Renamed successfully"
+msgstr "Nombre cambiado correctamente"
+
+#: src/pdf/app_paint.zig
+msgid "Rendering page {value}..."
+msgstr "Renderizando página {value}..."
+
+#: src/control_center/sections/region.zig
+msgid "Reopen running apps to use the selected language."
+msgstr "Vuelve a abrir las aplicaciones en ejecución para usar el idioma elegido."
+
+#: src/control_center/sections/input.zig
+msgid "Repeat delay"
+msgstr "Retardo de repetición"
+
+#: src/control_center/sections/input.zig
+msgid "Repeat rate"
+msgstr "Frecuencia de repetición"
+
+#: src/files/app_chooser.zig
+msgid "Replace"
+msgstr "Reemplazar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Replace installed theme"
+msgstr "Reemplazar el tema instalado"
+
+#: src/control_center/sections/printers.zig
+msgid "Report copied"
+msgstr "Informe copiado"
+
+#: src/control_center/sections/printers.zig
+msgid "Reports omit document names, user names, USB serials and private printer addresses."
+msgstr "Los informes omiten nombres de documentos y usuarios, números de serie USB y direcciones privadas de impresoras."
+
+#: src/systemd.zig
+msgid "Request accepted. Status updates when the job completes."
+msgstr "Solicitud aceptada. El estado se actualizará al completarse el trabajo."
+
+#: src/printing/admin.zig
+msgid "Requesting CUPS start; authorization may be required…"
+msgstr "Solicitando inicio de CUPS; puede requerir autorización…"
+
+#: src/session/lock.zig
+msgid "Requesting power action…"
+msgstr "Solicitando acción de energía…"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved file name"
+msgstr "Nombre de archivo reservado"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved folder name"
+msgstr "Nombre de carpeta reservado"
+
+#: src/control_center/search_index.zig
+msgid "Reset theme"
+msgstr "Restablecer tema"
+
+#: src/control_center/sections/desktop.zig
+msgid "Reset to Default"
+msgstr "Restablecer valores predeterminados"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to default"
+msgstr "Restablecer valores predeterminados"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to theme"
+msgstr "Restablecer al tema"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Down"
+msgstr "Redimensionar división abajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Left"
+msgstr "Redimensionar división izquierda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Right"
+msgstr "Redimensionar división derecha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Up"
+msgstr "Redimensionar división arriba"
+
+#: src/control_center/search_index.zig
+msgid "Resolution"
+msgstr "Resolución"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: Unavailable"
+msgstr "Resolución: no disponible"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: {x} × {y} dpi"
+msgstr "Resolución: {x} × {y} ppp"
+
+#: src/printing/ladder.zig
+msgid "Resolve the reported printer problem before resuming the queue."
+msgstr "Resuelve el problema indicado antes de reanudar la cola."
+
+#: src/session/lock.zig
+msgid "Response"
+msgstr "Respuesta"
+
+#: src/control_center/sections/services.zig
+msgid "Restart"
+msgstr "Reiniciar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart Shell"
+msgstr "Reiniciar shell"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the computer."
+msgstr "Reiniciar el equipo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the desktop shell."
+msgstr "Reiniciar la shell del escritorio."
+
+#: src/session/lock.zig
+msgid "Restart? Activate Restart again to confirm."
+msgstr "¿Reiniciar? Activa Reiniciar otra vez para confirmar."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Layout"
+msgstr "Restaurar disposición"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Shortcuts"
+msgstr "Restaurar atajos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore a saved layout."
+msgstr "Restaurar una disposición guardada."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore layout: {name}"
+msgstr "Restaurar disposición: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the desktop zoom."
+msgstr "Restaurar la ampliación del escritorio."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the focused window's size."
+msgstr "Restaurar el tamaño de la ventana enfocada."
+
+#: src/calculator/model.zig
+msgid "Result is too large"
+msgstr "El resultado es demasiado grande"
+
+#: src/files/app_torrent_rows.zig
+msgid "Resume"
+msgstr "Reanudar"
+
+#: src/control_center/sections/printers.zig
+msgid "Resume printer"
+msgstr "Reanudar impresora"
+
+#: src/system_monitor/app.zig
+msgid "Resume updates"
+msgstr "Reanudar actualizaciones"
+
+#: src/control_center/panel.zig
+msgid "Review login accounts and automatic-login settings."
+msgstr "Revisa las cuentas de usuario y los ajustes de inicio automático."
+
+#: src/control_center/sections/printers.zig
+msgid "Review the suggested resolution, then apply it explicitly."
+msgstr "Revisa la resolución sugerida y aplícala explícitamente."
+
+#: src/control_center/sections/appearance.zig
+msgid "Right"
+msgstr "Derecha"
+
+#: src/images/app.zig
+msgid "Rotate"
+msgstr "Girar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Rotate the nearest tiled split."
+msgstr "Girar la división en mosaico más cercana."
+
+#: src/control_center/search_index.zig
+msgid "Rotation"
+msgstr "Rotación"
+
+#: src/control_center/sections/appearance.zig
+msgid "Round"
+msgstr "Redondeado"
+
+#: src/system_monitor/app.zig
+msgid "Running"
+msgstr "En ejecución"
+
+#: src/control_center/sections/sound.zig
+msgid "SOUND"
+msgstr "SONIDO"
+
+#: src/control_center/sections/appearance.zig
+msgid "Same as theme"
+msgstr "Igual que el tema"
+
+#: src/images/app.zig
+msgid "Same folder, or enter an absolute path."
+msgstr "En la misma carpeta, o introduce una ruta absoluta."
+
+#: src/control_center/sections/region.zig
+msgid "Saturday"
+msgstr "Sábado"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save"
+msgstr "Guardar"
+
+#: src/editor/app.zig
+msgid "Save As"
+msgstr "Guardar como"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save Layout"
+msgstr "Guardar disposición"
+
+#: src/images/app.zig
+msgid "Save a PNG copy"
+msgstr "Guardar una copia PNG"
+
+#: src/images/app.zig
+msgid "Save as"
+msgstr "Guardar como"
+
+#: src/images/app.zig
+msgid "Save as…"
+msgstr "Guardar como…"
+
+#: src/editor/app.zig
+msgid "Save changes before closing?"
+msgstr "¿Guardar los cambios antes de cerrar?"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save current look as theme"
+msgstr "Guardar la apariencia actual como tema"
+
+#: src/control_center/sections/printers.zig
+msgid "Save display name"
+msgstr "Guardar nombre visible"
+
+#: src/control_center/sections/users.zig
+msgid "Save groups"
+msgstr "Guardar grupos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save layout: {name}"
+msgstr "Guardar disposición: {name}"
+
+#: src/control_center/sections/appearance.zig
+msgid "Save look…"
+msgstr "Guardar apariencia…"
+
+#: src/control_center/sections/users.zig
+msgid "Save name"
+msgstr "Guardar nombre"
+
+#: src/control_center/sections/users.zig
+msgid "Save password"
+msgstr "Guardar contraseña"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save shortcut"
+msgstr "Guardar atajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save the window layout."
+msgstr "Guardar la disposición de ventanas."
+
+#: src/control_center/search_index.zig
+msgid "Save theme"
+msgstr "Guardar tema"
+
+#: src/images/app.zig
+msgid "Save your edits?"
+msgstr "¿Guardar tus cambios?"
+
+#: src/editor/app.zig
+msgid "Saved"
+msgstr "Guardado"
+
+#: src/images/app.zig
+msgid "Saved PNG copy."
+msgstr "Copia PNG guardada."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved for RediWM, but could not update the system folder association."
+msgstr "Guardado en RediWM, pero no se pudo actualizar la asociación de carpetas del sistema."
+
+#: src/control_center/sections/region.zig
+msgid "Saved for your user’s RediWM session only; system defaults are unchanged."
+msgstr "Se guarda solo para tu sesión de RediWM; los valores predeterminados del sistema no cambian."
+
+#: src/images/app.zig
+msgid "Saved {name}"
+msgstr "Se guardó {name}"
+
+#: src/control_center/sections/portals.zig
+msgid "Saved. Changes apply next time you sign in."
+msgstr "Guardado. Los cambios se aplicarán al volver a iniciar sesión."
+
+#: src/control_center/welcome.zig
+msgid "Saved. You can change these later in Settings."
+msgstr "Guardado. Puedes cambiarlo después en Ajustes."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved. Your choice applies immediately."
+msgstr "Guardado. La opción se aplica de inmediato."
+
+#: src/editor/app.zig
+msgid "Saving a large file. Editing resumes when it is written."
+msgstr "Guardando un archivo grande. Podrás editarlo cuando termine."
+
+#: src/images/app.zig
+msgid "Saving image…"
+msgstr "Guardando imagen…"
+
+#: src/editor/app.zig
+msgid "Saving…"
+msgstr "Guardando…"
+
+#: src/files/app_paint.zig
+msgid "Scanning folder..."
+msgstr "Explorando carpeta..."
+
+#: src/control_center/sections/appearance.zig
+msgid "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+msgstr "El indicador de captura aparece al grabar o compartir la pantalla. Se recomienda mantenerlo activado."
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens tall (1–10)"
+msgstr "Alto en pantallas (1–10)"
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens wide (1–10)"
+msgstr "Ancho en pantallas (1–10)"
+
+#: src/screenshot/selector.zig
+msgid "Screenshot"
+msgstr "Captura de pantalla"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Output"
+msgstr "Capturar pantalla"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Region"
+msgstr "Capturar región"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot failed"
+msgstr "La captura de pantalla falló"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved and copied"
+msgstr "Captura guardada y copiada"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved; clipboard failed"
+msgstr "Captura guardada; falló el portapapeles"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshots"
+msgstr "Capturas de pantalla"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop above."
+msgstr "Desplazarse al escritorio superior."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop below."
+msgstr "Desplazarse al escritorio inferior."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the left."
+msgstr "Desplazarse al escritorio de la izquierda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the right."
+msgstr "Desplazarse al escritorio de la derecha."
+
+#: src/control_center/search_index.zig
+msgid "Scrollbar width"
+msgstr "Ancho de la barra de desplazamiento"
+
+#: src/start_menu/panel.zig
+msgid "Search applications…"
+msgstr "Buscar aplicaciones…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Search devices…"
+msgstr "Buscar dispositivos…"
+
+#: src/system_monitor/app.zig
+msgid "Search name, PID or user"
+msgstr "Buscar nombre, PID o usuario"
+
+#: src/control_center/sections/services.zig
+msgid "Search services…"
+msgstr "Buscar servicios…"
+
+#: src/control_center/panel.zig
+msgid "Search settings"
+msgstr "Buscar ajustes"
+
+#: src/control_center/search.zig
+msgid "Search settings…"
+msgstr "Buscar ajustes…"
+
+#: src/files/app_paint.zig
+msgid "Search this folder"
+msgstr "Buscar en esta carpeta"
+
+#: src/files/open_with.zig
+msgid "Search: {query}"
+msgstr "Búsqueda: {query}"
+
+#: src/control_center/sections/network.zig
+msgid "Searching for networks…"
+msgstr "Buscando redes…"
+
+#: src/network/manager.zig
+msgid "Secured"
+msgstr "Protegida"
+
+#: src/control_center/sections/network.zig
+msgid "Security"
+msgstr "Seguridad"
+
+#: src/control_center/sections/desktop.zig
+msgid "See your position while navigating. Drag the highlighted view to pan."
+msgstr "Comprueba tu posición al navegar. Arrastra la vista resaltada para desplazarte."
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 1"
+msgstr "Compartir: proporción 1"
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 2"
+msgstr "Compartir: proporción 2"
+
+#: src/files/app_torrents.zig
+msgid "Seed: stop at finish"
+msgstr "Compartir: detener al terminar"
+
+#: src/files/app_torrent_rows.zig
+msgid "Seeding"
+msgstr "Compartiendo"
+
+#: src/files/app_chooser.zig
+msgid "Select"
+msgstr "Seleccionar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Select a device"
+msgstr "Selecciona un dispositivo"
+
+#: src/system_monitor/app.zig
+msgid "Select a process first"
+msgstr "Selecciona primero un proceso"
+
+#: src/printing/ladder.zig
+msgid "Select an existing queue or add the printer again."
+msgstr "Selecciona una cola existente o vuelve a añadir la impresora."
+
+#: src/control_center/sections/printers.zig
+msgid "Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."
+msgstr "Elige una conexión USB instalada entre las detectadas o introduce una dirección de red. Esto cambia la conexión de la cola seleccionada."
+
+#: src/files/app_dialogs.zig
+msgid "Select one item to view its properties"
+msgstr "Selecciona un elemento para ver sus propiedades"
+
+#: src/files/open_with.zig
+msgid "Selected files"
+msgstr "Archivos seleccionados"
+
+#: src/delete_dialog.zig
+msgid "Selected items"
+msgstr "Elementos seleccionados"
+
+#: src/system_monitor/app.zig
+msgid "Selected process"
+msgstr "Proceso seleccionado"
+
+#: src/control_center/sections/services.zig
+msgid "Service"
+msgstr "Servicio"
+
+#: src/control_center/sections/services.zig
+msgid "Service changes are unlocked for this session."
+msgstr "Los cambios de servicios están desbloqueados para esta sesión."
+
+#: src/control_center/panel.zig
+msgid "Services"
+msgstr "Servicios"
+
+#: src/control_center/sections/services.zig
+msgid "Services taking at least 1 second to activate."
+msgstr "Servicios que tardan al menos 1 segundo en activarse."
+
+#: src/control_center/sections/users.zig
+msgid "Session"
+msgstr "Sesión"
+
+#: src/session/lock.zig
+msgid "Session ›"
+msgstr "Sesión ›"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Set Depth"
+msgstr "Establecer profundidad"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as my default"
+msgstr "Establecer como mi predeterminada"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as system default"
+msgstr "Establecer como predeterminado del sistema"
+
+#: src/start_menu/panel.zig
+msgid "Settings"
+msgstr "Ajustes"
+
+#: src/control_center/sections/appearance.zig
+msgid "Shadow"
+msgstr "Sombra"
+
+#: src/share_picker/client.zig
+msgid "Share screen"
+msgstr "Compartir pantalla"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sharp"
+msgstr "Nítido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shortcut already in use. Try another."
+msgstr "El atajo ya está en uso. Prueba otro."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Show Paired Devices"
+msgstr "Mostrar dispositivos emparejados"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show Trash"
+msgstr "Mostrar papelera"
+
+#: src/control_center/sections/users.zig
+msgid "Show all groups"
+msgstr "Mostrar todos los grupos"
+
+#: src/files/app_menu.zig
+msgid "Show changed files"
+msgstr "Mostrar archivos modificados"
+
+#: src/control_center/sections/users.zig
+msgid "Show curated"
+msgstr "Mostrar selección recomendada"
+
+#: src/control_center/sections/region.zig
+msgid "Show day"
+msgstr "Mostrar día"
+
+#: src/files/app_menu.zig
+msgid "Show full paths"
+msgstr "Mostrar rutas completas"
+
+#: src/files/app_menu.zig
+msgid "Show hidden files"
+msgstr "Mostrar archivos ocultos"
+
+#: src/files/app_torrents.zig
+msgid "Show in folder"
+msgstr "Mostrar en carpeta"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show launch splash"
+msgstr "Mostrar pantalla de inicio"
+
+#: src/control_center/sections/desktop.zig
+msgid "Show mini map"
+msgstr "Mostrar minimapa"
+
+#: src/control_center/sections/printers.zig
+msgid "Show more"
+msgstr "Mostrar más"
+
+#: src/control_center/sections/region.zig
+msgid "Show seconds"
+msgstr "Mostrar segundos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shut down the computer."
+msgstr "Apagar el equipo."
+
+#: src/control_center/sections/printers.zig
+msgid "Sides: {sides}"
+msgstr "Caras: {sides}"
+
+#: src/session/lock.zig
+msgid "Sign-in cancelled"
+msgstr "Inicio de sesión cancelado"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed"
+msgstr "No se pudo iniciar sesión"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed: {reason}"
+msgstr "No se pudo iniciar sesión: {reason}"
+
+#: src/control_center/sections/network.zig
+msgid "Sign-in required"
+msgstr "Se requiere iniciar sesión"
+
+#: src/session/greeter.zig
+msgid "Signing in…"
+msgstr "Iniciando sesión…"
+
+#: src/control_center/panel.zig
+msgid "Single-click file and folder icons"
+msgstr "Un solo clic en los iconos de archivos y carpetas"
+
+#: src/files/app_layout.zig
+msgid "Size"
+msgstr "Tamaño"
+
+#: src/control_center/sections/appearance.zig
+msgid "Size to screen"
+msgstr "Ajustar a la pantalla"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sized to fit your screen · move a slider to set your own"
+msgstr "Ajustado a tu pantalla · mueve un deslizador para personalizarlo"
+
+#: src/files/app_paint.zig
+msgid "Skip (S)"
+msgstr "Omitir (S)"
+
+#: src/control_center/sections/display.zig
+msgid "Sleep"
+msgstr "Suspender"
+
+#: src/system_monitor/app.zig
+msgid "Sleeping"
+msgstr "Durmiendo"
+
+#: src/control_center/sections/appearance.zig
+msgid "Slightly darken and mute windows that are not focused"
+msgstr "Oscurecer y atenuar ligeramente las ventanas sin foco"
+
+#: src/control_center/sections/services.zig
+msgid "Slow"
+msgstr "Lento"
+
+#: src/control_center/sections/appearance.zig
+msgid "Small"
+msgstr "Pequeño"
+
+#: src/files/app_menu.zig
+msgid "Smallest first"
+msgstr "Más pequeño primero"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a bottom quarter, or restore it."
+msgstr "Ajustar la ventana enfocada a un cuarto inferior o restaurarla."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a top quarter, or maximize it."
+msgstr "Ajustar la ventana enfocada a un cuarto superior o maximizarla."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the left half."
+msgstr "Ajustar la ventana enfocada a la mitad izquierda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the right half."
+msgstr "Ajustar la ventana enfocada a la mitad derecha."
+
+#: src/control_center/search_index.zig
+msgid "Snapped window gap"
+msgstr "Separación de ventanas ajustadas"
+
+#: src/files/properties.zig
+msgid "Socket"
+msgstr "Socket"
+
+#: src/control_center/sections/appearance.zig
+msgid "Soft"
+msgstr "Suave"
+
+#: src/control_center/sections/users.zig
+msgid "Some groups cannot be safely shown; group changes are disabled."
+msgstr "Algunos grupos no se pueden mostrar con seguridad; sus cambios están desactivados."
+
+#: src/systemd.zig
+msgid "Some startup times are unavailable."
+msgstr "Algunos tiempos de inicio no están disponibles."
+
+#: src/images/app.zig
+msgid "Space / Esc to close · Arrow keys to browse"
+msgstr "Espacio / Esc para cerrar · Flechas para navegar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Spawn"
+msgstr "Iniciar proceso"
+
+#: src/printing/options.zig
+msgid "Speed"
+msgstr "Velocidad"
+
+#: src/control_center/sections/users.zig
+msgid "Standard"
+msgstr "Estándar"
+
+#: src/control_center/sections/services.zig
+msgid "Start"
+msgstr "Iniciar"
+
+#: src/control_center/sections/printers.zig
+msgid "Start CUPS"
+msgstr "Iniciar CUPS"
+
+#: src/control_center/search_index.zig
+msgid "Start button gap"
+msgstr "Separación del botón de inicio"
+
+#: src/control_center/search_index.zig
+msgid "Start button icon size"
+msgstr "Tamaño del icono de inicio"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start button logo"
+msgstr "Logotipo del botón de inicio"
+
+#: src/files/app_torrents.zig
+msgid "Start download"
+msgstr "Iniciar descarga"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start menu"
+msgstr "Menú de inicio"
+
+#: src/control_center/search_index.zig
+msgid "Start menu height"
+msgstr "Altura del menú de inicio"
+
+#: src/control_center/search_index.zig
+msgid "Start menu logo"
+msgstr "Logotipo del menú de inicio"
+
+#: src/control_center/search_index.zig
+msgid "Start menu size"
+msgstr "Tamaño del menú de inicio"
+
+#: src/control_center/sections/services.zig
+msgid "Start mode"
+msgstr "Modo de inicio"
+
+#: src/control_center/welcome.zig
+msgid "Start using RediWM"
+msgstr "Empezar a usar RediWM"
+
+#: src/session/greeter.zig
+msgid "Starting session…"
+msgstr "Iniciando sesión…"
+
+#: src/systemd.zig
+msgid "Startup setting saved. Running status is unchanged."
+msgstr "Ajuste de inicio guardado. El estado actual no cambia."
+
+#: src/control_center/sections/services.zig
+msgid "Startup settings apply at boot. Deferred is coming later."
+msgstr "Los ajustes de inicio se aplican al arrancar. El inicio pospuesto llegará más adelante."
+
+#: src/control_center/sections/services.zig
+msgid "Startup time"
+msgstr "Tiempo de inicio"
+
+#: src/system_monitor/app.zig
+msgid "State"
+msgstr "Estado"
+
+#: src/printing/cups.zig
+msgid "State unavailable"
+msgstr "Estado no disponible"
+
+#: src/control_center/sections/network.zig
+msgid "Status"
+msgstr "Estado"
+
+#: src/control_center/sections/services.zig
+msgid "Stop"
+msgstr "Detener"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Stop Searching"
+msgstr "Detener búsqueda"
+
+#: src/control_center/sections/printers.zig
+msgid "Stop accepting jobs"
+msgstr "Dejar de aceptar trabajos"
+
+#: src/files/app_torrents.zig
+msgid "Stop seeding"
+msgstr "Dejar de compartir"
+
+#: src/printing/cups.zig
+msgid "Stopped"
+msgstr "Detenido"
+
+#: src/control_center/sections/appearance.zig
+msgid "Strong"
+msgstr "Fuerte"
+
+#: src/control_center/sections/printers.zig
+msgid "Suggested supported resolution: {x} × {y} dpi"
+msgstr "Resolución compatible sugerida: {x} × {y} ppp"
+
+#: src/control_center/sections/region.zig
+msgid "Sunday"
+msgstr "Domingo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."
+msgstr "Super+Q abre el terminal; Super+M abre Energía. Las flechas cambian el foco; los números cambian de espacio de trabajo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend"
+msgstr "Suspender"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend Auto"
+msgstr "Suspender automáticamente"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Down"
+msgstr "Intercambiar abajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Left"
+msgstr "Intercambiar izquierda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Right"
+msgstr "Intercambiar derecha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Up"
+msgstr "Intercambiar arriba"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile down."
+msgstr "Intercambiar la ventana en mosaico enfocada hacia abajo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile left."
+msgstr "Intercambiar la ventana en mosaico enfocada hacia la izquierda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile right."
+msgstr "Intercambiar la ventana en mosaico enfocada hacia la derecha."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile up."
+msgstr "Intercambiar la ventana en mosaico enfocada hacia arriba."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next power profile."
+msgstr "Cambiar al siguiente perfil de energía."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next window."
+msgstr "Cambiar a la ventana siguiente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the previous window."
+msgstr "Cambiar a la ventana anterior."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to workspace {n}."
+msgstr "Cambiar al espacio de trabajo {n}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch workspace."
+msgstr "Cambiar espacio de trabajo."
+
+#: src/files/app_dialogs.zig
+msgid "Switched branch"
+msgstr "Rama cambiada"
+
+#: src/files/app_dialogs.zig
+msgid "Switched to {name}"
+msgstr "Se cambió a {name}"
+
+#: src/files/properties.zig
+msgid "Symbolic link"
+msgstr "Enlace simbólico"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "System"
+msgstr "Sistema"
+
+#: src/system_monitor/app.zig
+msgid "System Monitor"
+msgstr "Monitor del sistema"
+
+#: src/printing/admin.zig
+msgid "System bus connection lost. Reopen Printers to reconnect."
+msgstr "Se perdió la conexión con el bus del sistema. Reabre Impresoras para reconectar."
+
+#: src/printing/admin.zig
+msgid "System bus disconnected during printer administration."
+msgstr "El bus del sistema se desconectó durante la administración de impresoras."
+
+#: src/control_center/sections/appearance.zig
+msgid "System default"
+msgstr "Predeterminado del sistema"
+
+#: src/control_center/sections/services.zig
+msgid "Systemd is unavailable."
+msgstr "Systemd no está disponible."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Take shortcuts back from a virtual machine or remote desktop."
+msgstr "Recuperar los atajos de una máquina virtual o escritorio remoto."
+
+#: src/control_center/sections/users.zig
+msgid "Takes effect at next boot. The keyring will not unlock automatically."
+msgstr "Se aplica en el próximo arranque. El llavero no se desbloqueará automáticamente."
+
+#: src/control_center/search_index.zig
+msgid "Tap to click"
+msgstr "Tocar para hacer clic"
+
+#: src/files/app_dialogs.zig
+msgid "Target name already exists"
+msgstr "El nombre de destino ya existe"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar"
+msgstr "Barra de tareas"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar clock. The date uses your regional format."
+msgstr "Reloj de la barra de tareas. La fecha usa tu formato regional."
+
+#: src/control_center/search_index.zig
+msgid "Taskbar corner radius"
+msgstr "Radio de esquinas de la barra de tareas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar edge gap"
+msgstr "Separación del borde de la barra de tareas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar gap from edge"
+msgstr "Separación entre la barra de tareas y el borde"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar items"
+msgstr "Elementos de la barra de tareas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar length"
+msgstr "Longitud de la barra de tareas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar position"
+msgstr "Posición de la barra de tareas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar sections"
+msgstr "Secciones de la barra de tareas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar size"
+msgstr "Tamaño de la barra de tareas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar theme"
+msgstr "Tema de la barra de tareas"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar, calendar, lock screen and new apps."
+msgstr "Barra de tareas, calendario, pantalla de bloqueo y aplicaciones nuevas."
+
+#: src/control_center/sections/appearance.zig
+msgid "Temporarily show the selected window at full size; keep desktop zoom."
+msgstr "Mostrar temporalmente la ventana seleccionada a tamaño completo; mantener la ampliación del escritorio."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Terminal"
+msgstr "Terminal"
+
+#: src/files/app_terminal.zig
+msgid "Terminal helper is unavailable"
+msgstr "El asistente del terminal no está disponible"
+
+#: src/control_center/search_index.zig
+msgid "Terminal opacity"
+msgstr "Opacidad del terminal"
+
+#: src/control_center/sections/appearance.zig
+msgid "Terminal opacity (new windows)"
+msgstr "Opacidad del terminal (ventanas nuevas)"
+
+#: src/files/app_terminal.zig
+msgid "Terminal paste exceeds the available input queue"
+msgstr "El texto pegado supera la cola de entrada disponible del terminal"
+
+#: src/system_monitor/app.zig
+msgid "Termination requested"
+msgstr "Terminación solicitada"
+
+#: src/control_center/sections/printers.zig
+msgid "Test without the driver…"
+msgstr "Probar sin el controlador…"
+
+#: src/editor/app.zig
+msgid "Text file"
+msgstr "Archivo de texto"
+
+#: src/editor/app.zig
+msgid "Text files are limited to 4 GiB."
+msgstr "Los archivos de texto tienen un límite de 4 GiB."
+
+#: src/editor/app.zig
+msgid "Text not found"
+msgstr "No se encontró el texto"
+
+#: src/images/app.zig
+msgid "That file already exists. Choose another name."
+msgstr "Ese archivo ya existe. Elige otro nombre."
+
+#: src/editor/app.zig
+msgid "That file is open in another tab. Choose a different name."
+msgstr "Ese archivo está abierto en otra pestaña. Elige otro nombre."
+
+#: src/files/appimage.zig
+msgid "The AppImage contains more than one application launcher"
+msgstr "El AppImage contiene más de un lanzador de aplicaciones"
+
+#: src/files/appimage.zig
+msgid "The AppImage has no usable application launcher"
+msgstr "El AppImage no contiene un lanzador utilizable"
+
+#: src/printing/ladder.zig
+msgid "The CUPS USB backend uses libusb; a usblp node is not required."
+msgstr "El servicio USB de CUPS usa libusb; no requiere un nodo usblp."
+
+#: src/printing/cups.zig
+msgid "The CUPS client configuration could not be read or is invalid."
+msgstr "No se pudo leer la configuración del cliente CUPS o no es válida."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "The RediWM block in gtk.css is incomplete. Repair it before applying colors."
+msgstr "El bloque de RediWM en gtk.css está incompleto. Repáralo antes de aplicar los colores."
+
+#: src/printing/ladder.zig
+msgid "The available queue settings match the supplied media or resolution expectations."
+msgstr "Los ajustes disponibles de la cola coinciden con el papel o la resolución esperados."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen stays on."
+msgstr "La pantalla integrada permanece encendida."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen turns off while another display is connected."
+msgstr "La pantalla integrada se apaga mientras hay otra pantalla conectada."
+
+#: src/printing/ladder.zig
+msgid "The character-device path used by this queue is missing."
+msgstr "Falta la ruta del dispositivo de caracteres que usa esta cola."
+
+#: src/control_center/sections/printers.zig
+msgid "The current printer resolution is unavailable."
+msgstr "La resolución actual de la impresora no está disponible."
+
+#: src/files/main.zig
+msgid "The destination folder is unavailable"
+msgstr "La carpeta de destino no está disponible"
+
+#: src/printing/ladder.zig
+msgid "The device address matches; successful communication has not been confirmed."
+msgstr "La dirección del dispositivo coincide; no se ha confirmado la comunicación correcta."
+
+#: src/pdf/main.zig
+msgid "The document could not be printed."
+msgstr "No se pudo imprimir el documento."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver did not report the requested value. Review its settings before printing."
+msgstr "El controlador no indicó el valor solicitado. Revisa sus ajustes antes de imprimir."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver reports label media."
+msgstr "El controlador indica papel de etiquetas."
+
+#: src/files/main.zig
+msgid "The drop timed out"
+msgstr "El tiempo de espera al soltar se agotó"
+
+#: src/files/main.zig
+msgid "The dropped list failed or exceeded 1 MiB"
+msgstr "La lista de elementos soltados falló o superó 1 MiB"
+
+#: src/files/app_terminal.zig
+msgid "The dropped paths are invalid or too long"
+msgstr "Las rutas de los elementos soltados no son válidas o son demasiado largas"
+
+#: src/images/app.zig
+msgid "The file changed. Please try again."
+msgstr "El archivo cambió. Inténtalo de nuevo."
+
+#: src/printing/ladder.zig
+msgid "The file type of the queue's device-node path could not be read."
+msgstr "No se pudo leer el tipo de archivo del nodo de dispositivo de la cola."
+
+#: src/images/app.zig
+msgid "The filename is too long."
+msgstr "El nombre del archivo es demasiado largo."
+
+#: src/printing/ladder.zig
+msgid "The last job has not completed."
+msgstr "El último trabajo no se ha completado."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a backend connection problem."
+msgstr "El último trabajo indica un problema de conexión del servicio."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a document or filter failure."
+msgstr "El último trabajo indica un fallo de documento o filtro."
+
+#: src/printing/ladder.zig
+msgid "The last job was aborted or stopped."
+msgstr "El último trabajo se anuló o detuvo."
+
+#: src/printing/ladder.zig
+msgid "The last job was canceled."
+msgstr "El último trabajo se canceló."
+
+#: src/printing/ladder.zig
+msgid "The matching USB device has no printer-class interface."
+msgstr "El dispositivo USB correspondiente no tiene una interfaz de clase impresora."
+
+#: src/printing/ladder.zig
+msgid "The matching USB printer was not found."
+msgstr "No se encontró la impresora USB correspondiente."
+
+#: src/printing/ladder.zig
+msgid "The matching device-node file type could not be read."
+msgstr "No se pudo leer el tipo de archivo del nodo correspondiente."
+
+#: src/printing/ladder.zig
+msgid "The network printer did not answer."
+msgstr "La impresora de red no respondió."
+
+#: src/printing/ladder.zig
+msgid "The printer answered an IPP request."
+msgstr "La impresora respondió a una solicitud IPP."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer change could not be requested."
+msgstr "No se pudo solicitar el cambio de impresora."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer no longer exists. Refresh before retrying."
+msgstr "La impresora ya no existe. Actualiza antes de reintentar."
+
+#: src/printing/cups.zig
+msgid "The printer or job no longer exists. Refresh the list."
+msgstr "La impresora o el trabajo ya no existe. Actualiza la lista."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is not accepting new jobs."
+msgstr "La cola de impresión no acepta trabajos nuevos."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is stopped."
+msgstr "La cola de impresión está detenida."
+
+#: src/printing/cups.zig
+msgid "The queue changed, but personal preferences could not be moved. Check your default printer."
+msgstr "La cola cambió, pero no se pudieron mover las preferencias personales. Comprueba tu impresora predeterminada."
+
+#: src/printing/ladder.zig
+msgid "The queue could not be checked without a CUPS response."
+msgstr "No se pudo comprobar la cola sin una respuesta de CUPS."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, but its state or acceptance of jobs is unknown."
+msgstr "La cola existe, pero se desconocen su estado o si acepta trabajos."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, is enabled, and accepts jobs."
+msgstr "La cola existe, está activada y acepta trabajos."
+
+#: src/control_center/sections/printers.zig
+msgid "The queue identifier change could not be verified. Review the printer list before retrying."
+msgstr "No se pudo verificar el cambio de identificador. Revisa la lista de impresoras antes de reintentar."
+
+#: src/printing/ladder.zig
+msgid "The queue resolution differs from the expected resolution."
+msgstr "La resolución de la cola difiere de la esperada."
+
+#: src/printing/ladder.zig
+msgid "The queue's character device exists; backend access has not been tested."
+msgstr "El dispositivo de caracteres de la cola existe; no se ha probado el acceso del servicio."
+
+#: src/printing/ladder.zig
+msgid "The queue's default media differs from the expected media."
+msgstr "El papel predeterminado de la cola difiere del esperado."
+
+#: src/printing/ladder.zig
+msgid "The queue's device address does not match the selected printer."
+msgstr "La dirección del dispositivo de la cola no coincide con la impresora seleccionada."
+
+#: src/printing/ladder.zig
+msgid "The queue's device-node path is a regular file or another wrong file type."
+msgstr "La ruta del nodo de la cola es un archivo normal o de otro tipo incorrecto."
+
+#: src/control_center/sections/printers.zig
+msgid "The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."
+msgstr "La muestra sin procesar se imprimió, pero la prueba con controlador no: revisa el controlador, los filtros, el papel y la resolución."
+
+#: src/printing/ladder.zig
+msgid "The selected queue was not found."
+msgstr "No se encontró la cola seleccionada."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable."
+msgstr "El gestor de servicios del sistema no está disponible."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable; start CUPS using your distribution's service tools."
+msgstr "El gestor de servicios no está disponible; inicia CUPS con las herramientas de tu distribución."
+
+#: src/control_center/search_index.zig
+msgid "Theme"
+msgstr "Tema"
+
+#: src/files/worker.zig
+msgid "Theme installed. Choose it in Settings → Appearance."
+msgstr "Tema instalado. Elígelo en Ajustes → Apariencia."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed."
+msgstr "La operación del tema falló."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed: {reason}"
+msgstr "La operación del tema falló: {reason}"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme packs"
+msgstr "Paquetes de temas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Themes & colours"
+msgstr "Temas y colores"
+
+#: src/printing/cups.zig
+msgid "This CUPS server does not support the requested operation."
+msgstr "Este servidor CUPS no admite la operación solicitada."
+
+#: src/printing/ladder.zig
+msgid "This backend needs a character device, but no matching node was found."
+msgstr "Este servicio necesita un dispositivo de caracteres, pero no se encontró un nodo correspondiente."
+
+#: src/delete_dialog.zig
+msgid "This cannot be undone."
+msgstr "Esta acción no se puede deshacer."
+
+#: src/control_center/sections/printers.zig
+msgid "This capability has no selectable queue default in the current driver."
+msgstr "Esta función no tiene un valor predeterminado de cola seleccionable en el controlador actual."
+
+#: src/printing/ladder.zig
+msgid "This connection has no direct presence check."
+msgstr "Esta conexión no tiene comprobación directa de presencia."
+
+#: src/control_center/sections/printers.zig
+msgid "This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."
+msgstr "Este controlador no permite configurar la resolución sugerida en la cola. Revisa sus opciones de calidad o controlador."
+
+#: src/editor/app.zig
+msgid "This file contains binary data and cannot be edited as text."
+msgstr "Este archivo contiene datos binarios y no se puede editar como texto."
+
+#: src/editor/app.zig
+msgid "This file has multiple hard links. Use Save As to create a separate copy."
+msgstr "Este archivo tiene varios enlaces físicos. Usa Guardar como para crear una copia independiente."
+
+#: src/editor/app.zig
+msgid "This file is not valid UTF-8 text."
+msgstr "Este archivo no es texto UTF-8 válido."
+
+#: src/files/app_paint.zig
+msgid "This folder is empty"
+msgstr "Esta carpeta está vacía"
+
+#: src/images/app.zig
+msgid "This image has unsaved changes."
+msgstr "Esta imagen tiene cambios sin guardar."
+
+#: src/control_center/sections/printers.zig
+msgid "This is a label printer"
+msgstr "Esta es una impresora de etiquetas"
+
+#: src/control_center/sections/display.zig
+msgid "This output does not advertise editable display modes."
+msgstr "Esta salida no ofrece modos de pantalla editables."
+
+#: src/printing/cups.zig
+msgid "This print server requires an unsupported encrypted or authenticated connection."
+msgstr "Este servidor de impresión requiere una conexión cifrada o autenticada no compatible."
+
+#: src/printing/admin.zig
+msgid "This printer belongs to a CUPS class. Manage its class membership before renaming it here."
+msgstr "Esta impresora pertenece a una clase CUPS. Gestiona su pertenencia a la clase antes de renombrarla aquí."
+
+#: src/control_center/sections/printers.zig
+msgid "This range has no selectable queue setting in the current driver."
+msgstr "Este intervalo no tiene un ajuste de cola seleccionable en el controlador actual."
+
+#: src/files/git.zig
+msgid "This repository runs its own programs; switch branches in a terminal"
+msgstr "Este repositorio ejecuta sus propios programas; cambia de rama en un terminal"
+
+#: src/network/manager.zig
+msgid "This security type needs a network configuration tool."
+msgstr "Este tipo de seguridad necesita una herramienta de configuración de red."
+
+#: src/control_center/panel.zig
+msgid "This setting is unavailable on this device or in the current mode."
+msgstr "Este ajuste no está disponible en este dispositivo o en el modo actual."
+
+#: src/files/app_torrents.zig
+msgid "This transfer is no longer available."
+msgstr "Esta transferencia ya no está disponible."
+
+#: src/control_center/sections/region.zig
+msgid "Thursday"
+msgstr "Jueves"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Down"
+msgstr "Ajustar abajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Left"
+msgstr "Ajustar izquierda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Right"
+msgstr "Ajustar derecha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Up"
+msgstr "Ajustar arriba"
+
+#: src/control_center/welcome.zig
+msgid "Tiling"
+msgstr "Mosaico"
+
+#: src/control_center/sections/region.zig
+msgid "Time"
+msgstr "Hora"
+
+#: src/control_center/sections/region.zig
+msgid "Time & Date"
+msgstr "Fecha y hora"
+
+#: src/control_center/sections/region.zig
+msgid "Time zone"
+msgstr "Zona horaria"
+
+#: src/control_center/search_index.zig
+msgid "Titlebar height"
+msgstr "Altura de la barra de título"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Floating"
+msgstr "Alternar flotante"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Fullscreen"
+msgstr "Alternar pantalla completa"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Launcher"
+msgstr "Alternar lanzador"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Maximize"
+msgstr "Alternar maximización"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Power Menu"
+msgstr "Alternar menú de energía"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Split"
+msgstr "Alternar división"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Workspace Tiling"
+msgstr "Alternar mosaico del espacio de trabajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle automatic tiling for the current workspace."
+msgstr "Alternar el mosaico automático del espacio de trabajo actual."
+
+#: src/pdf/app_paint.zig
+msgid "Toggle sidebar"
+msgstr "Alternar barra lateral"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle the focused window between floating and automatic tiling."
+msgstr "Alternar la ventana enfocada entre flotante y mosaico automático."
+
+#: src/control_center/sections/appearance.zig
+msgid "Top"
+msgstr "Arriba"
+
+#: src/files/app_torrents.zig
+msgid "Torrent file or magnet link"
+msgstr "Archivo torrent o enlace magnet"
+
+#: src/control_center/search_index.zig
+msgid "Touchpad speed"
+msgstr "Velocidad del panel táctil"
+
+#: src/files/app_torrents.zig
+msgid "Transfer"
+msgstr "Transferir"
+
+#: src/files/torrents.zig
+msgid "Transfer request could not be sent. Please retry."
+msgstr "No se pudo enviar la solicitud de transferencia. Inténtalo de nuevo."
+
+#: src/files/ops.zig
+msgid "Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Transferidos: {completed}. Omitidos: {skipped}. Fallidos: {failed}. Pendientes: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Transferring {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Transfiriendo {current}/{total}: {name}... (Esc para cancelar)"
+
+#: src/files/app_paint.zig
+msgid "Transferring..."
+msgstr "Transfiriendo..."
+
+#: src/files/app.zig
+msgid "Transfers"
+msgstr "Transferencias"
+
+#: src/files/torrents.zig
+msgid "Transfers disconnected. Reopen Transfers to reconnect."
+msgstr "Transferencias se desconectó. Vuelve a abrirlo para reconectar."
+
+#: src/files/torrents.zig
+msgid "Transfers is disconnected. Reopen Transfers to reconnect."
+msgstr "Transferencias está desconectado. Vuelve a abrirlo para reconectar."
+
+#: src/files/app_torrents.zig
+msgid "Transfers needs attention"
+msgstr "Transferencias requiere atención"
+
+#: src/control_center/sections/display.zig
+msgid "Transform"
+msgstr "Transformar"
+
+#: src/desktop/watcher.zig
+msgid "Trash"
+msgstr "Papelera"
+
+#: src/files/app_fileops.zig
+msgid "Trash emptied"
+msgstr "Papelera vaciada"
+
+#: src/images/app.zig
+msgid "Trash is unavailable: install gio to use it."
+msgstr "Papelera no disponible: instala gio para usarla."
+
+#: src/files/app_fileops.zig
+msgid "Trash unavailable (gio not installed)"
+msgstr "Papelera no disponible (gio no está instalado)"
+
+#: src/control_center/search_index.zig
+msgid "Treble"
+msgstr "Agudos"
+
+#: src/control_center/sections/printers.zig
+msgid "Troubleshooting"
+msgstr "Resolución de problemas"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Trusted Device"
+msgstr "Dispositivo de confianza"
+
+#: src/control_center/search.zig
+msgid "Try a setting name, such as volume, wallpaper or scroll."
+msgstr "Prueba el nombre de un ajuste, como volumen, fondo o desplazamiento."
+
+#: src/control_center/sections/printers.zig
+msgid "Try one language sample…"
+msgstr "Probar una muestra de idioma…"
+
+#: src/control_center/sections/region.zig
+msgid "Tuesday"
+msgstr "Martes"
+
+#: src/control_center/sections/display.zig
+msgid "Turn off screen"
+msgstr "Apagar pantalla"
+
+#: src/control_center/sections/network.zig
+msgid "Turned off"
+msgstr "Apagado"
+
+#: src/printing/options.zig
+msgid "Two-sided printing"
+msgstr "Impresión a doble cara"
+
+#: src/printing/options.zig
+msgid "Two-sided, long edge"
+msgstr "Doble cara, borde largo"
+
+#: src/printing/options.zig
+msgid "Two-sided, short edge"
+msgstr "Doble cara, borde corto"
+
+#: src/files/app_layout.zig
+msgid "Type"
+msgstr "Tipo"
+
+#: src/desktop/app_paint.zig
+msgid "Type to search applications — Enter chooses"
+msgstr "Escribe para buscar aplicaciones — Intro elige"
+
+#: src/start_menu/panel.zig
+msgid "Type to search…"
+msgstr "Escribe para buscar…"
+
+#: src/files/app_menu.zig
+msgid "Type: A to Z"
+msgstr "Tipo: de A a Z"
+
+#: src/files/app_menu.zig
+msgid "Type: Z to A"
+msgstr "Tipo: de Z a A"
+
+#: src/control_center/sections/appearance.zig
+msgid "UI font"
+msgstr "Fuente de la interfaz"
+
+#: src/printing/ladder.zig
+msgid "USB presence or queue-to-device identity could not be established."
+msgstr "No se pudo establecer la presencia USB ni la correspondencia entre cola y dispositivo."
+
+#: src/files/app_dialogs.zig
+msgid "Unable to prepare deletion"
+msgstr "No se pudo preparar la eliminación"
+
+#: src/session/lock.zig
+msgid "Unable to unlock. Try again."
+msgstr "No se pudo desbloquear. Inténtalo de nuevo."
+
+#: src/battery_popup.zig
+msgid "Unavailable"
+msgstr "No disponible"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Unavailable: {name}"
+msgstr "No disponible: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo"
+msgstr "Deshacer"
+
+#: src/images/app.zig
+msgid "Undo edits"
+msgstr "Deshacer ediciones"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo the last layout change."
+msgstr "Deshacer el último cambio de disposición."
+
+#: src/control_center/sections/printers.zig
+msgid "Unknown"
+msgstr "Desconocido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Unknown key"
+msgstr "Tecla desconocida"
+
+#: src/control_center/sections/services.zig
+msgid "Unlock"
+msgstr "Desbloquear"
+
+#: src/control_center/sections/users.zig
+msgid "Unlock to make account changes."
+msgstr "Desbloquea para cambiar las cuentas."
+
+#: src/control_center/sections/services.zig
+msgid "Unlock to make service changes."
+msgstr "Desbloquea para cambiar los servicios."
+
+#: src/network/manager.zig
+msgid "Unmanaged"
+msgstr "No gestionado"
+
+#: src/files/app_model.zig
+msgid "Unpin"
+msgstr "Desfijar"
+
+#: src/start_menu/panel.zig
+msgid "Unpin an application first (five pins maximum)."
+msgstr "Desfija primero una aplicación (máximo cinco)."
+
+#: src/start_menu/panel.zig
+msgid "Unpin application"
+msgstr "Desfijar aplicación"
+
+#: src/taskbar/window_menu.zig
+msgid "Unpin from dock"
+msgstr "Desfijar del dock"
+
+#: src/images/app.zig
+msgid "Unsaved edits will be discarded."
+msgstr "Se descartarán las ediciones sin guardar."
+
+#: src/images/app.zig
+msgid "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo"
+msgstr "Ediciones sin guardar · Ctrl+S: guardar · Ctrl+Z: deshacer"
+
+#: src/system_monitor/app.zig
+msgid "Unsaved work will be lost."
+msgstr "Se perderá el trabajo sin guardar."
+
+#: src/images/app.zig
+msgid "Unsupported image, missing decoder, or file unavailable"
+msgstr "Imagen no compatible, falta el decodificador o archivo no disponible"
+
+#: src/editor/app.zig
+msgid "Untitled"
+msgstr "Sin título"
+
+#: src/files/app_torrents.zig
+msgid "Up"
+msgstr "Subir"
+
+#: src/network/manager.zig
+msgid "Updating Wi-Fi…"
+msgstr "Actualizando Wi-Fi…"
+
+#: src/files/app_layout.zig
+msgid "Upload"
+msgstr "Subir"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 1 MiB/s"
+msgstr "Subida: 1 MiB/s"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 128 KiB/s"
+msgstr "Subida: 128 KiB/s"
+
+#: src/power_menu.zig
+msgid "Uptime unavailable"
+msgstr "Tiempo de actividad no disponible"
+
+#: src/power_menu.zig
+msgid "Uptime {hours}h {minutes}m"
+msgstr "Tiempo de actividad: {hours}h {minutes}min"
+
+#: src/control_center/sections/region.zig
+msgid "Use 24-hour time"
+msgstr "Usar formato de 24 horas"
+
+#: src/network/manager.zig
+msgid "Use 8–63 characters or a 64-digit hex key."
+msgstr "Usa entre 8 y 63 caracteres o una clave hexadecimal de 64 dígitos."
+
+#: src/images/app.zig
+msgid "Use a .png filename to save a PNG copy."
+msgstr "Usa un nombre terminado en .png para guardar una copia PNG."
+
+#: src/control_center/folder_picker.zig
+msgid "Use folder"
+msgstr "Usar carpeta"
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue identifier."
+msgstr "Usa letras, números, puntos, guiones o guiones bajos para el identificador de cola."
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue name."
+msgstr "Usa letras, números, puntos, guiones o guiones bajos para el nombre de cola."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Use logo"
+msgstr "Usar logotipo"
+
+#: src/control_center/sections/printers.zig
+msgid "Use suggested resolution"
+msgstr "Usar resolución sugerida"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Used for desktop folders, app shortcuts and apps that run in a terminal."
+msgstr "Se usa para carpetas del escritorio, atajos de aplicaciones y aplicaciones ejecutadas en un terminal."
+
+#: src/control_center/sections/users.zig
+msgid "User"
+msgstr "Usuario"
+
+#: src/control_center/sections/printers.zig
+msgid "Username"
+msgstr "Nombre de usuario"
+
+#: src/control_center/panel.zig
+msgid "Users"
+msgstr "Usuarios"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Uses the main theme. Apply again after changing it; restart apps to see the colors."
+msgstr "Usa el tema principal. Vuelve a aplicar tras cambiarlo; reinicia las aplicaciones para ver los colores."
+
+#: src/control_center/sections/desktop.zig
+msgid "Vertical Pan"
+msgstr "Desplazamiento vertical"
+
+#: src/files/app.zig
+msgid "Videos"
+msgstr "Vídeos"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "View its connection, battery and device settings."
+msgstr "Consulta la conexión, la batería y los ajustes del dispositivo."
+
+#: src/files/app_places.zig
+msgid "Volume"
+msgstr "Volumen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Down"
+msgstr "Bajar volumen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Mute"
+msgstr "Silenciar volumen"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Up"
+msgstr "Subir volumen"
+
+#: src/control_center/panel.zig
+msgid "Volume, microphones and output devices."
+msgstr "Volumen, micrófonos y dispositivos de salida."
+
+#: src/control_center/sections/network.zig
+msgid "WPA2 / WPA3 Personal"
+msgstr "WPA2 / WPA3 Personal"
+
+#: src/control_center/sections/network.zig
+msgid "WPA3 Personal"
+msgstr "WPA3 Personal"
+
+#: src/control_center/sections/printers.zig
+msgid "Wait for the current printer operation to finish."
+msgstr "Espera a que termine la operación de impresora actual."
+
+#: src/polkit/dialog.zig
+msgid "Waiting for authentication service…"
+msgstr "Esperando el servicio de autenticación…"
+
+#: src/control_center/sections/services.zig
+msgid "Waiting for authentication…"
+msgstr "Esperando autenticación…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Waiting for the device…"
+msgstr "Esperando el dispositivo…"
+
+#: src/polkit/dialog.zig
+msgid "Waiting…"
+msgstr "Esperando…"
+
+#: src/control_center/search_index.zig
+msgid "Wallpaper"
+msgstr "Fondo de pantalla"
+
+#: src/control_center/sections/appearance.zig
+msgid "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."
+msgstr "Aviso: el indicador de captura está oculto. La grabación y la pantalla compartida pueden continuar sin indicador visible ni botón para detenerlas. No se recomienda ocultarlo."
+
+#: src/control_center/sections/network.zig
+msgid "Weak"
+msgstr "Débil"
+
+#: src/control_center/sections/region.zig
+msgid "Wednesday"
+msgstr "Miércoles"
+
+#: src/control_center/welcome.zig
+msgid "Welcome to RediWM"
+msgstr "Bienvenido a RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "When the lid is closed"
+msgstr "Al cerrar la tapa"
+
+#: src/control_center/sections/display.zig
+msgid "Where desktop icons appear."
+msgstr "Dónde aparecen los iconos del escritorio."
+
+#: src/control_center/sections/appearance.zig
+msgid "While dragging a file out of it"
+msgstr "Al arrastrar un archivo hacia fuera"
+
+#: src/control_center/search_index.zig
+msgid "Wi-Fi"
+msgstr "Wi-Fi"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is disabled by the hardware switch"
+msgstr "Wi-Fi está desactivado por el interruptor físico"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is turned off"
+msgstr "Wi-Fi está desactivado"
+
+#: src/network/manager.zig
+msgid "Wi-Fi network"
+msgstr "Red Wi-Fi"
+
+#: src/network/manager.zig
+msgid "Wi-Fi request failed. Check credentials and permissions."
+msgstr "La solicitud Wi-Fi falló. Comprueba las credenciales y los permisos."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Window Management"
+msgstr "Gestión de ventanas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window and panel transitions"
+msgstr "Transiciones de ventanas y paneles"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome darkness"
+msgstr "Oscurecimiento del marco de ventana"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome height"
+msgstr "Altura del marco de ventana"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome opacity"
+msgstr "Opacidad del marco de ventana"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window control gap"
+msgstr "Separación de controles de ventana"
+
+#: src/control_center/search_index.zig
+msgid "Window control spacing"
+msgstr "Espacio entre controles de ventana"
+
+#: src/control_center/search_index.zig
+msgid "Window darkness"
+msgstr "Oscurecimiento de ventanas"
+
+#: src/control_center/search_index.zig
+msgid "Window item gap"
+msgstr "Separación de elementos de ventana"
+
+#: src/control_center/search_index.zig
+msgid "Window item width"
+msgstr "Ancho de elementos de ventana"
+
+#: src/control_center/search_index.zig
+msgid "Window opacity"
+msgstr "Opacidad de ventanas"
+
+#: src/control_center/search_index.zig
+msgid "Window shadow"
+msgstr "Sombra de ventanas"
+
+#: src/control_center/search_index.zig
+msgid "Window spacing"
+msgstr "Espacio entre ventanas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window switching zoom"
+msgstr "Ampliación al cambiar de ventana"
+
+#: src/control_center/search_index.zig
+msgid "Window tabs"
+msgstr "Pestañas de ventana"
+
+#: src/control_center/sections/appearance.zig
+msgid "Windows"
+msgstr "Ventanas"
+
+#: src/control_center/panel.zig
+msgid "Wired and wireless connections."
+msgstr "Conexiones cableadas e inalámbricas."
+
+#: src/control_center/sections/network.zig
+msgid "Wireless connections"
+msgstr "Conexiones inalámbricas"
+
+#: src/editor/app.zig
+msgid "Word Wrap"
+msgstr "Ajuste de línea"
+
+#: src/images/app.zig
+msgid "Working…"
+msgstr "Procesando…"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace"
+msgstr "Espacio de trabajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Next"
+msgstr "Espacio de trabajo siguiente"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Prev"
+msgstr "Espacio de trabajo anterior"
+
+#: src/control_center/search_index.zig
+msgid "Workspace layout"
+msgstr "Disposición del espacio de trabajo"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace {n}"
+msgstr "Espacio de trabajo {n}"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspaces"
+msgstr "Espacios de trabajo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspaces · Hyprland-style preset"
+msgstr "Espacios de trabajo · Preajuste al estilo de Hyprland"
+
+#: src/files/properties.zig
+msgid "Write"
+msgstr "Escribir"
+
+#: src/control_center/search_index.zig
+msgid "Xwayland scale"
+msgstr "Escala de Xwayland"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland scale (global)"
+msgstr "Escala de Xwayland (global)"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Changes require a compositor restart."
+msgstr "Xwayland: {active}× activo. Los cambios requieren reiniciar el compositor."
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Restart the compositor to apply {pending}×."
+msgstr "Xwayland: {active}× activo. Reinicia el compositor para aplicar {pending}×."
+
+#: src/control_center/sections/users.zig
+msgid "You"
+msgstr "Tú"
+
+#: src/control_center/welcome.zig
+msgid "You can change these later in Settings."
+msgstr "Puedes cambiarlo después en Ajustes."
+
+#: src/delete_dialog.zig
+msgid "You can restore it later from Trash."
+msgstr "Puedes restaurarlo después desde la papelera."
+
+#: src/images/app.zig
+msgid "You can restore the file from Trash."
+msgstr "Puedes restaurar el archivo desde la papelera."
+
+#: src/delete_dialog.zig
+msgid "You can restore them later from Trash."
+msgstr "Puedes restaurarlos después desde la papelera."
+
+#: src/control_center/sections/network.zig
+msgid "You're connected to this network"
+msgstr "Estás conectado a esta red"
+
+#: src/control_center/sections/network.zig
+msgid "You're online."
+msgstr "Tienes conexión."
+
+#: src/control_center/sections/printers.zig
+msgid "Your default printer"
+msgstr "Tu impresora predeterminada"
+
+#: src/control_center/sections/desktop.zig
+msgid "Your desktop panning area."
+msgstr "El área de desplazamiento de tu escritorio."
+
+#: src/control_center/panel.zig
+msgid "Your language, regional formats and calendar preferences."
+msgstr "Tu idioma, formatos regionales y preferencias del calendario."
+
+#: src/editor/app.zig
+msgid "Your unsaved changes will be lost if you discard them."
+msgstr "Los cambios sin guardar se perderán si los descartas."
+
+#: src/system_monitor/app.zig
+msgid "Zombie"
+msgstr "Zombi"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom In"
+msgstr "Ampliar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Out"
+msgstr "Reducir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Reset"
+msgstr "Restablecer ampliación"
+
+#: src/images/app.zig
+msgid "Zoom in"
+msgstr "Ampliar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom into the desktop canvas."
+msgstr "Ampliar el lienzo del escritorio."
+
+#: src/images/app.zig
+msgid "Zoom out"
+msgstr "Reducir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom out of the desktop canvas."
+msgstr "Reducir el lienzo del escritorio."
+
+#: src/control_center/sections/appearance.zig
+msgid "Zoom the desktop to the selected window's level; fade windows passed by the camera."
+msgstr "Ajustar la ampliación al nivel de la ventana seleccionada; atenuar las ventanas por las que pasa la cámara."
+
+#: src/control_center/search_index.zig
+msgid "accessibility animations"
+msgstr "accesibilidad animaciones"
+
+#: src/control_center/search_index.zig
+msgid "application colours theme"
+msgstr "aplicación colores tema"
+
+#: src/control_center/search_index.zig
+msgid "application shell console"
+msgstr "aplicación shell consola"
+
+#: src/control_center/search_index.zig
+msgid "applications titlebar grouping"
+msgstr "aplicaciones título agrupación"
+
+#: src/control_center/search_index.zig
+msgid "autologin boot"
+msgstr "inicio automático arranque"
+
+#: src/control_center/search_index.zig
+msgid "backend gtk kde dialogs"
+msgstr "servicio gtk kde diálogos"
+
+#: src/control_center/search_index.zig
+msgid "background desktop image folder"
+msgstr "fondo escritorio imagen carpeta"
+
+#: src/control_center/search_index.zig
+msgid "backlight screen light"
+msgstr "iluminación pantalla luz"
+
+#: src/control_center/search_index.zig
+msgid "blue light warm screen"
+msgstr "luz azul pantalla cálida"
+
+#: src/control_center/search_index.zig
+msgid "buttons close maximize minimize"
+msgstr "botones cerrar maximizar minimizar"
+
+#: src/delete_dialog.zig
+msgid "bytes"
+msgstr "bytes"
+
+#: src/control_center/search_index.zig
+msgid "calendar monday sunday"
+msgstr "calendario lunes domingo"
+
+#: src/control_center/search_index.zig
+msgid "canvas workspaces tiling"
+msgstr "lienzo espacios trabajo mosaico"
+
+#: src/control_center/search_index.zig
+msgid "chooser portal"
+msgstr "selector portal"
+
+#: src/control_center/search_index.zig
+msgid "chrome tint"
+msgstr "marco tinte"
+
+#: src/control_center/search_index.zig
+msgid "clock battery tray notifications capture"
+msgstr "reloj batería bandeja notificaciones captura"
+
+#: src/control_center/search_index.zig
+msgid "colors colours dark light preset"
+msgstr "colores oscuro claro preajuste"
+
+#: src/control_center/search_index.zig
+msgid "date weekday"
+msgstr "fecha día semana"
+
+#: src/control_center/search_index.zig
+msgid "defaults restore"
+msgstr "predeterminados restaurar"
+
+#: src/control_center/search_index.zig
+msgid "delete pack"
+msgstr "eliminar paquete"
+
+#: src/control_center/search_index.zig
+msgid "desktop panning"
+msgstr "escritorio desplazamiento"
+
+#: src/control_center/search_index.zig
+msgid "double click folders"
+msgstr "doble clic carpetas"
+
+#: src/control_center/search_index.zig
+msgid "drag drop windows"
+msgstr "arrastrar soltar ventanas"
+
+#: src/notifications/toast.zig
+msgid "earlier"
+msgstr "antes"
+
+#: src/control_center/search_index.zig
+msgid "edge pan transitions"
+msgstr "borde desplazamiento transiciones"
+
+#: src/control_center/search_index.zig
+msgid "effects motion"
+msgstr "efectos movimiento"
+
+#: src/control_center/search_index.zig
+msgid "enable apps launcher"
+msgstr "activar aplicaciones lanzador"
+
+#: src/control_center/search_index.zig
+msgid "export look"
+msgstr "exportar apariencia"
+
+#: src/control_center/search_index.zig
+msgid "files folders application"
+msgstr "archivos carpetas aplicación"
+
+#: src/control_center/search_index.zig
+msgid "gaps tiling"
+msgstr "separaciones mosaico"
+
+#: src/files/git.zig
+msgid "git switch failed"
+msgstr "falló el cambio de git"
+
+#: src/control_center/search_index.zig
+msgid "hide automatically"
+msgstr "ocultar automáticamente"
+
+#: src/control_center/search_index.zig
+msgid "hotkeys keybindings bindings terminal screenshot volume brightness workspaces"
+msgstr "atajos teclado terminal captura volumen brillo espacios trabajo"
+
+#: src/control_center/search_index.zig
+msgid "icons pack"
+msgstr "iconos paquete"
+
+#: src/control_center/search_index.zig
+msgid "import pack"
+msgstr "importar paquete"
+
+#: src/control_center/search_index.zig
+msgid "keep icons in place"
+msgstr "mantener iconos fijos"
+
+#: src/control_center/search_index.zig
+msgid "keyboard trackpad"
+msgstr "teclado panel táctil"
+
+#: src/control_center/search_index.zig
+msgid "laptop suspend sleep"
+msgstr "portátil suspender dormir"
+
+#: src/control_center/search_index.zig
+msgid "launcher icon image"
+msgstr "lanzador icono imagen"
+
+#: src/control_center/search_index.zig
+msgid "launcher size"
+msgstr "lanzador tamaño"
+
+#: src/control_center/search_index.zig
+msgid "launcher width"
+msgstr "lanzador ancho"
+
+#: src/control_center/search_index.zig
+msgid "left right speakers"
+msgstr "izquierda derecha altavoces"
+
+#: src/control_center/search_index.zig
+msgid "light appearance theme"
+msgstr "claro apariencia tema"
+
+#: src/control_center/search_index.zig
+msgid "locale numbers currency dates"
+msgstr "configuración regional números moneda fechas"
+
+#: src/control_center/search_index.zig
+msgid "locale translation"
+msgstr "idioma traducción"
+
+#: src/control_center/search_index.zig
+msgid "logo launcher"
+msgstr "logotipo lanzador"
+
+#: src/control_center/sections/users.zig
+msgid "lowercase username"
+msgstr "nombre usuario minúsculas"
+
+#: src/control_center/search_index.zig
+msgid "magnification mouse"
+msgstr "ampliación ratón"
+
+#: src/control_center/search_index.zig
+msgid "minimap overview"
+msgstr "minimapa vista general"
+
+#: src/control_center/search_index.zig
+msgid "motion duration"
+msgstr "movimiento duración"
+
+#: src/notifications/toast.zig
+msgid "now"
+msgstr "ahora"
+
+#: src/control_center/search_index.zig
+msgid "orientation portrait landscape screen"
+msgstr "orientación vertical horizontal pantalla"
+
+#: src/control_center/search_index.zig
+msgid "overview location"
+msgstr "vista general ubicación"
+
+#: src/control_center/search_index.zig
+msgid "overview timeout"
+msgstr "vista general tiempo espera"
+
+#: src/control_center/search_index.zig
+msgid "panel colors colours"
+msgstr "panel colores"
+
+#: src/control_center/search_index.zig
+msgid "panel height"
+msgstr "panel altura"
+
+#: src/control_center/search_index.zig
+msgid "panel margin"
+msgstr "panel margen"
+
+#: src/control_center/search_index.zig
+msgid "panel rounded"
+msgstr "panel redondeado"
+
+#: src/control_center/search_index.zig
+msgid "panel top bottom"
+msgstr "panel arriba abajo"
+
+#: src/control_center/search_index.zig
+msgid "panel width"
+msgstr "panel ancho"
+
+#: src/control_center/search_index.zig
+msgid "pointer acceleration sensitivity"
+msgstr "puntero aceleración sensibilidad"
+
+#: src/control_center/search_index.zig
+msgid "pointer mouse"
+msgstr "puntero ratón"
+
+#: src/control_center/search_index.zig
+msgid "printing cups add queue jobs paper driver label"
+msgstr "impresión cups añadir cola trabajos papel controlador etiqueta"
+
+#: src/control_center/search_index.zig
+msgid "recycle bin"
+msgstr "papelera reciclaje"
+
+#: src/control_center/search_index.zig
+msgid "rounded"
+msgstr "redondeado"
+
+#: src/control_center/search_index.zig
+msgid "rounded windows"
+msgstr "ventanas redondeadas"
+
+#: src/control_center/search_index.zig
+msgid "rows columns panning area"
+msgstr "filas columnas área desplazamiento"
+
+#: src/control_center/search_index.zig
+msgid "rules tiling windows"
+msgstr "reglas mosaico ventanas"
+
+#: src/control_center/search_index.zig
+msgid "running apps indicator"
+msgstr "aplicaciones activas indicador"
+
+#: src/control_center/search_index.zig
+msgid "screen frequency hz"
+msgstr "pantalla frecuencia hz"
+
+#: src/control_center/search_index.zig
+msgid "screen output"
+msgstr "pantalla salida"
+
+#: src/control_center/search_index.zig
+msgid "screen position monitors main display"
+msgstr "pantalla posición monitores principal"
+
+#: src/control_center/search_index.zig
+msgid "screen scaling dpi zoom"
+msgstr "pantalla escala ppp ampliación"
+
+#: src/control_center/search_index.zig
+msgid "screen size pixels"
+msgstr "pantalla tamaño píxeles"
+
+#: src/control_center/search_index.zig
+msgid "scrolling direction reverse invert mouse touchpad"
+msgstr "desplazamiento dirección inversa invertir ratón panel táctil"
+
+#: src/control_center/search_index.zig
+msgid "shadows"
+msgstr "sombras"
+
+#: src/control_center/search_index.zig
+msgid "size"
+msgstr "tamaño"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer high frequencies"
+msgstr "sonido ecualizador frecuencias altas"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer low frequencies"
+msgstr "sonido ecualizador frecuencias bajas"
+
+#: src/control_center/search_index.zig
+msgid "sound input recording mute"
+msgstr "sonido entrada grabación silencio"
+
+#: src/control_center/search_index.zig
+msgid "sound speakers loudness mute"
+msgstr "sonido altavoces volumen silencio"
+
+#: src/control_center/search_index.zig
+msgid "spacing tiled margin"
+msgstr "espacio mosaico margen"
+
+#: src/control_center/search_index.zig
+msgid "speakers headphones sound default"
+msgstr "altavoces auriculares sonido predeterminado"
+
+#: src/control_center/search_index.zig
+msgid "start menu spacing"
+msgstr "menú inicio separación"
+
+#: src/control_center/search_index.zig
+msgid "startup welcome animation"
+msgstr "inicio bienvenida animación"
+
+#: src/control_center/search_index.zig
+msgid "systemd startup boot daemon unit enabled failed slow"
+msgstr "systemd inicio arranque servicio unidad activado fallo lento"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip size"
+msgstr "barra tareas elemento tamaño"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip spacing"
+msgstr "barra tareas elemento separación"
+
+#: src/control_center/search_index.zig
+msgid "taskbar launcher spacing"
+msgstr "barra tareas lanzador separación"
+
+#: src/control_center/search_index.zig
+msgid "text size accessibility"
+msgstr "texto tamaño accesibilidad"
+
+#: src/control_center/search_index.zig
+msgid "thickness scrolling accessibility"
+msgstr "grosor desplazamiento accesibilidad"
+
+#: src/control_center/search_index.zig
+msgid "tiling master stack"
+msgstr "mosaico principal pila"
+
+#: src/control_center/search_index.zig
+msgid "time"
+msgstr "hora"
+
+#: src/control_center/search_index.zig
+msgid "time am pm"
+msgstr "hora am pm"
+
+#: src/control_center/search_index.zig
+msgid "time taskbar font"
+msgstr "hora barra tareas fuente"
+
+#: src/control_center/search_index.zig
+msgid "top bottom left right"
+msgstr "arriba abajo izquierda derecha"
+
+#: src/control_center/search_index.zig
+msgid "touchpad trackpad"
+msgstr "panel táctil trackpad"
+
+#: src/control_center/search_index.zig
+msgid "trackpad acceleration sensitivity"
+msgstr "panel táctil aceleración sensibilidad"
+
+#: src/control_center/search_index.zig
+msgid "transparency"
+msgstr "transparencia"
+
+#: src/control_center/search_index.zig
+msgid "transparency chrome"
+msgstr "transparencia marco"
+
+#: src/control_center/search_index.zig
+msgid "transparency unfocused"
+msgstr "transparencia sin foco"
+
+#: src/control_center/search_index.zig
+msgid "typeface text"
+msgstr "tipografía texto"
+
+#: src/control_center/search_index.zig
+msgid "typing keys"
+msgstr "escritura teclas"
+
+#: src/control_center/search_index.zig
+msgid "typing keys speed"
+msgstr "escritura teclas velocidad"
+
+#: src/control_center/search_index.zig
+msgid "unfocused darkness"
+msgstr "oscurecimiento sin foco"
+
+#: src/control_center/search_index.zig
+msgid "users login password administrator groups"
+msgstr "usuarios inicio sesión contraseña administrador grupos"
+
+#: src/control_center/search_index.zig
+msgid "warmth colour color"
+msgstr "calidez color"
+
+#: src/control_center/search_index.zig
+msgid "window borders"
+msgstr "ventana bordes"
+
+#: src/control_center/search_index.zig
+msgid "window chrome"
+msgstr "ventana marco"
+
+#: src/control_center/search_index.zig
+msgid "window focus"
+msgstr "ventana foco"
+
+#: src/control_center/search_index.zig
+msgid "window moving"
+msgstr "ventana movimiento"
+
+#: src/control_center/search_index.zig
+msgid "window moving size"
+msgstr "ventana movimiento tamaño"
+
+#: src/control_center/search_index.zig
+msgid "wired internet adapter"
+msgstr "cable internet adaptador"
+
+#: src/control_center/search_index.zig
+msgid "wireless internet wlan hotspot hidden network"
+msgstr "inalámbrico internet wlan punto acceso red oculta"
+
+#: src/control_center/search_index.zig
+msgid "wireless pairing paired headphones mouse keyboard"
+msgstr "inalámbrico emparejamiento emparejado auriculares ratón teclado"
+
+#: src/control_center/search_index.zig
+msgid "x11 legacy apps scaling"
+msgstr "x11 aplicaciones antiguas escala"
+
+#: src/session/power.zig
+msgid "{action} failed"
+msgstr "Falló {action}"
+
+#: src/control_center/sections/desktop.zig
+msgid "{columns} × {rows} · {n} screen total"
+msgid_plural "{columns} × {rows} · {n} screens total"
+msgstr[0] "{columns} × {rows} · {n} pantalla en total"
+msgstr[1] "{columns} × {rows} · {n} pantallas en total"
+
+#: src/files/app_paint.zig
+msgid "{count} item selected · {size}"
+msgid_plural "{count} items selected · {size}"
+msgstr[0] "{count} elemento seleccionado · {size}"
+msgstr[1] "{count} elementos seleccionados · {size}"
+
+#: src/files/open_with.zig
+msgid "{count} selected file"
+msgid_plural "{count} selected files"
+msgstr[0] "{count} archivo seleccionado"
+msgstr[1] "{count} archivos seleccionados"
+
+#: src/delete_dialog.zig
+msgid "{count} selected item"
+msgid_plural "{count} selected items"
+msgstr[0] "{count} elemento seleccionado"
+msgstr[1] "{count} elementos seleccionados"
+
+#: src/files/app_paint.zig
+msgid "{count} transfer · Downloads continue after closing Files."
+msgid_plural "{count} transfers · Downloads continue after closing Files."
+msgstr[0] "{count} transferencia · Las descargas continúan al cerrar Archivos."
+msgstr[1] "{count} transferencias · Las descargas continúan al cerrar Archivos."
+
+#: src/notifications/toast.zig
+msgid "{count}h ago"
+msgstr "hace {count}h"
+
+#: src/notifications/toast.zig
+msgid "{count}m ago"
+msgstr "hace {count}min"
+
+#: src/files/app_paint.zig
+msgid "{count}{more} item"
+msgid_plural "{count}{more} items"
+msgstr[0] "{count}{more} elemento"
+msgstr[1] "{count}{more} elementos"
+
+#: src/desktop/app_paint.zig
+msgid "{kind} · {bytes} bytes"
+msgstr "{kind} · {bytes} bytes"
+
+#: src/delete_dialog.zig
+msgid "{kind} · {size} {unit}"
+msgstr "{kind} · {size} {unit}"
+
+#: src/control_center/sections/region.zig
+msgid "{locale} · RediWM stays in English"
+msgstr "{locale} · RediWM sigue en inglés"
+
+#: src/images/app.zig
+msgid "{modified}{name} — Images ({position}/{count})"
+msgstr "{modified}{name} — Imágenes ({position}/{count})"
+
+#: src/editor/app.zig
+msgid "{modified}{name} — Text Editor ({tab}/{tabs})"
+msgstr "{modified}{name} — Editor de texto ({tab}/{tabs})"
+
+#: src/files/open_with.zig
+msgid "{name} (default)"
+msgstr "{name} (predeterminado)"
+
+#: src/control_center/sections/region.zig
+msgid "{name} ({locale})"
+msgstr "{name} ({locale})"
+
+#: src/files/app_places.zig
+msgid "{name} can be safely removed"
+msgstr "{name} se puede retirar con seguridad"
+
+#: src/control_center/sections/appearance.zig
+msgid "{name} could not be loaded · showing the default R"
+msgstr "No se pudo cargar {name} · se muestra la R predeterminada"
+
+#: src/files/volumes.zig
+msgid "{name} is already mounted"
+msgstr "{name} ya está montado"
+
+#: src/files/volumes.zig
+msgid "{name} is busy"
+msgstr "{name} está ocupado"
+
+#: src/files/volumes.zig
+msgid "{name} is no longer available"
+msgstr "{name} ya no está disponible"
+
+#: src/files/app_places.zig
+msgid "{name} is no longer there"
+msgstr "{name} ya no está ahí"
+
+#: src/files/app_places.zig
+msgid "{name} mounted"
+msgstr "{name} montado"
+
+#: src/control_center/sections/users.zig
+msgid "{name} · primary"
+msgstr "{name} · principal"
+
+#: src/pdf/app.zig
+msgid "{name} — PDF Viewer ({page}/{pages})"
+msgstr "{name} — Visor de PDF ({page}/{pages})"
+
+#: src/files/app.zig
+msgid "{name} — RediWM Files"
+msgstr "{name} — Archivos de RediWM"
+
+#: src/control_center/sections/printers.zig
+msgid "{name}: level unavailable"
+msgstr "{name}: nivel no disponible"
+
+#: src/control_center/sections/printers.zig
+msgid "{n} completed sheet reported by CUPS"
+msgid_plural "{n} completed sheets reported by CUPS"
+msgstr[0] "CUPS notificó {n} hoja completada"
+msgstr[1] "CUPS notificó {n} hojas completadas"
+
+#: src/system_monitor/app.zig
+msgid "{n} process · Swap {swap}{status}"
+msgid_plural "{n} processes · Swap {swap}{status}"
+msgstr[0] "{n} proceso · Intercambio {swap}{status}"
+msgstr[1] "{n} procesos · Intercambio {swap}{status}"
+
+#: src/control_center/sections/services.zig
+msgid "{n} service, {enabled} enabled"
+msgid_plural "{n} services, {enabled} enabled"
+msgstr[0] "{n} servicio; activados: {enabled}"
+msgstr[1] "{n} servicios; activados: {enabled}"
+
+#: src/files/app_torrents.zig
+msgid "{rate} KiB/s"
+msgstr "{rate} KiB/s"
+
+#: src/files/properties.zig
+msgid "{size} ({bytes} byte)"
+msgid_plural "{size} ({bytes} bytes)"
+msgstr[0] "{size} ({bytes} byte)"
+msgstr[1] "{size} ({bytes} bytes)"
+
+#: src/files/app_places.zig
+msgid "{size} Volume"
+msgstr "Volumen de {size}"
+
+#: src/files/app_torrents.zig
+msgid "{size} selected · {path}"
+msgstr "{size} seleccionados · {path}"
+
+#: src/control_center/sections/printers.zig
+msgid "{value} (supported {min}–{max})"
+msgstr "{value} (admitido: {min}–{max})"
+
+#: src/files/app_torrents.zig
+msgid "{value} active · {rate} KiB/s"
+msgstr "{value} activos · {rate} KiB/s"
+
+#: src/files/app_torrents.zig
+msgid "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+msgstr "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+
+#: src/files/app_torrent_rows.zig
+msgid "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+msgstr "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "L"
+msgstr "I"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "R"
+msgstr "D"
+
+#: src/session/lock.zig
+msgctxt "date"
+msgid "%A, %B %-d"
+msgstr "%A, %-d de %B"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%A, %B %-d, %Y"
+msgstr "%A, %-d de %B de %Y"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%B %Y"
+msgstr "%B de %Y"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Comment"
+msgid "Browse, open and manage local files and folders"
+msgstr "Explora, abre y gestiona archivos y carpetas locales"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Comment"
+msgid "Download torrents and magnet links in Files"
+msgstr "Descarga torrents y enlaces magnet en Archivos"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Comment"
+msgid "Edit text files in tabs"
+msgstr "Edita archivos de texto en pestañas"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Comment"
+msgid "RediWM Wayland compositor"
+msgstr "Compositor Wayland RediWM"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Comment"
+msgid "Simple arithmetic calculator"
+msgstr "Calculadora de aritmética sencilla"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Comment"
+msgid "Validate and install a RediWM theme pack"
+msgstr "Valida e instala un paquete de temas de RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Comment"
+msgid "View CPU, memory and processes"
+msgstr "Consulta CPU, memoria y procesos"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Comment"
+msgid "View PDF documents with RediWM"
+msgstr "Visualiza documentos PDF con RediWM"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Comment"
+msgid "View images with RediWM"
+msgstr "Visualiza imágenes con RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:GenericName"
+msgid "File Manager"
+msgstr "Gestor de archivos"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Keywords"
+msgid "arithmetic;math;calculate;"
+msgstr "aritmética;matemáticas;calcular;"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Keywords"
+msgid "files;folder;browser;explorer;manager;"
+msgstr "archivos;carpeta;navegador;explorador;gestor;"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Keywords"
+msgid "process;task;CPU;memory;performance;"
+msgstr "proceso;tarea;CPU;memoria;rendimiento;"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Name"
+msgid "Calculator"
+msgstr "Calculadora"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Name"
+msgid "Files Transfers"
+msgstr "Transferencias de Archivos"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Name"
+msgid "Image Viewer"
+msgstr "Visor de imágenes"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Name"
+msgid "Install theme"
+msgstr "Instalar tema"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Name"
+msgid "PDF Viewer"
+msgstr "Visor de PDF"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Name"
+msgid "RediWM"
+msgstr "RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Name"
+msgid "RediWM Files"
+msgstr "Archivos de RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Name"
+msgid "System Monitor"
+msgstr "Monitor del sistema"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Name"
+msgid "Text Editor"
+msgstr "Editor de texto"
+
+#: data/org.rediwm.accounts.policy
+msgctxt "polkit"
+msgid "Authentication is required to manage login accounts"
+msgstr "Se requiere autenticación para gestionar las cuentas de usuario"
+
+#: src/Dock.zig
+msgid "Application"
+msgstr "Aplicación"
+
+#: src/Dock.zig
+msgid "Files"
+msgstr "Archivos"
+
+#: src/start_menu/search.zig
+msgid "Loading applications…"
+msgstr "Cargando aplicaciones…"
+
+#: src/toplevel/info.zig
+msgid "RediWM Settings"
+msgstr "Configuración de RediWM"
+
+#: src/start_menu/search.zig
+msgid "Scanning installed apps"
+msgstr "Buscando aplicaciones instaladas"
+
+#: src/start_menu/search.zig
+msgid "System preferences, display, appearance and input"
+msgstr "Preferencias del sistema, pantalla, apariencia y entrada"
+
+#: src/start_menu/search.zig
+msgid "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing"
+msgstr "configuración;control;panel;preferencias;pantalla;apariencia;ratón;teclado;impresora;impresoras;impresión"
+
+#: src/control_center/sections/region.zig
+msgid "English"
+msgstr "Inglés"
diff --git a/po/fr.po b/po/fr.po
new file mode 100644
index 0000000..c66e465
--- /dev/null
+++ b/po/fr.po
@@ -0,0 +1,7577 @@
+# Français translation draft for RediWM.
+# Machine-drafted; fuzzy flags removed by the maintainer, native review pending.
+# Native and screenshot/layout review are still required.
+msgid ""
+msgstr ""
+"Project-Id-Version: RediWM\n"
+"PO-Revision-Date: 2026-10-20 00:00+0000\n"
+"Last-Translator: Unreviewed machine draft\n"
+"Language-Team: French (native review pending)\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-RediWM-Native-Name: Français\n"
+"X-RediWM-Locale: fr_FR.UTF-8\n"
+"X-RediWM-Reviewed: no\n"
+
+#: src/system_monitor/app.zig
+msgid " · /proc unavailable"
+msgstr " · /proc indisponible"
+
+#: src/control_center/sections/printers.zig
+msgid " · Default"
+msgstr " · Par défaut"
+
+#: src/system_monitor/app.zig
+msgid " · List limited"
+msgstr " · Liste limitée"
+
+#: src/system_monitor/app.zig
+msgid " · Paused"
+msgstr " · En pause"
+
+#: src/system_monitor/app.zig
+msgid " · Some processes unavailable"
+msgstr " · Certains processus sont indisponibles"
+
+#: src/control_center/sections/printers.zig
+msgid " · System default"
+msgstr " · Valeur système par défaut"
+
+#: src/control_center/sections/desktop.zig
+msgid "1 second"
+msgstr "1 seconde"
+
+#: src/control_center/sections/desktop.zig
+msgid "1.5 seconds"
+msgstr "1,5 seconde"
+
+#: src/control_center/welcome.zig
+msgid "100%"
+msgstr "100 %"
+
+#: src/control_center/welcome.zig
+msgid "125%"
+msgstr "125 %"
+
+#: src/control_center/welcome.zig
+msgid "150%"
+msgstr "150 %"
+
+#: src/control_center/welcome.zig
+msgid "175%"
+msgstr "175 %"
+
+#: src/control_center/sections/display.zig
+msgid "180°"
+msgstr "180°"
+
+#: src/control_center/sections/desktop.zig
+msgid "2 seconds"
+msgstr "2 secondes"
+
+#: src/control_center/welcome.zig
+msgid "200%"
+msgstr "200 %"
+
+#: src/control_center/search_index.zig
+msgid "24-hour clock"
+msgstr "Horloge sur 24 heures"
+
+#: src/control_center/welcome.zig
+msgid "250%"
+msgstr "250 %"
+
+#: src/control_center/sections/display.zig
+msgid "270°"
+msgstr "270°"
+
+#: src/control_center/sections/desktop.zig
+msgid "3 seconds"
+msgstr "3 secondes"
+
+#: src/control_center/welcome.zig
+msgid "300%"
+msgstr "300 %"
+
+#: src/control_center/sections/desktop.zig
+msgid "5 seconds"
+msgstr "5 secondes"
+
+#: src/system_monitor/app.zig
+msgid "60 seconds"
+msgstr "60 secondes"
+
+#: src/control_center/sections/display.zig
+msgid "90°"
+msgstr "90°"
+
+#: src/printing/ladder.zig
+msgid "A USB character device is not applicable to this connection."
+msgstr "Un périphérique caractère USB ne s'applique pas à cette connexion."
+
+#: src/files/app_opening.zig
+msgid "A file operation is already running"
+msgstr "Une opération sur les fichiers est déjà en cours"
+
+#: src/files/app_chooser.zig
+msgid "A file with this name exists. Replace it?"
+msgstr "Un fichier porte déjà ce nom. Le remplacer ?"
+
+#: src/printing/ladder.zig
+msgid "A matched device-node path is a regular file or another wrong file type."
+msgstr "Un chemin de nœud de périphérique correspondant est un fichier ordinaire ou un autre type de fichier incorrect."
+
+#: src/printing/ladder.zig
+msgid "A matching USB printer interface is attached."
+msgstr "Une interface d'imprimante USB correspondante est connectée."
+
+#: src/printing/ladder.zig
+msgid "A matching character device exists; backend access has not been tested."
+msgstr "Un périphérique caractère correspondant existe ; l'accès par le moteur n'a pas été testé."
+
+#: src/control_center/sections/printers.zig
+msgid "A printer with this queue name already exists. Choose another name."
+msgstr "Une imprimante utilise déjà ce nom de file. Choisissez un autre nom."
+
+#: src/control_center/sections/printers.zig
+msgid "A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."
+msgstr "Une file brute transmet les commandes sans modification ; l'impression PDF habituelle nécessite un pilote compatible."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."
+msgstr "Un dossier de configuration de la boîte à outils est un lien symbolique. Appliquez les couleurs à son emplacement réel ou remplacez-le par un dossier ordinaire."
+
+#: src/control_center/sections/appearance.zig
+msgid "APPEARANCE"
+msgstr "APPARENCE"
+
+#: src/printing/cups.zig
+msgid "Aborted"
+msgstr "Abandonné"
+
+#: src/control_center/sections/printers.zig
+msgid "Accept jobs"
+msgstr "Accepter les tâches"
+
+#: src/control_center/sections/users.zig
+msgid "Account details · {name}"
+msgstr "Détails du compte · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Account settings are unlocked for this session."
+msgstr "Les paramètres des comptes sont déverrouillés pour cette session."
+
+#: src/control_center/sections/users.zig
+msgid "Account type"
+msgstr "Type de compte"
+
+#: src/control_center/search_index.zig
+msgid "Accounts"
+msgstr "Comptes"
+
+#: src/control_center/sections/services.zig
+msgid "Activated by: {name}"
+msgstr "Activé par : {name}"
+
+#: src/files/open_with.zig
+msgid "Add Application Shortcut"
+msgstr "Ajouter un raccourci d'application"
+
+#: src/desktop/app_actions.zig
+msgid "Add Application…"
+msgstr "Ajouter une application…"
+
+#: src/files/open_with.zig
+msgid "Add Shortcut"
+msgstr "Ajouter un raccourci"
+
+#: src/control_center/sections/printers.zig
+msgid "Add a printer"
+msgstr "Ajouter une imprimante"
+
+#: src/files/app_model.zig
+msgid "Add to applications"
+msgstr "Ajouter aux applications"
+
+#: src/files/app_torrents.zig
+msgid "Add torrent…"
+msgstr "Ajouter un torrent…"
+
+#: src/control_center/sections/users.zig
+msgid "Add user"
+msgstr "Ajouter un utilisateur"
+
+#: src/control_center/sections/users.zig
+msgid "Add user…"
+msgstr "Ajouter un utilisateur…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images"
+msgstr "Ajouter vos images"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images to {folder}"
+msgstr "Ajoutez vos images à {folder}"
+
+#: src/files/app_places.zig
+msgid "Added to Places"
+msgstr "Ajouté aux emplacements"
+
+#: src/files/worker.zig
+msgid "Added to applications. Keep the AppImage in its current location."
+msgstr "Ajouté aux applications. Conservez l'AppImage à son emplacement actuel."
+
+#: src/files/app_places.zig
+msgid "Added {value} items to Places"
+msgstr "{value} éléments ajoutés aux emplacements"
+
+#: src/files/app_places.zig
+msgid "Added {value} to Places"
+msgstr "{value} ajouté aux emplacements"
+
+#: src/files/app_opening.zig
+msgid "Adding to applications…"
+msgstr "Ajout aux applications…"
+
+#: src/network/manager.zig
+msgid "Additional setup required"
+msgstr "Configuration supplémentaire nécessaire"
+
+#: src/control_center/sections/printers.zig
+msgid "Address checks support IPP printers. Other connections can be tested with an explicit print after setup."
+msgstr "La vérification d'adresse prend en charge les imprimantes IPP. Les autres connexions peuvent être testées par une impression explicitement lancée après la configuration."
+
+#: src/control_center/sections/users.zig
+msgid "Administrator"
+msgstr "Administrateur"
+
+#: src/polkit/dialog.zig
+msgid "Administrator privileges are required to continue."
+msgstr "Des droits d'administration sont nécessaires pour continuer."
+
+#: src/control_center/sections/services.zig
+msgid "All"
+msgstr "Tout"
+
+#: src/files/open_with.zig
+msgid "All Applications"
+msgstr "Toutes les applications"
+
+#: src/files/app_chooser.zig
+msgid "All files"
+msgstr "Tous les fichiers"
+
+#: src/delete_dialog.zig
+msgid "All items in Trash"
+msgstr "Tout le contenu de la corbeille"
+
+#: src/system_monitor/app.zig
+msgid "All processes"
+msgstr "Tous les processus"
+
+#: src/desktop/app_actions.zig
+msgid "Allow Launching"
+msgstr "Autoriser le lancement"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow connections from this device without asking."
+msgstr "Autoriser les connexions de cet appareil sans confirmation."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow pairing with this device?"
+msgstr "Autoriser l'association avec cet appareil ?"
+
+#: src/files/app_places.zig
+msgid "Already in Places"
+msgstr "Déjà dans les emplacements"
+
+#: src/files/open_with.zig
+msgid "Always use this app for this file type"
+msgstr "Toujours utiliser cette application pour ce type de fichier"
+
+#: src/files/open_with.zig
+msgid "Always use this app for {value} files"
+msgstr "Toujours utiliser cette application pour les fichiers {value}"
+
+#: src/files/app_opening.zig
+msgid "An application is already being added"
+msgstr "Une application est déjà en cours d'ajout"
+
+#: src/control_center/sections/services.zig
+msgid "Analyze"
+msgstr "Analyser"
+
+#: src/control_center/sections/services.zig
+msgid "Analyzing…"
+msgstr "Analyse…"
+
+#: src/control_center/search_index.zig
+msgid "Animation speed"
+msgstr "Vitesse des animations"
+
+#: src/control_center/search_index.zig
+msgid "Animations"
+msgstr "Animations"
+
+#: src/session/power.zig
+msgid "Another power action is already in progress."
+msgstr "Une autre action d'alimentation est déjà en cours."
+
+#: src/control_center/sections/appearance.zig
+msgid "App colors"
+msgstr "Couleurs des applications"
+
+#: src/control_center/sections/sound.zig
+msgid "App streams"
+msgstr "Flux des applications"
+
+#: src/control_center/panel.zig
+msgid "Appearance"
+msgstr "Apparence"
+
+#: src/files/appimage.zig
+msgid "Application added, but some file or link associations could not be registered"
+msgstr "Application ajoutée, mais certaines associations de fichiers ou de liens n'ont pas pu être enregistrées"
+
+#: src/start_menu/launch.zig
+msgid "Application could not be started"
+msgstr "Impossible de démarrer l'application"
+
+#: src/control_center/search_index.zig
+msgid "Application language"
+msgstr "Langue des applications"
+
+#: src/start_menu/panel.zig
+msgid "Applications"
+msgstr "Applications"
+
+#: src/control_center/sections/desktop.zig
+msgid "Applies to output edges and the space between automatic tiles."
+msgstr "S'applique aux bords de l'écran et aux espaces entre les fenêtres disposées automatiquement."
+
+#: src/images/app.zig
+msgid "Apply"
+msgstr "Appliquer"
+
+#: src/control_center/search_index.zig
+msgid "Apply GTK colors"
+msgstr "Appliquer les couleurs GTK"
+
+#: src/control_center/search_index.zig
+msgid "Apply Qt colors"
+msgstr "Appliquer les couleurs Qt"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply connection"
+msgstr "Appliquer la connexion"
+
+#: src/images/app.zig
+msgid "Apply crop"
+msgstr "Appliquer le recadrage"
+
+#: src/images/app.zig
+msgid "Apply crop · Enter"
+msgstr "Appliquer le recadrage · Entrée"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply value"
+msgstr "Appliquer la valeur"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Applying app colors…"
+msgstr "Application des couleurs…"
+
+#: src/printing/admin.zig
+msgid "Applying printer change; authorization may be required…"
+msgstr "Application de la modification de l'imprimante ; une autorisation peut être nécessaire…"
+
+#: src/start_menu/panel.zig
+msgid "Apps"
+msgstr "Applis"
+
+#: src/control_center/sections/appearance.zig
+msgid "Apps and web pages"
+msgstr "Applications et pages web"
+
+#: src/files/archive.zig
+msgid "Archive contains an unsafe path"
+msgstr "L'archive contient un chemin dangereux"
+
+#: src/files/archive.zig
+msgid "Archive contains unsupported links or special files"
+msgstr "L'archive contient des liens ou des fichiers spéciaux non pris en charge"
+
+#: src/files/archive.zig
+msgid "Archive has too many entries"
+msgstr "L'archive contient trop d'éléments"
+
+#: src/files/archive.zig
+msgid "Archive is corrupt or unsupported"
+msgstr "Archive endommagée ou non prise en charge"
+
+#: src/control_center/welcome.zig
+msgid "Arrange windows automatically."
+msgstr "Disposer automatiquement les fenêtres."
+
+#: src/control_center/search_index.zig
+msgid "Arrangement"
+msgstr "Disposition"
+
+#: src/control_center/panel.zig
+msgid "Arrangement, resolution, refresh rate and scaling."
+msgstr "Disposition, résolution, fréquence de rafraîchissement et mise à l'échelle."
+
+#: src/control_center/sections/desktop.zig
+msgid "Assigned to the current output when first used."
+msgstr "Affecté à l'écran courant lors de la première utilisation."
+
+#: src/control_center/sections/printers.zig
+msgid "Attached USB printers"
+msgstr "Imprimantes USB connectées"
+
+#: src/polkit/dialog.zig
+msgid "Attempt {attempt} of 3"
+msgstr "Tentative {attempt} sur 3"
+
+#: src/control_center/panel.zig
+msgid "Audio"
+msgstr "Audio"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio (A2DP) · High quality audio"
+msgstr "Audio (A2DP) · Audio haute qualité"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio Settings"
+msgstr "Paramètres audio"
+
+#: src/control_center/panel.zig
+msgid "Audio output"
+msgstr "Sortie audio"
+
+#: src/control_center/search_index.zig
+msgid "Audio output device"
+msgstr "Périphérique de sortie audio"
+
+#: src/control_center/panel.zig
+msgid "Audio settings"
+msgstr "Paramètres audio"
+
+#: src/control_center/panel.zig
+msgid "Audio unavailable"
+msgstr "Audio indisponible"
+
+#: src/control_center/sections/printers.zig
+msgid "Authenticate"
+msgstr "Authentifier"
+
+#: src/printing/admin.zig
+msgid "Authenticating with CUPS…"
+msgstr "Authentification auprès de CUPS…"
+
+#: src/polkit/dialog.zig
+msgid "Authenticating…"
+msgstr "Authentification…"
+
+#: src/polkit/dialog.zig
+msgid "Authentication"
+msgstr "Authentification"
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed."
+msgstr "Échec de l'authentification."
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed. Please try again."
+msgstr "Échec de l'authentification. Réessayez."
+
+#: src/polkit/dialog.zig
+msgid "Authentication required"
+msgstr "Authentification nécessaire"
+
+#: src/polkit/dialog.zig
+msgid "Authentication service unavailable."
+msgstr "Service d'authentification indisponible."
+
+#: src/session/lock.zig
+msgid "Authentication unavailable. Try again."
+msgstr "Authentification indisponible. Réessayez."
+
+#: src/control_center/sections/users.zig
+msgid "Authentication was cancelled or denied."
+msgstr "L'authentification a été annulée ou refusée."
+
+#: src/systemd.zig
+msgid "Authentication was cancelled or denied. Notify setting is unchanged."
+msgstr "L'authentification a été annulée ou refusée. Le réglage Notify reste inchangé."
+
+#: src/control_center/sections/printers.zig
+msgid "Authorize printer administration"
+msgstr "Autoriser l'administration des imprimantes"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto"
+msgstr "Automatique"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto-hide dock"
+msgstr "Masquer automatiquement le dock"
+
+#: src/network/popup.zig
+msgid "Auto-join this network"
+msgstr "Rejoindre automatiquement ce réseau"
+
+#: src/printing/options.zig
+msgid "Automatic"
+msgstr "Automatique"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Automatic ($TERMINAL / Foot)"
+msgstr "Automatique ($TERMINAL / Foot)"
+
+#: src/control_center/search_index.zig
+msgid "Automatic login"
+msgstr "Connexion automatique"
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating."
+msgstr "Mosaïque automatique avec une vue fixe et des raccourcis de type Hyprland. Faites glisser les fenêtres pour les réorganiser ; Super+V active le mode flottant."
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiling"
+msgstr "Mosaïque automatique"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Available Devices"
+msgstr "Appareils disponibles"
+
+#: src/files/app_torrents.zig
+msgid "Back"
+msgstr "Retour"
+
+#: src/files/open_with.zig
+msgid "Back to recommended apps"
+msgstr "Revenir aux applications recommandées"
+
+#: src/control_center/sections/printers.zig
+msgid "Backend"
+msgstr "Moteur"
+
+#: src/printing/ladder.zig
+msgid "Backend communication and device identity have not been confirmed."
+msgstr "La communication avec le moteur et l'identité du périphérique n'ont pas été confirmées."
+
+#: src/control_center/sections/sound.zig
+msgid "Balance"
+msgstr "Balance"
+
+#: src/power_profiles.zig
+msgid "Balanced"
+msgstr "Équilibré"
+
+#: src/control_center/sections/sound.zig
+msgid "Bass Boost"
+msgstr "Renforcement des basses"
+
+#: src/control_center/search_index.zig
+msgid "Bass boost"
+msgstr "Renforcement des basses"
+
+#: src/printing/options.zig
+msgid "Black and white"
+msgstr "Noir et blanc"
+
+#: src/control_center/sections/printers.zig
+msgid "Blank or no output"
+msgstr "Page blanche ou aucune sortie"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Blocked"
+msgstr "Bloqué"
+
+#: src/session/power.zig
+msgid "Blocked by an active inhibitor lock."
+msgstr "Bloqué par un verrou d'inhibition actif."
+
+#: src/session/power.zig
+msgid "Blocked by an application."
+msgstr "Bloqué par une application."
+
+#: src/session/power.zig
+msgid "Blocked by {application}."
+msgstr "Bloqué par {application}."
+
+#: src/session/power.zig
+msgid "Blocked by {application}: {reason}"
+msgstr "Bloqué par {application} : {reason}"
+
+#: src/control_center/panel.zig
+msgid "Bluetooth"
+msgstr "Bluetooth"
+
+#: src/control_center/search_index.zig
+msgid "Bluetooth devices"
+msgstr "Appareils Bluetooth"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth is turned off"
+msgstr "Le Bluetooth est désactivé"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth service is unavailable"
+msgstr "Le service Bluetooth est indisponible"
+
+#: src/control_center/search_index.zig
+msgid "Bold clock"
+msgstr "Horloge en gras"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bold clock text"
+msgstr "Texte de l'horloge en gras"
+
+#: src/control_center/sections/appearance.zig
+msgid "Boost window"
+msgstr "Mettre la fenêtre en évidence"
+
+#: src/systemd.zig
+msgid "Boot summary is unavailable."
+msgstr "Le résumé du démarrage est indisponible."
+
+#: src/control_center/sections/services.zig
+msgid "Boot time: {duration}"
+msgstr "Temps de démarrage : {duration}"
+
+#: src/control_center/sections/services.zig
+msgid "Boot: from kernel start. Activation times overlap; — means unavailable."
+msgstr "Démarrage : depuis le lancement du noyau. Les temps d'activation peuvent se chevaucher ; — signifie indisponible."
+
+#: src/control_center/search_index.zig
+msgid "Border glow"
+msgstr "Lueur de la bordure"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bottom"
+msgstr "En bas"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom center"
+msgstr "En bas au centre"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom left"
+msgstr "En bas à gauche"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom right"
+msgstr "En bas à droite"
+
+#: src/files/git.zig
+msgid "Branch name cannot be empty"
+msgstr "Le nom de branche ne peut pas être vide"
+
+#: src/control_center/sections/appearance.zig
+msgid "Brief placeholder while apps start"
+msgstr "Bref indicateur au démarrage des applications"
+
+#: src/control_center/panel.zig
+msgid "Brightness"
+msgstr "Luminosité"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Down"
+msgstr "Réduire la luminosité"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Up"
+msgstr "Augmenter la luminosité"
+
+#: src/files/app_listing.zig
+msgid "Broken link"
+msgstr "Lien cassé"
+
+#: src/control_center/welcome.zig
+msgid "Browser"
+msgstr "Navigateur"
+
+#: src/images/app.zig
+msgid "C: crop · Ctrl+S: save · Delete: trash"
+msgstr "C : recadrer · Ctrl+S : enregistrer · Suppr : corbeille"
+
+#: src/control_center/sections/appearance.zig
+msgid "CENTER"
+msgstr "CENTRE"
+
+#: src/system_monitor/app.zig
+msgid "CPU %"
+msgstr "CPU %"
+
+#: src/system_monitor/app.zig
+msgid "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"
+msgstr "CPU : 100 % = un cœur · Mémoire : résidente · Ctrl+F : rechercher · Suppr : terminer · Maj+Suppr : forcer l'arrêt"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS"
+msgstr "CUPS"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS accepted the change; the resulting driver value could not be verified."
+msgstr "CUPS a accepté la modification ; la valeur résultante du pilote n'a pas pu être vérifiée."
+
+#: src/printing/ladder.zig
+msgid "CUPS answered an IPP request."
+msgstr "CUPS a répondu à une requête IPP."
+
+#: src/printing/admin.zig
+msgid "CUPS authentication failed after three attempts. Check the administrator account and permissions."
+msgstr "Échec de l'authentification CUPS après trois tentatives. Vérifiez le compte d'administration et ses permissions."
+
+#: src/printing/ladder.zig
+msgid "CUPS availability has not been checked."
+msgstr "La disponibilité de CUPS n'a pas été vérifiée."
+
+#: src/printing/cups.zig
+msgid "CUPS cannot honor the requested print settings. Check the paper, format and scaling options."
+msgstr "CUPS ne peut pas respecter les réglages d'impression demandés. Vérifiez le papier, le format et l'échelle."
+
+#: src/printing/ladder.zig
+msgid "CUPS completed the job with zero sheets reported; physical output is not confirmed."
+msgstr "CUPS a terminé la tâche en signalant zéro feuille ; la sortie physique n'est pas confirmée."
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."
+msgstr "CUPS copie la file et supprime son ancien identifiant. Terminez d'abord toutes les tâches. Vérifiez ensuite les options du pilote."
+
+#: src/printing/cups.zig
+msgid "CUPS denied permission. The operation requires authorization."
+msgstr "CUPS a refusé la permission. L'opération nécessite une autorisation."
+
+#: src/printing/ladder.zig
+msgid "CUPS did not answer an IPP request."
+msgstr "CUPS n'a pas répondu à une requête IPP."
+
+#: src/printing/cups.zig
+msgid "CUPS did not respond in time. Refresh to try again."
+msgstr "CUPS n'a pas répondu à temps. Actualisez pour réessayer."
+
+#: src/printing/admin.zig
+msgid "CUPS discovered no supported printer addresses. You can enter a network address."
+msgstr "CUPS n'a découvert aucune adresse d'imprimante prise en charge. Vous pouvez saisir une adresse réseau."
+
+#: src/printing/cups.zig
+msgid "CUPS is unavailable. Install or start CUPS, then refresh."
+msgstr "CUPS est indisponible. Installez ou démarrez CUPS, puis actualisez."
+
+#: src/printing/admin.zig
+msgid "CUPS refused or could not complete the request. Check authorization and refresh before retrying."
+msgstr "CUPS a refusé la requête ou n'a pas pu la terminer. Vérifiez l'autorisation et actualisez avant de réessayer."
+
+#: src/printing/admin.zig
+msgid "CUPS refused the printer change. Check authorization, the address and driver, then refresh."
+msgstr "CUPS a refusé la modification de l'imprimante. Vérifiez l'autorisation, l'adresse et le pilote, puis actualisez."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports conflicting queue and driver defaults."
+msgstr "CUPS signale des valeurs par défaut contradictoires entre la file et le pilote."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports the job completed; physical printed output is not confirmed."
+msgstr "CUPS signale la tâche terminée ; la sortie imprimée physique n'est pas confirmée."
+
+#: src/printing/admin.zig
+msgid "CUPS requires an administrator username and password."
+msgstr "CUPS nécessite un nom d'utilisateur et un mot de passe d'administration."
+
+#: src/printing/cups.zig
+msgid "CUPS returned an invalid response or the connection failed. Refresh to try again."
+msgstr "CUPS a renvoyé une réponse invalide ou la connexion a échoué. Actualisez pour réessayer."
+
+#: src/printing/admin.zig
+msgid "CUPS start requested. Refresh to check when it is ready."
+msgstr "Démarrage de CUPS demandé. Actualisez pour vérifier sa disponibilité."
+
+#: src/network/manager.zig
+msgid "Cable unplugged"
+msgstr "Câble débranché"
+
+#: src/files/app_model.zig
+msgid "Calculate size"
+msgstr "Calculer la taille"
+
+#: src/calculator/app.zig
+msgid "Calculator"
+msgstr "Calculatrice"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom In"
+msgstr "Agrandir la vue de la caméra"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Out"
+msgstr "Réduire la vue de la caméra"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Reset"
+msgstr "Réinitialiser le zoom de la caméra"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel"
+msgstr "Annuler"
+
+#: src/files/app_paint.zig
+msgid "Cancel (C)"
+msgstr "Annuler (C)"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel Pairing"
+msgstr "Annuler l'association"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel job"
+msgstr "Annuler la tâche"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel setup"
+msgstr "Annuler la configuration"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel test"
+msgstr "Annuler le test"
+
+#: src/files/volumes.zig
+msgid "Cancelled"
+msgstr "Annulé"
+
+#: src/files/ops.zig
+msgid "Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Annulé. Extraits : {completed}. Ignorés : {skipped}. Échecs : {failed}. Restants : {remaining}."
+
+#: src/files/ops.zig
+msgid "Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Annulé. Transférés : {completed}. Ignorés : {skipped}. Échecs : {failed}. Restants : {remaining}."
+
+#: src/files/app_keyboard.zig
+msgid "Cancelling operation..."
+msgstr "Annulation de l'opération…"
+
+#: src/calculator/model.zig
+msgid "Cannot divide by zero"
+msgstr "Division par zéro impossible"
+
+#: src/files/main.zig
+msgid "Cannot drop a folder into itself"
+msgstr "Impossible de déposer un dossier dans lui-même"
+
+#: src/files/app_terminal.zig
+msgid "Cannot insert paths containing control characters"
+msgstr "Impossible d'insérer des chemins contenant des caractères de contrôle"
+
+#: src/session/lock.zig
+msgid "Cannot reach login service. Try again."
+msgstr "Impossible de joindre le service de connexion. Réessayez."
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas"
+msgstr "Canevas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas & Focus"
+msgstr "Canevas et focus"
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas Preview"
+msgstr "Aperçu du canevas"
+
+#: src/control_center/search_index.zig
+msgid "Canvas Size"
+msgstr "Taille du canevas"
+
+#: src/control_center/search_index.zig
+msgid "Canvas pan speed"
+msgstr "Vitesse de déplacement du canevas"
+
+#: src/control_center/search_index.zig
+msgid "Canvas size"
+msgstr "Taille du canevas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas · RediWM preset"
+msgstr "Canevas · Préréglage RediWM"
+
+#: src/session/lock.zig
+msgid "Caps Lock is on"
+msgstr "Verr. Maj est activé"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture a region of your screen."
+msgstr "Capturer une zone de l'écran."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture the current display."
+msgstr "Capturer l'écran courant."
+
+#: src/control_center/sections/sound.zig
+msgid "Centre"
+msgstr "Centrer"
+
+#: src/desktop/app_actions.zig
+msgid "Change Wallpaper"
+msgstr "Changer le fond d'écran"
+
+#: src/control_center/sections/printers.zig
+msgid "Change connection…"
+msgstr "Modifier la connexion…"
+
+#: src/control_center/sections/users.zig
+msgid "Change password · {name}"
+msgstr "Changer le mot de passe · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Change password…"
+msgstr "Changer le mot de passe…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change printer connection"
+msgstr "Modifier la connexion de l'imprimante"
+
+#: src/control_center/sections/printers.zig
+msgid "Change queue identifier…"
+msgstr "Modifier l'identifiant de la file…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change this queue identifier"
+msgstr "Modifier l'identifiant de cette file"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Change window depth."
+msgstr "Modifier la profondeur de la fenêtre."
+
+#: src/control_center/sections/printers.zig
+msgid "Change {old} to {name}?"
+msgstr "Remplacer {old} par {name} ?"
+
+#: src/control_center/sections/portals.zig
+msgid "Changes apply next time you sign in."
+msgstr "Les modifications prendront effet à la prochaine connexion."
+
+#: src/control_center/sections/display.zig
+msgid "Changes are saved automatically. Scroll the lists for more modes."
+msgstr "Les modifications sont enregistrées automatiquement. Faites défiler les listes pour voir d'autres modes."
+
+#: src/control_center/sections/users.zig
+msgid "Changes saved."
+msgstr "Modifications enregistrées."
+
+#: src/control_center/sections/region.zig
+msgid "Changes the taskbar calendar."
+msgstr "Modifie le calendrier de la barre des tâches."
+
+#: src/taskbar/battery.zig
+msgid "Charging"
+msgstr "En charge"
+
+#: src/control_center/sections/printers.zig
+msgid "Check IPP address"
+msgstr "Vérifier l'adresse IPP"
+
+#: src/control_center/sections/users.zig
+msgid "Check NSS and /etc/login.defs."
+msgstr "Vérifiez NSS et /etc/login.defs."
+
+#: src/control_center/sections/printers.zig
+msgid "Check measured scale"
+msgstr "Vérifier l'échelle mesurée"
+
+#: src/printing/ladder.zig
+msgid "Check power, the USB cable, and which printer this queue uses."
+msgstr "Vérifiez l'alimentation, le câble USB et l'imprimante utilisée par cette file."
+
+#: src/printing/ladder.zig
+msgid "Check printer power, the address, and access through the network or VPN."
+msgstr "Vérifiez l'alimentation de l'imprimante, son adresse et l'accès par le réseau ou le VPN."
+
+#: src/printing/ladder.zig
+msgid "Check the configured CUPS server and whether the print service is installed and available."
+msgstr "Vérifiez le serveur CUPS configuré et si le service d'impression est installé et disponible."
+
+#: src/printing/ladder.zig
+msgid "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."
+msgstr "Vérifiez la connexion et l'adresse du moteur. Un délai expiré ne prouve pas à lui seul qu'un correctif USB est nécessaire."
+
+#: src/printing/ladder.zig
+msgid "Check the device's USB mode and its self-test instructions."
+msgstr "Vérifiez le mode USB de l'appareil et les instructions de son autotest."
+
+#: src/printing/ladder.zig
+msgid "Check the document, driver, media size, and resolution. Compare with a test that skips the filters."
+msgstr "Vérifiez le document, le pilote, la taille du support et la résolution. Comparez avec un test qui ignore les filtres."
+
+#: src/calculator/model.zig
+msgid "Check the expression"
+msgstr "Vérifiez l'expression"
+
+#: src/printing/ladder.zig
+msgid "Check the job's reported reason before retrying."
+msgstr "Vérifiez le motif signalé pour la tâche avant de réessayer."
+
+#: src/printing/ladder.zig
+msgid "Check the physical output and any document or filter failure; sheet counters can be incomplete."
+msgstr "Vérifiez la sortie physique et tout échec du document ou des filtres ; les compteurs de feuilles peuvent être incomplets."
+
+#: src/control_center/sections/printers.zig
+msgid "Check the printer's self-test sheet for its language and real resolution."
+msgstr "Consultez la page d'autotest de l'imprimante pour connaître son langage et sa résolution réelle."
+
+#: src/printing/ladder.zig
+msgid "Check the queue address and USB serial; reconnecting can change a device-node path."
+msgstr "Vérifiez l'adresse de la file et le numéro de série USB ; une reconnexion peut changer le chemin du nœud de périphérique."
+
+#: src/printing/ladder.zig
+msgid "Check the usblp driver and the queue's device path; node names can change after reconnection."
+msgstr "Vérifiez le pilote usblp et le chemin de périphérique de la file ; les noms de nœuds peuvent changer après reconnexion."
+
+#: src/control_center/sections/desktop.zig
+msgid "Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."
+msgstr "Les applications cochées s'ouvrent en mode flottant. Super+V change le placement d'une fenêtre. Les dialogues et les fenêtres de taille fixe flottent automatiquement."
+
+#: src/control_center/panel.zig
+msgid "Checking backlight…"
+msgstr "Vérification du rétroéclairage…"
+
+#: src/session/lock.zig
+msgid "Checking password…"
+msgstr "Vérification du mot de passe…"
+
+#: src/printing/admin.zig
+msgid "Checking printer administration…"
+msgstr "Vérification de l'administration des imprimantes…"
+
+#: src/session/lock.zig
+msgid "Checking…"
+msgstr "Vérification…"
+
+#: src/files/app.zig
+msgid "Choose Folder"
+msgstr "Choisir un dossier"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose Start button logo"
+msgstr "Choisir le logo du bouton de démarrage"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a driver…"
+msgstr "Choisir un pilote…"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language."
+msgstr "Choisissez un langage indiqué par la page d'autotest ou essayez un échantillon. Notez le résultat avant de choisir un autre langage."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose a path without quotes, backslashes or control characters."
+msgstr "Choisissez un chemin sans guillemets, barres obliques inverses ni caractères de contrôle."
+
+#: src/share_picker/client.zig
+msgid "Choose a source. Escape cancels."
+msgstr "Choisissez une source. Échap annule."
+
+#: src/files/app_chooser.zig
+msgid "Choose an accessible file or folder and a valid filename."
+msgstr "Choisissez un fichier ou un dossier accessible et un nom de fichier valide."
+
+#: src/files/open_with.zig
+msgid "Choose an application to add to the desktop"
+msgstr "Choisissez une application à ajouter au bureau"
+
+#: src/files/open_with.zig
+msgid "Choose another app…"
+msgstr "Choisir une autre application…"
+
+#: src/files/app_torrent_rows.zig
+msgid "Choose files"
+msgstr "Choisir les fichiers"
+
+#: src/files/torrents.zig
+msgid "Choose files to download"
+msgstr "Choisir les fichiers à télécharger"
+
+#: src/control_center/sections/appearance.zig
+msgid "Choose file…"
+msgstr "Choisir un fichier…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose folder"
+msgstr "Choisir un dossier"
+
+#: src/control_center/welcome.zig
+msgid "Choose how your desktop works."
+msgstr "Choisissez le fonctionnement de votre bureau."
+
+#: src/printing/cups.zig
+msgid "Choose the actual paper dimensions before printing this test."
+msgstr "Choisissez les dimensions réelles du papier avant d'imprimer ce test."
+
+#: src/control_center/panel.zig
+msgid "Choose the keys for your everyday actions."
+msgstr "Choisissez les touches de vos actions quotidiennes."
+
+#: src/printing/ladder.zig
+msgid "Choose the paper or label size actually loaded in the printer."
+msgstr "Choisissez le format du papier ou des étiquettes réellement chargés dans l'imprimante."
+
+#: src/control_center/sections/portals.zig
+msgid "Choose the services apps use for desktop dialogs. The selected backend must be installed."
+msgstr "Choisissez les services utilisés pour les dialogues des applications. Le moteur sélectionné doit être installé."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose wallpaper folder"
+msgstr "Choisir le dossier des fonds d'écran"
+
+#: src/control_center/sections/users.zig
+msgid "Choose whether to keep the home folder or remove its files."
+msgstr "Choisissez de conserver le dossier personnel ou de supprimer ses fichiers."
+
+#: src/control_center/welcome.zig
+msgid "Choose your window layout"
+msgstr "Choisissez la disposition de vos fenêtres"
+
+#: src/control_center/welcome.zig
+msgid "Classic (stacking)"
+msgstr "Classique (superposition)"
+
+#: src/control_center/search.zig
+msgid "Clear search"
+msgstr "Effacer la recherche"
+
+#: src/editor/app.zig
+msgid "Clipboard selections are limited to 1 MiB."
+msgstr "Les sélections du presse-papiers sont limitées à 1 Mio."
+
+#: src/files/app_keyboard.zig
+msgid "Clipboard text is invalid or too long"
+msgstr "Le texte du presse-papiers est invalide ou trop long"
+
+#: src/files/main.zig
+msgid "Clipboard transfer failed or exceeded 1 MiB"
+msgstr "Échec du transfert du presse-papiers ou dépassement de 1 Mio"
+
+#: src/files/main.zig
+msgid "Clipboard transfer timed out"
+msgstr "Le délai du transfert du presse-papiers a expiré"
+
+#: src/control_center/search_index.zig
+msgid "Clock day"
+msgstr "Jour dans l'horloge"
+
+#: src/control_center/search_index.zig
+msgid "Clock seconds"
+msgstr "Secondes dans l'horloge"
+
+#: src/calculator/client.zig
+msgid "Close"
+msgstr "Fermer"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close Window"
+msgstr "Fermer la fenêtre"
+
+#: src/chrome_tabs.zig
+msgid "Close tab"
+msgstr "Fermer l'onglet"
+
+#: src/files/app_terminal.zig
+msgid "Close terminal session?"
+msgstr "Fermer la session du terminal ?"
+
+#: src/control_center/sections/printers.zig
+msgid "Close test result"
+msgstr "Fermer le résultat du test"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close the focused window."
+msgstr "Fermer la fenêtre active."
+
+#: src/taskbar/window_menu.zig
+msgid "Close window"
+msgstr "Fermer la fenêtre"
+
+#: src/files/app_paint.zig
+msgid "Closing ends this shell and its running jobs."
+msgstr "La fermeture met fin à cet interpréteur de commandes et aux tâches qu'il exécute."
+
+#: src/system_monitor/app.zig
+msgid "Collecting processes…"
+msgstr "Collecte des processus…"
+
+#: src/control_center/sections/display.zig
+msgid "Color temperature"
+msgstr "Température des couleurs"
+
+#: src/printing/options.zig
+msgid "Colour"
+msgstr "Couleur"
+
+#: src/control_center/sections/printers.zig
+msgid "Colour: {colour}"
+msgstr "Couleur : {colour}"
+
+#: src/files/app_torrent_rows.zig
+msgid "Complete"
+msgstr "Terminé"
+
+#: src/files/torrents.zig
+msgid "Complete · Stopped"
+msgstr "Terminé · Arrêté"
+
+#: src/printing/cups.zig
+msgid "Completed"
+msgstr "Terminé"
+
+#: src/control_center/sections/network.zig
+msgid "Configure this network with a network tool"
+msgstr "Configurez ce réseau avec un outil de configuration réseau"
+
+#: src/control_center/panel.zig
+msgid "Configure your desktop canvas and panning area."
+msgstr "Configurez le canevas du bureau et sa zone de déplacement."
+
+#: src/control_center/sections/users.zig
+msgid "Confirm"
+msgstr "Confirmer"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Confirm Pairing"
+msgstr "Confirmer l'association"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm new password"
+msgstr "Confirmer le nouveau mot de passe"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm password"
+msgstr "Confirmer le mot de passe"
+
+#: src/printing/ladder.zig
+msgid "Confirm resolution using the printer's self-test or a measured ruler test."
+msgstr "Confirmez la résolution à l'aide de l'autotest de l'imprimante ou d'un test de règle mesuré."
+
+#: src/files/app_paint.zig
+msgid "Conflict"
+msgstr "Conflit"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connect"
+msgstr "Connecter"
+
+#: src/control_center/panel.zig
+msgid "Connect and manage your Bluetooth devices."
+msgstr "Connectez et gérez vos appareils Bluetooth."
+
+#: src/control_center/sections/network.zig
+msgid "Connect automatically"
+msgstr "Connecter automatiquement"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connected"
+msgstr "Connecté"
+
+#: src/files/app_torrent_rows.zig
+msgid "Connected peers: {peers} · Seeds: {seeds}"
+msgstr "Pairs connectés : {peers} · Sources complètes : {seeds}"
+
+#: src/control_center/sections/printers.zig
+msgid "Connected to CUPS."
+msgstr "Connecté à CUPS."
+
+#: src/network/manager.zig
+msgid "Connected · Saved"
+msgstr "Connecté · Enregistré"
+
+#: src/network/manager.zig
+msgid "Connecting Ethernet…"
+msgstr "Connexion Ethernet…"
+
+#: src/files/app_paint.zig
+msgid "Connecting…"
+msgstr "Connexion…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connection"
+msgstr "Connexion"
+
+#: src/network/manager.zig
+msgid "Connection failed"
+msgstr "Échec de la connexion"
+
+#: src/network/manager.zig
+msgid "Connection failed. Check the password and try again."
+msgstr "Échec de la connexion. Vérifiez le mot de passe et réessayez."
+
+#: src/session/lock.zig
+msgid "Continue"
+msgstr "Continuer"
+
+#: src/files/app_fileops.zig
+msgid "Copied"
+msgstr "Copié"
+
+#: src/files/app_fileops.zig
+msgid "Copied {count} item"
+msgid_plural "Copied {count} items"
+msgstr[0] "{count} élément copié"
+msgstr[1] "{count} éléments copiés"
+
+#: src/desktop/app_actions.zig
+msgid "Copy"
+msgstr "Copier"
+
+#: src/control_center/sections/printers.zig
+msgid "Copy diagnostic report"
+msgstr "Copier le rapport de diagnostic"
+
+#: src/control_center/search_index.zig
+msgid "Corner radius"
+msgstr "Rayon des coins"
+
+#: src/files/appimage.zig
+msgid "Could not add the AppImage to applications"
+msgstr "Impossible d'ajouter l'AppImage aux applications"
+
+#: src/files/app_opening.zig
+msgid "Could not add the application"
+msgstr "Impossible d'ajouter l'application"
+
+#: src/control_center/sections/users.zig
+msgid "Could not allocate locked password storage."
+msgstr "Impossible d'allouer une mémoire protégée pour le mot de passe."
+
+#: src/files/app_terminal.zig
+msgid "Could not allocate terminal"
+msgstr "Impossible d'allouer le terminal"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors. Check your configuration files and permissions."
+msgstr "Impossible d'appliquer les couleurs des applications. Vérifiez vos fichiers de configuration et vos permissions."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors: {reason}. Check your configuration files and permissions."
+msgstr "Impossible d'appliquer les couleurs des applications : {reason}. Vérifiez vos fichiers de configuration et vos permissions."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply or save the display scale."
+msgstr "Impossible d'appliquer ou d'enregistrer l'échelle de l'écran."
+
+#: src/control_center/sections/display.zig
+msgid "Could not apply that display setting."
+msgstr "Impossible d'appliquer ce réglage d'écran."
+
+#: src/printing/admin.zig
+msgid "Could not apply the printer option."
+msgstr "Impossible d'appliquer l'option d'imprimante."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply this choice. Please try again."
+msgstr "Impossible d'appliquer ce choix. Réessayez."
+
+#: src/session/power.zig
+msgid "Could not build the request."
+msgstr "Impossible de construire la requête."
+
+#: src/files/properties.zig
+msgid "Could not change permissions"
+msgstr "Impossible de modifier les permissions"
+
+#: src/printing/admin.zig
+msgid "Could not clear the canonical default override."
+msgstr "Impossible d'effacer la valeur par défaut canonique personnalisée."
+
+#: src/files/app_torrents.zig
+msgid "Could not connect to Transfers"
+msgstr "Impossible de se connecter à Transferts"
+
+#: src/systemd.zig
+msgid "Could not connect to systemd."
+msgstr "Impossible de se connecter à systemd."
+
+#: src/images/app.zig
+msgid "Could not crop this selection."
+msgstr "Impossible de recadrer cette sélection."
+
+#: src/files/app_fileops.zig
+msgid "Could not delete all items"
+msgstr "Impossible de supprimer tous les éléments"
+
+#: src/images/app.zig
+msgid "Could not delete. The file was kept."
+msgstr "Impossible de supprimer. Le fichier a été conservé."
+
+#: src/files/volumes.zig
+msgid "Could not eject {name}"
+msgstr "Impossible d'éjecter {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not empty Trash"
+msgstr "Impossible de vider la corbeille"
+
+#: src/files/archive.zig
+msgid "Could not extract archive"
+msgstr "Impossible d'extraire l'archive"
+
+#: src/files/app_dialogs.zig
+msgid "Could not load applications"
+msgstr "Impossible de charger les applications"
+
+#: src/systemd.zig
+msgid "Could not load services. Try Refresh."
+msgstr "Impossible de charger les services. Essayez d'actualiser."
+
+#: src/files/volumes.zig
+msgid "Could not mount {name}"
+msgstr "Impossible de monter {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not move all items to Trash"
+msgstr "Impossible de déplacer tous les éléments vers la corbeille"
+
+#: src/images/app.zig
+msgid "Could not move to Trash. The file was kept."
+msgstr "Impossible de déplacer vers la corbeille. Le fichier a été conservé."
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Appearance: {error}"
+msgstr "Impossible d'ouvrir Apparence : {error}"
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Desktop Settings: {error}"
+msgstr "Impossible d'ouvrir les paramètres du bureau : {error}"
+
+#: src/files/app_opening.zig
+msgid "Could not open Text Editor"
+msgstr "Impossible d'ouvrir l'éditeur de texte"
+
+#: src/files/app_places.zig
+msgid "Could not open Trash"
+msgstr "Impossible d'ouvrir la corbeille"
+
+#: src/files/archive.zig
+msgid "Could not open archive"
+msgstr "Impossible d'ouvrir l'archive"
+
+#: src/files/app_opening.zig
+msgid "Could not open archive member"
+msgstr "Impossible d'ouvrir le fichier de l'archive"
+
+#: src/pdf/app_document.zig
+msgid "Could not open document."
+msgstr "Impossible d'ouvrir le document."
+
+#: src/files/app_opening.zig
+msgid "Could not open file"
+msgstr "Impossible d'ouvrir le fichier"
+
+#: src/files/app_places.zig
+msgid "Could not open folder"
+msgstr "Impossible d'ouvrir le dossier"
+
+#: src/files/app_opening.zig
+msgid "Could not open folder picker"
+msgstr "Impossible d'ouvrir le sélecteur de dossier"
+
+#: src/files/app_opening.zig
+msgid "Could not open image viewer"
+msgstr "Impossible d'ouvrir la visionneuse d'images"
+
+#: src/files/app_places.zig
+msgid "Could not open new window"
+msgstr "Impossible d'ouvrir une nouvelle fenêtre"
+
+#: src/images/app.zig
+msgid "Could not open the delete dialog."
+msgstr "Impossible d'ouvrir le dialogue de suppression."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Could not open the file chooser."
+msgstr "Impossible d'ouvrir le sélecteur de fichiers."
+
+#: src/systemd.zig
+msgid "Could not open the service edit for authorization."
+msgstr "Impossible d'ouvrir la modification du service pour autorisation."
+
+#: src/files/open_with.zig
+msgid "Could not open with this app. Choose another."
+msgstr "Impossible d'ouvrir avec cette application. Choisissez-en une autre."
+
+#: src/pdf/app_document.zig
+msgid "Could not prepare password. Please try again."
+msgstr "Impossible de préparer le mot de passe. Réessayez."
+
+#: src/control_center/sections/users.zig
+msgid "Could not prepare the group update."
+msgstr "Impossible de préparer la modification des groupes."
+
+#: src/session/power.zig
+msgid "Could not query logind."
+msgstr "Impossible d'interroger logind."
+
+#: src/session/power.zig
+msgid "Could not reach logind."
+msgstr "Impossible de joindre logind."
+
+#: src/session/power.zig
+msgid "Could not reach the system's power service."
+msgstr "Impossible de joindre le service d'alimentation du système."
+
+#: src/network/manager.zig
+msgid "Could not read Wi-Fi networks"
+msgstr "Impossible de lire les réseaux Wi-Fi"
+
+#: src/files/app_dialogs.zig
+msgid "Could not read file properties"
+msgstr "Impossible de lire les propriétés du fichier"
+
+#: src/files/app_opening.zig
+msgid "Could not read folder picker result"
+msgstr "Impossible de lire le résultat du sélecteur de dossier"
+
+#: src/control_center/sections/users.zig
+msgid "Could not read login accounts."
+msgstr "Impossible de lire les comptes de connexion."
+
+#: src/files/properties.zig
+msgid "Could not read permissions"
+msgstr "Impossible de lire les permissions"
+
+#: src/files/worker.zig
+msgid "Could not read recent files"
+msgstr "Impossible de lire les fichiers récents"
+
+#: src/files/appimage.zig
+msgid "Could not read the AppImage's application details"
+msgstr "Impossible de lire les détails de l'application dans l'AppImage"
+
+#: src/files/main.zig
+msgid "Could not read the dropped items"
+msgstr "Impossible de lire les éléments déposés"
+
+#: src/images/app.zig
+msgid "Could not read this image"
+msgstr "Impossible de lire cette image"
+
+#: src/printing/admin.zig
+msgid "Could not request CUPS start."
+msgstr "Impossible de demander le démarrage de CUPS."
+
+#: src/systemd.zig
+msgid "Could not request authentication. Check that polkit is running."
+msgstr "Impossible de demander l'authentification. Vérifiez que polkit est actif."
+
+#: src/images/app.zig
+msgid "Could not rotate: not enough memory."
+msgstr "Rotation impossible : mémoire insuffisante."
+
+#: src/files/git.zig
+msgid "Could not run git"
+msgstr "Impossible d'exécuter git"
+
+#: src/systemd.zig
+msgid "Could not save Notify. Service editing requires systemd 256 or newer."
+msgstr "Impossible d'enregistrer Notify. La modification des services nécessite systemd 256 ou plus récent."
+
+#: src/files/app_places.zig
+msgid "Could not save Places"
+msgstr "Impossible d'enregistrer les emplacements"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save desktop mode."
+msgstr "Impossible d'enregistrer le mode du bureau."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save floating apps."
+msgstr "Impossible d'enregistrer les applications flottantes."
+
+#: src/control_center/sections/portals.zig
+msgid "Could not save portal preferences. Check your configuration directory."
+msgstr "Impossible d'enregistrer les préférences des portails. Vérifiez votre dossier de configuration."
+
+#: src/control_center/panel.zig
+msgid "Could not save the Files setting."
+msgstr "Impossible d'enregistrer le réglage de Fichiers."
+
+#: src/control_center/welcome.zig
+msgid "Could not save the default app. Please try again."
+msgstr "Impossible d'enregistrer l'application par défaut. Réessayez."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Could not save the default application."
+msgstr "Impossible d'enregistrer l'application par défaut."
+
+#: src/control_center/sections/display.zig
+msgid "Could not save the display setting."
+msgstr "Impossible d'enregistrer le réglage d'écran."
+
+#: src/files/app.zig
+msgid "Could not save view preferences"
+msgstr "Impossible d'enregistrer les préférences d'affichage"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save window spacing."
+msgstr "Impossible d'enregistrer l'espacement des fenêtres."
+
+#: src/control_center/welcome.zig
+msgid "Could not save your layout. Please try again."
+msgstr "Impossible d'enregistrer votre disposition. Réessayez."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save. Check the configuration file and try again."
+msgstr "Échec de l'enregistrement. Vérifiez le fichier de configuration et réessayez."
+
+#: src/images/app.zig
+msgid "Could not save. Check the folder and permissions."
+msgstr "Échec de l'enregistrement. Vérifiez le dossier et les permissions."
+
+#: src/printing/admin.zig
+msgid "Could not send printer administration request."
+msgstr "Impossible d'envoyer la requête d'administration de l'imprimante."
+
+#: src/polkit/dialog.zig
+msgid "Could not send response. Please try again."
+msgstr "Impossible d'envoyer la réponse. Réessayez."
+
+#: src/network/manager.zig
+msgid "Could not send the Ethernet request."
+msgstr "Impossible d'envoyer la requête Ethernet."
+
+#: src/network/manager.zig
+msgid "Could not send the Wi-Fi request"
+msgstr "Impossible d'envoyer la requête Wi-Fi"
+
+#: src/systemd.zig
+msgid "Could not send the service action."
+msgstr "Impossible d'envoyer l'action sur le service."
+
+#: src/files/worker.zig
+msgid "Could not sort folder names"
+msgstr "Impossible de trier les noms de dossiers"
+
+#: src/printing/admin.zig
+msgid "Could not start CUPS administration."
+msgstr "Impossible de démarrer l'administration CUPS."
+
+#: src/files/app_torrents.zig
+msgid "Could not start Transfers"
+msgstr "Impossible de démarrer Transferts"
+
+#: src/images/app.zig
+msgid "Could not start deleting this file."
+msgstr "Impossible de lancer la suppression de ce fichier."
+
+#: src/files/app_opening.zig
+msgid "Could not start extraction"
+msgstr "Impossible de lancer l'extraction"
+
+#: src/files/main.zig
+msgid "Could not start file drag"
+msgstr "Impossible de lancer le déplacement du fichier"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not start printer diagnostics."
+msgstr "Impossible de démarrer le diagnostic de l'imprimante."
+
+#: src/images/app.zig
+msgid "Could not start saving."
+msgstr "Impossible de lancer l'enregistrement."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the authentication request."
+msgstr "Impossible de lancer la demande d'authentification."
+
+#: src/session/power.zig
+msgid "Could not start the power command."
+msgstr "Impossible de lancer la commande d'alimentation."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the request."
+msgstr "Impossible de lancer la requête."
+
+#: src/systemd.zig
+msgid "Could not subscribe to service updates."
+msgstr "Impossible de s'abonner aux mises à jour des services."
+
+#: src/files/volumes.zig
+msgid "Could not use the device"
+msgstr "Impossible d'utiliser le périphérique"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers before changing the identifier."
+msgstr "Impossible de vérifier les imprimantes existantes avant de modifier l'identifiant."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers. Refresh before creating a queue."
+msgstr "Impossible de vérifier les imprimantes existantes. Actualisez avant de créer une file."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify the printer's jobs. Refresh before changing its identifier."
+msgstr "Impossible de vérifier les tâches de l'imprimante. Actualisez avant de modifier son identifiant."
+
+#: src/session/power.zig
+msgid "Could not watch the power command."
+msgstr "Impossible de surveiller la commande d'alimentation."
+
+#: src/files/archive.zig
+msgid "Could not write extracted file (check space and permissions)"
+msgstr "Impossible d'écrire le fichier extrait (vérifiez l'espace et les permissions)"
+
+#: src/desktop/watcher.zig
+msgid "Could not {operation}: {error}"
+msgstr "Échec de {operation} : {error}"
+
+#: src/control_center/sections/printers.zig
+msgid "Create printer"
+msgstr "Créer l'imprimante"
+
+#: src/control_center/sections/users.zig
+msgid "Create user"
+msgstr "Créer l'utilisateur"
+
+#: src/files/properties.zig
+msgid "Created"
+msgstr "Créé"
+
+#: src/files/app_dialogs.zig
+msgid "Created and switched to {name}"
+msgstr "{name} créé et sélectionné"
+
+#: src/images/app.zig
+msgid "Crop"
+msgstr "Recadrer"
+
+#: src/control_center/sections/region.zig
+msgid "Currency"
+msgstr "Monnaie"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current font"
+msgstr "Police actuelle"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current theme"
+msgstr "Thème actuel"
+
+#: src/control_center/sections/region.zig
+msgid "Current: {locale}"
+msgstr "Actuel : {locale}"
+
+#: src/control_center/search_index.zig
+msgid "Cursor theme"
+msgstr "Thème du curseur"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom"
+msgstr "Personnalisé"
+
+#: src/control_center/sections/portals.zig
+msgid "Custom ({name})"
+msgstr "Personnalisé ({name})"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom size"
+msgstr "Taille personnalisée"
+
+#: src/desktop/app_actions.zig
+msgid "Cut"
+msgstr "Couper"
+
+#: src/files/app_fileops.zig
+msgid "Cut {count} item"
+msgid_plural "Cut {count} items"
+msgstr[0] "{count} élément coupé"
+msgstr[1] "{count} éléments coupés"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the next existing workspace."
+msgstr "Passer à l'espace de travail existant suivant."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the previous existing workspace."
+msgstr "Passer à l'espace de travail existant précédent."
+
+#: src/battery_popup.zig
+msgid "Cycles"
+msgstr "Cycles"
+
+#: src/files/app_sidebar_paint.zig
+msgid "DEVICES"
+msgstr "PÉRIPHÉRIQUES"
+
+#: src/control_center/sections/display.zig
+msgid "DISPLAY"
+msgstr "ÉCRAN"
+
+#: src/control_center/sections/network.zig
+msgid "DNS servers"
+msgstr "Serveurs DNS"
+
+#: src/control_center/search_index.zig
+msgid "Dark mode"
+msgstr "Mode sombre"
+
+#: src/printing/options.zig
+msgid "Darkness"
+msgstr "Assombrissement"
+
+#: src/control_center/sections/region.zig
+msgid "Date"
+msgstr "Date"
+
+#: src/control_center/sections/region.zig
+msgid "Date format for the taskbar; date, number and currency formats for new apps."
+msgstr "Format de date de la barre des tâches ; formats des dates, nombres et monnaies pour les nouvelles applications."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease display brightness."
+msgstr "Réduire la luminosité de l'écran."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease system volume."
+msgstr "Réduire le volume du système."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease the focused window's size."
+msgstr "Réduire la taille de la fenêtre active."
+
+#: src/control_center/sections/appearance.zig
+msgid "Default"
+msgstr "Par défaut"
+
+#: src/control_center/sections/appearance.zig
+msgid "Default R logo · PNG or SVG"
+msgstr "Logo R par défaut · PNG ou SVG"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Default applications"
+msgstr "Applications par défaut"
+
+#: src/control_center/welcome.zig
+msgid "Default apps"
+msgstr "Applis par défaut"
+
+#: src/control_center/search_index.zig
+msgid "Default file manager"
+msgstr "Gestionnaire de fichiers par défaut"
+
+#: src/control_center/search_index.zig
+msgid "Default terminal"
+msgstr "Terminal par défaut"
+
+#: src/control_center/sections/services.zig
+msgid "Deferred"
+msgstr "Différé"
+
+#: src/delete_dialog.zig
+msgid "Delete file?"
+msgstr "Supprimer le fichier ?"
+
+#: src/control_center/sections/users.zig
+msgid "Delete files"
+msgstr "Supprimer les fichiers"
+
+#: src/delete_dialog.zig
+msgid "Delete folder?"
+msgstr "Supprimer le dossier ?"
+
+#: src/delete_dialog.zig
+msgid "Delete items?"
+msgstr "Supprimer les éléments ?"
+
+#: src/delete_dialog.zig
+msgid "Delete permanently"
+msgstr "Supprimer définitivement"
+
+#: src/control_center/sections/users.zig
+msgid "Delete user…"
+msgstr "Supprimer l'utilisateur…"
+
+#: src/control_center/sections/users.zig
+msgid "Delete {name}?"
+msgstr "Supprimer {name} ?"
+
+#: src/session/power.zig
+msgid "Denied by policy"
+msgstr "Refusé par la politique"
+
+#: src/session/power.zig
+msgid "Denied by system policy."
+msgstr "Refusé par la politique du système."
+
+#: src/control_center/panel.zig
+msgid "Desktop"
+msgstr "Bureau"
+
+#: src/desktop/app_actions.zig
+msgid "Desktop Settings"
+msgstr "Paramètres du bureau"
+
+#: src/control_center/search_index.zig
+msgid "Desktop Switching"
+msgstr "Changement de bureau"
+
+#: src/control_center/sections/display.zig
+msgid "Desktop icons appear on this display."
+msgstr "Les icônes du bureau apparaissent sur cet écran."
+
+#: src/control_center/search_index.zig
+msgid "Desktop mode"
+msgstr "Mode du bureau"
+
+#: src/control_center/search_index.zig
+msgid "Desktop portals"
+msgstr "Portails du bureau"
+
+#: src/control_center/search_index.zig
+msgid "Desktop switching"
+msgstr "Changement de bureau"
+
+#: src/files/app_git_sidebar.zig
+msgid "Detached {count}"
+msgstr "Détachés : {count}"
+
+#: src/control_center/sections/users.zig
+msgid "Details"
+msgstr "Détails"
+
+#: src/files/app_places.zig
+msgid "Device"
+msgstr "Périphérique"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Device Settings"
+msgstr "Paramètres du périphérique"
+
+#: src/control_center/sections/printers.zig
+msgid "Device node"
+msgstr "Nœud du périphérique"
+
+#: src/control_center/sections/printers.zig
+msgid "Did the test produce printed output? CUPS completion alone cannot tell."
+msgstr "Le test a-t-il produit une impression ? La fin d'une tâche CUPS ne suffit pas à le savoir."
+
+#: src/control_center/search_index.zig
+msgid "Dim inactive windows"
+msgstr "Assombrir les fenêtres inactives"
+
+#: src/control_center/sections/printers.zig
+msgid "Disable printer"
+msgstr "Désactiver l'imprimante"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disable shortcut"
+msgstr "Désactiver le raccourci"
+
+#: src/control_center/search_index.zig
+msgid "Disable touchpad while typing"
+msgstr "Désactiver le pavé tactile pendant la frappe"
+
+#: src/control_center/sections/services.zig
+msgid "Disabled"
+msgstr "Désactivé"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disabled shortcut."
+msgstr "Raccourci désactivé."
+
+#: src/editor/app.zig
+msgid "Discard"
+msgstr "Abandonner"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Disconnect"
+msgstr "Déconnecter"
+
+#: src/files/app_torrent_rows.zig
+msgid "Disconnected"
+msgstr "Déconnecté"
+
+#: src/network/manager.zig
+msgid "Disconnecting Ethernet…"
+msgstr "Déconnexion Ethernet…"
+
+#: src/network/manager.zig
+msgid "Disconnecting…"
+msgstr "Déconnexion…"
+
+#: src/printing/admin.zig
+msgid "Discovering printers; authorization may be required…"
+msgstr "Recherche des imprimantes ; une autorisation peut être nécessaire…"
+
+#: src/system_monitor/app.zig
+msgid "Disk wait"
+msgstr "Attente disque"
+
+#: src/control_center/panel.zig
+msgid "Display"
+msgstr "Écran"
+
+#: src/control_center/search_index.zig
+msgid "Display arrangement"
+msgstr "Disposition des écrans"
+
+#: src/control_center/sections/printers.zig
+msgid "Display name"
+msgstr "Nom affiché"
+
+#: src/control_center/search_index.zig
+msgid "Display scale"
+msgstr "Échelle de l'écran"
+
+#: src/control_center/panel.zig
+msgid "Display settings"
+msgstr "Paramètres d'écran"
+
+#: src/control_center/panel.zig
+msgid "Displays"
+msgstr "Écrans"
+
+#: src/control_center/sections/display.zig
+msgid "Do nothing"
+msgstr "Ne rien faire"
+
+#: src/control_center/search_index.zig
+msgid "Dock"
+msgstr "Dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock active highlight"
+msgstr "Surbrillance de l'application active du dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock auto hide"
+msgstr "Masquage automatique du dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock corner radius"
+msgstr "Rayon des coins du dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock height"
+msgstr "Hauteur du dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock hover zoom"
+msgstr "Agrandissement du dock au survol"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock hover zoom (1.00× disables)"
+msgstr "Agrandissement du dock au survol (1,00× désactive)"
+
+#: src/control_center/search_index.zig
+msgid "Dock opacity"
+msgstr "Opacité du dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock position"
+msgstr "Position du dock"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock size"
+msgstr "Taille du dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock trash"
+msgstr "Corbeille du dock"
+
+#: src/pdf/app_document.zig
+msgid "Document is encrypted. Enter password:"
+msgstr "Le document est chiffré. Saisissez le mot de passe :"
+
+#: src/files/app.zig
+msgid "Documents"
+msgstr "Documents"
+
+#: src/control_center/search_index.zig
+msgid "Dodge file drags"
+msgstr "Éviter les fichiers glissés"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Does this code match the code on your device?"
+msgstr "Ce code correspond-il à celui de votre appareil ?"
+
+#: src/control_center/sections/users.zig
+msgid "Done"
+msgstr "Terminé"
+
+#: src/files/app_items.zig
+msgid "Download"
+msgstr "Télécharger"
+
+#: src/files/app_torrents.zig
+msgid "Download to folder"
+msgstr "Télécharger dans le dossier"
+
+#: src/files/torrents.zig
+msgid "Downloaded · Seeding"
+msgstr "Téléchargé · En partage"
+
+#: src/files/app_torrent_rows.zig
+msgid "Downloading"
+msgstr "Téléchargement"
+
+#: src/files/app.zig
+msgid "Downloads"
+msgstr "Téléchargements"
+
+#: src/files/app_torrents.zig
+msgid "Downloads continue after closing Files."
+msgstr "Les téléchargements continuent après la fermeture de Fichiers."
+
+#: src/printing/options.zig
+msgid "Draft"
+msgstr "Brouillon"
+
+#: src/images/app.zig
+msgid "Drag a larger crop selection."
+msgstr "Sélectionnez une plus grande zone à recadrer."
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."
+msgstr "Faites glisser un élément pour le réorganiser ou le changer de section. Désactivez-le pour le masquer. La batterie apparaît si elle est disponible."
+
+#: src/control_center/sections/display.zig
+msgid "Drag displays to match your desk. Click one to edit it."
+msgstr "Faites glisser les écrans selon leur disposition sur votre bureau. Cliquez sur un écran pour le modifier."
+
+#: src/control_center/search_index.zig
+msgid "Drag feedback"
+msgstr "Retour visuel du glissement"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag items here"
+msgstr "Faire glisser des éléments ici"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag lift scale"
+msgstr "Échelle de soulèvement au glissement"
+
+#: src/control_center/search_index.zig
+msgid "Drag scale"
+msgstr "Échelle pendant le glissement"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag to move"
+msgstr "Faire glisser pour déplacer"
+
+#: src/screenshot/selector.zig
+msgid "Drag to save and copy · Esc to cancel"
+msgstr "Faire glisser pour enregistrer et copier · Échap pour annuler"
+
+#: src/images/app.zig
+msgid "Drag to select · Enter: crop · Esc: cancel"
+msgstr "Faire glisser pour sélectionner · Entrée : recadrer · Échap : annuler"
+
+#: src/control_center/sections/desktop.zig
+msgid "Dragging stops on release. Edges settle with a short animation."
+msgstr "Le glissement s'arrête au relâchement. Les bords se stabilisent avec une courte animation."
+
+#: src/control_center/sections/printers.zig
+msgid "Driver"
+msgstr "Pilote"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Choose files first"
+msgstr "Temps restant : choisir d'abord les fichiers"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Complete"
+msgstr "Temps restant : terminé"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Paused"
+msgstr "Temps restant : en pause"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Unknown · waiting for data"
+msgstr "Temps restant : inconnu · attente de données"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}h {value2}m"
+msgstr "Temps restant : {value} h {value2} min"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}m {value2}s"
+msgstr "Temps restant : {value} min {value2} s"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}s"
+msgstr "Temps restant : {value} s"
+
+#: src/control_center/sections/appearance.zig
+msgid "Edge glow"
+msgstr "Lueur des bords"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Edit shortcut"
+msgstr "Modifier le raccourci"
+
+#: src/images/app.zig
+msgid "Edits undone."
+msgstr "Modifications annulées."
+
+#: src/files/app_model.zig
+msgid "Eject"
+msgstr "Éjecter"
+
+#: src/files/app_places.zig
+msgid "Ejected"
+msgstr "Éjecté"
+
+#: src/files/app_places.zig
+msgid "Ejecting…"
+msgstr "Éjection…"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash"
+msgstr "Vider la corbeille"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash?"
+msgstr "Vider la corbeille ?"
+
+#: src/desktop/app_actions.zig
+msgid "Empty Trash…"
+msgstr "Vider la corbeille…"
+
+#: src/printing/ladder.zig
+msgid "Enable acceptance of jobs when the printer is ready."
+msgstr "Activez l'acceptation des tâches lorsque l'imprimante est prête."
+
+#: src/control_center/sections/region.zig
+msgid "Enable {locale} in your system’s locale settings to use it in other apps and regional formats."
+msgstr "Activez {locale} dans les paramètres régionaux du système pour l'utiliser dans les autres applications et les formats régionaux."
+
+#: src/control_center/sections/services.zig
+msgid "Enabled"
+msgstr "Activé"
+
+#: src/system_monitor/app.zig
+msgid "End process"
+msgstr "Terminer le processus"
+
+#: src/files/app_terminal.zig
+msgid "Enlarge this window to show the terminal"
+msgstr "Agrandissez cette fenêtre pour afficher le terminal"
+
+#: src/calculator/app.zig
+msgid "Enter = Esc clear F9 ± % = ÷100"
+msgstr "Entrée = Échap effacer F9 ± % = ÷100"
+
+#: src/polkit/dialog.zig
+msgid "Enter Password"
+msgstr "Saisir le mot de passe"
+
+#: src/images/app.zig
+msgid "Enter a filename or an absolute path."
+msgstr "Saisissez un nom de fichier ou un chemin absolu."
+
+#: src/images/app.zig
+msgid "Enter a filename."
+msgstr "Saisissez un nom de fichier."
+
+#: src/network/manager.zig
+msgid "Enter a network name."
+msgstr "Saisissez un nom de réseau."
+
+#: src/network/manager.zig
+msgid "Enter a password (1–63 bytes)."
+msgstr "Saisissez un mot de passe (1 à 63 octets)."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a supported printer address without credentials."
+msgstr "Saisissez une adresse d'imprimante prise en charge, sans identifiants."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a valid CUPS administrator username and password."
+msgstr "Saisissez un nom d'utilisateur et un mot de passe d'administration CUPS valides."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid full name."
+msgstr "Saisissez un nom complet valide."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid username and full name."
+msgstr "Saisissez un nom d'utilisateur et un nom complet valides."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter an account permitted to administer the local CUPS server."
+msgstr "Saisissez un compte autorisé à administrer le serveur CUPS local."
+
+#: src/files/app_paint.zig
+msgid "Enter confirms · Esc cancels"
+msgstr "Entrée confirme · Échap annule"
+
+#: src/control_center/sections/users.zig
+msgid "Enter matching passwords."
+msgstr "Saisissez des mots de passe identiques."
+
+#: src/network/popup.zig
+msgid "Enter network name"
+msgstr "Saisir le nom du réseau"
+
+#: src/control_center/sections/users.zig
+msgid "Enter new password"
+msgstr "Saisir le nouveau mot de passe"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Enter or leave fullscreen."
+msgstr "Activer ou quitter le plein écran."
+
+#: src/control_center/sections/users.zig
+msgid "Enter password"
+msgstr "Saisir le mot de passe"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's PIN"
+msgstr "Saisir le code PIN de l'appareil"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's six-digit passkey"
+msgstr "Saisir le code à six chiffres de l'appareil"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter this code on your device, then press Enter."
+msgstr "Saisissez ce code sur votre appareil, puis appuyez sur Entrée."
+
+#: src/polkit/dialog.zig
+msgid "Enter your response"
+msgstr "Saisir votre réponse"
+
+#: src/files/app_torrent_rows.zig
+msgid "Error"
+msgstr "Erreur"
+
+#: src/files/app_paint.zig
+msgid "Error: {value}"
+msgstr "Erreur : {value}"
+
+#: src/control_center/search_index.zig
+msgid "Ethernet"
+msgstr "Ethernet"
+
+#: src/network/manager.zig
+msgid "Ethernet adapter was removed."
+msgstr "L'adaptateur Ethernet a été retiré."
+
+#: src/network/manager.zig
+msgid "Ethernet connection timed out. Check the cable and try again."
+msgstr "Le délai de connexion Ethernet a expiré. Vérifiez le câble et réessayez."
+
+#: src/network/manager.zig
+msgid "Ethernet could not connect. Check the cable and connection settings."
+msgstr "Impossible de connecter Ethernet. Vérifiez le câble et les paramètres de connexion."
+
+#: src/network/manager.zig
+msgid "Ethernet request failed. Check permissions and try again."
+msgstr "Échec de la requête Ethernet. Vérifiez les permissions et réessayez."
+
+#: src/control_center/panel.zig
+msgid "Everyday controls, all in one place."
+msgstr "Tous les réglages du quotidien au même endroit."
+
+#: src/control_center/sections/network.zig
+msgid "Excellent"
+msgstr "Excellent"
+
+#: src/files/properties.zig
+msgid "Execute"
+msgstr "Exécuter"
+
+#: src/control_center/sections/desktop.zig
+msgid "Existing windows outside a smaller canvas stay reachable."
+msgstr "Les fenêtres hors d'un canevas réduit restent accessibles."
+
+#: src/system_monitor/app.zig
+msgid "Exited"
+msgstr "Terminé"
+
+#: src/calculator/model.zig
+msgid "Expression is full"
+msgstr "L'expression est trop longue"
+
+#: src/files/app_model.zig
+msgid "Extract"
+msgstr "Extraire"
+
+#: src/files/app_model.zig
+msgid "Extract to…"
+msgstr "Extraire vers…"
+
+#: src/files/ops.zig
+msgid "Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Extraits : {completed}. Ignorés : {skipped}. Échecs : {failed}. Restants : {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Extracting {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Extraction {current}/{total} : {name}… (Échap pour annuler)"
+
+#: src/files/archive.zig
+msgid "Extraction cancelled"
+msgstr "Extraction annulée"
+
+#: src/control_center/sections/services.zig
+msgid "Failed"
+msgstr "Échec"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create file"
+msgstr "Impossible de créer le fichier"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create folder"
+msgstr "Impossible de créer le dossier"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to rename"
+msgstr "Échec du renommage"
+
+#: src/files/app_fileops.zig
+msgid "Failed to start transfer job"
+msgstr "Impossible de lancer la tâche de transfert"
+
+#: src/files/torrents.zig
+msgid "Fetching file list…"
+msgstr "Récupération de la liste des fichiers…"
+
+#: src/delete_dialog.zig
+msgid "File"
+msgstr "Fichier"
+
+#: src/files/app_paint.zig
+msgid "File '{value}' already exists in destination."
+msgstr "Le fichier « {value} » existe déjà à destination."
+
+#: src/files/app_dialogs.zig
+msgid "File Conflict"
+msgstr "Conflit de fichiers"
+
+#: src/control_center/sections/default_apps.zig
+msgid "File Manager"
+msgstr "Gestionnaire de fichiers"
+
+#: src/files/app_dialogs.zig
+msgid "File already exists"
+msgstr "Le fichier existe déjà"
+
+#: src/editor/app.zig
+msgid "File changed on disk. Use Save As to keep your edits in another file."
+msgstr "Le fichier a changé sur le disque. Utilisez « Enregistrer sous » pour conserver vos modifications dans un autre fichier."
+
+#: src/files/app_dialogs.zig
+msgid "File created"
+msgstr "Fichier créé"
+
+#: src/control_center/search_index.zig
+msgid "File dialogs"
+msgstr "Dialogues de fichiers"
+
+#: src/files/app_chooser.zig
+msgid "File name:"
+msgstr "Nom du fichier :"
+
+#: src/files/archive.zig
+msgid "File no longer exists in the archive"
+msgstr "Le fichier n'existe plus dans l'archive"
+
+#: src/pdf/app_document.zig
+msgid "File not found."
+msgstr "Fichier introuvable."
+
+#: src/desktop/watcher.zig
+msgid "File operation failed"
+msgstr "Échec de l'opération sur les fichiers"
+
+#: src/delete_dialog.zig
+msgid "Files and folders in this selection"
+msgstr "Fichiers et dossiers de cette sélection"
+
+#: src/files/app_paint.zig
+msgid "Filter"
+msgstr "Filtrer"
+
+#: src/editor/app.zig
+msgid "Find"
+msgstr "Rechercher"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers"
+msgstr "Rechercher les imprimantes disponibles"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers again and choose the current discovered device."
+msgstr "Recherchez de nouveau les imprimantes disponibles et choisissez le périphérique découvert actuel."
+
+#: src/pdf/app_paint.zig
+msgid "Find in document..."
+msgstr "Rechercher dans le document…"
+
+#: src/pdf/app_paint.zig
+msgid "Find ▲"
+msgstr "Rechercher ▲"
+
+#: src/editor/app.zig
+msgid "Find…"
+msgstr "Rechercher…"
+
+#: src/control_center/sections/printers.zig
+msgid "Finish or cancel the printer's jobs before changing its identifier."
+msgstr "Terminez ou annulez les tâches de l'imprimante avant de modifier son identifiant."
+
+#: src/editor/app.zig
+msgid "Finish the file dialog or operation before closing."
+msgstr "Terminez le dialogue de fichiers ou l'opération avant de fermer."
+
+#: src/files/app_places.zig
+msgid "Finish the running file operation first"
+msgstr "Terminez d'abord l'opération sur les fichiers en cours"
+
+#: src/control_center/sections/region.zig
+msgid "First day of the week"
+msgstr "Premier jour de la semaine"
+
+#: src/control_center/search_index.zig
+msgid "First day of week"
+msgstr "Premier jour de la semaine"
+
+#: src/images/app.zig
+msgid "Fit"
+msgstr "Ajuster"
+
+#: src/pdf/app_paint.zig
+msgid "Fit page"
+msgstr "Ajuster à la page"
+
+#: src/pdf/app_paint.zig
+msgid "Fit width"
+msgstr "Ajuster à la largeur"
+
+#: src/start_menu/panel.zig
+msgid "Five applications already pinned"
+msgstr "Cinq applications sont déjà épinglées"
+
+#: src/control_center/search_index.zig
+msgid "Fixed desktop icons"
+msgstr "Icônes du bureau fixes"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped"
+msgstr "Inversé"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 180°"
+msgstr "Inversé à 180°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 270°"
+msgstr "Inversé à 270°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 90°"
+msgstr "Inversé à 90°"
+
+#: src/control_center/sections/desktop.zig
+msgid "Floating"
+msgstr "Flottant"
+
+#: src/control_center/search_index.zig
+msgid "Floating apps"
+msgstr "Applications flottantes"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Down"
+msgstr "Activer la fenêtre en dessous"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Left"
+msgstr "Activer la fenêtre à gauche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Next"
+msgstr "Activer la fenêtre suivante"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Prev"
+msgstr "Activer la fenêtre précédente"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Right"
+msgstr "Activer la fenêtre à droite"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Up"
+msgstr "Activer la fenêtre au-dessus"
+
+#: src/control_center/sections/appearance.zig
+msgid "Focus camera"
+msgstr "Caméra de focus"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window above."
+msgstr "Activer la fenêtre au-dessus."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window below."
+msgstr "Activer la fenêtre en dessous."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the left."
+msgstr "Activer la fenêtre à gauche."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the right."
+msgstr "Activer la fenêtre à droite."
+
+#: src/control_center/search_index.zig
+msgid "Focus zoom"
+msgstr "Zoom du focus"
+
+#: src/desktop/app_paint.zig
+msgid "Folder"
+msgstr "Dossier"
+
+#: src/files/app_dialogs.zig
+msgid "Folder already exists"
+msgstr "Le dossier existe déjà"
+
+#: src/files/app_dialogs.zig
+msgid "Folder created"
+msgstr "Dossier créé"
+
+#: src/files/worker.zig
+msgid "Folder not found"
+msgstr "Dossier introuvable"
+
+#: src/delete_dialog.zig
+msgid "Folder · includes its contents"
+msgstr "Dossier · inclut son contenu"
+
+#: src/files/app_chooser.zig
+msgid "Folder:"
+msgstr "Dossier :"
+
+#: src/files/app_menu.zig
+msgid "Folders only"
+msgstr "Dossiers uniquement"
+
+#: src/control_center/search_index.zig
+msgid "Font"
+msgstr "Police"
+
+#: src/control_center/search_index.zig
+msgid "Font size"
+msgstr "Taille de la police"
+
+#: src/control_center/sections/appearance.zig
+msgid "Fonts & cursor"
+msgstr "Polices et curseur"
+
+#: src/taskbar/window_menu.zig
+msgid "Force Close"
+msgstr "Forcer la fermeture"
+
+#: src/system_monitor/app.zig
+msgid "Force quit"
+msgstr "Forcer l'arrêt"
+
+#: src/system_monitor/app.zig
+msgid "Force quit requested"
+msgstr "Arrêt forcé demandé"
+
+#: src/system_monitor/app.zig
+msgid "Force quit this process?"
+msgstr "Forcer l'arrêt de ce processus ?"
+
+#: src/system_monitor/app.zig
+msgid "Force quit…"
+msgstr "Forcer l'arrêt…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget Device"
+msgstr "Oublier l'appareil"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget this device? Pair it again to reconnect."
+msgstr "Oublier cet appareil ? Associez-le de nouveau pour vous reconnecter."
+
+#: src/control_center/sections/region.zig
+msgid "Formats Preview"
+msgstr "Aperçu des formats"
+
+#: src/files/app_torrents.zig
+msgid "Forward"
+msgstr "Suivant"
+
+#: src/control_center/sections/region.zig
+msgid "Friday"
+msgstr "Vendredi"
+
+#: src/screenshot/selector.zig
+msgid "Full Screen"
+msgstr "Plein écran"
+
+#: src/battery_popup.zig
+msgid "Full capacity"
+msgstr "Capacité totale"
+
+#: src/control_center/sections/users.zig
+msgid "Full name"
+msgstr "Nom complet"
+
+#: src/taskbar/battery.zig
+msgid "Fully Charged"
+msgstr "Charge complète"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."
+msgstr "Couleurs GTK appliquées. Redémarrez les applications GTK. Les applications ayant leurs propres styles ou réglages d'isolation peuvent différer."
+
+#: src/control_center/sections/desktop.zig
+msgid "Gap ({n} px)"
+msgstr "Espacement ({n} px)"
+
+#: src/control_center/sections/network.zig
+msgid "Gateway"
+msgstr "Passerelle"
+
+#: src/control_center/panel.zig
+msgid "General"
+msgstr "Général"
+
+#: src/files/app_layout.zig
+msgid "Git"
+msgstr "Git"
+
+#: src/files/app_paint.zig
+msgid "Git View"
+msgstr "Vue Git"
+
+#: src/control_center/sections/network.zig
+msgid "Good"
+msgstr "Bon"
+
+#: src/files/app_torrents.zig
+msgid "Grid"
+msgstr "Grille"
+
+#: src/files/properties.zig
+msgid "Group"
+msgstr "Groupe"
+
+#: src/control_center/sections/users.zig
+msgid "Groups"
+msgstr "Groupes"
+
+#: src/control_center/sections/network.zig
+msgid "Hardware blocked"
+msgstr "Bloqué matériellement"
+
+#: src/printing/ladder.zig
+msgid "Have an administrator inspect the node; never write print data to a regular file."
+msgstr "Demandez à un administrateur d'examiner le nœud ; n'écrivez jamais de données d'impression dans un fichier ordinaire."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Headset · Audio and microphone"
+msgstr "Casque-micro · Audio et microphone"
+
+#: src/battery_popup.zig
+msgid "Health"
+msgstr "État de santé"
+
+#: src/printing/cups.zig
+msgid "Held"
+msgstr "Retenu"
+
+#: src/control_center/sections/desktop.zig
+msgid "Hide after"
+msgstr "Masquer après"
+
+#: src/printing/options.zig
+msgid "High"
+msgstr "Élevée"
+
+#: src/control_center/sections/appearance.zig
+msgid "Highlight active app"
+msgstr "Mettre l'application active en évidence"
+
+#: src/control_center/sections/desktop.zig
+msgid "Highlighted: bottom-left screen"
+msgstr "En évidence : écran en bas à gauche"
+
+#: src/desktop/watcher.zig
+msgid "Home"
+msgstr "Dossier personnel"
+
+#: src/control_center/sections/desktop.zig
+msgid "Horizontal Pan"
+msgstr "Déplacement horizontal"
+
+#: src/control_center/sections/desktop.zig
+msgid "How long Super + arrow keys take to slide to the next desktop."
+msgstr "Durée du passage au bureau suivant avec Super et les touches fléchées."
+
+#: src/control_center/sections/input.zig
+msgid "INPUT"
+msgstr "SAISIE"
+
+#: src/control_center/sections/printers.zig
+msgid "IPP Everywhere / AirPrint"
+msgstr "IPP Everywhere / AirPrint"
+
+#: src/control_center/sections/network.zig
+msgid "IPv4 address"
+msgstr "Adresse IPv4"
+
+#: src/control_center/search_index.zig
+msgid "Icon bottom padding"
+msgstr "Marge inférieure de l'icône"
+
+#: src/control_center/search_index.zig
+msgid "Icon left padding"
+msgstr "Marge gauche de l'icône"
+
+#: src/control_center/search_index.zig
+msgid "Icon theme"
+msgstr "Thème d'icônes"
+
+#: src/system_monitor/app.zig
+msgid "Idle"
+msgstr "Inactif"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Image"
+msgstr "Image"
+
+#: src/images/app.zig
+msgid "Image exceeds the 32 megapixel preview limit"
+msgstr "L'image dépasse la limite d'aperçu de 32 mégapixels"
+
+#: src/images/app.zig
+msgid "Images ({position}/{count})"
+msgstr "Images ({position}/{count})"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in the chosen folder"
+msgstr "Images du dossier choisi"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in {folder}"
+msgstr "Images dans {folder}"
+
+#: src/control_center/panel.zig
+msgid "In Files, click an icon to open it in list or icons view. Click the name to select."
+msgstr "Dans Fichiers, cliquez sur une icône pour ouvrir un élément en vue liste ou icônes. Cliquez sur le nom pour sélectionner."
+
+#: src/control_center/search_index.zig
+msgid "Inactive window opacity"
+msgstr "Opacité des fenêtres inactives"
+
+#: src/control_center/sections/printers.zig
+msgid "Inches"
+msgstr "Pouces"
+
+#: src/session/lock.zig
+msgid "Incorrect password. Try again."
+msgstr "Mot de passe incorrect. Réessayez."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase display brightness."
+msgstr "Augmenter la luminosité de l'écran."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase system volume."
+msgstr "Augmenter le volume du système."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase the focused window's size."
+msgstr "Augmenter la taille de la fenêtre active."
+
+#: src/control_center/sections/region.zig
+msgid "Inherited from login ({locale})"
+msgstr "Hérité de la connexion ({locale})"
+
+#: src/control_center/panel.zig
+msgid "Input"
+msgstr "Saisie"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Input · Keyboard, mouse or controller"
+msgstr "Entrée · Clavier, souris ou manette"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Install"
+msgstr "Installer"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."
+msgstr "Installez qt5ct pour les applications Qt 5 ou qt6ct pour Qt 6, puis appliquez de nouveau."
+
+#: src/files/appimage.zig
+msgid "Install squashfs-tools to add AppImages to applications"
+msgstr "Installez squashfs-tools pour ajouter des AppImages aux applications"
+
+#: src/control_center/search_index.zig
+msgid "Install theme"
+msgstr "Installer le thème"
+
+#: src/control_center/sections/appearance.zig
+msgid "Install theme…"
+msgstr "Installer le thème…"
+
+#: src/files/app_opening.zig
+msgid "Installing theme…"
+msgstr "Installation du thème…"
+
+#: src/session/power.zig
+msgid "Interactive authorization required."
+msgstr "Autorisation interactive nécessaire."
+
+#: src/control_center/welcome.zig
+msgid "Interface scale"
+msgstr "Échelle de l'interface"
+
+#: src/control_center/sections/network.zig
+msgid "Internet"
+msgstr "Internet"
+
+#: src/control_center/sections/network.zig
+msgid "Internet access not verified"
+msgstr "Accès à Internet non vérifié"
+
+#: src/files/git.zig
+msgid "Invalid branch name"
+msgstr "Nom de branche invalide"
+
+#: src/files/app_dialogs.zig
+msgid "Invalid characters in name"
+msgstr "Caractères invalides dans le nom"
+
+#: src/printing/admin.zig
+msgid "Invalid cups-pk-helper reply."
+msgstr "Réponse cups-pk-helper invalide."
+
+#: src/files/main.zig
+msgid "Invalid dropped list"
+msgstr "Liste de dépôt invalide"
+
+#: src/files/main.zig
+msgid "Invalid file clipboard"
+msgstr "Presse-papiers de fichiers invalide"
+
+#: src/files/app_opening.zig
+msgid "Invalid folder picker result"
+msgstr "Résultat du sélecteur de dossier invalide"
+
+#: src/pdf/app_document.zig
+msgid "Invalid or corrupt PDF document."
+msgstr "Document PDF invalide ou endommagé."
+
+#: src/printing/admin.zig
+msgid "Invalid or oversized printer discovery reply."
+msgstr "Réponse de découverte d'imprimantes invalide ou trop volumineuse."
+
+#: src/printing/admin.zig
+msgid "Invalid printer administration reply."
+msgstr "Réponse d'administration de l'imprimante invalide."
+
+#: src/printing/admin.zig
+msgid "Invalid service-manager reply."
+msgstr "Réponse du gestionnaire de services invalide."
+
+#: src/printing/admin.zig
+msgid "Invalid system bus reply."
+msgstr "Réponse du bus système invalide."
+
+#: src/files/torrents.zig
+msgid "Invalid transfer metadata"
+msgstr "Métadonnées du transfert invalides"
+
+#: src/files/torrents.zig
+msgid "Invalid transfer update"
+msgstr "Mise à jour du transfert invalide"
+
+#: src/control_center/sections/printers.zig
+msgid "It printed"
+msgstr "L'impression a fonctionné"
+
+#: src/control_center/search_index.zig
+msgid "Italic clock"
+msgstr "Horloge en italique"
+
+#: src/control_center/sections/appearance.zig
+msgid "Italic clock text"
+msgstr "Texte de l'horloge en italique"
+
+#: src/files/app_paint.zig
+msgid "Items"
+msgstr "Éléments"
+
+#: src/files/app_fileops.zig
+msgid "Items moved to Trash"
+msgstr "Éléments déplacés vers la corbeille"
+
+#: src/files/app_fileops.zig
+msgid "Items permanently deleted"
+msgstr "Éléments supprimés définitivement"
+
+#: src/control_center/sections/printers.zig
+msgid "Job history · {n}"
+msgstr "Historique des tâches · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Job {id} · {state}"
+msgstr "Tâche {id} · {state}"
+
+#: src/network/popup.zig
+msgid "Join"
+msgstr "Rejoindre"
+
+#: src/control_center/sections/network.zig
+msgid "Join Hidden Network"
+msgstr "Rejoindre un réseau masqué"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep connection"
+msgstr "Conserver la connexion"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep desktop icons in place"
+msgstr "Fixer les icônes du bureau"
+
+#: src/control_center/sections/users.zig
+msgid "Keep home"
+msgstr "Conserver le dossier personnel"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep icons fixed on screen while panning and zooming."
+msgstr "Garder les icônes fixes à l'écran pendant les déplacements et le zoom."
+
+#: src/control_center/sections/printers.zig
+msgid "Keep identifier"
+msgstr "Conserver l'identifiant"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep printer"
+msgstr "Conserver l'imprimante"
+
+#: src/control_center/sections/appearance.zig
+msgid "Keep zoom"
+msgstr "Conserver le zoom"
+
+#: src/control_center/panel.zig
+msgid "Keyboard Shortcuts"
+msgstr "Raccourcis clavier"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat delay"
+msgstr "Délai de répétition des touches"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat rate"
+msgstr "Fréquence de répétition des touches"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard shortcuts"
+msgstr "Raccourcis clavier"
+
+#: src/files/app_torrent_rows.zig
+msgid "Known peers: {value}"
+msgstr "Pairs connus : {value}"
+
+#: src/control_center/sections/appearance.zig
+msgid "LEFT"
+msgstr "GAUCHE"
+
+#: src/control_center/sections/printers.zig
+msgid "Label printer and advanced test tools"
+msgstr "Imprimante d'étiquettes et outils de test avancés"
+
+#: src/control_center/sections/region.zig
+msgid "Language"
+msgstr "Langue"
+
+#: src/control_center/sections/printers.zig
+msgid "Language: {language}. This sample bypasses the filters and uses the queue's backend."
+msgstr "Langue : {language}. Cet échantillon contourne les filtres et utilise le moteur de la file."
+
+#: src/control_center/sections/appearance.zig
+msgid "Large"
+msgstr "Grand"
+
+#: src/files/app_menu.zig
+msgid "Largest first"
+msgstr "Plus grands d'abord"
+
+#: src/control_center/sections/printers.zig
+msgid "Last job"
+msgstr "Dernière tâche"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Last reported signal: {signal} dBm"
+msgstr "Dernier signal signalé : {signal} dBm"
+
+#: src/start_menu/panel.zig
+msgid "Launch failed. The application may have been removed."
+msgstr "Échec du lancement. L'application a peut-être été supprimée."
+
+#: src/control_center/search_index.zig
+msgid "Launch splash"
+msgstr "Écran de lancement"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Launcher"
+msgstr "Lanceur"
+
+#: src/control_center/sections/desktop.zig
+msgid "Layouts and split sizes are saved for your next session."
+msgstr "Les dispositions et tailles des séparations sont enregistrées pour votre prochaine session."
+
+#: src/network/popup.zig
+msgid "Leave blank to use saved password"
+msgstr "Laisser vide pour utiliser le mot de passe enregistré"
+
+#: src/control_center/sections/appearance.zig
+msgid "Left"
+msgstr "Gauche"
+
+#: src/control_center/search_index.zig
+msgid "Lid close action"
+msgstr "Action à la fermeture du capot"
+
+#: src/control_center/sections/appearance.zig
+msgid "Light the active window's edge near the pointer"
+msgstr "Éclairer le bord de la fenêtre active près du pointeur"
+
+#: src/control_center/sections/network.zig
+msgid "Limited access"
+msgstr "Accès limité"
+
+#: src/editor/app.zig
+msgid "Line {line}, Column {column} · UTF-8{bom} · {ending}"
+msgstr "Ligne {line}, colonne {column} · UTF-8{bom} · {ending}"
+
+#: src/files/app_listing.zig
+msgid "Link"
+msgstr "Lien"
+
+#: src/pdf/app_pointer.zig
+msgid "Link copied. Paste it into your browser."
+msgstr "Lien copié. Collez-le dans votre navigateur."
+
+#: src/files/properties.zig
+msgid "Link permissions cannot be changed"
+msgstr "Les permissions d'un lien ne peuvent pas être modifiées"
+
+#: src/control_center/sections/network.zig
+msgid "Link speed"
+msgstr "Vitesse de connexion"
+
+#: src/files/app_torrents.zig
+msgid "List"
+msgstr "Liste"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper height"
+msgstr "Hauteur du papier chargé"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper width"
+msgstr "Largeur du papier chargé"
+
+#: src/images/app.zig
+msgid "Loading image…"
+msgstr "Chargement de l'image…"
+
+#: src/control_center/sections/printers.zig
+msgid "Loading printers…"
+msgstr "Chargement des imprimantes…"
+
+#: src/control_center/sections/services.zig
+msgid "Loading services…"
+msgstr "Chargement des services…"
+
+#: src/files/properties.zig
+msgid "Location"
+msgstr "Emplacement"
+
+#: src/control_center/sections/display.zig
+msgid "Lock"
+msgstr "Verrouiller"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock Screen"
+msgstr "Verrouiller l'écran"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock the session and turn off the display."
+msgstr "Verrouiller la session et éteindre l'écran."
+
+#: src/control_center/sections/display.zig
+msgid "Locks and sleeps, even with another display connected."
+msgstr "Verrouille et met en veille, même avec un autre écran connecté."
+
+#: src/control_center/sections/display.zig
+msgid "Locks, and turns off the built-in screen while another display is connected."
+msgstr "Verrouille et éteint l'écran intégré lorsqu'un autre écran est connecté."
+
+#: src/session/lock.zig
+msgid "Log In"
+msgstr "Se connecter"
+
+#: src/power_menu.zig
+msgid "Log Out"
+msgstr "Se déconnecter"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Log out of the desktop session."
+msgstr "Se déconnecter de la session du bureau."
+
+#: src/session/power.zig
+msgid "Logind refused the request."
+msgstr "Logind a refusé la requête."
+
+#: src/session/power.zig
+msgid "Logind request failed."
+msgstr "Échec de la requête logind."
+
+#: src/session/power.zig
+msgid "Logind returned a malformed reply."
+msgstr "Logind a renvoyé une réponse mal formée."
+
+#: src/session/power.zig
+msgid "Logind returned an unrecognized reply."
+msgstr "Logind a renvoyé une réponse inconnue."
+
+#: src/session/lock.zig
+msgid "Lost contact with login service. Try again."
+msgstr "Connexion au service de connexion perdue. Réessayez."
+
+#: src/control_center/sections/network.zig
+msgid "MAC address"
+msgstr "Adresse MAC"
+
+#: src/control_center/sections/display.zig
+msgid "Main display"
+msgstr "Écran principal"
+
+#: src/control_center/sections/display.zig
+msgid "Make main display"
+msgstr "Définir comme écran principal"
+
+#: src/control_center/panel.zig
+msgid "Make your desktop your own."
+msgstr "Personnalisez votre bureau."
+
+#: src/control_center/panel.zig
+msgid "Make your mouse and keyboard feel right."
+msgstr "Réglez votre souris et votre clavier à votre goût."
+
+#: src/control_center/panel.zig
+msgid "Manage and analyze systemd services."
+msgstr "Gérer et analyser les services systemd."
+
+#: src/control_center/sections/printers.zig
+msgid "Manage…"
+msgstr "Gérer…"
+
+#: src/control_center/sections/printers.zig
+msgid "Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"
+msgstr "Marges (mm) : gauche {left}, droite {right}, haut {top}, bas {bottom}"
+
+#: src/control_center/panel.zig
+msgid "Master volume"
+msgstr "Volume principal"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Maximize or restore the focused window."
+msgstr "Agrandir ou restaurer la fenêtre active."
+
+#: src/control_center/sections/printers.zig
+msgid "Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."
+msgstr "Mesurez le rectangle bord à bord dans l'unité choisie. La mise à l'échelle est désactivée pour ce test."
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle height"
+msgstr "Hauteur mesurée du rectangle"
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle width"
+msgstr "Largeur mesurée du rectangle"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Media"
+msgstr "Support"
+
+#: src/control_center/sections/printers.zig
+msgid "Media and resolution"
+msgstr "Support et résolution"
+
+#: src/printing/ladder.zig
+msgid "Media and resolution need confirmation against what is loaded in the printer."
+msgstr "Le support et la résolution doivent être confirmés selon le contenu réel de l'imprimante."
+
+#: src/control_center/sections/appearance.zig
+msgid "Medium"
+msgstr "Moyen"
+
+#: src/system_monitor/app.zig
+msgid "Memory (resident)"
+msgstr "Mémoire (résidente)"
+
+#: src/editor/main.zig
+msgid "Menu"
+msgstr "Menu"
+
+#: src/control_center/search_index.zig
+msgid "Menu bottom padding"
+msgstr "Marge inférieure du menu"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu height"
+msgstr "Hauteur du menu"
+
+#: src/control_center/search_index.zig
+msgid "Menu left padding"
+msgstr "Marge gauche du menu"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu width"
+msgstr "Largeur du menu"
+
+#: src/files/app_torrent_rows.zig
+msgid "Metadata…"
+msgstr "Métadonnées…"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mic Mute"
+msgstr "Couper le microphone"
+
+#: src/osd_paint.zig
+msgid "Mic on"
+msgstr "Micro activé"
+
+#: src/control_center/search_index.zig
+msgid "Microphone volume"
+msgstr "Volume du microphone"
+
+#: src/control_center/sections/printers.zig
+msgid "Millimetres"
+msgstr "Millimètres"
+
+#: src/control_center/sections/desktop.zig
+msgid "Mini Map"
+msgstr "Mini-carte"
+
+#: src/control_center/search_index.zig
+msgid "Mini map"
+msgstr "Mini-carte"
+
+#: src/control_center/search_index.zig
+msgid "Mini map hide delay"
+msgstr "Délai de masquage de la mini-carte"
+
+#: src/control_center/search_index.zig
+msgid "Mini map position"
+msgstr "Position de la mini-carte"
+
+#: src/files/app_layout.zig
+msgid "Modified"
+msgstr "Modifié"
+
+#: src/control_center/sections/region.zig
+msgid "Monday"
+msgstr "Lundi"
+
+#: src/control_center/search_index.zig
+msgid "Monitor"
+msgstr "Moniteur"
+
+#: src/control_center/sections/printers.zig
+msgid "More printing options"
+msgstr "Autres options d'impression"
+
+#: src/control_center/welcome.zig
+msgid "More settings"
+msgstr "Autres paramètres"
+
+#: src/control_center/sections/appearance.zig
+msgid "Motion & feedback"
+msgstr "Mouvement et retour visuel"
+
+#: src/files/app_model.zig
+msgid "Mount"
+msgstr "Monter"
+
+#: src/files/app_places.zig
+msgid "Mounted"
+msgstr "Monté"
+
+#: src/files/app_places.zig
+msgid "Mounting…"
+msgstr "Montage…"
+
+#: src/control_center/search_index.zig
+msgid "Mouse speed"
+msgstr "Vitesse de la souris"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move To Workspace"
+msgstr "Déplacer vers un espace de travail"
+
+#: src/control_center/sections/appearance.zig
+msgid "Move file manager aside"
+msgstr "Écarter le gestionnaire de fichiers"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider down."
+msgstr "Déplacer la séparation correspondante vers le bas."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider left."
+msgstr "Déplacer la séparation correspondante vers la gauche."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider right."
+msgstr "Déplacer la séparation correspondante vers la droite."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider up."
+msgstr "Déplacer la séparation correspondante vers le haut."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to depth {depth}."
+msgstr "Déplacer la fenêtre à la profondeur {depth}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to workspace {n} and follow it."
+msgstr "Déplacer la fenêtre vers l'espace de travail {n} et la suivre."
+
+#: src/images/app.zig
+msgid "Move this image to Trash?"
+msgstr "Déplacer cette image vers la corbeille ?"
+
+#: src/delete_dialog.zig
+msgid "Move to Trash"
+msgstr "Déplacer vers la corbeille"
+
+#: src/files/app_dialogs.zig
+msgid "Move to Trash?"
+msgstr "Déplacer vers la corbeille ?"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move to workspace."
+msgstr "Déplacer vers un espace de travail."
+
+#: src/control_center/welcome.zig
+msgid "Move, resize and overlap windows."
+msgstr "Déplacer, redimensionner et superposer les fenêtres."
+
+#: src/images/app.zig
+msgid "Moved to Trash."
+msgstr "Déplacé vers la corbeille."
+
+#: src/images/app.zig
+msgid "Moving to Trash…"
+msgstr "Déplacement vers la corbeille…"
+
+#: src/files/app.zig
+msgid "Music"
+msgstr "Musique"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute system audio."
+msgstr "Couper ou rétablir le son du système."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute the microphone."
+msgstr "Couper ou rétablir le microphone."
+
+#: src/osd_paint.zig
+msgid "Muted"
+msgstr "Sourdine"
+
+#: src/system_monitor/app.zig
+msgid "My processes"
+msgstr "Mes processus"
+
+#: src/files/app_layout.zig
+msgid "Name"
+msgstr "Nom"
+
+#: src/files/app_dialogs.zig
+msgid "Name cannot be empty"
+msgstr "Le nom ne peut pas être vide"
+
+#: src/files/app_menu.zig
+msgid "Name: A to Z"
+msgstr "Nom : de A à Z"
+
+#: src/files/app_menu.zig
+msgid "Name: Z to A"
+msgstr "Nom : de Z à A"
+
+#: src/files/properties.zig
+msgid "Named pipe"
+msgstr "Tube nommé"
+
+#: src/control_center/search_index.zig
+msgid "Natural scroll"
+msgstr "Défilement naturel"
+
+#: src/control_center/sections/printers.zig
+msgid "Neither test produced output: check the backend, connection, printer and loaded paper."
+msgstr "Aucun test n'a imprimé : vérifiez le moteur, la connexion, l'imprimante et le papier chargé."
+
+#: src/control_center/panel.zig
+msgid "Network"
+msgstr "Réseau"
+
+#: src/network/popup.zig
+msgid "Network Name (SSID)"
+msgstr "Nom du réseau (SSID)"
+
+#: src/network/popup.zig
+msgid "Network Settings"
+msgstr "Paramètres réseau"
+
+#: src/control_center/sections/network.zig
+msgid "Network name"
+msgstr "Nom du réseau"
+
+#: src/control_center/sections/network.zig
+msgid "Network name (SSID)"
+msgstr "Nom du réseau (SSID)"
+
+#: src/control_center/sections/network.zig
+msgid "Network names must be at most 32 bytes."
+msgstr "Le nom d'un réseau ne doit pas dépasser 32 octets."
+
+#: src/printing/ladder.zig
+msgid "Network reachability has not been checked."
+msgstr "L'accessibilité réseau n'a pas été vérifiée."
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager is unavailable"
+msgstr "NetworkManager est indisponible"
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager unavailable"
+msgstr "NetworkManager indisponible"
+
+#: src/editor/app.zig
+msgid "New"
+msgstr "Nouveau"
+
+#: src/files/app_dialogs.zig
+msgid "New Branch"
+msgstr "Nouvelle branche"
+
+#: src/desktop/app_actions.zig
+msgid "New File"
+msgstr "Nouveau fichier"
+
+#: src/desktop/app_paint.zig
+msgid "New File — Enter creates"
+msgstr "Nouveau fichier — Entrée pour créer"
+
+#: src/files/app_dialogs.zig
+msgid "New File.txt"
+msgstr "Nouveau fichier.txt"
+
+#: src/desktop/app_actions.zig
+msgid "New Folder"
+msgstr "Nouveau dossier"
+
+#: src/files/app_git_sidebar.zig
+msgid "New branch"
+msgstr "Nouvelle branche"
+
+#: src/control_center/sections/users.zig
+msgid "New password"
+msgstr "Nouveau mot de passe"
+
+#: src/chrome_tabs.zig
+msgid "New tab"
+msgstr "Nouvel onglet"
+
+#: src/files/app_menu.zig
+msgid "Newest first"
+msgstr "Plus récents d'abord"
+
+#: src/editor/app.zig
+msgid "Next"
+msgstr "Suivant"
+
+#: src/session/lock.zig
+msgid "Next account"
+msgstr "Compte suivant"
+
+#: src/control_center/search_index.zig
+msgid "Night light"
+msgstr "Éclairage nocturne"
+
+#: src/control_center/search_index.zig
+msgid "Night light temperature"
+msgstr "Température de l'éclairage nocturne"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No Bluetooth adapter found"
+msgstr "Aucun adaptateur Bluetooth trouvé"
+
+#: src/control_center/sections/network.zig
+msgid "No Wi-Fi adapter found"
+msgstr "Aucun adaptateur Wi-Fi trouvé"
+
+#: src/control_center/sections/sound.zig
+msgid "No active audio streams"
+msgstr "Aucun flux audio actif"
+
+#: src/control_center/sections/printers.zig
+msgid "No active jobs"
+msgstr "Aucune tâche active"
+
+#: src/control_center/sections/network.zig
+msgid "No adapter"
+msgstr "Aucun adaptateur"
+
+#: src/files/open_with.zig
+msgid "No applications available"
+msgstr "Aucune application disponible"
+
+#: src/start_menu/panel.zig
+msgid "No applications found"
+msgstr "Aucune application trouvée"
+
+#: src/control_center/panel.zig
+msgid "No audio device available"
+msgstr "Aucun périphérique audio disponible"
+
+#: src/files/app_paint.zig
+msgid "No changed files"
+msgstr "Aucun fichier modifié"
+
+#: src/control_center/sections/users.zig
+msgid "No changes were made. Authentication was cancelled or the request failed."
+msgstr "Aucune modification effectuée. L'authentification a été annulée ou la requête a échoué."
+
+#: src/pdf/app_paint.zig
+msgid "No document open. Click 'Open' or press Ctrl+O."
+msgstr "Aucun document ouvert. Cliquez sur « Ouvrir » ou appuyez sur Ctrl+O."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "No images in this folder"
+msgstr "Aucune image dans ce dossier"
+
+#: src/control_center/sections/network.zig
+msgid "No internet access"
+msgstr "Aucun accès à Internet"
+
+#: src/control_center/sections/network.zig
+msgid "No internet connection"
+msgstr "Aucune connexion Internet"
+
+#: src/control_center/sections/users.zig
+msgid "No login accounts were found."
+msgstr "Aucun compte de connexion trouvé."
+
+#: src/session/lock.zig
+msgid "No login service"
+msgstr "Aucun service de connexion"
+
+#: src/printing/ladder.zig
+msgid "No matching USB device is available to identify its node."
+msgstr "Aucun périphérique USB correspondant n'est disponible pour identifier son nœud."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No matching devices"
+msgstr "Aucun appareil correspondant"
+
+#: src/files/app_paint.zig
+msgid "No matching items"
+msgstr "Aucun élément correspondant"
+
+#: src/system_monitor/app.zig
+msgid "No matching processes"
+msgstr "Aucun processus correspondant"
+
+#: src/control_center/sections/services.zig
+msgid "No matching services."
+msgstr "Aucun service correspondant."
+
+#: src/control_center/sections/network.zig
+msgid "No networks found. Scan to try again."
+msgstr "Aucun réseau trouvé. Lancez une nouvelle recherche."
+
+#: src/network/popup.zig
+msgid "No networks found. Try reopening to scan again."
+msgstr "Aucun réseau trouvé. Rouvrez le panneau pour relancer la recherche."
+
+#: src/pdf/app_paint.zig
+msgid "No outline in document"
+msgstr "Aucun sommaire dans le document"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No paired devices. Choose Pair New Device to get started."
+msgstr "Aucun appareil associé. Choisissez « Associer un nouvel appareil » pour commencer."
+
+#: src/pdf/main.zig
+msgid "No print service answered (xdg-desktop-portal)."
+msgstr "Aucun service d'impression n'a répondu (xdg-desktop-portal)."
+
+#: src/control_center/sections/printers.zig
+msgid "No printers configured."
+msgstr "Aucune imprimante configurée."
+
+#: src/files/app_paint.zig
+msgid "No recent files"
+msgstr "Aucun fichier récent"
+
+#: src/printing/ladder.zig
+msgid "No recent job information is available."
+msgstr "Aucune information sur une tâche récente n'est disponible."
+
+#: src/control_center/sections/users.zig
+msgid "No sessions available"
+msgstr "Aucune session disponible"
+
+#: src/session/lock.zig
+msgid "No sessions installed"
+msgstr "Aucune session installée"
+
+#: src/control_center/search.zig
+msgid "No settings found"
+msgstr "Aucun paramètre trouvé"
+
+#: src/share_picker/client.zig
+msgid "No sources available."
+msgstr "Aucune source disponible."
+
+#: src/control_center/panel.zig
+msgid "No supported backlight"
+msgstr "Aucun rétroéclairage pris en charge"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No supported profiles reported"
+msgstr "Aucun profil pris en charge signalé"
+
+#: src/control_center/sections/printers.zig
+msgid "No supported resolution consistently matches both measurements. Check the ruler and print scaling."
+msgstr "Aucune résolution prise en charge ne correspond aux deux mesures. Vérifiez la règle et l'échelle d'impression."
+
+#: src/files/app_terminal.zig
+msgid "No terminal directory"
+msgstr "Aucun dossier pour le terminal"
+
+#: src/files/app_torrents.zig
+msgid "No transfers yet. Add a .torrent file or magnet link."
+msgstr "Aucun transfert pour le moment. Ajoutez un fichier .torrent ou un lien magnet."
+
+#: src/control_center/sections/printers.zig
+msgid "No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."
+msgstr "Aucun pilote automatique ne correspond sans ambiguïté. Choisissez un pilote de la liste, vérifiez une adresse IPP ou choisissez explicitement une file brute."
+
+#: src/control_center/sections/printers.zig
+msgid "No usblp node was found; CUPS may still use libusb or ipp-usb."
+msgstr "Aucun nœud usblp trouvé ; CUPS peut tout de même utiliser libusb ou ipp-usb."
+
+#: src/session/lock.zig
+msgid "No user accounts found"
+msgstr "Aucun compte utilisateur trouvé"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter"
+msgstr "Aucun adaptateur filaire"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter found"
+msgstr "Aucun adaptateur filaire trouvé"
+
+#: src/control_center/sections/appearance.zig
+msgid "None"
+msgstr "Aucun"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Noop"
+msgstr "Aucune action"
+
+#: src/control_center/sections/display.zig
+msgid "Normal"
+msgstr "Normal"
+
+#: src/files/worker.zig
+msgid "Not a directory"
+msgstr "Ce n'est pas un dossier"
+
+#: src/control_center/sections/printers.zig
+msgid "Not accepting new jobs"
+msgstr "N'accepte pas de nouvelles tâches"
+
+#: src/files/volumes.zig
+msgid "Not authorized to eject {name}"
+msgstr "Non autorisé à éjecter {name}"
+
+#: src/files/volumes.zig
+msgid "Not authorized to mount {name}"
+msgstr "Non autorisé à monter {name}"
+
+#: src/session/power.zig
+msgid "Not available on this system."
+msgstr "Indisponible sur ce système."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Not connected"
+msgstr "Non connecté"
+
+#: src/editor/app.zig
+msgid "Not enough free memory to hold this file."
+msgstr "Mémoire libre insuffisante pour contenir ce fichier."
+
+#: src/system_monitor/app.zig
+msgid "Not enough memory to display every process"
+msgstr "Mémoire insuffisante pour afficher tous les processus"
+
+#: src/printing/cups.zig
+msgid "Not enough memory to load printer status. Refresh to check the result."
+msgstr "Mémoire insuffisante pour charger l'état de l'imprimante. Actualisez pour vérifier le résultat."
+
+#: src/pdf/app_document.zig
+msgid "Not enough memory to open this document."
+msgstr "Mémoire insuffisante pour ouvrir ce document."
+
+#: src/control_center/panel.zig
+msgid "Not enough memory to show this page."
+msgstr "Mémoire insuffisante pour afficher cette page."
+
+#: src/images/app.zig
+msgid "Not enough memory."
+msgstr "Mémoire insuffisante."
+
+#: src/files/app_places.zig
+msgid "Not found"
+msgstr "Introuvable"
+
+#: src/control_center/sections/sound.zig
+msgid "Not saved"
+msgstr "Non enregistré"
+
+#: src/control_center/sections/region.zig
+msgid "Not specified"
+msgstr "Non précisé"
+
+#: src/session/power.zig
+msgid "Not supported"
+msgstr "Non pris en charge"
+
+#: src/files/app_places.zig
+msgid "Nothing to add to Places"
+msgstr "Rien à ajouter aux emplacements"
+
+#: src/notifications/toast.zig
+msgid "Notification"
+msgstr "Notification"
+
+#: src/control_center/sections/services.zig
+msgid "Notify"
+msgstr "Notify"
+
+#: src/systemd.zig
+msgid "Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."
+msgstr "Personnalisation Notify enregistrée, mais systemd n'a pas pu la recharger. Essayez d'actualiser après avoir rechargé le démon."
+
+#: src/systemd.zig
+msgid "Notify override saved, but the selected type is not active in systemd. Check other service overrides."
+msgstr "Personnalisation Notify enregistrée, mais le type sélectionné n'est pas actif dans systemd. Vérifiez les autres personnalisations du service."
+
+#: src/control_center/sections/services.zig
+msgid "Notify sets the service type and applies on its next start. Saving requires administrator authentication."
+msgstr "Notify définit le type du service et s'applique à son prochain démarrage. L'enregistrement nécessite l'authentification d'un administrateur."
+
+#: src/systemd.zig
+msgid "Notify setting saved. Applies on the next service start."
+msgstr "Réglage Notify enregistré. Il s'appliquera au prochain démarrage du service."
+
+#: src/control_center/sections/region.zig
+msgid "Number"
+msgstr "Nombre"
+
+#: src/files/app_paint.zig
+msgid "OK"
+msgstr "OK"
+
+#: src/control_center/sections/appearance.zig
+msgid "Off"
+msgstr "Désactivé"
+
+#: src/control_center/sections/network.zig
+msgid "Offline"
+msgstr "Hors ligne"
+
+#: src/printing/admin.zig
+msgid "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+msgstr "L'ancienne valeur par défaut personnalisée de l'imprimante a été effacée, mais la nouvelle option n'a pas pu être appliquée. Actualisez et vérifiez l'option."
+
+#: src/files/app_menu.zig
+msgid "Oldest first"
+msgstr "Plus anciens d'abord"
+
+#: src/control_center/sections/appearance.zig
+msgid "On"
+msgstr "Activé"
+
+#: src/taskbar/battery.zig
+msgid "On Battery"
+msgstr "Sur batterie"
+
+#: src/printing/options.zig
+msgid "One-sided"
+msgstr "Recto"
+
+#: src/files/properties.zig
+msgid "Only the owner can change permissions"
+msgstr "Seul le propriétaire peut modifier les permissions"
+
+#: src/files/appimage.zig
+msgid "Only type-2 AppImages are supported"
+msgstr "Seules les AppImages de type 2 sont prises en charge"
+
+#: src/control_center/sections/network.zig
+msgid "Open"
+msgstr "Ouvrir"
+
+#: src/files/app.zig
+msgid "Open File"
+msgstr "Ouvrir un fichier"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor"
+msgstr "Ouvrir le Moniteur système"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor, or restore and focus its window."
+msgstr "Ouvrir le Moniteur système ou restaurer et activer sa fenêtre."
+
+#: src/files/app_dialogs.zig
+msgid "Open With"
+msgstr "Ouvrir avec"
+
+#: src/desktop/app_actions.zig
+msgid "Open With…"
+msgstr "Ouvrir avec…"
+
+#: src/control_center/sections/network.zig
+msgid "Open a browser to sign in"
+msgstr "Ouvrir un navigateur pour se connecter"
+
+#: src/control_center/sections/desktop.zig
+msgid "Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."
+msgstr "Ouvrez une application pour l'ajouter ici. Les règles avancées par titre, moteur et motif utilisent floating dans [[window_rules]] de votre configuration."
+
+#: src/pdf/app_keyboard.zig
+msgid "Open another PDF from Files in a new window."
+msgstr "Ouvrez un autre PDF depuis Fichiers dans une nouvelle fenêtre."
+
+#: src/control_center/search_index.zig
+msgid "Open files with a single click"
+msgstr "Ouvrir les fichiers d'un simple clic"
+
+#: src/files/app_model.zig
+msgid "Open in New Window"
+msgstr "Ouvrir dans une nouvelle fenêtre"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open or close the application launcher."
+msgstr "Ouvrir ou fermer le lanceur d'applications."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open the session and power menu."
+msgstr "Ouvrir le menu de session et d'alimentation."
+
+#: src/files/app_layout.zig
+msgid "Opened"
+msgstr "Ouvert"
+
+#: src/files/open_with.zig
+msgid "Opened, but could not save the default app"
+msgstr "Ouvert, mais impossible d'enregistrer l'application par défaut"
+
+#: src/pdf/app_paint.zig
+msgid "Opening document..."
+msgstr "Ouverture du document…"
+
+#: src/editor/app.zig
+msgid "Opening…"
+msgstr "Ouverture…"
+
+#: src/control_center/sections/services.zig
+msgid "Optimize"
+msgstr "Optimiser"
+
+#: src/files/properties.zig
+msgid "Others"
+msgstr "Autres"
+
+#: src/files/git.zig
+msgid "Out of memory"
+msgstr "Mémoire insuffisante"
+
+#: src/pdf/app_paint.zig
+msgid "Outline"
+msgstr "Sommaire"
+
+#: src/control_center/sections/sound.zig
+msgid "Output"
+msgstr "Sortie"
+
+#: src/control_center/search_index.zig
+msgid "Output balance"
+msgstr "Balance de sortie"
+
+#: src/control_center/sections/display.zig
+msgid "Output name"
+msgstr "Nom de la sortie"
+
+#: src/control_center/search_index.zig
+msgid "Output volume"
+msgstr "Volume de sortie"
+
+#: src/control_center/sections/desktop.zig
+msgid "Output: {name}"
+msgstr "Sortie : {name}"
+
+#: src/files/properties.zig
+msgid "Owner"
+msgstr "Propriétaire"
+
+#: src/pdf/app.zig
+msgid "PDF Viewer"
+msgstr "Visionneuse PDF"
+
+#: src/delete_dialog.zig
+msgid "PDF document"
+msgstr "Document PDF"
+
+#: src/system_monitor/app.zig
+msgid "PID"
+msgstr "PID"
+
+#: src/files/app_sidebar_paint.zig
+msgid "PLACES"
+msgstr "EMPLACEMENTS"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "PNG and SVG images"
+msgstr "Images PNG et SVG"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pack or system default"
+msgstr "Valeur par défaut du thème ou du système"
+
+#: src/control_center/sections/appearance.zig
+msgid "Packs include colours and artwork. Personal edits are saved as overrides."
+msgstr "Les paquets contiennent des couleurs et des illustrations. Les modifications personnelles sont enregistrées séparément."
+
+#: src/pdf/app_paint.zig
+msgid "Pages"
+msgstr "Pages"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair Device"
+msgstr "Associer un appareil"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair New Device"
+msgstr "Associer un nouvel appareil"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Paired Devices"
+msgstr "Appareils associés"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing"
+msgstr "Association"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing code"
+msgstr "Code d'association"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Down"
+msgstr "Se déplacer vers le bas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Left"
+msgstr "Se déplacer vers la gauche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Right"
+msgstr "Se déplacer vers la droite"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Up"
+msgstr "Se déplacer vers le haut"
+
+#: src/control_center/sections/desktop.zig
+msgid "Pan and zoom the canvas. Switching back restores your canvas positions and zoom."
+msgstr "Déplacez et zoomez le canevas. Le retour à ce mode rétablit vos positions et votre zoom."
+
+#: src/control_center/sections/input.zig
+msgid "Pan speed"
+msgstr "Vitesse de déplacement"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pan to the selected window without changing zoom."
+msgstr "Se déplacer vers la fenêtre sélectionnée sans changer le zoom."
+
+#: src/printing/options.zig
+msgid "Paper size"
+msgstr "Format du papier"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {paper}"
+msgstr "Papier : {paper}"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {width} × {height} mm"
+msgstr "Papier : {width} × {height} mm"
+
+#: src/control_center/sections/printers.zig
+msgid "Pass"
+msgstr "Réussi"
+
+#: src/control_center/sections/network.zig
+msgid "Password"
+msgstr "Mot de passe"
+
+#: src/control_center/sections/network.zig
+msgid "Password (leave empty to use saved)"
+msgstr "Mot de passe (laisser vide pour utiliser celui enregistré)"
+
+#: src/pdf/app_paint.zig
+msgid "Password Required"
+msgstr "Mot de passe nécessaire"
+
+#: src/files/archive.zig
+msgid "Password-protected archives are not supported yet"
+msgstr "Les archives protégées par mot de passe ne sont pas encore prises en charge"
+
+#: src/desktop/app_actions.zig
+msgid "Paste"
+msgstr "Coller"
+
+#: src/files/app_torrent_rows.zig
+msgid "Pause"
+msgstr "Mettre en pause"
+
+#: src/files/app_torrents.zig
+msgid "Pause all"
+msgstr "Tout mettre en pause"
+
+#: src/system_monitor/app.zig
+msgid "Pause updates"
+msgstr "Suspendre les mises à jour"
+
+#: src/files/app_torrent_rows.zig
+msgid "Paused"
+msgstr "En pause"
+
+#: src/printing/cups.zig
+msgid "Pending"
+msgstr "En attente"
+
+#: src/power_profiles.zig
+msgid "Performance"
+msgstr "Performances"
+
+#: src/delete_dialog.zig
+msgid "Permanently delete all trashed files and folders"
+msgstr "Supprimer définitivement tous les fichiers et dossiers de la corbeille"
+
+#: src/files/app_dialogs.zig
+msgid "Permission denied"
+msgstr "Permission refusée"
+
+#: src/editor/app.zig
+msgid "Permission denied. Try Save As in a writable folder."
+msgstr "Permission refusée. Utilisez « Enregistrer sous » dans un dossier accessible en écriture."
+
+#: src/files/app_layout.zig
+msgid "Permissions"
+msgstr "Permissions"
+
+#: src/files/properties.zig
+msgid "Permissions updated"
+msgstr "Permissions mises à jour"
+
+#: src/files/app.zig
+msgid "Pictures"
+msgstr "Images"
+
+#: src/start_menu/panel.zig
+msgid "Pin application"
+msgstr "Épingler l'application"
+
+#: src/start_menu/panel.zig
+msgid "Pinned & Recent"
+msgstr "Épinglés et récents"
+
+#: src/control_center/sections/desktop.zig
+msgid "Placement"
+msgstr "Placement"
+
+#: src/files/app_places.zig
+msgid "Places is full"
+msgstr "La liste des emplacements est pleine"
+
+#: src/images/app.zig
+msgid "Please wait for the file operation to finish."
+msgstr "Attendez la fin de l'opération sur les fichiers."
+
+#: src/taskbar/battery.zig
+msgid "Plugged In"
+msgstr "Sur secteur"
+
+#: src/control_center/sections/desktop.zig
+msgid "Position"
+msgstr "Position"
+
+#: src/session/lock.zig
+msgid "Power"
+msgstr "Alimentation"
+
+#: src/power_menu.zig
+msgid "Power Off"
+msgstr "Éteindre"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Power Profile Cycle"
+msgstr "Changer de profil d'alimentation"
+
+#: src/power_profiles.zig
+msgid "Power Saver"
+msgstr "Économie d'énergie"
+
+#: src/session/power.zig
+msgid "Power action failed"
+msgstr "Échec de l'action d'alimentation"
+
+#: src/session/power.zig
+msgid "Power off"
+msgstr "Éteindre"
+
+#: src/session/lock.zig
+msgid "Power off? Activate Power again to confirm."
+msgstr "Éteindre ? Activez de nouveau Alimentation pour confirmer."
+
+#: src/session/lock.zig
+msgid "Power request accepted"
+msgstr "Demande d'alimentation acceptée"
+
+#: src/session/lock.zig
+msgid "Power request denied or unavailable"
+msgstr "Demande d'alimentation refusée ou indisponible"
+
+#: src/session/power.zig
+msgid "Power request failed. Check permissions and applications blocking shutdown."
+msgstr "Échec de la demande d'alimentation. Vérifiez les permissions et les applications qui bloquent l'arrêt."
+
+#: src/session/lock.zig
+msgid "Power service unavailable"
+msgstr "Service d'alimentation indisponible"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff"
+msgstr "Éteindre"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff Auto"
+msgstr "Éteindre automatiquement"
+
+#: src/session/lock.zig
+msgid "Press Enter to log in"
+msgstr "Appuyez sur Entrée pour vous connecter"
+
+#: src/session/lock.zig
+msgid "Press Enter to unlock"
+msgstr "Appuyez sur Entrée pour déverrouiller"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press keys to record. Esc cancels."
+msgstr "Appuyez sur les touches à enregistrer. Échap annule."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press new shortcut…"
+msgstr "Appuyez sur le nouveau raccourci…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Prevent this device from connecting."
+msgstr "Empêcher cet appareil de se connecter."
+
+#: src/files/app_torrents.zig
+msgid "Previous"
+msgstr "Précédent"
+
+#: src/session/lock.zig
+msgid "Previous account"
+msgstr "Compte précédent"
+
+#: src/pdf/app_paint.zig
+msgid "Print"
+msgstr "Imprimer"
+
+#: src/control_center/sections/printers.zig
+msgid "Print a 2 × 3 inch ruler…"
+msgstr "Imprimer une règle de 2 × 3 pouces…"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one test"
+msgstr "Imprimer un test"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one {kind} test on {name}?"
+msgstr "Imprimer un test {kind} sur {name} ?"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue"
+msgstr "File d'impression"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue · {n}"
+msgstr "File d'impression · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test"
+msgstr "Test d'impression"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test page…"
+msgstr "Imprimer une page de test…"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer"
+msgstr "Imprimante"
+
+#: src/printing/admin.zig
+msgid "Printer added, enabled and accepting jobs."
+msgstr "Imprimante ajoutée, activée et prête à accepter des tâches."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer address (ipp, ipps, socket or lpd)"
+msgstr "Adresse de l'imprimante (ipp, ipps, socket ou lpd)"
+
+#: src/printing/admin.zig
+msgid "Printer administration failed; refresh and check the printer status."
+msgstr "Échec de l'administration de l'imprimante ; actualisez et vérifiez son état."
+
+#: src/printing/admin.zig
+msgid "Printer administration timed out. Refresh before trying again."
+msgstr "Le délai d'administration de l'imprimante a expiré. Actualisez avant de réessayer."
+
+#: src/printing/admin.zig
+msgid "Printer administration was cancelled."
+msgstr "L'administration de l'imprimante a été annulée."
+
+#: src/printing/admin.zig
+msgid "Printer administration was not authorized or was cancelled."
+msgstr "L'administration de l'imprimante n'a pas été autorisée ou a été annulée."
+
+#: src/printing/admin.zig
+msgid "Printer authorization helper unavailable. Refresh before trying again."
+msgstr "Assistant d'autorisation des imprimantes indisponible. Actualisez avant de réessayer."
+
+#: src/printing/admin.zig
+msgid "Printer change applied."
+msgstr "Modification de l'imprimante appliquée."
+
+#: src/printing/admin.zig
+msgid "Printer connection changed."
+msgstr "Connexion de l'imprimante modifiée."
+
+#: src/printing/admin.zig
+msgid "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+msgstr "Le nettoyage des valeurs par défaut de l'imprimante est partiellement terminé, mais la nouvelle option n'a pas pu être appliquée. Actualisez et vérifiez l'option."
+
+#: src/printing/admin.zig
+msgid "Printer discovery complete."
+msgstr "Recherche des imprimantes terminée."
+
+#: src/printing/admin.zig
+msgid "Printer option applied."
+msgstr "Option d'imprimante appliquée."
+
+#: src/printing/cups.zig
+msgid "Printer preferences could not be saved safely. Check the existing preferences file."
+msgstr "Les préférences d'impression n'ont pas pu être enregistrées de façon sûre. Vérifiez le fichier de préférences existant."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setting verified."
+msgstr "Paramètre d'imprimante vérifié."
+
+#: src/printing/options.zig
+msgid "Printer settings"
+msgstr "Paramètres d'imprimante"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setup requires the local default CUPS server."
+msgstr "La configuration d'imprimantes nécessite le serveur CUPS local par défaut."
+
+#: src/control_center/panel.zig
+msgid "Printer status, jobs and connection diagnostics."
+msgstr "État des imprimantes, tâches et diagnostic de connexion."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but could not be enabled. Refresh and resume it."
+msgstr "L'imprimante a été ajoutée, mais n'a pas pu être activée. Actualisez et reprenez son fonctionnement."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+msgstr "L'imprimante a été ajoutée, mais son activation ou l'acceptation des tâches a échoué. Actualisez, reprenez son fonctionnement et autorisez les tâches."
+
+#: src/control_center/panel.zig
+msgid "Printers"
+msgstr "Imprimantes"
+
+#: src/control_center/sections/printers.zig
+msgid "Printers are unavailable in the greeter."
+msgstr "Les imprimantes sont indisponibles sur l'écran de connexion."
+
+#: src/printing/cups.zig
+msgid "Printing"
+msgstr "Impression"
+
+#: src/pdf/main.zig
+msgid "Printing is not available."
+msgstr "L'impression n'est pas disponible."
+
+#: src/control_center/sections/printers.zig
+msgid "Printing preferences"
+msgstr "Préférences d'impression"
+
+#: src/control_center/sections/printers.zig
+msgid "Problem"
+msgstr "Problème"
+
+#: src/system_monitor/app.zig
+msgid "Process data unavailable"
+msgstr "Données des processus indisponibles"
+
+#: src/system_monitor/app.zig
+msgid "Processes"
+msgstr "Processus"
+
+#: src/printing/cups.zig
+msgid "Processing"
+msgstr "Traitement"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles"
+msgstr "Profils"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles appear after pairing"
+msgstr "Les profils apparaissent après l'association"
+
+#: src/files/app_layout.zig
+msgid "Progress"
+msgstr "Progression"
+
+#: src/files/app.zig
+msgid "Projects"
+msgstr "Projets"
+
+#: src/desktop/app_actions.zig
+msgid "Properties"
+msgstr "Propriétés"
+
+#: src/desktop/app_paint.zig
+msgid "Properties — Escape closes"
+msgstr "Propriétés — Échap pour fermer"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Put the computer to sleep."
+msgstr "Mettre l'ordinateur en veille."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Put your device in pairing mode. Nearby devices appear here."
+msgstr "Mettez votre appareil en mode association. Les appareils à proximité apparaissent ici."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+msgstr "Couleurs Qt 5 et Qt 6 appliquées. Redémarrez les applications ; reconnectez-vous si leurs couleurs ne changent pas."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Couleurs Qt 5 appliquées. Installez qt6ct pour les applications Qt 6. Redémarrez les applications ; reconnectez-vous si leurs couleurs ne changent pas."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Couleurs Qt 6 appliquées. Installez qt5ct pour les applications Qt 5. Redémarrez les applications ; reconnectez-vous si leurs couleurs ne changent pas."
+
+#: src/printing/options.zig
+msgid "Quality"
+msgstr "Qualité"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue"
+msgstr "File"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue identifier"
+msgstr "Identifiant de la file"
+
+#: src/printing/ladder.zig
+msgid "Queue media and resolution could not be read."
+msgstr "Impossible de lire le support et la résolution de la file."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue name"
+msgstr "Nom de la file"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue paper setting: {paper}. Check that this matches the loaded paper."
+msgstr "Papier de la file : {paper}. Vérifiez qu'il correspond au papier chargé."
+
+#: src/printing/admin.zig
+msgid "Queue rename only partly completed. Refresh and check both queues before retrying."
+msgstr "Le renommage de la file est seulement partiel. Actualisez et vérifiez les deux files avant de réessayer."
+
+#: src/printing/admin.zig
+msgid "Queue rename request completed. Check the refreshed queues and options."
+msgstr "Demande de renommage terminée. Vérifiez les files et les options actualisées."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue: {name}"
+msgstr "File : {name}"
+
+#: src/start_menu/panel.zig
+msgid "Quick Launch"
+msgstr "Lancement rapide"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Quit"
+msgstr "Quitter"
+
+#: src/control_center/sections/display.zig
+msgid "REDIWM_SCALE sets scaling; restart to apply Xwayland changes."
+msgstr "REDIWM_SCALE définit l'échelle ; redémarrez pour appliquer les modifications Xwayland."
+
+#: src/control_center/sections/appearance.zig
+msgid "RIGHT"
+msgstr "DROITE"
+
+#: src/control_center/sections/appearance.zig
+msgid "Radius"
+msgstr "Rayon"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw queue (printer commands only)"
+msgstr "File brute (commandes d'imprimante uniquement)"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw sample resolution (dpi)"
+msgstr "Résolution de l'échantillon brut (ppp)"
+
+#: src/files/properties.zig
+msgid "Read"
+msgstr "Lecture"
+
+#: src/control_center/sections/users.zig
+msgid "Read only"
+msgstr "Lecture seule"
+
+#: src/printing/cups.zig
+msgid "Ready"
+msgstr "Prêt"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Ready to pair"
+msgstr "Prêt à associer"
+
+#: src/printing/ladder.zig
+msgid "Reapply the intended paper, resolution or driver option, then refresh to verify the result."
+msgstr "Réappliquez le papier, la résolution ou l'option du pilote souhaités, puis actualisez pour vérifier le résultat."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot"
+msgstr "Redémarrer"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot Auto"
+msgstr "Redémarrer automatiquement"
+
+#: src/files/app.zig
+msgid "Recent"
+msgstr "Récents"
+
+#: src/files/open_with.zig
+msgid "Recommended Apps"
+msgstr "Applications recommandées"
+
+#: src/files/app.zig
+msgid "RediWM Files"
+msgstr "Fichiers RediWM"
+
+#: src/control_center/sections/default_apps.zig
+msgid "RediWM Files (built-in)"
+msgstr "Fichiers RediWM (intégré)"
+
+#: src/control_center/sections/appearance.zig
+msgid "RediWM dock"
+msgstr "Dock RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "Reduce blue light with a warm tint"
+msgstr "Réduire la lumière bleue avec une teinte chaude"
+
+#: src/control_center/search_index.zig
+msgid "Reduced motion"
+msgstr "Réduire les animations"
+
+#: src/control_center/sections/printers.zig
+msgid "Refresh"
+msgstr "Actualiser"
+
+#: src/control_center/search_index.zig
+msgid "Refresh rate"
+msgstr "Fréquence de rafraîchissement"
+
+#: src/control_center/sections/region.zig
+msgid "Region"
+msgstr "Région"
+
+#: src/control_center/panel.zig
+msgid "Region & Language"
+msgstr "Région et langue"
+
+#: src/control_center/search_index.zig
+msgid "Regional formats"
+msgstr "Formats régionaux"
+
+#: src/control_center/sections/region.zig
+msgid "Regional formats are unavailable for this session."
+msgstr "Les formats régionaux sont indisponibles pour cette session."
+
+#: src/control_center/sections/printers.zig
+msgid "Remember loaded paper size"
+msgstr "Mémoriser le format du papier chargé"
+
+#: src/control_center/sections/appearance.zig
+msgid "Remove"
+msgstr "Supprimer"
+
+#: src/files/app_model.zig
+msgid "Remove from Places"
+msgstr "Retirer des emplacements"
+
+#: src/taskbar/window_menu.zig
+msgid "Remove from dock"
+msgstr "Retirer du dock"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer {name} ({queue})? This deletes its queue and settings."
+msgstr "Supprimer l'imprimante {name} ({queue}) ? Sa file et ses paramètres seront supprimés."
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer…"
+msgstr "Supprimer l'imprimante…"
+
+#: src/control_center/search_index.zig
+msgid "Remove theme"
+msgstr "Supprimer le thème"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove this printer"
+msgstr "Supprimer cette imprimante"
+
+#: src/files/app_torrents.zig
+msgid "Remove · keep files"
+msgstr "Retirer · conserver les fichiers"
+
+#: src/desktop/app_actions.zig
+msgid "Rename"
+msgstr "Renommer"
+
+#: src/files/app_paint.zig
+msgid "Rename (R)"
+msgstr "Renommer (R)"
+
+#: src/desktop/app_paint.zig
+msgid "Rename — Enter saves, Escape cancels"
+msgstr "Renommer — Entrée enregistre, Échap annule"
+
+#: src/files/app_dialogs.zig
+msgid "Renamed successfully"
+msgstr "Renommage réussi"
+
+#: src/pdf/app_paint.zig
+msgid "Rendering page {value}..."
+msgstr "Rendu de la page {value}…"
+
+#: src/control_center/sections/region.zig
+msgid "Reopen running apps to use the selected language."
+msgstr "Rouvrez les applications en cours pour utiliser la langue sélectionnée."
+
+#: src/control_center/sections/input.zig
+msgid "Repeat delay"
+msgstr "Délai de répétition"
+
+#: src/control_center/sections/input.zig
+msgid "Repeat rate"
+msgstr "Fréquence de répétition"
+
+#: src/files/app_chooser.zig
+msgid "Replace"
+msgstr "Remplacer"
+
+#: src/control_center/sections/appearance.zig
+msgid "Replace installed theme"
+msgstr "Remplacer le thème installé"
+
+#: src/control_center/sections/printers.zig
+msgid "Report copied"
+msgstr "Rapport copié"
+
+#: src/control_center/sections/printers.zig
+msgid "Reports omit document names, user names, USB serials and private printer addresses."
+msgstr "Les rapports excluent les noms de documents, les noms d'utilisateurs, les numéros de série USB et les adresses privées des imprimantes."
+
+#: src/systemd.zig
+msgid "Request accepted. Status updates when the job completes."
+msgstr "Demande acceptée. L'état sera actualisé à la fin de la tâche."
+
+#: src/printing/admin.zig
+msgid "Requesting CUPS start; authorization may be required…"
+msgstr "Demande de démarrage de CUPS ; une autorisation peut être nécessaire…"
+
+#: src/session/lock.zig
+msgid "Requesting power action…"
+msgstr "Demande d'action d'alimentation…"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved file name"
+msgstr "Nom de fichier réservé"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved folder name"
+msgstr "Nom de dossier réservé"
+
+#: src/control_center/search_index.zig
+msgid "Reset theme"
+msgstr "Réinitialiser le thème"
+
+#: src/control_center/sections/desktop.zig
+msgid "Reset to Default"
+msgstr "Rétablir la valeur par défaut"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to default"
+msgstr "Rétablir la valeur par défaut"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to theme"
+msgstr "Rétablir depuis le thème"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Down"
+msgstr "Redimensionner la séparation vers le bas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Left"
+msgstr "Redimensionner la séparation vers la gauche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Right"
+msgstr "Redimensionner la séparation vers la droite"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Up"
+msgstr "Redimensionner la séparation vers le haut"
+
+#: src/control_center/search_index.zig
+msgid "Resolution"
+msgstr "Résolution"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: Unavailable"
+msgstr "Résolution : indisponible"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: {x} × {y} dpi"
+msgstr "Résolution : {x} × {y} ppp"
+
+#: src/printing/ladder.zig
+msgid "Resolve the reported printer problem before resuming the queue."
+msgstr "Résolvez le problème signalé avant de reprendre la file."
+
+#: src/session/lock.zig
+msgid "Response"
+msgstr "Réponse"
+
+#: src/control_center/sections/services.zig
+msgid "Restart"
+msgstr "Redémarrer"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart Shell"
+msgstr "Redémarrer l'environnement du bureau"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the computer."
+msgstr "Redémarrer l'ordinateur."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the desktop shell."
+msgstr "Redémarrer l'environnement du bureau."
+
+#: src/session/lock.zig
+msgid "Restart? Activate Restart again to confirm."
+msgstr "Redémarrer ? Activez de nouveau Redémarrer pour confirmer."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Layout"
+msgstr "Restaurer la disposition"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Shortcuts"
+msgstr "Restaurer les raccourcis"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore a saved layout."
+msgstr "Restaurer une disposition enregistrée."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore layout: {name}"
+msgstr "Restaurer la disposition : {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the desktop zoom."
+msgstr "Restaurer le zoom du bureau."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the focused window's size."
+msgstr "Restaurer la taille de la fenêtre active."
+
+#: src/calculator/model.zig
+msgid "Result is too large"
+msgstr "Le résultat est trop grand"
+
+#: src/files/app_torrent_rows.zig
+msgid "Resume"
+msgstr "Reprendre"
+
+#: src/control_center/sections/printers.zig
+msgid "Resume printer"
+msgstr "Reprendre l'imprimante"
+
+#: src/system_monitor/app.zig
+msgid "Resume updates"
+msgstr "Reprendre les mises à jour"
+
+#: src/control_center/panel.zig
+msgid "Review login accounts and automatic-login settings."
+msgstr "Consulter les comptes et les paramètres de connexion automatique."
+
+#: src/control_center/sections/printers.zig
+msgid "Review the suggested resolution, then apply it explicitly."
+msgstr "Examinez la résolution suggérée, puis appliquez-la explicitement."
+
+#: src/control_center/sections/appearance.zig
+msgid "Right"
+msgstr "Droite"
+
+#: src/images/app.zig
+msgid "Rotate"
+msgstr "Tourner"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Rotate the nearest tiled split."
+msgstr "Faire pivoter la séparation en mosaïque la plus proche."
+
+#: src/control_center/search_index.zig
+msgid "Rotation"
+msgstr "Rotation"
+
+#: src/control_center/sections/appearance.zig
+msgid "Round"
+msgstr "Arrondi"
+
+#: src/system_monitor/app.zig
+msgid "Running"
+msgstr "En cours"
+
+#: src/control_center/sections/sound.zig
+msgid "SOUND"
+msgstr "SON"
+
+#: src/control_center/sections/appearance.zig
+msgid "Same as theme"
+msgstr "Comme le thème"
+
+#: src/images/app.zig
+msgid "Same folder, or enter an absolute path."
+msgstr "Même dossier, ou saisissez un chemin absolu."
+
+#: src/control_center/sections/region.zig
+msgid "Saturday"
+msgstr "Samedi"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save"
+msgstr "Enregistrer"
+
+#: src/editor/app.zig
+msgid "Save As"
+msgstr "Enregistrer sous"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save Layout"
+msgstr "Enregistrer la disposition"
+
+#: src/images/app.zig
+msgid "Save a PNG copy"
+msgstr "Enregistrer une copie PNG"
+
+#: src/images/app.zig
+msgid "Save as"
+msgstr "Enregistrer sous"
+
+#: src/images/app.zig
+msgid "Save as…"
+msgstr "Enregistrer sous…"
+
+#: src/editor/app.zig
+msgid "Save changes before closing?"
+msgstr "Enregistrer les modifications avant de fermer ?"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save current look as theme"
+msgstr "Enregistrer l'apparence actuelle comme thème"
+
+#: src/control_center/sections/printers.zig
+msgid "Save display name"
+msgstr "Enregistrer le nom affiché"
+
+#: src/control_center/sections/users.zig
+msgid "Save groups"
+msgstr "Enregistrer les groupes"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save layout: {name}"
+msgstr "Enregistrer la disposition : {name}"
+
+#: src/control_center/sections/appearance.zig
+msgid "Save look…"
+msgstr "Enregistrer l'apparence…"
+
+#: src/control_center/sections/users.zig
+msgid "Save name"
+msgstr "Enregistrer le nom"
+
+#: src/control_center/sections/users.zig
+msgid "Save password"
+msgstr "Enregistrer le mot de passe"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save shortcut"
+msgstr "Enregistrer le raccourci"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save the window layout."
+msgstr "Enregistrer la disposition des fenêtres."
+
+#: src/control_center/search_index.zig
+msgid "Save theme"
+msgstr "Enregistrer le thème"
+
+#: src/images/app.zig
+msgid "Save your edits?"
+msgstr "Enregistrer vos modifications ?"
+
+#: src/editor/app.zig
+msgid "Saved"
+msgstr "Enregistré"
+
+#: src/images/app.zig
+msgid "Saved PNG copy."
+msgstr "Copie PNG enregistrée."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved for RediWM, but could not update the system folder association."
+msgstr "Enregistré pour RediWM, mais impossible de modifier l'association système des dossiers."
+
+#: src/control_center/sections/region.zig
+msgid "Saved for your user’s RediWM session only; system defaults are unchanged."
+msgstr "Enregistré uniquement pour votre session RediWM ; les valeurs système par défaut restent inchangées."
+
+#: src/images/app.zig
+msgid "Saved {name}"
+msgstr "{name} enregistré"
+
+#: src/control_center/sections/portals.zig
+msgid "Saved. Changes apply next time you sign in."
+msgstr "Enregistré. Les modifications prendront effet à la prochaine connexion."
+
+#: src/control_center/welcome.zig
+msgid "Saved. You can change these later in Settings."
+msgstr "Enregistré. Vous pourrez modifier ces choix dans les paramètres."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved. Your choice applies immediately."
+msgstr "Enregistré. Votre choix s'applique immédiatement."
+
+#: src/editor/app.zig
+msgid "Saving a large file. Editing resumes when it is written."
+msgstr "Enregistrement d'un fichier volumineux. L'édition reprendra une fois l'écriture terminée."
+
+#: src/images/app.zig
+msgid "Saving image…"
+msgstr "Enregistrement de l'image…"
+
+#: src/editor/app.zig
+msgid "Saving…"
+msgstr "Enregistrement…"
+
+#: src/files/app_paint.zig
+msgid "Scanning folder..."
+msgstr "Analyse du dossier…"
+
+#: src/control_center/sections/appearance.zig
+msgid "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+msgstr "La capture d'écran apparaît pendant l'enregistrement ou le partage de votre écran. Il est recommandé de la laisser activée."
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens tall (1–10)"
+msgstr "Hauteur en écrans (1–10)"
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens wide (1–10)"
+msgstr "Largeur en écrans (1–10)"
+
+#: src/screenshot/selector.zig
+msgid "Screenshot"
+msgstr "Capture d'écran"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Output"
+msgstr "Capturer l'écran"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Region"
+msgstr "Capturer une zone"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot failed"
+msgstr "Échec de la capture d'écran"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved and copied"
+msgstr "Capture d'écran enregistrée et copiée"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved; clipboard failed"
+msgstr "Capture enregistrée ; échec du presse-papiers"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshots"
+msgstr "Captures d'écran"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop above."
+msgstr "Passer au bureau du dessus."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop below."
+msgstr "Passer au bureau du dessous."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the left."
+msgstr "Passer au bureau de gauche."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the right."
+msgstr "Passer au bureau de droite."
+
+#: src/control_center/search_index.zig
+msgid "Scrollbar width"
+msgstr "Largeur des barres de défilement"
+
+#: src/start_menu/panel.zig
+msgid "Search applications…"
+msgstr "Rechercher des applications…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Search devices…"
+msgstr "Rechercher des appareils…"
+
+#: src/system_monitor/app.zig
+msgid "Search name, PID or user"
+msgstr "Rechercher un nom, un PID ou un utilisateur"
+
+#: src/control_center/sections/services.zig
+msgid "Search services…"
+msgstr "Rechercher des services…"
+
+#: src/control_center/panel.zig
+msgid "Search settings"
+msgstr "Rechercher dans les paramètres"
+
+#: src/control_center/search.zig
+msgid "Search settings…"
+msgstr "Rechercher dans les paramètres…"
+
+#: src/files/app_paint.zig
+msgid "Search this folder"
+msgstr "Rechercher dans ce dossier"
+
+#: src/files/open_with.zig
+msgid "Search: {query}"
+msgstr "Recherche : {query}"
+
+#: src/control_center/sections/network.zig
+msgid "Searching for networks…"
+msgstr "Recherche de réseaux…"
+
+#: src/network/manager.zig
+msgid "Secured"
+msgstr "Sécurisé"
+
+#: src/control_center/sections/network.zig
+msgid "Security"
+msgstr "Sécurité"
+
+#: src/control_center/sections/desktop.zig
+msgid "See your position while navigating. Drag the highlighted view to pan."
+msgstr "Repérez votre position pendant la navigation. Faites glisser la vue en surbrillance pour vous déplacer."
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 1"
+msgstr "Partage : ratio 1"
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 2"
+msgstr "Partage : ratio 2"
+
+#: src/files/app_torrents.zig
+msgid "Seed: stop at finish"
+msgstr "Partage : arrêter à la fin"
+
+#: src/files/app_torrent_rows.zig
+msgid "Seeding"
+msgstr "En partage"
+
+#: src/files/app_chooser.zig
+msgid "Select"
+msgstr "Sélectionner"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Select a device"
+msgstr "Sélectionner un appareil"
+
+#: src/system_monitor/app.zig
+msgid "Select a process first"
+msgstr "Sélectionnez d'abord un processus"
+
+#: src/printing/ladder.zig
+msgid "Select an existing queue or add the printer again."
+msgstr "Sélectionnez une file existante ou ajoutez de nouveau l'imprimante."
+
+#: src/control_center/sections/printers.zig
+msgid "Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."
+msgstr "Choisissez un moteur USB installé parmi les périphériques découverts ou saisissez une adresse réseau. La connexion de la file sélectionnée sera modifiée."
+
+#: src/files/app_dialogs.zig
+msgid "Select one item to view its properties"
+msgstr "Sélectionnez un seul élément pour afficher ses propriétés"
+
+#: src/files/open_with.zig
+msgid "Selected files"
+msgstr "Fichiers sélectionnés"
+
+#: src/delete_dialog.zig
+msgid "Selected items"
+msgstr "Éléments sélectionnés"
+
+#: src/system_monitor/app.zig
+msgid "Selected process"
+msgstr "Processus sélectionné"
+
+#: src/control_center/sections/services.zig
+msgid "Service"
+msgstr "Service"
+
+#: src/control_center/sections/services.zig
+msgid "Service changes are unlocked for this session."
+msgstr "Les modifications des services sont déverrouillées pour cette session."
+
+#: src/control_center/panel.zig
+msgid "Services"
+msgstr "Services"
+
+#: src/control_center/sections/services.zig
+msgid "Services taking at least 1 second to activate."
+msgstr "Services mettant au moins 1 seconde à s'activer."
+
+#: src/control_center/sections/users.zig
+msgid "Session"
+msgstr "Session"
+
+#: src/session/lock.zig
+msgid "Session ›"
+msgstr "Session ›"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Set Depth"
+msgstr "Définir la profondeur"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as my default"
+msgstr "Définir comme valeur par défaut personnelle"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as system default"
+msgstr "Définir par défaut pour le système"
+
+#: src/start_menu/panel.zig
+msgid "Settings"
+msgstr "Paramètres"
+
+#: src/control_center/sections/appearance.zig
+msgid "Shadow"
+msgstr "Ombre"
+
+#: src/share_picker/client.zig
+msgid "Share screen"
+msgstr "Partager l'écran"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sharp"
+msgstr "Net"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shortcut already in use. Try another."
+msgstr "Raccourci déjà utilisé. Essayez-en un autre."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Show Paired Devices"
+msgstr "Afficher les appareils associés"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show Trash"
+msgstr "Afficher la corbeille"
+
+#: src/control_center/sections/users.zig
+msgid "Show all groups"
+msgstr "Afficher tous les groupes"
+
+#: src/files/app_menu.zig
+msgid "Show changed files"
+msgstr "Afficher les fichiers modifiés"
+
+#: src/control_center/sections/users.zig
+msgid "Show curated"
+msgstr "Afficher la sélection"
+
+#: src/control_center/sections/region.zig
+msgid "Show day"
+msgstr "Afficher le jour"
+
+#: src/files/app_menu.zig
+msgid "Show full paths"
+msgstr "Afficher les chemins complets"
+
+#: src/files/app_menu.zig
+msgid "Show hidden files"
+msgstr "Afficher les fichiers masqués"
+
+#: src/files/app_torrents.zig
+msgid "Show in folder"
+msgstr "Afficher dans le dossier"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show launch splash"
+msgstr "Afficher l'écran de lancement"
+
+#: src/control_center/sections/desktop.zig
+msgid "Show mini map"
+msgstr "Afficher la mini-carte"
+
+#: src/control_center/sections/printers.zig
+msgid "Show more"
+msgstr "Afficher plus"
+
+#: src/control_center/sections/region.zig
+msgid "Show seconds"
+msgstr "Afficher les secondes"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shut down the computer."
+msgstr "Éteindre l'ordinateur."
+
+#: src/control_center/sections/printers.zig
+msgid "Sides: {sides}"
+msgstr "Faces : {sides}"
+
+#: src/session/lock.zig
+msgid "Sign-in cancelled"
+msgstr "Connexion annulée"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed"
+msgstr "Échec de la connexion"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed: {reason}"
+msgstr "Échec de la connexion : {reason}"
+
+#: src/control_center/sections/network.zig
+msgid "Sign-in required"
+msgstr "Connexion nécessaire"
+
+#: src/session/greeter.zig
+msgid "Signing in…"
+msgstr "Connexion…"
+
+#: src/control_center/panel.zig
+msgid "Single-click file and folder icons"
+msgstr "Cliquer une fois sur les icônes de fichiers et de dossiers"
+
+#: src/files/app_layout.zig
+msgid "Size"
+msgstr "Taille"
+
+#: src/control_center/sections/appearance.zig
+msgid "Size to screen"
+msgstr "Ajuster à l'écran"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sized to fit your screen · move a slider to set your own"
+msgstr "Adapté à votre écran · déplacez un curseur pour personnaliser"
+
+#: src/files/app_paint.zig
+msgid "Skip (S)"
+msgstr "Ignorer (S)"
+
+#: src/control_center/sections/display.zig
+msgid "Sleep"
+msgstr "Veille"
+
+#: src/system_monitor/app.zig
+msgid "Sleeping"
+msgstr "En sommeil"
+
+#: src/control_center/sections/appearance.zig
+msgid "Slightly darken and mute windows that are not focused"
+msgstr "Assombrir et atténuer légèrement les fenêtres inactives"
+
+#: src/control_center/sections/services.zig
+msgid "Slow"
+msgstr "Lent"
+
+#: src/control_center/sections/appearance.zig
+msgid "Small"
+msgstr "Petit"
+
+#: src/files/app_menu.zig
+msgid "Smallest first"
+msgstr "Plus petits d'abord"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a bottom quarter, or restore it."
+msgstr "Placer la fenêtre active dans un quart inférieur ou la restaurer."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a top quarter, or maximize it."
+msgstr "Placer la fenêtre active dans un quart supérieur ou l'agrandir."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the left half."
+msgstr "Placer la fenêtre active dans la moitié gauche."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the right half."
+msgstr "Placer la fenêtre active dans la moitié droite."
+
+#: src/control_center/search_index.zig
+msgid "Snapped window gap"
+msgstr "Espacement des fenêtres ancrées"
+
+#: src/files/properties.zig
+msgid "Socket"
+msgstr "Socket"
+
+#: src/control_center/sections/appearance.zig
+msgid "Soft"
+msgstr "Doux"
+
+#: src/control_center/sections/users.zig
+msgid "Some groups cannot be safely shown; group changes are disabled."
+msgstr "Certains groupes ne peuvent pas être affichés de façon sûre ; les modifications des groupes sont désactivées."
+
+#: src/systemd.zig
+msgid "Some startup times are unavailable."
+msgstr "Certains temps de démarrage sont indisponibles."
+
+#: src/images/app.zig
+msgid "Space / Esc to close · Arrow keys to browse"
+msgstr "Espace / Échap pour fermer · Flèches pour parcourir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Spawn"
+msgstr "Lancer"
+
+#: src/printing/options.zig
+msgid "Speed"
+msgstr "Vitesse"
+
+#: src/control_center/sections/users.zig
+msgid "Standard"
+msgstr "Standard"
+
+#: src/control_center/sections/services.zig
+msgid "Start"
+msgstr "Démarrer"
+
+#: src/control_center/sections/printers.zig
+msgid "Start CUPS"
+msgstr "Démarrer CUPS"
+
+#: src/control_center/search_index.zig
+msgid "Start button gap"
+msgstr "Espacement du bouton de démarrage"
+
+#: src/control_center/search_index.zig
+msgid "Start button icon size"
+msgstr "Taille de l'icône du bouton de démarrage"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start button logo"
+msgstr "Logo du bouton de démarrage"
+
+#: src/files/app_torrents.zig
+msgid "Start download"
+msgstr "Démarrer le téléchargement"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start menu"
+msgstr "Menu de démarrage"
+
+#: src/control_center/search_index.zig
+msgid "Start menu height"
+msgstr "Hauteur du menu de démarrage"
+
+#: src/control_center/search_index.zig
+msgid "Start menu logo"
+msgstr "Logo du menu de démarrage"
+
+#: src/control_center/search_index.zig
+msgid "Start menu size"
+msgstr "Taille du menu de démarrage"
+
+#: src/control_center/sections/services.zig
+msgid "Start mode"
+msgstr "Mode de démarrage"
+
+#: src/control_center/welcome.zig
+msgid "Start using RediWM"
+msgstr "Commencer à utiliser RediWM"
+
+#: src/session/greeter.zig
+msgid "Starting session…"
+msgstr "Démarrage de la session…"
+
+#: src/systemd.zig
+msgid "Startup setting saved. Running status is unchanged."
+msgstr "Réglage de démarrage enregistré. L'état d'exécution reste inchangé."
+
+#: src/control_center/sections/services.zig
+msgid "Startup settings apply at boot. Deferred is coming later."
+msgstr "Les réglages de démarrage s'appliquent à l'amorçage. Le démarrage différé sera ajouté plus tard."
+
+#: src/control_center/sections/services.zig
+msgid "Startup time"
+msgstr "Temps de démarrage"
+
+#: src/system_monitor/app.zig
+msgid "State"
+msgstr "État"
+
+#: src/printing/cups.zig
+msgid "State unavailable"
+msgstr "État indisponible"
+
+#: src/control_center/sections/network.zig
+msgid "Status"
+msgstr "État"
+
+#: src/control_center/sections/services.zig
+msgid "Stop"
+msgstr "Arrêter"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Stop Searching"
+msgstr "Arrêter la recherche"
+
+#: src/control_center/sections/printers.zig
+msgid "Stop accepting jobs"
+msgstr "Ne plus accepter de tâches"
+
+#: src/files/app_torrents.zig
+msgid "Stop seeding"
+msgstr "Arrêter le partage"
+
+#: src/printing/cups.zig
+msgid "Stopped"
+msgstr "Arrêté"
+
+#: src/control_center/sections/appearance.zig
+msgid "Strong"
+msgstr "Fort"
+
+#: src/control_center/sections/printers.zig
+msgid "Suggested supported resolution: {x} × {y} dpi"
+msgstr "Résolution prise en charge suggérée : {x} × {y} ppp"
+
+#: src/control_center/sections/region.zig
+msgid "Sunday"
+msgstr "Dimanche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."
+msgstr "Super+Q ouvre le terminal ; Super+M ouvre Alimentation. Les flèches changent de fenêtre ; les chiffres changent d'espace de travail."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend"
+msgstr "Mettre en veille"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend Auto"
+msgstr "Mettre en veille automatiquement"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Down"
+msgstr "Échanger vers le bas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Left"
+msgstr "Échanger vers la gauche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Right"
+msgstr "Échanger vers la droite"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Up"
+msgstr "Échanger vers le haut"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile down."
+msgstr "Échanger la fenêtre active avec celle du dessous."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile left."
+msgstr "Échanger la fenêtre active avec celle de gauche."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile right."
+msgstr "Échanger la fenêtre active avec celle de droite."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile up."
+msgstr "Échanger la fenêtre active avec celle du dessus."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next power profile."
+msgstr "Passer au profil d'alimentation suivant."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next window."
+msgstr "Passer à la fenêtre suivante."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the previous window."
+msgstr "Passer à la fenêtre précédente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to workspace {n}."
+msgstr "Passer à l'espace de travail {n}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch workspace."
+msgstr "Changer d'espace de travail."
+
+#: src/files/app_dialogs.zig
+msgid "Switched branch"
+msgstr "Branche changée"
+
+#: src/files/app_dialogs.zig
+msgid "Switched to {name}"
+msgstr "Passage à {name}"
+
+#: src/files/properties.zig
+msgid "Symbolic link"
+msgstr "Lien symbolique"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "System"
+msgstr "Système"
+
+#: src/system_monitor/app.zig
+msgid "System Monitor"
+msgstr "Moniteur système"
+
+#: src/printing/admin.zig
+msgid "System bus connection lost. Reopen Printers to reconnect."
+msgstr "Connexion au bus système perdue. Rouvrez Imprimantes pour vous reconnecter."
+
+#: src/printing/admin.zig
+msgid "System bus disconnected during printer administration."
+msgstr "Le bus système a été déconnecté pendant l'administration de l'imprimante."
+
+#: src/control_center/sections/appearance.zig
+msgid "System default"
+msgstr "Valeur système par défaut"
+
+#: src/control_center/sections/services.zig
+msgid "Systemd is unavailable."
+msgstr "Systemd est indisponible."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Take shortcuts back from a virtual machine or remote desktop."
+msgstr "Récupérer les raccourcis capturés par une machine virtuelle ou un bureau distant."
+
+#: src/control_center/sections/users.zig
+msgid "Takes effect at next boot. The keyring will not unlock automatically."
+msgstr "Prend effet au prochain démarrage. Le trousseau de clés ne sera pas déverrouillé automatiquement."
+
+#: src/control_center/search_index.zig
+msgid "Tap to click"
+msgstr "Toucher pour cliquer"
+
+#: src/files/app_dialogs.zig
+msgid "Target name already exists"
+msgstr "Le nom de destination existe déjà"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar"
+msgstr "Barre des tâches"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar clock. The date uses your regional format."
+msgstr "Horloge de la barre des tâches. La date utilise votre format régional."
+
+#: src/control_center/search_index.zig
+msgid "Taskbar corner radius"
+msgstr "Rayon des coins de la barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar edge gap"
+msgstr "Marge de la barre des tâches"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar gap from edge"
+msgstr "Distance de la barre des tâches au bord"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar items"
+msgstr "Éléments de la barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar length"
+msgstr "Longueur de la barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar position"
+msgstr "Position de la barre des tâches"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar sections"
+msgstr "Sections de la barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar size"
+msgstr "Taille de la barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar theme"
+msgstr "Thème de la barre des tâches"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar, calendar, lock screen and new apps."
+msgstr "Barre des tâches, calendrier, écran de verrouillage et nouvelles applications."
+
+#: src/control_center/sections/appearance.zig
+msgid "Temporarily show the selected window at full size; keep desktop zoom."
+msgstr "Afficher temporairement la fenêtre sélectionnée en taille réelle sans changer le zoom du bureau."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Terminal"
+msgstr "Terminal"
+
+#: src/files/app_terminal.zig
+msgid "Terminal helper is unavailable"
+msgstr "L'assistant du terminal est indisponible"
+
+#: src/control_center/search_index.zig
+msgid "Terminal opacity"
+msgstr "Opacité du terminal"
+
+#: src/control_center/sections/appearance.zig
+msgid "Terminal opacity (new windows)"
+msgstr "Opacité du terminal (nouvelles fenêtres)"
+
+#: src/files/app_terminal.zig
+msgid "Terminal paste exceeds the available input queue"
+msgstr "Le texte collé dépasse la file de saisie disponible du terminal"
+
+#: src/system_monitor/app.zig
+msgid "Termination requested"
+msgstr "Arrêt demandé"
+
+#: src/control_center/sections/printers.zig
+msgid "Test without the driver…"
+msgstr "Tester sans le pilote…"
+
+#: src/editor/app.zig
+msgid "Text file"
+msgstr "Fichier texte"
+
+#: src/editor/app.zig
+msgid "Text files are limited to 4 GiB."
+msgstr "Les fichiers texte sont limités à 4 Gio."
+
+#: src/editor/app.zig
+msgid "Text not found"
+msgstr "Texte introuvable"
+
+#: src/images/app.zig
+msgid "That file already exists. Choose another name."
+msgstr "Ce fichier existe déjà. Choisissez un autre nom."
+
+#: src/editor/app.zig
+msgid "That file is open in another tab. Choose a different name."
+msgstr "Ce fichier est ouvert dans un autre onglet. Choisissez un autre nom."
+
+#: src/files/appimage.zig
+msgid "The AppImage contains more than one application launcher"
+msgstr "L'AppImage contient plusieurs lanceurs d'application"
+
+#: src/files/appimage.zig
+msgid "The AppImage has no usable application launcher"
+msgstr "L'AppImage ne contient aucun lanceur utilisable"
+
+#: src/printing/ladder.zig
+msgid "The CUPS USB backend uses libusb; a usblp node is not required."
+msgstr "Le moteur USB de CUPS utilise libusb ; un nœud usblp n'est pas nécessaire."
+
+#: src/printing/cups.zig
+msgid "The CUPS client configuration could not be read or is invalid."
+msgstr "La configuration du client CUPS est illisible ou invalide."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "The RediWM block in gtk.css is incomplete. Repair it before applying colors."
+msgstr "Le bloc RediWM dans gtk.css est incomplet. Réparez-le avant d'appliquer les couleurs."
+
+#: src/printing/ladder.zig
+msgid "The available queue settings match the supplied media or resolution expectations."
+msgstr "Les réglages disponibles de la file correspondent aux attentes fournies pour le support ou la résolution."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen stays on."
+msgstr "L'écran intégré reste allumé."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen turns off while another display is connected."
+msgstr "L'écran intégré s'éteint lorsqu'un autre écran est connecté."
+
+#: src/printing/ladder.zig
+msgid "The character-device path used by this queue is missing."
+msgstr "Le chemin du périphérique caractère utilisé par cette file est absent."
+
+#: src/control_center/sections/printers.zig
+msgid "The current printer resolution is unavailable."
+msgstr "La résolution actuelle de l'imprimante est indisponible."
+
+#: src/files/main.zig
+msgid "The destination folder is unavailable"
+msgstr "Le dossier de destination est indisponible"
+
+#: src/printing/ladder.zig
+msgid "The device address matches; successful communication has not been confirmed."
+msgstr "L'adresse du périphérique correspond ; la communication n'a pas été confirmée."
+
+#: src/pdf/main.zig
+msgid "The document could not be printed."
+msgstr "Le document n'a pas pu être imprimé."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver did not report the requested value. Review its settings before printing."
+msgstr "Le pilote n'a pas signalé la valeur demandée. Vérifiez ses paramètres avant d'imprimer."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver reports label media."
+msgstr "Le pilote signale un support d'étiquettes."
+
+#: src/files/main.zig
+msgid "The drop timed out"
+msgstr "Le délai du dépôt a expiré"
+
+#: src/files/main.zig
+msgid "The dropped list failed or exceeded 1 MiB"
+msgstr "Échec de la liste de dépôt ou dépassement de 1 Mio"
+
+#: src/files/app_terminal.zig
+msgid "The dropped paths are invalid or too long"
+msgstr "Les chemins déposés sont invalides ou trop longs"
+
+#: src/images/app.zig
+msgid "The file changed. Please try again."
+msgstr "Le fichier a changé. Réessayez."
+
+#: src/printing/ladder.zig
+msgid "The file type of the queue's device-node path could not be read."
+msgstr "Impossible de lire le type de fichier du chemin du nœud de périphérique de la file."
+
+#: src/images/app.zig
+msgid "The filename is too long."
+msgstr "Le nom de fichier est trop long."
+
+#: src/printing/ladder.zig
+msgid "The last job has not completed."
+msgstr "La dernière tâche n'est pas terminée."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a backend connection problem."
+msgstr "La dernière tâche signale un problème de connexion du moteur."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a document or filter failure."
+msgstr "La dernière tâche signale un échec du document ou des filtres."
+
+#: src/printing/ladder.zig
+msgid "The last job was aborted or stopped."
+msgstr "La dernière tâche a été abandonnée ou arrêtée."
+
+#: src/printing/ladder.zig
+msgid "The last job was canceled."
+msgstr "La dernière tâche a été annulée."
+
+#: src/printing/ladder.zig
+msgid "The matching USB device has no printer-class interface."
+msgstr "Le périphérique USB correspondant n'a pas d'interface de classe imprimante."
+
+#: src/printing/ladder.zig
+msgid "The matching USB printer was not found."
+msgstr "L'imprimante USB correspondante n'a pas été trouvée."
+
+#: src/printing/ladder.zig
+msgid "The matching device-node file type could not be read."
+msgstr "Impossible de lire le type de fichier du nœud de périphérique correspondant."
+
+#: src/printing/ladder.zig
+msgid "The network printer did not answer."
+msgstr "L'imprimante réseau n'a pas répondu."
+
+#: src/printing/ladder.zig
+msgid "The printer answered an IPP request."
+msgstr "L'imprimante a répondu à une requête IPP."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer change could not be requested."
+msgstr "Impossible de demander la modification de l'imprimante."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer no longer exists. Refresh before retrying."
+msgstr "L'imprimante n'existe plus. Actualisez avant de réessayer."
+
+#: src/printing/cups.zig
+msgid "The printer or job no longer exists. Refresh the list."
+msgstr "L'imprimante ou la tâche n'existe plus. Actualisez la liste."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is not accepting new jobs."
+msgstr "La file d'impression n'accepte pas de nouvelles tâches."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is stopped."
+msgstr "La file d'impression est arrêtée."
+
+#: src/printing/cups.zig
+msgid "The queue changed, but personal preferences could not be moved. Check your default printer."
+msgstr "La file a été modifiée, mais les préférences personnelles n'ont pas pu être déplacées. Vérifiez votre imprimante par défaut."
+
+#: src/printing/ladder.zig
+msgid "The queue could not be checked without a CUPS response."
+msgstr "La file n'a pas pu être vérifiée sans réponse de CUPS."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, but its state or acceptance of jobs is unknown."
+msgstr "La file existe, mais son état ou l'acceptation des tâches sont inconnus."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, is enabled, and accepts jobs."
+msgstr "La file existe, est activée et accepte les tâches."
+
+#: src/control_center/sections/printers.zig
+msgid "The queue identifier change could not be verified. Review the printer list before retrying."
+msgstr "La modification de l'identifiant de la file n'a pas pu être vérifiée. Consultez la liste des imprimantes avant de réessayer."
+
+#: src/printing/ladder.zig
+msgid "The queue resolution differs from the expected resolution."
+msgstr "La résolution de la file diffère de la résolution attendue."
+
+#: src/printing/ladder.zig
+msgid "The queue's character device exists; backend access has not been tested."
+msgstr "Le périphérique caractère de la file existe ; l'accès par le moteur n'a pas été testé."
+
+#: src/printing/ladder.zig
+msgid "The queue's default media differs from the expected media."
+msgstr "Le support par défaut de la file diffère du support attendu."
+
+#: src/printing/ladder.zig
+msgid "The queue's device address does not match the selected printer."
+msgstr "L'adresse du périphérique de la file ne correspond pas à l'imprimante sélectionnée."
+
+#: src/printing/ladder.zig
+msgid "The queue's device-node path is a regular file or another wrong file type."
+msgstr "Le chemin du nœud de périphérique de la file est un fichier ordinaire ou un autre type de fichier incorrect."
+
+#: src/control_center/sections/printers.zig
+msgid "The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."
+msgstr "L'échantillon brut a été imprimé, mais pas le test du pilote : examinez le pilote, les filtres, le format du papier et la résolution."
+
+#: src/printing/ladder.zig
+msgid "The selected queue was not found."
+msgstr "La file sélectionnée n'a pas été trouvée."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable."
+msgstr "Le gestionnaire de services du système est indisponible."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable; start CUPS using your distribution's service tools."
+msgstr "Le gestionnaire de services du système est indisponible ; démarrez CUPS avec les outils de services de votre distribution."
+
+#: src/control_center/search_index.zig
+msgid "Theme"
+msgstr "Thème"
+
+#: src/files/worker.zig
+msgid "Theme installed. Choose it in Settings → Appearance."
+msgstr "Thème installé. Choisissez-le dans Paramètres → Apparence."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed."
+msgstr "Échec de l'opération sur le thème."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed: {reason}"
+msgstr "Échec de l'opération sur le thème : {reason}"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme packs"
+msgstr "Paquets de thèmes"
+
+#: src/control_center/sections/appearance.zig
+msgid "Themes & colours"
+msgstr "Thèmes et couleurs"
+
+#: src/printing/cups.zig
+msgid "This CUPS server does not support the requested operation."
+msgstr "Ce serveur CUPS ne prend pas en charge l'opération demandée."
+
+#: src/printing/ladder.zig
+msgid "This backend needs a character device, but no matching node was found."
+msgstr "Ce moteur nécessite un périphérique caractère, mais aucun nœud correspondant n'a été trouvé."
+
+#: src/delete_dialog.zig
+msgid "This cannot be undone."
+msgstr "Cette action est irréversible."
+
+#: src/control_center/sections/printers.zig
+msgid "This capability has no selectable queue default in the current driver."
+msgstr "Le pilote actuel ne propose pas de valeur par défaut sélectionnable pour cette fonction."
+
+#: src/printing/ladder.zig
+msgid "This connection has no direct presence check."
+msgstr "Cette connexion ne permet pas de vérifier directement la présence."
+
+#: src/control_center/sections/printers.zig
+msgid "This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."
+msgstr "Ce pilote ne propose pas la résolution suggérée comme paramètre de file. Vérifiez ses options de qualité ou choisissez un autre pilote."
+
+#: src/editor/app.zig
+msgid "This file contains binary data and cannot be edited as text."
+msgstr "Ce fichier contient des données binaires et ne peut pas être modifié comme du texte."
+
+#: src/editor/app.zig
+msgid "This file has multiple hard links. Use Save As to create a separate copy."
+msgstr "Ce fichier a plusieurs liens physiques. Utilisez « Enregistrer sous » pour créer une copie distincte."
+
+#: src/editor/app.zig
+msgid "This file is not valid UTF-8 text."
+msgstr "Ce fichier n'est pas un texte UTF-8 valide."
+
+#: src/files/app_paint.zig
+msgid "This folder is empty"
+msgstr "Ce dossier est vide"
+
+#: src/images/app.zig
+msgid "This image has unsaved changes."
+msgstr "Cette image contient des modifications non enregistrées."
+
+#: src/control_center/sections/printers.zig
+msgid "This is a label printer"
+msgstr "C'est une imprimante d'étiquettes"
+
+#: src/control_center/sections/display.zig
+msgid "This output does not advertise editable display modes."
+msgstr "Cet écran ne fournit pas de modes d'affichage modifiables."
+
+#: src/printing/cups.zig
+msgid "This print server requires an unsupported encrypted or authenticated connection."
+msgstr "Ce serveur d'impression nécessite une connexion chiffrée ou authentifiée non prise en charge."
+
+#: src/printing/admin.zig
+msgid "This printer belongs to a CUPS class. Manage its class membership before renaming it here."
+msgstr "Cette imprimante appartient à une classe CUPS. Gérez son appartenance à cette classe avant de la renommer ici."
+
+#: src/control_center/sections/printers.zig
+msgid "This range has no selectable queue setting in the current driver."
+msgstr "Le pilote actuel ne propose pas de paramètre de file sélectionnable pour cette plage."
+
+#: src/files/git.zig
+msgid "This repository runs its own programs; switch branches in a terminal"
+msgstr "Ce dépôt exécute ses propres programmes ; changez de branche dans un terminal"
+
+#: src/network/manager.zig
+msgid "This security type needs a network configuration tool."
+msgstr "Ce type de sécurité nécessite un outil de configuration réseau."
+
+#: src/control_center/panel.zig
+msgid "This setting is unavailable on this device or in the current mode."
+msgstr "Ce paramètre est indisponible sur cet appareil ou dans le mode actuel."
+
+#: src/files/app_torrents.zig
+msgid "This transfer is no longer available."
+msgstr "Ce transfert n'est plus disponible."
+
+#: src/control_center/sections/region.zig
+msgid "Thursday"
+msgstr "Jeudi"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Down"
+msgstr "Ancrer en bas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Left"
+msgstr "Ancrer à gauche"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Right"
+msgstr "Ancrer à droite"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Up"
+msgstr "Ancrer en haut"
+
+#: src/control_center/welcome.zig
+msgid "Tiling"
+msgstr "Mosaïque"
+
+#: src/control_center/sections/region.zig
+msgid "Time"
+msgstr "Heure"
+
+#: src/control_center/sections/region.zig
+msgid "Time & Date"
+msgstr "Date et heure"
+
+#: src/control_center/sections/region.zig
+msgid "Time zone"
+msgstr "Fuseau horaire"
+
+#: src/control_center/search_index.zig
+msgid "Titlebar height"
+msgstr "Hauteur de la barre de titre"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Floating"
+msgstr "Activer ou désactiver le mode flottant"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Fullscreen"
+msgstr "Activer ou quitter le plein écran"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Launcher"
+msgstr "Afficher ou masquer le lanceur"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Maximize"
+msgstr "Agrandir ou restaurer"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Power Menu"
+msgstr "Afficher ou masquer le menu d'alimentation"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Split"
+msgstr "Changer la séparation"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Workspace Tiling"
+msgstr "Activer ou désactiver la mosaïque de l'espace de travail"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle automatic tiling for the current workspace."
+msgstr "Activer ou désactiver la mosaïque automatique pour l'espace de travail actuel."
+
+#: src/pdf/app_paint.zig
+msgid "Toggle sidebar"
+msgstr "Afficher ou masquer le volet latéral"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle the focused window between floating and automatic tiling."
+msgstr "Passer la fenêtre active du mode flottant à la mosaïque automatique et inversement."
+
+#: src/control_center/sections/appearance.zig
+msgid "Top"
+msgstr "En haut"
+
+#: src/files/app_torrents.zig
+msgid "Torrent file or magnet link"
+msgstr "Fichier torrent ou lien magnet"
+
+#: src/control_center/search_index.zig
+msgid "Touchpad speed"
+msgstr "Vitesse du pavé tactile"
+
+#: src/files/app_torrents.zig
+msgid "Transfer"
+msgstr "Transfert"
+
+#: src/files/torrents.zig
+msgid "Transfer request could not be sent. Please retry."
+msgstr "Impossible d'envoyer la requête de transfert. Réessayez."
+
+#: src/files/ops.zig
+msgid "Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Transférés : {completed}. Ignorés : {skipped}. Échecs : {failed}. Restants : {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Transferring {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Transfert {current}/{total} : {name}… (Échap pour annuler)"
+
+#: src/files/app_paint.zig
+msgid "Transferring..."
+msgstr "Transfert…"
+
+#: src/files/app.zig
+msgid "Transfers"
+msgstr "Transferts"
+
+#: src/files/torrents.zig
+msgid "Transfers disconnected. Reopen Transfers to reconnect."
+msgstr "Transferts déconnecté. Rouvrez Transferts pour vous reconnecter."
+
+#: src/files/torrents.zig
+msgid "Transfers is disconnected. Reopen Transfers to reconnect."
+msgstr "Transferts est déconnecté. Rouvrez Transferts pour vous reconnecter."
+
+#: src/files/app_torrents.zig
+msgid "Transfers needs attention"
+msgstr "Transferts nécessite votre attention"
+
+#: src/control_center/sections/display.zig
+msgid "Transform"
+msgstr "Transformation"
+
+#: src/desktop/watcher.zig
+msgid "Trash"
+msgstr "Corbeille"
+
+#: src/files/app_fileops.zig
+msgid "Trash emptied"
+msgstr "Corbeille vidée"
+
+#: src/images/app.zig
+msgid "Trash is unavailable: install gio to use it."
+msgstr "Corbeille indisponible : installez gio."
+
+#: src/files/app_fileops.zig
+msgid "Trash unavailable (gio not installed)"
+msgstr "Corbeille indisponible (gio non installé)"
+
+#: src/control_center/search_index.zig
+msgid "Treble"
+msgstr "Aigus"
+
+#: src/control_center/sections/printers.zig
+msgid "Troubleshooting"
+msgstr "Dépannage"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Trusted Device"
+msgstr "Appareil de confiance"
+
+#: src/control_center/search.zig
+msgid "Try a setting name, such as volume, wallpaper or scroll."
+msgstr "Essayez un nom de paramètre, comme volume, fond d'écran ou défilement."
+
+#: src/control_center/sections/printers.zig
+msgid "Try one language sample…"
+msgstr "Tester un échantillon linguistique…"
+
+#: src/control_center/sections/region.zig
+msgid "Tuesday"
+msgstr "Mardi"
+
+#: src/control_center/sections/display.zig
+msgid "Turn off screen"
+msgstr "Éteindre l'écran"
+
+#: src/control_center/sections/network.zig
+msgid "Turned off"
+msgstr "Éteint"
+
+#: src/printing/options.zig
+msgid "Two-sided printing"
+msgstr "Impression recto verso"
+
+#: src/printing/options.zig
+msgid "Two-sided, long edge"
+msgstr "Recto verso, bord long"
+
+#: src/printing/options.zig
+msgid "Two-sided, short edge"
+msgstr "Recto verso, bord court"
+
+#: src/files/app_layout.zig
+msgid "Type"
+msgstr "Type"
+
+#: src/desktop/app_paint.zig
+msgid "Type to search applications — Enter chooses"
+msgstr "Saisir pour rechercher une application — Entrée pour choisir"
+
+#: src/start_menu/panel.zig
+msgid "Type to search…"
+msgstr "Saisir pour rechercher…"
+
+#: src/files/app_menu.zig
+msgid "Type: A to Z"
+msgstr "Type : de A à Z"
+
+#: src/files/app_menu.zig
+msgid "Type: Z to A"
+msgstr "Type : de Z à A"
+
+#: src/control_center/sections/appearance.zig
+msgid "UI font"
+msgstr "Police de l'interface"
+
+#: src/printing/ladder.zig
+msgid "USB presence or queue-to-device identity could not be established."
+msgstr "La présence USB ou la correspondance entre file et périphérique n'a pas pu être établie."
+
+#: src/files/app_dialogs.zig
+msgid "Unable to prepare deletion"
+msgstr "Impossible de préparer la suppression"
+
+#: src/session/lock.zig
+msgid "Unable to unlock. Try again."
+msgstr "Impossible de déverrouiller. Réessayez."
+
+#: src/battery_popup.zig
+msgid "Unavailable"
+msgstr "Indisponible"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Unavailable: {name}"
+msgstr "Indisponible : {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo"
+msgstr "Annuler"
+
+#: src/images/app.zig
+msgid "Undo edits"
+msgstr "Annuler les modifications"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo the last layout change."
+msgstr "Annuler la dernière modification de disposition."
+
+#: src/control_center/sections/printers.zig
+msgid "Unknown"
+msgstr "Inconnu"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Unknown key"
+msgstr "Touche inconnue"
+
+#: src/control_center/sections/services.zig
+msgid "Unlock"
+msgstr "Déverrouiller"
+
+#: src/control_center/sections/users.zig
+msgid "Unlock to make account changes."
+msgstr "Déverrouillez pour modifier les comptes."
+
+#: src/control_center/sections/services.zig
+msgid "Unlock to make service changes."
+msgstr "Déverrouillez pour modifier les services."
+
+#: src/network/manager.zig
+msgid "Unmanaged"
+msgstr "Non géré"
+
+#: src/files/app_model.zig
+msgid "Unpin"
+msgstr "Désépingler"
+
+#: src/start_menu/panel.zig
+msgid "Unpin an application first (five pins maximum)."
+msgstr "Désépinglez d'abord une application (cinq épingles maximum)."
+
+#: src/start_menu/panel.zig
+msgid "Unpin application"
+msgstr "Désépingler l'application"
+
+#: src/taskbar/window_menu.zig
+msgid "Unpin from dock"
+msgstr "Désépingler du dock"
+
+#: src/images/app.zig
+msgid "Unsaved edits will be discarded."
+msgstr "Les modifications non enregistrées seront perdues."
+
+#: src/images/app.zig
+msgid "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo"
+msgstr "Modifications non enregistrées · Ctrl+S : enregistrer · Ctrl+Z : annuler"
+
+#: src/system_monitor/app.zig
+msgid "Unsaved work will be lost."
+msgstr "Le travail non enregistré sera perdu."
+
+#: src/images/app.zig
+msgid "Unsupported image, missing decoder, or file unavailable"
+msgstr "Image non prise en charge, décodeur absent ou fichier indisponible"
+
+#: src/editor/app.zig
+msgid "Untitled"
+msgstr "Sans titre"
+
+#: src/files/app_torrents.zig
+msgid "Up"
+msgstr "Monter"
+
+#: src/network/manager.zig
+msgid "Updating Wi-Fi…"
+msgstr "Mise à jour du Wi-Fi…"
+
+#: src/files/app_layout.zig
+msgid "Upload"
+msgstr "Envoi"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 1 MiB/s"
+msgstr "Envoi : 1 Mio/s"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 128 KiB/s"
+msgstr "Envoi : 128 Kio/s"
+
+#: src/power_menu.zig
+msgid "Uptime unavailable"
+msgstr "Durée de fonctionnement indisponible"
+
+#: src/power_menu.zig
+msgid "Uptime {hours}h {minutes}m"
+msgstr "En marche depuis {hours} h {minutes} min"
+
+#: src/control_center/sections/region.zig
+msgid "Use 24-hour time"
+msgstr "Utiliser le format 24 heures"
+
+#: src/network/manager.zig
+msgid "Use 8–63 characters or a 64-digit hex key."
+msgstr "Utilisez 8 à 63 caractères ou une clé hexadécimale de 64 chiffres."
+
+#: src/images/app.zig
+msgid "Use a .png filename to save a PNG copy."
+msgstr "Utilisez un nom se terminant par .png pour enregistrer une copie PNG."
+
+#: src/control_center/folder_picker.zig
+msgid "Use folder"
+msgstr "Utiliser le dossier"
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue identifier."
+msgstr "Utilisez des lettres, chiffres, points, tirets ou tirets bas pour l'identifiant de la file."
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue name."
+msgstr "Utilisez des lettres, chiffres, points, tirets ou tirets bas pour le nom de la file."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Use logo"
+msgstr "Utiliser le logo"
+
+#: src/control_center/sections/printers.zig
+msgid "Use suggested resolution"
+msgstr "Utiliser la résolution suggérée"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Used for desktop folders, app shortcuts and apps that run in a terminal."
+msgstr "Utilisé pour les dossiers du bureau, les raccourcis d'applications et les applications exécutées dans un terminal."
+
+#: src/control_center/sections/users.zig
+msgid "User"
+msgstr "Utilisateur"
+
+#: src/control_center/sections/printers.zig
+msgid "Username"
+msgstr "Nom d'utilisateur"
+
+#: src/control_center/panel.zig
+msgid "Users"
+msgstr "Utilisateurs"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Uses the main theme. Apply again after changing it; restart apps to see the colors."
+msgstr "Utilise le thème principal. Appliquez de nouveau après toute modification ; redémarrez les applications pour voir les couleurs."
+
+#: src/control_center/sections/desktop.zig
+msgid "Vertical Pan"
+msgstr "Déplacement vertical"
+
+#: src/files/app.zig
+msgid "Videos"
+msgstr "Vidéos"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "View its connection, battery and device settings."
+msgstr "Afficher sa connexion, sa batterie et ses paramètres."
+
+#: src/files/app_places.zig
+msgid "Volume"
+msgstr "Volume"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Down"
+msgstr "Réduire le volume"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Mute"
+msgstr "Couper le son"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Up"
+msgstr "Augmenter le volume"
+
+#: src/control_center/panel.zig
+msgid "Volume, microphones and output devices."
+msgstr "Volume, microphones et périphériques de sortie."
+
+#: src/control_center/sections/network.zig
+msgid "WPA2 / WPA3 Personal"
+msgstr "WPA2 / WPA3 personnel"
+
+#: src/control_center/sections/network.zig
+msgid "WPA3 Personal"
+msgstr "WPA3 personnel"
+
+#: src/control_center/sections/printers.zig
+msgid "Wait for the current printer operation to finish."
+msgstr "Attendez la fin de l'opération sur l'imprimante."
+
+#: src/polkit/dialog.zig
+msgid "Waiting for authentication service…"
+msgstr "Attente du service d'authentification…"
+
+#: src/control_center/sections/services.zig
+msgid "Waiting for authentication…"
+msgstr "Attente de l'authentification…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Waiting for the device…"
+msgstr "Attente de l'appareil…"
+
+#: src/polkit/dialog.zig
+msgid "Waiting…"
+msgstr "Attente…"
+
+#: src/control_center/search_index.zig
+msgid "Wallpaper"
+msgstr "Fond d'écran"
+
+#: src/control_center/sections/appearance.zig
+msgid "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."
+msgstr "Attention : l'indicateur de capture d'écran est masqué. L'enregistrement et le partage peuvent continuer sans indicateur visible ni bouton d'arrêt. Il est déconseillé de le masquer."
+
+#: src/control_center/sections/network.zig
+msgid "Weak"
+msgstr "Faible"
+
+#: src/control_center/sections/region.zig
+msgid "Wednesday"
+msgstr "Mercredi"
+
+#: src/control_center/welcome.zig
+msgid "Welcome to RediWM"
+msgstr "Bienvenue dans RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "When the lid is closed"
+msgstr "À la fermeture du capot"
+
+#: src/control_center/sections/display.zig
+msgid "Where desktop icons appear."
+msgstr "Emplacement des icônes du bureau."
+
+#: src/control_center/sections/appearance.zig
+msgid "While dragging a file out of it"
+msgstr "Lorsqu'un fichier en est glissé"
+
+#: src/control_center/search_index.zig
+msgid "Wi-Fi"
+msgstr "Wi-Fi"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is disabled by the hardware switch"
+msgstr "Le Wi-Fi est désactivé par l'interrupteur matériel"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is turned off"
+msgstr "Le Wi-Fi est désactivé"
+
+#: src/network/manager.zig
+msgid "Wi-Fi network"
+msgstr "Réseau Wi-Fi"
+
+#: src/network/manager.zig
+msgid "Wi-Fi request failed. Check credentials and permissions."
+msgstr "Échec de la requête Wi-Fi. Vérifiez les identifiants et les permissions."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Window Management"
+msgstr "Gestion des fenêtres"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window and panel transitions"
+msgstr "Transitions des fenêtres et panneaux"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome darkness"
+msgstr "Assombrissement des décorations de fenêtre"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome height"
+msgstr "Hauteur des décorations de fenêtre"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome opacity"
+msgstr "Opacité des décorations de fenêtre"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window control gap"
+msgstr "Espacement des commandes de fenêtre"
+
+#: src/control_center/search_index.zig
+msgid "Window control spacing"
+msgstr "Distance entre les commandes de fenêtre"
+
+#: src/control_center/search_index.zig
+msgid "Window darkness"
+msgstr "Assombrissement des fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "Window item gap"
+msgstr "Espacement des éléments de fenêtre"
+
+#: src/control_center/search_index.zig
+msgid "Window item width"
+msgstr "Largeur des éléments de fenêtre"
+
+#: src/control_center/search_index.zig
+msgid "Window opacity"
+msgstr "Opacité des fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "Window shadow"
+msgstr "Ombre des fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "Window spacing"
+msgstr "Espacement des fenêtres"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window switching zoom"
+msgstr "Zoom au changement de fenêtre"
+
+#: src/control_center/search_index.zig
+msgid "Window tabs"
+msgstr "Onglets des fenêtres"
+
+#: src/control_center/sections/appearance.zig
+msgid "Windows"
+msgstr "Fenêtres"
+
+#: src/control_center/panel.zig
+msgid "Wired and wireless connections."
+msgstr "Connexions filaires et sans fil."
+
+#: src/control_center/sections/network.zig
+msgid "Wireless connections"
+msgstr "Connexions sans fil"
+
+#: src/editor/app.zig
+msgid "Word Wrap"
+msgstr "Retour à la ligne"
+
+#: src/images/app.zig
+msgid "Working…"
+msgstr "Opération en cours…"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace"
+msgstr "Espace de travail"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Next"
+msgstr "Espace de travail suivant"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Prev"
+msgstr "Espace de travail précédent"
+
+#: src/control_center/search_index.zig
+msgid "Workspace layout"
+msgstr "Disposition des espaces de travail"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace {n}"
+msgstr "Espace de travail {n}"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspaces"
+msgstr "Espaces de travail"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspaces · Hyprland-style preset"
+msgstr "Espaces de travail · Préréglage de type Hyprland"
+
+#: src/files/properties.zig
+msgid "Write"
+msgstr "Écriture"
+
+#: src/control_center/search_index.zig
+msgid "Xwayland scale"
+msgstr "Échelle Xwayland"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland scale (global)"
+msgstr "Échelle Xwayland (globale)"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Changes require a compositor restart."
+msgstr "Xwayland : {active}× actif. Les modifications nécessitent un redémarrage du compositeur."
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Restart the compositor to apply {pending}×."
+msgstr "Xwayland : {active}× actif. Redémarrez le compositeur pour appliquer {pending}×."
+
+#: src/control_center/sections/users.zig
+msgid "You"
+msgstr "Vous"
+
+#: src/control_center/welcome.zig
+msgid "You can change these later in Settings."
+msgstr "Vous pourrez modifier ces choix dans les paramètres."
+
+#: src/delete_dialog.zig
+msgid "You can restore it later from Trash."
+msgstr "Vous pourrez le restaurer depuis la corbeille."
+
+#: src/images/app.zig
+msgid "You can restore the file from Trash."
+msgstr "Vous pouvez restaurer le fichier depuis la corbeille."
+
+#: src/delete_dialog.zig
+msgid "You can restore them later from Trash."
+msgstr "Vous pourrez les restaurer depuis la corbeille."
+
+#: src/control_center/sections/network.zig
+msgid "You're connected to this network"
+msgstr "Vous êtes connecté à ce réseau"
+
+#: src/control_center/sections/network.zig
+msgid "You're online."
+msgstr "Vous êtes en ligne."
+
+#: src/control_center/sections/printers.zig
+msgid "Your default printer"
+msgstr "Votre imprimante par défaut"
+
+#: src/control_center/sections/desktop.zig
+msgid "Your desktop panning area."
+msgstr "La zone de déplacement de votre bureau."
+
+#: src/control_center/panel.zig
+msgid "Your language, regional formats and calendar preferences."
+msgstr "Votre langue, vos formats régionaux et les préférences du calendrier."
+
+#: src/editor/app.zig
+msgid "Your unsaved changes will be lost if you discard them."
+msgstr "Vos modifications non enregistrées seront perdues si vous les abandonnez."
+
+#: src/system_monitor/app.zig
+msgid "Zombie"
+msgstr "Zombie"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom In"
+msgstr "Agrandir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Out"
+msgstr "Réduire"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Reset"
+msgstr "Réinitialiser le zoom"
+
+#: src/images/app.zig
+msgid "Zoom in"
+msgstr "Agrandir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom into the desktop canvas."
+msgstr "Augmenter le zoom du canevas du bureau."
+
+#: src/images/app.zig
+msgid "Zoom out"
+msgstr "Réduire"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom out of the desktop canvas."
+msgstr "Réduire le zoom du canevas du bureau."
+
+#: src/control_center/sections/appearance.zig
+msgid "Zoom the desktop to the selected window's level; fade windows passed by the camera."
+msgstr "Ajuster le zoom du bureau au niveau de la fenêtre sélectionnée ; estomper les fenêtres dépassées par la caméra."
+
+#: src/control_center/search_index.zig
+msgid "accessibility animations"
+msgstr "accessibilité animations"
+
+#: src/control_center/search_index.zig
+msgid "application colours theme"
+msgstr "applications couleurs thème"
+
+#: src/control_center/search_index.zig
+msgid "application shell console"
+msgstr "application interpréteur console"
+
+#: src/control_center/search_index.zig
+msgid "applications titlebar grouping"
+msgstr "applications barre de titre regroupement"
+
+#: src/control_center/search_index.zig
+msgid "autologin boot"
+msgstr "connexion automatique démarrage"
+
+#: src/control_center/search_index.zig
+msgid "backend gtk kde dialogs"
+msgstr "moteur gtk kde dialogues"
+
+#: src/control_center/search_index.zig
+msgid "background desktop image folder"
+msgstr "fond bureau image dossier"
+
+#: src/control_center/search_index.zig
+msgid "backlight screen light"
+msgstr "rétroéclairage écran lumière"
+
+#: src/control_center/search_index.zig
+msgid "blue light warm screen"
+msgstr "lumière bleue écran chaud"
+
+#: src/control_center/search_index.zig
+msgid "buttons close maximize minimize"
+msgstr "boutons fermer agrandir réduire"
+
+#: src/delete_dialog.zig
+msgid "bytes"
+msgstr "octets"
+
+#: src/control_center/search_index.zig
+msgid "calendar monday sunday"
+msgstr "calendrier lundi dimanche"
+
+#: src/control_center/search_index.zig
+msgid "canvas workspaces tiling"
+msgstr "canevas espaces de travail mosaïque"
+
+#: src/control_center/search_index.zig
+msgid "chooser portal"
+msgstr "sélecteur portail"
+
+#: src/control_center/search_index.zig
+msgid "chrome tint"
+msgstr "teinte décorations"
+
+#: src/control_center/search_index.zig
+msgid "clock battery tray notifications capture"
+msgstr "horloge batterie zone de notification notifications capture"
+
+#: src/control_center/search_index.zig
+msgid "colors colours dark light preset"
+msgstr "couleurs sombre clair préréglage"
+
+#: src/control_center/search_index.zig
+msgid "date weekday"
+msgstr "date jour de semaine"
+
+#: src/control_center/search_index.zig
+msgid "defaults restore"
+msgstr "valeurs par défaut restaurer"
+
+#: src/control_center/search_index.zig
+msgid "delete pack"
+msgstr "supprimer paquet"
+
+#: src/control_center/search_index.zig
+msgid "desktop panning"
+msgstr "bureau déplacement"
+
+#: src/control_center/search_index.zig
+msgid "double click folders"
+msgstr "double clic dossiers"
+
+#: src/control_center/search_index.zig
+msgid "drag drop windows"
+msgstr "glisser déposer fenêtres"
+
+#: src/notifications/toast.zig
+msgid "earlier"
+msgstr "auparavant"
+
+#: src/control_center/search_index.zig
+msgid "edge pan transitions"
+msgstr "bord déplacement transitions"
+
+#: src/control_center/search_index.zig
+msgid "effects motion"
+msgstr "effets mouvement"
+
+#: src/control_center/search_index.zig
+msgid "enable apps launcher"
+msgstr "activer applications lanceur"
+
+#: src/control_center/search_index.zig
+msgid "export look"
+msgstr "exporter apparence"
+
+#: src/control_center/search_index.zig
+msgid "files folders application"
+msgstr "fichiers dossiers application"
+
+#: src/control_center/search_index.zig
+msgid "gaps tiling"
+msgstr "espacements mosaïque"
+
+#: src/files/git.zig
+msgid "git switch failed"
+msgstr "échec du changement de branche git"
+
+#: src/control_center/search_index.zig
+msgid "hide automatically"
+msgstr "masquer automatiquement"
+
+#: src/control_center/search_index.zig
+msgid "hotkeys keybindings bindings terminal screenshot volume brightness workspaces"
+msgstr "raccourcis clavier touches terminal capture volume luminosité espaces de travail"
+
+#: src/control_center/search_index.zig
+msgid "icons pack"
+msgstr "icônes paquet"
+
+#: src/control_center/search_index.zig
+msgid "import pack"
+msgstr "importer paquet"
+
+#: src/control_center/search_index.zig
+msgid "keep icons in place"
+msgstr "fixer les icônes"
+
+#: src/control_center/search_index.zig
+msgid "keyboard trackpad"
+msgstr "clavier pavé tactile"
+
+#: src/control_center/search_index.zig
+msgid "laptop suspend sleep"
+msgstr "portable suspendre veille"
+
+#: src/control_center/search_index.zig
+msgid "launcher icon image"
+msgstr "lanceur icône image"
+
+#: src/control_center/search_index.zig
+msgid "launcher size"
+msgstr "taille lanceur"
+
+#: src/control_center/search_index.zig
+msgid "launcher width"
+msgstr "largeur lanceur"
+
+#: src/control_center/search_index.zig
+msgid "left right speakers"
+msgstr "gauche droite haut-parleurs"
+
+#: src/control_center/search_index.zig
+msgid "light appearance theme"
+msgstr "clair apparence thème"
+
+#: src/control_center/search_index.zig
+msgid "locale numbers currency dates"
+msgstr "paramètres régionaux nombres monnaie dates"
+
+#: src/control_center/search_index.zig
+msgid "locale translation"
+msgstr "langue traduction"
+
+#: src/control_center/search_index.zig
+msgid "logo launcher"
+msgstr "logo lanceur"
+
+#: src/control_center/sections/users.zig
+msgid "lowercase username"
+msgstr "nom utilisateur minuscules"
+
+#: src/control_center/search_index.zig
+msgid "magnification mouse"
+msgstr "agrandissement souris"
+
+#: src/control_center/search_index.zig
+msgid "minimap overview"
+msgstr "mini-carte vue d'ensemble"
+
+#: src/control_center/search_index.zig
+msgid "motion duration"
+msgstr "mouvement durée"
+
+#: src/notifications/toast.zig
+msgid "now"
+msgstr "maintenant"
+
+#: src/control_center/search_index.zig
+msgid "orientation portrait landscape screen"
+msgstr "orientation portrait paysage écran"
+
+#: src/control_center/search_index.zig
+msgid "overview location"
+msgstr "vue d'ensemble emplacement"
+
+#: src/control_center/search_index.zig
+msgid "overview timeout"
+msgstr "vue d'ensemble délai"
+
+#: src/control_center/search_index.zig
+msgid "panel colors colours"
+msgstr "panneau couleurs"
+
+#: src/control_center/search_index.zig
+msgid "panel height"
+msgstr "hauteur panneau"
+
+#: src/control_center/search_index.zig
+msgid "panel margin"
+msgstr "marge panneau"
+
+#: src/control_center/search_index.zig
+msgid "panel rounded"
+msgstr "panneau arrondi"
+
+#: src/control_center/search_index.zig
+msgid "panel top bottom"
+msgstr "panneau haut bas"
+
+#: src/control_center/search_index.zig
+msgid "panel width"
+msgstr "largeur panneau"
+
+#: src/control_center/search_index.zig
+msgid "pointer acceleration sensitivity"
+msgstr "pointeur accélération sensibilité"
+
+#: src/control_center/search_index.zig
+msgid "pointer mouse"
+msgstr "pointeur souris"
+
+#: src/control_center/search_index.zig
+msgid "printing cups add queue jobs paper driver label"
+msgstr "impression cups ajouter file tâches papier pilote étiquette"
+
+#: src/control_center/search_index.zig
+msgid "recycle bin"
+msgstr "corbeille"
+
+#: src/control_center/search_index.zig
+msgid "rounded"
+msgstr "arrondi"
+
+#: src/control_center/search_index.zig
+msgid "rounded windows"
+msgstr "fenêtres arrondies"
+
+#: src/control_center/search_index.zig
+msgid "rows columns panning area"
+msgstr "lignes colonnes zone de déplacement"
+
+#: src/control_center/search_index.zig
+msgid "rules tiling windows"
+msgstr "règles mosaïque fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "running apps indicator"
+msgstr "indicateur applications actives"
+
+#: src/control_center/search_index.zig
+msgid "screen frequency hz"
+msgstr "écran fréquence hz"
+
+#: src/control_center/search_index.zig
+msgid "screen output"
+msgstr "écran sortie"
+
+#: src/control_center/search_index.zig
+msgid "screen position monitors main display"
+msgstr "position écrans moniteurs principal"
+
+#: src/control_center/search_index.zig
+msgid "screen scaling dpi zoom"
+msgstr "écran échelle dpi zoom"
+
+#: src/control_center/search_index.zig
+msgid "screen size pixels"
+msgstr "taille écran pixels"
+
+#: src/control_center/search_index.zig
+msgid "scrolling direction reverse invert mouse touchpad"
+msgstr "défilement direction inverser souris pavé tactile"
+
+#: src/control_center/search_index.zig
+msgid "shadows"
+msgstr "ombres"
+
+#: src/control_center/search_index.zig
+msgid "size"
+msgstr "taille"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer high frequencies"
+msgstr "son égaliseur hautes fréquences"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer low frequencies"
+msgstr "son égaliseur basses fréquences"
+
+#: src/control_center/search_index.zig
+msgid "sound input recording mute"
+msgstr "son entrée enregistrement muet"
+
+#: src/control_center/search_index.zig
+msgid "sound speakers loudness mute"
+msgstr "son haut-parleurs volume muet"
+
+#: src/control_center/search_index.zig
+msgid "spacing tiled margin"
+msgstr "espacement mosaïque marge"
+
+#: src/control_center/search_index.zig
+msgid "speakers headphones sound default"
+msgstr "haut-parleurs casque son défaut"
+
+#: src/control_center/search_index.zig
+msgid "start menu spacing"
+msgstr "espacement menu démarrage"
+
+#: src/control_center/search_index.zig
+msgid "startup welcome animation"
+msgstr "démarrage accueil animation"
+
+#: src/control_center/search_index.zig
+msgid "systemd startup boot daemon unit enabled failed slow"
+msgstr "systemd démarrage démon unité activé échec lent"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip size"
+msgstr "taille élément barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip spacing"
+msgstr "espacement éléments barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "taskbar launcher spacing"
+msgstr "espacement lanceur barre des tâches"
+
+#: src/control_center/search_index.zig
+msgid "text size accessibility"
+msgstr "taille texte accessibilité"
+
+#: src/control_center/search_index.zig
+msgid "thickness scrolling accessibility"
+msgstr "épaisseur défilement accessibilité"
+
+#: src/control_center/search_index.zig
+msgid "tiling master stack"
+msgstr "mosaïque principal pile"
+
+#: src/control_center/search_index.zig
+msgid "time"
+msgstr "heure"
+
+#: src/control_center/search_index.zig
+msgid "time am pm"
+msgstr "heure matin après-midi"
+
+#: src/control_center/search_index.zig
+msgid "time taskbar font"
+msgstr "heure barre des tâches police"
+
+#: src/control_center/search_index.zig
+msgid "top bottom left right"
+msgstr "haut bas gauche droite"
+
+#: src/control_center/search_index.zig
+msgid "touchpad trackpad"
+msgstr "pavé tactile trackpad"
+
+#: src/control_center/search_index.zig
+msgid "trackpad acceleration sensitivity"
+msgstr "pavé tactile accélération sensibilité"
+
+#: src/control_center/search_index.zig
+msgid "transparency"
+msgstr "transparence"
+
+#: src/control_center/search_index.zig
+msgid "transparency chrome"
+msgstr "transparence décorations"
+
+#: src/control_center/search_index.zig
+msgid "transparency unfocused"
+msgstr "transparence inactif"
+
+#: src/control_center/search_index.zig
+msgid "typeface text"
+msgstr "police texte"
+
+#: src/control_center/search_index.zig
+msgid "typing keys"
+msgstr "frappe touches"
+
+#: src/control_center/search_index.zig
+msgid "typing keys speed"
+msgstr "frappe touches vitesse"
+
+#: src/control_center/search_index.zig
+msgid "unfocused darkness"
+msgstr "inactif assombrissement"
+
+#: src/control_center/search_index.zig
+msgid "users login password administrator groups"
+msgstr "utilisateurs connexion mot de passe administrateur groupes"
+
+#: src/control_center/search_index.zig
+msgid "warmth colour color"
+msgstr "chaleur couleur"
+
+#: src/control_center/search_index.zig
+msgid "window borders"
+msgstr "bordures fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "window chrome"
+msgstr "décorations fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "window focus"
+msgstr "focus fenêtre"
+
+#: src/control_center/search_index.zig
+msgid "window moving"
+msgstr "déplacement fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "window moving size"
+msgstr "déplacement taille fenêtres"
+
+#: src/control_center/search_index.zig
+msgid "wired internet adapter"
+msgstr "filaire internet adaptateur"
+
+#: src/control_center/search_index.zig
+msgid "wireless internet wlan hotspot hidden network"
+msgstr "sans fil internet wlan point d'accès réseau masqué"
+
+#: src/control_center/search_index.zig
+msgid "wireless pairing paired headphones mouse keyboard"
+msgstr "sans fil association casque souris clavier"
+
+#: src/control_center/search_index.zig
+msgid "x11 legacy apps scaling"
+msgstr "x11 anciennes applications échelle"
+
+#: src/session/power.zig
+msgid "{action} failed"
+msgstr "Échec de {action}"
+
+#: src/control_center/sections/desktop.zig
+msgid "{columns} × {rows} · {n} screen total"
+msgid_plural "{columns} × {rows} · {n} screens total"
+msgstr[0] "{columns} × {rows} · {n} écran au total"
+msgstr[1] "{columns} × {rows} · {n} écrans au total"
+
+#: src/files/app_paint.zig
+msgid "{count} item selected · {size}"
+msgid_plural "{count} items selected · {size}"
+msgstr[0] "{count} élément sélectionné · {size}"
+msgstr[1] "{count} éléments sélectionnés · {size}"
+
+#: src/files/open_with.zig
+msgid "{count} selected file"
+msgid_plural "{count} selected files"
+msgstr[0] "{count} fichier sélectionné"
+msgstr[1] "{count} fichiers sélectionnés"
+
+#: src/delete_dialog.zig
+msgid "{count} selected item"
+msgid_plural "{count} selected items"
+msgstr[0] "{count} élément sélectionné"
+msgstr[1] "{count} éléments sélectionnés"
+
+#: src/files/app_paint.zig
+msgid "{count} transfer · Downloads continue after closing Files."
+msgid_plural "{count} transfers · Downloads continue after closing Files."
+msgstr[0] "{count} transfert · Les téléchargements continuent après la fermeture de Fichiers."
+msgstr[1] "{count} transferts · Les téléchargements continuent après la fermeture de Fichiers."
+
+#: src/notifications/toast.zig
+msgid "{count}h ago"
+msgstr "il y a {count} h"
+
+#: src/notifications/toast.zig
+msgid "{count}m ago"
+msgstr "il y a {count} min"
+
+#: src/files/app_paint.zig
+msgid "{count}{more} item"
+msgid_plural "{count}{more} items"
+msgstr[0] "{count}{more} élément"
+msgstr[1] "{count}{more} éléments"
+
+#: src/desktop/app_paint.zig
+msgid "{kind} · {bytes} bytes"
+msgstr "{kind} · {bytes} octets"
+
+#: src/delete_dialog.zig
+msgid "{kind} · {size} {unit}"
+msgstr "{kind} · {size} {unit}"
+
+#: src/control_center/sections/region.zig
+msgid "{locale} · RediWM stays in English"
+msgstr "{locale} · RediWM reste en anglais"
+
+#: src/images/app.zig
+msgid "{modified}{name} — Images ({position}/{count})"
+msgstr "{modified}{name} — Images ({position}/{count})"
+
+#: src/editor/app.zig
+msgid "{modified}{name} — Text Editor ({tab}/{tabs})"
+msgstr "{modified}{name} — Éditeur de texte ({tab}/{tabs})"
+
+#: src/files/open_with.zig
+msgid "{name} (default)"
+msgstr "{name} (par défaut)"
+
+#: src/control_center/sections/region.zig
+msgid "{name} ({locale})"
+msgstr "{name} ({locale})"
+
+#: src/files/app_places.zig
+msgid "{name} can be safely removed"
+msgstr "{name} peut être retiré en toute sécurité"
+
+#: src/control_center/sections/appearance.zig
+msgid "{name} could not be loaded · showing the default R"
+msgstr "Impossible de charger {name} · affichage du R par défaut"
+
+#: src/files/volumes.zig
+msgid "{name} is already mounted"
+msgstr "{name} est déjà monté"
+
+#: src/files/volumes.zig
+msgid "{name} is busy"
+msgstr "{name} est occupé"
+
+#: src/files/volumes.zig
+msgid "{name} is no longer available"
+msgstr "{name} n'est plus disponible"
+
+#: src/files/app_places.zig
+msgid "{name} is no longer there"
+msgstr "{name} n'existe plus"
+
+#: src/files/app_places.zig
+msgid "{name} mounted"
+msgstr "{name} monté"
+
+#: src/control_center/sections/users.zig
+msgid "{name} · primary"
+msgstr "{name} · principal"
+
+#: src/pdf/app.zig
+msgid "{name} — PDF Viewer ({page}/{pages})"
+msgstr "{name} — Visionneuse PDF ({page}/{pages})"
+
+#: src/files/app.zig
+msgid "{name} — RediWM Files"
+msgstr "{name} — Fichiers RediWM"
+
+#: src/control_center/sections/printers.zig
+msgid "{name}: level unavailable"
+msgstr "{name} : niveau indisponible"
+
+#: src/control_center/sections/printers.zig
+msgid "{n} completed sheet reported by CUPS"
+msgid_plural "{n} completed sheets reported by CUPS"
+msgstr[0] "{n} feuille terminée signalée par CUPS"
+msgstr[1] "{n} feuilles terminées signalées par CUPS"
+
+#: src/system_monitor/app.zig
+msgid "{n} process · Swap {swap}{status}"
+msgid_plural "{n} processes · Swap {swap}{status}"
+msgstr[0] "{n} processus · Échange {swap}{status}"
+msgstr[1] "{n} processus · Échange {swap}{status}"
+
+#: src/control_center/sections/services.zig
+msgid "{n} service, {enabled} enabled"
+msgid_plural "{n} services, {enabled} enabled"
+msgstr[0] "{n} service, {enabled} activé"
+msgstr[1] "{n} services, {enabled} activés"
+
+#: src/files/app_torrents.zig
+msgid "{rate} KiB/s"
+msgstr "{rate} Kio/s"
+
+#: src/files/properties.zig
+msgid "{size} ({bytes} byte)"
+msgid_plural "{size} ({bytes} bytes)"
+msgstr[0] "{size} ({bytes} octet)"
+msgstr[1] "{size} ({bytes} octets)"
+
+#: src/files/app_places.zig
+msgid "{size} Volume"
+msgstr "Volume de {size}"
+
+#: src/files/app_torrents.zig
+msgid "{size} selected · {path}"
+msgstr "{size} sélectionnés · {path}"
+
+#: src/control_center/sections/printers.zig
+msgid "{value} (supported {min}–{max})"
+msgstr "{value} (pris en charge de {min} à {max})"
+
+#: src/files/app_torrents.zig
+msgid "{value} active · {rate} KiB/s"
+msgstr "{value} actifs · {rate} Kio/s"
+
+#: src/files/app_torrents.zig
+msgid "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+msgstr "{value} % · ↓ {rate} Kio/s · ↑ {rate3} Kio/s"
+
+#: src/files/app_torrent_rows.zig
+msgid "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+msgstr "↓ {rate} Kio/s ↑ {rate2} Kio/s"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "L"
+msgstr "G"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "R"
+msgstr "D"
+
+#: src/session/lock.zig
+msgctxt "date"
+msgid "%A, %B %-d"
+msgstr "%A %-d %B"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%A, %B %-d, %Y"
+msgstr "%A %-d %B %Y"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%B %Y"
+msgstr "%B %Y"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Comment"
+msgid "Browse, open and manage local files and folders"
+msgstr "Parcourir, ouvrir et gérer les fichiers et dossiers locaux"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Comment"
+msgid "Download torrents and magnet links in Files"
+msgstr "Télécharger des torrents et liens magnet dans Fichiers"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Comment"
+msgid "Edit text files in tabs"
+msgstr "Modifier des fichiers texte dans des onglets"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Comment"
+msgid "RediWM Wayland compositor"
+msgstr "Compositeur Wayland RediWM"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Comment"
+msgid "Simple arithmetic calculator"
+msgstr "Calculatrice arithmétique simple"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Comment"
+msgid "Validate and install a RediWM theme pack"
+msgstr "Vérifier et installer un paquet de thème RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Comment"
+msgid "View CPU, memory and processes"
+msgstr "Afficher le CPU, la mémoire et les processus"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Comment"
+msgid "View PDF documents with RediWM"
+msgstr "Afficher des documents PDF avec RediWM"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Comment"
+msgid "View images with RediWM"
+msgstr "Afficher des images avec RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:GenericName"
+msgid "File Manager"
+msgstr "Gestionnaire de fichiers"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Keywords"
+msgid "arithmetic;math;calculate;"
+msgstr "arithmétique;maths;calculer;"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Keywords"
+msgid "files;folder;browser;explorer;manager;"
+msgstr "fichiers;dossier;navigateur;explorateur;gestionnaire;"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Keywords"
+msgid "process;task;CPU;memory;performance;"
+msgstr "processus;tâche;CPU;mémoire;performances;"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Name"
+msgid "Calculator"
+msgstr "Calculatrice"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Name"
+msgid "Files Transfers"
+msgstr "Transferts de fichiers"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Name"
+msgid "Image Viewer"
+msgstr "Visionneuse d'images"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Name"
+msgid "Install theme"
+msgstr "Installer le thème"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Name"
+msgid "PDF Viewer"
+msgstr "Visionneuse PDF"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Name"
+msgid "RediWM"
+msgstr "RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Name"
+msgid "RediWM Files"
+msgstr "Fichiers RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Name"
+msgid "System Monitor"
+msgstr "Moniteur système"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Name"
+msgid "Text Editor"
+msgstr "Éditeur de texte"
+
+#: data/org.rediwm.accounts.policy
+msgctxt "polkit"
+msgid "Authentication is required to manage login accounts"
+msgstr "Une authentification est nécessaire pour gérer les comptes de connexion"
+
+#: src/Dock.zig
+msgid "Application"
+msgstr "Application"
+
+#: src/Dock.zig
+msgid "Files"
+msgstr "Fichiers"
+
+#: src/start_menu/search.zig
+msgid "Loading applications…"
+msgstr "Chargement des applications…"
+
+#: src/toplevel/info.zig
+msgid "RediWM Settings"
+msgstr "Paramètres de RediWM"
+
+#: src/start_menu/search.zig
+msgid "Scanning installed apps"
+msgstr "Recherche des applications installées"
+
+#: src/start_menu/search.zig
+msgid "System preferences, display, appearance and input"
+msgstr "Préférences système, affichage, apparence et saisie"
+
+#: src/start_menu/search.zig
+msgid "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing"
+msgstr "paramètres;contrôle;panneau;préférences;affichage;apparence;souris;clavier;imprimante;imprimantes;impression"
+
+#: src/control_center/sections/region.zig
+msgid "English"
+msgstr "Anglais"
diff --git a/po/lint-files b/po/lint-files
new file mode 100644
index 0000000..adcbfd1
--- /dev/null
+++ b/po/lint-files
@@ -0,0 +1,96 @@
+src/Dock.zig
+src/Server.zig
+src/battery_popup.zig
+src/calculator/app.zig
+src/calculator/client.zig
+src/calculator/model.zig
+src/calendar.zig
+src/chrome_tabs.zig
+src/control_center/folder_picker.zig
+src/control_center/panel.zig
+src/control_center/search.zig
+src/control_center/search_index.zig
+src/control_center/sections/appearance.zig
+src/control_center/sections/appearance_colors.zig
+src/control_center/sections/appearance_themes.zig
+src/control_center/sections/appearance_wallpaper.zig
+src/control_center/sections/bluetooth.zig
+src/control_center/sections/default_apps.zig
+src/control_center/sections/desktop.zig
+src/control_center/sections/display.zig
+src/control_center/sections/input.zig
+src/control_center/sections/network.zig
+src/control_center/sections/portals.zig
+src/control_center/sections/printers.zig
+src/control_center/sections/region.zig
+src/control_center/sections/services.zig
+src/control_center/sections/shortcuts.zig
+src/control_center/sections/sound.zig
+src/control_center/sections/users.zig
+src/control_center/welcome.zig
+src/cursor_theme.zig
+src/delete_dialog.zig
+src/desktop/app_actions.zig
+src/desktop/app_paint.zig
+src/desktop/rename.zig
+src/desktop/watcher.zig
+src/editor/app.zig
+src/editor/main.zig
+src/editor_main.zig
+src/files/app.zig
+src/files/app_chooser.zig
+src/files/app_dialogs.zig
+src/files/app_fileops.zig
+src/files/app_git_sidebar.zig
+src/files/app_items.zig
+src/files/app_keyboard.zig
+src/files/app_layout.zig
+src/files/app_listing.zig
+src/files/app_menu.zig
+src/files/app_model.zig
+src/files/app_opening.zig
+src/files/app_paint.zig
+src/files/app_places.zig
+src/files/app_sidebar_paint.zig
+src/files/app_terminal.zig
+src/files/app_torrent_rows.zig
+src/files/app_torrents.zig
+src/files/appimage.zig
+src/files/archive.zig
+src/files/git.zig
+src/files/main.zig
+src/files/open_with.zig
+src/files/ops.zig
+src/files/properties.zig
+src/files/settings.zig
+src/files/torrents.zig
+src/files/volumes.zig
+src/files/worker.zig
+src/files_main.zig
+src/images/app.zig
+src/images_main.zig
+src/osd_paint.zig
+src/pdf/app.zig
+src/pdf/app_document.zig
+src/pdf/app_keyboard.zig
+src/pdf/app_paint.zig
+src/pdf/app_pointer.zig
+src/pdf/main.zig
+src/pdf_main.zig
+src/polkit/agent.zig
+src/polkit/dialog.zig
+src/power_menu.zig
+src/power_profiles.zig
+src/share_picker/client.zig
+src/share_picker/main.zig
+src/start_menu/applications.zig
+src/start_menu/catalog_cache.zig
+src/start_menu/launch.zig
+src/start_menu/panel.zig
+src/start_menu/search.zig
+src/system_monitor/app.zig
+src/system_monitor/client.zig
+src/system_monitor_main.zig
+src/taskbar/battery.zig
+src/taskbar/window_menu.zig
+src/toplevel/info.zig
diff --git a/po/pt_BR.po b/po/pt_BR.po
new file mode 100644
index 0000000..feb4732
--- /dev/null
+++ b/po/pt_BR.po
@@ -0,0 +1,7574 @@
+# Português (Brasil) translation draft for RediWM.
+# Machine-drafted; fuzzy flags removed by the maintainer, native review pending.
+# Native review and screenshot/layout review are still required.
+msgid ""
+msgstr ""
+"Project-Id-Version: RediWM\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-RediWM-Native-Name: Português (Brasil)\n"
+"X-RediWM-Locale: pt_BR.UTF-8\n"
+"X-RediWM-Reviewed: no\n"
+
+#: src/system_monitor/app.zig
+msgid " · /proc unavailable"
+msgstr " · /proc indisponível"
+
+#: src/control_center/sections/printers.zig
+msgid " · Default"
+msgstr " · Padrão"
+
+#: src/system_monitor/app.zig
+msgid " · List limited"
+msgstr " · Lista limitada"
+
+#: src/system_monitor/app.zig
+msgid " · Paused"
+msgstr " · Pausado"
+
+#: src/system_monitor/app.zig
+msgid " · Some processes unavailable"
+msgstr " · Alguns processos indisponíveis"
+
+#: src/control_center/sections/printers.zig
+msgid " · System default"
+msgstr " · Padrão do sistema"
+
+#: src/control_center/sections/desktop.zig
+msgid "1 second"
+msgstr "1 segundo"
+
+#: src/control_center/sections/desktop.zig
+msgid "1.5 seconds"
+msgstr "1,5 segundos"
+
+#: src/control_center/welcome.zig
+msgid "100%"
+msgstr "100%"
+
+#: src/control_center/welcome.zig
+msgid "125%"
+msgstr "125%"
+
+#: src/control_center/welcome.zig
+msgid "150%"
+msgstr "150%"
+
+#: src/control_center/welcome.zig
+msgid "175%"
+msgstr "175%"
+
+#: src/control_center/sections/display.zig
+msgid "180°"
+msgstr "180°"
+
+#: src/control_center/sections/desktop.zig
+msgid "2 seconds"
+msgstr "2 segundos"
+
+#: src/control_center/welcome.zig
+msgid "200%"
+msgstr "200%"
+
+#: src/control_center/search_index.zig
+msgid "24-hour clock"
+msgstr "Relógio de 24 horas"
+
+#: src/control_center/welcome.zig
+msgid "250%"
+msgstr "250%"
+
+#: src/control_center/sections/display.zig
+msgid "270°"
+msgstr "270°"
+
+#: src/control_center/sections/desktop.zig
+msgid "3 seconds"
+msgstr "3 segundos"
+
+#: src/control_center/welcome.zig
+msgid "300%"
+msgstr "300%"
+
+#: src/control_center/sections/desktop.zig
+msgid "5 seconds"
+msgstr "5 segundos"
+
+#: src/system_monitor/app.zig
+msgid "60 seconds"
+msgstr "60 segundos"
+
+#: src/control_center/sections/display.zig
+msgid "90°"
+msgstr "90°"
+
+#: src/printing/ladder.zig
+msgid "A USB character device is not applicable to this connection."
+msgstr "Um dispositivo de caracteres USB não se aplica a esta conexão."
+
+#: src/files/app_opening.zig
+msgid "A file operation is already running"
+msgstr "Já existe uma operação de arquivos em andamento"
+
+#: src/files/app_chooser.zig
+msgid "A file with this name exists. Replace it?"
+msgstr "Já existe um arquivo com este nome. Substituir?"
+
+#: src/printing/ladder.zig
+msgid "A matched device-node path is a regular file or another wrong file type."
+msgstr "O caminho do dispositivo USB correspondente é um arquivo comum ou de outro tipo incorreto."
+
+#: src/printing/ladder.zig
+msgid "A matching USB printer interface is attached."
+msgstr "Uma interface de impressora USB correspondente está conectada."
+
+#: src/printing/ladder.zig
+msgid "A matching character device exists; backend access has not been tested."
+msgstr "Existe um dispositivo de caracteres correspondente; o acesso do serviço não foi testado."
+
+#: src/control_center/sections/printers.zig
+msgid "A printer with this queue name already exists. Choose another name."
+msgstr "Já existe uma impressora com este nome de fila. Escolha outro nome."
+
+#: src/control_center/sections/printers.zig
+msgid "A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."
+msgstr "Uma fila sem processamento transmite os comandos sem alterações; imprimir arquivos PDF requer um driver compatível."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."
+msgstr "A pasta de configuração de um toolkit é um link simbólico. Aplique as cores no local real ou transforme-a em uma pasta comum."
+
+#: src/control_center/sections/appearance.zig
+msgid "APPEARANCE"
+msgstr "APARÊNCIA"
+
+#: src/printing/cups.zig
+msgid "Aborted"
+msgstr "Abortado"
+
+#: src/control_center/sections/printers.zig
+msgid "Accept jobs"
+msgstr "Aceitar trabalhos"
+
+#: src/control_center/sections/users.zig
+msgid "Account details · {name}"
+msgstr "Detalhes da conta · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Account settings are unlocked for this session."
+msgstr "As configurações de conta estão desbloqueadas nesta sessão."
+
+#: src/control_center/sections/users.zig
+msgid "Account type"
+msgstr "Tipo de conta"
+
+#: src/control_center/search_index.zig
+msgid "Accounts"
+msgstr "Contas"
+
+#: src/control_center/sections/services.zig
+msgid "Activated by: {name}"
+msgstr "Ativado por: {name}"
+
+#: src/files/open_with.zig
+msgid "Add Application Shortcut"
+msgstr "Adicionar atalho de aplicativo"
+
+#: src/desktop/app_actions.zig
+msgid "Add Application…"
+msgstr "Adicionar aplicativo…"
+
+#: src/files/open_with.zig
+msgid "Add Shortcut"
+msgstr "Adicionar atalho"
+
+#: src/control_center/sections/printers.zig
+msgid "Add a printer"
+msgstr "Adicionar uma impressora"
+
+#: src/files/app_model.zig
+msgid "Add to applications"
+msgstr "Adicionar aos aplicativos"
+
+#: src/files/app_torrents.zig
+msgid "Add torrent…"
+msgstr "Adicionar torrent…"
+
+#: src/control_center/sections/users.zig
+msgid "Add user"
+msgstr "Adicionar usuário"
+
+#: src/control_center/sections/users.zig
+msgid "Add user…"
+msgstr "Adicionar usuário…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images"
+msgstr "Adicione suas próprias imagens"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images to {folder}"
+msgstr "Adicione suas próprias imagens a {folder}"
+
+#: src/files/app_places.zig
+msgid "Added to Places"
+msgstr "Adicionado a Locais"
+
+#: src/files/worker.zig
+msgid "Added to applications. Keep the AppImage in its current location."
+msgstr "Adicionado aos aplicativos. Mantenha o AppImage no local atual."
+
+#: src/files/app_places.zig
+msgid "Added {value} items to Places"
+msgstr "{value} itens adicionados a Locais"
+
+#: src/files/app_places.zig
+msgid "Added {value} to Places"
+msgstr "{value} adicionado a Locais"
+
+#: src/files/app_opening.zig
+msgid "Adding to applications…"
+msgstr "Adicionando aos aplicativos…"
+
+#: src/network/manager.zig
+msgid "Additional setup required"
+msgstr "Requer configuração adicional"
+
+#: src/control_center/sections/printers.zig
+msgid "Address checks support IPP printers. Other connections can be tested with an explicit print after setup."
+msgstr "A verificação de endereços é compatível com impressoras IPP. Outras conexões podem ser testadas com uma impressão após a configuração."
+
+#: src/control_center/sections/users.zig
+msgid "Administrator"
+msgstr "Administrador"
+
+#: src/polkit/dialog.zig
+msgid "Administrator privileges are required to continue."
+msgstr "São necessários privilégios de administrador para continuar."
+
+#: src/control_center/sections/services.zig
+msgid "All"
+msgstr "Todos"
+
+#: src/files/open_with.zig
+msgid "All Applications"
+msgstr "Todos os aplicativos"
+
+#: src/files/app_chooser.zig
+msgid "All files"
+msgstr "Todos os arquivos"
+
+#: src/delete_dialog.zig
+msgid "All items in Trash"
+msgstr "Todos os itens da lixeira"
+
+#: src/system_monitor/app.zig
+msgid "All processes"
+msgstr "Todos os processos"
+
+#: src/desktop/app_actions.zig
+msgid "Allow Launching"
+msgstr "Permitir execução"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow connections from this device without asking."
+msgstr "Permitir conexões deste dispositivo sem perguntar."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow pairing with this device?"
+msgstr "Permitir o pareamento com este dispositivo?"
+
+#: src/files/app_places.zig
+msgid "Already in Places"
+msgstr "Já está em Locais"
+
+#: src/files/open_with.zig
+msgid "Always use this app for this file type"
+msgstr "Sempre usar este aplicativo para este tipo de arquivo"
+
+#: src/files/open_with.zig
+msgid "Always use this app for {value} files"
+msgstr "Sempre usar este aplicativo para arquivos {value}"
+
+#: src/files/app_opening.zig
+msgid "An application is already being added"
+msgstr "Um aplicativo já está sendo adicionado"
+
+#: src/control_center/sections/services.zig
+msgid "Analyze"
+msgstr "Analisar"
+
+#: src/control_center/sections/services.zig
+msgid "Analyzing…"
+msgstr "Analisando…"
+
+#: src/control_center/search_index.zig
+msgid "Animation speed"
+msgstr "Velocidade da animação"
+
+#: src/control_center/search_index.zig
+msgid "Animations"
+msgstr "Animações"
+
+#: src/session/power.zig
+msgid "Another power action is already in progress."
+msgstr "Já existe outra ação de energia em andamento."
+
+#: src/control_center/sections/appearance.zig
+msgid "App colors"
+msgstr "Cores dos aplicativos"
+
+#: src/control_center/sections/sound.zig
+msgid "App streams"
+msgstr "Fluxos dos aplicativos"
+
+#: src/control_center/panel.zig
+msgid "Appearance"
+msgstr "Aparência"
+
+#: src/files/appimage.zig
+msgid "Application added, but some file or link associations could not be registered"
+msgstr "O aplicativo foi adicionado, mas não foi possível registrar algumas associações de arquivos ou links"
+
+#: src/start_menu/launch.zig
+msgid "Application could not be started"
+msgstr "Não foi possível iniciar o aplicativo"
+
+#: src/control_center/search_index.zig
+msgid "Application language"
+msgstr "Idioma dos aplicativos"
+
+#: src/start_menu/panel.zig
+msgid "Applications"
+msgstr "Aplicativos"
+
+#: src/control_center/sections/desktop.zig
+msgid "Applies to output edges and the space between automatic tiles."
+msgstr "Aplica-se às bordas da tela e ao espaço entre janelas em mosaico automático."
+
+#: src/images/app.zig
+msgid "Apply"
+msgstr "Aplicar"
+
+#: src/control_center/search_index.zig
+msgid "Apply GTK colors"
+msgstr "Aplicar cores do GTK"
+
+#: src/control_center/search_index.zig
+msgid "Apply Qt colors"
+msgstr "Aplicar cores do Qt"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply connection"
+msgstr "Aplicar conexão"
+
+#: src/images/app.zig
+msgid "Apply crop"
+msgstr "Aplicar recorte"
+
+#: src/images/app.zig
+msgid "Apply crop · Enter"
+msgstr "Aplicar recorte · Enter"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply value"
+msgstr "Aplicar valor"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Applying app colors…"
+msgstr "Aplicando cores dos aplicativos…"
+
+#: src/printing/admin.zig
+msgid "Applying printer change; authorization may be required…"
+msgstr "Aplicando alteração da impressora; pode exigir autorização…"
+
+#: src/start_menu/panel.zig
+msgid "Apps"
+msgstr "Aplicativos"
+
+#: src/control_center/sections/appearance.zig
+msgid "Apps and web pages"
+msgstr "Aplicativos e páginas da web"
+
+#: src/files/archive.zig
+msgid "Archive contains an unsafe path"
+msgstr "O arquivo compactado contém um caminho inseguro"
+
+#: src/files/archive.zig
+msgid "Archive contains unsupported links or special files"
+msgstr "O arquivo compactado contém links ou arquivos especiais não suportados"
+
+#: src/files/archive.zig
+msgid "Archive has too many entries"
+msgstr "O arquivo compactado contém entradas demais"
+
+#: src/files/archive.zig
+msgid "Archive is corrupt or unsupported"
+msgstr "O arquivo compactado está corrompido ou não é compatível"
+
+#: src/control_center/welcome.zig
+msgid "Arrange windows automatically."
+msgstr "Organizar as janelas automaticamente."
+
+#: src/control_center/search_index.zig
+msgid "Arrangement"
+msgstr "Organização"
+
+#: src/control_center/panel.zig
+msgid "Arrangement, resolution, refresh rate and scaling."
+msgstr "Organização, resolução, taxa de atualização e escala."
+
+#: src/control_center/sections/desktop.zig
+msgid "Assigned to the current output when first used."
+msgstr "Atribuído à tela atual no primeiro uso."
+
+#: src/control_center/sections/printers.zig
+msgid "Attached USB printers"
+msgstr "Impressoras USB conectadas"
+
+#: src/polkit/dialog.zig
+msgid "Attempt {attempt} of 3"
+msgstr "Tentativa {attempt} de 3"
+
+#: src/control_center/panel.zig
+msgid "Audio"
+msgstr "Áudio"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio (A2DP) · High quality audio"
+msgstr "Áudio (A2DP) · Alta qualidade"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio Settings"
+msgstr "Configurações de áudio"
+
+#: src/control_center/panel.zig
+msgid "Audio output"
+msgstr "Saída de áudio"
+
+#: src/control_center/search_index.zig
+msgid "Audio output device"
+msgstr "Dispositivo de saída de áudio"
+
+#: src/control_center/panel.zig
+msgid "Audio settings"
+msgstr "Configurações de áudio"
+
+#: src/control_center/panel.zig
+msgid "Audio unavailable"
+msgstr "Áudio indisponível"
+
+#: src/control_center/sections/printers.zig
+msgid "Authenticate"
+msgstr "Autenticar"
+
+#: src/printing/admin.zig
+msgid "Authenticating with CUPS…"
+msgstr "Autenticando com o CUPS…"
+
+#: src/polkit/dialog.zig
+msgid "Authenticating…"
+msgstr "Autenticando…"
+
+#: src/polkit/dialog.zig
+msgid "Authentication"
+msgstr "Autenticação"
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed."
+msgstr "A autenticação falhou."
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed. Please try again."
+msgstr "A autenticação falhou. Tente novamente."
+
+#: src/polkit/dialog.zig
+msgid "Authentication required"
+msgstr "Autenticação necessária"
+
+#: src/polkit/dialog.zig
+msgid "Authentication service unavailable."
+msgstr "Serviço de autenticação indisponível."
+
+#: src/session/lock.zig
+msgid "Authentication unavailable. Try again."
+msgstr "Autenticação indisponível. Tente novamente."
+
+#: src/control_center/sections/users.zig
+msgid "Authentication was cancelled or denied."
+msgstr "A autenticação foi cancelada ou negada."
+
+#: src/systemd.zig
+msgid "Authentication was cancelled or denied. Notify setting is unchanged."
+msgstr "A autenticação foi cancelada ou negada. A configuração Notify não mudou."
+
+#: src/control_center/sections/printers.zig
+msgid "Authorize printer administration"
+msgstr "Autorizar a administração de impressoras"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto"
+msgstr "Automático"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto-hide dock"
+msgstr "Ocultar o dock automaticamente"
+
+#: src/network/popup.zig
+msgid "Auto-join this network"
+msgstr "Conectar automaticamente a esta rede"
+
+#: src/printing/options.zig
+msgid "Automatic"
+msgstr "Automático"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Automatic ($TERMINAL / Foot)"
+msgstr "Automático ($TERMINAL / Foot)"
+
+#: src/control_center/search_index.zig
+msgid "Automatic login"
+msgstr "Login automático"
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating."
+msgstr "Mosaico automático com vista fixa e atalhos no estilo do Hyprland. Arraste as janelas para reorganizá-las; Super+V alterna o modo flutuante."
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiling"
+msgstr "Mosaico automático"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Available Devices"
+msgstr "Dispositivos disponíveis"
+
+#: src/files/app_torrents.zig
+msgid "Back"
+msgstr "Voltar"
+
+#: src/files/open_with.zig
+msgid "Back to recommended apps"
+msgstr "Voltar aos aplicativos recomendados"
+
+#: src/control_center/sections/printers.zig
+msgid "Backend"
+msgstr "Serviço de integração"
+
+#: src/printing/ladder.zig
+msgid "Backend communication and device identity have not been confirmed."
+msgstr "A comunicação com o serviço e a identidade do dispositivo não foram confirmadas."
+
+#: src/control_center/sections/sound.zig
+msgid "Balance"
+msgstr "Balanço"
+
+#: src/power_profiles.zig
+msgid "Balanced"
+msgstr "Balanceado"
+
+#: src/control_center/sections/sound.zig
+msgid "Bass Boost"
+msgstr "Reforço de graves"
+
+#: src/control_center/search_index.zig
+msgid "Bass boost"
+msgstr "Reforço de graves"
+
+#: src/printing/options.zig
+msgid "Black and white"
+msgstr "Preto e branco"
+
+#: src/control_center/sections/printers.zig
+msgid "Blank or no output"
+msgstr "Em branco ou sem saída"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Blocked"
+msgstr "Bloqueado"
+
+#: src/session/power.zig
+msgid "Blocked by an active inhibitor lock."
+msgstr "Bloqueado por um inibidor ativo."
+
+#: src/session/power.zig
+msgid "Blocked by an application."
+msgstr "Bloqueado por um aplicativo."
+
+#: src/session/power.zig
+msgid "Blocked by {application}."
+msgstr "Bloqueado por {application}."
+
+#: src/session/power.zig
+msgid "Blocked by {application}: {reason}"
+msgstr "Bloqueado por {application}: {reason}"
+
+#: src/control_center/panel.zig
+msgid "Bluetooth"
+msgstr "Bluetooth"
+
+#: src/control_center/search_index.zig
+msgid "Bluetooth devices"
+msgstr "Dispositivos Bluetooth"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth is turned off"
+msgstr "O Bluetooth está desativado"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth service is unavailable"
+msgstr "O serviço Bluetooth está indisponível"
+
+#: src/control_center/search_index.zig
+msgid "Bold clock"
+msgstr "Relógio em negrito"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bold clock text"
+msgstr "Texto do relógio em negrito"
+
+#: src/control_center/sections/appearance.zig
+msgid "Boost window"
+msgstr "Ampliar janela"
+
+#: src/systemd.zig
+msgid "Boot summary is unavailable."
+msgstr "Resumo de inicialização indisponível."
+
+#: src/control_center/sections/services.zig
+msgid "Boot time: {duration}"
+msgstr "Tempo de inicialização: {duration}"
+
+#: src/control_center/sections/services.zig
+msgid "Boot: from kernel start. Activation times overlap; — means unavailable."
+msgstr "Inicialização: desde o início do kernel. Os tempos de ativação se sobrepõem; — indica indisponível."
+
+#: src/control_center/search_index.zig
+msgid "Border glow"
+msgstr "Brilho da borda"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bottom"
+msgstr "Inferior"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom center"
+msgstr "Inferior, centro"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom left"
+msgstr "Inferior, esquerda"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom right"
+msgstr "Inferior, direita"
+
+#: src/files/git.zig
+msgid "Branch name cannot be empty"
+msgstr "O nome do ramo não pode ficar vazio"
+
+#: src/control_center/sections/appearance.zig
+msgid "Brief placeholder while apps start"
+msgstr "Indicador breve enquanto os aplicativos iniciam"
+
+#: src/control_center/panel.zig
+msgid "Brightness"
+msgstr "Brilho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Down"
+msgstr "Diminuir brilho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Up"
+msgstr "Aumentar brilho"
+
+#: src/files/app_listing.zig
+msgid "Broken link"
+msgstr "Link quebrado"
+
+#: src/control_center/welcome.zig
+msgid "Browser"
+msgstr "Navegador"
+
+#: src/images/app.zig
+msgid "C: crop · Ctrl+S: save · Delete: trash"
+msgstr "C: recortar · Ctrl+S: salvar · Delete: lixeira"
+
+#: src/control_center/sections/appearance.zig
+msgid "CENTER"
+msgstr "CENTRO"
+
+#: src/system_monitor/app.zig
+msgid "CPU %"
+msgstr "CPU %"
+
+#: src/system_monitor/app.zig
+msgid "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"
+msgstr "CPU: 100% = um núcleo · Memória: residente · Ctrl+F buscar · Delete encerrar · Shift+Delete forçar saída"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS"
+msgstr "CUPS"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS accepted the change; the resulting driver value could not be verified."
+msgstr "O CUPS aceitou a alteração; não foi possível verificar o valor resultante do driver."
+
+#: src/printing/ladder.zig
+msgid "CUPS answered an IPP request."
+msgstr "O CUPS respondeu a uma solicitação IPP."
+
+#: src/printing/admin.zig
+msgid "CUPS authentication failed after three attempts. Check the administrator account and permissions."
+msgstr "A autenticação do CUPS falhou após três tentativas. Verifique a conta de administração e suas permissões."
+
+#: src/printing/ladder.zig
+msgid "CUPS availability has not been checked."
+msgstr "A disponibilidade do CUPS não foi verificada."
+
+#: src/printing/cups.zig
+msgid "CUPS cannot honor the requested print settings. Check the paper, format and scaling options."
+msgstr "O CUPS não pode aplicar as configurações de impressão solicitadas. Verifique o papel, o formato e a escala."
+
+#: src/printing/ladder.zig
+msgid "CUPS completed the job with zero sheets reported; physical output is not confirmed."
+msgstr "O CUPS concluiu o trabalho e informou zero folhas; a saída física não foi confirmada."
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."
+msgstr "O CUPS copia a fila e remove seu identificador anterior. Conclua todos os trabalhos primeiro. Depois verifique as opções do driver."
+
+#: src/printing/cups.zig
+msgid "CUPS denied permission. The operation requires authorization."
+msgstr "O CUPS negou a permissão. A operação exige autorização."
+
+#: src/printing/ladder.zig
+msgid "CUPS did not answer an IPP request."
+msgstr "O CUPS não respondeu a uma solicitação IPP."
+
+#: src/printing/cups.zig
+msgid "CUPS did not respond in time. Refresh to try again."
+msgstr "O CUPS não respondeu a tempo. Atualize para tentar novamente."
+
+#: src/printing/admin.zig
+msgid "CUPS discovered no supported printer addresses. You can enter a network address."
+msgstr "O CUPS não detectou endereços de impressora compatíveis. Você pode digitar um endereço de rede."
+
+#: src/printing/cups.zig
+msgid "CUPS is unavailable. Install or start CUPS, then refresh."
+msgstr "O CUPS está indisponível. Instale ou inicie o CUPS e atualize."
+
+#: src/printing/admin.zig
+msgid "CUPS refused or could not complete the request. Check authorization and refresh before retrying."
+msgstr "O CUPS recusou ou não conseguiu concluir a solicitação. Verifique a autorização e atualize antes de tentar novamente."
+
+#: src/printing/admin.zig
+msgid "CUPS refused the printer change. Check authorization, the address and driver, then refresh."
+msgstr "O CUPS recusou a alteração da impressora. Verifique a autorização, o endereço e o driver e atualize."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports conflicting queue and driver defaults."
+msgstr "O CUPS informa padrões conflitantes na fila e no driver."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports the job completed; physical printed output is not confirmed."
+msgstr "O CUPS informa que o trabalho foi concluído; a impressão física não foi confirmada."
+
+#: src/printing/admin.zig
+msgid "CUPS requires an administrator username and password."
+msgstr "O CUPS exige nome de usuário e senha de administração."
+
+#: src/printing/cups.zig
+msgid "CUPS returned an invalid response or the connection failed. Refresh to try again."
+msgstr "O CUPS retornou uma resposta inválida ou a conexão falhou. Atualize para tentar novamente."
+
+#: src/printing/admin.zig
+msgid "CUPS start requested. Refresh to check when it is ready."
+msgstr "Inicialização do CUPS solicitada. Atualize para verificar quando estiver pronto."
+
+#: src/network/manager.zig
+msgid "Cable unplugged"
+msgstr "Cabo desconectado"
+
+#: src/files/app_model.zig
+msgid "Calculate size"
+msgstr "Calcular tamanho"
+
+#: src/calculator/app.zig
+msgid "Calculator"
+msgstr "Calculadora"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom In"
+msgstr "Ampliar câmera"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Out"
+msgstr "Reduzir câmera"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Reset"
+msgstr "Restaurar ampliação da câmera"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel"
+msgstr "Cancelar"
+
+#: src/files/app_paint.zig
+msgid "Cancel (C)"
+msgstr "Cancelar (C)"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel Pairing"
+msgstr "Cancelar pareamento"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel job"
+msgstr "Cancelar trabalho"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel setup"
+msgstr "Cancelar configuração"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel test"
+msgstr "Cancelar teste"
+
+#: src/files/volumes.zig
+msgid "Cancelled"
+msgstr "Cancelado"
+
+#: src/files/ops.zig
+msgid "Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Cancelado. Extraídos: {completed}. Ignorados: {skipped}. Com falha: {failed}. Restantes: {remaining}."
+
+#: src/files/ops.zig
+msgid "Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Cancelado. Transferidos: {completed}. Ignorados: {skipped}. Com falha: {failed}. Restantes: {remaining}."
+
+#: src/files/app_keyboard.zig
+msgid "Cancelling operation..."
+msgstr "Cancelando operação..."
+
+#: src/calculator/model.zig
+msgid "Cannot divide by zero"
+msgstr "Não é possível dividir por zero"
+
+#: src/files/main.zig
+msgid "Cannot drop a folder into itself"
+msgstr "Não é possível soltar uma pasta dentro dela mesma"
+
+#: src/files/app_terminal.zig
+msgid "Cannot insert paths containing control characters"
+msgstr "Não é possível inserir caminhos com caracteres de controle"
+
+#: src/session/lock.zig
+msgid "Cannot reach login service. Try again."
+msgstr "Não foi possível acessar o serviço de login. Tente novamente."
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas"
+msgstr "Área de trabalho ampla"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas & Focus"
+msgstr "Área de trabalho ampla e foco"
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas Preview"
+msgstr "Prévia da área de trabalho ampla"
+
+#: src/control_center/search_index.zig
+msgid "Canvas Size"
+msgstr "Tamanho da área de trabalho ampla"
+
+#: src/control_center/search_index.zig
+msgid "Canvas pan speed"
+msgstr "Velocidade de deslocamento da área de trabalho ampla"
+
+#: src/control_center/search_index.zig
+msgid "Canvas size"
+msgstr "Tamanho da área de trabalho ampla"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas · RediWM preset"
+msgstr "Área de trabalho ampla · Predefinição do RediWM"
+
+#: src/session/lock.zig
+msgid "Caps Lock is on"
+msgstr "Caps Lock está ativado"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture a region of your screen."
+msgstr "Capturar uma região da tela."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture the current display."
+msgstr "Capturar a tela atual."
+
+#: src/control_center/sections/sound.zig
+msgid "Centre"
+msgstr "Centro"
+
+#: src/desktop/app_actions.zig
+msgid "Change Wallpaper"
+msgstr "Alterar papel de parede"
+
+#: src/control_center/sections/printers.zig
+msgid "Change connection…"
+msgstr "Alterar conexão…"
+
+#: src/control_center/sections/users.zig
+msgid "Change password · {name}"
+msgstr "Alterar senha · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Change password…"
+msgstr "Alterar senha…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change printer connection"
+msgstr "Alterar conexão da impressora"
+
+#: src/control_center/sections/printers.zig
+msgid "Change queue identifier…"
+msgstr "Alterar identificador da fila…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change this queue identifier"
+msgstr "Alterar o identificador desta fila"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Change window depth."
+msgstr "Alterar a profundidade da janela."
+
+#: src/control_center/sections/printers.zig
+msgid "Change {old} to {name}?"
+msgstr "Alterar {old} para {name}?"
+
+#: src/control_center/sections/portals.zig
+msgid "Changes apply next time you sign in."
+msgstr "As alterações serão aplicadas no próximo login."
+
+#: src/control_center/sections/display.zig
+msgid "Changes are saved automatically. Scroll the lists for more modes."
+msgstr "As alterações são salvas automaticamente. Role as listas para ver mais modos."
+
+#: src/control_center/sections/users.zig
+msgid "Changes saved."
+msgstr "Alterações salvas."
+
+#: src/control_center/sections/region.zig
+msgid "Changes the taskbar calendar."
+msgstr "Altera o calendário da barra de tarefas."
+
+#: src/taskbar/battery.zig
+msgid "Charging"
+msgstr "Carregando"
+
+#: src/control_center/sections/printers.zig
+msgid "Check IPP address"
+msgstr "Verificar endereço IPP"
+
+#: src/control_center/sections/users.zig
+msgid "Check NSS and /etc/login.defs."
+msgstr "Verifique o NSS e /etc/login.defs."
+
+#: src/control_center/sections/printers.zig
+msgid "Check measured scale"
+msgstr "Verificar a escala medida"
+
+#: src/printing/ladder.zig
+msgid "Check power, the USB cable, and which printer this queue uses."
+msgstr "Verifique a alimentação, o cabo USB e qual impressora esta fila usa."
+
+#: src/printing/ladder.zig
+msgid "Check printer power, the address, and access through the network or VPN."
+msgstr "Verifique a alimentação, o endereço e o acesso à impressora pela rede ou VPN."
+
+#: src/printing/ladder.zig
+msgid "Check the configured CUPS server and whether the print service is installed and available."
+msgstr "Verifique o servidor CUPS configurado e se o serviço de impressão está instalado e disponível."
+
+#: src/printing/ladder.zig
+msgid "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."
+msgstr "Verifique a conexão e o endereço do serviço. Um tempo limite excedido não comprova a necessidade de um ajuste USB especial."
+
+#: src/printing/ladder.zig
+msgid "Check the device's USB mode and its self-test instructions."
+msgstr "Verifique o modo USB do dispositivo e suas instruções de autoteste."
+
+#: src/printing/ladder.zig
+msgid "Check the document, driver, media size, and resolution. Compare with a test that skips the filters."
+msgstr "Verifique o documento, o driver, o tamanho do papel e a resolução. Compare com um teste sem filtros."
+
+#: src/calculator/model.zig
+msgid "Check the expression"
+msgstr "Verifique a expressão"
+
+#: src/printing/ladder.zig
+msgid "Check the job's reported reason before retrying."
+msgstr "Verifique o motivo informado pelo trabalho antes de tentar novamente."
+
+#: src/printing/ladder.zig
+msgid "Check the physical output and any document or filter failure; sheet counters can be incomplete."
+msgstr "Verifique a saída física e as falhas de documentos ou filtros; os contadores de folhas podem estar incompletos."
+
+#: src/control_center/sections/printers.zig
+msgid "Check the printer's self-test sheet for its language and real resolution."
+msgstr "Consulte a linguagem e a resolução real na folha de autoteste da impressora."
+
+#: src/printing/ladder.zig
+msgid "Check the queue address and USB serial; reconnecting can change a device-node path."
+msgstr "Verifique o endereço da fila e o número de série USB; reconectar pode alterar o caminho do dispositivo."
+
+#: src/printing/ladder.zig
+msgid "Check the usblp driver and the queue's device path; node names can change after reconnection."
+msgstr "Verifique o driver usblp e o caminho do dispositivo da fila; os nomes dos nós podem mudar após reconectar."
+
+#: src/control_center/sections/desktop.zig
+msgid "Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."
+msgstr "Os aplicativos marcados abrem flutuando. Super+V pode alterar o posicionamento de uma janela. Diálogos e janelas de tamanho fixo flutuam automaticamente."
+
+#: src/control_center/panel.zig
+msgid "Checking backlight…"
+msgstr "Verificando iluminação…"
+
+#: src/session/lock.zig
+msgid "Checking password…"
+msgstr "Verificando senha…"
+
+#: src/printing/admin.zig
+msgid "Checking printer administration…"
+msgstr "Verificando administração de impressoras…"
+
+#: src/session/lock.zig
+msgid "Checking…"
+msgstr "Verificando…"
+
+#: src/files/app.zig
+msgid "Choose Folder"
+msgstr "Escolher pasta"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose Start button logo"
+msgstr "Escolher o logotipo do botão Iniciar"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a driver…"
+msgstr "Escolher um driver…"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language."
+msgstr "Escolha uma linguagem da folha de autoteste ou teste uma amostra. Registre o resultado antes de escolher outra linguagem."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose a path without quotes, backslashes or control characters."
+msgstr "Escolha um caminho sem aspas, barras invertidas ou caracteres de controle."
+
+#: src/share_picker/client.zig
+msgid "Choose a source. Escape cancels."
+msgstr "Escolha uma fonte. Escape cancela."
+
+#: src/files/app_chooser.zig
+msgid "Choose an accessible file or folder and a valid filename."
+msgstr "Escolha um arquivo ou pasta acessível e um nome de arquivo válido."
+
+#: src/files/open_with.zig
+msgid "Choose an application to add to the desktop"
+msgstr "Escolher um aplicativo para adicionar à área de trabalho"
+
+#: src/files/open_with.zig
+msgid "Choose another app…"
+msgstr "Escolher outro aplicativo…"
+
+#: src/files/app_torrent_rows.zig
+msgid "Choose files"
+msgstr "Escolher arquivos"
+
+#: src/files/torrents.zig
+msgid "Choose files to download"
+msgstr "Escolher arquivos para baixar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Choose file…"
+msgstr "Escolher arquivo…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose folder"
+msgstr "Escolher pasta"
+
+#: src/control_center/welcome.zig
+msgid "Choose how your desktop works."
+msgstr "Escolha como sua área de trabalho funciona."
+
+#: src/printing/cups.zig
+msgid "Choose the actual paper dimensions before printing this test."
+msgstr "Escolha as dimensões reais do papel antes de imprimir este teste."
+
+#: src/control_center/panel.zig
+msgid "Choose the keys for your everyday actions."
+msgstr "Escolha as teclas para suas ações do dia a dia."
+
+#: src/printing/ladder.zig
+msgid "Choose the paper or label size actually loaded in the printer."
+msgstr "Escolha o tamanho do papel ou da etiqueta que está carregado na impressora."
+
+#: src/control_center/sections/portals.zig
+msgid "Choose the services apps use for desktop dialogs. The selected backend must be installed."
+msgstr "Escolha os serviços usados pelos aplicativos nos diálogos da área de trabalho. O serviço escolhido precisa estar instalado."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose wallpaper folder"
+msgstr "Escolher pasta do papel de parede"
+
+#: src/control_center/sections/users.zig
+msgid "Choose whether to keep the home folder or remove its files."
+msgstr "Escolha se deseja manter a pasta pessoal ou remover seus arquivos."
+
+#: src/control_center/welcome.zig
+msgid "Choose your window layout"
+msgstr "Escolha a organização das janelas"
+
+#: src/control_center/welcome.zig
+msgid "Classic (stacking)"
+msgstr "Clássico (empilhamento)"
+
+#: src/control_center/search.zig
+msgid "Clear search"
+msgstr "Limpar busca"
+
+#: src/editor/app.zig
+msgid "Clipboard selections are limited to 1 MiB."
+msgstr "As seleções da área de transferência são limitadas a 1 MiB."
+
+#: src/files/app_keyboard.zig
+msgid "Clipboard text is invalid or too long"
+msgstr "O texto da área de transferência é inválido ou longo demais"
+
+#: src/files/main.zig
+msgid "Clipboard transfer failed or exceeded 1 MiB"
+msgstr "A transferência da área de transferência falhou ou excedeu 1 MiB"
+
+#: src/files/main.zig
+msgid "Clipboard transfer timed out"
+msgstr "A transferência da área de transferência excedeu o tempo limite"
+
+#: src/control_center/search_index.zig
+msgid "Clock day"
+msgstr "Dia no relógio"
+
+#: src/control_center/search_index.zig
+msgid "Clock seconds"
+msgstr "Segundos no relógio"
+
+#: src/calculator/client.zig
+msgid "Close"
+msgstr "Fechar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close Window"
+msgstr "Fechar janela"
+
+#: src/chrome_tabs.zig
+msgid "Close tab"
+msgstr "Fechar aba"
+
+#: src/files/app_terminal.zig
+msgid "Close terminal session?"
+msgstr "Fechar a sessão do terminal?"
+
+#: src/control_center/sections/printers.zig
+msgid "Close test result"
+msgstr "Fechar resultado do teste"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close the focused window."
+msgstr "Fechar a janela em foco."
+
+#: src/taskbar/window_menu.zig
+msgid "Close window"
+msgstr "Fechar janela"
+
+#: src/files/app_paint.zig
+msgid "Closing ends this shell and its running jobs."
+msgstr "Fechar encerra este shell e suas tarefas em execução."
+
+#: src/system_monitor/app.zig
+msgid "Collecting processes…"
+msgstr "Coletando processos…"
+
+#: src/control_center/sections/display.zig
+msgid "Color temperature"
+msgstr "Temperatura da cor"
+
+#: src/printing/options.zig
+msgid "Colour"
+msgstr "Cor"
+
+#: src/control_center/sections/printers.zig
+msgid "Colour: {colour}"
+msgstr "Cor: {colour}"
+
+#: src/files/app_torrent_rows.zig
+msgid "Complete"
+msgstr "Concluído"
+
+#: src/files/torrents.zig
+msgid "Complete · Stopped"
+msgstr "Concluído · Parado"
+
+#: src/printing/cups.zig
+msgid "Completed"
+msgstr "Concluído"
+
+#: src/control_center/sections/network.zig
+msgid "Configure this network with a network tool"
+msgstr "Configure esta rede com uma ferramenta de rede"
+
+#: src/control_center/panel.zig
+msgid "Configure your desktop canvas and panning area."
+msgstr "Configure a área de trabalho ampla e sua área de deslocamento."
+
+#: src/control_center/sections/users.zig
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Confirm Pairing"
+msgstr "Confirmar pareamento"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm new password"
+msgstr "Confirmar nova senha"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm password"
+msgstr "Confirmar senha"
+
+#: src/printing/ladder.zig
+msgid "Confirm resolution using the printer's self-test or a measured ruler test."
+msgstr "Confirme a resolução com o autoteste da impressora ou um teste de régua medida."
+
+#: src/files/app_paint.zig
+msgid "Conflict"
+msgstr "Conflito"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connect"
+msgstr "Conectar"
+
+#: src/control_center/panel.zig
+msgid "Connect and manage your Bluetooth devices."
+msgstr "Conecte e gerencie seus dispositivos Bluetooth."
+
+#: src/control_center/sections/network.zig
+msgid "Connect automatically"
+msgstr "Conectar automaticamente"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connected"
+msgstr "Conectado"
+
+#: src/files/app_torrent_rows.zig
+msgid "Connected peers: {peers} · Seeds: {seeds}"
+msgstr "Pares conectados: {peers} · Semeadores: {seeds}"
+
+#: src/control_center/sections/printers.zig
+msgid "Connected to CUPS."
+msgstr "Conectado ao CUPS."
+
+#: src/network/manager.zig
+msgid "Connected · Saved"
+msgstr "Conectado · Salvo"
+
+#: src/network/manager.zig
+msgid "Connecting Ethernet…"
+msgstr "Conectando Ethernet…"
+
+#: src/files/app_paint.zig
+msgid "Connecting…"
+msgstr "Conectando…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connection"
+msgstr "Conexão"
+
+#: src/network/manager.zig
+msgid "Connection failed"
+msgstr "A conexão falhou"
+
+#: src/network/manager.zig
+msgid "Connection failed. Check the password and try again."
+msgstr "A conexão falhou. Verifique a senha e tente novamente."
+
+#: src/session/lock.zig
+msgid "Continue"
+msgstr "Continuar"
+
+#: src/files/app_fileops.zig
+msgid "Copied"
+msgstr "Copiado"
+
+#: src/files/app_fileops.zig
+msgid "Copied {count} item"
+msgid_plural "Copied {count} items"
+msgstr[0] "{count} item copiado"
+msgstr[1] "{count} itens copiados"
+
+#: src/desktop/app_actions.zig
+msgid "Copy"
+msgstr "Copiar"
+
+#: src/control_center/sections/printers.zig
+msgid "Copy diagnostic report"
+msgstr "Copiar relatório de diagnóstico"
+
+#: src/control_center/search_index.zig
+msgid "Corner radius"
+msgstr "Raio dos cantos"
+
+#: src/files/appimage.zig
+msgid "Could not add the AppImage to applications"
+msgstr "Não foi possível adicionar o AppImage aos aplicativos"
+
+#: src/files/app_opening.zig
+msgid "Could not add the application"
+msgstr "Não foi possível adicionar o aplicativo"
+
+#: src/control_center/sections/users.zig
+msgid "Could not allocate locked password storage."
+msgstr "Não foi possível alocar memória protegida para a senha."
+
+#: src/files/app_terminal.zig
+msgid "Could not allocate terminal"
+msgstr "Não foi possível criar o terminal"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors. Check your configuration files and permissions."
+msgstr "Não foi possível aplicar as cores. Verifique os arquivos de configuração e suas permissões."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors: {reason}. Check your configuration files and permissions."
+msgstr "Não foi possível aplicar as cores: {reason}. Verifique os arquivos de configuração e suas permissões."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply or save the display scale."
+msgstr "Não foi possível aplicar ou salvar a escala da tela."
+
+#: src/control_center/sections/display.zig
+msgid "Could not apply that display setting."
+msgstr "Não foi possível aplicar essa configuração de tela."
+
+#: src/printing/admin.zig
+msgid "Could not apply the printer option."
+msgstr "Não foi possível aplicar a opção da impressora."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply this choice. Please try again."
+msgstr "Não foi possível aplicar esta opção. Tente novamente."
+
+#: src/session/power.zig
+msgid "Could not build the request."
+msgstr "Não foi possível criar a solicitação."
+
+#: src/files/properties.zig
+msgid "Could not change permissions"
+msgstr "Não foi possível alterar as permissões"
+
+#: src/printing/admin.zig
+msgid "Could not clear the canonical default override."
+msgstr "Não foi possível remover a substituição do padrão canônico."
+
+#: src/files/app_torrents.zig
+msgid "Could not connect to Transfers"
+msgstr "Não foi possível conectar a Transferências"
+
+#: src/systemd.zig
+msgid "Could not connect to systemd."
+msgstr "Não foi possível conectar ao systemd."
+
+#: src/images/app.zig
+msgid "Could not crop this selection."
+msgstr "Não foi possível recortar esta seleção."
+
+#: src/files/app_fileops.zig
+msgid "Could not delete all items"
+msgstr "Não foi possível excluir todos os itens"
+
+#: src/images/app.zig
+msgid "Could not delete. The file was kept."
+msgstr "Não foi possível excluir. O arquivo foi mantido."
+
+#: src/files/volumes.zig
+msgid "Could not eject {name}"
+msgstr "Não foi possível ejetar {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not empty Trash"
+msgstr "Não foi possível esvaziar a lixeira"
+
+#: src/files/archive.zig
+msgid "Could not extract archive"
+msgstr "Não foi possível extrair o arquivo compactado"
+
+#: src/files/app_dialogs.zig
+msgid "Could not load applications"
+msgstr "Não foi possível carregar os aplicativos"
+
+#: src/systemd.zig
+msgid "Could not load services. Try Refresh."
+msgstr "Não foi possível carregar os serviços. Tente Atualizar."
+
+#: src/files/volumes.zig
+msgid "Could not mount {name}"
+msgstr "Não foi possível montar {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not move all items to Trash"
+msgstr "Não foi possível mover todos os itens para a lixeira"
+
+#: src/images/app.zig
+msgid "Could not move to Trash. The file was kept."
+msgstr "Não foi possível mover para a lixeira. O arquivo foi mantido."
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Appearance: {error}"
+msgstr "Não foi possível abrir Aparência: {error}"
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Desktop Settings: {error}"
+msgstr "Não foi possível abrir as configurações da área de trabalho: {error}"
+
+#: src/files/app_opening.zig
+msgid "Could not open Text Editor"
+msgstr "Não foi possível abrir o editor de texto"
+
+#: src/files/app_places.zig
+msgid "Could not open Trash"
+msgstr "Não foi possível abrir a lixeira"
+
+#: src/files/archive.zig
+msgid "Could not open archive"
+msgstr "Não foi possível abrir o arquivo compactado"
+
+#: src/files/app_opening.zig
+msgid "Could not open archive member"
+msgstr "Não foi possível abrir o item do arquivo compactado"
+
+#: src/pdf/app_document.zig
+msgid "Could not open document."
+msgstr "Não foi possível abrir o documento."
+
+#: src/files/app_opening.zig
+msgid "Could not open file"
+msgstr "Não foi possível abrir o arquivo"
+
+#: src/files/app_places.zig
+msgid "Could not open folder"
+msgstr "Não foi possível abrir a pasta"
+
+#: src/files/app_opening.zig
+msgid "Could not open folder picker"
+msgstr "Não foi possível abrir o seletor de pastas"
+
+#: src/files/app_opening.zig
+msgid "Could not open image viewer"
+msgstr "Não foi possível abrir o visualizador de imagens"
+
+#: src/files/app_places.zig
+msgid "Could not open new window"
+msgstr "Não foi possível abrir uma nova janela"
+
+#: src/images/app.zig
+msgid "Could not open the delete dialog."
+msgstr "Não foi possível abrir o diálogo de exclusão."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Could not open the file chooser."
+msgstr "Não foi possível abrir o seletor de arquivos."
+
+#: src/systemd.zig
+msgid "Could not open the service edit for authorization."
+msgstr "Não foi possível abrir a edição do serviço para autorização."
+
+#: src/files/open_with.zig
+msgid "Could not open with this app. Choose another."
+msgstr "Não foi possível abrir com este aplicativo. Escolha outro."
+
+#: src/pdf/app_document.zig
+msgid "Could not prepare password. Please try again."
+msgstr "Não foi possível preparar a senha. Tente novamente."
+
+#: src/control_center/sections/users.zig
+msgid "Could not prepare the group update."
+msgstr "Não foi possível preparar a alteração dos grupos."
+
+#: src/session/power.zig
+msgid "Could not query logind."
+msgstr "Não foi possível consultar o logind."
+
+#: src/session/power.zig
+msgid "Could not reach logind."
+msgstr "Não foi possível acessar o logind."
+
+#: src/session/power.zig
+msgid "Could not reach the system's power service."
+msgstr "Não foi possível acessar o serviço de energia do sistema."
+
+#: src/network/manager.zig
+msgid "Could not read Wi-Fi networks"
+msgstr "Não foi possível ler as redes Wi-Fi"
+
+#: src/files/app_dialogs.zig
+msgid "Could not read file properties"
+msgstr "Não foi possível ler as propriedades do arquivo"
+
+#: src/files/app_opening.zig
+msgid "Could not read folder picker result"
+msgstr "Não foi possível ler o resultado do seletor de pastas"
+
+#: src/control_center/sections/users.zig
+msgid "Could not read login accounts."
+msgstr "Não foi possível ler as contas de usuário."
+
+#: src/files/properties.zig
+msgid "Could not read permissions"
+msgstr "Não foi possível ler as permissões"
+
+#: src/files/worker.zig
+msgid "Could not read recent files"
+msgstr "Não foi possível ler os arquivos recentes"
+
+#: src/files/appimage.zig
+msgid "Could not read the AppImage's application details"
+msgstr "Não foi possível ler os dados do aplicativo no AppImage"
+
+#: src/files/main.zig
+msgid "Could not read the dropped items"
+msgstr "Não foi possível ler os itens soltos"
+
+#: src/images/app.zig
+msgid "Could not read this image"
+msgstr "Não foi possível ler esta imagem"
+
+#: src/printing/admin.zig
+msgid "Could not request CUPS start."
+msgstr "Não foi possível solicitar a inicialização do CUPS."
+
+#: src/systemd.zig
+msgid "Could not request authentication. Check that polkit is running."
+msgstr "Não foi possível solicitar autenticação. Verifique se o polkit está em execução."
+
+#: src/images/app.zig
+msgid "Could not rotate: not enough memory."
+msgstr "Não foi possível girar: memória insuficiente."
+
+#: src/files/git.zig
+msgid "Could not run git"
+msgstr "Não foi possível executar o git"
+
+#: src/systemd.zig
+msgid "Could not save Notify. Service editing requires systemd 256 or newer."
+msgstr "Não foi possível salvar Notify. Editar serviços exige systemd 256 ou mais recente."
+
+#: src/files/app_places.zig
+msgid "Could not save Places"
+msgstr "Não foi possível salvar Locais"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save desktop mode."
+msgstr "Não foi possível salvar o modo da área de trabalho."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save floating apps."
+msgstr "Não foi possível salvar os aplicativos flutuantes."
+
+#: src/control_center/sections/portals.zig
+msgid "Could not save portal preferences. Check your configuration directory."
+msgstr "Não foi possível salvar as preferências dos portais. Verifique a pasta de configuração."
+
+#: src/control_center/panel.zig
+msgid "Could not save the Files setting."
+msgstr "Não foi possível salvar a configuração de Arquivos."
+
+#: src/control_center/welcome.zig
+msgid "Could not save the default app. Please try again."
+msgstr "Não foi possível salvar o aplicativo padrão. Tente novamente."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Could not save the default application."
+msgstr "Não foi possível salvar o aplicativo padrão."
+
+#: src/control_center/sections/display.zig
+msgid "Could not save the display setting."
+msgstr "Não foi possível salvar a configuração de tela."
+
+#: src/files/app.zig
+msgid "Could not save view preferences"
+msgstr "Não foi possível salvar as preferências de visualização"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save window spacing."
+msgstr "Não foi possível salvar o espaçamento entre janelas."
+
+#: src/control_center/welcome.zig
+msgid "Could not save your layout. Please try again."
+msgstr "Não foi possível salvar a organização. Tente novamente."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save. Check the configuration file and try again."
+msgstr "Não foi possível salvar. Verifique o arquivo de configuração e tente novamente."
+
+#: src/images/app.zig
+msgid "Could not save. Check the folder and permissions."
+msgstr "Não foi possível salvar. Verifique a pasta e as permissões."
+
+#: src/printing/admin.zig
+msgid "Could not send printer administration request."
+msgstr "Não foi possível enviar a solicitação de administração de impressoras."
+
+#: src/polkit/dialog.zig
+msgid "Could not send response. Please try again."
+msgstr "Não foi possível enviar a resposta. Tente novamente."
+
+#: src/network/manager.zig
+msgid "Could not send the Ethernet request."
+msgstr "Não foi possível enviar a solicitação de Ethernet."
+
+#: src/network/manager.zig
+msgid "Could not send the Wi-Fi request"
+msgstr "Não foi possível enviar a solicitação de Wi-Fi"
+
+#: src/systemd.zig
+msgid "Could not send the service action."
+msgstr "Não foi possível enviar a ação do serviço."
+
+#: src/files/worker.zig
+msgid "Could not sort folder names"
+msgstr "Não foi possível ordenar os nomes das pastas"
+
+#: src/printing/admin.zig
+msgid "Could not start CUPS administration."
+msgstr "Não foi possível iniciar a administração do CUPS."
+
+#: src/files/app_torrents.zig
+msgid "Could not start Transfers"
+msgstr "Não foi possível iniciar Transferências"
+
+#: src/images/app.zig
+msgid "Could not start deleting this file."
+msgstr "Não foi possível começar a excluir este arquivo."
+
+#: src/files/app_opening.zig
+msgid "Could not start extraction"
+msgstr "Não foi possível iniciar a extração"
+
+#: src/files/main.zig
+msgid "Could not start file drag"
+msgstr "Não foi possível iniciar o arraste do arquivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not start printer diagnostics."
+msgstr "Não foi possível iniciar o diagnóstico de impressoras."
+
+#: src/images/app.zig
+msgid "Could not start saving."
+msgstr "Não foi possível começar a salvar."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the authentication request."
+msgstr "Não foi possível iniciar a solicitação de autenticação."
+
+#: src/session/power.zig
+msgid "Could not start the power command."
+msgstr "Não foi possível iniciar o comando de energia."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the request."
+msgstr "Não foi possível iniciar a solicitação."
+
+#: src/systemd.zig
+msgid "Could not subscribe to service updates."
+msgstr "Não foi possível assinar as atualizações de serviços."
+
+#: src/files/volumes.zig
+msgid "Could not use the device"
+msgstr "Não foi possível usar o dispositivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers before changing the identifier."
+msgstr "Não foi possível verificar as impressoras antes de alterar o identificador."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers. Refresh before creating a queue."
+msgstr "Não foi possível verificar as impressoras existentes. Atualize antes de criar uma fila."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify the printer's jobs. Refresh before changing its identifier."
+msgstr "Não foi possível verificar os trabalhos da impressora. Atualize antes de alterar seu identificador."
+
+#: src/session/power.zig
+msgid "Could not watch the power command."
+msgstr "Não foi possível monitorar o comando de energia."
+
+#: src/files/archive.zig
+msgid "Could not write extracted file (check space and permissions)"
+msgstr "Não foi possível gravar o arquivo extraído (verifique o espaço e as permissões)"
+
+#: src/desktop/watcher.zig
+msgid "Could not {operation}: {error}"
+msgstr "Não foi possível {operation}: {error}"
+
+#: src/control_center/sections/printers.zig
+msgid "Create printer"
+msgstr "Criar impressora"
+
+#: src/control_center/sections/users.zig
+msgid "Create user"
+msgstr "Criar usuário"
+
+#: src/files/properties.zig
+msgid "Created"
+msgstr "Criado"
+
+#: src/files/app_dialogs.zig
+msgid "Created and switched to {name}"
+msgstr "Criado e alterado para {name}"
+
+#: src/images/app.zig
+msgid "Crop"
+msgstr "Recortar"
+
+#: src/control_center/sections/region.zig
+msgid "Currency"
+msgstr "Moeda"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current font"
+msgstr "Fonte atual"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current theme"
+msgstr "Tema atual"
+
+#: src/control_center/sections/region.zig
+msgid "Current: {locale}"
+msgstr "Atual: {locale}"
+
+#: src/control_center/search_index.zig
+msgid "Cursor theme"
+msgstr "Tema do cursor"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom"
+msgstr "Personalizado"
+
+#: src/control_center/sections/portals.zig
+msgid "Custom ({name})"
+msgstr "Personalizado ({name})"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom size"
+msgstr "Tamanho personalizado"
+
+#: src/desktop/app_actions.zig
+msgid "Cut"
+msgstr "Recortar"
+
+#: src/files/app_fileops.zig
+msgid "Cut {count} item"
+msgid_plural "Cut {count} items"
+msgstr[0] "{count} item recortado"
+msgstr[1] "{count} itens recortados"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the next existing workspace."
+msgstr "Alternar para o próximo espaço de trabalho existente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the previous existing workspace."
+msgstr "Alternar para o espaço de trabalho existente anterior."
+
+#: src/battery_popup.zig
+msgid "Cycles"
+msgstr "Ciclos"
+
+#: src/files/app_sidebar_paint.zig
+msgid "DEVICES"
+msgstr "DISPOSITIVOS"
+
+#: src/control_center/sections/display.zig
+msgid "DISPLAY"
+msgstr "TELA"
+
+#: src/control_center/sections/network.zig
+msgid "DNS servers"
+msgstr "Servidores DNS"
+
+#: src/control_center/search_index.zig
+msgid "Dark mode"
+msgstr "Modo escuro"
+
+#: src/printing/options.zig
+msgid "Darkness"
+msgstr "Escurecimento"
+
+#: src/control_center/sections/region.zig
+msgid "Date"
+msgstr "Data"
+
+#: src/control_center/sections/region.zig
+msgid "Date format for the taskbar; date, number and currency formats for new apps."
+msgstr "Formato de data da barra de tarefas; formatos de data, números e moeda para novos aplicativos."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease display brightness."
+msgstr "Diminuir o brilho da tela."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease system volume."
+msgstr "Diminuir o volume do sistema."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease the focused window's size."
+msgstr "Diminuir o tamanho da janela em foco."
+
+#: src/control_center/sections/appearance.zig
+msgid "Default"
+msgstr "Padrão"
+
+#: src/control_center/sections/appearance.zig
+msgid "Default R logo · PNG or SVG"
+msgstr "Logotipo R padrão · PNG ou SVG"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Default applications"
+msgstr "Aplicativos padrão"
+
+#: src/control_center/welcome.zig
+msgid "Default apps"
+msgstr "Aplicativos padrão"
+
+#: src/control_center/search_index.zig
+msgid "Default file manager"
+msgstr "Gerenciador de arquivos padrão"
+
+#: src/control_center/search_index.zig
+msgid "Default terminal"
+msgstr "Terminal padrão"
+
+#: src/control_center/sections/services.zig
+msgid "Deferred"
+msgstr "Adiado"
+
+#: src/delete_dialog.zig
+msgid "Delete file?"
+msgstr "Excluir o arquivo?"
+
+#: src/control_center/sections/users.zig
+msgid "Delete files"
+msgstr "Excluir arquivos"
+
+#: src/delete_dialog.zig
+msgid "Delete folder?"
+msgstr "Excluir a pasta?"
+
+#: src/delete_dialog.zig
+msgid "Delete items?"
+msgstr "Excluir os itens?"
+
+#: src/delete_dialog.zig
+msgid "Delete permanently"
+msgstr "Excluir permanentemente"
+
+#: src/control_center/sections/users.zig
+msgid "Delete user…"
+msgstr "Excluir usuário…"
+
+#: src/control_center/sections/users.zig
+msgid "Delete {name}?"
+msgstr "Excluir {name}?"
+
+#: src/session/power.zig
+msgid "Denied by policy"
+msgstr "Negado pela política"
+
+#: src/session/power.zig
+msgid "Denied by system policy."
+msgstr "Negado pela política do sistema."
+
+#: src/control_center/panel.zig
+msgid "Desktop"
+msgstr "Área de trabalho"
+
+#: src/desktop/app_actions.zig
+msgid "Desktop Settings"
+msgstr "Configurações da área de trabalho"
+
+#: src/control_center/search_index.zig
+msgid "Desktop Switching"
+msgstr "Alternância de área de trabalho"
+
+#: src/control_center/sections/display.zig
+msgid "Desktop icons appear on this display."
+msgstr "Os ícones da área de trabalho aparecem nesta tela."
+
+#: src/control_center/search_index.zig
+msgid "Desktop mode"
+msgstr "Modo da área de trabalho"
+
+#: src/control_center/search_index.zig
+msgid "Desktop portals"
+msgstr "Portais da área de trabalho"
+
+#: src/control_center/search_index.zig
+msgid "Desktop switching"
+msgstr "Alternância de área de trabalho"
+
+#: src/files/app_git_sidebar.zig
+msgid "Detached {count}"
+msgstr "Separados: {count}"
+
+#: src/control_center/sections/users.zig
+msgid "Details"
+msgstr "Detalhes"
+
+#: src/files/app_places.zig
+msgid "Device"
+msgstr "Dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Device Settings"
+msgstr "Configurações do dispositivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Device node"
+msgstr "Nó do dispositivo"
+
+#: src/control_center/sections/printers.zig
+msgid "Did the test produce printed output? CUPS completion alone cannot tell."
+msgstr "O teste produziu uma impressão? A conclusão pelo CUPS não permite saber."
+
+#: src/control_center/search_index.zig
+msgid "Dim inactive windows"
+msgstr "Escurecer janelas inativas"
+
+#: src/control_center/sections/printers.zig
+msgid "Disable printer"
+msgstr "Desativar impressora"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disable shortcut"
+msgstr "Desativar atalho"
+
+#: src/control_center/search_index.zig
+msgid "Disable touchpad while typing"
+msgstr "Desativar o touchpad ao digitar"
+
+#: src/control_center/sections/services.zig
+msgid "Disabled"
+msgstr "Desativado"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disabled shortcut."
+msgstr "Atalho desativado."
+
+#: src/editor/app.zig
+msgid "Discard"
+msgstr "Descartar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Disconnect"
+msgstr "Desconectar"
+
+#: src/files/app_torrent_rows.zig
+msgid "Disconnected"
+msgstr "Desconectado"
+
+#: src/network/manager.zig
+msgid "Disconnecting Ethernet…"
+msgstr "Desconectando Ethernet…"
+
+#: src/network/manager.zig
+msgid "Disconnecting…"
+msgstr "Desconectando…"
+
+#: src/printing/admin.zig
+msgid "Discovering printers; authorization may be required…"
+msgstr "Buscando impressoras; pode exigir autorização…"
+
+#: src/system_monitor/app.zig
+msgid "Disk wait"
+msgstr "Espera de disco"
+
+#: src/control_center/panel.zig
+msgid "Display"
+msgstr "Tela"
+
+#: src/control_center/search_index.zig
+msgid "Display arrangement"
+msgstr "Organização das telas"
+
+#: src/control_center/sections/printers.zig
+msgid "Display name"
+msgstr "Nome de exibição"
+
+#: src/control_center/search_index.zig
+msgid "Display scale"
+msgstr "Escala da tela"
+
+#: src/control_center/panel.zig
+msgid "Display settings"
+msgstr "Configurações de tela"
+
+#: src/control_center/panel.zig
+msgid "Displays"
+msgstr "Telas"
+
+#: src/control_center/sections/display.zig
+msgid "Do nothing"
+msgstr "Não fazer nada"
+
+#: src/control_center/search_index.zig
+msgid "Dock"
+msgstr "Dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock active highlight"
+msgstr "Destaque ativo do dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock auto hide"
+msgstr "Ocultação automática do dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock corner radius"
+msgstr "Raio dos cantos do dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock height"
+msgstr "Altura do dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock hover zoom"
+msgstr "Ampliação ao passar sobre o dock"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock hover zoom (1.00× disables)"
+msgstr "Ampliação ao passar sobre o dock (1,00× desativa)"
+
+#: src/control_center/search_index.zig
+msgid "Dock opacity"
+msgstr "Opacidade do dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock position"
+msgstr "Posição do dock"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock size"
+msgstr "Tamanho do dock"
+
+#: src/control_center/search_index.zig
+msgid "Dock trash"
+msgstr "Lixeira no dock"
+
+#: src/pdf/app_document.zig
+msgid "Document is encrypted. Enter password:"
+msgstr "O documento está criptografado. Digite a senha:"
+
+#: src/files/app.zig
+msgid "Documents"
+msgstr "Documentos"
+
+#: src/control_center/search_index.zig
+msgid "Dodge file drags"
+msgstr "Desviar ao arrastar arquivos"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Does this code match the code on your device?"
+msgstr "Este código corresponde ao código no seu dispositivo?"
+
+#: src/control_center/sections/users.zig
+msgid "Done"
+msgstr "Concluído"
+
+#: src/files/app_items.zig
+msgid "Download"
+msgstr "Baixar"
+
+#: src/files/app_torrents.zig
+msgid "Download to folder"
+msgstr "Baixar para pasta"
+
+#: src/files/torrents.zig
+msgid "Downloaded · Seeding"
+msgstr "Baixado · Semeando"
+
+#: src/files/app_torrent_rows.zig
+msgid "Downloading"
+msgstr "Baixando"
+
+#: src/files/app.zig
+msgid "Downloads"
+msgstr "Downloads"
+
+#: src/files/app_torrents.zig
+msgid "Downloads continue after closing Files."
+msgstr "Os downloads continuam após fechar Arquivos."
+
+#: src/printing/options.zig
+msgid "Draft"
+msgstr "Rascunho"
+
+#: src/images/app.zig
+msgid "Drag a larger crop selection."
+msgstr "Arraste uma seleção de recorte maior."
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."
+msgstr "Arraste um item para reordená-lo ou movê-lo para outra seção. Desative-o para ocultá-lo. A bateria aparece quando disponível."
+
+#: src/control_center/sections/display.zig
+msgid "Drag displays to match your desk. Click one to edit it."
+msgstr "Arraste as telas para corresponder à disposição física. Clique em uma para editá-la."
+
+#: src/control_center/search_index.zig
+msgid "Drag feedback"
+msgstr "Resposta ao arrastar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag items here"
+msgstr "Arraste itens aqui"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag lift scale"
+msgstr "Escala de elevação ao arrastar"
+
+#: src/control_center/search_index.zig
+msgid "Drag scale"
+msgstr "Escala ao arrastar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag to move"
+msgstr "Arraste para mover"
+
+#: src/screenshot/selector.zig
+msgid "Drag to save and copy · Esc to cancel"
+msgstr "Arraste para salvar e copiar · Esc para cancelar"
+
+#: src/images/app.zig
+msgid "Drag to select · Enter: crop · Esc: cancel"
+msgstr "Arraste para selecionar · Enter: recortar · Esc: cancelar"
+
+#: src/control_center/sections/desktop.zig
+msgid "Dragging stops on release. Edges settle with a short animation."
+msgstr "O arraste termina ao soltar. As bordas se ajustam com uma breve animação."
+
+#: src/control_center/sections/printers.zig
+msgid "Driver"
+msgstr "Driver"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Choose files first"
+msgstr "Tempo restante: escolha os arquivos primeiro"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Complete"
+msgstr "Tempo restante: concluído"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Paused"
+msgstr "Tempo restante: pausado"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Unknown · waiting for data"
+msgstr "Tempo restante: desconhecido · aguardando dados"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}h {value2}m"
+msgstr "Tempo restante: {value}h {value2}min"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}m {value2}s"
+msgstr "Tempo restante: {value}min {value2}s"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}s"
+msgstr "Tempo restante: {value}s"
+
+#: src/control_center/sections/appearance.zig
+msgid "Edge glow"
+msgstr "Brilho das bordas"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Edit shortcut"
+msgstr "Editar atalho"
+
+#: src/images/app.zig
+msgid "Edits undone."
+msgstr "Edições desfeitas."
+
+#: src/files/app_model.zig
+msgid "Eject"
+msgstr "Ejetar"
+
+#: src/files/app_places.zig
+msgid "Ejected"
+msgstr "Ejetado"
+
+#: src/files/app_places.zig
+msgid "Ejecting…"
+msgstr "Ejetando…"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash"
+msgstr "Esvaziar lixeira"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash?"
+msgstr "Esvaziar a lixeira?"
+
+#: src/desktop/app_actions.zig
+msgid "Empty Trash…"
+msgstr "Esvaziar lixeira…"
+
+#: src/printing/ladder.zig
+msgid "Enable acceptance of jobs when the printer is ready."
+msgstr "Ative a aceitação de trabalhos quando a impressora estiver pronta."
+
+#: src/control_center/sections/region.zig
+msgid "Enable {locale} in your system’s locale settings to use it in other apps and regional formats."
+msgstr "Ative {locale} nas configurações regionais do sistema para usá-lo em outros aplicativos e nos formatos regionais."
+
+#: src/control_center/sections/services.zig
+msgid "Enabled"
+msgstr "Ativado"
+
+#: src/system_monitor/app.zig
+msgid "End process"
+msgstr "Encerrar processo"
+
+#: src/files/app_terminal.zig
+msgid "Enlarge this window to show the terminal"
+msgstr "Amplie esta janela para mostrar o terminal"
+
+#: src/calculator/app.zig
+msgid "Enter = Esc clear F9 ± % = ÷100"
+msgstr "Enter = Esc limpar F9 ± % = ÷100"
+
+#: src/polkit/dialog.zig
+msgid "Enter Password"
+msgstr "Digitar senha"
+
+#: src/images/app.zig
+msgid "Enter a filename or an absolute path."
+msgstr "Digite um nome de arquivo ou um caminho absoluto."
+
+#: src/images/app.zig
+msgid "Enter a filename."
+msgstr "Digite um nome de arquivo."
+
+#: src/network/manager.zig
+msgid "Enter a network name."
+msgstr "Digite um nome de rede."
+
+#: src/network/manager.zig
+msgid "Enter a password (1–63 bytes)."
+msgstr "Digite uma senha (1–63 bytes)."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a supported printer address without credentials."
+msgstr "Digite um endereço de impressora compatível sem credenciais."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a valid CUPS administrator username and password."
+msgstr "Digite um nome de usuário e senha válidos de administração do CUPS."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid full name."
+msgstr "Digite um nome completo válido."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid username and full name."
+msgstr "Digite um nome de usuário e um nome completo válidos."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter an account permitted to administer the local CUPS server."
+msgstr "Digite uma conta com permissão para administrar o servidor CUPS local."
+
+#: src/files/app_paint.zig
+msgid "Enter confirms · Esc cancels"
+msgstr "Enter confirma · Esc cancela"
+
+#: src/control_center/sections/users.zig
+msgid "Enter matching passwords."
+msgstr "Digite senhas iguais."
+
+#: src/network/popup.zig
+msgid "Enter network name"
+msgstr "Digite o nome da rede"
+
+#: src/control_center/sections/users.zig
+msgid "Enter new password"
+msgstr "Digite a nova senha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Enter or leave fullscreen."
+msgstr "Entrar ou sair da tela cheia."
+
+#: src/control_center/sections/users.zig
+msgid "Enter password"
+msgstr "Digite a senha"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's PIN"
+msgstr "Digite o PIN do dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's six-digit passkey"
+msgstr "Digite a chave de seis dígitos do dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter this code on your device, then press Enter."
+msgstr "Digite este código no dispositivo e pressione Enter."
+
+#: src/polkit/dialog.zig
+msgid "Enter your response"
+msgstr "Digite sua resposta"
+
+#: src/files/app_torrent_rows.zig
+msgid "Error"
+msgstr "Erro"
+
+#: src/files/app_paint.zig
+msgid "Error: {value}"
+msgstr "Erro: {value}"
+
+#: src/control_center/search_index.zig
+msgid "Ethernet"
+msgstr "Ethernet"
+
+#: src/network/manager.zig
+msgid "Ethernet adapter was removed."
+msgstr "O adaptador Ethernet foi removido."
+
+#: src/network/manager.zig
+msgid "Ethernet connection timed out. Check the cable and try again."
+msgstr "A conexão Ethernet excedeu o tempo limite. Verifique o cabo e tente novamente."
+
+#: src/network/manager.zig
+msgid "Ethernet could not connect. Check the cable and connection settings."
+msgstr "Não foi possível conectar Ethernet. Verifique o cabo e as configurações de conexão."
+
+#: src/network/manager.zig
+msgid "Ethernet request failed. Check permissions and try again."
+msgstr "A solicitação Ethernet falhou. Verifique as permissões e tente novamente."
+
+#: src/control_center/panel.zig
+msgid "Everyday controls, all in one place."
+msgstr "Controles do dia a dia, todos em um só lugar."
+
+#: src/control_center/sections/network.zig
+msgid "Excellent"
+msgstr "Excelente"
+
+#: src/files/properties.zig
+msgid "Execute"
+msgstr "Executar"
+
+#: src/control_center/sections/desktop.zig
+msgid "Existing windows outside a smaller canvas stay reachable."
+msgstr "As janelas que ficarem fora de uma área de trabalho ampla reduzida continuarão acessíveis."
+
+#: src/system_monitor/app.zig
+msgid "Exited"
+msgstr "Finalizado"
+
+#: src/calculator/model.zig
+msgid "Expression is full"
+msgstr "A expressão está cheia"
+
+#: src/files/app_model.zig
+msgid "Extract"
+msgstr "Extrair"
+
+#: src/files/app_model.zig
+msgid "Extract to…"
+msgstr "Extrair para…"
+
+#: src/files/ops.zig
+msgid "Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Extraídos: {completed}. Ignorados: {skipped}. Com falha: {failed}. Restantes: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Extracting {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Extraindo {current}/{total}: {name}... (Esc para cancelar)"
+
+#: src/files/archive.zig
+msgid "Extraction cancelled"
+msgstr "Extração cancelada"
+
+#: src/control_center/sections/services.zig
+msgid "Failed"
+msgstr "Falhou"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create file"
+msgstr "Falha ao criar arquivo"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create folder"
+msgstr "Falha ao criar pasta"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to rename"
+msgstr "Falha ao renomear"
+
+#: src/files/app_fileops.zig
+msgid "Failed to start transfer job"
+msgstr "Falha ao iniciar transferência"
+
+#: src/files/torrents.zig
+msgid "Fetching file list…"
+msgstr "Obtendo lista de arquivos…"
+
+#: src/delete_dialog.zig
+msgid "File"
+msgstr "Arquivo"
+
+#: src/files/app_paint.zig
+msgid "File '{value}' already exists in destination."
+msgstr "O arquivo “{value}” já existe no destino."
+
+#: src/files/app_dialogs.zig
+msgid "File Conflict"
+msgstr "Conflito de arquivos"
+
+#: src/control_center/sections/default_apps.zig
+msgid "File Manager"
+msgstr "Gerenciador de arquivos"
+
+#: src/files/app_dialogs.zig
+msgid "File already exists"
+msgstr "O arquivo já existe"
+
+#: src/editor/app.zig
+msgid "File changed on disk. Use Save As to keep your edits in another file."
+msgstr "O arquivo foi alterado no disco. Use Salvar como para manter suas edições em outro arquivo."
+
+#: src/files/app_dialogs.zig
+msgid "File created"
+msgstr "Arquivo criado"
+
+#: src/control_center/search_index.zig
+msgid "File dialogs"
+msgstr "Diálogos de arquivos"
+
+#: src/files/app_chooser.zig
+msgid "File name:"
+msgstr "Nome do arquivo:"
+
+#: src/files/archive.zig
+msgid "File no longer exists in the archive"
+msgstr "O arquivo não existe mais no arquivo compactado"
+
+#: src/pdf/app_document.zig
+msgid "File not found."
+msgstr "Arquivo não encontrado."
+
+#: src/desktop/watcher.zig
+msgid "File operation failed"
+msgstr "A operação de arquivos falhou"
+
+#: src/delete_dialog.zig
+msgid "Files and folders in this selection"
+msgstr "Arquivos e pastas desta seleção"
+
+#: src/files/app_paint.zig
+msgid "Filter"
+msgstr "Filtrar"
+
+#: src/editor/app.zig
+msgid "Find"
+msgstr "Localizar"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers"
+msgstr "Localizar impressoras disponíveis"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers again and choose the current discovered device."
+msgstr "Busque novamente as impressoras disponíveis e escolha o dispositivo detectado atual."
+
+#: src/pdf/app_paint.zig
+msgid "Find in document..."
+msgstr "Localizar no documento..."
+
+#: src/pdf/app_paint.zig
+msgid "Find ▲"
+msgstr "Localizar ▲"
+
+#: src/editor/app.zig
+msgid "Find…"
+msgstr "Localizar…"
+
+#: src/control_center/sections/printers.zig
+msgid "Finish or cancel the printer's jobs before changing its identifier."
+msgstr "Conclua ou cancele os trabalhos antes de alterar o identificador da impressora."
+
+#: src/editor/app.zig
+msgid "Finish the file dialog or operation before closing."
+msgstr "Conclua o diálogo ou a operação de arquivos antes de fechar."
+
+#: src/files/app_places.zig
+msgid "Finish the running file operation first"
+msgstr "Conclua primeiro a operação de arquivos em andamento"
+
+#: src/control_center/sections/region.zig
+msgid "First day of the week"
+msgstr "Primeiro dia da semana"
+
+#: src/control_center/search_index.zig
+msgid "First day of week"
+msgstr "Primeiro dia da semana"
+
+#: src/images/app.zig
+msgid "Fit"
+msgstr "Ajustar"
+
+#: src/pdf/app_paint.zig
+msgid "Fit page"
+msgstr "Ajustar página"
+
+#: src/pdf/app_paint.zig
+msgid "Fit width"
+msgstr "Ajustar largura"
+
+#: src/start_menu/panel.zig
+msgid "Five applications already pinned"
+msgstr "Já existem cinco aplicativos fixados"
+
+#: src/control_center/search_index.zig
+msgid "Fixed desktop icons"
+msgstr "Ícones fixos na área de trabalho"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped"
+msgstr "Espelhado"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 180°"
+msgstr "Espelhado 180°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 270°"
+msgstr "Espelhado 270°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 90°"
+msgstr "Espelhado 90°"
+
+#: src/control_center/sections/desktop.zig
+msgid "Floating"
+msgstr "Flutuante"
+
+#: src/control_center/search_index.zig
+msgid "Floating apps"
+msgstr "Aplicativos flutuantes"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Down"
+msgstr "Focar abaixo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Left"
+msgstr "Focar à esquerda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Next"
+msgstr "Focar próxima"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Prev"
+msgstr "Focar anterior"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Right"
+msgstr "Focar à direita"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Up"
+msgstr "Focar acima"
+
+#: src/control_center/sections/appearance.zig
+msgid "Focus camera"
+msgstr "Focar câmera"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window above."
+msgstr "Focar a janela acima."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window below."
+msgstr "Focar a janela abaixo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the left."
+msgstr "Focar a janela à esquerda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the right."
+msgstr "Focar a janela à direita."
+
+#: src/control_center/search_index.zig
+msgid "Focus zoom"
+msgstr "Ampliação ao focar"
+
+#: src/desktop/app_paint.zig
+msgid "Folder"
+msgstr "Pasta"
+
+#: src/files/app_dialogs.zig
+msgid "Folder already exists"
+msgstr "A pasta já existe"
+
+#: src/files/app_dialogs.zig
+msgid "Folder created"
+msgstr "Pasta criada"
+
+#: src/files/worker.zig
+msgid "Folder not found"
+msgstr "Pasta não encontrada"
+
+#: src/delete_dialog.zig
+msgid "Folder · includes its contents"
+msgstr "Pasta · inclui seu conteúdo"
+
+#: src/files/app_chooser.zig
+msgid "Folder:"
+msgstr "Pasta:"
+
+#: src/files/app_menu.zig
+msgid "Folders only"
+msgstr "Somente pastas"
+
+#: src/control_center/search_index.zig
+msgid "Font"
+msgstr "Fonte"
+
+#: src/control_center/search_index.zig
+msgid "Font size"
+msgstr "Tamanho da fonte"
+
+#: src/control_center/sections/appearance.zig
+msgid "Fonts & cursor"
+msgstr "Fontes e cursor"
+
+#: src/taskbar/window_menu.zig
+msgid "Force Close"
+msgstr "Forçar fechamento"
+
+#: src/system_monitor/app.zig
+msgid "Force quit"
+msgstr "Forçar saída"
+
+#: src/system_monitor/app.zig
+msgid "Force quit requested"
+msgstr "Saída forçada solicitada"
+
+#: src/system_monitor/app.zig
+msgid "Force quit this process?"
+msgstr "Forçar a saída deste processo?"
+
+#: src/system_monitor/app.zig
+msgid "Force quit…"
+msgstr "Forçar saída…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget Device"
+msgstr "Esquecer dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget this device? Pair it again to reconnect."
+msgstr "Esquecer este dispositivo? Será necessário pareá-lo novamente para reconectar."
+
+#: src/control_center/sections/region.zig
+msgid "Formats Preview"
+msgstr "Prévia dos formatos"
+
+#: src/files/app_torrents.zig
+msgid "Forward"
+msgstr "Avançar"
+
+#: src/control_center/sections/region.zig
+msgid "Friday"
+msgstr "Sexta-feira"
+
+#: src/screenshot/selector.zig
+msgid "Full Screen"
+msgstr "Tela cheia"
+
+#: src/battery_popup.zig
+msgid "Full capacity"
+msgstr "Capacidade total"
+
+#: src/control_center/sections/users.zig
+msgid "Full name"
+msgstr "Nome completo"
+
+#: src/taskbar/battery.zig
+msgid "Fully Charged"
+msgstr "Carga completa"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."
+msgstr "Cores do GTK aplicadas. Reinicie os aplicativos GTK. Aplicativos com estilos próprios ou isolados podem ter aparência diferente."
+
+#: src/control_center/sections/desktop.zig
+msgid "Gap ({n} px)"
+msgstr "Espaçamento ({n} px)"
+
+#: src/control_center/sections/network.zig
+msgid "Gateway"
+msgstr "Gateway"
+
+#: src/control_center/panel.zig
+msgid "General"
+msgstr "Geral"
+
+#: src/files/app_layout.zig
+msgid "Git"
+msgstr "Git"
+
+#: src/files/app_paint.zig
+msgid "Git View"
+msgstr "Visualização do Git"
+
+#: src/control_center/sections/network.zig
+msgid "Good"
+msgstr "Bom"
+
+#: src/files/app_torrents.zig
+msgid "Grid"
+msgstr "Grade"
+
+#: src/files/properties.zig
+msgid "Group"
+msgstr "Grupo"
+
+#: src/control_center/sections/users.zig
+msgid "Groups"
+msgstr "Grupos"
+
+#: src/control_center/sections/network.zig
+msgid "Hardware blocked"
+msgstr "Bloqueado por hardware"
+
+#: src/printing/ladder.zig
+msgid "Have an administrator inspect the node; never write print data to a regular file."
+msgstr "Peça a um administrador para inspecionar o nó; nunca grave dados de impressão em um arquivo comum."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Headset · Audio and microphone"
+msgstr "Headset · Áudio e microfone"
+
+#: src/battery_popup.zig
+msgid "Health"
+msgstr "Saúde"
+
+#: src/printing/cups.zig
+msgid "Held"
+msgstr "Retido"
+
+#: src/control_center/sections/desktop.zig
+msgid "Hide after"
+msgstr "Ocultar após"
+
+#: src/printing/options.zig
+msgid "High"
+msgstr "Alta"
+
+#: src/control_center/sections/appearance.zig
+msgid "Highlight active app"
+msgstr "Destacar o aplicativo ativo"
+
+#: src/control_center/sections/desktop.zig
+msgid "Highlighted: bottom-left screen"
+msgstr "Destacada: tela inferior esquerda"
+
+#: src/desktop/watcher.zig
+msgid "Home"
+msgstr "Início"
+
+#: src/control_center/sections/desktop.zig
+msgid "Horizontal Pan"
+msgstr "Deslocamento horizontal"
+
+#: src/control_center/sections/desktop.zig
+msgid "How long Super + arrow keys take to slide to the next desktop."
+msgstr "Tempo que Super + setas levam para deslizar até a próxima área de trabalho."
+
+#: src/control_center/sections/input.zig
+msgid "INPUT"
+msgstr "ENTRADA"
+
+#: src/control_center/sections/printers.zig
+msgid "IPP Everywhere / AirPrint"
+msgstr "IPP Everywhere / AirPrint"
+
+#: src/control_center/sections/network.zig
+msgid "IPv4 address"
+msgstr "Endereço IPv4"
+
+#: src/control_center/search_index.zig
+msgid "Icon bottom padding"
+msgstr "Margem inferior do ícone"
+
+#: src/control_center/search_index.zig
+msgid "Icon left padding"
+msgstr "Margem esquerda do ícone"
+
+#: src/control_center/search_index.zig
+msgid "Icon theme"
+msgstr "Tema de ícones"
+
+#: src/system_monitor/app.zig
+msgid "Idle"
+msgstr "Ocioso"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Image"
+msgstr "Imagem"
+
+#: src/images/app.zig
+msgid "Image exceeds the 32 megapixel preview limit"
+msgstr "A imagem excede o limite de prévia de 32 megapixels"
+
+#: src/images/app.zig
+msgid "Images ({position}/{count})"
+msgstr "Imagens ({position}/{count})"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in the chosen folder"
+msgstr "Imagens da pasta escolhida"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in {folder}"
+msgstr "Imagens em {folder}"
+
+#: src/control_center/panel.zig
+msgid "In Files, click an icon to open it in list or icons view. Click the name to select."
+msgstr "Em Arquivos, clique no ícone para abri-lo em qualquer visualização. Clique no nome para selecionar."
+
+#: src/control_center/search_index.zig
+msgid "Inactive window opacity"
+msgstr "Opacidade de janelas inativas"
+
+#: src/control_center/sections/printers.zig
+msgid "Inches"
+msgstr "Polegadas"
+
+#: src/session/lock.zig
+msgid "Incorrect password. Try again."
+msgstr "Senha incorreta. Tente novamente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase display brightness."
+msgstr "Aumentar o brilho da tela."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase system volume."
+msgstr "Aumentar o volume do sistema."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase the focused window's size."
+msgstr "Aumentar o tamanho da janela em foco."
+
+#: src/control_center/sections/region.zig
+msgid "Inherited from login ({locale})"
+msgstr "Herdado do login ({locale})"
+
+#: src/control_center/panel.zig
+msgid "Input"
+msgstr "Entrada"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Input · Keyboard, mouse or controller"
+msgstr "Entrada · Teclado, mouse ou controle"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Install"
+msgstr "Instalar"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."
+msgstr "Instale qt5ct para aplicativos Qt 5 ou qt6ct para Qt 6 e aplique novamente."
+
+#: src/files/appimage.zig
+msgid "Install squashfs-tools to add AppImages to applications"
+msgstr "Instale squashfs-tools para adicionar AppImages aos aplicativos"
+
+#: src/control_center/search_index.zig
+msgid "Install theme"
+msgstr "Instalar tema"
+
+#: src/control_center/sections/appearance.zig
+msgid "Install theme…"
+msgstr "Instalar tema…"
+
+#: src/files/app_opening.zig
+msgid "Installing theme…"
+msgstr "Instalando tema…"
+
+#: src/session/power.zig
+msgid "Interactive authorization required."
+msgstr "Autorização interativa necessária."
+
+#: src/control_center/welcome.zig
+msgid "Interface scale"
+msgstr "Escala da interface"
+
+#: src/control_center/sections/network.zig
+msgid "Internet"
+msgstr "Internet"
+
+#: src/control_center/sections/network.zig
+msgid "Internet access not verified"
+msgstr "Acesso à Internet não verificado"
+
+#: src/files/git.zig
+msgid "Invalid branch name"
+msgstr "Nome de ramo inválido"
+
+#: src/files/app_dialogs.zig
+msgid "Invalid characters in name"
+msgstr "Caracteres inválidos no nome"
+
+#: src/printing/admin.zig
+msgid "Invalid cups-pk-helper reply."
+msgstr "Resposta inválida do cups-pk-helper."
+
+#: src/files/main.zig
+msgid "Invalid dropped list"
+msgstr "Lista de itens soltos inválida"
+
+#: src/files/main.zig
+msgid "Invalid file clipboard"
+msgstr "Área de transferência de arquivos inválida"
+
+#: src/files/app_opening.zig
+msgid "Invalid folder picker result"
+msgstr "Resultado do seletor de pastas inválido"
+
+#: src/pdf/app_document.zig
+msgid "Invalid or corrupt PDF document."
+msgstr "Documento PDF inválido ou corrompido."
+
+#: src/printing/admin.zig
+msgid "Invalid or oversized printer discovery reply."
+msgstr "Resposta de descoberta de impressoras inválida ou grande demais."
+
+#: src/printing/admin.zig
+msgid "Invalid printer administration reply."
+msgstr "Resposta de administração de impressoras inválida."
+
+#: src/printing/admin.zig
+msgid "Invalid service-manager reply."
+msgstr "Resposta do gerenciador de serviços inválida."
+
+#: src/printing/admin.zig
+msgid "Invalid system bus reply."
+msgstr "Resposta do barramento do sistema inválida."
+
+#: src/files/torrents.zig
+msgid "Invalid transfer metadata"
+msgstr "Metadados de transferência inválidos"
+
+#: src/files/torrents.zig
+msgid "Invalid transfer update"
+msgstr "Atualização de transferência inválida"
+
+#: src/control_center/sections/printers.zig
+msgid "It printed"
+msgstr "Foi impresso"
+
+#: src/control_center/search_index.zig
+msgid "Italic clock"
+msgstr "Relógio em itálico"
+
+#: src/control_center/sections/appearance.zig
+msgid "Italic clock text"
+msgstr "Texto do relógio em itálico"
+
+#: src/files/app_paint.zig
+msgid "Items"
+msgstr "Itens"
+
+#: src/files/app_fileops.zig
+msgid "Items moved to Trash"
+msgstr "Itens movidos para a lixeira"
+
+#: src/files/app_fileops.zig
+msgid "Items permanently deleted"
+msgstr "Itens excluídos permanentemente"
+
+#: src/control_center/sections/printers.zig
+msgid "Job history · {n}"
+msgstr "Histórico de trabalhos · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Job {id} · {state}"
+msgstr "Trabalho {id} · {state}"
+
+#: src/network/popup.zig
+msgid "Join"
+msgstr "Conectar"
+
+#: src/control_center/sections/network.zig
+msgid "Join Hidden Network"
+msgstr "Conectar a uma rede oculta"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep connection"
+msgstr "Manter conexão"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep desktop icons in place"
+msgstr "Manter os ícones da área de trabalho no lugar"
+
+#: src/control_center/sections/users.zig
+msgid "Keep home"
+msgstr "Manter pasta pessoal"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep icons fixed on screen while panning and zooming."
+msgstr "Manter os ícones fixos na tela ao deslocar e ampliar."
+
+#: src/control_center/sections/printers.zig
+msgid "Keep identifier"
+msgstr "Manter identificador"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep printer"
+msgstr "Manter impressora"
+
+#: src/control_center/sections/appearance.zig
+msgid "Keep zoom"
+msgstr "Manter ampliação"
+
+#: src/control_center/panel.zig
+msgid "Keyboard Shortcuts"
+msgstr "Atalhos de teclado"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat delay"
+msgstr "Atraso de repetição do teclado"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat rate"
+msgstr "Taxa de repetição do teclado"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard shortcuts"
+msgstr "Atalhos de teclado"
+
+#: src/files/app_torrent_rows.zig
+msgid "Known peers: {value}"
+msgstr "Pares conhecidos: {value}"
+
+#: src/control_center/sections/appearance.zig
+msgid "LEFT"
+msgstr "ESQUERDA"
+
+#: src/control_center/sections/printers.zig
+msgid "Label printer and advanced test tools"
+msgstr "Impressoras de etiquetas e ferramentas de teste avançadas"
+
+#: src/control_center/sections/region.zig
+msgid "Language"
+msgstr "Idioma"
+
+#: src/control_center/sections/printers.zig
+msgid "Language: {language}. This sample bypasses the filters and uses the queue's backend."
+msgstr "Idioma: {language}. Esta amostra ignora os filtros e usa o serviço da fila."
+
+#: src/control_center/sections/appearance.zig
+msgid "Large"
+msgstr "Grande"
+
+#: src/files/app_menu.zig
+msgid "Largest first"
+msgstr "Maior primeiro"
+
+#: src/control_center/sections/printers.zig
+msgid "Last job"
+msgstr "Último trabalho"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Last reported signal: {signal} dBm"
+msgstr "Último sinal recebido: {signal} dBm"
+
+#: src/start_menu/panel.zig
+msgid "Launch failed. The application may have been removed."
+msgstr "Falha ao iniciar. O aplicativo pode ter sido removido."
+
+#: src/control_center/search_index.zig
+msgid "Launch splash"
+msgstr "Tela de abertura"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Launcher"
+msgstr "Lançador"
+
+#: src/control_center/sections/desktop.zig
+msgid "Layouts and split sizes are saved for your next session."
+msgstr "As organizações e os tamanhos de divisão são salvos para a próxima sessão."
+
+#: src/network/popup.zig
+msgid "Leave blank to use saved password"
+msgstr "Deixe em branco para usar a senha salva"
+
+#: src/control_center/sections/appearance.zig
+msgid "Left"
+msgstr "Esquerda"
+
+#: src/control_center/search_index.zig
+msgid "Lid close action"
+msgstr "Ação ao fechar a tampa"
+
+#: src/control_center/sections/appearance.zig
+msgid "Light the active window's edge near the pointer"
+msgstr "Iluminar a borda da janela ativa perto do ponteiro"
+
+#: src/control_center/sections/network.zig
+msgid "Limited access"
+msgstr "Acesso limitado"
+
+#: src/editor/app.zig
+msgid "Line {line}, Column {column} · UTF-8{bom} · {ending}"
+msgstr "Linha {line}, coluna {column} · UTF-8{bom} · {ending}"
+
+#: src/files/app_listing.zig
+msgid "Link"
+msgstr "Link"
+
+#: src/pdf/app_pointer.zig
+msgid "Link copied. Paste it into your browser."
+msgstr "Link copiado. Cole-o no navegador."
+
+#: src/files/properties.zig
+msgid "Link permissions cannot be changed"
+msgstr "Não é possível alterar as permissões de um link"
+
+#: src/control_center/sections/network.zig
+msgid "Link speed"
+msgstr "Velocidade do link"
+
+#: src/files/app_torrents.zig
+msgid "List"
+msgstr "Lista"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper height"
+msgstr "Altura do papel carregado"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper width"
+msgstr "Largura do papel carregado"
+
+#: src/images/app.zig
+msgid "Loading image…"
+msgstr "Carregando imagem…"
+
+#: src/control_center/sections/printers.zig
+msgid "Loading printers…"
+msgstr "Carregando impressoras…"
+
+#: src/control_center/sections/services.zig
+msgid "Loading services…"
+msgstr "Carregando serviços…"
+
+#: src/files/properties.zig
+msgid "Location"
+msgstr "Local"
+
+#: src/control_center/sections/display.zig
+msgid "Lock"
+msgstr "Bloquear"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock Screen"
+msgstr "Bloquear tela"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock the session and turn off the display."
+msgstr "Bloquear a sessão e desligar a tela."
+
+#: src/control_center/sections/display.zig
+msgid "Locks and sleeps, even with another display connected."
+msgstr "Bloqueia e suspende, mesmo com outra tela conectada."
+
+#: src/control_center/sections/display.zig
+msgid "Locks, and turns off the built-in screen while another display is connected."
+msgstr "Bloqueia e desliga a tela integrada enquanto outra tela estiver conectada."
+
+#: src/session/lock.zig
+msgid "Log In"
+msgstr "Entrar"
+
+#: src/power_menu.zig
+msgid "Log Out"
+msgstr "Encerrar sessão"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Log out of the desktop session."
+msgstr "Sair da sessão da área de trabalho."
+
+#: src/session/power.zig
+msgid "Logind refused the request."
+msgstr "O logind recusou a solicitação."
+
+#: src/session/power.zig
+msgid "Logind request failed."
+msgstr "A solicitação ao logind falhou."
+
+#: src/session/power.zig
+msgid "Logind returned a malformed reply."
+msgstr "O logind retornou uma resposta malformada."
+
+#: src/session/power.zig
+msgid "Logind returned an unrecognized reply."
+msgstr "O logind retornou uma resposta desconhecida."
+
+#: src/session/lock.zig
+msgid "Lost contact with login service. Try again."
+msgstr "A conexão com o serviço de login foi perdida. Tente novamente."
+
+#: src/control_center/sections/network.zig
+msgid "MAC address"
+msgstr "Endereço MAC"
+
+#: src/control_center/sections/display.zig
+msgid "Main display"
+msgstr "Tela principal"
+
+#: src/control_center/sections/display.zig
+msgid "Make main display"
+msgstr "Definir como tela principal"
+
+#: src/control_center/panel.zig
+msgid "Make your desktop your own."
+msgstr "Deixe sua área de trabalho com a sua cara."
+
+#: src/control_center/panel.zig
+msgid "Make your mouse and keyboard feel right."
+msgstr "Ajuste o mouse e o teclado ao seu gosto."
+
+#: src/control_center/panel.zig
+msgid "Manage and analyze systemd services."
+msgstr "Gerencie e analise os serviços do systemd."
+
+#: src/control_center/sections/printers.zig
+msgid "Manage…"
+msgstr "Gerenciar…"
+
+#: src/control_center/sections/printers.zig
+msgid "Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"
+msgstr "Margens (mm): esquerda {left}, direita {right}, superior {top}, inferior {bottom}"
+
+#: src/control_center/panel.zig
+msgid "Master volume"
+msgstr "Volume principal"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Maximize or restore the focused window."
+msgstr "Maximizar ou restaurar a janela em foco."
+
+#: src/control_center/sections/printers.zig
+msgid "Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."
+msgstr "Meça o retângulo de borda a borda na unidade escolhida. A escala de impressão é desativada neste teste."
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle height"
+msgstr "Altura do retângulo medido"
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle width"
+msgstr "Largura do retângulo medido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Media"
+msgstr "Papel"
+
+#: src/control_center/sections/printers.zig
+msgid "Media and resolution"
+msgstr "Papel e resolução"
+
+#: src/printing/ladder.zig
+msgid "Media and resolution need confirmation against what is loaded in the printer."
+msgstr "É necessário confirmar o papel e a resolução conforme o que está carregado na impressora."
+
+#: src/control_center/sections/appearance.zig
+msgid "Medium"
+msgstr "Médio"
+
+#: src/system_monitor/app.zig
+msgid "Memory (resident)"
+msgstr "Memória (residente)"
+
+#: src/editor/main.zig
+msgid "Menu"
+msgstr "Menu"
+
+#: src/control_center/search_index.zig
+msgid "Menu bottom padding"
+msgstr "Margem inferior do menu"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu height"
+msgstr "Altura do menu"
+
+#: src/control_center/search_index.zig
+msgid "Menu left padding"
+msgstr "Margem esquerda do menu"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu width"
+msgstr "Largura do menu"
+
+#: src/files/app_torrent_rows.zig
+msgid "Metadata…"
+msgstr "Metadados…"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mic Mute"
+msgstr "Silenciar microfone"
+
+#: src/osd_paint.zig
+msgid "Mic on"
+msgstr "Microfone ativo"
+
+#: src/control_center/search_index.zig
+msgid "Microphone volume"
+msgstr "Volume do microfone"
+
+#: src/control_center/sections/printers.zig
+msgid "Millimetres"
+msgstr "Milímetros"
+
+#: src/control_center/sections/desktop.zig
+msgid "Mini Map"
+msgstr "Minimapa"
+
+#: src/control_center/search_index.zig
+msgid "Mini map"
+msgstr "Minimapa"
+
+#: src/control_center/search_index.zig
+msgid "Mini map hide delay"
+msgstr "Atraso para ocultar o minimapa"
+
+#: src/control_center/search_index.zig
+msgid "Mini map position"
+msgstr "Posição do minimapa"
+
+#: src/files/app_layout.zig
+msgid "Modified"
+msgstr "Modificado"
+
+#: src/control_center/sections/region.zig
+msgid "Monday"
+msgstr "Segunda-feira"
+
+#: src/control_center/search_index.zig
+msgid "Monitor"
+msgstr "Monitor"
+
+#: src/control_center/sections/printers.zig
+msgid "More printing options"
+msgstr "Mais opções de impressão"
+
+#: src/control_center/welcome.zig
+msgid "More settings"
+msgstr "Mais configurações"
+
+#: src/control_center/sections/appearance.zig
+msgid "Motion & feedback"
+msgstr "Movimento e resposta"
+
+#: src/files/app_model.zig
+msgid "Mount"
+msgstr "Montar"
+
+#: src/files/app_places.zig
+msgid "Mounted"
+msgstr "Montado"
+
+#: src/files/app_places.zig
+msgid "Mounting…"
+msgstr "Montando…"
+
+#: src/control_center/search_index.zig
+msgid "Mouse speed"
+msgstr "Velocidade do mouse"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move To Workspace"
+msgstr "Mover para o espaço de trabalho"
+
+#: src/control_center/sections/appearance.zig
+msgid "Move file manager aside"
+msgstr "Desviar o gerenciador de arquivos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider down."
+msgstr "Mover para baixo o divisor correspondente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider left."
+msgstr "Mover para a esquerda o divisor correspondente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider right."
+msgstr "Mover para a direita o divisor correspondente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider up."
+msgstr "Mover para cima o divisor correspondente."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to depth {depth}."
+msgstr "Mover a janela para a profundidade {depth}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to workspace {n} and follow it."
+msgstr "Mover a janela para o espaço de trabalho {n} e acompanhá-la."
+
+#: src/images/app.zig
+msgid "Move this image to Trash?"
+msgstr "Mover esta imagem para a lixeira?"
+
+#: src/delete_dialog.zig
+msgid "Move to Trash"
+msgstr "Mover para a lixeira"
+
+#: src/files/app_dialogs.zig
+msgid "Move to Trash?"
+msgstr "Mover para a lixeira?"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move to workspace."
+msgstr "Mover para o espaço de trabalho."
+
+#: src/control_center/welcome.zig
+msgid "Move, resize and overlap windows."
+msgstr "Mova, redimensione e sobreponha janelas."
+
+#: src/images/app.zig
+msgid "Moved to Trash."
+msgstr "Movido para a lixeira."
+
+#: src/images/app.zig
+msgid "Moving to Trash…"
+msgstr "Movendo para a lixeira…"
+
+#: src/files/app.zig
+msgid "Music"
+msgstr "Música"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute system audio."
+msgstr "Silenciar ou ativar o áudio do sistema."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute the microphone."
+msgstr "Silenciar ou ativar o microfone."
+
+#: src/osd_paint.zig
+msgid "Muted"
+msgstr "Mudo"
+
+#: src/system_monitor/app.zig
+msgid "My processes"
+msgstr "Meus processos"
+
+#: src/files/app_layout.zig
+msgid "Name"
+msgstr "Nome"
+
+#: src/files/app_dialogs.zig
+msgid "Name cannot be empty"
+msgstr "O nome não pode ficar vazio"
+
+#: src/files/app_menu.zig
+msgid "Name: A to Z"
+msgstr "Nome: de A a Z"
+
+#: src/files/app_menu.zig
+msgid "Name: Z to A"
+msgstr "Nome: de Z a A"
+
+#: src/files/properties.zig
+msgid "Named pipe"
+msgstr "Pipe nomeado"
+
+#: src/control_center/search_index.zig
+msgid "Natural scroll"
+msgstr "Rolagem natural"
+
+#: src/control_center/sections/printers.zig
+msgid "Neither test produced output: check the backend, connection, printer and loaded paper."
+msgstr "Nenhum teste produziu impressão: verifique o serviço, a conexão, a impressora e o papel carregado."
+
+#: src/control_center/panel.zig
+msgid "Network"
+msgstr "Rede"
+
+#: src/network/popup.zig
+msgid "Network Name (SSID)"
+msgstr "Nome da rede (SSID)"
+
+#: src/network/popup.zig
+msgid "Network Settings"
+msgstr "Configurações de rede"
+
+#: src/control_center/sections/network.zig
+msgid "Network name"
+msgstr "Nome da rede"
+
+#: src/control_center/sections/network.zig
+msgid "Network name (SSID)"
+msgstr "Nome da rede (SSID)"
+
+#: src/control_center/sections/network.zig
+msgid "Network names must be at most 32 bytes."
+msgstr "Os nomes de rede podem ter no máximo 32 bytes."
+
+#: src/printing/ladder.zig
+msgid "Network reachability has not been checked."
+msgstr "A conectividade de rede não foi verificada."
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager is unavailable"
+msgstr "O NetworkManager está indisponível"
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager unavailable"
+msgstr "NetworkManager indisponível"
+
+#: src/editor/app.zig
+msgid "New"
+msgstr "Novo"
+
+#: src/files/app_dialogs.zig
+msgid "New Branch"
+msgstr "Novo ramo"
+
+#: src/desktop/app_actions.zig
+msgid "New File"
+msgstr "Novo arquivo"
+
+#: src/desktop/app_paint.zig
+msgid "New File — Enter creates"
+msgstr "Novo arquivo — Enter para criar"
+
+#: src/files/app_dialogs.zig
+msgid "New File.txt"
+msgstr "Novo arquivo.txt"
+
+#: src/desktop/app_actions.zig
+msgid "New Folder"
+msgstr "Nova pasta"
+
+#: src/files/app_git_sidebar.zig
+msgid "New branch"
+msgstr "Novo ramo"
+
+#: src/control_center/sections/users.zig
+msgid "New password"
+msgstr "Nova senha"
+
+#: src/chrome_tabs.zig
+msgid "New tab"
+msgstr "Nova aba"
+
+#: src/files/app_menu.zig
+msgid "Newest first"
+msgstr "Mais recente primeiro"
+
+#: src/editor/app.zig
+msgid "Next"
+msgstr "Próximo"
+
+#: src/session/lock.zig
+msgid "Next account"
+msgstr "Próxima conta"
+
+#: src/control_center/search_index.zig
+msgid "Night light"
+msgstr "Luz noturna"
+
+#: src/control_center/search_index.zig
+msgid "Night light temperature"
+msgstr "Temperatura da luz noturna"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No Bluetooth adapter found"
+msgstr "Nenhum adaptador Bluetooth encontrado"
+
+#: src/control_center/sections/network.zig
+msgid "No Wi-Fi adapter found"
+msgstr "Nenhum adaptador Wi-Fi encontrado"
+
+#: src/control_center/sections/sound.zig
+msgid "No active audio streams"
+msgstr "Nenhum fluxo de áudio ativo"
+
+#: src/control_center/sections/printers.zig
+msgid "No active jobs"
+msgstr "Nenhum trabalho ativo"
+
+#: src/control_center/sections/network.zig
+msgid "No adapter"
+msgstr "Nenhum adaptador"
+
+#: src/files/open_with.zig
+msgid "No applications available"
+msgstr "Nenhum aplicativo disponível"
+
+#: src/start_menu/panel.zig
+msgid "No applications found"
+msgstr "Nenhum aplicativo encontrado"
+
+#: src/control_center/panel.zig
+msgid "No audio device available"
+msgstr "Nenhum dispositivo de áudio disponível"
+
+#: src/files/app_paint.zig
+msgid "No changed files"
+msgstr "Nenhum arquivo alterado"
+
+#: src/control_center/sections/users.zig
+msgid "No changes were made. Authentication was cancelled or the request failed."
+msgstr "Nenhuma alteração foi feita. A autenticação foi cancelada ou a solicitação falhou."
+
+#: src/pdf/app_paint.zig
+msgid "No document open. Click 'Open' or press Ctrl+O."
+msgstr "Nenhum documento aberto. Clique em “Abrir” ou pressione Ctrl+O."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "No images in this folder"
+msgstr "Nenhuma imagem nesta pasta"
+
+#: src/control_center/sections/network.zig
+msgid "No internet access"
+msgstr "Sem acesso à Internet"
+
+#: src/control_center/sections/network.zig
+msgid "No internet connection"
+msgstr "Sem conexão com a Internet"
+
+#: src/control_center/sections/users.zig
+msgid "No login accounts were found."
+msgstr "Nenhuma conta de usuário encontrada."
+
+#: src/session/lock.zig
+msgid "No login service"
+msgstr "Nenhum serviço de login"
+
+#: src/printing/ladder.zig
+msgid "No matching USB device is available to identify its node."
+msgstr "Nenhum dispositivo USB correspondente disponível para identificar seu nó."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No matching devices"
+msgstr "Nenhum dispositivo correspondente"
+
+#: src/files/app_paint.zig
+msgid "No matching items"
+msgstr "Nenhum item correspondente"
+
+#: src/system_monitor/app.zig
+msgid "No matching processes"
+msgstr "Nenhum processo correspondente"
+
+#: src/control_center/sections/services.zig
+msgid "No matching services."
+msgstr "Nenhum serviço correspondente."
+
+#: src/control_center/sections/network.zig
+msgid "No networks found. Scan to try again."
+msgstr "Nenhuma rede encontrada. Busque novamente."
+
+#: src/network/popup.zig
+msgid "No networks found. Try reopening to scan again."
+msgstr "Nenhuma rede encontrada. Reabra para buscar novamente."
+
+#: src/pdf/app_paint.zig
+msgid "No outline in document"
+msgstr "O documento não tem sumário"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No paired devices. Choose Pair New Device to get started."
+msgstr "Nenhum dispositivo pareado. Escolha Parear novo dispositivo para começar."
+
+#: src/pdf/main.zig
+msgid "No print service answered (xdg-desktop-portal)."
+msgstr "Nenhum serviço de impressão respondeu (xdg-desktop-portal)."
+
+#: src/control_center/sections/printers.zig
+msgid "No printers configured."
+msgstr "Nenhuma impressora configurada."
+
+#: src/files/app_paint.zig
+msgid "No recent files"
+msgstr "Nenhum arquivo recente"
+
+#: src/printing/ladder.zig
+msgid "No recent job information is available."
+msgstr "Não há informações disponíveis sobre trabalhos recentes."
+
+#: src/control_center/sections/users.zig
+msgid "No sessions available"
+msgstr "Nenhuma sessão disponível"
+
+#: src/session/lock.zig
+msgid "No sessions installed"
+msgstr "Nenhuma sessão instalada"
+
+#: src/control_center/search.zig
+msgid "No settings found"
+msgstr "Nenhuma configuração encontrada"
+
+#: src/share_picker/client.zig
+msgid "No sources available."
+msgstr "Nenhuma fonte disponível."
+
+#: src/control_center/panel.zig
+msgid "No supported backlight"
+msgstr "Nenhuma iluminação compatível"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No supported profiles reported"
+msgstr "Nenhum perfil compatível informado"
+
+#: src/control_center/sections/printers.zig
+msgid "No supported resolution consistently matches both measurements. Check the ruler and print scaling."
+msgstr "Nenhuma resolução compatível corresponde às duas medidas. Verifique a régua e a escala de impressão."
+
+#: src/files/app_terminal.zig
+msgid "No terminal directory"
+msgstr "Nenhuma pasta de terminal"
+
+#: src/files/app_torrents.zig
+msgid "No transfers yet. Add a .torrent file or magnet link."
+msgstr "Ainda não há transferências. Adicione um arquivo .torrent ou um link magnet."
+
+#: src/control_center/sections/printers.zig
+msgid "No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."
+msgstr "Nenhum driver corresponde de forma inequívoca. Escolha um da lista, verifique um endereço IPP ou escolha explicitamente uma fila sem processamento."
+
+#: src/control_center/sections/printers.zig
+msgid "No usblp node was found; CUPS may still use libusb or ipp-usb."
+msgstr "Nenhum nó usblp encontrado; o CUPS ainda pode usar libusb ou ipp-usb."
+
+#: src/session/lock.zig
+msgid "No user accounts found"
+msgstr "Nenhuma conta de usuário encontrada"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter"
+msgstr "Nenhum adaptador de rede cabeada"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter found"
+msgstr "Nenhum adaptador de rede cabeada encontrado"
+
+#: src/control_center/sections/appearance.zig
+msgid "None"
+msgstr "Nenhum"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Noop"
+msgstr "Sem ação"
+
+#: src/control_center/sections/display.zig
+msgid "Normal"
+msgstr "Normal"
+
+#: src/files/worker.zig
+msgid "Not a directory"
+msgstr "Não é uma pasta"
+
+#: src/control_center/sections/printers.zig
+msgid "Not accepting new jobs"
+msgstr "Não aceita novos trabalhos"
+
+#: src/files/volumes.zig
+msgid "Not authorized to eject {name}"
+msgstr "Sem autorização para ejetar {name}"
+
+#: src/files/volumes.zig
+msgid "Not authorized to mount {name}"
+msgstr "Sem autorização para montar {name}"
+
+#: src/session/power.zig
+msgid "Not available on this system."
+msgstr "Indisponível neste sistema."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Not connected"
+msgstr "Não conectado"
+
+#: src/editor/app.zig
+msgid "Not enough free memory to hold this file."
+msgstr "Não há memória livre suficiente para este arquivo."
+
+#: src/system_monitor/app.zig
+msgid "Not enough memory to display every process"
+msgstr "Não há memória suficiente para mostrar todos os processos"
+
+#: src/printing/cups.zig
+msgid "Not enough memory to load printer status. Refresh to check the result."
+msgstr "Não há memória suficiente para carregar o status da impressora. Atualize para verificar o resultado."
+
+#: src/pdf/app_document.zig
+msgid "Not enough memory to open this document."
+msgstr "Não há memória suficiente para abrir este documento."
+
+#: src/control_center/panel.zig
+msgid "Not enough memory to show this page."
+msgstr "Não há memória suficiente para mostrar esta página."
+
+#: src/images/app.zig
+msgid "Not enough memory."
+msgstr "Memória insuficiente."
+
+#: src/files/app_places.zig
+msgid "Not found"
+msgstr "Não encontrado"
+
+#: src/control_center/sections/sound.zig
+msgid "Not saved"
+msgstr "Não salvo"
+
+#: src/control_center/sections/region.zig
+msgid "Not specified"
+msgstr "Não especificado"
+
+#: src/session/power.zig
+msgid "Not supported"
+msgstr "Não suportado"
+
+#: src/files/app_places.zig
+msgid "Nothing to add to Places"
+msgstr "Nada para adicionar a Locais"
+
+#: src/notifications/toast.zig
+msgid "Notification"
+msgstr "Notificação"
+
+#: src/control_center/sections/services.zig
+msgid "Notify"
+msgstr "Notify"
+
+#: src/systemd.zig
+msgid "Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."
+msgstr "A substituição Notify foi salva, mas o systemd não conseguiu recarregá-la. Tente Atualizar após recarregar o gerenciador."
+
+#: src/systemd.zig
+msgid "Notify override saved, but the selected type is not active in systemd. Check other service overrides."
+msgstr "A substituição Notify foi salva, mas o tipo selecionado não está ativo no systemd. Verifique as outras substituições do serviço."
+
+#: src/control_center/sections/services.zig
+msgid "Notify sets the service type and applies on its next start. Saving requires administrator authentication."
+msgstr "Notify define o tipo de serviço e é aplicado na próxima inicialização. Salvar exige autenticação de administrador."
+
+#: src/systemd.zig
+msgid "Notify setting saved. Applies on the next service start."
+msgstr "Configuração Notify salva. Será aplicada na próxima inicialização do serviço."
+
+#: src/control_center/sections/region.zig
+msgid "Number"
+msgstr "Número"
+
+#: src/files/app_paint.zig
+msgid "OK"
+msgstr "OK"
+
+#: src/control_center/sections/appearance.zig
+msgid "Off"
+msgstr "Desativado"
+
+#: src/control_center/sections/network.zig
+msgid "Offline"
+msgstr "Desconectado"
+
+#: src/printing/admin.zig
+msgid "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+msgstr "A substituição padrão anterior foi removida, mas não foi possível aplicar a nova opção. Atualize e revise a opção."
+
+#: src/files/app_menu.zig
+msgid "Oldest first"
+msgstr "Mais antigo primeiro"
+
+#: src/control_center/sections/appearance.zig
+msgid "On"
+msgstr "Ativado"
+
+#: src/taskbar/battery.zig
+msgid "On Battery"
+msgstr "Na bateria"
+
+#: src/printing/options.zig
+msgid "One-sided"
+msgstr "Um lado"
+
+#: src/files/properties.zig
+msgid "Only the owner can change permissions"
+msgstr "Somente o proprietário pode alterar as permissões"
+
+#: src/files/appimage.zig
+msgid "Only type-2 AppImages are supported"
+msgstr "Somente AppImages do tipo 2 são suportados"
+
+#: src/control_center/sections/network.zig
+msgid "Open"
+msgstr "Abrir"
+
+#: src/files/app.zig
+msgid "Open File"
+msgstr "Abrir arquivo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor"
+msgstr "Abrir Monitor do sistema"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor, or restore and focus its window."
+msgstr "Abrir o Monitor do sistema ou restaurar e focar sua janela."
+
+#: src/files/app_dialogs.zig
+msgid "Open With"
+msgstr "Abrir com"
+
+#: src/desktop/app_actions.zig
+msgid "Open With…"
+msgstr "Abrir com…"
+
+#: src/control_center/sections/network.zig
+msgid "Open a browser to sign in"
+msgstr "Abra um navegador para entrar"
+
+#: src/control_center/sections/desktop.zig
+msgid "Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."
+msgstr "Abra um aplicativo para adicioná-lo aqui. Regras avançadas de título, plataforma e padrões usam floating em [[window_rules]] na configuração."
+
+#: src/pdf/app_keyboard.zig
+msgid "Open another PDF from Files in a new window."
+msgstr "Abra outro PDF em Arquivos em uma nova janela."
+
+#: src/control_center/search_index.zig
+msgid "Open files with a single click"
+msgstr "Abrir arquivos com um clique"
+
+#: src/files/app_model.zig
+msgid "Open in New Window"
+msgstr "Abrir em nova janela"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open or close the application launcher."
+msgstr "Abrir ou fechar o lançador de aplicativos."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open the session and power menu."
+msgstr "Abrir o menu de sessão e energia."
+
+#: src/files/app_layout.zig
+msgid "Opened"
+msgstr "Aberto"
+
+#: src/files/open_with.zig
+msgid "Opened, but could not save the default app"
+msgstr "Aberto, mas não foi possível salvar o aplicativo padrão"
+
+#: src/pdf/app_paint.zig
+msgid "Opening document..."
+msgstr "Abrindo documento..."
+
+#: src/editor/app.zig
+msgid "Opening…"
+msgstr "Abrindo…"
+
+#: src/control_center/sections/services.zig
+msgid "Optimize"
+msgstr "Otimizar"
+
+#: src/files/properties.zig
+msgid "Others"
+msgstr "Outros"
+
+#: src/files/git.zig
+msgid "Out of memory"
+msgstr "Memória esgotada"
+
+#: src/pdf/app_paint.zig
+msgid "Outline"
+msgstr "Sumário"
+
+#: src/control_center/sections/sound.zig
+msgid "Output"
+msgstr "Saída"
+
+#: src/control_center/search_index.zig
+msgid "Output balance"
+msgstr "Balanço de saída"
+
+#: src/control_center/sections/display.zig
+msgid "Output name"
+msgstr "Nome da saída"
+
+#: src/control_center/search_index.zig
+msgid "Output volume"
+msgstr "Volume de saída"
+
+#: src/control_center/sections/desktop.zig
+msgid "Output: {name}"
+msgstr "Saída: {name}"
+
+#: src/files/properties.zig
+msgid "Owner"
+msgstr "Proprietário"
+
+#: src/pdf/app.zig
+msgid "PDF Viewer"
+msgstr "Visualizador de PDF"
+
+#: src/delete_dialog.zig
+msgid "PDF document"
+msgstr "Documento PDF"
+
+#: src/system_monitor/app.zig
+msgid "PID"
+msgstr "PID"
+
+#: src/files/app_sidebar_paint.zig
+msgid "PLACES"
+msgstr "LOCAIS"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "PNG and SVG images"
+msgstr "Imagens PNG e SVG"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pack or system default"
+msgstr "Padrão do pacote ou do sistema"
+
+#: src/control_center/sections/appearance.zig
+msgid "Packs include colours and artwork. Personal edits are saved as overrides."
+msgstr "Os pacotes incluem cores e imagens. As alterações pessoais são salvas como substituições."
+
+#: src/pdf/app_paint.zig
+msgid "Pages"
+msgstr "Páginas"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair Device"
+msgstr "Parear dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair New Device"
+msgstr "Parear novo dispositivo"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Paired Devices"
+msgstr "Dispositivos pareados"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing"
+msgstr "Pareando"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing code"
+msgstr "Código de pareamento"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Down"
+msgstr "Deslocar para baixo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Left"
+msgstr "Deslocar para a esquerda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Right"
+msgstr "Deslocar para a direita"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Up"
+msgstr "Deslocar para cima"
+
+#: src/control_center/sections/desktop.zig
+msgid "Pan and zoom the canvas. Switching back restores your canvas positions and zoom."
+msgstr "Desloque e amplie a área de trabalho ampla. Ao voltar, suas posições e ampliação serão restauradas."
+
+#: src/control_center/sections/input.zig
+msgid "Pan speed"
+msgstr "Velocidade de deslocamento"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pan to the selected window without changing zoom."
+msgstr "Deslocar até a janela selecionada sem alterar a ampliação."
+
+#: src/printing/options.zig
+msgid "Paper size"
+msgstr "Tamanho do papel"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {paper}"
+msgstr "Papel: {paper}"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {width} × {height} mm"
+msgstr "Papel: {width} × {height} mm"
+
+#: src/control_center/sections/printers.zig
+msgid "Pass"
+msgstr "Aprovado"
+
+#: src/control_center/sections/network.zig
+msgid "Password"
+msgstr "Senha"
+
+#: src/control_center/sections/network.zig
+msgid "Password (leave empty to use saved)"
+msgstr "Senha (em branco para usar a salva)"
+
+#: src/pdf/app_paint.zig
+msgid "Password Required"
+msgstr "Senha necessária"
+
+#: src/files/archive.zig
+msgid "Password-protected archives are not supported yet"
+msgstr "Arquivos compactados protegidos por senha ainda não são suportados"
+
+#: src/desktop/app_actions.zig
+msgid "Paste"
+msgstr "Colar"
+
+#: src/files/app_torrent_rows.zig
+msgid "Pause"
+msgstr "Pausar"
+
+#: src/files/app_torrents.zig
+msgid "Pause all"
+msgstr "Pausar todos"
+
+#: src/system_monitor/app.zig
+msgid "Pause updates"
+msgstr "Pausar atualizações"
+
+#: src/files/app_torrent_rows.zig
+msgid "Paused"
+msgstr "Pausado"
+
+#: src/printing/cups.zig
+msgid "Pending"
+msgstr "Pendente"
+
+#: src/power_profiles.zig
+msgid "Performance"
+msgstr "Desempenho"
+
+#: src/delete_dialog.zig
+msgid "Permanently delete all trashed files and folders"
+msgstr "Excluir permanentemente todos os arquivos e pastas da lixeira"
+
+#: src/files/app_dialogs.zig
+msgid "Permission denied"
+msgstr "Permissão negada"
+
+#: src/editor/app.zig
+msgid "Permission denied. Try Save As in a writable folder."
+msgstr "Permissão negada. Use Salvar como em uma pasta com permissão de gravação."
+
+#: src/files/app_layout.zig
+msgid "Permissions"
+msgstr "Permissões"
+
+#: src/files/properties.zig
+msgid "Permissions updated"
+msgstr "Permissões atualizadas"
+
+#: src/files/app.zig
+msgid "Pictures"
+msgstr "Imagens"
+
+#: src/start_menu/panel.zig
+msgid "Pin application"
+msgstr "Fixar aplicativo"
+
+#: src/start_menu/panel.zig
+msgid "Pinned & Recent"
+msgstr "Fixados e recentes"
+
+#: src/control_center/sections/desktop.zig
+msgid "Placement"
+msgstr "Posicionamento"
+
+#: src/files/app_places.zig
+msgid "Places is full"
+msgstr "Locais está cheio"
+
+#: src/images/app.zig
+msgid "Please wait for the file operation to finish."
+msgstr "Aguarde a conclusão da operação de arquivos."
+
+#: src/taskbar/battery.zig
+msgid "Plugged In"
+msgstr "Na tomada"
+
+#: src/control_center/sections/desktop.zig
+msgid "Position"
+msgstr "Posição"
+
+#: src/session/lock.zig
+msgid "Power"
+msgstr "Energia"
+
+#: src/power_menu.zig
+msgid "Power Off"
+msgstr "Desligar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Power Profile Cycle"
+msgstr "Alternar perfil de energia"
+
+#: src/power_profiles.zig
+msgid "Power Saver"
+msgstr "Economia de energia"
+
+#: src/session/power.zig
+msgid "Power action failed"
+msgstr "A ação de energia falhou"
+
+#: src/session/power.zig
+msgid "Power off"
+msgstr "Desligar"
+
+#: src/session/lock.zig
+msgid "Power off? Activate Power again to confirm."
+msgstr "Desligar? Ative Desligar novamente para confirmar."
+
+#: src/session/lock.zig
+msgid "Power request accepted"
+msgstr "Solicitação de energia aceita"
+
+#: src/session/lock.zig
+msgid "Power request denied or unavailable"
+msgstr "Solicitação de energia negada ou indisponível"
+
+#: src/session/power.zig
+msgid "Power request failed. Check permissions and applications blocking shutdown."
+msgstr "A solicitação de energia falhou. Verifique as permissões e os aplicativos que impedem o desligamento."
+
+#: src/session/lock.zig
+msgid "Power service unavailable"
+msgstr "Serviço de energia indisponível"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff"
+msgstr "Desligar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff Auto"
+msgstr "Desligar automaticamente"
+
+#: src/session/lock.zig
+msgid "Press Enter to log in"
+msgstr "Pressione Enter para entrar"
+
+#: src/session/lock.zig
+msgid "Press Enter to unlock"
+msgstr "Pressione Enter para desbloquear"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press keys to record. Esc cancels."
+msgstr "Pressione as teclas para gravar. Esc cancela."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press new shortcut…"
+msgstr "Pressione o novo atalho…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Prevent this device from connecting."
+msgstr "Impedir que este dispositivo se conecte."
+
+#: src/files/app_torrents.zig
+msgid "Previous"
+msgstr "Anterior"
+
+#: src/session/lock.zig
+msgid "Previous account"
+msgstr "Conta anterior"
+
+#: src/pdf/app_paint.zig
+msgid "Print"
+msgstr "Imprimir"
+
+#: src/control_center/sections/printers.zig
+msgid "Print a 2 × 3 inch ruler…"
+msgstr "Imprimir uma régua de 2 × 3 polegadas…"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one test"
+msgstr "Imprimir um teste"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one {kind} test on {name}?"
+msgstr "Imprimir um teste {kind} em {name}?"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue"
+msgstr "Fila de impressão"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue · {n}"
+msgstr "Fila de impressão · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test"
+msgstr "Teste de impressão"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test page…"
+msgstr "Imprimir página de teste…"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer"
+msgstr "Impressora"
+
+#: src/printing/admin.zig
+msgid "Printer added, enabled and accepting jobs."
+msgstr "Impressora adicionada, ativada e aceitando trabalhos."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer address (ipp, ipps, socket or lpd)"
+msgstr "Endereço da impressora (ipp, ipps, socket ou lpd)"
+
+#: src/printing/admin.zig
+msgid "Printer administration failed; refresh and check the printer status."
+msgstr "A administração de impressoras falhou; atualize e verifique o status da impressora."
+
+#: src/printing/admin.zig
+msgid "Printer administration timed out. Refresh before trying again."
+msgstr "A administração de impressoras excedeu o tempo limite. Atualize antes de tentar novamente."
+
+#: src/printing/admin.zig
+msgid "Printer administration was cancelled."
+msgstr "A administração de impressoras foi cancelada."
+
+#: src/printing/admin.zig
+msgid "Printer administration was not authorized or was cancelled."
+msgstr "A administração de impressoras não foi autorizada ou foi cancelada."
+
+#: src/printing/admin.zig
+msgid "Printer authorization helper unavailable. Refresh before trying again."
+msgstr "O auxiliar de autorização de impressoras está indisponível. Atualize antes de tentar novamente."
+
+#: src/printing/admin.zig
+msgid "Printer change applied."
+msgstr "Alteração da impressora aplicada."
+
+#: src/printing/admin.zig
+msgid "Printer connection changed."
+msgstr "Conexão da impressora alterada."
+
+#: src/printing/admin.zig
+msgid "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+msgstr "A limpeza das preferências foi concluída parcialmente, mas não foi possível aplicar a nova opção. Atualize e revise a opção."
+
+#: src/printing/admin.zig
+msgid "Printer discovery complete."
+msgstr "Descoberta de impressoras concluída."
+
+#: src/printing/admin.zig
+msgid "Printer option applied."
+msgstr "Opção da impressora aplicada."
+
+#: src/printing/cups.zig
+msgid "Printer preferences could not be saved safely. Check the existing preferences file."
+msgstr "Não foi possível salvar as preferências da impressora com segurança. Verifique o arquivo de preferências existente."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setting verified."
+msgstr "Configuração da impressora verificada."
+
+#: src/printing/options.zig
+msgid "Printer settings"
+msgstr "Configurações da impressora"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setup requires the local default CUPS server."
+msgstr "A configuração de impressoras requer o servidor CUPS local padrão."
+
+#: src/control_center/panel.zig
+msgid "Printer status, jobs and connection diagnostics."
+msgstr "Status, trabalhos e diagnóstico de conexões de impressoras."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but could not be enabled. Refresh and resume it."
+msgstr "A impressora foi adicionada, mas não foi possível ativá-la. Atualize e retome-a."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+msgstr "A impressora foi adicionada, mas a ativação ou aceitação de trabalhos falhou. Atualize, retome-a e permita trabalhos."
+
+#: src/control_center/panel.zig
+msgid "Printers"
+msgstr "Impressoras"
+
+#: src/control_center/sections/printers.zig
+msgid "Printers are unavailable in the greeter."
+msgstr "As impressoras não estão disponíveis na tela de login."
+
+#: src/printing/cups.zig
+msgid "Printing"
+msgstr "Imprimindo"
+
+#: src/pdf/main.zig
+msgid "Printing is not available."
+msgstr "A impressão está indisponível."
+
+#: src/control_center/sections/printers.zig
+msgid "Printing preferences"
+msgstr "Preferências de impressão"
+
+#: src/control_center/sections/printers.zig
+msgid "Problem"
+msgstr "Problema"
+
+#: src/system_monitor/app.zig
+msgid "Process data unavailable"
+msgstr "Dados de processos indisponíveis"
+
+#: src/system_monitor/app.zig
+msgid "Processes"
+msgstr "Processos"
+
+#: src/printing/cups.zig
+msgid "Processing"
+msgstr "Processando"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles"
+msgstr "Perfis"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles appear after pairing"
+msgstr "Os perfis aparecem após o pareamento"
+
+#: src/files/app_layout.zig
+msgid "Progress"
+msgstr "Progresso"
+
+#: src/files/app.zig
+msgid "Projects"
+msgstr "Projetos"
+
+#: src/desktop/app_actions.zig
+msgid "Properties"
+msgstr "Propriedades"
+
+#: src/desktop/app_paint.zig
+msgid "Properties — Escape closes"
+msgstr "Propriedades — Escape para fechar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Put the computer to sleep."
+msgstr "Suspender o computador."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Put your device in pairing mode. Nearby devices appear here."
+msgstr "Coloque o dispositivo no modo de pareamento. Os dispositivos próximos aparecem aqui."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+msgstr "Cores do Qt 5 e Qt 6 aplicadas. Reinicie os aplicativos; entre novamente se as cores não mudarem."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Cores do Qt 5 aplicadas. Instale qt6ct para Qt 6. Reinicie os aplicativos; entre novamente se as cores não mudarem."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Cores do Qt 6 aplicadas. Instale qt5ct para Qt 5. Reinicie os aplicativos; entre novamente se as cores não mudarem."
+
+#: src/printing/options.zig
+msgid "Quality"
+msgstr "Qualidade"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue"
+msgstr "Fila"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue identifier"
+msgstr "Identificador da fila"
+
+#: src/printing/ladder.zig
+msgid "Queue media and resolution could not be read."
+msgstr "Não foi possível ler o papel e a resolução da fila."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue name"
+msgstr "Nome da fila"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue paper setting: {paper}. Check that this matches the loaded paper."
+msgstr "Papel configurado na fila: {paper}. Verifique se corresponde ao papel carregado."
+
+#: src/printing/admin.zig
+msgid "Queue rename only partly completed. Refresh and check both queues before retrying."
+msgstr "A renomeação da fila foi concluída apenas parcialmente. Atualize e verifique as duas filas antes de tentar novamente."
+
+#: src/printing/admin.zig
+msgid "Queue rename request completed. Check the refreshed queues and options."
+msgstr "Solicitação de renomeação concluída. Verifique as filas e opções atualizadas."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue: {name}"
+msgstr "Fila: {name}"
+
+#: src/start_menu/panel.zig
+msgid "Quick Launch"
+msgstr "Início rápido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Quit"
+msgstr "Sair"
+
+#: src/control_center/sections/display.zig
+msgid "REDIWM_SCALE sets scaling; restart to apply Xwayland changes."
+msgstr "REDIWM_SCALE define a escala; reinicie para aplicar alterações do Xwayland."
+
+#: src/control_center/sections/appearance.zig
+msgid "RIGHT"
+msgstr "DIREITA"
+
+#: src/control_center/sections/appearance.zig
+msgid "Radius"
+msgstr "Raio"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw queue (printer commands only)"
+msgstr "Fila sem processamento (somente comandos de impressora)"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw sample resolution (dpi)"
+msgstr "Resolução da amostra sem processamento (dpi)"
+
+#: src/files/properties.zig
+msgid "Read"
+msgstr "Ler"
+
+#: src/control_center/sections/users.zig
+msgid "Read only"
+msgstr "Somente leitura"
+
+#: src/printing/cups.zig
+msgid "Ready"
+msgstr "Pronto"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Ready to pair"
+msgstr "Pronto para parear"
+
+#: src/printing/ladder.zig
+msgid "Reapply the intended paper, resolution or driver option, then refresh to verify the result."
+msgstr "Reaplique o papel, a resolução ou a opção de driver desejados e atualize para verificar o resultado."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot"
+msgstr "Reiniciar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot Auto"
+msgstr "Reiniciar automaticamente"
+
+#: src/files/app.zig
+msgid "Recent"
+msgstr "Recentes"
+
+#: src/files/open_with.zig
+msgid "Recommended Apps"
+msgstr "Aplicativos recomendados"
+
+#: src/files/app.zig
+msgid "RediWM Files"
+msgstr "Arquivos do RediWM"
+
+#: src/control_center/sections/default_apps.zig
+msgid "RediWM Files (built-in)"
+msgstr "Arquivos do RediWM (integrado)"
+
+#: src/control_center/sections/appearance.zig
+msgid "RediWM dock"
+msgstr "Dock do RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "Reduce blue light with a warm tint"
+msgstr "Reduzir a luz azul com um tom quente"
+
+#: src/control_center/search_index.zig
+msgid "Reduced motion"
+msgstr "Movimento reduzido"
+
+#: src/control_center/sections/printers.zig
+msgid "Refresh"
+msgstr "Atualizar"
+
+#: src/control_center/search_index.zig
+msgid "Refresh rate"
+msgstr "Taxa de atualização"
+
+#: src/control_center/sections/region.zig
+msgid "Region"
+msgstr "Região"
+
+#: src/control_center/panel.zig
+msgid "Region & Language"
+msgstr "Região e idioma"
+
+#: src/control_center/search_index.zig
+msgid "Regional formats"
+msgstr "Formatos regionais"
+
+#: src/control_center/sections/region.zig
+msgid "Regional formats are unavailable for this session."
+msgstr "Os formatos regionais estão indisponíveis nesta sessão."
+
+#: src/control_center/sections/printers.zig
+msgid "Remember loaded paper size"
+msgstr "Lembrar o tamanho do papel carregado"
+
+#: src/control_center/sections/appearance.zig
+msgid "Remove"
+msgstr "Remover"
+
+#: src/files/app_model.zig
+msgid "Remove from Places"
+msgstr "Remover de Locais"
+
+#: src/taskbar/window_menu.zig
+msgid "Remove from dock"
+msgstr "Remover do dock"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer {name} ({queue})? This deletes its queue and settings."
+msgstr "Remover a impressora {name} ({queue})? Sua fila e configurações serão excluídas."
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer…"
+msgstr "Remover impressora…"
+
+#: src/control_center/search_index.zig
+msgid "Remove theme"
+msgstr "Remover tema"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove this printer"
+msgstr "Remover esta impressora"
+
+#: src/files/app_torrents.zig
+msgid "Remove · keep files"
+msgstr "Remover · manter arquivos"
+
+#: src/desktop/app_actions.zig
+msgid "Rename"
+msgstr "Renomear"
+
+#: src/files/app_paint.zig
+msgid "Rename (R)"
+msgstr "Renomear (R)"
+
+#: src/desktop/app_paint.zig
+msgid "Rename — Enter saves, Escape cancels"
+msgstr "Renomear — Enter salva, Escape cancela"
+
+#: src/files/app_dialogs.zig
+msgid "Renamed successfully"
+msgstr "Renomeado com sucesso"
+
+#: src/pdf/app_paint.zig
+msgid "Rendering page {value}..."
+msgstr "Renderizando página {value}..."
+
+#: src/control_center/sections/region.zig
+msgid "Reopen running apps to use the selected language."
+msgstr "Reabra os aplicativos em execução para usar o idioma selecionado."
+
+#: src/control_center/sections/input.zig
+msgid "Repeat delay"
+msgstr "Atraso de repetição"
+
+#: src/control_center/sections/input.zig
+msgid "Repeat rate"
+msgstr "Taxa de repetição"
+
+#: src/files/app_chooser.zig
+msgid "Replace"
+msgstr "Substituir"
+
+#: src/control_center/sections/appearance.zig
+msgid "Replace installed theme"
+msgstr "Substituir o tema instalado"
+
+#: src/control_center/sections/printers.zig
+msgid "Report copied"
+msgstr "Relatório copiado"
+
+#: src/control_center/sections/printers.zig
+msgid "Reports omit document names, user names, USB serials and private printer addresses."
+msgstr "Os relatórios omitem nomes de documentos e usuários, números de série USB e endereços privados de impressoras."
+
+#: src/systemd.zig
+msgid "Request accepted. Status updates when the job completes."
+msgstr "Solicitação aceita. O status será atualizado quando o trabalho for concluído."
+
+#: src/printing/admin.zig
+msgid "Requesting CUPS start; authorization may be required…"
+msgstr "Solicitando inicialização do CUPS; pode exigir autorização…"
+
+#: src/session/lock.zig
+msgid "Requesting power action…"
+msgstr "Solicitando ação de energia…"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved file name"
+msgstr "Nome de arquivo reservado"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved folder name"
+msgstr "Nome de pasta reservado"
+
+#: src/control_center/search_index.zig
+msgid "Reset theme"
+msgstr "Redefinir tema"
+
+#: src/control_center/sections/desktop.zig
+msgid "Reset to Default"
+msgstr "Restaurar padrão"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to default"
+msgstr "Restaurar padrão"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to theme"
+msgstr "Restaurar para o tema"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Down"
+msgstr "Redimensionar divisão para baixo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Left"
+msgstr "Redimensionar divisão para a esquerda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Right"
+msgstr "Redimensionar divisão para a direita"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Up"
+msgstr "Redimensionar divisão para cima"
+
+#: src/control_center/search_index.zig
+msgid "Resolution"
+msgstr "Resolução"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: Unavailable"
+msgstr "Resolução: indisponível"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: {x} × {y} dpi"
+msgstr "Resolução: {x} × {y} dpi"
+
+#: src/printing/ladder.zig
+msgid "Resolve the reported printer problem before resuming the queue."
+msgstr "Resolva o problema informado antes de retomar a fila."
+
+#: src/session/lock.zig
+msgid "Response"
+msgstr "Resposta"
+
+#: src/control_center/sections/services.zig
+msgid "Restart"
+msgstr "Reiniciar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart Shell"
+msgstr "Reiniciar shell"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the computer."
+msgstr "Reiniciar o computador."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the desktop shell."
+msgstr "Reiniciar o shell da área de trabalho."
+
+#: src/session/lock.zig
+msgid "Restart? Activate Restart again to confirm."
+msgstr "Reiniciar? Ative Reiniciar novamente para confirmar."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Layout"
+msgstr "Restaurar organização"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Shortcuts"
+msgstr "Restaurar atalhos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore a saved layout."
+msgstr "Restaurar uma organização salva."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore layout: {name}"
+msgstr "Restaurar organização: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the desktop zoom."
+msgstr "Restaurar a ampliação da área de trabalho."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the focused window's size."
+msgstr "Restaurar o tamanho da janela em foco."
+
+#: src/calculator/model.zig
+msgid "Result is too large"
+msgstr "O resultado é grande demais"
+
+#: src/files/app_torrent_rows.zig
+msgid "Resume"
+msgstr "Retomar"
+
+#: src/control_center/sections/printers.zig
+msgid "Resume printer"
+msgstr "Retomar impressora"
+
+#: src/system_monitor/app.zig
+msgid "Resume updates"
+msgstr "Retomar atualizações"
+
+#: src/control_center/panel.zig
+msgid "Review login accounts and automatic-login settings."
+msgstr "Revise as contas de usuário e as configurações de login automático."
+
+#: src/control_center/sections/printers.zig
+msgid "Review the suggested resolution, then apply it explicitly."
+msgstr "Revise a resolução sugerida e aplique-a explicitamente."
+
+#: src/control_center/sections/appearance.zig
+msgid "Right"
+msgstr "Direita"
+
+#: src/images/app.zig
+msgid "Rotate"
+msgstr "Girar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Rotate the nearest tiled split."
+msgstr "Girar a divisão em mosaico mais próxima."
+
+#: src/control_center/search_index.zig
+msgid "Rotation"
+msgstr "Rotação"
+
+#: src/control_center/sections/appearance.zig
+msgid "Round"
+msgstr "Arredondado"
+
+#: src/system_monitor/app.zig
+msgid "Running"
+msgstr "Em execução"
+
+#: src/control_center/sections/sound.zig
+msgid "SOUND"
+msgstr "SOM"
+
+#: src/control_center/sections/appearance.zig
+msgid "Same as theme"
+msgstr "Igual ao tema"
+
+#: src/images/app.zig
+msgid "Same folder, or enter an absolute path."
+msgstr "Na mesma pasta ou digite um caminho absoluto."
+
+#: src/control_center/sections/region.zig
+msgid "Saturday"
+msgstr "Sábado"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save"
+msgstr "Salvar"
+
+#: src/editor/app.zig
+msgid "Save As"
+msgstr "Salvar como"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save Layout"
+msgstr "Salvar organização"
+
+#: src/images/app.zig
+msgid "Save a PNG copy"
+msgstr "Salvar uma cópia PNG"
+
+#: src/images/app.zig
+msgid "Save as"
+msgstr "Salvar como"
+
+#: src/images/app.zig
+msgid "Save as…"
+msgstr "Salvar como…"
+
+#: src/editor/app.zig
+msgid "Save changes before closing?"
+msgstr "Salvar as alterações antes de fechar?"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save current look as theme"
+msgstr "Salvar a aparência atual como tema"
+
+#: src/control_center/sections/printers.zig
+msgid "Save display name"
+msgstr "Salvar nome de exibição"
+
+#: src/control_center/sections/users.zig
+msgid "Save groups"
+msgstr "Salvar grupos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save layout: {name}"
+msgstr "Salvar organização: {name}"
+
+#: src/control_center/sections/appearance.zig
+msgid "Save look…"
+msgstr "Salvar aparência…"
+
+#: src/control_center/sections/users.zig
+msgid "Save name"
+msgstr "Salvar nome"
+
+#: src/control_center/sections/users.zig
+msgid "Save password"
+msgstr "Salvar senha"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save shortcut"
+msgstr "Salvar atalho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save the window layout."
+msgstr "Salvar a organização das janelas."
+
+#: src/control_center/search_index.zig
+msgid "Save theme"
+msgstr "Salvar tema"
+
+#: src/images/app.zig
+msgid "Save your edits?"
+msgstr "Salvar suas edições?"
+
+#: src/editor/app.zig
+msgid "Saved"
+msgstr "Salvo"
+
+#: src/images/app.zig
+msgid "Saved PNG copy."
+msgstr "Cópia PNG salva."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved for RediWM, but could not update the system folder association."
+msgstr "Salvo no RediWM, mas não foi possível atualizar a associação de pastas do sistema."
+
+#: src/control_center/sections/region.zig
+msgid "Saved for your user’s RediWM session only; system defaults are unchanged."
+msgstr "Salvo somente para a sua sessão do RediWM; os padrões do sistema não são alterados."
+
+#: src/images/app.zig
+msgid "Saved {name}"
+msgstr "{name} salvo"
+
+#: src/control_center/sections/portals.zig
+msgid "Saved. Changes apply next time you sign in."
+msgstr "Salvo. As alterações serão aplicadas no próximo login."
+
+#: src/control_center/welcome.zig
+msgid "Saved. You can change these later in Settings."
+msgstr "Salvo. Você pode alterar depois em Configurações."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved. Your choice applies immediately."
+msgstr "Salvo. Sua escolha é aplicada imediatamente."
+
+#: src/editor/app.zig
+msgid "Saving a large file. Editing resumes when it is written."
+msgstr "Salvando um arquivo grande. A edição será retomada quando terminar."
+
+#: src/images/app.zig
+msgid "Saving image…"
+msgstr "Salvando imagem…"
+
+#: src/editor/app.zig
+msgid "Saving…"
+msgstr "Salvando…"
+
+#: src/files/app_paint.zig
+msgid "Scanning folder..."
+msgstr "Examinando pasta..."
+
+#: src/control_center/sections/appearance.zig
+msgid "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+msgstr "O indicador de captura aparece ao gravar ou compartilhar a tela. É recomendado mantê-lo ativado."
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens tall (1–10)"
+msgstr "Altura em telas (1–10)"
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens wide (1–10)"
+msgstr "Largura em telas (1–10)"
+
+#: src/screenshot/selector.zig
+msgid "Screenshot"
+msgstr "Captura de tela"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Output"
+msgstr "Capturar tela"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Region"
+msgstr "Capturar região"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot failed"
+msgstr "A captura de tela falhou"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved and copied"
+msgstr "Captura salva e copiada"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved; clipboard failed"
+msgstr "Captura salva; falha na área de transferência"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshots"
+msgstr "Capturas de tela"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop above."
+msgstr "Deslocar até a área de trabalho acima."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop below."
+msgstr "Deslocar até a área de trabalho abaixo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the left."
+msgstr "Deslocar até a área de trabalho à esquerda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the right."
+msgstr "Deslocar até a área de trabalho à direita."
+
+#: src/control_center/search_index.zig
+msgid "Scrollbar width"
+msgstr "Largura da barra de rolagem"
+
+#: src/start_menu/panel.zig
+msgid "Search applications…"
+msgstr "Buscar aplicativos…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Search devices…"
+msgstr "Buscar dispositivos…"
+
+#: src/system_monitor/app.zig
+msgid "Search name, PID or user"
+msgstr "Buscar nome, PID ou usuário"
+
+#: src/control_center/sections/services.zig
+msgid "Search services…"
+msgstr "Buscar serviços…"
+
+#: src/control_center/panel.zig
+msgid "Search settings"
+msgstr "Buscar configurações"
+
+#: src/control_center/search.zig
+msgid "Search settings…"
+msgstr "Buscar configurações…"
+
+#: src/files/app_paint.zig
+msgid "Search this folder"
+msgstr "Buscar nesta pasta"
+
+#: src/files/open_with.zig
+msgid "Search: {query}"
+msgstr "Busca: {query}"
+
+#: src/control_center/sections/network.zig
+msgid "Searching for networks…"
+msgstr "Buscando redes…"
+
+#: src/network/manager.zig
+msgid "Secured"
+msgstr "Protegida"
+
+#: src/control_center/sections/network.zig
+msgid "Security"
+msgstr "Segurança"
+
+#: src/control_center/sections/desktop.zig
+msgid "See your position while navigating. Drag the highlighted view to pan."
+msgstr "Veja sua posição ao navegar. Arraste a vista destacada para deslocar."
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 1"
+msgstr "Semear: proporção 1"
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 2"
+msgstr "Semear: proporção 2"
+
+#: src/files/app_torrents.zig
+msgid "Seed: stop at finish"
+msgstr "Semear: parar ao concluir"
+
+#: src/files/app_torrent_rows.zig
+msgid "Seeding"
+msgstr "Semeando"
+
+#: src/files/app_chooser.zig
+msgid "Select"
+msgstr "Selecionar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Select a device"
+msgstr "Selecione um dispositivo"
+
+#: src/system_monitor/app.zig
+msgid "Select a process first"
+msgstr "Selecione um processo primeiro"
+
+#: src/printing/ladder.zig
+msgid "Select an existing queue or add the printer again."
+msgstr "Selecione uma fila existente ou adicione a impressora novamente."
+
+#: src/control_center/sections/printers.zig
+msgid "Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."
+msgstr "Escolha uma conexão USB instalada entre as detectadas ou digite um endereço de rede. Isso altera a conexão da fila selecionada."
+
+#: src/files/app_dialogs.zig
+msgid "Select one item to view its properties"
+msgstr "Selecione um item para ver suas propriedades"
+
+#: src/files/open_with.zig
+msgid "Selected files"
+msgstr "Arquivos selecionados"
+
+#: src/delete_dialog.zig
+msgid "Selected items"
+msgstr "Itens selecionados"
+
+#: src/system_monitor/app.zig
+msgid "Selected process"
+msgstr "Processo selecionado"
+
+#: src/control_center/sections/services.zig
+msgid "Service"
+msgstr "Serviço"
+
+#: src/control_center/sections/services.zig
+msgid "Service changes are unlocked for this session."
+msgstr "As alterações de serviços estão desbloqueadas nesta sessão."
+
+#: src/control_center/panel.zig
+msgid "Services"
+msgstr "Serviços"
+
+#: src/control_center/sections/services.zig
+msgid "Services taking at least 1 second to activate."
+msgstr "Serviços que levam pelo menos 1 segundo para ativar."
+
+#: src/control_center/sections/users.zig
+msgid "Session"
+msgstr "Sessão"
+
+#: src/session/lock.zig
+msgid "Session ›"
+msgstr "Sessão ›"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Set Depth"
+msgstr "Definir profundidade"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as my default"
+msgstr "Definir como minha padrão"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as system default"
+msgstr "Definir como padrão do sistema"
+
+#: src/start_menu/panel.zig
+msgid "Settings"
+msgstr "Configurações"
+
+#: src/control_center/sections/appearance.zig
+msgid "Shadow"
+msgstr "Sombra"
+
+#: src/share_picker/client.zig
+msgid "Share screen"
+msgstr "Compartilhar tela"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sharp"
+msgstr "Nítido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shortcut already in use. Try another."
+msgstr "O atalho já está em uso. Tente outro."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Show Paired Devices"
+msgstr "Mostrar dispositivos pareados"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show Trash"
+msgstr "Mostrar lixeira"
+
+#: src/control_center/sections/users.zig
+msgid "Show all groups"
+msgstr "Mostrar todos os grupos"
+
+#: src/files/app_menu.zig
+msgid "Show changed files"
+msgstr "Mostrar arquivos alterados"
+
+#: src/control_center/sections/users.zig
+msgid "Show curated"
+msgstr "Mostrar seleção recomendada"
+
+#: src/control_center/sections/region.zig
+msgid "Show day"
+msgstr "Mostrar dia"
+
+#: src/files/app_menu.zig
+msgid "Show full paths"
+msgstr "Mostrar caminhos completos"
+
+#: src/files/app_menu.zig
+msgid "Show hidden files"
+msgstr "Mostrar arquivos ocultos"
+
+#: src/files/app_torrents.zig
+msgid "Show in folder"
+msgstr "Mostrar na pasta"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show launch splash"
+msgstr "Mostrar tela de abertura"
+
+#: src/control_center/sections/desktop.zig
+msgid "Show mini map"
+msgstr "Mostrar minimapa"
+
+#: src/control_center/sections/printers.zig
+msgid "Show more"
+msgstr "Mostrar mais"
+
+#: src/control_center/sections/region.zig
+msgid "Show seconds"
+msgstr "Mostrar segundos"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shut down the computer."
+msgstr "Desligar o computador."
+
+#: src/control_center/sections/printers.zig
+msgid "Sides: {sides}"
+msgstr "Faces: {sides}"
+
+#: src/session/lock.zig
+msgid "Sign-in cancelled"
+msgstr "Login cancelado"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed"
+msgstr "Falha no login"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed: {reason}"
+msgstr "Falha no login: {reason}"
+
+#: src/control_center/sections/network.zig
+msgid "Sign-in required"
+msgstr "Login necessário"
+
+#: src/session/greeter.zig
+msgid "Signing in…"
+msgstr "Entrando…"
+
+#: src/control_center/panel.zig
+msgid "Single-click file and folder icons"
+msgstr "Um clique nos ícones de arquivos e pastas"
+
+#: src/files/app_layout.zig
+msgid "Size"
+msgstr "Tamanho"
+
+#: src/control_center/sections/appearance.zig
+msgid "Size to screen"
+msgstr "Ajustar à tela"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sized to fit your screen · move a slider to set your own"
+msgstr "Ajustado à sua tela · mova um controle deslizante para personalizar"
+
+#: src/files/app_paint.zig
+msgid "Skip (S)"
+msgstr "Ignorar (S)"
+
+#: src/control_center/sections/display.zig
+msgid "Sleep"
+msgstr "Suspender"
+
+#: src/system_monitor/app.zig
+msgid "Sleeping"
+msgstr "Dormindo"
+
+#: src/control_center/sections/appearance.zig
+msgid "Slightly darken and mute windows that are not focused"
+msgstr "Escurecer e atenuar levemente as janelas sem foco"
+
+#: src/control_center/sections/services.zig
+msgid "Slow"
+msgstr "Lento"
+
+#: src/control_center/sections/appearance.zig
+msgid "Small"
+msgstr "Pequeno"
+
+#: src/files/app_menu.zig
+msgid "Smallest first"
+msgstr "Menor primeiro"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a bottom quarter, or restore it."
+msgstr "Ajustar a janela em foco a um quarto inferior ou restaurá-la."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a top quarter, or maximize it."
+msgstr "Ajustar a janela em foco a um quarto superior ou maximizá-la."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the left half."
+msgstr "Ajustar a janela em foco à metade esquerda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the right half."
+msgstr "Ajustar a janela em foco à metade direita."
+
+#: src/control_center/search_index.zig
+msgid "Snapped window gap"
+msgstr "Espaçamento das janelas ajustadas"
+
+#: src/files/properties.zig
+msgid "Socket"
+msgstr "Socket"
+
+#: src/control_center/sections/appearance.zig
+msgid "Soft"
+msgstr "Suave"
+
+#: src/control_center/sections/users.zig
+msgid "Some groups cannot be safely shown; group changes are disabled."
+msgstr "Alguns grupos não podem ser exibidos com segurança; suas alterações estão desativadas."
+
+#: src/systemd.zig
+msgid "Some startup times are unavailable."
+msgstr "Alguns tempos de inicialização estão indisponíveis."
+
+#: src/images/app.zig
+msgid "Space / Esc to close · Arrow keys to browse"
+msgstr "Espaço / Esc para fechar · Setas para navegar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Spawn"
+msgstr "Iniciar processo"
+
+#: src/printing/options.zig
+msgid "Speed"
+msgstr "Velocidade"
+
+#: src/control_center/sections/users.zig
+msgid "Standard"
+msgstr "Padrão"
+
+#: src/control_center/sections/services.zig
+msgid "Start"
+msgstr "Iniciar"
+
+#: src/control_center/sections/printers.zig
+msgid "Start CUPS"
+msgstr "Iniciar CUPS"
+
+#: src/control_center/search_index.zig
+msgid "Start button gap"
+msgstr "Espaçamento do botão Iniciar"
+
+#: src/control_center/search_index.zig
+msgid "Start button icon size"
+msgstr "Tamanho do ícone Iniciar"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start button logo"
+msgstr "Logotipo do botão Iniciar"
+
+#: src/files/app_torrents.zig
+msgid "Start download"
+msgstr "Iniciar download"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start menu"
+msgstr "Menu Iniciar"
+
+#: src/control_center/search_index.zig
+msgid "Start menu height"
+msgstr "Altura do menu Iniciar"
+
+#: src/control_center/search_index.zig
+msgid "Start menu logo"
+msgstr "Logotipo do menu Iniciar"
+
+#: src/control_center/search_index.zig
+msgid "Start menu size"
+msgstr "Tamanho do menu Iniciar"
+
+#: src/control_center/sections/services.zig
+msgid "Start mode"
+msgstr "Modo de inicialização"
+
+#: src/control_center/welcome.zig
+msgid "Start using RediWM"
+msgstr "Começar a usar o RediWM"
+
+#: src/session/greeter.zig
+msgid "Starting session…"
+msgstr "Iniciando sessão…"
+
+#: src/systemd.zig
+msgid "Startup setting saved. Running status is unchanged."
+msgstr "Configuração de inicialização salva. O estado atual não muda."
+
+#: src/control_center/sections/services.zig
+msgid "Startup settings apply at boot. Deferred is coming later."
+msgstr "As configurações de inicialização são aplicadas no boot. O início adiado chegará depois."
+
+#: src/control_center/sections/services.zig
+msgid "Startup time"
+msgstr "Tempo de inicialização"
+
+#: src/system_monitor/app.zig
+msgid "State"
+msgstr "Estado"
+
+#: src/printing/cups.zig
+msgid "State unavailable"
+msgstr "Estado indisponível"
+
+#: src/control_center/sections/network.zig
+msgid "Status"
+msgstr "Status"
+
+#: src/control_center/sections/services.zig
+msgid "Stop"
+msgstr "Parar"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Stop Searching"
+msgstr "Parar busca"
+
+#: src/control_center/sections/printers.zig
+msgid "Stop accepting jobs"
+msgstr "Parar de aceitar trabalhos"
+
+#: src/files/app_torrents.zig
+msgid "Stop seeding"
+msgstr "Parar de semear"
+
+#: src/printing/cups.zig
+msgid "Stopped"
+msgstr "Parado"
+
+#: src/control_center/sections/appearance.zig
+msgid "Strong"
+msgstr "Forte"
+
+#: src/control_center/sections/printers.zig
+msgid "Suggested supported resolution: {x} × {y} dpi"
+msgstr "Resolução compatível sugerida: {x} × {y} dpi"
+
+#: src/control_center/sections/region.zig
+msgid "Sunday"
+msgstr "Domingo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."
+msgstr "Super+Q abre o terminal; Super+M abre Energia. As setas mudam o foco; os números mudam o espaço de trabalho."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend"
+msgstr "Suspender"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend Auto"
+msgstr "Suspender automaticamente"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Down"
+msgstr "Trocar para baixo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Left"
+msgstr "Trocar para a esquerda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Right"
+msgstr "Trocar para a direita"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Up"
+msgstr "Trocar para cima"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile down."
+msgstr "Trocar a janela em mosaico em foco para baixo."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile left."
+msgstr "Trocar a janela em mosaico em foco para a esquerda."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile right."
+msgstr "Trocar a janela em mosaico em foco para a direita."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile up."
+msgstr "Trocar a janela em mosaico em foco para cima."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next power profile."
+msgstr "Alternar para o próximo perfil de energia."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next window."
+msgstr "Alternar para a próxima janela."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the previous window."
+msgstr "Alternar para a janela anterior."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to workspace {n}."
+msgstr "Alternar para o espaço de trabalho {n}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch workspace."
+msgstr "Alternar espaço de trabalho."
+
+#: src/files/app_dialogs.zig
+msgid "Switched branch"
+msgstr "Ramo alterado"
+
+#: src/files/app_dialogs.zig
+msgid "Switched to {name}"
+msgstr "Alterado para {name}"
+
+#: src/files/properties.zig
+msgid "Symbolic link"
+msgstr "Link simbólico"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "System"
+msgstr "Sistema"
+
+#: src/system_monitor/app.zig
+msgid "System Monitor"
+msgstr "Monitor do sistema"
+
+#: src/printing/admin.zig
+msgid "System bus connection lost. Reopen Printers to reconnect."
+msgstr "A conexão com o barramento do sistema foi perdida. Reabra Impressoras para reconectar."
+
+#: src/printing/admin.zig
+msgid "System bus disconnected during printer administration."
+msgstr "O barramento do sistema foi desconectado durante a administração de impressoras."
+
+#: src/control_center/sections/appearance.zig
+msgid "System default"
+msgstr "Padrão do sistema"
+
+#: src/control_center/sections/services.zig
+msgid "Systemd is unavailable."
+msgstr "O systemd está indisponível."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Take shortcuts back from a virtual machine or remote desktop."
+msgstr "Recuperar os atalhos de uma máquina virtual ou área de trabalho remota."
+
+#: src/control_center/sections/users.zig
+msgid "Takes effect at next boot. The keyring will not unlock automatically."
+msgstr "Entra em vigor na próxima inicialização. O chaveiro não será desbloqueado automaticamente."
+
+#: src/control_center/search_index.zig
+msgid "Tap to click"
+msgstr "Toque para clicar"
+
+#: src/files/app_dialogs.zig
+msgid "Target name already exists"
+msgstr "O nome de destino já existe"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar"
+msgstr "Barra de tarefas"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar clock. The date uses your regional format."
+msgstr "Relógio da barra de tarefas. A data usa seu formato regional."
+
+#: src/control_center/search_index.zig
+msgid "Taskbar corner radius"
+msgstr "Raio dos cantos da barra de tarefas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar edge gap"
+msgstr "Espaçamento da borda da barra de tarefas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar gap from edge"
+msgstr "Espaçamento entre a barra de tarefas e a borda"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar items"
+msgstr "Itens da barra de tarefas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar length"
+msgstr "Comprimento da barra de tarefas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar position"
+msgstr "Posição da barra de tarefas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar sections"
+msgstr "Seções da barra de tarefas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar size"
+msgstr "Tamanho da barra de tarefas"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar theme"
+msgstr "Tema da barra de tarefas"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar, calendar, lock screen and new apps."
+msgstr "Barra de tarefas, calendário, tela de bloqueio e novos aplicativos."
+
+#: src/control_center/sections/appearance.zig
+msgid "Temporarily show the selected window at full size; keep desktop zoom."
+msgstr "Mostrar temporariamente a janela selecionada em tamanho completo; manter a ampliação da área de trabalho."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Terminal"
+msgstr "Terminal"
+
+#: src/files/app_terminal.zig
+msgid "Terminal helper is unavailable"
+msgstr "O auxiliar do terminal está indisponível"
+
+#: src/control_center/search_index.zig
+msgid "Terminal opacity"
+msgstr "Opacidade do terminal"
+
+#: src/control_center/sections/appearance.zig
+msgid "Terminal opacity (new windows)"
+msgstr "Opacidade do terminal (novas janelas)"
+
+#: src/files/app_terminal.zig
+msgid "Terminal paste exceeds the available input queue"
+msgstr "O texto colado excede a fila de entrada disponível do terminal"
+
+#: src/system_monitor/app.zig
+msgid "Termination requested"
+msgstr "Encerramento solicitado"
+
+#: src/control_center/sections/printers.zig
+msgid "Test without the driver…"
+msgstr "Testar sem o driver…"
+
+#: src/editor/app.zig
+msgid "Text file"
+msgstr "Arquivo de texto"
+
+#: src/editor/app.zig
+msgid "Text files are limited to 4 GiB."
+msgstr "Os arquivos de texto são limitados a 4 GiB."
+
+#: src/editor/app.zig
+msgid "Text not found"
+msgstr "Texto não encontrado"
+
+#: src/images/app.zig
+msgid "That file already exists. Choose another name."
+msgstr "Esse arquivo já existe. Escolha outro nome."
+
+#: src/editor/app.zig
+msgid "That file is open in another tab. Choose a different name."
+msgstr "Esse arquivo está aberto em outra aba. Escolha outro nome."
+
+#: src/files/appimage.zig
+msgid "The AppImage contains more than one application launcher"
+msgstr "O AppImage contém mais de um lançador de aplicativos"
+
+#: src/files/appimage.zig
+msgid "The AppImage has no usable application launcher"
+msgstr "O AppImage não contém um lançador utilizável"
+
+#: src/printing/ladder.zig
+msgid "The CUPS USB backend uses libusb; a usblp node is not required."
+msgstr "O serviço USB do CUPS usa libusb; um nó usblp não é necessário."
+
+#: src/printing/cups.zig
+msgid "The CUPS client configuration could not be read or is invalid."
+msgstr "Não foi possível ler a configuração do cliente CUPS ou ela é inválida."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "The RediWM block in gtk.css is incomplete. Repair it before applying colors."
+msgstr "O bloco do RediWM em gtk.css está incompleto. Corrija-o antes de aplicar as cores."
+
+#: src/printing/ladder.zig
+msgid "The available queue settings match the supplied media or resolution expectations."
+msgstr "As configurações disponíveis da fila correspondem ao papel ou à resolução esperados."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen stays on."
+msgstr "A tela integrada permanece ligada."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen turns off while another display is connected."
+msgstr "A tela integrada desliga enquanto outra tela estiver conectada."
+
+#: src/printing/ladder.zig
+msgid "The character-device path used by this queue is missing."
+msgstr "O caminho do dispositivo de caracteres usado por esta fila está ausente."
+
+#: src/control_center/sections/printers.zig
+msgid "The current printer resolution is unavailable."
+msgstr "A resolução atual da impressora está indisponível."
+
+#: src/files/main.zig
+msgid "The destination folder is unavailable"
+msgstr "A pasta de destino está indisponível"
+
+#: src/printing/ladder.zig
+msgid "The device address matches; successful communication has not been confirmed."
+msgstr "O endereço do dispositivo corresponde; a comunicação bem-sucedida não foi confirmada."
+
+#: src/pdf/main.zig
+msgid "The document could not be printed."
+msgstr "Não foi possível imprimir o documento."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver did not report the requested value. Review its settings before printing."
+msgstr "O driver não informou o valor solicitado. Revise suas configurações antes de imprimir."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver reports label media."
+msgstr "O driver informa papel de etiquetas."
+
+#: src/files/main.zig
+msgid "The drop timed out"
+msgstr "O tempo limite para soltar foi excedido"
+
+#: src/files/main.zig
+msgid "The dropped list failed or exceeded 1 MiB"
+msgstr "A lista de itens soltos falhou ou excedeu 1 MiB"
+
+#: src/files/app_terminal.zig
+msgid "The dropped paths are invalid or too long"
+msgstr "Os caminhos dos itens soltos são inválidos ou longos demais"
+
+#: src/images/app.zig
+msgid "The file changed. Please try again."
+msgstr "O arquivo foi alterado. Tente novamente."
+
+#: src/printing/ladder.zig
+msgid "The file type of the queue's device-node path could not be read."
+msgstr "Não foi possível ler o tipo de arquivo do nó de dispositivo da fila."
+
+#: src/images/app.zig
+msgid "The filename is too long."
+msgstr "O nome do arquivo é longo demais."
+
+#: src/printing/ladder.zig
+msgid "The last job has not completed."
+msgstr "O último trabalho não foi concluído."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a backend connection problem."
+msgstr "O último trabalho informa um problema de conexão do serviço."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a document or filter failure."
+msgstr "O último trabalho informa uma falha de documento ou filtro."
+
+#: src/printing/ladder.zig
+msgid "The last job was aborted or stopped."
+msgstr "O último trabalho foi abortado ou parado."
+
+#: src/printing/ladder.zig
+msgid "The last job was canceled."
+msgstr "O último trabalho foi cancelado."
+
+#: src/printing/ladder.zig
+msgid "The matching USB device has no printer-class interface."
+msgstr "O dispositivo USB correspondente não tem uma interface da classe impressora."
+
+#: src/printing/ladder.zig
+msgid "The matching USB printer was not found."
+msgstr "A impressora USB correspondente não foi encontrada."
+
+#: src/printing/ladder.zig
+msgid "The matching device-node file type could not be read."
+msgstr "Não foi possível ler o tipo de arquivo do nó correspondente."
+
+#: src/printing/ladder.zig
+msgid "The network printer did not answer."
+msgstr "A impressora de rede não respondeu."
+
+#: src/printing/ladder.zig
+msgid "The printer answered an IPP request."
+msgstr "A impressora respondeu a uma solicitação IPP."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer change could not be requested."
+msgstr "Não foi possível solicitar a alteração da impressora."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer no longer exists. Refresh before retrying."
+msgstr "A impressora não existe mais. Atualize antes de tentar novamente."
+
+#: src/printing/cups.zig
+msgid "The printer or job no longer exists. Refresh the list."
+msgstr "A impressora ou o trabalho não existe mais. Atualize a lista."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is not accepting new jobs."
+msgstr "A fila de impressão não aceita novos trabalhos."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is stopped."
+msgstr "A fila de impressão está parada."
+
+#: src/printing/cups.zig
+msgid "The queue changed, but personal preferences could not be moved. Check your default printer."
+msgstr "A fila foi alterada, mas não foi possível mover as preferências pessoais. Verifique sua impressora padrão."
+
+#: src/printing/ladder.zig
+msgid "The queue could not be checked without a CUPS response."
+msgstr "Não foi possível verificar a fila sem uma resposta do CUPS."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, but its state or acceptance of jobs is unknown."
+msgstr "A fila existe, mas seu estado ou aceitação de trabalhos é desconhecido."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, is enabled, and accepts jobs."
+msgstr "A fila existe, está ativada e aceita trabalhos."
+
+#: src/control_center/sections/printers.zig
+msgid "The queue identifier change could not be verified. Review the printer list before retrying."
+msgstr "Não foi possível verificar a alteração do identificador. Revise a lista de impressoras antes de tentar novamente."
+
+#: src/printing/ladder.zig
+msgid "The queue resolution differs from the expected resolution."
+msgstr "A resolução da fila difere da esperada."
+
+#: src/printing/ladder.zig
+msgid "The queue's character device exists; backend access has not been tested."
+msgstr "O dispositivo de caracteres da fila existe; o acesso do serviço não foi testado."
+
+#: src/printing/ladder.zig
+msgid "The queue's default media differs from the expected media."
+msgstr "O papel padrão da fila difere do esperado."
+
+#: src/printing/ladder.zig
+msgid "The queue's device address does not match the selected printer."
+msgstr "O endereço do dispositivo da fila não corresponde à impressora selecionada."
+
+#: src/printing/ladder.zig
+msgid "The queue's device-node path is a regular file or another wrong file type."
+msgstr "O caminho do nó da fila é um arquivo comum ou de outro tipo incorreto."
+
+#: src/control_center/sections/printers.zig
+msgid "The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."
+msgstr "A amostra sem processamento foi impressa, mas o teste com driver não: investigue o driver, os filtros, o papel e a resolução."
+
+#: src/printing/ladder.zig
+msgid "The selected queue was not found."
+msgstr "A fila selecionada não foi encontrada."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable."
+msgstr "O gerenciador de serviços do sistema está indisponível."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable; start CUPS using your distribution's service tools."
+msgstr "O gerenciador de serviços está indisponível; inicie o CUPS com as ferramentas da sua distribuição."
+
+#: src/control_center/search_index.zig
+msgid "Theme"
+msgstr "Tema"
+
+#: src/files/worker.zig
+msgid "Theme installed. Choose it in Settings → Appearance."
+msgstr "Tema instalado. Escolha-o em Configurações → Aparência."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed."
+msgstr "A operação do tema falhou."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed: {reason}"
+msgstr "A operação do tema falhou: {reason}"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme packs"
+msgstr "Pacotes de temas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Themes & colours"
+msgstr "Temas e cores"
+
+#: src/printing/cups.zig
+msgid "This CUPS server does not support the requested operation."
+msgstr "Este servidor CUPS não suporta a operação solicitada."
+
+#: src/printing/ladder.zig
+msgid "This backend needs a character device, but no matching node was found."
+msgstr "Este serviço precisa de um dispositivo de caracteres, mas nenhum nó correspondente foi encontrado."
+
+#: src/delete_dialog.zig
+msgid "This cannot be undone."
+msgstr "Esta ação não pode ser desfeita."
+
+#: src/control_center/sections/printers.zig
+msgid "This capability has no selectable queue default in the current driver."
+msgstr "Este recurso não tem um padrão de fila selecionável no driver atual."
+
+#: src/printing/ladder.zig
+msgid "This connection has no direct presence check."
+msgstr "Esta conexão não tem uma verificação direta de presença."
+
+#: src/control_center/sections/printers.zig
+msgid "This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."
+msgstr "Este driver não permite configurar a resolução sugerida na fila. Revise suas opções de qualidade ou driver."
+
+#: src/editor/app.zig
+msgid "This file contains binary data and cannot be edited as text."
+msgstr "Este arquivo contém dados binários e não pode ser editado como texto."
+
+#: src/editor/app.zig
+msgid "This file has multiple hard links. Use Save As to create a separate copy."
+msgstr "Este arquivo tem vários links físicos. Use Salvar como para criar uma cópia separada."
+
+#: src/editor/app.zig
+msgid "This file is not valid UTF-8 text."
+msgstr "Este arquivo não é texto UTF-8 válido."
+
+#: src/files/app_paint.zig
+msgid "This folder is empty"
+msgstr "Esta pasta está vazia"
+
+#: src/images/app.zig
+msgid "This image has unsaved changes."
+msgstr "Esta imagem tem alterações não salvas."
+
+#: src/control_center/sections/printers.zig
+msgid "This is a label printer"
+msgstr "Esta é uma impressora de etiquetas"
+
+#: src/control_center/sections/display.zig
+msgid "This output does not advertise editable display modes."
+msgstr "Esta saída não oferece modos de tela editáveis."
+
+#: src/printing/cups.zig
+msgid "This print server requires an unsupported encrypted or authenticated connection."
+msgstr "Este servidor de impressão exige uma conexão criptografada ou autenticada não suportada."
+
+#: src/printing/admin.zig
+msgid "This printer belongs to a CUPS class. Manage its class membership before renaming it here."
+msgstr "Esta impressora pertence a uma classe CUPS. Gerencie sua participação na classe antes de renomeá-la aqui."
+
+#: src/control_center/sections/printers.zig
+msgid "This range has no selectable queue setting in the current driver."
+msgstr "Este intervalo não tem uma configuração de fila selecionável no driver atual."
+
+#: src/files/git.zig
+msgid "This repository runs its own programs; switch branches in a terminal"
+msgstr "Este repositório executa seus próprios programas; troque de ramo em um terminal"
+
+#: src/network/manager.zig
+msgid "This security type needs a network configuration tool."
+msgstr "Este tipo de segurança precisa de uma ferramenta de configuração de rede."
+
+#: src/control_center/panel.zig
+msgid "This setting is unavailable on this device or in the current mode."
+msgstr "Esta configuração está indisponível neste dispositivo ou no modo atual."
+
+#: src/files/app_torrents.zig
+msgid "This transfer is no longer available."
+msgstr "Esta transferência não está mais disponível."
+
+#: src/control_center/sections/region.zig
+msgid "Thursday"
+msgstr "Quinta-feira"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Down"
+msgstr "Ajustar abaixo"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Left"
+msgstr "Ajustar à esquerda"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Right"
+msgstr "Ajustar à direita"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Up"
+msgstr "Ajustar acima"
+
+#: src/control_center/welcome.zig
+msgid "Tiling"
+msgstr "Mosaico"
+
+#: src/control_center/sections/region.zig
+msgid "Time"
+msgstr "Hora"
+
+#: src/control_center/sections/region.zig
+msgid "Time & Date"
+msgstr "Data e hora"
+
+#: src/control_center/sections/region.zig
+msgid "Time zone"
+msgstr "Fuso horário"
+
+#: src/control_center/search_index.zig
+msgid "Titlebar height"
+msgstr "Altura da barra de título"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Floating"
+msgstr "Alternar flutuante"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Fullscreen"
+msgstr "Alternar tela cheia"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Launcher"
+msgstr "Alternar lançador"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Maximize"
+msgstr "Alternar maximização"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Power Menu"
+msgstr "Alternar menu de energia"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Split"
+msgstr "Alternar divisão"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Workspace Tiling"
+msgstr "Alternar mosaico do espaço de trabalho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle automatic tiling for the current workspace."
+msgstr "Alternar o mosaico automático do espaço de trabalho atual."
+
+#: src/pdf/app_paint.zig
+msgid "Toggle sidebar"
+msgstr "Alternar barra lateral"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle the focused window between floating and automatic tiling."
+msgstr "Alternar a janela em foco entre flutuante e mosaico automático."
+
+#: src/control_center/sections/appearance.zig
+msgid "Top"
+msgstr "Superior"
+
+#: src/files/app_torrents.zig
+msgid "Torrent file or magnet link"
+msgstr "Arquivo torrent ou link magnet"
+
+#: src/control_center/search_index.zig
+msgid "Touchpad speed"
+msgstr "Velocidade do touchpad"
+
+#: src/files/app_torrents.zig
+msgid "Transfer"
+msgstr "Transferir"
+
+#: src/files/torrents.zig
+msgid "Transfer request could not be sent. Please retry."
+msgstr "Não foi possível enviar a solicitação de transferência. Tente novamente."
+
+#: src/files/ops.zig
+msgid "Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Transferidos: {completed}. Ignorados: {skipped}. Com falha: {failed}. Restantes: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Transferring {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Transferindo {current}/{total}: {name}... (Esc para cancelar)"
+
+#: src/files/app_paint.zig
+msgid "Transferring..."
+msgstr "Transferindo..."
+
+#: src/files/app.zig
+msgid "Transfers"
+msgstr "Transferências"
+
+#: src/files/torrents.zig
+msgid "Transfers disconnected. Reopen Transfers to reconnect."
+msgstr "Transferências foi desconectado. Reabra para reconectar."
+
+#: src/files/torrents.zig
+msgid "Transfers is disconnected. Reopen Transfers to reconnect."
+msgstr "Transferências está desconectado. Reabra para reconectar."
+
+#: src/files/app_torrents.zig
+msgid "Transfers needs attention"
+msgstr "Transferências precisa de atenção"
+
+#: src/control_center/sections/display.zig
+msgid "Transform"
+msgstr "Transformar"
+
+#: src/desktop/watcher.zig
+msgid "Trash"
+msgstr "Lixeira"
+
+#: src/files/app_fileops.zig
+msgid "Trash emptied"
+msgstr "Lixeira esvaziada"
+
+#: src/images/app.zig
+msgid "Trash is unavailable: install gio to use it."
+msgstr "Lixeira indisponível: instale o gio para usá-la."
+
+#: src/files/app_fileops.zig
+msgid "Trash unavailable (gio not installed)"
+msgstr "Lixeira indisponível (gio não instalado)"
+
+#: src/control_center/search_index.zig
+msgid "Treble"
+msgstr "Agudos"
+
+#: src/control_center/sections/printers.zig
+msgid "Troubleshooting"
+msgstr "Solução de problemas"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Trusted Device"
+msgstr "Dispositivo confiável"
+
+#: src/control_center/search.zig
+msgid "Try a setting name, such as volume, wallpaper or scroll."
+msgstr "Tente o nome de uma configuração, como volume, papel de parede ou rolagem."
+
+#: src/control_center/sections/printers.zig
+msgid "Try one language sample…"
+msgstr "Testar uma amostra de idioma…"
+
+#: src/control_center/sections/region.zig
+msgid "Tuesday"
+msgstr "Terça-feira"
+
+#: src/control_center/sections/display.zig
+msgid "Turn off screen"
+msgstr "Desligar tela"
+
+#: src/control_center/sections/network.zig
+msgid "Turned off"
+msgstr "Desligado"
+
+#: src/printing/options.zig
+msgid "Two-sided printing"
+msgstr "Impressão frente e verso"
+
+#: src/printing/options.zig
+msgid "Two-sided, long edge"
+msgstr "Frente e verso, borda longa"
+
+#: src/printing/options.zig
+msgid "Two-sided, short edge"
+msgstr "Frente e verso, borda curta"
+
+#: src/files/app_layout.zig
+msgid "Type"
+msgstr "Tipo"
+
+#: src/desktop/app_paint.zig
+msgid "Type to search applications — Enter chooses"
+msgstr "Digite para buscar aplicativos — Enter escolhe"
+
+#: src/start_menu/panel.zig
+msgid "Type to search…"
+msgstr "Digite para buscar…"
+
+#: src/files/app_menu.zig
+msgid "Type: A to Z"
+msgstr "Tipo: de A a Z"
+
+#: src/files/app_menu.zig
+msgid "Type: Z to A"
+msgstr "Tipo: de Z a A"
+
+#: src/control_center/sections/appearance.zig
+msgid "UI font"
+msgstr "Fonte da interface"
+
+#: src/printing/ladder.zig
+msgid "USB presence or queue-to-device identity could not be established."
+msgstr "Não foi possível estabelecer a presença USB nem a correspondência entre fila e dispositivo."
+
+#: src/files/app_dialogs.zig
+msgid "Unable to prepare deletion"
+msgstr "Não foi possível preparar a exclusão"
+
+#: src/session/lock.zig
+msgid "Unable to unlock. Try again."
+msgstr "Não foi possível desbloquear. Tente novamente."
+
+#: src/battery_popup.zig
+msgid "Unavailable"
+msgstr "Indisponível"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Unavailable: {name}"
+msgstr "Indisponível: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo"
+msgstr "Desfazer"
+
+#: src/images/app.zig
+msgid "Undo edits"
+msgstr "Desfazer edições"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo the last layout change."
+msgstr "Desfazer a última alteração de organização."
+
+#: src/control_center/sections/printers.zig
+msgid "Unknown"
+msgstr "Desconhecido"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Unknown key"
+msgstr "Tecla desconhecida"
+
+#: src/control_center/sections/services.zig
+msgid "Unlock"
+msgstr "Desbloquear"
+
+#: src/control_center/sections/users.zig
+msgid "Unlock to make account changes."
+msgstr "Desbloqueie para alterar contas."
+
+#: src/control_center/sections/services.zig
+msgid "Unlock to make service changes."
+msgstr "Desbloqueie para alterar serviços."
+
+#: src/network/manager.zig
+msgid "Unmanaged"
+msgstr "Não gerenciado"
+
+#: src/files/app_model.zig
+msgid "Unpin"
+msgstr "Desafixar"
+
+#: src/start_menu/panel.zig
+msgid "Unpin an application first (five pins maximum)."
+msgstr "Desafixe um aplicativo primeiro (máximo de cinco)."
+
+#: src/start_menu/panel.zig
+msgid "Unpin application"
+msgstr "Desafixar aplicativo"
+
+#: src/taskbar/window_menu.zig
+msgid "Unpin from dock"
+msgstr "Desafixar do dock"
+
+#: src/images/app.zig
+msgid "Unsaved edits will be discarded."
+msgstr "As edições não salvas serão descartadas."
+
+#: src/images/app.zig
+msgid "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo"
+msgstr "Edições não salvas · Ctrl+S: salvar · Ctrl+Z: desfazer"
+
+#: src/system_monitor/app.zig
+msgid "Unsaved work will be lost."
+msgstr "O trabalho não salvo será perdido."
+
+#: src/images/app.zig
+msgid "Unsupported image, missing decoder, or file unavailable"
+msgstr "Imagem não suportada, decodificador ausente ou arquivo indisponível"
+
+#: src/editor/app.zig
+msgid "Untitled"
+msgstr "Sem título"
+
+#: src/files/app_torrents.zig
+msgid "Up"
+msgstr "Subir"
+
+#: src/network/manager.zig
+msgid "Updating Wi-Fi…"
+msgstr "Atualizando Wi-Fi…"
+
+#: src/files/app_layout.zig
+msgid "Upload"
+msgstr "Enviar"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 1 MiB/s"
+msgstr "Envio: 1 MiB/s"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 128 KiB/s"
+msgstr "Envio: 128 KiB/s"
+
+#: src/power_menu.zig
+msgid "Uptime unavailable"
+msgstr "Tempo de atividade indisponível"
+
+#: src/power_menu.zig
+msgid "Uptime {hours}h {minutes}m"
+msgstr "Tempo de atividade: {hours}h {minutes}min"
+
+#: src/control_center/sections/region.zig
+msgid "Use 24-hour time"
+msgstr "Usar formato de 24 horas"
+
+#: src/network/manager.zig
+msgid "Use 8–63 characters or a 64-digit hex key."
+msgstr "Use de 8 a 63 caracteres ou uma chave hexadecimal de 64 dígitos."
+
+#: src/images/app.zig
+msgid "Use a .png filename to save a PNG copy."
+msgstr "Use um nome terminado em .png para salvar uma cópia PNG."
+
+#: src/control_center/folder_picker.zig
+msgid "Use folder"
+msgstr "Usar pasta"
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue identifier."
+msgstr "Use letras, números, pontos, hífens ou sublinhados para o identificador da fila."
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue name."
+msgstr "Use letras, números, pontos, hífens ou sublinhados para o nome da fila."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Use logo"
+msgstr "Usar logotipo"
+
+#: src/control_center/sections/printers.zig
+msgid "Use suggested resolution"
+msgstr "Usar resolução sugerida"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Used for desktop folders, app shortcuts and apps that run in a terminal."
+msgstr "Usado para pastas da área de trabalho, atalhos de aplicativos e aplicativos executados em um terminal."
+
+#: src/control_center/sections/users.zig
+msgid "User"
+msgstr "Usuário"
+
+#: src/control_center/sections/printers.zig
+msgid "Username"
+msgstr "Nome de usuário"
+
+#: src/control_center/panel.zig
+msgid "Users"
+msgstr "Usuários"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Uses the main theme. Apply again after changing it; restart apps to see the colors."
+msgstr "Usa o tema principal. Aplique novamente após alterá-lo; reinicie os aplicativos para ver as cores."
+
+#: src/control_center/sections/desktop.zig
+msgid "Vertical Pan"
+msgstr "Deslocamento vertical"
+
+#: src/files/app.zig
+msgid "Videos"
+msgstr "Vídeos"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "View its connection, battery and device settings."
+msgstr "Veja a conexão, a bateria e as configurações do dispositivo."
+
+#: src/files/app_places.zig
+msgid "Volume"
+msgstr "Volume"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Down"
+msgstr "Diminuir volume"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Mute"
+msgstr "Silenciar volume"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Up"
+msgstr "Aumentar volume"
+
+#: src/control_center/panel.zig
+msgid "Volume, microphones and output devices."
+msgstr "Volume, microfones e dispositivos de saída."
+
+#: src/control_center/sections/network.zig
+msgid "WPA2 / WPA3 Personal"
+msgstr "WPA2 / WPA3 Pessoal"
+
+#: src/control_center/sections/network.zig
+msgid "WPA3 Personal"
+msgstr "WPA3 Pessoal"
+
+#: src/control_center/sections/printers.zig
+msgid "Wait for the current printer operation to finish."
+msgstr "Aguarde a conclusão da operação atual da impressora."
+
+#: src/polkit/dialog.zig
+msgid "Waiting for authentication service…"
+msgstr "Aguardando o serviço de autenticação…"
+
+#: src/control_center/sections/services.zig
+msgid "Waiting for authentication…"
+msgstr "Aguardando autenticação…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Waiting for the device…"
+msgstr "Aguardando o dispositivo…"
+
+#: src/polkit/dialog.zig
+msgid "Waiting…"
+msgstr "Aguardando…"
+
+#: src/control_center/search_index.zig
+msgid "Wallpaper"
+msgstr "Papel de parede"
+
+#: src/control_center/sections/appearance.zig
+msgid "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."
+msgstr "Aviso: o indicador de captura está oculto. A gravação e o compartilhamento de tela podem continuar sem indicador visível nem botão para parar. Não é recomendado ocultá-lo."
+
+#: src/control_center/sections/network.zig
+msgid "Weak"
+msgstr "Fraco"
+
+#: src/control_center/sections/region.zig
+msgid "Wednesday"
+msgstr "Quarta-feira"
+
+#: src/control_center/welcome.zig
+msgid "Welcome to RediWM"
+msgstr "Boas-vindas ao RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "When the lid is closed"
+msgstr "Ao fechar a tampa"
+
+#: src/control_center/sections/display.zig
+msgid "Where desktop icons appear."
+msgstr "Onde os ícones da área de trabalho aparecem."
+
+#: src/control_center/sections/appearance.zig
+msgid "While dragging a file out of it"
+msgstr "Ao arrastar um arquivo para fora"
+
+#: src/control_center/search_index.zig
+msgid "Wi-Fi"
+msgstr "Wi-Fi"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is disabled by the hardware switch"
+msgstr "O Wi-Fi está desativado pelo interruptor físico"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is turned off"
+msgstr "O Wi-Fi está desativado"
+
+#: src/network/manager.zig
+msgid "Wi-Fi network"
+msgstr "Rede Wi-Fi"
+
+#: src/network/manager.zig
+msgid "Wi-Fi request failed. Check credentials and permissions."
+msgstr "A solicitação Wi-Fi falhou. Verifique as credenciais e permissões."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Window Management"
+msgstr "Gerenciamento de janelas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window and panel transitions"
+msgstr "Transições de janelas e painéis"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome darkness"
+msgstr "Escurecimento da moldura da janela"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome height"
+msgstr "Altura da moldura da janela"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome opacity"
+msgstr "Opacidade da moldura da janela"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window control gap"
+msgstr "Espaçamento dos controles de janela"
+
+#: src/control_center/search_index.zig
+msgid "Window control spacing"
+msgstr "Espaço entre os controles de janela"
+
+#: src/control_center/search_index.zig
+msgid "Window darkness"
+msgstr "Escurecimento de janelas"
+
+#: src/control_center/search_index.zig
+msgid "Window item gap"
+msgstr "Espaçamento dos itens de janela"
+
+#: src/control_center/search_index.zig
+msgid "Window item width"
+msgstr "Largura dos itens de janela"
+
+#: src/control_center/search_index.zig
+msgid "Window opacity"
+msgstr "Opacidade de janelas"
+
+#: src/control_center/search_index.zig
+msgid "Window shadow"
+msgstr "Sombra de janelas"
+
+#: src/control_center/search_index.zig
+msgid "Window spacing"
+msgstr "Espaçamento entre janelas"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window switching zoom"
+msgstr "Ampliação ao alternar janelas"
+
+#: src/control_center/search_index.zig
+msgid "Window tabs"
+msgstr "Abas de janela"
+
+#: src/control_center/sections/appearance.zig
+msgid "Windows"
+msgstr "Janelas"
+
+#: src/control_center/panel.zig
+msgid "Wired and wireless connections."
+msgstr "Conexões cabeadas e sem fio."
+
+#: src/control_center/sections/network.zig
+msgid "Wireless connections"
+msgstr "Conexões sem fio"
+
+#: src/editor/app.zig
+msgid "Word Wrap"
+msgstr "Quebra de linha"
+
+#: src/images/app.zig
+msgid "Working…"
+msgstr "Processando…"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace"
+msgstr "Espaço de trabalho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Next"
+msgstr "Próximo espaço de trabalho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Prev"
+msgstr "Espaço de trabalho anterior"
+
+#: src/control_center/search_index.zig
+msgid "Workspace layout"
+msgstr "Organização do espaço de trabalho"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace {n}"
+msgstr "Espaço de trabalho {n}"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspaces"
+msgstr "Espaços de trabalho"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspaces · Hyprland-style preset"
+msgstr "Espaços de trabalho · Predefinição no estilo do Hyprland"
+
+#: src/files/properties.zig
+msgid "Write"
+msgstr "Gravar"
+
+#: src/control_center/search_index.zig
+msgid "Xwayland scale"
+msgstr "Escala do Xwayland"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland scale (global)"
+msgstr "Escala do Xwayland (global)"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Changes require a compositor restart."
+msgstr "Xwayland: {active}× ativo. Alterações exigem reiniciar o compositor."
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Restart the compositor to apply {pending}×."
+msgstr "Xwayland: {active}× ativo. Reinicie o compositor para aplicar {pending}×."
+
+#: src/control_center/sections/users.zig
+msgid "You"
+msgstr "Você"
+
+#: src/control_center/welcome.zig
+msgid "You can change these later in Settings."
+msgstr "Você pode alterar depois em Configurações."
+
+#: src/delete_dialog.zig
+msgid "You can restore it later from Trash."
+msgstr "Você pode restaurá-lo depois pela lixeira."
+
+#: src/images/app.zig
+msgid "You can restore the file from Trash."
+msgstr "Você pode restaurar o arquivo pela lixeira."
+
+#: src/delete_dialog.zig
+msgid "You can restore them later from Trash."
+msgstr "Você pode restaurá-los depois pela lixeira."
+
+#: src/control_center/sections/network.zig
+msgid "You're connected to this network"
+msgstr "Você está conectado a esta rede"
+
+#: src/control_center/sections/network.zig
+msgid "You're online."
+msgstr "Você está conectado."
+
+#: src/control_center/sections/printers.zig
+msgid "Your default printer"
+msgstr "Sua impressora padrão"
+
+#: src/control_center/sections/desktop.zig
+msgid "Your desktop panning area."
+msgstr "A área de deslocamento da sua área de trabalho."
+
+#: src/control_center/panel.zig
+msgid "Your language, regional formats and calendar preferences."
+msgstr "Seu idioma, formatos regionais e preferências do calendário."
+
+#: src/editor/app.zig
+msgid "Your unsaved changes will be lost if you discard them."
+msgstr "As alterações não salvas serão perdidas se você descartá-las."
+
+#: src/system_monitor/app.zig
+msgid "Zombie"
+msgstr "Zumbi"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom In"
+msgstr "Ampliar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Out"
+msgstr "Reduzir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Reset"
+msgstr "Restaurar ampliação"
+
+#: src/images/app.zig
+msgid "Zoom in"
+msgstr "Ampliar"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom into the desktop canvas."
+msgstr "Ampliar a área de trabalho ampla."
+
+#: src/images/app.zig
+msgid "Zoom out"
+msgstr "Reduzir"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom out of the desktop canvas."
+msgstr "Reduzir a área de trabalho ampla."
+
+#: src/control_center/sections/appearance.zig
+msgid "Zoom the desktop to the selected window's level; fade windows passed by the camera."
+msgstr "Ajustar a ampliação ao nível da janela selecionada; atenuar as janelas pelas quais a câmera passa."
+
+#: src/control_center/search_index.zig
+msgid "accessibility animations"
+msgstr "acessibilidade animações"
+
+#: src/control_center/search_index.zig
+msgid "application colours theme"
+msgstr "aplicativo cores tema"
+
+#: src/control_center/search_index.zig
+msgid "application shell console"
+msgstr "aplicativo shell console"
+
+#: src/control_center/search_index.zig
+msgid "applications titlebar grouping"
+msgstr "aplicativos título agrupamento"
+
+#: src/control_center/search_index.zig
+msgid "autologin boot"
+msgstr "login automático inicialização"
+
+#: src/control_center/search_index.zig
+msgid "backend gtk kde dialogs"
+msgstr "serviço gtk kde diálogos"
+
+#: src/control_center/search_index.zig
+msgid "background desktop image folder"
+msgstr "fundo área de trabalho imagem pasta"
+
+#: src/control_center/search_index.zig
+msgid "backlight screen light"
+msgstr "iluminação tela luz"
+
+#: src/control_center/search_index.zig
+msgid "blue light warm screen"
+msgstr "luz azul tela quente"
+
+#: src/control_center/search_index.zig
+msgid "buttons close maximize minimize"
+msgstr "botões fechar maximizar minimizar"
+
+#: src/delete_dialog.zig
+msgid "bytes"
+msgstr "bytes"
+
+#: src/control_center/search_index.zig
+msgid "calendar monday sunday"
+msgstr "calendário segunda domingo"
+
+#: src/control_center/search_index.zig
+msgid "canvas workspaces tiling"
+msgstr "área de trabalho ampla espaços trabalho mosaico"
+
+#: src/control_center/search_index.zig
+msgid "chooser portal"
+msgstr "seletor portal"
+
+#: src/control_center/search_index.zig
+msgid "chrome tint"
+msgstr "moldura tom"
+
+#: src/control_center/search_index.zig
+msgid "clock battery tray notifications capture"
+msgstr "relógio bateria bandeja notificações captura"
+
+#: src/control_center/search_index.zig
+msgid "colors colours dark light preset"
+msgstr "cores escuro claro predefinição"
+
+#: src/control_center/search_index.zig
+msgid "date weekday"
+msgstr "data dia semana"
+
+#: src/control_center/search_index.zig
+msgid "defaults restore"
+msgstr "padrões restaurar"
+
+#: src/control_center/search_index.zig
+msgid "delete pack"
+msgstr "excluir pacote"
+
+#: src/control_center/search_index.zig
+msgid "desktop panning"
+msgstr "área de trabalho deslocamento"
+
+#: src/control_center/search_index.zig
+msgid "double click folders"
+msgstr "clique duplo pastas"
+
+#: src/control_center/search_index.zig
+msgid "drag drop windows"
+msgstr "arrastar soltar janelas"
+
+#: src/notifications/toast.zig
+msgid "earlier"
+msgstr "antes"
+
+#: src/control_center/search_index.zig
+msgid "edge pan transitions"
+msgstr "borda deslocamento transições"
+
+#: src/control_center/search_index.zig
+msgid "effects motion"
+msgstr "efeitos movimento"
+
+#: src/control_center/search_index.zig
+msgid "enable apps launcher"
+msgstr "ativar aplicativos lançador"
+
+#: src/control_center/search_index.zig
+msgid "export look"
+msgstr "exportar aparência"
+
+#: src/control_center/search_index.zig
+msgid "files folders application"
+msgstr "arquivos pastas aplicativo"
+
+#: src/control_center/search_index.zig
+msgid "gaps tiling"
+msgstr "espaçamentos mosaico"
+
+#: src/files/git.zig
+msgid "git switch failed"
+msgstr "falha ao alternar git"
+
+#: src/control_center/search_index.zig
+msgid "hide automatically"
+msgstr "ocultar automaticamente"
+
+#: src/control_center/search_index.zig
+msgid "hotkeys keybindings bindings terminal screenshot volume brightness workspaces"
+msgstr "atalhos teclado terminal captura volume brilho espaços trabalho"
+
+#: src/control_center/search_index.zig
+msgid "icons pack"
+msgstr "ícones pacote"
+
+#: src/control_center/search_index.zig
+msgid "import pack"
+msgstr "importar pacote"
+
+#: src/control_center/search_index.zig
+msgid "keep icons in place"
+msgstr "manter ícones fixos"
+
+#: src/control_center/search_index.zig
+msgid "keyboard trackpad"
+msgstr "teclado touchpad"
+
+#: src/control_center/search_index.zig
+msgid "laptop suspend sleep"
+msgstr "laptop suspender dormir"
+
+#: src/control_center/search_index.zig
+msgid "launcher icon image"
+msgstr "lançador ícone imagem"
+
+#: src/control_center/search_index.zig
+msgid "launcher size"
+msgstr "lançador tamanho"
+
+#: src/control_center/search_index.zig
+msgid "launcher width"
+msgstr "lançador largura"
+
+#: src/control_center/search_index.zig
+msgid "left right speakers"
+msgstr "esquerda direita alto-falantes"
+
+#: src/control_center/search_index.zig
+msgid "light appearance theme"
+msgstr "claro aparência tema"
+
+#: src/control_center/search_index.zig
+msgid "locale numbers currency dates"
+msgstr "configuração regional números moeda datas"
+
+#: src/control_center/search_index.zig
+msgid "locale translation"
+msgstr "idioma tradução"
+
+#: src/control_center/search_index.zig
+msgid "logo launcher"
+msgstr "logotipo lançador"
+
+#: src/control_center/sections/users.zig
+msgid "lowercase username"
+msgstr "nome usuário minúsculas"
+
+#: src/control_center/search_index.zig
+msgid "magnification mouse"
+msgstr "ampliação mouse"
+
+#: src/control_center/search_index.zig
+msgid "minimap overview"
+msgstr "minimapa visão geral"
+
+#: src/control_center/search_index.zig
+msgid "motion duration"
+msgstr "movimento duração"
+
+#: src/notifications/toast.zig
+msgid "now"
+msgstr "agora"
+
+#: src/control_center/search_index.zig
+msgid "orientation portrait landscape screen"
+msgstr "orientação retrato paisagem tela"
+
+#: src/control_center/search_index.zig
+msgid "overview location"
+msgstr "visão geral localização"
+
+#: src/control_center/search_index.zig
+msgid "overview timeout"
+msgstr "visão geral tempo limite"
+
+#: src/control_center/search_index.zig
+msgid "panel colors colours"
+msgstr "painel cores"
+
+#: src/control_center/search_index.zig
+msgid "panel height"
+msgstr "painel altura"
+
+#: src/control_center/search_index.zig
+msgid "panel margin"
+msgstr "painel margem"
+
+#: src/control_center/search_index.zig
+msgid "panel rounded"
+msgstr "painel arredondado"
+
+#: src/control_center/search_index.zig
+msgid "panel top bottom"
+msgstr "painel superior inferior"
+
+#: src/control_center/search_index.zig
+msgid "panel width"
+msgstr "painel largura"
+
+#: src/control_center/search_index.zig
+msgid "pointer acceleration sensitivity"
+msgstr "ponteiro aceleração sensibilidade"
+
+#: src/control_center/search_index.zig
+msgid "pointer mouse"
+msgstr "ponteiro mouse"
+
+#: src/control_center/search_index.zig
+msgid "printing cups add queue jobs paper driver label"
+msgstr "impressão cups adicionar fila trabalhos papel driver etiqueta"
+
+#: src/control_center/search_index.zig
+msgid "recycle bin"
+msgstr "lixeira reciclagem"
+
+#: src/control_center/search_index.zig
+msgid "rounded"
+msgstr "arredondado"
+
+#: src/control_center/search_index.zig
+msgid "rounded windows"
+msgstr "janelas arredondadas"
+
+#: src/control_center/search_index.zig
+msgid "rows columns panning area"
+msgstr "linhas colunas área deslocamento"
+
+#: src/control_center/search_index.zig
+msgid "rules tiling windows"
+msgstr "regras mosaico janelas"
+
+#: src/control_center/search_index.zig
+msgid "running apps indicator"
+msgstr "aplicativos ativos indicador"
+
+#: src/control_center/search_index.zig
+msgid "screen frequency hz"
+msgstr "tela frequência hz"
+
+#: src/control_center/search_index.zig
+msgid "screen output"
+msgstr "tela saída"
+
+#: src/control_center/search_index.zig
+msgid "screen position monitors main display"
+msgstr "posição telas monitores principal"
+
+#: src/control_center/search_index.zig
+msgid "screen scaling dpi zoom"
+msgstr "tela escala dpi ampliação"
+
+#: src/control_center/search_index.zig
+msgid "screen size pixels"
+msgstr "tela tamanho pixels"
+
+#: src/control_center/search_index.zig
+msgid "scrolling direction reverse invert mouse touchpad"
+msgstr "rolagem direção inversa inverter mouse touchpad"
+
+#: src/control_center/search_index.zig
+msgid "shadows"
+msgstr "sombras"
+
+#: src/control_center/search_index.zig
+msgid "size"
+msgstr "tamanho"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer high frequencies"
+msgstr "som equalizador frequências altas"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer low frequencies"
+msgstr "som equalizador frequências baixas"
+
+#: src/control_center/search_index.zig
+msgid "sound input recording mute"
+msgstr "som entrada gravação silenciar"
+
+#: src/control_center/search_index.zig
+msgid "sound speakers loudness mute"
+msgstr "som alto-falantes volume silenciar"
+
+#: src/control_center/search_index.zig
+msgid "spacing tiled margin"
+msgstr "espaçamento mosaico margem"
+
+#: src/control_center/search_index.zig
+msgid "speakers headphones sound default"
+msgstr "alto-falantes fones som padrão"
+
+#: src/control_center/search_index.zig
+msgid "start menu spacing"
+msgstr "menu iniciar espaçamento"
+
+#: src/control_center/search_index.zig
+msgid "startup welcome animation"
+msgstr "inicialização boas-vindas animação"
+
+#: src/control_center/search_index.zig
+msgid "systemd startup boot daemon unit enabled failed slow"
+msgstr "systemd inicialização boot serviço unidade ativado falha lento"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip size"
+msgstr "barra tarefas item tamanho"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip spacing"
+msgstr "barra tarefas item espaçamento"
+
+#: src/control_center/search_index.zig
+msgid "taskbar launcher spacing"
+msgstr "barra tarefas lançador espaçamento"
+
+#: src/control_center/search_index.zig
+msgid "text size accessibility"
+msgstr "texto tamanho acessibilidade"
+
+#: src/control_center/search_index.zig
+msgid "thickness scrolling accessibility"
+msgstr "espessura rolagem acessibilidade"
+
+#: src/control_center/search_index.zig
+msgid "tiling master stack"
+msgstr "mosaico principal pilha"
+
+#: src/control_center/search_index.zig
+msgid "time"
+msgstr "hora"
+
+#: src/control_center/search_index.zig
+msgid "time am pm"
+msgstr "hora am pm"
+
+#: src/control_center/search_index.zig
+msgid "time taskbar font"
+msgstr "hora barra tarefas fonte"
+
+#: src/control_center/search_index.zig
+msgid "top bottom left right"
+msgstr "superior inferior esquerda direita"
+
+#: src/control_center/search_index.zig
+msgid "touchpad trackpad"
+msgstr "touchpad trackpad"
+
+#: src/control_center/search_index.zig
+msgid "trackpad acceleration sensitivity"
+msgstr "touchpad aceleração sensibilidade"
+
+#: src/control_center/search_index.zig
+msgid "transparency"
+msgstr "transparência"
+
+#: src/control_center/search_index.zig
+msgid "transparency chrome"
+msgstr "transparência moldura"
+
+#: src/control_center/search_index.zig
+msgid "transparency unfocused"
+msgstr "transparência sem foco"
+
+#: src/control_center/search_index.zig
+msgid "typeface text"
+msgstr "tipografia texto"
+
+#: src/control_center/search_index.zig
+msgid "typing keys"
+msgstr "digitação teclas"
+
+#: src/control_center/search_index.zig
+msgid "typing keys speed"
+msgstr "digitação teclas velocidade"
+
+#: src/control_center/search_index.zig
+msgid "unfocused darkness"
+msgstr "escurecimento sem foco"
+
+#: src/control_center/search_index.zig
+msgid "users login password administrator groups"
+msgstr "usuários login senha administrador grupos"
+
+#: src/control_center/search_index.zig
+msgid "warmth colour color"
+msgstr "calor cor cores"
+
+#: src/control_center/search_index.zig
+msgid "window borders"
+msgstr "janela bordas"
+
+#: src/control_center/search_index.zig
+msgid "window chrome"
+msgstr "janela moldura"
+
+#: src/control_center/search_index.zig
+msgid "window focus"
+msgstr "janela foco"
+
+#: src/control_center/search_index.zig
+msgid "window moving"
+msgstr "janela movimento"
+
+#: src/control_center/search_index.zig
+msgid "window moving size"
+msgstr "janela movimento tamanho"
+
+#: src/control_center/search_index.zig
+msgid "wired internet adapter"
+msgstr "cabo internet adaptador"
+
+#: src/control_center/search_index.zig
+msgid "wireless internet wlan hotspot hidden network"
+msgstr "sem fio internet wlan ponto acesso rede oculta"
+
+#: src/control_center/search_index.zig
+msgid "wireless pairing paired headphones mouse keyboard"
+msgstr "sem fio pareamento pareado fones mouse teclado"
+
+#: src/control_center/search_index.zig
+msgid "x11 legacy apps scaling"
+msgstr "x11 aplicativos antigos escala"
+
+#: src/session/power.zig
+msgid "{action} failed"
+msgstr "{action} falhou"
+
+#: src/control_center/sections/desktop.zig
+msgid "{columns} × {rows} · {n} screen total"
+msgid_plural "{columns} × {rows} · {n} screens total"
+msgstr[0] "{columns} × {rows} · {n} tela no total"
+msgstr[1] "{columns} × {rows} · {n} telas no total"
+
+#: src/files/app_paint.zig
+msgid "{count} item selected · {size}"
+msgid_plural "{count} items selected · {size}"
+msgstr[0] "{count} item selecionado · {size}"
+msgstr[1] "{count} itens selecionados · {size}"
+
+#: src/files/open_with.zig
+msgid "{count} selected file"
+msgid_plural "{count} selected files"
+msgstr[0] "{count} arquivo selecionado"
+msgstr[1] "{count} arquivos selecionados"
+
+#: src/delete_dialog.zig
+msgid "{count} selected item"
+msgid_plural "{count} selected items"
+msgstr[0] "{count} item selecionado"
+msgstr[1] "{count} itens selecionados"
+
+#: src/files/app_paint.zig
+msgid "{count} transfer · Downloads continue after closing Files."
+msgid_plural "{count} transfers · Downloads continue after closing Files."
+msgstr[0] "{count} transferência · Os downloads continuam após fechar Arquivos."
+msgstr[1] "{count} transferências · Os downloads continuam após fechar Arquivos."
+
+#: src/notifications/toast.zig
+msgid "{count}h ago"
+msgstr "há {count}h"
+
+#: src/notifications/toast.zig
+msgid "{count}m ago"
+msgstr "há {count}min"
+
+#: src/files/app_paint.zig
+msgid "{count}{more} item"
+msgid_plural "{count}{more} items"
+msgstr[0] "{count}{more} item"
+msgstr[1] "{count}{more} itens"
+
+#: src/desktop/app_paint.zig
+msgid "{kind} · {bytes} bytes"
+msgstr "{kind} · {bytes} bytes"
+
+#: src/delete_dialog.zig
+msgid "{kind} · {size} {unit}"
+msgstr "{kind} · {size} {unit}"
+
+#: src/control_center/sections/region.zig
+msgid "{locale} · RediWM stays in English"
+msgstr "{locale} · RediWM permanece em inglês"
+
+#: src/images/app.zig
+msgid "{modified}{name} — Images ({position}/{count})"
+msgstr "{modified}{name} — Imagens ({position}/{count})"
+
+#: src/editor/app.zig
+msgid "{modified}{name} — Text Editor ({tab}/{tabs})"
+msgstr "{modified}{name} — Editor de texto ({tab}/{tabs})"
+
+#: src/files/open_with.zig
+msgid "{name} (default)"
+msgstr "{name} (padrão)"
+
+#: src/control_center/sections/region.zig
+msgid "{name} ({locale})"
+msgstr "{name} ({locale})"
+
+#: src/files/app_places.zig
+msgid "{name} can be safely removed"
+msgstr "{name} pode ser removido com segurança"
+
+#: src/control_center/sections/appearance.zig
+msgid "{name} could not be loaded · showing the default R"
+msgstr "Não foi possível carregar {name} · mostrando o R padrão"
+
+#: src/files/volumes.zig
+msgid "{name} is already mounted"
+msgstr "{name} já está montado"
+
+#: src/files/volumes.zig
+msgid "{name} is busy"
+msgstr "{name} está ocupado"
+
+#: src/files/volumes.zig
+msgid "{name} is no longer available"
+msgstr "{name} não está mais disponível"
+
+#: src/files/app_places.zig
+msgid "{name} is no longer there"
+msgstr "{name} não está mais lá"
+
+#: src/files/app_places.zig
+msgid "{name} mounted"
+msgstr "{name} montado"
+
+#: src/control_center/sections/users.zig
+msgid "{name} · primary"
+msgstr "{name} · principal"
+
+#: src/pdf/app.zig
+msgid "{name} — PDF Viewer ({page}/{pages})"
+msgstr "{name} — Visualizador de PDF ({page}/{pages})"
+
+#: src/files/app.zig
+msgid "{name} — RediWM Files"
+msgstr "{name} — Arquivos do RediWM"
+
+#: src/control_center/sections/printers.zig
+msgid "{name}: level unavailable"
+msgstr "{name}: nível indisponível"
+
+#: src/control_center/sections/printers.zig
+msgid "{n} completed sheet reported by CUPS"
+msgid_plural "{n} completed sheets reported by CUPS"
+msgstr[0] "O CUPS informou {n} folha concluída"
+msgstr[1] "O CUPS informou {n} folhas concluídas"
+
+#: src/system_monitor/app.zig
+msgid "{n} process · Swap {swap}{status}"
+msgid_plural "{n} processes · Swap {swap}{status}"
+msgstr[0] "{n} processo · Swap {swap}{status}"
+msgstr[1] "{n} processos · Swap {swap}{status}"
+
+#: src/control_center/sections/services.zig
+msgid "{n} service, {enabled} enabled"
+msgid_plural "{n} services, {enabled} enabled"
+msgstr[0] "{n} serviço; ativados: {enabled}"
+msgstr[1] "{n} serviços; ativados: {enabled}"
+
+#: src/files/app_torrents.zig
+msgid "{rate} KiB/s"
+msgstr "{rate} KiB/s"
+
+#: src/files/properties.zig
+msgid "{size} ({bytes} byte)"
+msgid_plural "{size} ({bytes} bytes)"
+msgstr[0] "{size} ({bytes} byte)"
+msgstr[1] "{size} ({bytes} bytes)"
+
+#: src/files/app_places.zig
+msgid "{size} Volume"
+msgstr "Volume de {size}"
+
+#: src/files/app_torrents.zig
+msgid "{size} selected · {path}"
+msgstr "{size} selecionados · {path}"
+
+#: src/control_center/sections/printers.zig
+msgid "{value} (supported {min}–{max})"
+msgstr "{value} (suportado: {min}–{max})"
+
+#: src/files/app_torrents.zig
+msgid "{value} active · {rate} KiB/s"
+msgstr "{value} ativos · {rate} KiB/s"
+
+#: src/files/app_torrents.zig
+msgid "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+msgstr "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+
+#: src/files/app_torrent_rows.zig
+msgid "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+msgstr "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "L"
+msgstr "E"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "R"
+msgstr "D"
+
+#: src/session/lock.zig
+msgctxt "date"
+msgid "%A, %B %-d"
+msgstr "%A, %-d de %B"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%A, %B %-d, %Y"
+msgstr "%A, %-d de %B de %Y"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%B %Y"
+msgstr "%B de %Y"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Comment"
+msgid "Browse, open and manage local files and folders"
+msgstr "Navegue, abra e gerencie arquivos e pastas locais"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Comment"
+msgid "Download torrents and magnet links in Files"
+msgstr "Baixe torrents e links magnet em Arquivos"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Comment"
+msgid "Edit text files in tabs"
+msgstr "Edite arquivos de texto em abas"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Comment"
+msgid "RediWM Wayland compositor"
+msgstr "Compositor Wayland RediWM"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Comment"
+msgid "Simple arithmetic calculator"
+msgstr "Calculadora de aritmética simples"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Comment"
+msgid "Validate and install a RediWM theme pack"
+msgstr "Valide e instale um pacote de temas do RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Comment"
+msgid "View CPU, memory and processes"
+msgstr "Veja CPU, memória e processos"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Comment"
+msgid "View PDF documents with RediWM"
+msgstr "Visualize documentos PDF com o RediWM"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Comment"
+msgid "View images with RediWM"
+msgstr "Visualize imagens com o RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:GenericName"
+msgid "File Manager"
+msgstr "Gerenciador de arquivos"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Keywords"
+msgid "arithmetic;math;calculate;"
+msgstr "aritmética;matemática;calcular;"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Keywords"
+msgid "files;folder;browser;explorer;manager;"
+msgstr "arquivos;pasta;navegador;explorador;gerenciador;"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Keywords"
+msgid "process;task;CPU;memory;performance;"
+msgstr "processo;tarefa;CPU;memória;desempenho;"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Name"
+msgid "Calculator"
+msgstr "Calculadora"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Name"
+msgid "Files Transfers"
+msgstr "Transferências de Arquivos"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Name"
+msgid "Image Viewer"
+msgstr "Visualizador de imagens"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Name"
+msgid "Install theme"
+msgstr "Instalar tema"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Name"
+msgid "PDF Viewer"
+msgstr "Visualizador de PDF"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Name"
+msgid "RediWM"
+msgstr "RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Name"
+msgid "RediWM Files"
+msgstr "Arquivos do RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Name"
+msgid "System Monitor"
+msgstr "Monitor do sistema"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Name"
+msgid "Text Editor"
+msgstr "Editor de texto"
+
+#: data/org.rediwm.accounts.policy
+msgctxt "polkit"
+msgid "Authentication is required to manage login accounts"
+msgstr "É necessário autenticar para gerenciar contas de usuário"
+
+#: src/Dock.zig
+msgid "Application"
+msgstr "Aplicativo"
+
+#: src/Dock.zig
+msgid "Files"
+msgstr "Arquivos"
+
+#: src/start_menu/search.zig
+msgid "Loading applications…"
+msgstr "Carregando aplicativos…"
+
+#: src/toplevel/info.zig
+msgid "RediWM Settings"
+msgstr "Configurações do RediWM"
+
+#: src/start_menu/search.zig
+msgid "Scanning installed apps"
+msgstr "Buscando aplicativos instalados"
+
+#: src/start_menu/search.zig
+msgid "System preferences, display, appearance and input"
+msgstr "Preferências do sistema, tela, aparência e entrada"
+
+#: src/start_menu/search.zig
+msgid "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing"
+msgstr "configurações;controle;painel;preferências;tela;aparência;mouse;teclado;impressora;impressoras;impressão"
+
+#: src/control_center/sections/region.zig
+msgid "English"
+msgstr "Inglês"
diff --git a/po/rediwm.pot b/po/rediwm.pot
new file mode 100644
index 0000000..0d2543e
--- /dev/null
+++ b/po/rediwm.pot
@@ -0,0 +1,7573 @@
+# RediWM UI messages. Generated by zig build i18n-extract.
+msgid ""
+msgstr ""
+"Content-Type: text/plain; charset=UTF-8\n"
+
+#: src/system_monitor/app.zig
+msgid " · /proc unavailable"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid " · Default"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid " · List limited"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid " · Paused"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid " · Some processes unavailable"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid " · System default"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "1 second"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "1.5 seconds"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "100%"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "125%"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "150%"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "175%"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "180°"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "2 seconds"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "200%"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "24-hour clock"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "250%"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "270°"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "3 seconds"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "300%"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "5 seconds"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "60 seconds"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "90°"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "A USB character device is not applicable to this connection."
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "A file operation is already running"
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "A file with this name exists. Replace it?"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "A matched device-node path is a regular file or another wrong file type."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "A matching USB printer interface is attached."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "A matching character device exists; backend access has not been tested."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "A printer with this queue name already exists. Choose another name."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "APPEARANCE"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Aborted"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Accept jobs"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Account details · {name}"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Account settings are unlocked for this session."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Account type"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Accounts"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Activated by: {name}"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Add Application Shortcut"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Add Application…"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Add Shortcut"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Add a printer"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Add to applications"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Add torrent…"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Add user"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Add user…"
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images"
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images to {folder}"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Added to Places"
+msgstr ""
+
+#: src/files/worker.zig
+msgid "Added to applications. Keep the AppImage in its current location."
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Added {value} items to Places"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Added {value} to Places"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Adding to applications…"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Additional setup required"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Address checks support IPP printers. Other connections can be tested with an explicit print after setup."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Administrator"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Administrator privileges are required to continue."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "All"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "All Applications"
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "All files"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "All items in Trash"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "All processes"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Allow Launching"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow connections from this device without asking."
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow pairing with this device?"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Already in Places"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Always use this app for this file type"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Always use this app for {value} files"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "An application is already being added"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Analyze"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Analyzing…"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Animation speed"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Animations"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Another power action is already in progress."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "App colors"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "App streams"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Appearance"
+msgstr ""
+
+#: src/Dock.zig
+msgid "Application"
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "Application added, but some file or link associations could not be registered"
+msgstr ""
+
+#: src/start_menu/launch.zig
+msgid "Application could not be started"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Application language"
+msgstr ""
+
+#: src/Dock.zig
+msgid "Applications"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Applies to output edges and the space between automatic tiles."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Apply"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Apply GTK colors"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Apply Qt colors"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Apply connection"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Apply crop"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Apply crop · Enter"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Apply value"
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Applying app colors…"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Applying printer change; authorization may be required…"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Apps"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Apps and web pages"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Archive contains an unsafe path"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Archive contains unsupported links or special files"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Archive has too many entries"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Archive is corrupt or unsupported"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Arrange windows automatically."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Arrangement"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Arrangement, resolution, refresh rate and scaling."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Assigned to the current output when first used."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Attached USB printers"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Attempt {attempt} of 3"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Audio"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio (A2DP) · High quality audio"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio Settings"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Audio output"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Audio output device"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Audio settings"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Audio unavailable"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Authenticate"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Authenticating with CUPS…"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Authenticating…"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Authentication"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed."
+msgstr ""
+
+#: src/polkit/agent.zig
+msgid "Authentication failed. Please try again."
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Authentication required"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Authentication service unavailable."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Authentication unavailable. Try again."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Authentication was cancelled or denied."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Authentication was cancelled or denied. Notify setting is unchanged."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Authorize printer administration"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto-hide dock"
+msgstr ""
+
+#: src/network/popup.zig
+msgid "Auto-join this network"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Automatic"
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Automatic ($TERMINAL / Foot)"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Automatic login"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiling"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Available Devices"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Back"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Back to recommended apps"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Backend"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Backend communication and device identity have not been confirmed."
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "Balance"
+msgstr ""
+
+#: src/power_profiles.zig
+msgid "Balanced"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "Bass Boost"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Bass boost"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Black and white"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Blank or no output"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Blocked"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Blocked by an active inhibitor lock."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Blocked by an application."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Blocked by {application}."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Blocked by {application}: {reason}"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Bluetooth"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Bluetooth devices"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth is turned off"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth service is unavailable"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Bold clock"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Bold clock text"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Boost window"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Boot summary is unavailable."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Boot time: {duration}"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Boot: from kernel start. Activation times overlap; — means unavailable."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Border glow"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Bottom"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom center"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom left"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom right"
+msgstr ""
+
+#: src/files/git.zig
+msgid "Branch name cannot be empty"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Brief placeholder while apps start"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Brightness"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Up"
+msgstr ""
+
+#: src/files/app_listing.zig
+msgid "Broken link"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Browser"
+msgstr ""
+
+#: src/images/app.zig
+msgid "C: crop · Ctrl+S: save · Delete: trash"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "CENTER"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "CPU %"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS accepted the change; the resulting driver value could not be verified."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "CUPS answered an IPP request."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "CUPS authentication failed after three attempts. Check the administrator account and permissions."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "CUPS availability has not been checked."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "CUPS cannot honor the requested print settings. Check the paper, format and scaling options."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "CUPS completed the job with zero sheets reported; physical output is not confirmed."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "CUPS denied permission. The operation requires authorization."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "CUPS did not answer an IPP request."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "CUPS did not respond in time. Refresh to try again."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "CUPS discovered no supported printer addresses. You can enter a network address."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "CUPS is unavailable. Install or start CUPS, then refresh."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "CUPS refused or could not complete the request. Check authorization and refresh before retrying."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "CUPS refused the printer change. Check authorization, the address and driver, then refresh."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "CUPS reports conflicting queue and driver defaults."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "CUPS reports the job completed; physical printed output is not confirmed."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "CUPS requires an administrator username and password."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "CUPS returned an invalid response or the connection failed. Refresh to try again."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "CUPS start requested. Refresh to check when it is ready."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Cable unplugged"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Calculate size"
+msgstr ""
+
+#: src/calculator/app.zig
+msgid "Calculator"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom In"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Out"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Reset"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Cancel (C)"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel Pairing"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel job"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel setup"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel test"
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "Cancelled"
+msgstr ""
+
+#: src/files/ops.zig
+msgid "Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr ""
+
+#: src/files/ops.zig
+msgid "Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr ""
+
+#: src/files/app_keyboard.zig
+msgid "Cancelling operation..."
+msgstr ""
+
+#: src/calculator/model.zig
+msgid "Cannot divide by zero"
+msgstr ""
+
+#: src/files/main.zig
+msgid "Cannot drop a folder into itself"
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "Cannot insert paths containing control characters"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Cannot reach login service. Try again."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas & Focus"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas Preview"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Canvas Size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Canvas pan speed"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Canvas size"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas · RediWM preset"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Caps Lock is on"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture a region of your screen."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture the current display."
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "Centre"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Change Wallpaper"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Change connection…"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Change password · {name}"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Change password…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Change printer connection"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Change queue identifier…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Change this queue identifier"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Change window depth."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Change {old} to {name}?"
+msgstr ""
+
+#: src/control_center/sections/portals.zig
+msgid "Changes apply next time you sign in."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Changes are saved automatically. Scroll the lists for more modes."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Changes saved."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Changes the taskbar calendar."
+msgstr ""
+
+#: src/taskbar/battery.zig
+msgid "Charging"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Check IPP address"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Check NSS and /etc/login.defs."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Check measured scale"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check power, the USB cable, and which printer this queue uses."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check printer power, the address, and access through the network or VPN."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the configured CUPS server and whether the print service is installed and available."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the device's USB mode and its self-test instructions."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the document, driver, media size, and resolution. Compare with a test that skips the filters."
+msgstr ""
+
+#: src/calculator/model.zig
+msgid "Check the expression"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the job's reported reason before retrying."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the physical output and any document or filter failure; sheet counters can be incomplete."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Check the printer's self-test sheet for its language and real resolution."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the queue address and USB serial; reconnecting can change a device-node path."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Check the usblp driver and the queue's device path; node names can change after reconnection."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Checking backlight…"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Checking password…"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Checking printer administration…"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Checking…"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Choose Folder"
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose Start button logo"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a driver…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language."
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose a path without quotes, backslashes or control characters."
+msgstr ""
+
+#: src/share_picker/client.zig
+msgid "Choose a source. Escape cancels."
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "Choose an accessible file or folder and a valid filename."
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Choose an application to add to the desktop"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Choose another app…"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Choose files"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Choose files to download"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Choose file…"
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose folder"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Choose how your desktop works."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Choose the actual paper dimensions before printing this test."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Choose the keys for your everyday actions."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Choose the paper or label size actually loaded in the printer."
+msgstr ""
+
+#: src/control_center/sections/portals.zig
+msgid "Choose the services apps use for desktop dialogs. The selected backend must be installed."
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose wallpaper folder"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Choose whether to keep the home folder or remove its files."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Choose your window layout"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Classic (stacking)"
+msgstr ""
+
+#: src/control_center/search.zig
+msgid "Clear search"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Clipboard selections are limited to 1 MiB."
+msgstr ""
+
+#: src/files/app_keyboard.zig
+msgid "Clipboard text is invalid or too long"
+msgstr ""
+
+#: src/files/main.zig
+msgid "Clipboard transfer failed or exceeded 1 MiB"
+msgstr ""
+
+#: src/files/main.zig
+msgid "Clipboard transfer timed out"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Clock day"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Clock seconds"
+msgstr ""
+
+#: src/calculator/client.zig
+msgid "Close"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close Window"
+msgstr ""
+
+#: src/chrome_tabs.zig
+msgid "Close tab"
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "Close terminal session?"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Close test result"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close the focused window."
+msgstr ""
+
+#: src/taskbar/window_menu.zig
+msgid "Close window"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Closing ends this shell and its running jobs."
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Collecting processes…"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Color temperature"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Colour"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Colour: {colour}"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Complete"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Complete · Stopped"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Completed"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Configure this network with a network tool"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Configure your desktop canvas and panning area."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Confirm"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Confirm Pairing"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Confirm new password"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Confirm password"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Confirm resolution using the printer's self-test or a measured ruler test."
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Conflict"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connect"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Connect and manage your Bluetooth devices."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Connect automatically"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connected"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Connected peers: {peers} · Seeds: {seeds}"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Connected to CUPS."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Connected · Saved"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Connecting Ethernet…"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Connecting…"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connection"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Connection failed"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Connection failed. Check the password and try again."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Continue"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Copied"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Copied {count} item"
+msgid_plural "Copied {count} items"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/desktop/app_actions.zig
+msgid "Copy"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Copy diagnostic report"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Corner radius"
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "Could not add the AppImage to applications"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not add the application"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Could not allocate locked password storage."
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "Could not allocate terminal"
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors. Check your configuration files and permissions."
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors: {reason}. Check your configuration files and permissions."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Could not apply or save the display scale."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Could not apply that display setting."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Could not apply the printer option."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Could not apply this choice. Please try again."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Could not build the request."
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Could not change permissions"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Could not clear the canonical default override."
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Could not connect to Transfers"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not connect to systemd."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not crop this selection."
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Could not delete all items"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not delete. The file was kept."
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "Could not eject {name}"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Could not empty Trash"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Could not extract archive"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Could not load applications"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not load services. Try Refresh."
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "Could not mount {name}"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Could not move all items to Trash"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not move to Trash. The file was kept."
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Appearance: {error}"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Desktop Settings: {error}"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not open Text Editor"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Could not open Trash"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Could not open archive"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not open archive member"
+msgstr ""
+
+#: src/pdf/app_document.zig
+msgid "Could not open document."
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not open file"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Could not open folder"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not open folder picker"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not open image viewer"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Could not open new window"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not open the delete dialog."
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Could not open the file chooser."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not open the service edit for authorization."
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Could not open with this app. Choose another."
+msgstr ""
+
+#: src/pdf/app_document.zig
+msgid "Could not prepare password. Please try again."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Could not prepare the group update."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Could not query logind."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Could not reach logind."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Could not reach the system's power service."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Could not read Wi-Fi networks"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Could not read file properties"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not read folder picker result"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Could not read login accounts."
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Could not read permissions"
+msgstr ""
+
+#: src/files/worker.zig
+msgid "Could not read recent files"
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "Could not read the AppImage's application details"
+msgstr ""
+
+#: src/files/main.zig
+msgid "Could not read the dropped items"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not read this image"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Could not request CUPS start."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not request authentication. Check that polkit is running."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not rotate: not enough memory."
+msgstr ""
+
+#: src/files/git.zig
+msgid "Could not run git"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not save Notify. Service editing requires systemd 256 or newer."
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Could not save Places"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save desktop mode."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save floating apps."
+msgstr ""
+
+#: src/control_center/sections/portals.zig
+msgid "Could not save portal preferences. Check your configuration directory."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Could not save the Files setting."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Could not save the default app. Please try again."
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Could not save the default application."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Could not save the display setting."
+msgstr ""
+
+#: src/files/app.zig
+msgid "Could not save view preferences"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save window spacing."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Could not save your layout. Please try again."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save. Check the configuration file and try again."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not save. Check the folder and permissions."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Could not send printer administration request."
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Could not send response. Please try again."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Could not send the Ethernet request."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Could not send the Wi-Fi request"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not send the service action."
+msgstr ""
+
+#: src/files/worker.zig
+msgid "Could not sort folder names"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Could not start CUPS administration."
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Could not start Transfers"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not start deleting this file."
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Could not start extraction"
+msgstr ""
+
+#: src/files/main.zig
+msgid "Could not start file drag"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Could not start printer diagnostics."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Could not start saving."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the authentication request."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Could not start the power command."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the request."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Could not subscribe to service updates."
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "Could not use the device"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers before changing the identifier."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers. Refresh before creating a queue."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify the printer's jobs. Refresh before changing its identifier."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Could not watch the power command."
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Could not write extracted file (check space and permissions)"
+msgstr ""
+
+#: src/desktop/watcher.zig
+msgid "Could not {operation}: {error}"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Create printer"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Create user"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Created"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Created and switched to {name}"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Crop"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Currency"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Current font"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Current theme"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Current: {locale}"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Cursor theme"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom"
+msgstr ""
+
+#: src/control_center/sections/portals.zig
+msgid "Custom ({name})"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom size"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Cut"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Cut {count} item"
+msgid_plural "Cut {count} items"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the next existing workspace."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the previous existing workspace."
+msgstr ""
+
+#: src/battery_popup.zig
+msgid "Cycles"
+msgstr ""
+
+#: src/files/app_sidebar_paint.zig
+msgid "DEVICES"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "DISPLAY"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "DNS servers"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dark mode"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Darkness"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Date"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Date format for the taskbar; date, number and currency formats for new apps."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease display brightness."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease system volume."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease the focused window's size."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Default"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Default R logo · PNG or SVG"
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Default applications"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Default apps"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Default file manager"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Default terminal"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Deferred"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Delete file?"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Delete files"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Delete folder?"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Delete items?"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Delete permanently"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Delete user…"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Delete {name}?"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Denied by policy"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Denied by system policy."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Desktop"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Desktop Settings"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Desktop Switching"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Desktop icons appear on this display."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Desktop mode"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Desktop portals"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Desktop switching"
+msgstr ""
+
+#: src/files/app_git_sidebar.zig
+msgid "Detached {count}"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Details"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Device"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Device Settings"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Device node"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Did the test produce printed output? CUPS completion alone cannot tell."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dim inactive windows"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Disable printer"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disable shortcut"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Disable touchpad while typing"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Disabled"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disabled shortcut."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Discard"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Disconnect"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Disconnected"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Disconnecting Ethernet…"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Disconnecting…"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Discovering printers; authorization may be required…"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Disk wait"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Display"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Display arrangement"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Display name"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Display scale"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Display settings"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Displays"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Do nothing"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock active highlight"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock auto hide"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock corner radius"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock height"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock hover zoom"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock hover zoom (1.00× disables)"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock opacity"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock position"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dock trash"
+msgstr ""
+
+#: src/pdf/app_document.zig
+msgid "Document is encrypted. Enter password:"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Documents"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Dodge file drags"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Does this code match the code on your device?"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Done"
+msgstr ""
+
+#: src/files/app_items.zig
+msgid "Download"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Download to folder"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Downloaded · Seeding"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Downloading"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Downloads"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Downloads continue after closing Files."
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Draft"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Drag a larger crop selection."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Drag displays to match your desk. Click one to edit it."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Drag feedback"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag items here"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag lift scale"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Drag scale"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag to move"
+msgstr ""
+
+#: src/screenshot/selector.zig
+msgid "Drag to save and copy · Esc to cancel"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Drag to select · Enter: crop · Esc: cancel"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Dragging stops on release. Edges settle with a short animation."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Driver"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Choose files first"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Complete"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Paused"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Unknown · waiting for data"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}h {value2}m"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}m {value2}s"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}s"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Edge glow"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Edit shortcut"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Edits undone."
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Eject"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Ejected"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Ejecting…"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Empty Trash"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Empty Trash?"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Empty Trash…"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Enable acceptance of jobs when the printer is ready."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Enable {locale} in your system’s locale settings to use it in other apps and regional formats."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Enabled"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "End process"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "English"
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "Enlarge this window to show the terminal"
+msgstr ""
+
+#: src/calculator/app.zig
+msgid "Enter = Esc clear F9 ± % = ÷100"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Enter Password"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Enter a filename or an absolute path."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Enter a filename."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Enter a network name."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Enter a password (1–63 bytes)."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a supported printer address without credentials."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a valid CUPS administrator username and password."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid full name."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid username and full name."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Enter an account permitted to administer the local CUPS server."
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Enter confirms · Esc cancels"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Enter matching passwords."
+msgstr ""
+
+#: src/network/popup.zig
+msgid "Enter network name"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Enter new password"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Enter or leave fullscreen."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Enter password"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's PIN"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's six-digit passkey"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter this code on your device, then press Enter."
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Enter your response"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Error"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Error: {value}"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Ethernet"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Ethernet adapter was removed."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Ethernet connection timed out. Check the cable and try again."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Ethernet could not connect. Check the cable and connection settings."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Ethernet request failed. Check permissions and try again."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Everyday controls, all in one place."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Excellent"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Execute"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Existing windows outside a smaller canvas stay reachable."
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Exited"
+msgstr ""
+
+#: src/calculator/model.zig
+msgid "Expression is full"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Extract"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Extract to…"
+msgstr ""
+
+#: src/files/ops.zig
+msgid "Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Extracting {current}/{total}: {name}... (Esc to cancel)"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Extraction cancelled"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Failed"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create file"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create folder"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Failed to rename"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Failed to start transfer job"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Fetching file list…"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "File"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "File '{value}' already exists in destination."
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "File Conflict"
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "File Manager"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "File already exists"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "File changed on disk. Use Save As to keep your edits in another file."
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "File created"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "File dialogs"
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "File name:"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "File no longer exists in the archive"
+msgstr ""
+
+#: src/pdf/app_document.zig
+msgid "File not found."
+msgstr ""
+
+#: src/desktop/watcher.zig
+msgid "File operation failed"
+msgstr ""
+
+#: src/Dock.zig
+msgid "Files"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Files and folders in this selection"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Filter"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Find"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers again and choose the current discovered device."
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Find in document..."
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Find ▲"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Find…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Finish or cancel the printer's jobs before changing its identifier."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Finish the file dialog or operation before closing."
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Finish the running file operation first"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "First day of the week"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "First day of week"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Fit"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Fit page"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Fit width"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Five applications already pinned"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Fixed desktop icons"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Flipped"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 180°"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 270°"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 90°"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Floating"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Floating apps"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Left"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Next"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Prev"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Right"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Up"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Focus camera"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window above."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window below."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the left."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the right."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Focus zoom"
+msgstr ""
+
+#: src/desktop/app_paint.zig
+msgid "Folder"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Folder already exists"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Folder created"
+msgstr ""
+
+#: src/files/worker.zig
+msgid "Folder not found"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Folder · includes its contents"
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "Folder:"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Folders only"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Font"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Font size"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Fonts & cursor"
+msgstr ""
+
+#: src/taskbar/window_menu.zig
+msgid "Force Close"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Force quit"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Force quit requested"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Force quit this process?"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Force quit…"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget Device"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget this device? Pair it again to reconnect."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Formats Preview"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Forward"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Friday"
+msgstr ""
+
+#: src/screenshot/selector.zig
+msgid "Full Screen"
+msgstr ""
+
+#: src/battery_popup.zig
+msgid "Full capacity"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Full name"
+msgstr ""
+
+#: src/taskbar/battery.zig
+msgid "Fully Charged"
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Gap ({n} px)"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Gateway"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "General"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Git"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Git View"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Good"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Grid"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Group"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Groups"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Hardware blocked"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Have an administrator inspect the node; never write print data to a regular file."
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Headset · Audio and microphone"
+msgstr ""
+
+#: src/battery_popup.zig
+msgid "Health"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Held"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Hide after"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "High"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Highlight active app"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Highlighted: bottom-left screen"
+msgstr ""
+
+#: src/desktop/watcher.zig
+msgid "Home"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Horizontal Pan"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "How long Super + arrow keys take to slide to the next desktop."
+msgstr ""
+
+#: src/control_center/sections/input.zig
+msgid "INPUT"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "IPP Everywhere / AirPrint"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "IPv4 address"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Icon bottom padding"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Icon left padding"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Icon theme"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Idle"
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Image"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Image exceeds the 32 megapixel preview limit"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Images ({position}/{count})"
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in the chosen folder"
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in {folder}"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "In Files, click an icon to open it in list or icons view. Click the name to select."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Inactive window opacity"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Inches"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Incorrect password. Try again."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase display brightness."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase system volume."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase the focused window's size."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Inherited from login ({locale})"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Input"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Input · Keyboard, mouse or controller"
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Install"
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "Install squashfs-tools to add AppImages to applications"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Install theme"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Install theme…"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Installing theme…"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Interactive authorization required."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Interface scale"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Internet"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Internet access not verified"
+msgstr ""
+
+#: src/files/git.zig
+msgid "Invalid branch name"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Invalid characters in name"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Invalid cups-pk-helper reply."
+msgstr ""
+
+#: src/files/main.zig
+msgid "Invalid dropped list"
+msgstr ""
+
+#: src/files/main.zig
+msgid "Invalid file clipboard"
+msgstr ""
+
+#: src/files/app_opening.zig
+msgid "Invalid folder picker result"
+msgstr ""
+
+#: src/pdf/app_document.zig
+msgid "Invalid or corrupt PDF document."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Invalid or oversized printer discovery reply."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Invalid printer administration reply."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Invalid service-manager reply."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Invalid system bus reply."
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Invalid transfer metadata"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Invalid transfer update"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "It printed"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Italic clock"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Italic clock text"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Items"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Items moved to Trash"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Items permanently deleted"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Job history · {n}"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Job {id} · {state}"
+msgstr ""
+
+#: src/network/popup.zig
+msgid "Join"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Join Hidden Network"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Keep connection"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep desktop icons in place"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Keep home"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep icons fixed on screen while panning and zooming."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Keep identifier"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Keep printer"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Keep zoom"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Keyboard Shortcuts"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat delay"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat rate"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Keyboard shortcuts"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Known peers: {value}"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "LEFT"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Label printer and advanced test tools"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Language"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Language: {language}. This sample bypasses the filters and uses the queue's backend."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Large"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Largest first"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Last job"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Last reported signal: {signal} dBm"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Launch failed. The application may have been removed."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Launch splash"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Launcher"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Layouts and split sizes are saved for your next session."
+msgstr ""
+
+#: src/network/popup.zig
+msgid "Leave blank to use saved password"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Left"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Lid close action"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Light the active window's edge near the pointer"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Limited access"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Line {line}, Column {column} · UTF-8{bom} · {ending}"
+msgstr ""
+
+#: src/files/app_listing.zig
+msgid "Link"
+msgstr ""
+
+#: src/pdf/app_pointer.zig
+msgid "Link copied. Paste it into your browser."
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Link permissions cannot be changed"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Link speed"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "List"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper height"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper width"
+msgstr ""
+
+#: src/start_menu/search.zig
+msgid "Loading applications…"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Loading image…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Loading printers…"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Loading services…"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Location"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Lock"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock Screen"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock the session and turn off the display."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Locks and sleeps, even with another display connected."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Locks, and turns off the built-in screen while another display is connected."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Log In"
+msgstr ""
+
+#: src/power_menu.zig
+msgid "Log Out"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Log out of the desktop session."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Logind refused the request."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Logind request failed."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Logind returned a malformed reply."
+msgstr ""
+
+#: src/session/power.zig
+msgid "Logind returned an unrecognized reply."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Lost contact with login service. Try again."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "MAC address"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Main display"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Make main display"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Make your desktop your own."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Make your mouse and keyboard feel right."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Manage and analyze systemd services."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Manage…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Master volume"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Maximize or restore the focused window."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle height"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle width"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Media"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Media and resolution"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Media and resolution need confirmation against what is loaded in the printer."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Medium"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Memory (resident)"
+msgstr ""
+
+#: src/editor/main.zig
+msgid "Menu"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Menu bottom padding"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu height"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Menu left padding"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu width"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Metadata…"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mic Mute"
+msgstr ""
+
+#: src/osd_paint.zig
+msgid "Mic on"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Microphone volume"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Millimetres"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Mini Map"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Mini map"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Mini map hide delay"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Mini map position"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Modified"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Monday"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Monitor"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "More printing options"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "More settings"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Motion & feedback"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Mount"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Mounted"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Mounting…"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Mouse speed"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move To Workspace"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Move file manager aside"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider down."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider left."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider right."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider up."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to depth {depth}."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to workspace {n} and follow it."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Move this image to Trash?"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Move to Trash"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Move to Trash?"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move to workspace."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Move, resize and overlap windows."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Moved to Trash."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Moving to Trash…"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Music"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute system audio."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute the microphone."
+msgstr ""
+
+#: src/osd_paint.zig
+msgid "Muted"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "My processes"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Name"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Name cannot be empty"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Name: A to Z"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Name: Z to A"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Named pipe"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Natural scroll"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Neither test produced output: check the backend, connection, printer and loaded paper."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Network"
+msgstr ""
+
+#: src/network/popup.zig
+msgid "Network Name (SSID)"
+msgstr ""
+
+#: src/network/popup.zig
+msgid "Network Settings"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Network name"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Network name (SSID)"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Network names must be at most 32 bytes."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Network reachability has not been checked."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager is unavailable"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager unavailable"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "New"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "New Branch"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "New File"
+msgstr ""
+
+#: src/desktop/app_paint.zig
+msgid "New File — Enter creates"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "New File.txt"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "New Folder"
+msgstr ""
+
+#: src/files/app_git_sidebar.zig
+msgid "New branch"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "New password"
+msgstr ""
+
+#: src/chrome_tabs.zig
+msgid "New tab"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Newest first"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Next"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Next account"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Night light"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Night light temperature"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No Bluetooth adapter found"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No Wi-Fi adapter found"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "No active audio streams"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "No active jobs"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No adapter"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "No applications available"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "No applications found"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "No audio device available"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "No changed files"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "No changes were made. Authentication was cancelled or the request failed."
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "No document open. Click 'Open' or press Ctrl+O."
+msgstr ""
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "No images in this folder"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No internet access"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No internet connection"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "No login accounts were found."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "No login service"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "No matching USB device is available to identify its node."
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No matching devices"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "No matching items"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "No matching processes"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "No matching services."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No networks found. Scan to try again."
+msgstr ""
+
+#: src/network/popup.zig
+msgid "No networks found. Try reopening to scan again."
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "No outline in document"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No paired devices. Choose Pair New Device to get started."
+msgstr ""
+
+#: src/battery_popup.zig
+msgid "No power profile service is running."
+msgstr ""
+
+#: src/pdf/main.zig
+msgid "No print service answered (xdg-desktop-portal)."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "No printers configured."
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "No recent files"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "No recent job information is available."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "No sessions available"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "No sessions installed"
+msgstr ""
+
+#: src/control_center/search.zig
+msgid "No settings found"
+msgstr ""
+
+#: src/share_picker/client.zig
+msgid "No sources available."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "No supported backlight"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No supported profiles reported"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "No supported resolution consistently matches both measurements. Check the ruler and print scaling."
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "No terminal directory"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "No transfers yet. Add a .torrent file or magnet link."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "No usblp node was found; CUPS may still use libusb or ipp-usb."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "No user accounts found"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter found"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "None"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Noop"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Normal"
+msgstr ""
+
+#: src/files/worker.zig
+msgid "Not a directory"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Not accepting new jobs"
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "Not authorized to eject {name}"
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "Not authorized to mount {name}"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Not available on this system."
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Not connected"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Not enough free memory to hold this file."
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Not enough memory to display every process"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Not enough memory to load printer status. Refresh to check the result."
+msgstr ""
+
+#: src/pdf/app_document.zig
+msgid "Not enough memory to open this document."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Not enough memory to show this page."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Not enough memory."
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Not found"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "Not saved"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Not specified"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Not supported"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Nothing to add to Places"
+msgstr ""
+
+#: src/notifications/toast.zig
+msgid "Notification"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Notify"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Notify override saved, but the selected type is not active in systemd. Check other service overrides."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Notify sets the service type and applies on its next start. Saving requires administrator authentication."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Notify setting saved. Applies on the next service start."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Number"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "OK"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Off"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Offline"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Oldest first"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "On"
+msgstr ""
+
+#: src/taskbar/battery.zig
+msgid "On Battery"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "One-sided"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Only the owner can change permissions"
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "Only type-2 AppImages are supported"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Open"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Open File"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor, or restore and focus its window."
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Open With"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Open With…"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Open a browser to sign in"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."
+msgstr ""
+
+#: src/pdf/app_keyboard.zig
+msgid "Open another PDF from Files in a new window."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Open files with a single click"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Open in New Window"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open or close the application launcher."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open the session and power menu."
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Opened"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Opened, but could not save the default app"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Opening document..."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Opening…"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Optimize"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Others"
+msgstr ""
+
+#: src/files/git.zig
+msgid "Out of memory"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Outline"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "Output"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Output balance"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Output name"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Output volume"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Output: {name}"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Owner"
+msgstr ""
+
+#: src/pdf/app.zig
+msgid "PDF Viewer"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "PDF document"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "PID"
+msgstr ""
+
+#: src/files/app_sidebar_paint.zig
+msgid "PLACES"
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "PNG and SVG images"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Pack or system default"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Packs include colours and artwork. Personal edits are saved as overrides."
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Pages"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair Device"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair New Device"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Paired Devices"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing code"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Left"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Right"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Up"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Pan and zoom the canvas. Switching back restores your canvas positions and zoom."
+msgstr ""
+
+#: src/control_center/sections/input.zig
+msgid "Pan speed"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Pan to the selected window without changing zoom."
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Paper size"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {paper}"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {width} × {height} mm"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Pass"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Password"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Password (leave empty to use saved)"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Password Required"
+msgstr ""
+
+#: src/files/archive.zig
+msgid "Password-protected archives are not supported yet"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Paste"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Pause"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Pause all"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Pause updates"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Paused"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Pending"
+msgstr ""
+
+#: src/power_profiles.zig
+msgid "Performance"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Permanently delete all trashed files and folders"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Permission denied"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Permission denied. Try Save As in a writable folder."
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Permissions"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Permissions updated"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Pictures"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Pin application"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Pinned & Recent"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Placement"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Places is full"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Please wait for the file operation to finish."
+msgstr ""
+
+#: src/taskbar/battery.zig
+msgid "Plugged In"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Position"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Power"
+msgstr ""
+
+#: src/power_menu.zig
+msgid "Power Off"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Power Profile Cycle"
+msgstr ""
+
+#: src/power_profiles.zig
+msgid "Power Saver"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Power action failed"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Power off"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Power off? Activate Power again to confirm."
+msgstr ""
+
+#: src/battery_popup.zig
+msgid "Power profiles unavailable"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Power request accepted"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Power request denied or unavailable"
+msgstr ""
+
+#: src/session/power.zig
+msgid "Power request failed. Check permissions and applications blocking shutdown."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Power service unavailable"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff Auto"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Press Enter to log in"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Press Enter to unlock"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press keys to record. Esc cancels."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press new shortcut…"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Prevent this device from connecting."
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Previous"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Previous account"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Print"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print a 2 × 3 inch ruler…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print one test"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print one {kind} test on {name}?"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue · {n}"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print test"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Print test page…"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Printer"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer added, enabled and accepting jobs."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Printer address (ipp, ipps, socket or lpd)"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer administration failed; refresh and check the printer status."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer administration timed out. Refresh before trying again."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer administration was cancelled."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer administration was not authorized or was cancelled."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer authorization helper unavailable. Refresh before trying again."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer change applied."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer connection changed."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer discovery complete."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer option applied."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Printer preferences could not be saved safely. Check the existing preferences file."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setting verified."
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Printer settings"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setup requires the local default CUPS server."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Printer status, jobs and connection diagnostics."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer was added, but could not be enabled. Refresh and resume it."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Printers"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Printers are unavailable in the greeter."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Printing"
+msgstr ""
+
+#: src/pdf/main.zig
+msgid "Printing is not available."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Printing preferences"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Problem"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Process data unavailable"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Processes"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Processing"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles appear after pairing"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Progress"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Projects"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Properties"
+msgstr ""
+
+#: src/desktop/app_paint.zig
+msgid "Properties — Escape closes"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Put the computer to sleep."
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Put your device in pairing mode. Nearby devices appear here."
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Quality"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Queue"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Queue identifier"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Queue media and resolution could not be read."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Queue name"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Queue paper setting: {paper}. Check that this matches the loaded paper."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Queue rename only partly completed. Refresh and check both queues before retrying."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Queue rename request completed. Check the refreshed queues and options."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Queue: {name}"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Quick Launch"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Quit"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "REDIWM_SCALE sets scaling; restart to apply Xwayland changes."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "RIGHT"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Radius"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Raw queue (printer commands only)"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Raw sample resolution (dpi)"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Read"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Read only"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Ready"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Ready to pair"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Reapply the intended paper, resolution or driver option, then refresh to verify the result."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot Auto"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Recent"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Recommended Apps"
+msgstr ""
+
+#: src/files/app.zig
+msgid "RediWM Files"
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "RediWM Files (built-in)"
+msgstr ""
+
+#: src/toplevel/info.zig
+msgid "RediWM Settings"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "RediWM dock"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Reduce blue light with a warm tint"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Reduced motion"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Refresh"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Refresh rate"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Region"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Region & Language"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Regional formats"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Regional formats are unavailable for this session."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Remember loaded paper size"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Remove"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Remove from Places"
+msgstr ""
+
+#: src/taskbar/window_menu.zig
+msgid "Remove from dock"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer {name} ({queue})? This deletes its queue and settings."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer…"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Remove theme"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Remove this printer"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Remove · keep files"
+msgstr ""
+
+#: src/desktop/app_actions.zig
+msgid "Rename"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Rename (R)"
+msgstr ""
+
+#: src/desktop/app_paint.zig
+msgid "Rename — Enter saves, Escape cancels"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Renamed successfully"
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Rendering page {value}..."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Reopen running apps to use the selected language."
+msgstr ""
+
+#: src/control_center/sections/input.zig
+msgid "Repeat delay"
+msgstr ""
+
+#: src/control_center/sections/input.zig
+msgid "Repeat rate"
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "Replace"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Replace installed theme"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Report copied"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Reports omit document names, user names, USB serials and private printer addresses."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Request accepted. Status updates when the job completes."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "Requesting CUPS start; authorization may be required…"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Requesting power action…"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Reserved file name"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Reserved folder name"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Reset theme"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Reset to Default"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to default"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to theme"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Left"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Right"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Up"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Resolution"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: Unavailable"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: {x} × {y} dpi"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Resolve the reported printer problem before resuming the queue."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Response"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Restart"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart Shell"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the computer."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the desktop shell."
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Restart? Activate Restart again to confirm."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Layout"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Shortcuts"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore a saved layout."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore layout: {name}"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the desktop zoom."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the focused window's size."
+msgstr ""
+
+#: src/calculator/model.zig
+msgid "Result is too large"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Resume"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Resume printer"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Resume updates"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Review login accounts and automatic-login settings."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Review the suggested resolution, then apply it explicitly."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Right"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Rotate"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Rotate the nearest tiled split."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Rotation"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Round"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Running"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgid "SOUND"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Same as theme"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Same folder, or enter an absolute path."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Saturday"
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Save As"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save Layout"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Save a PNG copy"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Save as"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Save as…"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Save changes before closing?"
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save current look as theme"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Save display name"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Save groups"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save layout: {name}"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Save look…"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Save name"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Save password"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save shortcut"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save the window layout."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Save theme"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Save your edits?"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Saved"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Saved PNG copy."
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved for RediWM, but could not update the system folder association."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Saved for your user’s RediWM session only; system defaults are unchanged."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Saved {name}"
+msgstr ""
+
+#: src/control_center/sections/portals.zig
+msgid "Saved. Changes apply next time you sign in."
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Saved. You can change these later in Settings."
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved. Your choice applies immediately."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Saving a large file. Editing resumes when it is written."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Saving image…"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Saving…"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Scanning folder..."
+msgstr ""
+
+#: src/start_menu/search.zig
+msgid "Scanning installed apps"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens tall (1–10)"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens wide (1–10)"
+msgstr ""
+
+#: src/screenshot/selector.zig
+msgid "Screenshot"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Output"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Region"
+msgstr ""
+
+#: src/screenshot/capture.zig
+msgid "Screenshot failed"
+msgstr ""
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved and copied"
+msgstr ""
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved; clipboard failed"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshots"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop above."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop below."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the left."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the right."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Scrollbar width"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Search applications…"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Search devices…"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Search name, PID or user"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Search services…"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Search settings"
+msgstr ""
+
+#: src/control_center/search.zig
+msgid "Search settings…"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Search this folder"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Search: {query}"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Searching for networks…"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Secured"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Security"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "See your position while navigating. Drag the highlighted view to pan."
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 1"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 2"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Seed: stop at finish"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "Seeding"
+msgstr ""
+
+#: src/files/app_chooser.zig
+msgid "Select"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Select a device"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Select a process first"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "Select an existing queue or add the printer again."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Select one item to view its properties"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "Selected files"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "Selected items"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Selected process"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Service"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Service changes are unlocked for this session."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Services"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Services taking at least 1 second to activate."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Session"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Session ›"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Set Depth"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Set as my default"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Set as system default"
+msgstr ""
+
+#: src/Dock.zig
+msgid "Settings"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Shadow"
+msgstr ""
+
+#: src/share_picker/client.zig
+msgid "Share screen"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Sharp"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shortcut already in use. Try another."
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Show Paired Devices"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Show Trash"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Show all groups"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Show changed files"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Show curated"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Show day"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Show full paths"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Show hidden files"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Show in folder"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Show launch splash"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Show mini map"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Show more"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Show seconds"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shut down the computer."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Sides: {sides}"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Sign-in cancelled"
+msgstr ""
+
+#: src/session/greeter.zig
+msgid "Sign-in failed"
+msgstr ""
+
+#: src/session/greeter.zig
+msgid "Sign-in failed: {reason}"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Sign-in required"
+msgstr ""
+
+#: src/session/greeter.zig
+msgid "Signing in…"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Single-click file and folder icons"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Size"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Size to screen"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Sized to fit your screen · move a slider to set your own"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Skip (S)"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Sleep"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Sleeping"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Slightly darken and mute windows that are not focused"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Slow"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Small"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Smallest first"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a bottom quarter, or restore it."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a top quarter, or maximize it."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the left half."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the right half."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Snapped window gap"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Socket"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Soft"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Some groups cannot be safely shown; group changes are disabled."
+msgstr ""
+
+#: src/systemd.zig
+msgid "Some startup times are unavailable."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Space / Esc to close · Arrow keys to browse"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Spawn"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Speed"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Standard"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Start"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Start CUPS"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Start button gap"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Start button icon size"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Start button logo"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Start download"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Start menu"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Start menu height"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Start menu logo"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Start menu size"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Start mode"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Start using RediWM"
+msgstr ""
+
+#: src/session/greeter.zig
+msgid "Starting session…"
+msgstr ""
+
+#: src/systemd.zig
+msgid "Startup setting saved. Running status is unchanged."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Startup settings apply at boot. Deferred is coming later."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Startup time"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "State"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "State unavailable"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Status"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Stop"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Stop Searching"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Stop accepting jobs"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Stop seeding"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "Stopped"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Strong"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Suggested supported resolution: {x} × {y} dpi"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Sunday"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend Auto"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Left"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Right"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Up"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile down."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile left."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile right."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile up."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next power profile."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next window."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the previous window."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to workspace {n}."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch workspace."
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Switched branch"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Switched to {name}"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Symbolic link"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "System"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "System Monitor"
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "System bus connection lost. Reopen Printers to reconnect."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "System bus disconnected during printer administration."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "System default"
+msgstr ""
+
+#: src/start_menu/search.zig
+msgid "System preferences, display, appearance and input"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Systemd is unavailable."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Take shortcuts back from a virtual machine or remote desktop."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Takes effect at next boot. The keyring will not unlock automatically."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Tap to click"
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Target name already exists"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar clock. The date uses your regional format."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar corner radius"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar edge gap"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar gap from edge"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar items"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar length"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar position"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar sections"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Taskbar theme"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar, calendar, lock screen and new apps."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Temporarily show the selected window at full size; keep desktop zoom."
+msgstr ""
+
+#: src/Dock.zig
+msgid "Terminal"
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "Terminal helper is unavailable"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Terminal opacity"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Terminal opacity (new windows)"
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "Terminal paste exceeds the available input queue"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Termination requested"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Test without the driver…"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Text file"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Text files are limited to 4 GiB."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Text not found"
+msgstr ""
+
+#: src/images/app.zig
+msgid "That file already exists. Choose another name."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "That file is open in another tab. Choose a different name."
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "The AppImage contains more than one application launcher"
+msgstr ""
+
+#: src/files/appimage.zig
+msgid "The AppImage has no usable application launcher"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The CUPS USB backend uses libusb; a usblp node is not required."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "The CUPS client configuration could not be read or is invalid."
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "The RediWM block in gtk.css is incomplete. Repair it before applying colors."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The available queue settings match the supplied media or resolution expectations."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen stays on."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen turns off while another display is connected."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The character-device path used by this queue is missing."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The current printer resolution is unavailable."
+msgstr ""
+
+#: src/files/main.zig
+msgid "The destination folder is unavailable"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The device address matches; successful communication has not been confirmed."
+msgstr ""
+
+#: src/pdf/main.zig
+msgid "The document could not be printed."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The driver did not report the requested value. Review its settings before printing."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The driver reports label media."
+msgstr ""
+
+#: src/files/main.zig
+msgid "The drop timed out"
+msgstr ""
+
+#: src/files/main.zig
+msgid "The dropped list failed or exceeded 1 MiB"
+msgstr ""
+
+#: src/files/app_terminal.zig
+msgid "The dropped paths are invalid or too long"
+msgstr ""
+
+#: src/images/app.zig
+msgid "The file changed. Please try again."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The file type of the queue's device-node path could not be read."
+msgstr ""
+
+#: src/images/app.zig
+msgid "The filename is too long."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The last job has not completed."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The last job reports a backend connection problem."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The last job reports a document or filter failure."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The last job was aborted or stopped."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The last job was canceled."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The matching USB device has no printer-class interface."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The matching USB printer was not found."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The matching device-node file type could not be read."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The network printer did not answer."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The printer answered an IPP request."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The printer change could not be requested."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The printer no longer exists. Refresh before retrying."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "The printer or job no longer exists. Refresh the list."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The printer queue is not accepting new jobs."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The printer queue is stopped."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "The queue changed, but personal preferences could not be moved. Check your default printer."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue could not be checked without a CUPS response."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue exists, but its state or acceptance of jobs is unknown."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue exists, is enabled, and accepts jobs."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The queue identifier change could not be verified. Review the printer list before retrying."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue resolution differs from the expected resolution."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue's character device exists; backend access has not been tested."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue's default media differs from the expected media."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue's device address does not match the selected printer."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The queue's device-node path is a regular file or another wrong file type."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "The selected queue was not found."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable; start CUPS using your distribution's service tools."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Theme"
+msgstr ""
+
+#: src/files/worker.zig
+msgid "Theme installed. Choose it in Settings → Appearance."
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed."
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed: {reason}"
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme packs"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Themes & colours"
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "This CUPS server does not support the requested operation."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "This backend needs a character device, but no matching node was found."
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "This cannot be undone."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "This capability has no selectable queue default in the current driver."
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "This connection has no direct presence check."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "This file contains binary data and cannot be edited as text."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "This file has multiple hard links. Use Save As to create a separate copy."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "This file is not valid UTF-8 text."
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "This folder is empty"
+msgstr ""
+
+#: src/images/app.zig
+msgid "This image has unsaved changes."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "This is a label printer"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "This output does not advertise editable display modes."
+msgstr ""
+
+#: src/printing/cups.zig
+msgid "This print server requires an unsupported encrypted or authenticated connection."
+msgstr ""
+
+#: src/printing/admin.zig
+msgid "This printer belongs to a CUPS class. Manage its class membership before renaming it here."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "This range has no selectable queue setting in the current driver."
+msgstr ""
+
+#: src/files/git.zig
+msgid "This repository runs its own programs; switch branches in a terminal"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "This security type needs a network configuration tool."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "This setting is unavailable on this device or in the current mode."
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "This transfer is no longer available."
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Thursday"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Left"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Right"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Up"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Tiling"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Time"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Time & Date"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Time zone"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Titlebar height"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Floating"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Fullscreen"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Launcher"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Maximize"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Power Menu"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Split"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Workspace Tiling"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle automatic tiling for the current workspace."
+msgstr ""
+
+#: src/pdf/app_paint.zig
+msgid "Toggle sidebar"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle the focused window between floating and automatic tiling."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Top"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Torrent file or magnet link"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Touchpad speed"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Transfer"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Transfer request could not be sent. Please retry."
+msgstr ""
+
+#: src/files/ops.zig
+msgid "Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Transferring {current}/{total}: {name}... (Esc to cancel)"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "Transferring..."
+msgstr ""
+
+#: src/files/app.zig
+msgid "Transfers"
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Transfers disconnected. Reopen Transfers to reconnect."
+msgstr ""
+
+#: src/files/torrents.zig
+msgid "Transfers is disconnected. Reopen Transfers to reconnect."
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Transfers needs attention"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Transform"
+msgstr ""
+
+#: src/Dock.zig
+msgid "Trash"
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Trash emptied"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Trash is unavailable: install gio to use it."
+msgstr ""
+
+#: src/files/app_fileops.zig
+msgid "Trash unavailable (gio not installed)"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Treble"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Troubleshooting"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Trusted Device"
+msgstr ""
+
+#: src/control_center/search.zig
+msgid "Try a setting name, such as volume, wallpaper or scroll."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Try one language sample…"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Tuesday"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Turn off screen"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Turned off"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Two-sided printing"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Two-sided, long edge"
+msgstr ""
+
+#: src/printing/options.zig
+msgid "Two-sided, short edge"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Type"
+msgstr ""
+
+#: src/desktop/app_paint.zig
+msgid "Type to search applications — Enter chooses"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Type to search…"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Type: A to Z"
+msgstr ""
+
+#: src/files/app_menu.zig
+msgid "Type: Z to A"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "UI font"
+msgstr ""
+
+#: src/printing/ladder.zig
+msgid "USB presence or queue-to-device identity could not be established."
+msgstr ""
+
+#: src/files/app_dialogs.zig
+msgid "Unable to prepare deletion"
+msgstr ""
+
+#: src/session/lock.zig
+msgid "Unable to unlock. Try again."
+msgstr ""
+
+#: src/battery_popup.zig
+msgid "Unavailable"
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Unavailable: {name}"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Undo edits"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo the last layout change."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Unknown"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Unknown key"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Unlock"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "Unlock to make account changes."
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Unlock to make service changes."
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Unmanaged"
+msgstr ""
+
+#: src/files/app_model.zig
+msgid "Unpin"
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Unpin an application first (five pins maximum)."
+msgstr ""
+
+#: src/start_menu/panel.zig
+msgid "Unpin application"
+msgstr ""
+
+#: src/taskbar/window_menu.zig
+msgid "Unpin from dock"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Unsaved edits will be discarded."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo"
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Unsaved work will be lost."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Unsupported image, missing decoder, or file unavailable"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Untitled"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Up"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Updating Wi-Fi…"
+msgstr ""
+
+#: src/files/app_layout.zig
+msgid "Upload"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Upload: 1 MiB/s"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "Upload: 128 KiB/s"
+msgstr ""
+
+#: src/power_menu.zig
+msgid "Uptime unavailable"
+msgstr ""
+
+#: src/power_menu.zig
+msgid "Uptime {hours}h {minutes}m"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Use 24-hour time"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Use 8–63 characters or a 64-digit hex key."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Use a .png filename to save a PNG copy."
+msgstr ""
+
+#: src/control_center/folder_picker.zig
+msgid "Use folder"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue identifier."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue name."
+msgstr ""
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Use logo"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Use suggested resolution"
+msgstr ""
+
+#: src/control_center/sections/default_apps.zig
+msgid "Used for desktop folders, app shortcuts and apps that run in a terminal."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "User"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Username"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Users"
+msgstr ""
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Uses the main theme. Apply again after changing it; restart apps to see the colors."
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Vertical Pan"
+msgstr ""
+
+#: src/files/app.zig
+msgid "Videos"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "View its connection, battery and device settings."
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "Volume"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Down"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Mute"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Up"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Volume, microphones and output devices."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "WPA2 / WPA3 Personal"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "WPA3 Personal"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Wait for the current printer operation to finish."
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Waiting for authentication service…"
+msgstr ""
+
+#: src/control_center/sections/services.zig
+msgid "Waiting for authentication…"
+msgstr ""
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Waiting for the device…"
+msgstr ""
+
+#: src/polkit/dialog.zig
+msgid "Waiting…"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Wallpaper"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Weak"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "Wednesday"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "Welcome to RediWM"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "When the lid is closed"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Where desktop icons appear."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "While dragging a file out of it"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Wi-Fi"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is disabled by the hardware switch"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is turned off"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Wi-Fi network"
+msgstr ""
+
+#: src/network/manager.zig
+msgid "Wi-Fi request failed. Check credentials and permissions."
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Window Management"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Window and panel transitions"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome darkness"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome height"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome opacity"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Window control gap"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window control spacing"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window darkness"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window item gap"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window item width"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window opacity"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window shadow"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window spacing"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Window switching zoom"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Window tabs"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Windows"
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Wired and wireless connections."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "Wireless connections"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Word Wrap"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Working…"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Next"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Prev"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Workspace layout"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace {n}"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspaces"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspaces · Hyprland-style preset"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "Write"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "Xwayland scale"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland scale (global)"
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Changes require a compositor restart."
+msgstr ""
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Restart the compositor to apply {pending}×."
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "You"
+msgstr ""
+
+#: src/control_center/welcome.zig
+msgid "You can change these later in Settings."
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "You can restore it later from Trash."
+msgstr ""
+
+#: src/images/app.zig
+msgid "You can restore the file from Trash."
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "You can restore them later from Trash."
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "You're connected to this network"
+msgstr ""
+
+#: src/control_center/sections/network.zig
+msgid "You're online."
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "Your default printer"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "Your desktop panning area."
+msgstr ""
+
+#: src/control_center/panel.zig
+msgid "Your language, regional formats and calendar preferences."
+msgstr ""
+
+#: src/editor/app.zig
+msgid "Your unsaved changes will be lost if you discard them."
+msgstr ""
+
+#: src/system_monitor/app.zig
+msgid "Zombie"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom In"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Out"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Reset"
+msgstr ""
+
+#: src/images/app.zig
+msgid "Zoom in"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom into the desktop canvas."
+msgstr ""
+
+#: src/images/app.zig
+msgid "Zoom out"
+msgstr ""
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom out of the desktop canvas."
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "Zoom the desktop to the selected window's level; fade windows passed by the camera."
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "accessibility animations"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "application colours theme"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "application shell console"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "applications titlebar grouping"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "autologin boot"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "backend gtk kde dialogs"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "background desktop image folder"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "backlight screen light"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "blue light warm screen"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "buttons close maximize minimize"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "bytes"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "calendar monday sunday"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "canvas workspaces tiling"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "chooser portal"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "chrome tint"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "clock battery tray notifications capture"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "colors colours dark light preset"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "date weekday"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "defaults restore"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "delete pack"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "desktop panning"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "double click folders"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "drag drop windows"
+msgstr ""
+
+#: src/notifications/toast.zig
+msgid "earlier"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "edge pan transitions"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "effects motion"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "enable apps launcher"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "export look"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "files folders application"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "gaps tiling"
+msgstr ""
+
+#: src/files/git.zig
+msgid "git switch failed"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "hide automatically"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "hotkeys keybindings bindings terminal screenshot volume brightness workspaces"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "icons pack"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "import pack"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "keep icons in place"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "keyboard trackpad"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "laptop suspend sleep"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "launcher icon image"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "launcher size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "launcher width"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "left right speakers"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "light appearance theme"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "locale numbers currency dates"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "locale translation"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "logo launcher"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "lowercase username"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "magnification mouse"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "minimap overview"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "motion duration"
+msgstr ""
+
+#: src/notifications/toast.zig
+msgid "now"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "orientation portrait landscape screen"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "overview location"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "overview timeout"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "panel colors colours"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "panel height"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "panel margin"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "panel rounded"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "panel top bottom"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "panel width"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "pointer acceleration sensitivity"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "pointer mouse"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "printing cups add queue jobs paper driver label"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "recycle bin"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "rounded"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "rounded windows"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "rows columns panning area"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "rules tiling windows"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "running apps indicator"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "screen frequency hz"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "screen output"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "screen position monitors main display"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "screen scaling dpi zoom"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "screen size pixels"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "scrolling direction reverse invert mouse touchpad"
+msgstr ""
+
+#: src/start_menu/search.zig
+msgid "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "shadows"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer high frequencies"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer low frequencies"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "sound input recording mute"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "sound speakers loudness mute"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "spacing tiled margin"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "speakers headphones sound default"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "start menu spacing"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "startup welcome animation"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "systemd startup boot daemon unit enabled failed slow"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip spacing"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "taskbar launcher spacing"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "text size accessibility"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "thickness scrolling accessibility"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "tiling master stack"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "time"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "time am pm"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "time taskbar font"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "top bottom left right"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "touchpad trackpad"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "trackpad acceleration sensitivity"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "transparency"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "transparency chrome"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "transparency unfocused"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "typeface text"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "typing keys"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "typing keys speed"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "unfocused darkness"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "users login password administrator groups"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "warmth colour color"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "window borders"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "window chrome"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "window focus"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "window moving"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "window moving size"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "wired internet adapter"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "wireless internet wlan hotspot hidden network"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "wireless pairing paired headphones mouse keyboard"
+msgstr ""
+
+#: src/control_center/search_index.zig
+msgid "x11 legacy apps scaling"
+msgstr ""
+
+#: src/session/power.zig
+msgid "{action} failed"
+msgstr ""
+
+#: src/control_center/sections/desktop.zig
+msgid "{columns} × {rows} · {n} screen total"
+msgid_plural "{columns} × {rows} · {n} screens total"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/files/app_paint.zig
+msgid "{count} item selected · {size}"
+msgid_plural "{count} items selected · {size}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/files/open_with.zig
+msgid "{count} selected file"
+msgid_plural "{count} selected files"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/delete_dialog.zig
+msgid "{count} selected item"
+msgid_plural "{count} selected items"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/files/app_paint.zig
+msgid "{count} transfer · Downloads continue after closing Files."
+msgid_plural "{count} transfers · Downloads continue after closing Files."
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/notifications/toast.zig
+msgid "{count}h ago"
+msgstr ""
+
+#: src/notifications/toast.zig
+msgid "{count}m ago"
+msgstr ""
+
+#: src/files/app_paint.zig
+msgid "{count}{more} item"
+msgid_plural "{count}{more} items"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/desktop/app_paint.zig
+msgid "{kind} · {bytes} bytes"
+msgstr ""
+
+#: src/delete_dialog.zig
+msgid "{kind} · {size} {unit}"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "{locale} · RediWM stays in English"
+msgstr ""
+
+#: src/images/app.zig
+msgid "{modified}{name} — Images ({position}/{count})"
+msgstr ""
+
+#: src/editor/app.zig
+msgid "{modified}{name} — Text Editor ({tab}/{tabs})"
+msgstr ""
+
+#: src/files/open_with.zig
+msgid "{name} (default)"
+msgstr ""
+
+#: src/control_center/sections/region.zig
+msgid "{name} ({locale})"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "{name} can be safely removed"
+msgstr ""
+
+#: src/control_center/sections/appearance.zig
+msgid "{name} could not be loaded · showing the default R"
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "{name} is already mounted"
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "{name} is busy"
+msgstr ""
+
+#: src/files/volumes.zig
+msgid "{name} is no longer available"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "{name} is no longer there"
+msgstr ""
+
+#: src/files/app_places.zig
+msgid "{name} mounted"
+msgstr ""
+
+#: src/control_center/sections/users.zig
+msgid "{name} · primary"
+msgstr ""
+
+#: src/pdf/app.zig
+msgid "{name} — PDF Viewer ({page}/{pages})"
+msgstr ""
+
+#: src/files/app.zig
+msgid "{name} — RediWM Files"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "{name}: level unavailable"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "{n} completed sheet reported by CUPS"
+msgid_plural "{n} completed sheets reported by CUPS"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/system_monitor/app.zig
+msgid "{n} process · Swap {swap}{status}"
+msgid_plural "{n} processes · Swap {swap}{status}"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/control_center/sections/services.zig
+msgid "{n} service, {enabled} enabled"
+msgid_plural "{n} services, {enabled} enabled"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/files/app_torrents.zig
+msgid "{rate} KiB/s"
+msgstr ""
+
+#: src/files/properties.zig
+msgid "{size} ({bytes} byte)"
+msgid_plural "{size} ({bytes} bytes)"
+msgstr[0] ""
+msgstr[1] ""
+
+#: src/files/app_places.zig
+msgid "{size} Volume"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "{size} selected · {path}"
+msgstr ""
+
+#: src/control_center/sections/printers.zig
+msgid "{value} (supported {min}–{max})"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "{value} active · {rate} KiB/s"
+msgstr ""
+
+#: src/files/app_torrents.zig
+msgid "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+msgstr ""
+
+#: src/files/app_torrent_rows.zig
+msgid "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "L"
+msgstr ""
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "R"
+msgstr ""
+
+#: src/session/lock.zig
+msgctxt "date"
+msgid "%A, %B %-d"
+msgstr ""
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%A, %B %-d, %Y"
+msgstr ""
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%B %Y"
+msgstr ""
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Comment"
+msgid "Browse, open and manage local files and folders"
+msgstr ""
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Comment"
+msgid "Download torrents and magnet links in Files"
+msgstr ""
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Comment"
+msgid "Edit text files in tabs"
+msgstr ""
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Comment"
+msgid "RediWM Wayland compositor"
+msgstr ""
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Comment"
+msgid "Simple arithmetic calculator"
+msgstr ""
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Comment"
+msgid "Validate and install a RediWM theme pack"
+msgstr ""
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Comment"
+msgid "View CPU, memory and processes"
+msgstr ""
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Comment"
+msgid "View PDF documents with RediWM"
+msgstr ""
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Comment"
+msgid "View images with RediWM"
+msgstr ""
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:GenericName"
+msgid "File Manager"
+msgstr ""
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Keywords"
+msgid "arithmetic;math;calculate;"
+msgstr ""
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Keywords"
+msgid "files;folder;browser;explorer;manager;"
+msgstr ""
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Keywords"
+msgid "process;task;CPU;memory;performance;"
+msgstr ""
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Name"
+msgid "Calculator"
+msgstr ""
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Name"
+msgid "Files Transfers"
+msgstr ""
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Name"
+msgid "Image Viewer"
+msgstr ""
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Name"
+msgid "Install theme"
+msgstr ""
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Name"
+msgid "PDF Viewer"
+msgstr ""
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Name"
+msgid "RediWM"
+msgstr ""
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Name"
+msgid "RediWM Files"
+msgstr ""
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Name"
+msgid "System Monitor"
+msgstr ""
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Name"
+msgid "Text Editor"
+msgstr ""
+
+#: data/org.rediwm.accounts.policy
+msgctxt "polkit"
+msgid "Authentication is required to manage login accounts"
+msgstr ""
+
diff --git a/po/ru.po b/po/ru.po
new file mode 100644
index 0000000..097a9a3
--- /dev/null
+++ b/po/ru.po
@@ -0,0 +1,7589 @@
+# Russian translation draft for RediWM.
+# Machine-drafted; fuzzy flags removed by the maintainer, native review pending.
+# Native review and screenshot/layout review are still required.
+msgid ""
+msgstr ""
+"Project-Id-Version: RediWM\n"
+"PO-Revision-Date: 2026-10-20 00:00+0000\n"
+"Last-Translator: Unreviewed machine draft\n"
+"Language-Team: Russian (native review pending)\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-RediWM-Native-Name: Русский\n"
+"X-RediWM-Locale: ru_RU.UTF-8\n"
+"X-RediWM-Reviewed: no\n"
+
+#: src/system_monitor/app.zig
+msgid " · /proc unavailable"
+msgstr " · /proc недоступен"
+
+#: src/control_center/sections/printers.zig
+msgid " · Default"
+msgstr " · По умолчанию"
+
+#: src/system_monitor/app.zig
+msgid " · List limited"
+msgstr " · Список ограничен"
+
+#: src/system_monitor/app.zig
+msgid " · Paused"
+msgstr " · Приостановлено"
+
+#: src/system_monitor/app.zig
+msgid " · Some processes unavailable"
+msgstr " · Некоторые процессы недоступны"
+
+#: src/control_center/sections/printers.zig
+msgid " · System default"
+msgstr " · Системный по умолчанию"
+
+#: src/control_center/sections/desktop.zig
+msgid "1 second"
+msgstr "1 секунда"
+
+#: src/control_center/sections/desktop.zig
+msgid "1.5 seconds"
+msgstr "1,5 секунды"
+
+#: src/control_center/welcome.zig
+msgid "100%"
+msgstr "100%"
+
+#: src/control_center/welcome.zig
+msgid "125%"
+msgstr "125%"
+
+#: src/control_center/welcome.zig
+msgid "150%"
+msgstr "150%"
+
+#: src/control_center/welcome.zig
+msgid "175%"
+msgstr "175%"
+
+#: src/control_center/sections/display.zig
+msgid "180°"
+msgstr "180°"
+
+#: src/control_center/sections/desktop.zig
+msgid "2 seconds"
+msgstr "2 секунды"
+
+#: src/control_center/welcome.zig
+msgid "200%"
+msgstr "200%"
+
+#: src/control_center/search_index.zig
+msgid "24-hour clock"
+msgstr "24-часовой формат"
+
+#: src/control_center/welcome.zig
+msgid "250%"
+msgstr "250%"
+
+#: src/control_center/sections/display.zig
+msgid "270°"
+msgstr "270°"
+
+#: src/control_center/sections/desktop.zig
+msgid "3 seconds"
+msgstr "3 секунды"
+
+#: src/control_center/welcome.zig
+msgid "300%"
+msgstr "300%"
+
+#: src/control_center/sections/desktop.zig
+msgid "5 seconds"
+msgstr "5 секунд"
+
+#: src/system_monitor/app.zig
+msgid "60 seconds"
+msgstr "60 секунд"
+
+#: src/control_center/sections/display.zig
+msgid "90°"
+msgstr "90°"
+
+#: src/printing/ladder.zig
+msgid "A USB character device is not applicable to this connection."
+msgstr "Символьное устройство USB неприменимо к этому подключению."
+
+#: src/files/app_opening.zig
+msgid "A file operation is already running"
+msgstr "Файловая операция уже выполняется"
+
+#: src/files/app_chooser.zig
+msgid "A file with this name exists. Replace it?"
+msgstr "Файл с таким именем уже существует. Заменить его?"
+
+#: src/printing/ladder.zig
+msgid "A matched device-node path is a regular file or another wrong file type."
+msgstr "Подходящий путь узла устройства является обычным файлом или имеет другой неподходящий тип."
+
+#: src/printing/ladder.zig
+msgid "A matching USB printer interface is attached."
+msgstr "Подключён соответствующий интерфейс USB-принтера."
+
+#: src/printing/ladder.zig
+msgid "A matching character device exists; backend access has not been tested."
+msgstr "Подходящее символьное устройство существует; доступ через модуль подключения не проверен."
+
+#: src/control_center/sections/printers.zig
+msgid "A printer with this queue name already exists. Choose another name."
+msgstr "Принтер с таким именем очереди уже существует. Выберите другое имя."
+
+#: src/control_center/sections/printers.zig
+msgid "A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."
+msgstr "Очередь без драйвера передаёт команды без изменений; для обычной печати PDF нужен совместимый драйвер."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."
+msgstr "Папка настроек графического инструментария является символической ссылкой. Примените цвета по её настоящему пути или замените ссылку обычной папкой."
+
+#: src/control_center/sections/appearance.zig
+msgid "APPEARANCE"
+msgstr "ОФОРМЛЕНИЕ"
+
+#: src/printing/cups.zig
+msgid "Aborted"
+msgstr "Прервано"
+
+#: src/control_center/sections/printers.zig
+msgid "Accept jobs"
+msgstr "Принимать задания"
+
+#: src/control_center/sections/users.zig
+msgid "Account details · {name}"
+msgstr "Сведения об учётной записи · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Account settings are unlocked for this session."
+msgstr "Настройки учётных записей разблокированы до конца этого сеанса."
+
+#: src/control_center/sections/users.zig
+msgid "Account type"
+msgstr "Тип учётной записи"
+
+#: src/control_center/search_index.zig
+msgid "Accounts"
+msgstr "Учётные записи"
+
+#: src/control_center/sections/services.zig
+msgid "Activated by: {name}"
+msgstr "Активировано: {name}"
+
+#: src/files/open_with.zig
+msgid "Add Application Shortcut"
+msgstr "Добавить ярлык приложения"
+
+#: src/desktop/app_actions.zig
+msgid "Add Application…"
+msgstr "Добавить приложение…"
+
+#: src/files/open_with.zig
+msgid "Add Shortcut"
+msgstr "Добавить ярлык"
+
+#: src/control_center/sections/printers.zig
+msgid "Add a printer"
+msgstr "Добавить принтер"
+
+#: src/files/app_model.zig
+msgid "Add to applications"
+msgstr "Добавить в приложения"
+
+#: src/files/app_torrents.zig
+msgid "Add torrent…"
+msgstr "Добавить торрент…"
+
+#: src/control_center/sections/users.zig
+msgid "Add user"
+msgstr "Добавить пользователя"
+
+#: src/control_center/sections/users.zig
+msgid "Add user…"
+msgstr "Добавить пользователя…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images"
+msgstr "Добавьте свои изображения"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Add your own images to {folder}"
+msgstr "Добавьте свои изображения в {folder}"
+
+#: src/files/app_places.zig
+msgid "Added to Places"
+msgstr "Добавлено в «Места»"
+
+#: src/files/worker.zig
+msgid "Added to applications. Keep the AppImage in its current location."
+msgstr "Добавлено в приложения. Оставьте AppImage в текущем расположении."
+
+#: src/files/app_places.zig
+msgid "Added {value} items to Places"
+msgstr "В «Места» добавлено объектов: {value}"
+
+#: src/files/app_places.zig
+msgid "Added {value} to Places"
+msgstr "{value} добавлено в «Места»"
+
+#: src/files/app_opening.zig
+msgid "Adding to applications…"
+msgstr "Добавление в приложения…"
+
+#: src/network/manager.zig
+msgid "Additional setup required"
+msgstr "Нужна дополнительная настройка"
+
+#: src/control_center/sections/printers.zig
+msgid "Address checks support IPP printers. Other connections can be tested with an explicit print after setup."
+msgstr "Проверка адреса поддерживается для принтеров IPP. Другие подключения можно проверить пробной печатью после настройки."
+
+#: src/control_center/sections/users.zig
+msgid "Administrator"
+msgstr "Администратор"
+
+#: src/polkit/dialog.zig
+msgid "Administrator privileges are required to continue."
+msgstr "Для продолжения нужны права администратора."
+
+#: src/control_center/sections/services.zig
+msgid "All"
+msgstr "Все"
+
+#: src/files/open_with.zig
+msgid "All Applications"
+msgstr "Все приложения"
+
+#: src/files/app_chooser.zig
+msgid "All files"
+msgstr "Все файлы"
+
+#: src/delete_dialog.zig
+msgid "All items in Trash"
+msgstr "Всё содержимое корзины"
+
+#: src/system_monitor/app.zig
+msgid "All processes"
+msgstr "Все процессы"
+
+#: src/desktop/app_actions.zig
+msgid "Allow Launching"
+msgstr "Разрешить запуск"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow connections from this device without asking."
+msgstr "Разрешить подключения с этого устройства без подтверждения."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Allow pairing with this device?"
+msgstr "Разрешить сопряжение с этим устройством?"
+
+#: src/files/app_places.zig
+msgid "Already in Places"
+msgstr "Уже есть в «Местах»"
+
+#: src/files/open_with.zig
+msgid "Always use this app for this file type"
+msgstr "Всегда открывать файлы этого типа в этом приложении"
+
+#: src/files/open_with.zig
+msgid "Always use this app for {value} files"
+msgstr "Всегда открывать файлы {value} в этом приложении"
+
+#: src/files/app_opening.zig
+msgid "An application is already being added"
+msgstr "Приложение уже добавляется"
+
+#: src/control_center/sections/services.zig
+msgid "Analyze"
+msgstr "Анализировать"
+
+#: src/control_center/sections/services.zig
+msgid "Analyzing…"
+msgstr "Анализ…"
+
+#: src/control_center/search_index.zig
+msgid "Animation speed"
+msgstr "Скорость анимации"
+
+#: src/control_center/search_index.zig
+msgid "Animations"
+msgstr "Анимации"
+
+#: src/session/power.zig
+msgid "Another power action is already in progress."
+msgstr "Уже выполняется другое действие с питанием."
+
+#: src/control_center/sections/appearance.zig
+msgid "App colors"
+msgstr "Цвета приложений"
+
+#: src/control_center/sections/sound.zig
+msgid "App streams"
+msgstr "Звуковые потоки приложений"
+
+#: src/control_center/panel.zig
+msgid "Appearance"
+msgstr "Внешний вид"
+
+#: src/files/appimage.zig
+msgid "Application added, but some file or link associations could not be registered"
+msgstr "Приложение добавлено, но некоторые связи с типами файлов или ссылками не удалось зарегистрировать"
+
+#: src/start_menu/launch.zig
+msgid "Application could not be started"
+msgstr "Не удалось запустить приложение"
+
+#: src/control_center/search_index.zig
+msgid "Application language"
+msgstr "Язык приложений"
+
+#: src/start_menu/panel.zig
+msgid "Applications"
+msgstr "Приложения"
+
+#: src/control_center/sections/desktop.zig
+msgid "Applies to output edges and the space between automatic tiles."
+msgstr "Применяется к краям экрана и промежуткам между автоматически размещёнными окнами."
+
+#: src/images/app.zig
+msgid "Apply"
+msgstr "Применить"
+
+#: src/control_center/search_index.zig
+msgid "Apply GTK colors"
+msgstr "Применить цвета GTK"
+
+#: src/control_center/search_index.zig
+msgid "Apply Qt colors"
+msgstr "Применить цвета Qt"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply connection"
+msgstr "Применить подключение"
+
+#: src/images/app.zig
+msgid "Apply crop"
+msgstr "Применить обрезку"
+
+#: src/images/app.zig
+msgid "Apply crop · Enter"
+msgstr "Применить обрезку · Enter"
+
+#: src/control_center/sections/printers.zig
+msgid "Apply value"
+msgstr "Применить значение"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Applying app colors…"
+msgstr "Применение цветов приложений…"
+
+#: src/printing/admin.zig
+msgid "Applying printer change; authorization may be required…"
+msgstr "Применение изменения принтера; может потребоваться авторизация…"
+
+#: src/start_menu/panel.zig
+msgid "Apps"
+msgstr "Приложения"
+
+#: src/control_center/sections/appearance.zig
+msgid "Apps and web pages"
+msgstr "Приложения и веб-страницы"
+
+#: src/files/archive.zig
+msgid "Archive contains an unsafe path"
+msgstr "Архив содержит небезопасный путь"
+
+#: src/files/archive.zig
+msgid "Archive contains unsupported links or special files"
+msgstr "Архив содержит неподдерживаемые ссылки или специальные файлы"
+
+#: src/files/archive.zig
+msgid "Archive has too many entries"
+msgstr "В архиве слишком много элементов"
+
+#: src/files/archive.zig
+msgid "Archive is corrupt or unsupported"
+msgstr "Архив повреждён или имеет неподдерживаемый формат"
+
+#: src/control_center/welcome.zig
+msgid "Arrange windows automatically."
+msgstr "Автоматически размещать окна."
+
+#: src/control_center/search_index.zig
+msgid "Arrangement"
+msgstr "Расположение"
+
+#: src/control_center/panel.zig
+msgid "Arrangement, resolution, refresh rate and scaling."
+msgstr "Расположение, разрешение, частота обновления и масштаб."
+
+#: src/control_center/sections/desktop.zig
+msgid "Assigned to the current output when first used."
+msgstr "При первом использовании назначается текущему экрану."
+
+#: src/control_center/sections/printers.zig
+msgid "Attached USB printers"
+msgstr "Подключённые USB-принтеры"
+
+#: src/polkit/dialog.zig
+msgid "Attempt {attempt} of 3"
+msgstr "Попытка {attempt} из 3"
+
+#: src/control_center/panel.zig
+msgid "Audio"
+msgstr "Звук"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio (A2DP) · High quality audio"
+msgstr "Звук (A2DP) · Высокое качество"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Audio Settings"
+msgstr "Настройки звука"
+
+#: src/control_center/panel.zig
+msgid "Audio output"
+msgstr "Вывод звука"
+
+#: src/control_center/search_index.zig
+msgid "Audio output device"
+msgstr "Устройство вывода звука"
+
+#: src/control_center/panel.zig
+msgid "Audio settings"
+msgstr "Настройки звука"
+
+#: src/control_center/panel.zig
+msgid "Audio unavailable"
+msgstr "Звук недоступен"
+
+#: src/control_center/sections/printers.zig
+msgid "Authenticate"
+msgstr "Подтвердить"
+
+#: src/printing/admin.zig
+msgid "Authenticating with CUPS…"
+msgstr "Проверка подлинности в CUPS…"
+
+#: src/polkit/dialog.zig
+msgid "Authenticating…"
+msgstr "Проверка подлинности…"
+
+#: src/polkit/dialog.zig
+msgid "Authentication"
+msgstr "Проверка подлинности"
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed."
+msgstr "Проверка подлинности не удалась."
+
+#: src/polkit/dialog.zig
+msgid "Authentication failed. Please try again."
+msgstr "Проверка подлинности не удалась. Попробуйте ещё раз."
+
+#: src/polkit/dialog.zig
+msgid "Authentication required"
+msgstr "Требуется подтверждение"
+
+#: src/polkit/dialog.zig
+msgid "Authentication service unavailable."
+msgstr "Служба проверки подлинности недоступна."
+
+#: src/session/lock.zig
+msgid "Authentication unavailable. Try again."
+msgstr "Проверка подлинности недоступна. Попробуйте ещё раз."
+
+#: src/control_center/sections/users.zig
+msgid "Authentication was cancelled or denied."
+msgstr "Проверка подлинности отменена или в доступе отказано."
+
+#: src/systemd.zig
+msgid "Authentication was cancelled or denied. Notify setting is unchanged."
+msgstr "Проверка подлинности отменена или в доступе отказано. Настройка Notify не изменена."
+
+#: src/control_center/sections/printers.zig
+msgid "Authorize printer administration"
+msgstr "Разрешить управление принтерами"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto"
+msgstr "Автоматически"
+
+#: src/control_center/sections/appearance.zig
+msgid "Auto-hide dock"
+msgstr "Автоматически скрывать док"
+
+#: src/network/popup.zig
+msgid "Auto-join this network"
+msgstr "Подключаться к этой сети автоматически"
+
+#: src/printing/options.zig
+msgid "Automatic"
+msgstr "Автоматически"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Automatic ($TERMINAL / Foot)"
+msgstr "Автоматически ($TERMINAL / Foot)"
+
+#: src/control_center/search_index.zig
+msgid "Automatic login"
+msgstr "Автоматический вход"
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating."
+msgstr "Автоматическое размещение окон с неподвижным рабочим пространством и сочетаниями клавиш в стиле Hyprland. Перетаскивайте окна для перестановки; Super+V включает свободное размещение."
+
+#: src/control_center/sections/desktop.zig
+msgid "Automatic tiling"
+msgstr "Автоматическое размещение"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Available Devices"
+msgstr "Доступные устройства"
+
+#: src/files/app_torrents.zig
+msgid "Back"
+msgstr "Назад"
+
+#: src/files/open_with.zig
+msgid "Back to recommended apps"
+msgstr "Вернуться к рекомендуемым приложениям"
+
+#: src/control_center/sections/printers.zig
+msgid "Backend"
+msgstr "Модуль"
+
+#: src/printing/ladder.zig
+msgid "Backend communication and device identity have not been confirmed."
+msgstr "Связь с модулем подключения и идентичность устройства не подтверждены."
+
+#: src/control_center/sections/sound.zig
+msgid "Balance"
+msgstr "Баланс"
+
+#: src/power_profiles.zig
+msgid "Balanced"
+msgstr "Сбалансированный"
+
+#: src/control_center/sections/sound.zig
+msgid "Bass Boost"
+msgstr "Усиление басов"
+
+#: src/control_center/search_index.zig
+msgid "Bass boost"
+msgstr "Усиление басов"
+
+#: src/printing/options.zig
+msgid "Black and white"
+msgstr "Чёрно-белая"
+
+#: src/control_center/sections/printers.zig
+msgid "Blank or no output"
+msgstr "Пустая страница или нет печати"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Blocked"
+msgstr "Заблокировано"
+
+#: src/session/power.zig
+msgid "Blocked by an active inhibitor lock."
+msgstr "Действие заблокировано активным запретом."
+
+#: src/session/power.zig
+msgid "Blocked by an application."
+msgstr "Действие заблокировано приложением."
+
+#: src/session/power.zig
+msgid "Blocked by {application}."
+msgstr "Действие заблокировано приложением {application}."
+
+#: src/session/power.zig
+msgid "Blocked by {application}: {reason}"
+msgstr "Заблокировано приложением {application}: {reason}"
+
+#: src/control_center/panel.zig
+msgid "Bluetooth"
+msgstr "Bluetooth"
+
+#: src/control_center/search_index.zig
+msgid "Bluetooth devices"
+msgstr "Устройства Bluetooth"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth is turned off"
+msgstr "Bluetooth выключен"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Bluetooth service is unavailable"
+msgstr "Служба Bluetooth недоступна"
+
+#: src/control_center/search_index.zig
+msgid "Bold clock"
+msgstr "Жирный шрифт часов"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bold clock text"
+msgstr "Жирный текст часов"
+
+#: src/control_center/sections/appearance.zig
+msgid "Boost window"
+msgstr "Усилить окно"
+
+#: src/systemd.zig
+msgid "Boot summary is unavailable."
+msgstr "Сводка загрузки недоступна."
+
+#: src/control_center/sections/services.zig
+msgid "Boot time: {duration}"
+msgstr "Время загрузки: {duration}"
+
+#: src/control_center/sections/services.zig
+msgid "Boot: from kernel start. Activation times overlap; — means unavailable."
+msgstr "Загрузка: от запуска ядра. Времена активации перекрываются; — означает недоступность."
+
+#: src/control_center/search_index.zig
+msgid "Border glow"
+msgstr "Свечение рамки"
+
+#: src/control_center/sections/appearance.zig
+msgid "Bottom"
+msgstr "Внизу"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom center"
+msgstr "Внизу по центру"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom left"
+msgstr "Внизу слева"
+
+#: src/control_center/sections/desktop.zig
+msgid "Bottom right"
+msgstr "Внизу справа"
+
+#: src/files/git.zig
+msgid "Branch name cannot be empty"
+msgstr "Имя ветки не может быть пустым"
+
+#: src/control_center/sections/appearance.zig
+msgid "Brief placeholder while apps start"
+msgstr "Краткая заглушка при запуске приложений"
+
+#: src/control_center/panel.zig
+msgid "Brightness"
+msgstr "Яркость"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Down"
+msgstr "Уменьшить яркость"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Brightness Up"
+msgstr "Увеличить яркость"
+
+#: src/files/app_listing.zig
+msgid "Broken link"
+msgstr "Повреждённая ссылка"
+
+#: src/control_center/welcome.zig
+msgid "Browser"
+msgstr "Браузер"
+
+#: src/images/app.zig
+msgid "C: crop · Ctrl+S: save · Delete: trash"
+msgstr "C: обрезка · Ctrl+S: сохранить · Delete: в корзину"
+
+#: src/control_center/sections/appearance.zig
+msgid "CENTER"
+msgstr "ЦЕНТР"
+
+#: src/system_monitor/app.zig
+msgid "CPU %"
+msgstr "ЦП %"
+
+#: src/system_monitor/app.zig
+msgid "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"
+msgstr "ЦП: 100% = одно ядро · Память: резидентная · Ctrl+F: поиск · Delete: завершить · Shift+Delete: принудительно завершить"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS"
+msgstr "CUPS"
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS accepted the change; the resulting driver value could not be verified."
+msgstr "CUPS приняла изменение; проверить итоговое значение параметра драйвера не удалось."
+
+#: src/printing/ladder.zig
+msgid "CUPS answered an IPP request."
+msgstr "CUPS ответила на запрос IPP."
+
+#: src/printing/admin.zig
+msgid "CUPS authentication failed after three attempts. Check the administrator account and permissions."
+msgstr "Проверка подлинности CUPS не удалась после трёх попыток. Проверьте учётную запись администратора и права доступа."
+
+#: src/printing/ladder.zig
+msgid "CUPS availability has not been checked."
+msgstr "Доступность CUPS не проверена."
+
+#: src/printing/cups.zig
+msgid "CUPS cannot honor the requested print settings. Check the paper, format and scaling options."
+msgstr "CUPS не может выполнить запрошенные настройки печати. Проверьте бумагу, формат и масштабирование."
+
+#: src/printing/ladder.zig
+msgid "CUPS completed the job with zero sheets reported; physical output is not confirmed."
+msgstr "CUPS завершила задание, сообщив о нуле листов; фактическая печать не подтверждена."
+
+#: src/control_center/sections/printers.zig
+msgid "CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."
+msgstr "CUPS копирует очередь и удаляет прежний идентификатор. Сначала завершите все задания. Затем проверьте параметры драйвера."
+
+#: src/printing/cups.zig
+msgid "CUPS denied permission. The operation requires authorization."
+msgstr "CUPS отказала в доступе. Для операции требуется авторизация."
+
+#: src/printing/ladder.zig
+msgid "CUPS did not answer an IPP request."
+msgstr "CUPS не ответила на запрос IPP."
+
+#: src/printing/cups.zig
+msgid "CUPS did not respond in time. Refresh to try again."
+msgstr "CUPS не ответила вовремя. Обновите для повторной попытки."
+
+#: src/printing/admin.zig
+msgid "CUPS discovered no supported printer addresses. You can enter a network address."
+msgstr "CUPS не обнаружила поддерживаемых адресов принтеров. Вы можете ввести сетевой адрес."
+
+#: src/printing/cups.zig
+msgid "CUPS is unavailable. Install or start CUPS, then refresh."
+msgstr "CUPS недоступна. Установите или запустите CUPS, затем обновите."
+
+#: src/printing/admin.zig
+msgid "CUPS refused or could not complete the request. Check authorization and refresh before retrying."
+msgstr "CUPS отклонила запрос или не смогла его выполнить. Проверьте авторизацию и обновите перед повторной попыткой."
+
+#: src/printing/admin.zig
+msgid "CUPS refused the printer change. Check authorization, the address and driver, then refresh."
+msgstr "CUPS отклонила изменение принтера. Проверьте авторизацию, адрес и драйвер, затем обновите."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports conflicting queue and driver defaults."
+msgstr "CUPS сообщает о конфликте значений по умолчанию очереди и драйвера."
+
+#: src/printing/ladder.zig
+msgid "CUPS reports the job completed; physical printed output is not confirmed."
+msgstr "CUPS сообщает о завершении задания; фактическая печать не подтверждена."
+
+#: src/printing/admin.zig
+msgid "CUPS requires an administrator username and password."
+msgstr "CUPS требует имя пользователя и пароль администратора."
+
+#: src/printing/cups.zig
+msgid "CUPS returned an invalid response or the connection failed. Refresh to try again."
+msgstr "CUPS вернула недопустимый ответ или подключение не удалось. Обновите для повторной попытки."
+
+#: src/printing/admin.zig
+msgid "CUPS start requested. Refresh to check when it is ready."
+msgstr "Запрошен запуск CUPS. Обновите, чтобы проверить готовность."
+
+#: src/network/manager.zig
+msgid "Cable unplugged"
+msgstr "Кабель отключён"
+
+#: src/files/app_model.zig
+msgid "Calculate size"
+msgstr "Вычислить размер"
+
+#: src/calculator/app.zig
+msgid "Calculator"
+msgstr "Калькулятор"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom In"
+msgstr "Увеличить масштаб камеры"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Out"
+msgstr "Уменьшить масштаб камеры"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Camera Zoom Reset"
+msgstr "Сбросить масштаб камеры"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel"
+msgstr "Отмена"
+
+#: src/files/app_paint.zig
+msgid "Cancel (C)"
+msgstr "Отмена (C)"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Cancel Pairing"
+msgstr "Отменить сопряжение"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel job"
+msgstr "Отменить задание"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel setup"
+msgstr "Отменить настройку"
+
+#: src/control_center/sections/printers.zig
+msgid "Cancel test"
+msgstr "Отменить проверку"
+
+#: src/files/volumes.zig
+msgid "Cancelled"
+msgstr "Отменено"
+
+#: src/files/ops.zig
+msgid "Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Отменено. Извлечено: {completed}. Пропущено: {skipped}. Ошибок: {failed}. Осталось: {remaining}."
+
+#: src/files/ops.zig
+msgid "Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Отменено. Передано: {completed}. Пропущено: {skipped}. Ошибок: {failed}. Осталось: {remaining}."
+
+#: src/files/app_keyboard.zig
+msgid "Cancelling operation..."
+msgstr "Отмена операции…"
+
+#: src/calculator/model.zig
+msgid "Cannot divide by zero"
+msgstr "На ноль делить нельзя"
+
+#: src/files/main.zig
+msgid "Cannot drop a folder into itself"
+msgstr "Нельзя поместить папку в саму себя"
+
+#: src/files/app_terminal.zig
+msgid "Cannot insert paths containing control characters"
+msgstr "Нельзя вставить пути с управляющими символами"
+
+#: src/session/lock.zig
+msgid "Cannot reach login service. Try again."
+msgstr "Не удалось связаться со службой входа. Попробуйте ещё раз."
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas"
+msgstr "Холст"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas & Focus"
+msgstr "Холст и фокус"
+
+#: src/control_center/sections/desktop.zig
+msgid "Canvas Preview"
+msgstr "Предпросмотр холста"
+
+#: src/control_center/search_index.zig
+msgid "Canvas Size"
+msgstr "Размер холста"
+
+#: src/control_center/search_index.zig
+msgid "Canvas pan speed"
+msgstr "Скорость перемещения по холсту"
+
+#: src/control_center/search_index.zig
+msgid "Canvas size"
+msgstr "Размер холста"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Canvas · RediWM preset"
+msgstr "Холст · Предустановка RediWM"
+
+#: src/session/lock.zig
+msgid "Caps Lock is on"
+msgstr "Включён Caps Lock"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture a region of your screen."
+msgstr "Сделать снимок области экрана."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Capture the current display."
+msgstr "Сделать снимок текущего экрана."
+
+#: src/control_center/sections/sound.zig
+msgid "Centre"
+msgstr "По центру"
+
+#: src/desktop/app_actions.zig
+msgid "Change Wallpaper"
+msgstr "Изменить обои"
+
+#: src/control_center/sections/printers.zig
+msgid "Change connection…"
+msgstr "Изменить подключение…"
+
+#: src/control_center/sections/users.zig
+msgid "Change password · {name}"
+msgstr "Изменить пароль · {name}"
+
+#: src/control_center/sections/users.zig
+msgid "Change password…"
+msgstr "Изменить пароль…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change printer connection"
+msgstr "Изменить подключение принтера"
+
+#: src/control_center/sections/printers.zig
+msgid "Change queue identifier…"
+msgstr "Изменить идентификатор очереди…"
+
+#: src/control_center/sections/printers.zig
+msgid "Change this queue identifier"
+msgstr "Изменить идентификатор этой очереди"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Change window depth."
+msgstr "Изменить глубину окна."
+
+#: src/control_center/sections/printers.zig
+msgid "Change {old} to {name}?"
+msgstr "Изменить {old} на {name}?"
+
+#: src/control_center/sections/portals.zig
+msgid "Changes apply next time you sign in."
+msgstr "Изменения вступят в силу при следующем входе."
+
+#: src/control_center/sections/display.zig
+msgid "Changes are saved automatically. Scroll the lists for more modes."
+msgstr "Изменения сохраняются автоматически. Прокрутите списки, чтобы увидеть другие режимы."
+
+#: src/control_center/sections/users.zig
+msgid "Changes saved."
+msgstr "Изменения сохранены."
+
+#: src/control_center/sections/region.zig
+msgid "Changes the taskbar calendar."
+msgstr "Изменяет календарь панели задач."
+
+#: src/taskbar/battery.zig
+msgid "Charging"
+msgstr "Заряжается"
+
+#: src/control_center/sections/printers.zig
+msgid "Check IPP address"
+msgstr "Проверить адрес IPP"
+
+#: src/control_center/sections/users.zig
+msgid "Check NSS and /etc/login.defs."
+msgstr "Проверьте NSS и /etc/login.defs."
+
+#: src/control_center/sections/printers.zig
+msgid "Check measured scale"
+msgstr "Проверить измеренный масштаб"
+
+#: src/printing/ladder.zig
+msgid "Check power, the USB cable, and which printer this queue uses."
+msgstr "Проверьте питание, кабель USB и принтер, используемый этой очередью."
+
+#: src/printing/ladder.zig
+msgid "Check printer power, the address, and access through the network or VPN."
+msgstr "Проверьте питание принтера, адрес и доступ через сеть или VPN."
+
+#: src/printing/ladder.zig
+msgid "Check the configured CUPS server and whether the print service is installed and available."
+msgstr "Проверьте настроенный сервер CUPS, наличие и доступность службы печати."
+
+#: src/printing/ladder.zig
+msgid "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."
+msgstr "Проверьте подключение и адрес модуля. Само по себе истечение времени ожидания не доказывает необходимость обхода особенностей USB."
+
+#: src/printing/ladder.zig
+msgid "Check the device's USB mode and its self-test instructions."
+msgstr "Проверьте режим USB устройства и инструкции по его самотестированию."
+
+#: src/printing/ladder.zig
+msgid "Check the document, driver, media size, and resolution. Compare with a test that skips the filters."
+msgstr "Проверьте документ, драйвер, размер бумаги и разрешение. Сравните с тестом, обходящим фильтры."
+
+#: src/calculator/model.zig
+msgid "Check the expression"
+msgstr "Проверьте выражение"
+
+#: src/printing/ladder.zig
+msgid "Check the job's reported reason before retrying."
+msgstr "Перед повторной попыткой проверьте причину, указанную в задании."
+
+#: src/printing/ladder.zig
+msgid "Check the physical output and any document or filter failure; sheet counters can be incomplete."
+msgstr "Проверьте фактическую печать и ошибки документа или фильтра; счётчики листов могут быть неполными."
+
+#: src/control_center/sections/printers.zig
+msgid "Check the printer's self-test sheet for its language and real resolution."
+msgstr "Проверьте язык и реальное разрешение принтера на странице самотестирования."
+
+#: src/printing/ladder.zig
+msgid "Check the queue address and USB serial; reconnecting can change a device-node path."
+msgstr "Проверьте адрес очереди и серийный номер USB; повторное подключение может изменить путь узла устройства."
+
+#: src/printing/ladder.zig
+msgid "Check the usblp driver and the queue's device path; node names can change after reconnection."
+msgstr "Проверьте драйвер usblp и путь устройства очереди; имена узлов могут меняться после повторного подключения."
+
+#: src/control_center/sections/desktop.zig
+msgid "Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."
+msgstr "Отмеченные приложения открываются свободно. Super+V меняет размещение отдельного окна. Диалоги и окна фиксированного размера всегда размещаются свободно."
+
+#: src/control_center/panel.zig
+msgid "Checking backlight…"
+msgstr "Проверка подсветки…"
+
+#: src/session/lock.zig
+msgid "Checking password…"
+msgstr "Проверка пароля…"
+
+#: src/printing/admin.zig
+msgid "Checking printer administration…"
+msgstr "Проверка управления принтерами…"
+
+#: src/session/lock.zig
+msgid "Checking…"
+msgstr "Проверка…"
+
+#: src/files/app.zig
+msgid "Choose Folder"
+msgstr "Выбрать папку"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose Start button logo"
+msgstr "Выбрать логотип кнопки запуска"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a driver…"
+msgstr "Выбрать драйвер…"
+
+#: src/control_center/sections/printers.zig
+msgid "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language."
+msgstr "Выберите язык со страницы самотестирования или проверьте один образец. Запишите результат, прежде чем выбирать другой язык."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Choose a path without quotes, backslashes or control characters."
+msgstr "Выберите путь без кавычек, обратных косых черт и управляющих символов."
+
+#: src/share_picker/client.zig
+msgid "Choose a source. Escape cancels."
+msgstr "Выберите источник. Escape отменяет действие."
+
+#: src/files/app_chooser.zig
+msgid "Choose an accessible file or folder and a valid filename."
+msgstr "Выберите доступный файл или папку и допустимое имя файла."
+
+#: src/files/open_with.zig
+msgid "Choose an application to add to the desktop"
+msgstr "Выберите приложение для добавления на рабочий стол"
+
+#: src/files/open_with.zig
+msgid "Choose another app…"
+msgstr "Выбрать другое приложение…"
+
+#: src/files/app_torrent_rows.zig
+msgid "Choose files"
+msgstr "Выбрать файлы"
+
+#: src/files/torrents.zig
+msgid "Choose files to download"
+msgstr "Выбрать файлы для загрузки"
+
+#: src/control_center/sections/appearance.zig
+msgid "Choose file…"
+msgstr "Выбрать файл…"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose folder"
+msgstr "Выбрать папку"
+
+#: src/control_center/welcome.zig
+msgid "Choose how your desktop works."
+msgstr "Выберите способ работы рабочего стола."
+
+#: src/printing/cups.zig
+msgid "Choose the actual paper dimensions before printing this test."
+msgstr "Перед печатью этого теста выберите фактические размеры бумаги."
+
+#: src/control_center/panel.zig
+msgid "Choose the keys for your everyday actions."
+msgstr "Выберите клавиши для повседневных действий."
+
+#: src/printing/ladder.zig
+msgid "Choose the paper or label size actually loaded in the printer."
+msgstr "Выберите размер бумаги или этикеток, действительно загруженных в принтер."
+
+#: src/control_center/sections/portals.zig
+msgid "Choose the services apps use for desktop dialogs. The selected backend must be installed."
+msgstr "Выберите службы системных диалогов приложений. Выбранный модуль должен быть установлен."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Choose wallpaper folder"
+msgstr "Выбрать папку обоев"
+
+#: src/control_center/sections/users.zig
+msgid "Choose whether to keep the home folder or remove its files."
+msgstr "Выберите, сохранить домашнюю папку или удалить её файлы."
+
+#: src/control_center/welcome.zig
+msgid "Choose your window layout"
+msgstr "Выберите расположение окон"
+
+#: src/control_center/welcome.zig
+msgid "Classic (stacking)"
+msgstr "Классическое (с перекрытием)"
+
+#: src/control_center/search.zig
+msgid "Clear search"
+msgstr "Очистить поиск"
+
+#: src/editor/app.zig
+msgid "Clipboard selections are limited to 1 MiB."
+msgstr "Размер выделения буфера обмена ограничен 1 МиБ."
+
+#: src/files/app_keyboard.zig
+msgid "Clipboard text is invalid or too long"
+msgstr "Текст буфера обмена недопустим или слишком длинный"
+
+#: src/files/main.zig
+msgid "Clipboard transfer failed or exceeded 1 MiB"
+msgstr "Передача буфера обмена не удалась или превысила 1 МиБ"
+
+#: src/files/main.zig
+msgid "Clipboard transfer timed out"
+msgstr "Время передачи буфера обмена истекло"
+
+#: src/control_center/search_index.zig
+msgid "Clock day"
+msgstr "Дата в часах"
+
+#: src/control_center/search_index.zig
+msgid "Clock seconds"
+msgstr "Секунды в часах"
+
+#: src/calculator/client.zig
+msgid "Close"
+msgstr "Закрыть"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close Window"
+msgstr "Закрыть окно"
+
+#: src/chrome_tabs.zig
+msgid "Close tab"
+msgstr "Закрыть вкладку"
+
+#: src/files/app_terminal.zig
+msgid "Close terminal session?"
+msgstr "Закрыть сеанс терминала?"
+
+#: src/control_center/sections/printers.zig
+msgid "Close test result"
+msgstr "Закрыть результат теста"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Close the focused window."
+msgstr "Закрыть активное окно."
+
+#: src/taskbar/window_menu.zig
+msgid "Close window"
+msgstr "Закрыть окно"
+
+#: src/files/app_paint.zig
+msgid "Closing ends this shell and its running jobs."
+msgstr "При закрытии завершатся эта оболочка и запущенные в ней задания."
+
+#: src/system_monitor/app.zig
+msgid "Collecting processes…"
+msgstr "Сбор сведений о процессах…"
+
+#: src/control_center/sections/display.zig
+msgid "Color temperature"
+msgstr "Цветовая температура"
+
+#: src/printing/options.zig
+msgid "Colour"
+msgstr "Цветная"
+
+#: src/control_center/sections/printers.zig
+msgid "Colour: {colour}"
+msgstr "Цвет: {colour}"
+
+#: src/files/app_torrent_rows.zig
+msgid "Complete"
+msgstr "Завершено"
+
+#: src/files/torrents.zig
+msgid "Complete · Stopped"
+msgstr "Завершено · Остановлено"
+
+#: src/printing/cups.zig
+msgid "Completed"
+msgstr "Завершено"
+
+#: src/control_center/sections/network.zig
+msgid "Configure this network with a network tool"
+msgstr "Настройте эту сеть с помощью сетевой утилиты"
+
+#: src/control_center/panel.zig
+msgid "Configure your desktop canvas and panning area."
+msgstr "Настройте холст рабочего стола и область перемещения."
+
+#: src/control_center/sections/users.zig
+msgid "Confirm"
+msgstr "Подтвердить"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Confirm Pairing"
+msgstr "Подтвердить сопряжение"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm new password"
+msgstr "Подтвердите новый пароль"
+
+#: src/control_center/sections/users.zig
+msgid "Confirm password"
+msgstr "Подтвердите пароль"
+
+#: src/printing/ladder.zig
+msgid "Confirm resolution using the printer's self-test or a measured ruler test."
+msgstr "Подтвердите разрешение с помощью самотестирования принтера или измеренного теста линейки."
+
+#: src/files/app_paint.zig
+msgid "Conflict"
+msgstr "Конфликт"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connect"
+msgstr "Подключиться"
+
+#: src/control_center/panel.zig
+msgid "Connect and manage your Bluetooth devices."
+msgstr "Подключайте устройства Bluetooth и управляйте ими."
+
+#: src/control_center/sections/network.zig
+msgid "Connect automatically"
+msgstr "Подключаться автоматически"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connected"
+msgstr "Подключено"
+
+#: src/files/app_torrent_rows.zig
+msgid "Connected peers: {peers} · Seeds: {seeds}"
+msgstr "Подключённые участники: {peers} · Раздающие: {seeds}"
+
+#: src/control_center/sections/printers.zig
+msgid "Connected to CUPS."
+msgstr "Подключено к CUPS."
+
+#: src/network/manager.zig
+msgid "Connected · Saved"
+msgstr "Подключено · Сохранено"
+
+#: src/network/manager.zig
+msgid "Connecting Ethernet…"
+msgstr "Подключение Ethernet…"
+
+#: src/files/app_paint.zig
+msgid "Connecting…"
+msgstr "Подключение…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Connection"
+msgstr "Подключение"
+
+#: src/network/manager.zig
+msgid "Connection failed"
+msgstr "Не удалось подключиться"
+
+#: src/network/manager.zig
+msgid "Connection failed. Check the password and try again."
+msgstr "Не удалось подключиться. Проверьте пароль и попробуйте ещё раз."
+
+#: src/session/lock.zig
+msgid "Continue"
+msgstr "Продолжить"
+
+#: src/files/app_fileops.zig
+msgid "Copied"
+msgstr "Скопировано"
+
+#: src/files/app_fileops.zig
+msgid "Copied {count} item"
+msgid_plural "Copied {count} items"
+msgstr[0] "Скопирован {count} объект"
+msgstr[1] "Скопировано {count} объекта"
+msgstr[2] "Скопировано {count} объектов"
+
+#: src/desktop/app_actions.zig
+msgid "Copy"
+msgstr "Копировать"
+
+#: src/control_center/sections/printers.zig
+msgid "Copy diagnostic report"
+msgstr "Копировать диагностический отчёт"
+
+#: src/control_center/search_index.zig
+msgid "Corner radius"
+msgstr "Радиус углов"
+
+#: src/files/appimage.zig
+msgid "Could not add the AppImage to applications"
+msgstr "Не удалось добавить AppImage в приложения"
+
+#: src/files/app_opening.zig
+msgid "Could not add the application"
+msgstr "Не удалось добавить приложение"
+
+#: src/control_center/sections/users.zig
+msgid "Could not allocate locked password storage."
+msgstr "Не удалось выделить защищённую память для пароля."
+
+#: src/files/app_terminal.zig
+msgid "Could not allocate terminal"
+msgstr "Не удалось выделить память для терминала"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors. Check your configuration files and permissions."
+msgstr "Не удалось применить цвета приложений. Проверьте файлы настроек и права доступа."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Could not apply app colors: {reason}. Check your configuration files and permissions."
+msgstr "Не удалось применить цвета приложений: {reason}. Проверьте файлы настроек и права доступа."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply or save the display scale."
+msgstr "Не удалось применить или сохранить масштаб экрана."
+
+#: src/control_center/sections/display.zig
+msgid "Could not apply that display setting."
+msgstr "Не удалось применить этот параметр экрана."
+
+#: src/printing/admin.zig
+msgid "Could not apply the printer option."
+msgstr "Не удалось применить параметр принтера."
+
+#: src/control_center/welcome.zig
+msgid "Could not apply this choice. Please try again."
+msgstr "Не удалось применить этот выбор. Попробуйте ещё раз."
+
+#: src/session/power.zig
+msgid "Could not build the request."
+msgstr "Не удалось сформировать запрос."
+
+#: src/files/properties.zig
+msgid "Could not change permissions"
+msgstr "Не удалось изменить права доступа"
+
+#: src/printing/admin.zig
+msgid "Could not clear the canonical default override."
+msgstr "Не удалось удалить переопределение канонического значения по умолчанию."
+
+#: src/files/app_torrents.zig
+msgid "Could not connect to Transfers"
+msgstr "Не удалось подключиться к «Передачам»"
+
+#: src/systemd.zig
+msgid "Could not connect to systemd."
+msgstr "Не удалось подключиться к systemd."
+
+#: src/images/app.zig
+msgid "Could not crop this selection."
+msgstr "Не удалось обрезать выделенную область."
+
+#: src/files/app_fileops.zig
+msgid "Could not delete all items"
+msgstr "Не удалось удалить все объекты"
+
+#: src/images/app.zig
+msgid "Could not delete. The file was kept."
+msgstr "Не удалось удалить файл. Файл сохранён."
+
+#: src/files/volumes.zig
+msgid "Could not eject {name}"
+msgstr "Не удалось извлечь {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not empty Trash"
+msgstr "Не удалось очистить корзину"
+
+#: src/files/archive.zig
+msgid "Could not extract archive"
+msgstr "Не удалось извлечь архив"
+
+#: src/files/app_dialogs.zig
+msgid "Could not load applications"
+msgstr "Не удалось загрузить приложения"
+
+#: src/systemd.zig
+msgid "Could not load services. Try Refresh."
+msgstr "Не удалось загрузить службы. Попробуйте обновить."
+
+#: src/files/volumes.zig
+msgid "Could not mount {name}"
+msgstr "Не удалось подключить {name}"
+
+#: src/files/app_fileops.zig
+msgid "Could not move all items to Trash"
+msgstr "Не удалось переместить все объекты в корзину"
+
+#: src/images/app.zig
+msgid "Could not move to Trash. The file was kept."
+msgstr "Не удалось переместить файл в корзину. Файл сохранён."
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Appearance: {error}"
+msgstr "Не удалось открыть «Оформление»: {error}"
+
+#: src/desktop/app_actions.zig
+msgid "Could not open Desktop Settings: {error}"
+msgstr "Не удалось открыть настройки рабочего стола: {error}"
+
+#: src/files/app_opening.zig
+msgid "Could not open Text Editor"
+msgstr "Не удалось открыть текстовый редактор"
+
+#: src/files/app_places.zig
+msgid "Could not open Trash"
+msgstr "Не удалось открыть корзину"
+
+#: src/files/archive.zig
+msgid "Could not open archive"
+msgstr "Не удалось открыть архив"
+
+#: src/files/app_opening.zig
+msgid "Could not open archive member"
+msgstr "Не удалось открыть файл из архива"
+
+#: src/pdf/app_document.zig
+msgid "Could not open document."
+msgstr "Не удалось открыть документ."
+
+#: src/files/app_opening.zig
+msgid "Could not open file"
+msgstr "Не удалось открыть файл"
+
+#: src/files/app_places.zig
+msgid "Could not open folder"
+msgstr "Не удалось открыть папку"
+
+#: src/files/app_opening.zig
+msgid "Could not open folder picker"
+msgstr "Не удалось открыть диалог выбора папки"
+
+#: src/files/app_opening.zig
+msgid "Could not open image viewer"
+msgstr "Не удалось открыть просмотрщик изображений"
+
+#: src/files/app_places.zig
+msgid "Could not open new window"
+msgstr "Не удалось открыть новое окно"
+
+#: src/images/app.zig
+msgid "Could not open the delete dialog."
+msgstr "Не удалось открыть диалог удаления."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Could not open the file chooser."
+msgstr "Не удалось открыть диалог выбора файла."
+
+#: src/systemd.zig
+msgid "Could not open the service edit for authorization."
+msgstr "Не удалось открыть изменение службы для авторизации."
+
+#: src/files/open_with.zig
+msgid "Could not open with this app. Choose another."
+msgstr "Не удалось открыть в этом приложении. Выберите другое."
+
+#: src/pdf/app_document.zig
+msgid "Could not prepare password. Please try again."
+msgstr "Не удалось подготовить пароль. Попробуйте ещё раз."
+
+#: src/control_center/sections/users.zig
+msgid "Could not prepare the group update."
+msgstr "Не удалось подготовить изменение групп."
+
+#: src/session/power.zig
+msgid "Could not query logind."
+msgstr "Не удалось опросить logind."
+
+#: src/session/power.zig
+msgid "Could not reach logind."
+msgstr "Не удалось связаться с logind."
+
+#: src/session/power.zig
+msgid "Could not reach the system's power service."
+msgstr "Не удалось связаться с системной службой питания."
+
+#: src/network/manager.zig
+msgid "Could not read Wi-Fi networks"
+msgstr "Не удалось получить список сетей Wi-Fi"
+
+#: src/files/app_dialogs.zig
+msgid "Could not read file properties"
+msgstr "Не удалось прочитать свойства файла"
+
+#: src/files/app_opening.zig
+msgid "Could not read folder picker result"
+msgstr "Не удалось прочитать результат выбора папки"
+
+#: src/control_center/sections/users.zig
+msgid "Could not read login accounts."
+msgstr "Не удалось прочитать учётные записи."
+
+#: src/files/properties.zig
+msgid "Could not read permissions"
+msgstr "Не удалось прочитать права доступа"
+
+#: src/files/worker.zig
+msgid "Could not read recent files"
+msgstr "Не удалось прочитать недавние файлы"
+
+#: src/files/appimage.zig
+msgid "Could not read the AppImage's application details"
+msgstr "Не удалось прочитать сведения о приложении из AppImage"
+
+#: src/files/main.zig
+msgid "Could not read the dropped items"
+msgstr "Не удалось прочитать перетаскиваемые объекты"
+
+#: src/images/app.zig
+msgid "Could not read this image"
+msgstr "Не удалось прочитать это изображение"
+
+#: src/printing/admin.zig
+msgid "Could not request CUPS start."
+msgstr "Не удалось запросить запуск CUPS."
+
+#: src/systemd.zig
+msgid "Could not request authentication. Check that polkit is running."
+msgstr "Не удалось запросить проверку подлинности. Убедитесь, что polkit запущена."
+
+#: src/images/app.zig
+msgid "Could not rotate: not enough memory."
+msgstr "Не удалось повернуть: недостаточно памяти."
+
+#: src/files/git.zig
+msgid "Could not run git"
+msgstr "Не удалось запустить git"
+
+#: src/systemd.zig
+msgid "Could not save Notify. Service editing requires systemd 256 or newer."
+msgstr "Не удалось сохранить Notify. Для редактирования служб требуется systemd 256 или новее."
+
+#: src/files/app_places.zig
+msgid "Could not save Places"
+msgstr "Не удалось сохранить «Места»"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save desktop mode."
+msgstr "Не удалось сохранить режим рабочего стола."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save floating apps."
+msgstr "Не удалось сохранить список свободно размещаемых приложений."
+
+#: src/control_center/sections/portals.zig
+msgid "Could not save portal preferences. Check your configuration directory."
+msgstr "Не удалось сохранить настройки порталов. Проверьте папку настроек."
+
+#: src/control_center/panel.zig
+msgid "Could not save the Files setting."
+msgstr "Не удалось сохранить настройки «Файлов»."
+
+#: src/control_center/welcome.zig
+msgid "Could not save the default app. Please try again."
+msgstr "Не удалось сохранить приложение по умолчанию. Попробуйте ещё раз."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Could not save the default application."
+msgstr "Не удалось сохранить приложение по умолчанию."
+
+#: src/control_center/sections/display.zig
+msgid "Could not save the display setting."
+msgstr "Не удалось сохранить параметр экрана."
+
+#: src/files/app.zig
+msgid "Could not save view preferences"
+msgstr "Не удалось сохранить параметры просмотра"
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save window spacing."
+msgstr "Не удалось сохранить расстояния между окнами."
+
+#: src/control_center/welcome.zig
+msgid "Could not save your layout. Please try again."
+msgstr "Не удалось сохранить расположение. Попробуйте ещё раз."
+
+#: src/control_center/sections/desktop.zig
+msgid "Could not save. Check the configuration file and try again."
+msgstr "Не удалось сохранить. Проверьте файл настроек и попробуйте ещё раз."
+
+#: src/images/app.zig
+msgid "Could not save. Check the folder and permissions."
+msgstr "Не удалось сохранить. Проверьте папку и права доступа."
+
+#: src/printing/admin.zig
+msgid "Could not send printer administration request."
+msgstr "Не удалось отправить запрос управления принтером."
+
+#: src/polkit/dialog.zig
+msgid "Could not send response. Please try again."
+msgstr "Не удалось отправить ответ. Попробуйте ещё раз."
+
+#: src/network/manager.zig
+msgid "Could not send the Ethernet request."
+msgstr "Не удалось отправить запрос Ethernet."
+
+#: src/network/manager.zig
+msgid "Could not send the Wi-Fi request"
+msgstr "Не удалось отправить запрос Wi-Fi"
+
+#: src/systemd.zig
+msgid "Could not send the service action."
+msgstr "Не удалось отправить действие для службы."
+
+#: src/files/worker.zig
+msgid "Could not sort folder names"
+msgstr "Не удалось отсортировать имена папок"
+
+#: src/printing/admin.zig
+msgid "Could not start CUPS administration."
+msgstr "Не удалось запустить управление CUPS."
+
+#: src/files/app_torrents.zig
+msgid "Could not start Transfers"
+msgstr "Не удалось запустить «Передачи»"
+
+#: src/images/app.zig
+msgid "Could not start deleting this file."
+msgstr "Не удалось начать удаление этого файла."
+
+#: src/files/app_opening.zig
+msgid "Could not start extraction"
+msgstr "Не удалось начать извлечение"
+
+#: src/files/main.zig
+msgid "Could not start file drag"
+msgstr "Не удалось начать перетаскивание файлов"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not start printer diagnostics."
+msgstr "Не удалось запустить диагностику принтера."
+
+#: src/images/app.zig
+msgid "Could not start saving."
+msgstr "Не удалось начать сохранение."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the authentication request."
+msgstr "Не удалось начать запрос проверки подлинности."
+
+#: src/session/power.zig
+msgid "Could not start the power command."
+msgstr "Не удалось выполнить команду питания."
+
+#: src/control_center/sections/users.zig
+msgid "Could not start the request."
+msgstr "Не удалось начать запрос."
+
+#: src/systemd.zig
+msgid "Could not subscribe to service updates."
+msgstr "Не удалось подписаться на обновления служб."
+
+#: src/files/volumes.zig
+msgid "Could not use the device"
+msgstr "Не удалось использовать устройство"
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers before changing the identifier."
+msgstr "Не удалось проверить существующие принтеры перед изменением идентификатора."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify existing printers. Refresh before creating a queue."
+msgstr "Не удалось проверить существующие принтеры. Обновите список перед созданием очереди."
+
+#: src/control_center/sections/printers.zig
+msgid "Could not verify the printer's jobs. Refresh before changing its identifier."
+msgstr "Не удалось проверить задания принтера. Обновите список перед изменением его идентификатора."
+
+#: src/session/power.zig
+msgid "Could not watch the power command."
+msgstr "Не удалось отследить команду питания."
+
+#: src/files/archive.zig
+msgid "Could not write extracted file (check space and permissions)"
+msgstr "Не удалось записать извлечённый файл (проверьте свободное место и права доступа)"
+
+#: src/desktop/watcher.zig
+msgid "Could not {operation}: {error}"
+msgstr "Не удалось {operation}: {error}"
+
+#: src/control_center/sections/printers.zig
+msgid "Create printer"
+msgstr "Создать принтер"
+
+#: src/control_center/sections/users.zig
+msgid "Create user"
+msgstr "Создать пользователя"
+
+#: src/files/properties.zig
+msgid "Created"
+msgstr "Создано"
+
+#: src/files/app_dialogs.zig
+msgid "Created and switched to {name}"
+msgstr "Создана и выбрана ветка {name}"
+
+#: src/images/app.zig
+msgid "Crop"
+msgstr "Обрезать"
+
+#: src/control_center/sections/region.zig
+msgid "Currency"
+msgstr "Валюта"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current font"
+msgstr "Текущий шрифт"
+
+#: src/control_center/sections/appearance.zig
+msgid "Current theme"
+msgstr "Текущая тема"
+
+#: src/control_center/sections/region.zig
+msgid "Current: {locale}"
+msgstr "Текущий: {locale}"
+
+#: src/control_center/search_index.zig
+msgid "Cursor theme"
+msgstr "Тема курсора"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom"
+msgstr "Пользовательский"
+
+#: src/control_center/sections/portals.zig
+msgid "Custom ({name})"
+msgstr "Свой вариант ({name})"
+
+#: src/control_center/sections/appearance.zig
+msgid "Custom size"
+msgstr "Пользовательский размер"
+
+#: src/desktop/app_actions.zig
+msgid "Cut"
+msgstr "Вырезать"
+
+#: src/files/app_fileops.zig
+msgid "Cut {count} item"
+msgid_plural "Cut {count} items"
+msgstr[0] "Вырезан {count} объект"
+msgstr[1] "Вырезано {count} объекта"
+msgstr[2] "Вырезано {count} объектов"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the next existing workspace."
+msgstr "Перейти к следующему существующему рабочему пространству."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Cycle to the previous existing workspace."
+msgstr "Перейти к предыдущему существующему рабочему пространству."
+
+#: src/battery_popup.zig
+msgid "Cycles"
+msgstr "Циклы"
+
+#: src/files/app_sidebar_paint.zig
+msgid "DEVICES"
+msgstr "УСТРОЙСТВА"
+
+#: src/control_center/sections/display.zig
+msgid "DISPLAY"
+msgstr "ЭКРАН"
+
+#: src/control_center/sections/network.zig
+msgid "DNS servers"
+msgstr "DNS-серверы"
+
+#: src/control_center/search_index.zig
+msgid "Dark mode"
+msgstr "Тёмная тема"
+
+#: src/printing/options.zig
+msgid "Darkness"
+msgstr "Затемнение"
+
+#: src/control_center/sections/region.zig
+msgid "Date"
+msgstr "Дата"
+
+#: src/control_center/sections/region.zig
+msgid "Date format for the taskbar; date, number and currency formats for new apps."
+msgstr "Формат даты панели задач; форматы дат, чисел и валюты для новых приложений."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease display brightness."
+msgstr "Уменьшить яркость экрана."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease system volume."
+msgstr "Уменьшить громкость системы."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Decrease the focused window's size."
+msgstr "Уменьшить размер активного окна."
+
+#: src/control_center/sections/appearance.zig
+msgid "Default"
+msgstr "По умолчанию"
+
+#: src/control_center/sections/appearance.zig
+msgid "Default R logo · PNG or SVG"
+msgstr "Стандартный логотип R · PNG или SVG"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Default applications"
+msgstr "Приложения по умолчанию"
+
+#: src/control_center/welcome.zig
+msgid "Default apps"
+msgstr "Приложения по умолчанию"
+
+#: src/control_center/search_index.zig
+msgid "Default file manager"
+msgstr "Файловый менеджер по умолчанию"
+
+#: src/control_center/search_index.zig
+msgid "Default terminal"
+msgstr "Терминал по умолчанию"
+
+#: src/control_center/sections/services.zig
+msgid "Deferred"
+msgstr "Отложено"
+
+#: src/delete_dialog.zig
+msgid "Delete file?"
+msgstr "Удалить файл?"
+
+#: src/control_center/sections/users.zig
+msgid "Delete files"
+msgstr "Удалить файлы"
+
+#: src/delete_dialog.zig
+msgid "Delete folder?"
+msgstr "Удалить папку?"
+
+#: src/delete_dialog.zig
+msgid "Delete items?"
+msgstr "Удалить объекты?"
+
+#: src/delete_dialog.zig
+msgid "Delete permanently"
+msgstr "Удалить безвозвратно"
+
+#: src/control_center/sections/users.zig
+msgid "Delete user…"
+msgstr "Удалить пользователя…"
+
+#: src/control_center/sections/users.zig
+msgid "Delete {name}?"
+msgstr "Удалить {name}?"
+
+#: src/session/power.zig
+msgid "Denied by policy"
+msgstr "Запрещено правилами"
+
+#: src/session/power.zig
+msgid "Denied by system policy."
+msgstr "Запрещено системными правилами."
+
+#: src/control_center/panel.zig
+msgid "Desktop"
+msgstr "Рабочий стол"
+
+#: src/desktop/app_actions.zig
+msgid "Desktop Settings"
+msgstr "Настройки рабочего стола"
+
+#: src/control_center/search_index.zig
+msgid "Desktop Switching"
+msgstr "Переключение рабочих столов"
+
+#: src/control_center/sections/display.zig
+msgid "Desktop icons appear on this display."
+msgstr "Значки рабочего стола отображаются на этом экране."
+
+#: src/control_center/search_index.zig
+msgid "Desktop mode"
+msgstr "Режим рабочего стола"
+
+#: src/control_center/search_index.zig
+msgid "Desktop portals"
+msgstr "Порталы рабочего стола"
+
+#: src/control_center/search_index.zig
+msgid "Desktop switching"
+msgstr "Переключение рабочих столов"
+
+#: src/files/app_git_sidebar.zig
+msgid "Detached {count}"
+msgstr "Отсоединено: {count}"
+
+#: src/control_center/sections/users.zig
+msgid "Details"
+msgstr "Сведения"
+
+#: src/files/app_places.zig
+msgid "Device"
+msgstr "Устройство"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Device Settings"
+msgstr "Настройки устройств"
+
+#: src/control_center/sections/printers.zig
+msgid "Device node"
+msgstr "Файл устройства"
+
+#: src/control_center/sections/printers.zig
+msgid "Did the test produce printed output? CUPS completion alone cannot tell."
+msgstr "Тест действительно что-нибудь напечатал? Одного завершения CUPS недостаточно, чтобы это установить."
+
+#: src/control_center/search_index.zig
+msgid "Dim inactive windows"
+msgstr "Затемнять неактивные окна"
+
+#: src/control_center/sections/printers.zig
+msgid "Disable printer"
+msgstr "Отключить принтер"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disable shortcut"
+msgstr "Отключить сочетание"
+
+#: src/control_center/search_index.zig
+msgid "Disable touchpad while typing"
+msgstr "Отключать сенсорную панель при вводе"
+
+#: src/control_center/sections/services.zig
+msgid "Disabled"
+msgstr "Отключено"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Disabled shortcut."
+msgstr "Сочетание отключено."
+
+#: src/editor/app.zig
+msgid "Discard"
+msgstr "Не сохранять"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Disconnect"
+msgstr "Отключиться"
+
+#: src/files/app_torrent_rows.zig
+msgid "Disconnected"
+msgstr "Отключено"
+
+#: src/network/manager.zig
+msgid "Disconnecting Ethernet…"
+msgstr "Отключение Ethernet…"
+
+#: src/network/manager.zig
+msgid "Disconnecting…"
+msgstr "Отключение…"
+
+#: src/printing/admin.zig
+msgid "Discovering printers; authorization may be required…"
+msgstr "Поиск принтеров; может потребоваться авторизация…"
+
+#: src/system_monitor/app.zig
+msgid "Disk wait"
+msgstr "Ожидание диска"
+
+#: src/control_center/panel.zig
+msgid "Display"
+msgstr "Экран"
+
+#: src/control_center/search_index.zig
+msgid "Display arrangement"
+msgstr "Расположение экранов"
+
+#: src/control_center/sections/printers.zig
+msgid "Display name"
+msgstr "Отображаемое имя"
+
+#: src/control_center/search_index.zig
+msgid "Display scale"
+msgstr "Масштаб экрана"
+
+#: src/control_center/panel.zig
+msgid "Display settings"
+msgstr "Настройки экрана"
+
+#: src/control_center/panel.zig
+msgid "Displays"
+msgstr "Экраны"
+
+#: src/control_center/sections/display.zig
+msgid "Do nothing"
+msgstr "Ничего не делать"
+
+#: src/control_center/search_index.zig
+msgid "Dock"
+msgstr "Док"
+
+#: src/control_center/search_index.zig
+msgid "Dock active highlight"
+msgstr "Подсветка активного приложения в доке"
+
+#: src/control_center/search_index.zig
+msgid "Dock auto hide"
+msgstr "Автоматическое скрытие дока"
+
+#: src/control_center/search_index.zig
+msgid "Dock corner radius"
+msgstr "Радиус углов дока"
+
+#: src/control_center/search_index.zig
+msgid "Dock height"
+msgstr "Высота дока"
+
+#: src/control_center/search_index.zig
+msgid "Dock hover zoom"
+msgstr "Увеличение значков дока при наведении"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock hover zoom (1.00× disables)"
+msgstr "Увеличение при наведении на док (1,00× отключает)"
+
+#: src/control_center/search_index.zig
+msgid "Dock opacity"
+msgstr "Непрозрачность дока"
+
+#: src/control_center/search_index.zig
+msgid "Dock position"
+msgstr "Положение дока"
+
+#: src/control_center/sections/appearance.zig
+msgid "Dock size"
+msgstr "Размер дока"
+
+#: src/control_center/search_index.zig
+msgid "Dock trash"
+msgstr "Корзина в доке"
+
+#: src/pdf/app_document.zig
+msgid "Document is encrypted. Enter password:"
+msgstr "Документ зашифрован. Введите пароль:"
+
+#: src/files/app.zig
+msgid "Documents"
+msgstr "Документы"
+
+#: src/control_center/search_index.zig
+msgid "Dodge file drags"
+msgstr "Избегать перетаскиваемых файлов"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Does this code match the code on your device?"
+msgstr "Этот код совпадает с кодом на вашем устройстве?"
+
+#: src/control_center/sections/users.zig
+msgid "Done"
+msgstr "Готово"
+
+#: src/files/app_items.zig
+msgid "Download"
+msgstr "Загрузить"
+
+#: src/files/app_torrents.zig
+msgid "Download to folder"
+msgstr "Загрузить в папку"
+
+#: src/files/torrents.zig
+msgid "Downloaded · Seeding"
+msgstr "Загружено · Раздаётся"
+
+#: src/files/app_torrent_rows.zig
+msgid "Downloading"
+msgstr "Загрузка"
+
+#: src/files/app.zig
+msgid "Downloads"
+msgstr "Загрузки"
+
+#: src/files/app_torrents.zig
+msgid "Downloads continue after closing Files."
+msgstr "Загрузки продолжатся после закрытия «Файлов»."
+
+#: src/printing/options.zig
+msgid "Draft"
+msgstr "Черновое"
+
+#: src/images/app.zig
+msgid "Drag a larger crop selection."
+msgstr "Выделите большую область для обрезки."
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."
+msgstr "Перетащите элемент, чтобы изменить порядок или переместить его в другой раздел. Выключите элемент, чтобы скрыть его. Батарея отображается при наличии."
+
+#: src/control_center/sections/display.zig
+msgid "Drag displays to match your desk. Click one to edit it."
+msgstr "Перетащите экраны в соответствии с их расположением на столе. Нажмите экран для настройки."
+
+#: src/control_center/search_index.zig
+msgid "Drag feedback"
+msgstr "Обратная связь при перетаскивании"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag items here"
+msgstr "Перетащите элементы сюда"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag lift scale"
+msgstr "Увеличение при начале перетаскивания"
+
+#: src/control_center/search_index.zig
+msgid "Drag scale"
+msgstr "Масштаб при перетаскивании"
+
+#: src/control_center/sections/appearance.zig
+msgid "Drag to move"
+msgstr "Перетащите для перемещения"
+
+#: src/screenshot/selector.zig
+msgid "Drag to save and copy · Esc to cancel"
+msgstr "Перетащите, чтобы сохранить и скопировать · Esc: отмена"
+
+#: src/images/app.zig
+msgid "Drag to select · Enter: crop · Esc: cancel"
+msgstr "Выделите область · Enter: обрезать · Esc: отмена"
+
+#: src/control_center/sections/desktop.zig
+msgid "Dragging stops on release. Edges settle with a short animation."
+msgstr "Перетаскивание прекращается при отпускании. Края плавно выравниваются."
+
+#: src/control_center/sections/printers.zig
+msgid "Driver"
+msgstr "Драйвер"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Choose files first"
+msgstr "Осталось: сначала выберите файлы"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Complete"
+msgstr "Осталось: загрузка завершена"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Paused"
+msgstr "Осталось: приостановлено"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: Unknown · waiting for data"
+msgstr "Осталось: неизвестно · ожидание данных"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}h {value2}m"
+msgstr "Осталось: {value} ч {value2} мин"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}m {value2}s"
+msgstr "Осталось: {value} мин {value2} с"
+
+#: src/files/app_torrent_rows.zig
+msgid "ETA: {value}s"
+msgstr "Осталось: {value} с"
+
+#: src/control_center/sections/appearance.zig
+msgid "Edge glow"
+msgstr "Свечение края"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Edit shortcut"
+msgstr "Изменить сочетание"
+
+#: src/images/app.zig
+msgid "Edits undone."
+msgstr "Изменения отменены."
+
+#: src/files/app_model.zig
+msgid "Eject"
+msgstr "Извлечь"
+
+#: src/files/app_places.zig
+msgid "Ejected"
+msgstr "Извлечено"
+
+#: src/files/app_places.zig
+msgid "Ejecting…"
+msgstr "Извлечение…"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash"
+msgstr "Очистить корзину"
+
+#: src/delete_dialog.zig
+msgid "Empty Trash?"
+msgstr "Очистить корзину?"
+
+#: src/desktop/app_actions.zig
+msgid "Empty Trash…"
+msgstr "Очистить корзину…"
+
+#: src/printing/ladder.zig
+msgid "Enable acceptance of jobs when the printer is ready."
+msgstr "Разрешите приём заданий, когда принтер будет готов."
+
+#: src/control_center/sections/region.zig
+msgid "Enable {locale} in your system’s locale settings to use it in other apps and regional formats."
+msgstr "Включите {locale} в настройках локали системы для использования в других приложениях и региональных форматах."
+
+#: src/control_center/sections/services.zig
+msgid "Enabled"
+msgstr "Включено"
+
+#: src/system_monitor/app.zig
+msgid "End process"
+msgstr "Завершить процесс"
+
+#: src/files/app_terminal.zig
+msgid "Enlarge this window to show the terminal"
+msgstr "Увеличьте окно, чтобы показать терминал"
+
+#: src/calculator/app.zig
+msgid "Enter = Esc clear F9 ± % = ÷100"
+msgstr "Enter = Esc: очистить F9 ± % = ÷100"
+
+#: src/polkit/dialog.zig
+msgid "Enter Password"
+msgstr "Введите пароль"
+
+#: src/images/app.zig
+msgid "Enter a filename or an absolute path."
+msgstr "Введите имя файла или абсолютный путь."
+
+#: src/images/app.zig
+msgid "Enter a filename."
+msgstr "Введите имя файла."
+
+#: src/network/manager.zig
+msgid "Enter a network name."
+msgstr "Введите имя сети."
+
+#: src/network/manager.zig
+msgid "Enter a password (1–63 bytes)."
+msgstr "Введите пароль (1–63 байта)."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a supported printer address without credentials."
+msgstr "Введите поддерживаемый адрес принтера без учётных данных."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter a valid CUPS administrator username and password."
+msgstr "Введите действительные имя пользователя и пароль администратора CUPS."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid full name."
+msgstr "Введите допустимое полное имя."
+
+#: src/control_center/sections/users.zig
+msgid "Enter a valid username and full name."
+msgstr "Введите допустимые имя пользователя и полное имя."
+
+#: src/control_center/sections/printers.zig
+msgid "Enter an account permitted to administer the local CUPS server."
+msgstr "Введите данные учётной записи с правами управления локальным сервером CUPS."
+
+#: src/files/app_paint.zig
+msgid "Enter confirms · Esc cancels"
+msgstr "Enter: подтвердить · Esc: отмена"
+
+#: src/control_center/sections/users.zig
+msgid "Enter matching passwords."
+msgstr "Введите совпадающие пароли."
+
+#: src/network/popup.zig
+msgid "Enter network name"
+msgstr "Введите имя сети"
+
+#: src/control_center/sections/users.zig
+msgid "Enter new password"
+msgstr "Введите новый пароль"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Enter or leave fullscreen."
+msgstr "Включить или выключить полноэкранный режим."
+
+#: src/control_center/sections/users.zig
+msgid "Enter password"
+msgstr "Введите пароль"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's PIN"
+msgstr "Введите PIN-код устройства"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter the device's six-digit passkey"
+msgstr "Введите шестизначный код устройства"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Enter this code on your device, then press Enter."
+msgstr "Введите этот код на устройстве, затем нажмите Enter."
+
+#: src/polkit/dialog.zig
+msgid "Enter your response"
+msgstr "Введите ответ"
+
+#: src/files/app_torrent_rows.zig
+msgid "Error"
+msgstr "Ошибка"
+
+#: src/files/app_paint.zig
+msgid "Error: {value}"
+msgstr "Ошибка: {value}"
+
+#: src/control_center/search_index.zig
+msgid "Ethernet"
+msgstr "Ethernet"
+
+#: src/network/manager.zig
+msgid "Ethernet adapter was removed."
+msgstr "Адаптер Ethernet отключён."
+
+#: src/network/manager.zig
+msgid "Ethernet connection timed out. Check the cable and try again."
+msgstr "Время подключения Ethernet истекло. Проверьте кабель и попробуйте ещё раз."
+
+#: src/network/manager.zig
+msgid "Ethernet could not connect. Check the cable and connection settings."
+msgstr "Не удалось подключить Ethernet. Проверьте кабель и настройки подключения."
+
+#: src/network/manager.zig
+msgid "Ethernet request failed. Check permissions and try again."
+msgstr "Запрос Ethernet не выполнен. Проверьте права доступа и попробуйте ещё раз."
+
+#: src/control_center/panel.zig
+msgid "Everyday controls, all in one place."
+msgstr "Все повседневные настройки в одном месте."
+
+#: src/control_center/sections/network.zig
+msgid "Excellent"
+msgstr "Отлично"
+
+#: src/files/properties.zig
+msgid "Execute"
+msgstr "Выполнение"
+
+#: src/control_center/sections/desktop.zig
+msgid "Existing windows outside a smaller canvas stay reachable."
+msgstr "Окна за границами уменьшенного холста остаются доступны."
+
+#: src/system_monitor/app.zig
+msgid "Exited"
+msgstr "Завершён"
+
+#: src/calculator/model.zig
+msgid "Expression is full"
+msgstr "Достигнута предельная длина выражения"
+
+#: src/files/app_model.zig
+msgid "Extract"
+msgstr "Извлечь"
+
+#: src/files/app_model.zig
+msgid "Extract to…"
+msgstr "Извлечь в…"
+
+#: src/files/ops.zig
+msgid "Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Извлечено: {completed}. Пропущено: {skipped}. Ошибок: {failed}. Осталось: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Extracting {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Извлечение {current}/{total}: {name}… (Esc: отмена)"
+
+#: src/files/archive.zig
+msgid "Extraction cancelled"
+msgstr "Извлечение отменено"
+
+#: src/control_center/sections/services.zig
+msgid "Failed"
+msgstr "Ошибка"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create file"
+msgstr "Не удалось создать файл"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to create folder"
+msgstr "Не удалось создать папку"
+
+#: src/files/app_dialogs.zig
+msgid "Failed to rename"
+msgstr "Не удалось переименовать"
+
+#: src/files/app_fileops.zig
+msgid "Failed to start transfer job"
+msgstr "Не удалось начать передачу"
+
+#: src/files/torrents.zig
+msgid "Fetching file list…"
+msgstr "Получение списка файлов…"
+
+#: src/delete_dialog.zig
+msgid "File"
+msgstr "Файл"
+
+#: src/files/app_paint.zig
+msgid "File '{value}' already exists in destination."
+msgstr "Файл «{value}» уже существует в папке назначения."
+
+#: src/files/app_dialogs.zig
+msgid "File Conflict"
+msgstr "Конфликт файлов"
+
+#: src/control_center/sections/default_apps.zig
+msgid "File Manager"
+msgstr "Файловый менеджер"
+
+#: src/files/app_dialogs.zig
+msgid "File already exists"
+msgstr "Файл уже существует"
+
+#: src/editor/app.zig
+msgid "File changed on disk. Use Save As to keep your edits in another file."
+msgstr "Файл изменился на диске. Используйте «Сохранить как», чтобы сохранить изменения в другом файле."
+
+#: src/files/app_dialogs.zig
+msgid "File created"
+msgstr "Файл создан"
+
+#: src/control_center/search_index.zig
+msgid "File dialogs"
+msgstr "Файловые диалоги"
+
+#: src/files/app_chooser.zig
+msgid "File name:"
+msgstr "Имя файла:"
+
+#: src/files/archive.zig
+msgid "File no longer exists in the archive"
+msgstr "Файла больше нет в архиве"
+
+#: src/pdf/app_document.zig
+msgid "File not found."
+msgstr "Файл не найден."
+
+#: src/desktop/watcher.zig
+msgid "File operation failed"
+msgstr "Не удалось выполнить файловую операцию"
+
+#: src/delete_dialog.zig
+msgid "Files and folders in this selection"
+msgstr "Файлы и папки в этом выделении"
+
+#: src/files/app_paint.zig
+msgid "Filter"
+msgstr "Фильтр"
+
+#: src/editor/app.zig
+msgid "Find"
+msgstr "Найти"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers"
+msgstr "Найти доступные принтеры"
+
+#: src/control_center/sections/printers.zig
+msgid "Find available printers again and choose the current discovered device."
+msgstr "Повторите поиск принтеров и выберите нужное обнаруженное устройство."
+
+#: src/pdf/app_paint.zig
+msgid "Find in document..."
+msgstr "Найти в документе…"
+
+#: src/pdf/app_paint.zig
+msgid "Find ▲"
+msgstr "Найти ▲"
+
+#: src/editor/app.zig
+msgid "Find…"
+msgstr "Найти…"
+
+#: src/control_center/sections/printers.zig
+msgid "Finish or cancel the printer's jobs before changing its identifier."
+msgstr "Завершите или отмените задания принтера перед изменением его идентификатора."
+
+#: src/editor/app.zig
+msgid "Finish the file dialog or operation before closing."
+msgstr "Закройте файловый диалог или завершите операцию перед закрытием."
+
+#: src/files/app_places.zig
+msgid "Finish the running file operation first"
+msgstr "Сначала завершите текущую файловую операцию"
+
+#: src/control_center/sections/region.zig
+msgid "First day of the week"
+msgstr "Первый день недели"
+
+#: src/control_center/search_index.zig
+msgid "First day of week"
+msgstr "Первый день недели"
+
+#: src/images/app.zig
+msgid "Fit"
+msgstr "Вписать"
+
+#: src/pdf/app_paint.zig
+msgid "Fit page"
+msgstr "Вписать страницу"
+
+#: src/pdf/app_paint.zig
+msgid "Fit width"
+msgstr "По ширине"
+
+#: src/start_menu/panel.zig
+msgid "Five applications already pinned"
+msgstr "Уже закреплено пять приложений"
+
+#: src/control_center/search_index.zig
+msgid "Fixed desktop icons"
+msgstr "Неподвижные значки рабочего стола"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped"
+msgstr "Отражено"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 180°"
+msgstr "Отражено на 180°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 270°"
+msgstr "Отражено на 270°"
+
+#: src/control_center/sections/display.zig
+msgid "Flipped 90°"
+msgstr "Отражено на 90°"
+
+#: src/control_center/sections/desktop.zig
+msgid "Floating"
+msgstr "Свободное размещение"
+
+#: src/control_center/search_index.zig
+msgid "Floating apps"
+msgstr "Свободно размещаемые приложения"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Down"
+msgstr "Фокус вниз"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Left"
+msgstr "Фокус влево"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Next"
+msgstr "Фокус на следующее окно"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Prev"
+msgstr "Фокус на предыдущее окно"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Right"
+msgstr "Фокус вправо"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus Up"
+msgstr "Фокус вверх"
+
+#: src/control_center/sections/appearance.zig
+msgid "Focus camera"
+msgstr "Камера фокуса"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window above."
+msgstr "Перевести фокус на окно сверху."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window below."
+msgstr "Перевести фокус на окно снизу."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the left."
+msgstr "Перевести фокус на окно слева."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Focus the window to the right."
+msgstr "Перевести фокус на окно справа."
+
+#: src/control_center/search_index.zig
+msgid "Focus zoom"
+msgstr "Масштаб фокуса"
+
+#: src/desktop/app_paint.zig
+msgid "Folder"
+msgstr "Папка"
+
+#: src/files/app_dialogs.zig
+msgid "Folder already exists"
+msgstr "Папка уже существует"
+
+#: src/files/app_dialogs.zig
+msgid "Folder created"
+msgstr "Папка создана"
+
+#: src/files/worker.zig
+msgid "Folder not found"
+msgstr "Папка не найдена"
+
+#: src/delete_dialog.zig
+msgid "Folder · includes its contents"
+msgstr "Папка · включая содержимое"
+
+#: src/files/app_chooser.zig
+msgid "Folder:"
+msgstr "Папка:"
+
+#: src/files/app_menu.zig
+msgid "Folders only"
+msgstr "Только папки"
+
+#: src/control_center/search_index.zig
+msgid "Font"
+msgstr "Шрифт"
+
+#: src/control_center/search_index.zig
+msgid "Font size"
+msgstr "Размер шрифта"
+
+#: src/control_center/sections/appearance.zig
+msgid "Fonts & cursor"
+msgstr "Шрифты и указатель"
+
+#: src/taskbar/window_menu.zig
+msgid "Force Close"
+msgstr "Принудительно закрыть"
+
+#: src/system_monitor/app.zig
+msgid "Force quit"
+msgstr "Принудительно завершить"
+
+#: src/system_monitor/app.zig
+msgid "Force quit requested"
+msgstr "Запрошено принудительное завершение"
+
+#: src/system_monitor/app.zig
+msgid "Force quit this process?"
+msgstr "Принудительно завершить этот процесс?"
+
+#: src/system_monitor/app.zig
+msgid "Force quit…"
+msgstr "Принудительно завершить…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget Device"
+msgstr "Забыть устройство"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Forget this device? Pair it again to reconnect."
+msgstr "Забыть это устройство? Для подключения потребуется повторное сопряжение."
+
+#: src/control_center/sections/region.zig
+msgid "Formats Preview"
+msgstr "Предпросмотр форматов"
+
+#: src/files/app_torrents.zig
+msgid "Forward"
+msgstr "Вперёд"
+
+#: src/control_center/sections/region.zig
+msgid "Friday"
+msgstr "Пятница"
+
+#: src/screenshot/selector.zig
+msgid "Full Screen"
+msgstr "На весь экран"
+
+#: src/battery_popup.zig
+msgid "Full capacity"
+msgstr "Полная ёмкость"
+
+#: src/control_center/sections/users.zig
+msgid "Full name"
+msgstr "Полное имя"
+
+#: src/taskbar/battery.zig
+msgid "Fully Charged"
+msgstr "Полностью заряжено"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."
+msgstr "Цвета GTK применены. Перезапустите приложения GTK. Приложения с собственными стилями или настройками изоляции могут выглядеть иначе."
+
+#: src/control_center/sections/desktop.zig
+msgid "Gap ({n} px)"
+msgstr "Отступ ({n} пикс.)"
+
+#: src/control_center/sections/network.zig
+msgid "Gateway"
+msgstr "Шлюз"
+
+#: src/control_center/panel.zig
+msgid "General"
+msgstr "Общие"
+
+#: src/files/app_layout.zig
+msgid "Git"
+msgstr "Git"
+
+#: src/files/app_paint.zig
+msgid "Git View"
+msgstr "Режим Git"
+
+#: src/control_center/sections/network.zig
+msgid "Good"
+msgstr "Хорошо"
+
+#: src/files/app_torrents.zig
+msgid "Grid"
+msgstr "Сетка"
+
+#: src/files/properties.zig
+msgid "Group"
+msgstr "Группа"
+
+#: src/control_center/sections/users.zig
+msgid "Groups"
+msgstr "Группы"
+
+#: src/control_center/sections/network.zig
+msgid "Hardware blocked"
+msgstr "Заблокировано аппаратно"
+
+#: src/printing/ladder.zig
+msgid "Have an administrator inspect the node; never write print data to a regular file."
+msgstr "Попросите администратора проверить узел; никогда не записывайте данные печати в обычный файл."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Headset · Audio and microphone"
+msgstr "Гарнитура · Звук и микрофон"
+
+#: src/battery_popup.zig
+msgid "Health"
+msgstr "Состояние"
+
+#: src/printing/cups.zig
+msgid "Held"
+msgstr "Удерживается"
+
+#: src/control_center/sections/desktop.zig
+msgid "Hide after"
+msgstr "Скрывать через"
+
+#: src/printing/options.zig
+msgid "High"
+msgstr "Высокое"
+
+#: src/control_center/sections/appearance.zig
+msgid "Highlight active app"
+msgstr "Подсвечивать активное приложение"
+
+#: src/control_center/sections/desktop.zig
+msgid "Highlighted: bottom-left screen"
+msgstr "Выбран: нижний левый экран"
+
+#: src/desktop/watcher.zig
+msgid "Home"
+msgstr "Домашняя папка"
+
+#: src/control_center/sections/desktop.zig
+msgid "Horizontal Pan"
+msgstr "Горизонтальное перемещение"
+
+#: src/control_center/sections/desktop.zig
+msgid "How long Super + arrow keys take to slide to the next desktop."
+msgstr "Длительность перехода к соседнему рабочему столу по Super + стрелка."
+
+#: src/control_center/sections/input.zig
+msgid "INPUT"
+msgstr "ВВОД"
+
+#: src/control_center/sections/printers.zig
+msgid "IPP Everywhere / AirPrint"
+msgstr "IPP Everywhere / AirPrint"
+
+#: src/control_center/sections/network.zig
+msgid "IPv4 address"
+msgstr "Адрес IPv4"
+
+#: src/control_center/search_index.zig
+msgid "Icon bottom padding"
+msgstr "Отступ значка снизу"
+
+#: src/control_center/search_index.zig
+msgid "Icon left padding"
+msgstr "Отступ значка слева"
+
+#: src/control_center/search_index.zig
+msgid "Icon theme"
+msgstr "Тема значков"
+
+#: src/system_monitor/app.zig
+msgid "Idle"
+msgstr "Бездействует"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Image"
+msgstr "Изображение"
+
+#: src/images/app.zig
+msgid "Image exceeds the 32 megapixel preview limit"
+msgstr "Изображение превышает предел предпросмотра в 32 мегапикселя"
+
+#: src/images/app.zig
+msgid "Images ({position}/{count})"
+msgstr "Изображения ({position}/{count})"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in the chosen folder"
+msgstr "Изображения в выбранной папке"
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "Images in {folder}"
+msgstr "Изображения в {folder}"
+
+#: src/control_center/panel.zig
+msgid "In Files, click an icon to open it in list or icons view. Click the name to select."
+msgstr "В «Файлах» нажмите значок, чтобы открыть объект в любом режиме просмотра. Нажмите имя, чтобы выделить."
+
+#: src/control_center/search_index.zig
+msgid "Inactive window opacity"
+msgstr "Непрозрачность неактивных окон"
+
+#: src/control_center/sections/printers.zig
+msgid "Inches"
+msgstr "Дюймы"
+
+#: src/session/lock.zig
+msgid "Incorrect password. Try again."
+msgstr "Неверный пароль. Попробуйте ещё раз."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase display brightness."
+msgstr "Увеличить яркость экрана."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase system volume."
+msgstr "Увеличить громкость системы."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Increase the focused window's size."
+msgstr "Увеличить размер активного окна."
+
+#: src/control_center/sections/region.zig
+msgid "Inherited from login ({locale})"
+msgstr "Унаследовано от входа ({locale})"
+
+#: src/control_center/panel.zig
+msgid "Input"
+msgstr "Ввод"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Input · Keyboard, mouse or controller"
+msgstr "Ввод · Клавиатура, мышь или контроллер"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Install"
+msgstr "Установить"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."
+msgstr "Установите qt5ct для приложений Qt 5 или qt6ct для Qt 6 и повторите применение."
+
+#: src/files/appimage.zig
+msgid "Install squashfs-tools to add AppImages to applications"
+msgstr "Установите squashfs-tools для добавления AppImage в приложения"
+
+#: src/control_center/search_index.zig
+msgid "Install theme"
+msgstr "Установить тему"
+
+#: src/control_center/sections/appearance.zig
+msgid "Install theme…"
+msgstr "Установить тему…"
+
+#: src/files/app_opening.zig
+msgid "Installing theme…"
+msgstr "Установка темы…"
+
+#: src/session/power.zig
+msgid "Interactive authorization required."
+msgstr "Требуется подтверждение пользователя."
+
+#: src/control_center/welcome.zig
+msgid "Interface scale"
+msgstr "Масштаб интерфейса"
+
+#: src/control_center/sections/network.zig
+msgid "Internet"
+msgstr "Интернет"
+
+#: src/control_center/sections/network.zig
+msgid "Internet access not verified"
+msgstr "Доступ в интернет не проверен"
+
+#: src/files/git.zig
+msgid "Invalid branch name"
+msgstr "Недопустимое имя ветки"
+
+#: src/files/app_dialogs.zig
+msgid "Invalid characters in name"
+msgstr "Недопустимые символы в имени"
+
+#: src/printing/admin.zig
+msgid "Invalid cups-pk-helper reply."
+msgstr "Недопустимый ответ cups-pk-helper."
+
+#: src/files/main.zig
+msgid "Invalid dropped list"
+msgstr "Недопустимый список перетаскиваемых файлов"
+
+#: src/files/main.zig
+msgid "Invalid file clipboard"
+msgstr "Недопустимое содержимое файлового буфера обмена"
+
+#: src/files/app_opening.zig
+msgid "Invalid folder picker result"
+msgstr "Недопустимый результат выбора папки"
+
+#: src/pdf/app_document.zig
+msgid "Invalid or corrupt PDF document."
+msgstr "Недопустимый или повреждённый документ PDF."
+
+#: src/printing/admin.zig
+msgid "Invalid or oversized printer discovery reply."
+msgstr "Недопустимый или слишком большой ответ поиска принтеров."
+
+#: src/printing/admin.zig
+msgid "Invalid printer administration reply."
+msgstr "Недопустимый ответ управления принтером."
+
+#: src/printing/admin.zig
+msgid "Invalid service-manager reply."
+msgstr "Недопустимый ответ диспетчера служб."
+
+#: src/printing/admin.zig
+msgid "Invalid system bus reply."
+msgstr "Недопустимый ответ системной шины."
+
+#: src/files/torrents.zig
+msgid "Invalid transfer metadata"
+msgstr "Недопустимые метаданные передачи"
+
+#: src/files/torrents.zig
+msgid "Invalid transfer update"
+msgstr "Недопустимое обновление передачи"
+
+#: src/control_center/sections/printers.zig
+msgid "It printed"
+msgstr "Напечаталось"
+
+#: src/control_center/search_index.zig
+msgid "Italic clock"
+msgstr "Курсив в часах"
+
+#: src/control_center/sections/appearance.zig
+msgid "Italic clock text"
+msgstr "Курсивный текст часов"
+
+#: src/files/app_paint.zig
+msgid "Items"
+msgstr "Объекты"
+
+#: src/files/app_fileops.zig
+msgid "Items moved to Trash"
+msgstr "Объекты перемещены в корзину"
+
+#: src/files/app_fileops.zig
+msgid "Items permanently deleted"
+msgstr "Объекты удалены безвозвратно"
+
+#: src/control_center/sections/printers.zig
+msgid "Job history · {n}"
+msgstr "История заданий · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Job {id} · {state}"
+msgstr "Задание {id} · {state}"
+
+#: src/network/popup.zig
+msgid "Join"
+msgstr "Подключиться"
+
+#: src/control_center/sections/network.zig
+msgid "Join Hidden Network"
+msgstr "Подключиться к скрытой сети"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep connection"
+msgstr "Сохранить подключение"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep desktop icons in place"
+msgstr "Закрепить значки рабочего стола"
+
+#: src/control_center/sections/users.zig
+msgid "Keep home"
+msgstr "Сохранить домашнюю папку"
+
+#: src/control_center/sections/desktop.zig
+msgid "Keep icons fixed on screen while panning and zooming."
+msgstr "Сохранять положение значков на экране при перемещении и масштабировании."
+
+#: src/control_center/sections/printers.zig
+msgid "Keep identifier"
+msgstr "Сохранить идентификатор"
+
+#: src/control_center/sections/printers.zig
+msgid "Keep printer"
+msgstr "Сохранить принтер"
+
+#: src/control_center/sections/appearance.zig
+msgid "Keep zoom"
+msgstr "Сохранить масштаб"
+
+#: src/control_center/panel.zig
+msgid "Keyboard Shortcuts"
+msgstr "Комбинации клавиш"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat delay"
+msgstr "Задержка повтора клавиш"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard repeat rate"
+msgstr "Частота повтора клавиш"
+
+#: src/control_center/search_index.zig
+msgid "Keyboard shortcuts"
+msgstr "Комбинации клавиш"
+
+#: src/files/app_torrent_rows.zig
+msgid "Known peers: {value}"
+msgstr "Известные участники: {value}"
+
+#: src/control_center/sections/appearance.zig
+msgid "LEFT"
+msgstr "СЛЕВА"
+
+#: src/control_center/sections/printers.zig
+msgid "Label printer and advanced test tools"
+msgstr "Принтер этикеток и расширенные средства проверки"
+
+#: src/control_center/sections/region.zig
+msgid "Language"
+msgstr "Язык"
+
+#: src/control_center/sections/printers.zig
+msgid "Language: {language}. This sample bypasses the filters and uses the queue's backend."
+msgstr "Язык: {language}. Этот образец обходит фильтры и использует модуль подключения очереди."
+
+#: src/control_center/sections/appearance.zig
+msgid "Large"
+msgstr "Большой"
+
+#: src/files/app_menu.zig
+msgid "Largest first"
+msgstr "Сначала большие"
+
+#: src/control_center/sections/printers.zig
+msgid "Last job"
+msgstr "Последнее задание"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Last reported signal: {signal} dBm"
+msgstr "Последний уровень сигнала: {signal} дБм"
+
+#: src/start_menu/panel.zig
+msgid "Launch failed. The application may have been removed."
+msgstr "Запуск не удался. Возможно, приложение удалено."
+
+#: src/control_center/search_index.zig
+msgid "Launch splash"
+msgstr "Заставка при запуске"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Launcher"
+msgstr "Панель запуска"
+
+#: src/control_center/sections/desktop.zig
+msgid "Layouts and split sizes are saved for your next session."
+msgstr "Расположение и размеры областей сохраняются для следующего сеанса."
+
+#: src/network/popup.zig
+msgid "Leave blank to use saved password"
+msgstr "Оставьте пустым, чтобы использовать сохранённый пароль"
+
+#: src/control_center/sections/appearance.zig
+msgid "Left"
+msgstr "Слева"
+
+#: src/control_center/search_index.zig
+msgid "Lid close action"
+msgstr "Действие при закрытии крышки"
+
+#: src/control_center/sections/appearance.zig
+msgid "Light the active window's edge near the pointer"
+msgstr "Подсвечивать край активного окна рядом с указателем"
+
+#: src/control_center/sections/network.zig
+msgid "Limited access"
+msgstr "Ограниченный доступ"
+
+#: src/editor/app.zig
+msgid "Line {line}, Column {column} · UTF-8{bom} · {ending}"
+msgstr "Строка {line}, столбец {column} · UTF-8{bom} · {ending}"
+
+#: src/files/app_listing.zig
+msgid "Link"
+msgstr "Ссылка"
+
+#: src/pdf/app_pointer.zig
+msgid "Link copied. Paste it into your browser."
+msgstr "Ссылка скопирована. Вставьте её в браузер."
+
+#: src/files/properties.zig
+msgid "Link permissions cannot be changed"
+msgstr "Права доступа к ссылке изменить нельзя"
+
+#: src/control_center/sections/network.zig
+msgid "Link speed"
+msgstr "Скорость соединения"
+
+#: src/files/app_torrents.zig
+msgid "List"
+msgstr "Список"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper height"
+msgstr "Высота загруженной бумаги"
+
+#: src/control_center/sections/printers.zig
+msgid "Loaded paper width"
+msgstr "Ширина загруженной бумаги"
+
+#: src/images/app.zig
+msgid "Loading image…"
+msgstr "Загрузка изображения…"
+
+#: src/control_center/sections/printers.zig
+msgid "Loading printers…"
+msgstr "Загрузка принтеров…"
+
+#: src/control_center/sections/services.zig
+msgid "Loading services…"
+msgstr "Загрузка служб…"
+
+#: src/files/properties.zig
+msgid "Location"
+msgstr "Расположение"
+
+#: src/control_center/sections/display.zig
+msgid "Lock"
+msgstr "Заблокировать"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock Screen"
+msgstr "Заблокировать экран"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Lock the session and turn off the display."
+msgstr "Заблокировать сеанс и выключить экран."
+
+#: src/control_center/sections/display.zig
+msgid "Locks and sleeps, even with another display connected."
+msgstr "Блокирует сеанс и переводит компьютер в сон, даже если подключён другой экран."
+
+#: src/control_center/sections/display.zig
+msgid "Locks, and turns off the built-in screen while another display is connected."
+msgstr "Блокирует сеанс и выключает встроенный экран, если подключён другой экран."
+
+#: src/session/lock.zig
+msgid "Log In"
+msgstr "Войти"
+
+#: src/power_menu.zig
+msgid "Log Out"
+msgstr "Выйти"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Log out of the desktop session."
+msgstr "Завершить сеанс рабочего стола."
+
+#: src/session/power.zig
+msgid "Logind refused the request."
+msgstr "Logind отклонила запрос."
+
+#: src/session/power.zig
+msgid "Logind request failed."
+msgstr "Запрос logind не выполнен."
+
+#: src/session/power.zig
+msgid "Logind returned a malformed reply."
+msgstr "Logind вернула некорректный ответ."
+
+#: src/session/power.zig
+msgid "Logind returned an unrecognized reply."
+msgstr "Logind вернула неизвестный ответ."
+
+#: src/session/lock.zig
+msgid "Lost contact with login service. Try again."
+msgstr "Связь со службой входа потеряна. Попробуйте ещё раз."
+
+#: src/control_center/sections/network.zig
+msgid "MAC address"
+msgstr "MAC-адрес"
+
+#: src/control_center/sections/display.zig
+msgid "Main display"
+msgstr "Основной экран"
+
+#: src/control_center/sections/display.zig
+msgid "Make main display"
+msgstr "Сделать основным экраном"
+
+#: src/control_center/panel.zig
+msgid "Make your desktop your own."
+msgstr "Настройте рабочий стол по своему вкусу."
+
+#: src/control_center/panel.zig
+msgid "Make your mouse and keyboard feel right."
+msgstr "Настройте мышь и клавиатуру для удобной работы."
+
+#: src/control_center/panel.zig
+msgid "Manage and analyze systemd services."
+msgstr "Управляйте службами systemd и анализируйте их."
+
+#: src/control_center/sections/printers.zig
+msgid "Manage…"
+msgstr "Управление…"
+
+#: src/control_center/sections/printers.zig
+msgid "Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"
+msgstr "Поля (мм): слева {left}, справа {right}, сверху {top}, снизу {bottom}"
+
+#: src/control_center/panel.zig
+msgid "Master volume"
+msgstr "Общая громкость"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Maximize or restore the focused window."
+msgstr "Развернуть или восстановить активное окно."
+
+#: src/control_center/sections/printers.zig
+msgid "Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."
+msgstr "Измерьте прямоугольник от края до края в выбранных единицах. Масштабирование печати для этого теста отключено."
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle height"
+msgstr "Измеренная высота прямоугольника"
+
+#: src/control_center/sections/printers.zig
+msgid "Measured rectangle width"
+msgstr "Измеренная ширина прямоугольника"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Media"
+msgstr "Носитель"
+
+#: src/control_center/sections/printers.zig
+msgid "Media and resolution"
+msgstr "Носитель и разрешение"
+
+#: src/printing/ladder.zig
+msgid "Media and resolution need confirmation against what is loaded in the printer."
+msgstr "Бумагу и разрешение нужно проверить на соответствие фактически загруженному материалу."
+
+#: src/control_center/sections/appearance.zig
+msgid "Medium"
+msgstr "Средний"
+
+#: src/system_monitor/app.zig
+msgid "Memory (resident)"
+msgstr "Память (резидентная)"
+
+#: src/editor/main.zig
+msgid "Menu"
+msgstr "Меню"
+
+#: src/control_center/search_index.zig
+msgid "Menu bottom padding"
+msgstr "Отступ меню снизу"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu height"
+msgstr "Высота меню"
+
+#: src/control_center/search_index.zig
+msgid "Menu left padding"
+msgstr "Отступ меню слева"
+
+#: src/control_center/sections/appearance.zig
+msgid "Menu width"
+msgstr "Ширина меню"
+
+#: src/files/app_torrent_rows.zig
+msgid "Metadata…"
+msgstr "Метаданные…"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mic Mute"
+msgstr "Выключить микрофон"
+
+#: src/osd_paint.zig
+msgid "Mic on"
+msgstr "Микрофон включён"
+
+#: src/control_center/search_index.zig
+msgid "Microphone volume"
+msgstr "Громкость микрофона"
+
+#: src/control_center/sections/printers.zig
+msgid "Millimetres"
+msgstr "Миллиметры"
+
+#: src/control_center/sections/desktop.zig
+msgid "Mini Map"
+msgstr "Мини-карта"
+
+#: src/control_center/search_index.zig
+msgid "Mini map"
+msgstr "Мини-карта"
+
+#: src/control_center/search_index.zig
+msgid "Mini map hide delay"
+msgstr "Задержка скрытия мини-карты"
+
+#: src/control_center/search_index.zig
+msgid "Mini map position"
+msgstr "Положение мини-карты"
+
+#: src/files/app_layout.zig
+msgid "Modified"
+msgstr "Изменён"
+
+#: src/control_center/sections/region.zig
+msgid "Monday"
+msgstr "Понедельник"
+
+#: src/control_center/search_index.zig
+msgid "Monitor"
+msgstr "Монитор"
+
+#: src/control_center/sections/printers.zig
+msgid "More printing options"
+msgstr "Дополнительные параметры печати"
+
+#: src/control_center/welcome.zig
+msgid "More settings"
+msgstr "Другие настройки"
+
+#: src/control_center/sections/appearance.zig
+msgid "Motion & feedback"
+msgstr "Движение и обратная связь"
+
+#: src/files/app_model.zig
+msgid "Mount"
+msgstr "Подключить"
+
+#: src/files/app_places.zig
+msgid "Mounted"
+msgstr "Подключено"
+
+#: src/files/app_places.zig
+msgid "Mounting…"
+msgstr "Подключение…"
+
+#: src/control_center/search_index.zig
+msgid "Mouse speed"
+msgstr "Скорость мыши"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move To Workspace"
+msgstr "Переместить в рабочее пространство"
+
+#: src/control_center/sections/appearance.zig
+msgid "Move file manager aside"
+msgstr "Отодвигать файловый менеджер"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider down."
+msgstr "Сдвинуть соответствующую границу разделения вниз."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider left."
+msgstr "Сдвинуть соответствующую границу разделения влево."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider right."
+msgstr "Сдвинуть соответствующую границу разделения вправо."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the relevant split divider up."
+msgstr "Сдвинуть соответствующую границу разделения вверх."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to depth {depth}."
+msgstr "Переместить окно на глубину {depth}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move the window to workspace {n} and follow it."
+msgstr "Переместить окно в рабочее пространство {n} и перейти за ним."
+
+#: src/images/app.zig
+msgid "Move this image to Trash?"
+msgstr "Переместить это изображение в корзину?"
+
+#: src/delete_dialog.zig
+msgid "Move to Trash"
+msgstr "Переместить в корзину"
+
+#: src/files/app_dialogs.zig
+msgid "Move to Trash?"
+msgstr "Переместить в корзину?"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Move to workspace."
+msgstr "Переместить в рабочее пространство."
+
+#: src/control_center/welcome.zig
+msgid "Move, resize and overlap windows."
+msgstr "Перемещайте окна, меняйте их размер и размещайте с перекрытием."
+
+#: src/images/app.zig
+msgid "Moved to Trash."
+msgstr "Перемещено в корзину."
+
+#: src/images/app.zig
+msgid "Moving to Trash…"
+msgstr "Перемещение в корзину…"
+
+#: src/files/app.zig
+msgid "Music"
+msgstr "Музыка"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute system audio."
+msgstr "Выключить или включить звук системы."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Mute or unmute the microphone."
+msgstr "Выключить или включить микрофон."
+
+#: src/osd_paint.zig
+msgid "Muted"
+msgstr "Звук выключен"
+
+#: src/system_monitor/app.zig
+msgid "My processes"
+msgstr "Мои процессы"
+
+#: src/files/app_layout.zig
+msgid "Name"
+msgstr "Имя"
+
+#: src/files/app_dialogs.zig
+msgid "Name cannot be empty"
+msgstr "Имя не может быть пустым"
+
+#: src/files/app_menu.zig
+msgid "Name: A to Z"
+msgstr "Имя: от А до Я"
+
+#: src/files/app_menu.zig
+msgid "Name: Z to A"
+msgstr "Имя: от Я до А"
+
+#: src/files/properties.zig
+msgid "Named pipe"
+msgstr "Именованный канал"
+
+#: src/control_center/search_index.zig
+msgid "Natural scroll"
+msgstr "Естественная прокрутка"
+
+#: src/control_center/sections/printers.zig
+msgid "Neither test produced output: check the backend, connection, printer and loaded paper."
+msgstr "Ни один тест не напечатал: проверьте модуль подключения, соединение, принтер и загруженную бумагу."
+
+#: src/control_center/panel.zig
+msgid "Network"
+msgstr "Сеть"
+
+#: src/network/popup.zig
+msgid "Network Name (SSID)"
+msgstr "Имя сети (SSID)"
+
+#: src/network/popup.zig
+msgid "Network Settings"
+msgstr "Настройки сети"
+
+#: src/control_center/sections/network.zig
+msgid "Network name"
+msgstr "Имя сети"
+
+#: src/control_center/sections/network.zig
+msgid "Network name (SSID)"
+msgstr "Имя сети (SSID)"
+
+#: src/control_center/sections/network.zig
+msgid "Network names must be at most 32 bytes."
+msgstr "Имя сети не может быть длиннее 32 байт."
+
+#: src/printing/ladder.zig
+msgid "Network reachability has not been checked."
+msgstr "Доступность по сети не проверена."
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager is unavailable"
+msgstr "NetworkManager недоступен"
+
+#: src/control_center/sections/network.zig
+msgid "NetworkManager unavailable"
+msgstr "NetworkManager недоступен"
+
+#: src/editor/app.zig
+msgid "New"
+msgstr "Создать"
+
+#: src/files/app_dialogs.zig
+msgid "New Branch"
+msgstr "Новая ветка"
+
+#: src/desktop/app_actions.zig
+msgid "New File"
+msgstr "Новый файл"
+
+#: src/desktop/app_paint.zig
+msgid "New File — Enter creates"
+msgstr "Новый файл — Enter: создать"
+
+#: src/files/app_dialogs.zig
+msgid "New File.txt"
+msgstr "Новый файл.txt"
+
+#: src/desktop/app_actions.zig
+msgid "New Folder"
+msgstr "Новая папка"
+
+#: src/files/app_git_sidebar.zig
+msgid "New branch"
+msgstr "Новая ветка"
+
+#: src/control_center/sections/users.zig
+msgid "New password"
+msgstr "Новый пароль"
+
+#: src/chrome_tabs.zig
+msgid "New tab"
+msgstr "Новая вкладка"
+
+#: src/files/app_menu.zig
+msgid "Newest first"
+msgstr "Сначала новые"
+
+#: src/editor/app.zig
+msgid "Next"
+msgstr "Далее"
+
+#: src/session/lock.zig
+msgid "Next account"
+msgstr "Следующая учётная запись"
+
+#: src/control_center/search_index.zig
+msgid "Night light"
+msgstr "Ночной свет"
+
+#: src/control_center/search_index.zig
+msgid "Night light temperature"
+msgstr "Температура ночного света"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No Bluetooth adapter found"
+msgstr "Адаптер Bluetooth не найден"
+
+#: src/control_center/sections/network.zig
+msgid "No Wi-Fi adapter found"
+msgstr "Адаптер Wi-Fi не найден"
+
+#: src/control_center/sections/sound.zig
+msgid "No active audio streams"
+msgstr "Нет активных звуковых потоков"
+
+#: src/control_center/sections/printers.zig
+msgid "No active jobs"
+msgstr "Нет активных заданий"
+
+#: src/control_center/sections/network.zig
+msgid "No adapter"
+msgstr "Нет адаптера"
+
+#: src/files/open_with.zig
+msgid "No applications available"
+msgstr "Нет доступных приложений"
+
+#: src/start_menu/panel.zig
+msgid "No applications found"
+msgstr "Приложения не найдены"
+
+#: src/control_center/panel.zig
+msgid "No audio device available"
+msgstr "Нет доступного звукового устройства"
+
+#: src/files/app_paint.zig
+msgid "No changed files"
+msgstr "Нет изменённых файлов"
+
+#: src/control_center/sections/users.zig
+msgid "No changes were made. Authentication was cancelled or the request failed."
+msgstr "Изменения не внесены. Проверка подлинности отменена или запрос не выполнен."
+
+#: src/pdf/app_paint.zig
+msgid "No document open. Click 'Open' or press Ctrl+O."
+msgstr "Документ не открыт. Нажмите «Открыть» или Ctrl+O."
+
+#: src/control_center/sections/appearance_wallpaper.zig
+msgid "No images in this folder"
+msgstr "В этой папке нет изображений"
+
+#: src/control_center/sections/network.zig
+msgid "No internet access"
+msgstr "Нет доступа в интернет"
+
+#: src/control_center/sections/network.zig
+msgid "No internet connection"
+msgstr "Нет подключения к интернету"
+
+#: src/control_center/sections/users.zig
+msgid "No login accounts were found."
+msgstr "Учётные записи для входа не найдены."
+
+#: src/session/lock.zig
+msgid "No login service"
+msgstr "Служба входа недоступна"
+
+#: src/printing/ladder.zig
+msgid "No matching USB device is available to identify its node."
+msgstr "Нет подходящего устройства USB для определения его узла."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No matching devices"
+msgstr "Нет подходящих устройств"
+
+#: src/files/app_paint.zig
+msgid "No matching items"
+msgstr "Нет подходящих объектов"
+
+#: src/system_monitor/app.zig
+msgid "No matching processes"
+msgstr "Нет подходящих процессов"
+
+#: src/control_center/sections/services.zig
+msgid "No matching services."
+msgstr "Подходящие службы не найдены."
+
+#: src/control_center/sections/network.zig
+msgid "No networks found. Scan to try again."
+msgstr "Сети не найдены. Повторите поиск."
+
+#: src/network/popup.zig
+msgid "No networks found. Try reopening to scan again."
+msgstr "Сети не найдены. Откройте панель снова для повторного поиска."
+
+#: src/pdf/app_paint.zig
+msgid "No outline in document"
+msgstr "В документе нет оглавления"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No paired devices. Choose Pair New Device to get started."
+msgstr "Нет сопряжённых устройств. Нажмите «Сопрячь новое устройство» для начала."
+
+#: src/pdf/main.zig
+msgid "No print service answered (xdg-desktop-portal)."
+msgstr "Служба печати не ответила (xdg-desktop-portal)."
+
+#: src/control_center/sections/printers.zig
+msgid "No printers configured."
+msgstr "Принтеры не настроены."
+
+#: src/files/app_paint.zig
+msgid "No recent files"
+msgstr "Нет недавних файлов"
+
+#: src/printing/ladder.zig
+msgid "No recent job information is available."
+msgstr "Сведения о недавнем задании недоступны."
+
+#: src/control_center/sections/users.zig
+msgid "No sessions available"
+msgstr "Нет доступных сеансов"
+
+#: src/session/lock.zig
+msgid "No sessions installed"
+msgstr "Сеансы не установлены"
+
+#: src/control_center/search.zig
+msgid "No settings found"
+msgstr "Настройки не найдены"
+
+#: src/share_picker/client.zig
+msgid "No sources available."
+msgstr "Нет доступных источников."
+
+#: src/control_center/panel.zig
+msgid "No supported backlight"
+msgstr "Поддерживаемая подсветка не найдена"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "No supported profiles reported"
+msgstr "Поддерживаемые профили не обнаружены"
+
+#: src/control_center/sections/printers.zig
+msgid "No supported resolution consistently matches both measurements. Check the ruler and print scaling."
+msgstr "Ни одно поддерживаемое разрешение не соответствует обоим измерениям. Проверьте линейку и масштабирование печати."
+
+#: src/files/app_terminal.zig
+msgid "No terminal directory"
+msgstr "Папка терминала не задана"
+
+#: src/files/app_torrents.zig
+msgid "No transfers yet. Add a .torrent file or magnet link."
+msgstr "Передач пока нет. Добавьте файл .torrent или magnet-ссылку."
+
+#: src/control_center/sections/printers.zig
+msgid "No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."
+msgstr "Однозначно подобрать драйвер не удалось. Выберите драйвер из списка, проверьте адрес IPP или явно выберите очередь без драйвера."
+
+#: src/control_center/sections/printers.zig
+msgid "No usblp node was found; CUPS may still use libusb or ipp-usb."
+msgstr "Файл устройства usblp не найден; CUPS всё ещё может использовать libusb или ipp-usb."
+
+#: src/session/lock.zig
+msgid "No user accounts found"
+msgstr "Учётные записи не найдены"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter"
+msgstr "Нет проводного адаптера"
+
+#: src/control_center/sections/network.zig
+msgid "No wired adapter found"
+msgstr "Проводной адаптер не найден"
+
+#: src/control_center/sections/appearance.zig
+msgid "None"
+msgstr "Нет"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Noop"
+msgstr "Без действия"
+
+#: src/control_center/sections/display.zig
+msgid "Normal"
+msgstr "Обычный"
+
+#: src/files/worker.zig
+msgid "Not a directory"
+msgstr "Не является папкой"
+
+#: src/control_center/sections/printers.zig
+msgid "Not accepting new jobs"
+msgstr "Новые задания не принимаются"
+
+#: src/files/volumes.zig
+msgid "Not authorized to eject {name}"
+msgstr "Недостаточно прав для извлечения {name}"
+
+#: src/files/volumes.zig
+msgid "Not authorized to mount {name}"
+msgstr "Недостаточно прав для подключения {name}"
+
+#: src/session/power.zig
+msgid "Not available on this system."
+msgstr "Недоступно в этой системе."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Not connected"
+msgstr "Не подключено"
+
+#: src/editor/app.zig
+msgid "Not enough free memory to hold this file."
+msgstr "Недостаточно свободной памяти для этого файла."
+
+#: src/system_monitor/app.zig
+msgid "Not enough memory to display every process"
+msgstr "Недостаточно памяти для отображения всех процессов"
+
+#: src/printing/cups.zig
+msgid "Not enough memory to load printer status. Refresh to check the result."
+msgstr "Недостаточно памяти для загрузки состояния принтера. Обновите, чтобы проверить результат."
+
+#: src/pdf/app_document.zig
+msgid "Not enough memory to open this document."
+msgstr "Недостаточно памяти для открытия документа."
+
+#: src/control_center/panel.zig
+msgid "Not enough memory to show this page."
+msgstr "Недостаточно памяти для отображения страницы."
+
+#: src/images/app.zig
+msgid "Not enough memory."
+msgstr "Недостаточно памяти."
+
+#: src/files/app_places.zig
+msgid "Not found"
+msgstr "Не найдено"
+
+#: src/control_center/sections/sound.zig
+msgid "Not saved"
+msgstr "Не сохранено"
+
+#: src/control_center/sections/region.zig
+msgid "Not specified"
+msgstr "Не указано"
+
+#: src/session/power.zig
+msgid "Not supported"
+msgstr "Не поддерживается"
+
+#: src/files/app_places.zig
+msgid "Nothing to add to Places"
+msgstr "Нет объектов для добавления в «Места»"
+
+#: src/notifications/toast.zig
+msgid "Notification"
+msgstr "Уведомление"
+
+#: src/control_center/sections/services.zig
+msgid "Notify"
+msgstr "Notify"
+
+#: src/systemd.zig
+msgid "Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."
+msgstr "Переопределение Notify сохранено, но systemd не смогла его перечитать. Попробуйте обновить после перезагрузки конфигурации диспетчера."
+
+#: src/systemd.zig
+msgid "Notify override saved, but the selected type is not active in systemd. Check other service overrides."
+msgstr "Переопределение Notify сохранено, но выбранный тип не активен в systemd. Проверьте другие переопределения службы."
+
+#: src/control_center/sections/services.zig
+msgid "Notify sets the service type and applies on its next start. Saving requires administrator authentication."
+msgstr "Notify задаёт тип службы и применяется при следующем запуске. Для сохранения требуется подтверждение администратора."
+
+#: src/systemd.zig
+msgid "Notify setting saved. Applies on the next service start."
+msgstr "Настройка Notify сохранена. Применится при следующем запуске службы."
+
+#: src/control_center/sections/region.zig
+msgid "Number"
+msgstr "Число"
+
+#: src/files/app_paint.zig
+msgid "OK"
+msgstr "ОК"
+
+#: src/control_center/sections/appearance.zig
+msgid "Off"
+msgstr "Выкл."
+
+#: src/control_center/sections/network.zig
+msgid "Offline"
+msgstr "Не в сети"
+
+#: src/printing/admin.zig
+msgid "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+msgstr "Старое переопределение принтера по умолчанию удалено, но новый параметр не удалось применить. Обновите и проверьте параметр."
+
+#: src/files/app_menu.zig
+msgid "Oldest first"
+msgstr "Сначала старые"
+
+#: src/control_center/sections/appearance.zig
+msgid "On"
+msgstr "Вкл."
+
+#: src/taskbar/battery.zig
+msgid "On Battery"
+msgstr "От батареи"
+
+#: src/printing/options.zig
+msgid "One-sided"
+msgstr "Односторонняя"
+
+#: src/files/properties.zig
+msgid "Only the owner can change permissions"
+msgstr "Только владелец может менять права доступа"
+
+#: src/files/appimage.zig
+msgid "Only type-2 AppImages are supported"
+msgstr "Поддерживаются только AppImage типа 2"
+
+#: src/control_center/sections/network.zig
+msgid "Open"
+msgstr "Открыть"
+
+#: src/files/app.zig
+msgid "Open File"
+msgstr "Открыть файл"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor"
+msgstr "Открыть системный монитор"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open System Monitor, or restore and focus its window."
+msgstr "Открыть системный монитор или восстановить его окно и перевести на него фокус."
+
+#: src/files/app_dialogs.zig
+msgid "Open With"
+msgstr "Открыть с помощью"
+
+#: src/desktop/app_actions.zig
+msgid "Open With…"
+msgstr "Открыть с помощью…"
+
+#: src/control_center/sections/network.zig
+msgid "Open a browser to sign in"
+msgstr "Откройте браузер для входа"
+
+#: src/control_center/sections/desktop.zig
+msgid "Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."
+msgstr "Откройте приложение, чтобы добавить его сюда. Расширенные правила по заголовку, модулю и шаблону задаются параметром floating в [[window_rules]]."
+
+#: src/pdf/app_keyboard.zig
+msgid "Open another PDF from Files in a new window."
+msgstr "Откройте другой PDF из «Файлов» в новом окне."
+
+#: src/control_center/search_index.zig
+msgid "Open files with a single click"
+msgstr "Открывать файлы одним нажатием"
+
+#: src/files/app_model.zig
+msgid "Open in New Window"
+msgstr "Открыть в новом окне"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open or close the application launcher."
+msgstr "Открыть или закрыть панель запуска приложений."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Open the session and power menu."
+msgstr "Открыть меню сеанса и питания."
+
+#: src/files/app_layout.zig
+msgid "Opened"
+msgstr "Открыт"
+
+#: src/files/open_with.zig
+msgid "Opened, but could not save the default app"
+msgstr "Открыто, но не удалось сохранить приложение по умолчанию"
+
+#: src/pdf/app_paint.zig
+msgid "Opening document..."
+msgstr "Открытие документа…"
+
+#: src/editor/app.zig
+msgid "Opening…"
+msgstr "Открытие…"
+
+#: src/control_center/sections/services.zig
+msgid "Optimize"
+msgstr "Оптимизировать"
+
+#: src/files/properties.zig
+msgid "Others"
+msgstr "Остальные"
+
+#: src/files/git.zig
+msgid "Out of memory"
+msgstr "Недостаточно памяти"
+
+#: src/pdf/app_paint.zig
+msgid "Outline"
+msgstr "Оглавление"
+
+#: src/control_center/sections/sound.zig
+msgid "Output"
+msgstr "Вывод"
+
+#: src/control_center/search_index.zig
+msgid "Output balance"
+msgstr "Баланс вывода"
+
+#: src/control_center/sections/display.zig
+msgid "Output name"
+msgstr "Имя экрана"
+
+#: src/control_center/search_index.zig
+msgid "Output volume"
+msgstr "Громкость вывода"
+
+#: src/control_center/sections/desktop.zig
+msgid "Output: {name}"
+msgstr "Вывод: {name}"
+
+#: src/files/properties.zig
+msgid "Owner"
+msgstr "Владелец"
+
+#: src/pdf/app.zig
+msgid "PDF Viewer"
+msgstr "Просмотр PDF"
+
+#: src/delete_dialog.zig
+msgid "PDF document"
+msgstr "Документ PDF"
+
+#: src/system_monitor/app.zig
+msgid "PID"
+msgstr "PID"
+
+#: src/files/app_sidebar_paint.zig
+msgid "PLACES"
+msgstr "МЕСТА"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "PNG and SVG images"
+msgstr "Изображения PNG и SVG"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pack or system default"
+msgstr "По умолчанию из темы или системы"
+
+#: src/control_center/sections/appearance.zig
+msgid "Packs include colours and artwork. Personal edits are saved as overrides."
+msgstr "Наборы содержат цвета и оформление. Личные изменения сохраняются отдельно."
+
+#: src/pdf/app_paint.zig
+msgid "Pages"
+msgstr "Страницы"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair Device"
+msgstr "Сопрячь устройство"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pair New Device"
+msgstr "Сопрячь новое устройство"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Paired Devices"
+msgstr "Сопряжённые устройства"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing"
+msgstr "Сопряжение"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Pairing code"
+msgstr "Код сопряжения"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Down"
+msgstr "Переместить вид вниз"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Left"
+msgstr "Переместить вид влево"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Right"
+msgstr "Переместить вид вправо"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Pan Up"
+msgstr "Переместить вид вверх"
+
+#: src/control_center/sections/desktop.zig
+msgid "Pan and zoom the canvas. Switching back restores your canvas positions and zoom."
+msgstr "Перемещайте и масштабируйте холст. При возвращении восстанавливаются положения и масштаб."
+
+#: src/control_center/sections/input.zig
+msgid "Pan speed"
+msgstr "Скорость перемещения"
+
+#: src/control_center/sections/appearance.zig
+msgid "Pan to the selected window without changing zoom."
+msgstr "Переместить вид к выбранному окну без изменения масштаба."
+
+#: src/printing/options.zig
+msgid "Paper size"
+msgstr "Размер бумаги"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {paper}"
+msgstr "Бумага: {paper}"
+
+#: src/control_center/sections/printers.zig
+msgid "Paper: {width} × {height} mm"
+msgstr "Бумага: {width} × {height} мм"
+
+#: src/control_center/sections/printers.zig
+msgid "Pass"
+msgstr "Пропустить"
+
+#: src/control_center/sections/network.zig
+msgid "Password"
+msgstr "Пароль"
+
+#: src/control_center/sections/network.zig
+msgid "Password (leave empty to use saved)"
+msgstr "Пароль (оставьте пустым для использования сохранённого)"
+
+#: src/pdf/app_paint.zig
+msgid "Password Required"
+msgstr "Требуется пароль"
+
+#: src/files/archive.zig
+msgid "Password-protected archives are not supported yet"
+msgstr "Архивы, защищённые паролем, пока не поддерживаются"
+
+#: src/desktop/app_actions.zig
+msgid "Paste"
+msgstr "Вставить"
+
+#: src/files/app_torrent_rows.zig
+msgid "Pause"
+msgstr "Приостановить"
+
+#: src/files/app_torrents.zig
+msgid "Pause all"
+msgstr "Приостановить все"
+
+#: src/system_monitor/app.zig
+msgid "Pause updates"
+msgstr "Приостановить обновления"
+
+#: src/files/app_torrent_rows.zig
+msgid "Paused"
+msgstr "Приостановлено"
+
+#: src/printing/cups.zig
+msgid "Pending"
+msgstr "Ожидает"
+
+#: src/power_profiles.zig
+msgid "Performance"
+msgstr "Производительность"
+
+#: src/delete_dialog.zig
+msgid "Permanently delete all trashed files and folders"
+msgstr "Безвозвратно удалить все файлы и папки из корзины"
+
+#: src/files/app_dialogs.zig
+msgid "Permission denied"
+msgstr "Доступ запрещён"
+
+#: src/editor/app.zig
+msgid "Permission denied. Try Save As in a writable folder."
+msgstr "Доступ запрещён. Используйте «Сохранить как» в доступной для записи папке."
+
+#: src/files/app_layout.zig
+msgid "Permissions"
+msgstr "Права доступа"
+
+#: src/files/properties.zig
+msgid "Permissions updated"
+msgstr "Права доступа обновлены"
+
+#: src/files/app.zig
+msgid "Pictures"
+msgstr "Изображения"
+
+#: src/start_menu/panel.zig
+msgid "Pin application"
+msgstr "Закрепить приложение"
+
+#: src/start_menu/panel.zig
+msgid "Pinned & Recent"
+msgstr "Закреплённые и недавние"
+
+#: src/control_center/sections/desktop.zig
+msgid "Placement"
+msgstr "Размещение"
+
+#: src/files/app_places.zig
+msgid "Places is full"
+msgstr "В «Местах» нет свободного места"
+
+#: src/images/app.zig
+msgid "Please wait for the file operation to finish."
+msgstr "Дождитесь завершения файловой операции."
+
+#: src/taskbar/battery.zig
+msgid "Plugged In"
+msgstr "От сети"
+
+#: src/control_center/sections/desktop.zig
+msgid "Position"
+msgstr "Положение"
+
+#: src/session/lock.zig
+msgid "Power"
+msgstr "Питание"
+
+#: src/power_menu.zig
+msgid "Power Off"
+msgstr "Выключить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Power Profile Cycle"
+msgstr "Переключить профиль питания"
+
+#: src/power_profiles.zig
+msgid "Power Saver"
+msgstr "Энергосбережение"
+
+#: src/session/power.zig
+msgid "Power action failed"
+msgstr "Не удалось выполнить действие с питанием"
+
+#: src/session/power.zig
+msgid "Power off"
+msgstr "Выключить"
+
+#: src/session/lock.zig
+msgid "Power off? Activate Power again to confirm."
+msgstr "Выключить компьютер? Нажмите «Питание» ещё раз для подтверждения."
+
+#: src/session/lock.zig
+msgid "Power request accepted"
+msgstr "Запрос питания принят"
+
+#: src/session/lock.zig
+msgid "Power request denied or unavailable"
+msgstr "Запрос питания отклонён или недоступен"
+
+#: src/session/power.zig
+msgid "Power request failed. Check permissions and applications blocking shutdown."
+msgstr "Не удалось выполнить запрос питания. Проверьте права доступа и приложения, блокирующие выключение."
+
+#: src/session/lock.zig
+msgid "Power service unavailable"
+msgstr "Служба питания недоступна"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff"
+msgstr "Выключить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Poweroff Auto"
+msgstr "Автоматически выключить"
+
+#: src/session/lock.zig
+msgid "Press Enter to log in"
+msgstr "Нажмите Enter для входа"
+
+#: src/session/lock.zig
+msgid "Press Enter to unlock"
+msgstr "Нажмите Enter для разблокировки"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press keys to record. Esc cancels."
+msgstr "Нажмите клавиши для записи. Esc: отмена."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Press new shortcut…"
+msgstr "Нажмите новое сочетание…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Prevent this device from connecting."
+msgstr "Запретить подключения этого устройства."
+
+#: src/files/app_torrents.zig
+msgid "Previous"
+msgstr "Назад"
+
+#: src/session/lock.zig
+msgid "Previous account"
+msgstr "Предыдущая учётная запись"
+
+#: src/pdf/app_paint.zig
+msgid "Print"
+msgstr "Печать"
+
+#: src/control_center/sections/printers.zig
+msgid "Print a 2 × 3 inch ruler…"
+msgstr "Напечатать линейку 2 × 3 дюйма…"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one test"
+msgstr "Напечатать один тест"
+
+#: src/control_center/sections/printers.zig
+msgid "Print one {kind} test on {name}?"
+msgstr "Напечатать один тест {kind} на {name}?"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue"
+msgstr "Очередь печати"
+
+#: src/control_center/sections/printers.zig
+msgid "Print queue · {n}"
+msgstr "Очередь печати · {n}"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test"
+msgstr "Тест печати"
+
+#: src/control_center/sections/printers.zig
+msgid "Print test page…"
+msgstr "Напечатать тестовую страницу…"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer"
+msgstr "Принтер"
+
+#: src/printing/admin.zig
+msgid "Printer added, enabled and accepting jobs."
+msgstr "Принтер добавлен, включён и принимает задания."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer address (ipp, ipps, socket or lpd)"
+msgstr "Адрес принтера (ipp, ipps, socket или lpd)"
+
+#: src/printing/admin.zig
+msgid "Printer administration failed; refresh and check the printer status."
+msgstr "Ошибка управления принтером; обновите и проверьте его состояние."
+
+#: src/printing/admin.zig
+msgid "Printer administration timed out. Refresh before trying again."
+msgstr "Время управления принтером истекло. Обновите перед повторной попыткой."
+
+#: src/printing/admin.zig
+msgid "Printer administration was cancelled."
+msgstr "Управление принтером отменено."
+
+#: src/printing/admin.zig
+msgid "Printer administration was not authorized or was cancelled."
+msgstr "Управление принтером не разрешено или отменено."
+
+#: src/printing/admin.zig
+msgid "Printer authorization helper unavailable. Refresh before trying again."
+msgstr "Помощник авторизации принтеров недоступен. Обновите перед повторной попыткой."
+
+#: src/printing/admin.zig
+msgid "Printer change applied."
+msgstr "Изменение принтера применено."
+
+#: src/printing/admin.zig
+msgid "Printer connection changed."
+msgstr "Подключение принтера изменено."
+
+#: src/printing/admin.zig
+msgid "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+msgstr "Очистка значений принтера по умолчанию частично завершена, но новый параметр не удалось применить. Обновите и проверьте параметр."
+
+#: src/printing/admin.zig
+msgid "Printer discovery complete."
+msgstr "Поиск принтеров завершён."
+
+#: src/printing/admin.zig
+msgid "Printer option applied."
+msgstr "Параметр принтера применён."
+
+#: src/printing/cups.zig
+msgid "Printer preferences could not be saved safely. Check the existing preferences file."
+msgstr "Не удалось безопасно сохранить параметры принтера. Проверьте существующий файл настроек."
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setting verified."
+msgstr "Параметр принтера проверен."
+
+#: src/printing/options.zig
+msgid "Printer settings"
+msgstr "Настройки принтера"
+
+#: src/control_center/sections/printers.zig
+msgid "Printer setup requires the local default CUPS server."
+msgstr "Для настройки принтера нужен локальный сервер CUPS по умолчанию."
+
+#: src/control_center/panel.zig
+msgid "Printer status, jobs and connection diagnostics."
+msgstr "Состояние принтеров, задания и диагностика подключения."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but could not be enabled. Refresh and resume it."
+msgstr "Принтер добавлен, но включить его не удалось. Обновите и возобновите работу."
+
+#: src/printing/admin.zig
+msgid "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+msgstr "Принтер добавлен, но включение или приём заданий не удались. Обновите, возобновите работу и разрешите задания."
+
+#: src/control_center/panel.zig
+msgid "Printers"
+msgstr "Принтеры"
+
+#: src/control_center/sections/printers.zig
+msgid "Printers are unavailable in the greeter."
+msgstr "Принтеры недоступны на экране входа."
+
+#: src/printing/cups.zig
+msgid "Printing"
+msgstr "Печать"
+
+#: src/pdf/main.zig
+msgid "Printing is not available."
+msgstr "Печать недоступна."
+
+#: src/control_center/sections/printers.zig
+msgid "Printing preferences"
+msgstr "Параметры печати"
+
+#: src/control_center/sections/printers.zig
+msgid "Problem"
+msgstr "Проблема"
+
+#: src/system_monitor/app.zig
+msgid "Process data unavailable"
+msgstr "Данные процессов недоступны"
+
+#: src/system_monitor/app.zig
+msgid "Processes"
+msgstr "Процессы"
+
+#: src/printing/cups.zig
+msgid "Processing"
+msgstr "Обрабатывается"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles"
+msgstr "Профили"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Profiles appear after pairing"
+msgstr "Профили появятся после сопряжения"
+
+#: src/files/app_layout.zig
+msgid "Progress"
+msgstr "Ход выполнения"
+
+#: src/files/app.zig
+msgid "Projects"
+msgstr "Проекты"
+
+#: src/desktop/app_actions.zig
+msgid "Properties"
+msgstr "Свойства"
+
+#: src/desktop/app_paint.zig
+msgid "Properties — Escape closes"
+msgstr "Свойства — Escape: закрыть"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Put the computer to sleep."
+msgstr "Перевести компьютер в спящий режим."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Put your device in pairing mode. Nearby devices appear here."
+msgstr "Переведите устройство в режим сопряжения. Найденные устройства появятся здесь."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+msgstr "Цвета Qt 5 и Qt 6 применены. Перезапустите приложения; если цвета не изменятся, войдите в сеанс заново."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Цвета Qt 5 применены. Установите qt6ct для приложений Qt 6. Перезапустите приложения; если цвета не изменятся, войдите в сеанс заново."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+msgstr "Цвета Qt 6 применены. Установите qt5ct для приложений Qt 5. Перезапустите приложения; если цвета не изменятся, войдите в сеанс заново."
+
+#: src/printing/options.zig
+msgid "Quality"
+msgstr "Качество"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue"
+msgstr "Очередь"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue identifier"
+msgstr "Идентификатор очереди"
+
+#: src/printing/ladder.zig
+msgid "Queue media and resolution could not be read."
+msgstr "Не удалось прочитать бумагу и разрешение очереди."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue name"
+msgstr "Имя очереди"
+
+#: src/control_center/sections/printers.zig
+msgid "Queue paper setting: {paper}. Check that this matches the loaded paper."
+msgstr "Бумага очереди: {paper}. Проверьте соответствие загруженной бумаге."
+
+#: src/printing/admin.zig
+msgid "Queue rename only partly completed. Refresh and check both queues before retrying."
+msgstr "Переименование очереди выполнено лишь частично. Обновите и проверьте обе очереди перед повторной попыткой."
+
+#: src/printing/admin.zig
+msgid "Queue rename request completed. Check the refreshed queues and options."
+msgstr "Запрос переименования завершён. Проверьте обновлённые очереди и параметры."
+
+#: src/control_center/sections/printers.zig
+msgid "Queue: {name}"
+msgstr "Очередь: {name}"
+
+#: src/start_menu/panel.zig
+msgid "Quick Launch"
+msgstr "Быстрый запуск"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Quit"
+msgstr "Выйти"
+
+#: src/control_center/sections/display.zig
+msgid "REDIWM_SCALE sets scaling; restart to apply Xwayland changes."
+msgstr "REDIWM_SCALE задаёт масштаб; перезапустите для применения изменений Xwayland."
+
+#: src/control_center/sections/appearance.zig
+msgid "RIGHT"
+msgstr "СПРАВА"
+
+#: src/control_center/sections/appearance.zig
+msgid "Radius"
+msgstr "Радиус"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw queue (printer commands only)"
+msgstr "Очередь без драйвера (только команды принтера)"
+
+#: src/control_center/sections/printers.zig
+msgid "Raw sample resolution (dpi)"
+msgstr "Разрешение образца без драйвера (точек/дюйм)"
+
+#: src/files/properties.zig
+msgid "Read"
+msgstr "Чтение"
+
+#: src/control_center/sections/users.zig
+msgid "Read only"
+msgstr "Только чтение"
+
+#: src/printing/cups.zig
+msgid "Ready"
+msgstr "Готово"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Ready to pair"
+msgstr "Готово к сопряжению"
+
+#: src/printing/ladder.zig
+msgid "Reapply the intended paper, resolution or driver option, then refresh to verify the result."
+msgstr "Повторно примените нужную бумагу, разрешение или параметр драйвера, затем обновите для проверки результата."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot"
+msgstr "Перезагрузить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Reboot Auto"
+msgstr "Автоматически перезагрузить"
+
+#: src/files/app.zig
+msgid "Recent"
+msgstr "Недавние"
+
+#: src/files/open_with.zig
+msgid "Recommended Apps"
+msgstr "Рекомендуемые приложения"
+
+#: src/files/app.zig
+msgid "RediWM Files"
+msgstr "Файлы RediWM"
+
+#: src/control_center/sections/default_apps.zig
+msgid "RediWM Files (built-in)"
+msgstr "Файлы RediWM (встроенные)"
+
+#: src/control_center/sections/appearance.zig
+msgid "RediWM dock"
+msgstr "Док RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "Reduce blue light with a warm tint"
+msgstr "Уменьшить синий свет с помощью тёплого оттенка"
+
+#: src/control_center/search_index.zig
+msgid "Reduced motion"
+msgstr "Уменьшение анимаций"
+
+#: src/control_center/sections/printers.zig
+msgid "Refresh"
+msgstr "Обновить"
+
+#: src/control_center/search_index.zig
+msgid "Refresh rate"
+msgstr "Частота обновления"
+
+#: src/control_center/sections/region.zig
+msgid "Region"
+msgstr "Регион"
+
+#: src/control_center/panel.zig
+msgid "Region & Language"
+msgstr "Регион и язык"
+
+#: src/control_center/search_index.zig
+msgid "Regional formats"
+msgstr "Региональные форматы"
+
+#: src/control_center/sections/region.zig
+msgid "Regional formats are unavailable for this session."
+msgstr "Региональные форматы недоступны для этого сеанса."
+
+#: src/control_center/sections/printers.zig
+msgid "Remember loaded paper size"
+msgstr "Запомнить размер загруженной бумаги"
+
+#: src/control_center/sections/appearance.zig
+msgid "Remove"
+msgstr "Удалить"
+
+#: src/files/app_model.zig
+msgid "Remove from Places"
+msgstr "Удалить из «Мест»"
+
+#: src/taskbar/window_menu.zig
+msgid "Remove from dock"
+msgstr "Убрать из дока"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer {name} ({queue})? This deletes its queue and settings."
+msgstr "Удалить принтер {name} ({queue})? Будут удалены его очередь и настройки."
+
+#: src/control_center/sections/printers.zig
+msgid "Remove printer…"
+msgstr "Удалить принтер…"
+
+#: src/control_center/search_index.zig
+msgid "Remove theme"
+msgstr "Удалить тему"
+
+#: src/control_center/sections/printers.zig
+msgid "Remove this printer"
+msgstr "Удалить этот принтер"
+
+#: src/files/app_torrents.zig
+msgid "Remove · keep files"
+msgstr "Удалить · сохранить файлы"
+
+#: src/desktop/app_actions.zig
+msgid "Rename"
+msgstr "Переименовать"
+
+#: src/files/app_paint.zig
+msgid "Rename (R)"
+msgstr "Переименовать (R)"
+
+#: src/desktop/app_paint.zig
+msgid "Rename — Enter saves, Escape cancels"
+msgstr "Переименовать — Enter: сохранить, Escape: отмена"
+
+#: src/files/app_dialogs.zig
+msgid "Renamed successfully"
+msgstr "Переименовано"
+
+#: src/pdf/app_paint.zig
+msgid "Rendering page {value}..."
+msgstr "Отрисовка страницы {value}…"
+
+#: src/control_center/sections/region.zig
+msgid "Reopen running apps to use the selected language."
+msgstr "Перезапустите работающие приложения для использования выбранного языка."
+
+#: src/control_center/sections/input.zig
+msgid "Repeat delay"
+msgstr "Задержка повтора"
+
+#: src/control_center/sections/input.zig
+msgid "Repeat rate"
+msgstr "Частота повтора"
+
+#: src/files/app_chooser.zig
+msgid "Replace"
+msgstr "Заменить"
+
+#: src/control_center/sections/appearance.zig
+msgid "Replace installed theme"
+msgstr "Заменить установленную тему"
+
+#: src/control_center/sections/printers.zig
+msgid "Report copied"
+msgstr "Отчёт скопирован"
+
+#: src/control_center/sections/printers.zig
+msgid "Reports omit document names, user names, USB serials and private printer addresses."
+msgstr "Отчёты не содержат имён документов и пользователей, серийных номеров USB и частных адресов принтеров."
+
+#: src/systemd.zig
+msgid "Request accepted. Status updates when the job completes."
+msgstr "Запрос принят. Состояние обновится после завершения задания."
+
+#: src/printing/admin.zig
+msgid "Requesting CUPS start; authorization may be required…"
+msgstr "Запрос запуска CUPS; может потребоваться авторизация…"
+
+#: src/session/lock.zig
+msgid "Requesting power action…"
+msgstr "Запрос действия с питанием…"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved file name"
+msgstr "Зарезервированное имя файла"
+
+#: src/files/app_dialogs.zig
+msgid "Reserved folder name"
+msgstr "Зарезервированное имя папки"
+
+#: src/control_center/search_index.zig
+msgid "Reset theme"
+msgstr "Сбросить тему"
+
+#: src/control_center/sections/desktop.zig
+msgid "Reset to Default"
+msgstr "Сбросить к стандартным настройкам"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to default"
+msgstr "Сбросить к стандартным настройкам"
+
+#: src/control_center/sections/appearance.zig
+msgid "Reset to theme"
+msgstr "Восстановить из темы"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Down"
+msgstr "Изменить разделение вниз"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Left"
+msgstr "Изменить разделение влево"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Right"
+msgstr "Изменить разделение вправо"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Resize Split Up"
+msgstr "Изменить разделение вверх"
+
+#: src/control_center/search_index.zig
+msgid "Resolution"
+msgstr "Разрешение"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: Unavailable"
+msgstr "Разрешение: недоступно"
+
+#: src/control_center/sections/printers.zig
+msgid "Resolution: {x} × {y} dpi"
+msgstr "Разрешение: {x} × {y} точек/дюйм"
+
+#: src/printing/ladder.zig
+msgid "Resolve the reported printer problem before resuming the queue."
+msgstr "Устраните указанную проблему принтера, прежде чем возобновлять очередь."
+
+#: src/session/lock.zig
+msgid "Response"
+msgstr "Ответ"
+
+#: src/control_center/sections/services.zig
+msgid "Restart"
+msgstr "Перезапустить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart Shell"
+msgstr "Перезапустить оболочку"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the computer."
+msgstr "Перезапустить компьютер."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restart the desktop shell."
+msgstr "Перезапустить оболочку рабочего стола."
+
+#: src/session/lock.zig
+msgid "Restart? Activate Restart again to confirm."
+msgstr "Перезапустить? Нажмите «Перезапустить» ещё раз для подтверждения."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Layout"
+msgstr "Восстановить расположение"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore Shortcuts"
+msgstr "Восстановить сочетания клавиш"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore a saved layout."
+msgstr "Восстановить сохранённое расположение."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore layout: {name}"
+msgstr "Восстановить расположение: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the desktop zoom."
+msgstr "Восстановить масштаб рабочего стола."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Restore the focused window's size."
+msgstr "Восстановить размер активного окна."
+
+#: src/calculator/model.zig
+msgid "Result is too large"
+msgstr "Результат слишком велик"
+
+#: src/files/app_torrent_rows.zig
+msgid "Resume"
+msgstr "Продолжить"
+
+#: src/control_center/sections/printers.zig
+msgid "Resume printer"
+msgstr "Возобновить принтер"
+
+#: src/system_monitor/app.zig
+msgid "Resume updates"
+msgstr "Возобновить обновления"
+
+#: src/control_center/panel.zig
+msgid "Review login accounts and automatic-login settings."
+msgstr "Просмотр учётных записей и настроек автоматического входа."
+
+#: src/control_center/sections/printers.zig
+msgid "Review the suggested resolution, then apply it explicitly."
+msgstr "Проверьте предлагаемое разрешение, затем примените его вручную."
+
+#: src/control_center/sections/appearance.zig
+msgid "Right"
+msgstr "Справа"
+
+#: src/images/app.zig
+msgid "Rotate"
+msgstr "Повернуть"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Rotate the nearest tiled split."
+msgstr "Повернуть ближайшее разделение окон."
+
+#: src/control_center/search_index.zig
+msgid "Rotation"
+msgstr "Поворот"
+
+#: src/control_center/sections/appearance.zig
+msgid "Round"
+msgstr "Закруглённый"
+
+#: src/system_monitor/app.zig
+msgid "Running"
+msgstr "Работает"
+
+#: src/control_center/sections/sound.zig
+msgid "SOUND"
+msgstr "ЗВУК"
+
+#: src/control_center/sections/appearance.zig
+msgid "Same as theme"
+msgstr "Как в теме"
+
+#: src/images/app.zig
+msgid "Same folder, or enter an absolute path."
+msgstr "Та же папка или абсолютный путь."
+
+#: src/control_center/sections/region.zig
+msgid "Saturday"
+msgstr "Суббота"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save"
+msgstr "Сохранить"
+
+#: src/editor/app.zig
+msgid "Save As"
+msgstr "Сохранить как"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save Layout"
+msgstr "Сохранить расположение"
+
+#: src/images/app.zig
+msgid "Save a PNG copy"
+msgstr "Сохранить копию PNG"
+
+#: src/images/app.zig
+msgid "Save as"
+msgstr "Сохранить как"
+
+#: src/images/app.zig
+msgid "Save as…"
+msgstr "Сохранить как…"
+
+#: src/editor/app.zig
+msgid "Save changes before closing?"
+msgstr "Сохранить изменения перед закрытием?"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Save current look as theme"
+msgstr "Сохранить текущее оформление как тему"
+
+#: src/control_center/sections/printers.zig
+msgid "Save display name"
+msgstr "Сохранить отображаемое имя"
+
+#: src/control_center/sections/users.zig
+msgid "Save groups"
+msgstr "Сохранить группы"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save layout: {name}"
+msgstr "Сохранить расположение: {name}"
+
+#: src/control_center/sections/appearance.zig
+msgid "Save look…"
+msgstr "Сохранить оформление…"
+
+#: src/control_center/sections/users.zig
+msgid "Save name"
+msgstr "Сохранить имя"
+
+#: src/control_center/sections/users.zig
+msgid "Save password"
+msgstr "Сохранить пароль"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save shortcut"
+msgstr "Сохранить сочетание"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Save the window layout."
+msgstr "Сохранить расположение окон."
+
+#: src/control_center/search_index.zig
+msgid "Save theme"
+msgstr "Сохранить тему"
+
+#: src/images/app.zig
+msgid "Save your edits?"
+msgstr "Сохранить изменения?"
+
+#: src/editor/app.zig
+msgid "Saved"
+msgstr "Сохранено"
+
+#: src/images/app.zig
+msgid "Saved PNG copy."
+msgstr "Копия PNG сохранена."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved for RediWM, but could not update the system folder association."
+msgstr "Сохранено для RediWM, но не удалось обновить системную связь с папками."
+
+#: src/control_center/sections/region.zig
+msgid "Saved for your user’s RediWM session only; system defaults are unchanged."
+msgstr "Сохранено только для сеанса RediWM вашего пользователя; системные значения по умолчанию не изменены."
+
+#: src/images/app.zig
+msgid "Saved {name}"
+msgstr "Сохранено: {name}"
+
+#: src/control_center/sections/portals.zig
+msgid "Saved. Changes apply next time you sign in."
+msgstr "Сохранено. Изменения вступят в силу при следующем входе."
+
+#: src/control_center/welcome.zig
+msgid "Saved. You can change these later in Settings."
+msgstr "Сохранено. Вы сможете изменить это позже в настройках."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Saved. Your choice applies immediately."
+msgstr "Сохранено. Выбор применяется сразу."
+
+#: src/editor/app.zig
+msgid "Saving a large file. Editing resumes when it is written."
+msgstr "Сохранение большого файла. Редактирование продолжится после записи."
+
+#: src/images/app.zig
+msgid "Saving image…"
+msgstr "Сохранение изображения…"
+
+#: src/editor/app.zig
+msgid "Saving…"
+msgstr "Сохранение…"
+
+#: src/files/app_paint.zig
+msgid "Scanning folder..."
+msgstr "Сканирование папки…"
+
+#: src/control_center/sections/appearance.zig
+msgid "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+msgstr "Индикатор захвата экрана появляется при записи или демонстрации экрана. Рекомендуется оставить его включённым."
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens tall (1–10)"
+msgstr "Высота в экранах (1–10)"
+
+#: src/control_center/sections/desktop.zig
+msgid "Screens wide (1–10)"
+msgstr "Ширина в экранах (1–10)"
+
+#: src/screenshot/selector.zig
+msgid "Screenshot"
+msgstr "Снимок экрана"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Output"
+msgstr "Снимок экрана"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshot Region"
+msgstr "Снимок области"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot failed"
+msgstr "Не удалось сделать снимок экрана"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved and copied"
+msgstr "Снимок экрана сохранён и скопирован"
+
+#: src/screenshot/capture.zig
+msgid "Screenshot saved; clipboard failed"
+msgstr "Снимок сохранён; копирование не удалось"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Screenshots"
+msgstr "Снимки экрана"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop above."
+msgstr "Перейти к рабочему столу сверху."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop below."
+msgstr "Перейти к рабочему столу снизу."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the left."
+msgstr "Перейти к рабочему столу слева."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Scroll to the desktop on the right."
+msgstr "Перейти к рабочему столу справа."
+
+#: src/control_center/search_index.zig
+msgid "Scrollbar width"
+msgstr "Ширина полосы прокрутки"
+
+#: src/start_menu/panel.zig
+msgid "Search applications…"
+msgstr "Поиск приложений…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Search devices…"
+msgstr "Поиск устройств…"
+
+#: src/system_monitor/app.zig
+msgid "Search name, PID or user"
+msgstr "Поиск по имени, PID или пользователю"
+
+#: src/control_center/sections/services.zig
+msgid "Search services…"
+msgstr "Поиск служб…"
+
+#: src/control_center/panel.zig
+msgid "Search settings"
+msgstr "Поиск настроек"
+
+#: src/control_center/search.zig
+msgid "Search settings…"
+msgstr "Поиск настроек…"
+
+#: src/files/app_paint.zig
+msgid "Search this folder"
+msgstr "Поиск в этой папке"
+
+#: src/files/open_with.zig
+msgid "Search: {query}"
+msgstr "Поиск: {query}"
+
+#: src/control_center/sections/network.zig
+msgid "Searching for networks…"
+msgstr "Поиск сетей…"
+
+#: src/network/manager.zig
+msgid "Secured"
+msgstr "Защищённая"
+
+#: src/control_center/sections/network.zig
+msgid "Security"
+msgstr "Безопасность"
+
+#: src/control_center/sections/desktop.zig
+msgid "See your position while navigating. Drag the highlighted view to pan."
+msgstr "Следите за своим положением при навигации. Перетащите выделенную область для перемещения."
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 1"
+msgstr "Раздача: коэффициент 1"
+
+#: src/files/app_torrents.zig
+msgid "Seed: ratio 2"
+msgstr "Раздача: коэффициент 2"
+
+#: src/files/app_torrents.zig
+msgid "Seed: stop at finish"
+msgstr "Раздача: остановить после загрузки"
+
+#: src/files/app_torrent_rows.zig
+msgid "Seeding"
+msgstr "Раздаётся"
+
+#: src/files/app_chooser.zig
+msgid "Select"
+msgstr "Выбрать"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Select a device"
+msgstr "Выберите устройство"
+
+#: src/system_monitor/app.zig
+msgid "Select a process first"
+msgstr "Сначала выберите процесс"
+
+#: src/printing/ladder.zig
+msgid "Select an existing queue or add the printer again."
+msgstr "Выберите существующую очередь или добавьте принтер заново."
+
+#: src/control_center/sections/printers.zig
+msgid "Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."
+msgstr "Выберите установленный модуль USB из найденных устройств или введите сетевой адрес. Это изменит подключение выбранной очереди."
+
+#: src/files/app_dialogs.zig
+msgid "Select one item to view its properties"
+msgstr "Выберите один объект для просмотра свойств"
+
+#: src/files/open_with.zig
+msgid "Selected files"
+msgstr "Выбранные файлы"
+
+#: src/delete_dialog.zig
+msgid "Selected items"
+msgstr "Выбранные объекты"
+
+#: src/system_monitor/app.zig
+msgid "Selected process"
+msgstr "Выбранный процесс"
+
+#: src/control_center/sections/services.zig
+msgid "Service"
+msgstr "Служба"
+
+#: src/control_center/sections/services.zig
+msgid "Service changes are unlocked for this session."
+msgstr "Изменение служб разрешено до конца этого сеанса."
+
+#: src/control_center/panel.zig
+msgid "Services"
+msgstr "Службы"
+
+#: src/control_center/sections/services.zig
+msgid "Services taking at least 1 second to activate."
+msgstr "Службы, активация которых занимает не менее 1 секунды."
+
+#: src/control_center/sections/users.zig
+msgid "Session"
+msgstr "Сеанс"
+
+#: src/session/lock.zig
+msgid "Session ›"
+msgstr "Сеанс ›"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Set Depth"
+msgstr "Задать глубину"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as my default"
+msgstr "Сделать моим принтером по умолчанию"
+
+#: src/control_center/sections/printers.zig
+msgid "Set as system default"
+msgstr "Сделать системным по умолчанию"
+
+#: src/start_menu/panel.zig
+msgid "Settings"
+msgstr "Настройки"
+
+#: src/control_center/sections/appearance.zig
+msgid "Shadow"
+msgstr "Тень"
+
+#: src/share_picker/client.zig
+msgid "Share screen"
+msgstr "Демонстрация экрана"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sharp"
+msgstr "Резкий"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shortcut already in use. Try another."
+msgstr "Сочетание уже занято. Попробуйте другое."
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Show Paired Devices"
+msgstr "Показать сопряжённые устройства"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show Trash"
+msgstr "Показывать корзину"
+
+#: src/control_center/sections/users.zig
+msgid "Show all groups"
+msgstr "Показать все группы"
+
+#: src/files/app_menu.zig
+msgid "Show changed files"
+msgstr "Показывать изменённые файлы"
+
+#: src/control_center/sections/users.zig
+msgid "Show curated"
+msgstr "Показать рекомендуемые"
+
+#: src/control_center/sections/region.zig
+msgid "Show day"
+msgstr "Показывать дату"
+
+#: src/files/app_menu.zig
+msgid "Show full paths"
+msgstr "Показывать полные пути"
+
+#: src/files/app_menu.zig
+msgid "Show hidden files"
+msgstr "Показывать скрытые файлы"
+
+#: src/files/app_torrents.zig
+msgid "Show in folder"
+msgstr "Показать в папке"
+
+#: src/control_center/sections/appearance.zig
+msgid "Show launch splash"
+msgstr "Показывать заставку при запуске"
+
+#: src/control_center/sections/desktop.zig
+msgid "Show mini map"
+msgstr "Показывать мини-карту"
+
+#: src/control_center/sections/printers.zig
+msgid "Show more"
+msgstr "Показать ещё"
+
+#: src/control_center/sections/region.zig
+msgid "Show seconds"
+msgstr "Показывать секунды"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Shut down the computer."
+msgstr "Выключить компьютер."
+
+#: src/control_center/sections/printers.zig
+msgid "Sides: {sides}"
+msgstr "Стороны: {sides}"
+
+#: src/session/lock.zig
+msgid "Sign-in cancelled"
+msgstr "Вход отменён"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed"
+msgstr "Не удалось войти"
+
+#: src/session/greeter.zig
+msgid "Sign-in failed: {reason}"
+msgstr "Не удалось войти: {reason}"
+
+#: src/control_center/sections/network.zig
+msgid "Sign-in required"
+msgstr "Требуется вход"
+
+#: src/session/greeter.zig
+msgid "Signing in…"
+msgstr "Вход…"
+
+#: src/control_center/panel.zig
+msgid "Single-click file and folder icons"
+msgstr "Открывать значки файлов и папок одним нажатием"
+
+#: src/files/app_layout.zig
+msgid "Size"
+msgstr "Размер"
+
+#: src/control_center/sections/appearance.zig
+msgid "Size to screen"
+msgstr "По размеру экрана"
+
+#: src/control_center/sections/appearance.zig
+msgid "Sized to fit your screen · move a slider to set your own"
+msgstr "Подобрано под ваш экран · сдвиньте ползунок для изменения"
+
+#: src/files/app_paint.zig
+msgid "Skip (S)"
+msgstr "Пропустить (S)"
+
+#: src/control_center/sections/display.zig
+msgid "Sleep"
+msgstr "Сон"
+
+#: src/system_monitor/app.zig
+msgid "Sleeping"
+msgstr "Спит"
+
+#: src/control_center/sections/appearance.zig
+msgid "Slightly darken and mute windows that are not focused"
+msgstr "Слегка затемнять и приглушать цвета неактивных окон"
+
+#: src/control_center/sections/services.zig
+msgid "Slow"
+msgstr "Медленно"
+
+#: src/control_center/sections/appearance.zig
+msgid "Small"
+msgstr "Маленький"
+
+#: src/files/app_menu.zig
+msgid "Smallest first"
+msgstr "Сначала маленькие"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a bottom quarter, or restore it."
+msgstr "Разместить активное окно в нижней четверти или восстановить его."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to a top quarter, or maximize it."
+msgstr "Разместить активное окно в верхней четверти или развернуть его."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the left half."
+msgstr "Разместить активное окно в левой половине."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Snap the focused window to the right half."
+msgstr "Разместить активное окно в правой половине."
+
+#: src/control_center/search_index.zig
+msgid "Snapped window gap"
+msgstr "Отступ закреплённых окон"
+
+#: src/files/properties.zig
+msgid "Socket"
+msgstr "Сокет"
+
+#: src/control_center/sections/appearance.zig
+msgid "Soft"
+msgstr "Мягкий"
+
+#: src/control_center/sections/users.zig
+msgid "Some groups cannot be safely shown; group changes are disabled."
+msgstr "Некоторые группы нельзя безопасно показать; изменение групп отключено."
+
+#: src/systemd.zig
+msgid "Some startup times are unavailable."
+msgstr "Некоторые времена запуска недоступны."
+
+#: src/images/app.zig
+msgid "Space / Esc to close · Arrow keys to browse"
+msgstr "Пробел / Esc: закрыть · Стрелки: просмотр"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Spawn"
+msgstr "Запустить"
+
+#: src/printing/options.zig
+msgid "Speed"
+msgstr "Скорость"
+
+#: src/control_center/sections/users.zig
+msgid "Standard"
+msgstr "Стандартный"
+
+#: src/control_center/sections/services.zig
+msgid "Start"
+msgstr "Запустить"
+
+#: src/control_center/sections/printers.zig
+msgid "Start CUPS"
+msgstr "Запустить CUPS"
+
+#: src/control_center/search_index.zig
+msgid "Start button gap"
+msgstr "Отступ кнопки запуска"
+
+#: src/control_center/search_index.zig
+msgid "Start button icon size"
+msgstr "Размер значка кнопки запуска"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start button logo"
+msgstr "Логотип кнопки запуска"
+
+#: src/files/app_torrents.zig
+msgid "Start download"
+msgstr "Начать загрузку"
+
+#: src/control_center/sections/appearance.zig
+msgid "Start menu"
+msgstr "Меню запуска"
+
+#: src/control_center/search_index.zig
+msgid "Start menu height"
+msgstr "Высота меню запуска"
+
+#: src/control_center/search_index.zig
+msgid "Start menu logo"
+msgstr "Логотип меню запуска"
+
+#: src/control_center/search_index.zig
+msgid "Start menu size"
+msgstr "Размер меню запуска"
+
+#: src/control_center/sections/services.zig
+msgid "Start mode"
+msgstr "Режим запуска"
+
+#: src/control_center/welcome.zig
+msgid "Start using RediWM"
+msgstr "Начать работу с RediWM"
+
+#: src/session/greeter.zig
+msgid "Starting session…"
+msgstr "Запуск сеанса…"
+
+#: src/systemd.zig
+msgid "Startup setting saved. Running status is unchanged."
+msgstr "Настройка запуска сохранена. Текущее состояние работы не изменено."
+
+#: src/control_center/sections/services.zig
+msgid "Startup settings apply at boot. Deferred is coming later."
+msgstr "Настройки запуска применяются при загрузке. Отложенный запуск появится позже."
+
+#: src/control_center/sections/services.zig
+msgid "Startup time"
+msgstr "Время запуска"
+
+#: src/system_monitor/app.zig
+msgid "State"
+msgstr "Состояние"
+
+#: src/printing/cups.zig
+msgid "State unavailable"
+msgstr "Состояние недоступно"
+
+#: src/control_center/sections/network.zig
+msgid "Status"
+msgstr "Состояние"
+
+#: src/control_center/sections/services.zig
+msgid "Stop"
+msgstr "Остановить"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Stop Searching"
+msgstr "Остановить поиск"
+
+#: src/control_center/sections/printers.zig
+msgid "Stop accepting jobs"
+msgstr "Перестать принимать задания"
+
+#: src/files/app_torrents.zig
+msgid "Stop seeding"
+msgstr "Остановить раздачу"
+
+#: src/printing/cups.zig
+msgid "Stopped"
+msgstr "Остановлено"
+
+#: src/control_center/sections/appearance.zig
+msgid "Strong"
+msgstr "Сильный"
+
+#: src/control_center/sections/printers.zig
+msgid "Suggested supported resolution: {x} × {y} dpi"
+msgstr "Рекомендуемое поддерживаемое разрешение: {x} × {y} точек/дюйм"
+
+#: src/control_center/sections/region.zig
+msgid "Sunday"
+msgstr "Воскресенье"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."
+msgstr "Super+Q: терминал; Super+M: питание. Стрелки: выбор окна; цифры: рабочие пространства."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend"
+msgstr "Приостановить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Suspend Auto"
+msgstr "Автоматически усыпить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Down"
+msgstr "Поменять местами вниз"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Left"
+msgstr "Поменять местами влево"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Right"
+msgstr "Поменять местами вправо"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap Up"
+msgstr "Поменять местами вверх"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile down."
+msgstr "Поменять активное окно местами с окном снизу."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile left."
+msgstr "Поменять активное окно местами с окном слева."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile right."
+msgstr "Поменять активное окно местами с окном справа."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Swap the focused tile up."
+msgstr "Поменять активное окно местами с окном сверху."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next power profile."
+msgstr "Выбрать следующий профиль питания."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the next window."
+msgstr "Перейти к следующему окну."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to the previous window."
+msgstr "Перейти к предыдущему окну."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch to workspace {n}."
+msgstr "Перейти в рабочее пространство {n}."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Switch workspace."
+msgstr "Переключить рабочее пространство."
+
+#: src/files/app_dialogs.zig
+msgid "Switched branch"
+msgstr "Ветка переключена"
+
+#: src/files/app_dialogs.zig
+msgid "Switched to {name}"
+msgstr "Выбрана ветка {name}"
+
+#: src/files/properties.zig
+msgid "Symbolic link"
+msgstr "Символическая ссылка"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "System"
+msgstr "Система"
+
+#: src/system_monitor/app.zig
+msgid "System Monitor"
+msgstr "Системный монитор"
+
+#: src/printing/admin.zig
+msgid "System bus connection lost. Reopen Printers to reconnect."
+msgstr "Связь с системной шиной потеряна. Откройте «Принтеры» снова для подключения."
+
+#: src/printing/admin.zig
+msgid "System bus disconnected during printer administration."
+msgstr "Системная шина отключилась во время управления принтером."
+
+#: src/control_center/sections/appearance.zig
+msgid "System default"
+msgstr "Системный по умолчанию"
+
+#: src/control_center/sections/services.zig
+msgid "Systemd is unavailable."
+msgstr "Systemd недоступна."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Take shortcuts back from a virtual machine or remote desktop."
+msgstr "Вернуть сочетания клавиш из виртуальной машины или удалённого рабочего стола."
+
+#: src/control_center/sections/users.zig
+msgid "Takes effect at next boot. The keyring will not unlock automatically."
+msgstr "Вступит в силу при следующей загрузке. Связка ключей не разблокируется автоматически."
+
+#: src/control_center/search_index.zig
+msgid "Tap to click"
+msgstr "Нажатие касанием"
+
+#: src/files/app_dialogs.zig
+msgid "Target name already exists"
+msgstr "Объект с таким именем уже существует"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar"
+msgstr "Панель задач"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar clock. The date uses your regional format."
+msgstr "Часы панели задач. Дата использует ваш региональный формат."
+
+#: src/control_center/search_index.zig
+msgid "Taskbar corner radius"
+msgstr "Радиус углов панели задач"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar edge gap"
+msgstr "Отступ панели задач от края"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar gap from edge"
+msgstr "Отступ панели задач от края"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar items"
+msgstr "Элементы панели задач"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar length"
+msgstr "Длина панели задач"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar position"
+msgstr "Положение панели задач"
+
+#: src/control_center/sections/appearance.zig
+msgid "Taskbar sections"
+msgstr "Разделы панели задач"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar size"
+msgstr "Размер панели задач"
+
+#: src/control_center/search_index.zig
+msgid "Taskbar theme"
+msgstr "Тема панели задач"
+
+#: src/control_center/sections/region.zig
+msgid "Taskbar, calendar, lock screen and new apps."
+msgstr "Панель задач, календарь, экран блокировки и новые приложения."
+
+#: src/control_center/sections/appearance.zig
+msgid "Temporarily show the selected window at full size; keep desktop zoom."
+msgstr "Временно показать выбранное окно в полном размере, сохранив масштаб рабочего стола."
+
+#: src/control_center/sections/default_apps.zig
+msgid "Terminal"
+msgstr "Терминал"
+
+#: src/files/app_terminal.zig
+msgid "Terminal helper is unavailable"
+msgstr "Вспомогательная программа терминала недоступна"
+
+#: src/control_center/search_index.zig
+msgid "Terminal opacity"
+msgstr "Непрозрачность терминала"
+
+#: src/control_center/sections/appearance.zig
+msgid "Terminal opacity (new windows)"
+msgstr "Непрозрачность терминала (новые окна)"
+
+#: src/files/app_terminal.zig
+msgid "Terminal paste exceeds the available input queue"
+msgstr "Вставка в терминал превышает размер очереди ввода"
+
+#: src/system_monitor/app.zig
+msgid "Termination requested"
+msgstr "Запрошено завершение"
+
+#: src/control_center/sections/printers.zig
+msgid "Test without the driver…"
+msgstr "Проверить без драйвера…"
+
+#: src/editor/app.zig
+msgid "Text file"
+msgstr "Текстовый файл"
+
+#: src/editor/app.zig
+msgid "Text files are limited to 4 GiB."
+msgstr "Размер текстового файла ограничен 4 ГиБ."
+
+#: src/editor/app.zig
+msgid "Text not found"
+msgstr "Текст не найден"
+
+#: src/images/app.zig
+msgid "That file already exists. Choose another name."
+msgstr "Этот файл уже существует. Выберите другое имя."
+
+#: src/editor/app.zig
+msgid "That file is open in another tab. Choose a different name."
+msgstr "Этот файл открыт в другой вкладке. Выберите другое имя."
+
+#: src/files/appimage.zig
+msgid "The AppImage contains more than one application launcher"
+msgstr "AppImage содержит несколько ярлыков приложений"
+
+#: src/files/appimage.zig
+msgid "The AppImage has no usable application launcher"
+msgstr "В AppImage нет пригодного ярлыка приложения"
+
+#: src/printing/ladder.zig
+msgid "The CUPS USB backend uses libusb; a usblp node is not required."
+msgstr "Модуль USB CUPS использует libusb; узел usblp не требуется."
+
+#: src/printing/cups.zig
+msgid "The CUPS client configuration could not be read or is invalid."
+msgstr "Не удалось прочитать конфигурацию клиента CUPS, или она недопустима."
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "The RediWM block in gtk.css is incomplete. Repair it before applying colors."
+msgstr "Блок RediWM в gtk.css не завершён. Исправьте его перед применением цветов."
+
+#: src/printing/ladder.zig
+msgid "The available queue settings match the supplied media or resolution expectations."
+msgstr "Доступные параметры очереди соответствуют заданным ожиданиям бумаги или разрешения."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen stays on."
+msgstr "Встроенный экран остаётся включённым."
+
+#: src/control_center/sections/display.zig
+msgid "The built-in screen turns off while another display is connected."
+msgstr "Встроенный экран выключается, если подключён другой экран."
+
+#: src/printing/ladder.zig
+msgid "The character-device path used by this queue is missing."
+msgstr "Путь символьного устройства, используемый этой очередью, отсутствует."
+
+#: src/control_center/sections/printers.zig
+msgid "The current printer resolution is unavailable."
+msgstr "Текущее разрешение принтера недоступно."
+
+#: src/files/main.zig
+msgid "The destination folder is unavailable"
+msgstr "Папка назначения недоступна"
+
+#: src/printing/ladder.zig
+msgid "The device address matches; successful communication has not been confirmed."
+msgstr "Адрес устройства совпадает; успешная связь не подтверждена."
+
+#: src/pdf/main.zig
+msgid "The document could not be printed."
+msgstr "Не удалось напечатать документ."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver did not report the requested value. Review its settings before printing."
+msgstr "Драйвер не сообщил запрошенное значение. Проверьте его настройки перед печатью."
+
+#: src/control_center/sections/printers.zig
+msgid "The driver reports label media."
+msgstr "Драйвер сообщает о печати этикеток."
+
+#: src/files/main.zig
+msgid "The drop timed out"
+msgstr "Время ожидания перетаскивания истекло"
+
+#: src/files/main.zig
+msgid "The dropped list failed or exceeded 1 MiB"
+msgstr "Список перетаскиваемых файлов недоступен или превышает 1 МиБ"
+
+#: src/files/app_terminal.zig
+msgid "The dropped paths are invalid or too long"
+msgstr "Перетаскиваемые пути недопустимы или слишком длинные"
+
+#: src/images/app.zig
+msgid "The file changed. Please try again."
+msgstr "Файл изменился. Попробуйте ещё раз."
+
+#: src/printing/ladder.zig
+msgid "The file type of the queue's device-node path could not be read."
+msgstr "Не удалось прочитать тип файла пути узла устройства очереди."
+
+#: src/images/app.zig
+msgid "The filename is too long."
+msgstr "Имя файла слишком длинное."
+
+#: src/printing/ladder.zig
+msgid "The last job has not completed."
+msgstr "Последнее задание не завершено."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a backend connection problem."
+msgstr "Последнее задание сообщает о проблеме подключения модуля."
+
+#: src/printing/ladder.zig
+msgid "The last job reports a document or filter failure."
+msgstr "Последнее задание сообщает об ошибке документа или фильтра."
+
+#: src/printing/ladder.zig
+msgid "The last job was aborted or stopped."
+msgstr "Последнее задание прервано или остановлено."
+
+#: src/printing/ladder.zig
+msgid "The last job was canceled."
+msgstr "Последнее задание отменено."
+
+#: src/printing/ladder.zig
+msgid "The matching USB device has no printer-class interface."
+msgstr "У подходящего устройства USB нет интерфейса класса принтера."
+
+#: src/printing/ladder.zig
+msgid "The matching USB printer was not found."
+msgstr "Подходящий USB-принтер не найден."
+
+#: src/printing/ladder.zig
+msgid "The matching device-node file type could not be read."
+msgstr "Не удалось прочитать тип файла подходящего узла устройства."
+
+#: src/printing/ladder.zig
+msgid "The network printer did not answer."
+msgstr "Сетевой принтер не ответил."
+
+#: src/printing/ladder.zig
+msgid "The printer answered an IPP request."
+msgstr "Принтер ответил на запрос IPP."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer change could not be requested."
+msgstr "Не удалось запросить изменение принтера."
+
+#: src/control_center/sections/printers.zig
+msgid "The printer no longer exists. Refresh before retrying."
+msgstr "Принтер больше не существует. Обновите список перед повторной попыткой."
+
+#: src/printing/cups.zig
+msgid "The printer or job no longer exists. Refresh the list."
+msgstr "Принтер или задание больше не существует. Обновите список."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is not accepting new jobs."
+msgstr "Очередь принтера не принимает новые задания."
+
+#: src/printing/ladder.zig
+msgid "The printer queue is stopped."
+msgstr "Очередь принтера остановлена."
+
+#: src/printing/cups.zig
+msgid "The queue changed, but personal preferences could not be moved. Check your default printer."
+msgstr "Очередь изменена, но личные настройки не удалось перенести. Проверьте принтер по умолчанию."
+
+#: src/printing/ladder.zig
+msgid "The queue could not be checked without a CUPS response."
+msgstr "Не удалось проверить очередь без ответа CUPS."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, but its state or acceptance of jobs is unknown."
+msgstr "Очередь существует, но её состояние или приём заданий неизвестны."
+
+#: src/printing/ladder.zig
+msgid "The queue exists, is enabled, and accepts jobs."
+msgstr "Очередь существует, включена и принимает задания."
+
+#: src/control_center/sections/printers.zig
+msgid "The queue identifier change could not be verified. Review the printer list before retrying."
+msgstr "Не удалось проверить изменение идентификатора очереди. Проверьте список принтеров перед повторной попыткой."
+
+#: src/printing/ladder.zig
+msgid "The queue resolution differs from the expected resolution."
+msgstr "Разрешение очереди отличается от ожидаемого."
+
+#: src/printing/ladder.zig
+msgid "The queue's character device exists; backend access has not been tested."
+msgstr "Символьное устройство очереди существует; доступ через модуль подключения не проверен."
+
+#: src/printing/ladder.zig
+msgid "The queue's default media differs from the expected media."
+msgstr "Бумага очереди по умолчанию отличается от ожидаемой."
+
+#: src/printing/ladder.zig
+msgid "The queue's device address does not match the selected printer."
+msgstr "Адрес устройства очереди не соответствует выбранному принтеру."
+
+#: src/printing/ladder.zig
+msgid "The queue's device-node path is a regular file or another wrong file type."
+msgstr "Путь узла устройства очереди является обычным файлом или имеет другой неподходящий тип."
+
+#: src/control_center/sections/printers.zig
+msgid "The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."
+msgstr "Образец без драйвера напечатался, а тест драйвера нет: проверьте драйвер, фильтры, размер бумаги и разрешение."
+
+#: src/printing/ladder.zig
+msgid "The selected queue was not found."
+msgstr "Выбранная очередь не найдена."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable."
+msgstr "Диспетчер системных служб недоступен."
+
+#: src/printing/admin.zig
+msgid "The system service manager is unavailable; start CUPS using your distribution's service tools."
+msgstr "Диспетчер системных служб недоступен; запустите CUPS средствами управления службами вашего дистрибутива."
+
+#: src/control_center/search_index.zig
+msgid "Theme"
+msgstr "Тема"
+
+#: src/files/worker.zig
+msgid "Theme installed. Choose it in Settings → Appearance."
+msgstr "Тема установлена. Выберите её в «Настройки → Оформление»."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed."
+msgstr "Не удалось выполнить действие с темой."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme operation failed: {reason}"
+msgstr "Не удалось выполнить действие с темой: {reason}"
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Theme packs"
+msgstr "Наборы тем"
+
+#: src/control_center/sections/appearance.zig
+msgid "Themes & colours"
+msgstr "Темы и цвета"
+
+#: src/printing/cups.zig
+msgid "This CUPS server does not support the requested operation."
+msgstr "Этот сервер CUPS не поддерживает запрошенную операцию."
+
+#: src/printing/ladder.zig
+msgid "This backend needs a character device, but no matching node was found."
+msgstr "Для этого модуля требуется символьное устройство, но подходящий узел не найден."
+
+#: src/delete_dialog.zig
+msgid "This cannot be undone."
+msgstr "Это действие нельзя отменить."
+
+#: src/control_center/sections/printers.zig
+msgid "This capability has no selectable queue default in the current driver."
+msgstr "Для этой возможности текущий драйвер не предоставляет выбираемого значения очереди по умолчанию."
+
+#: src/printing/ladder.zig
+msgid "This connection has no direct presence check."
+msgstr "Для этого подключения нет прямой проверки наличия."
+
+#: src/control_center/sections/printers.zig
+msgid "This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."
+msgstr "Этот драйвер не позволяет выбрать предлагаемое разрешение в настройках очереди. Проверьте параметры качества или выберите другой драйвер."
+
+#: src/editor/app.zig
+msgid "This file contains binary data and cannot be edited as text."
+msgstr "Этот файл содержит двоичные данные и не может редактироваться как текст."
+
+#: src/editor/app.zig
+msgid "This file has multiple hard links. Use Save As to create a separate copy."
+msgstr "У этого файла несколько жёстких ссылок. Используйте «Сохранить как» для создания отдельной копии."
+
+#: src/editor/app.zig
+msgid "This file is not valid UTF-8 text."
+msgstr "Этот файл не является допустимым текстом UTF-8."
+
+#: src/files/app_paint.zig
+msgid "This folder is empty"
+msgstr "Эта папка пуста"
+
+#: src/images/app.zig
+msgid "This image has unsaved changes."
+msgstr "В этом изображении есть несохранённые изменения."
+
+#: src/control_center/sections/printers.zig
+msgid "This is a label printer"
+msgstr "Это принтер этикеток"
+
+#: src/control_center/sections/display.zig
+msgid "This output does not advertise editable display modes."
+msgstr "Этот экран не предоставляет изменяемых видеорежимов."
+
+#: src/printing/cups.zig
+msgid "This print server requires an unsupported encrypted or authenticated connection."
+msgstr "Этот сервер печати требует неподдерживаемое шифрованное соединение или способ проверки подлинности."
+
+#: src/printing/admin.zig
+msgid "This printer belongs to a CUPS class. Manage its class membership before renaming it here."
+msgstr "Этот принтер входит в класс CUPS. Измените принадлежность к классу, прежде чем переименовывать его здесь."
+
+#: src/control_center/sections/printers.zig
+msgid "This range has no selectable queue setting in the current driver."
+msgstr "Для этого диапазона текущий драйвер не предоставляет выбираемого параметра очереди."
+
+#: src/files/git.zig
+msgid "This repository runs its own programs; switch branches in a terminal"
+msgstr "Этот репозиторий запускает собственные программы; переключайте ветки в терминале"
+
+#: src/network/manager.zig
+msgid "This security type needs a network configuration tool."
+msgstr "Для этого типа защиты нужна программа настройки сети."
+
+#: src/control_center/panel.zig
+msgid "This setting is unavailable on this device or in the current mode."
+msgstr "Этот параметр недоступен на данном устройстве или в текущем режиме."
+
+#: src/files/app_torrents.zig
+msgid "This transfer is no longer available."
+msgstr "Эта передача больше недоступна."
+
+#: src/control_center/sections/region.zig
+msgid "Thursday"
+msgstr "Четверг"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Down"
+msgstr "Закрепить внизу"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Left"
+msgstr "Закрепить слева"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Right"
+msgstr "Закрепить справа"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Tile Up"
+msgstr "Закрепить вверху"
+
+#: src/control_center/welcome.zig
+msgid "Tiling"
+msgstr "Размещение окон"
+
+#: src/control_center/sections/region.zig
+msgid "Time"
+msgstr "Время"
+
+#: src/control_center/sections/region.zig
+msgid "Time & Date"
+msgstr "Время и дата"
+
+#: src/control_center/sections/region.zig
+msgid "Time zone"
+msgstr "Часовой пояс"
+
+#: src/control_center/search_index.zig
+msgid "Titlebar height"
+msgstr "Высота заголовка окна"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Floating"
+msgstr "Переключить свободное размещение"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Fullscreen"
+msgstr "Переключить полноэкранный режим"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Launcher"
+msgstr "Открыть или закрыть панель запуска"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Maximize"
+msgstr "Развернуть или восстановить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Power Menu"
+msgstr "Открыть или закрыть меню питания"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Split"
+msgstr "Переключить разделение"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle Workspace Tiling"
+msgstr "Переключить размещение рабочего пространства"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle automatic tiling for the current workspace."
+msgstr "Переключить автоматическое размещение в текущем рабочем пространстве."
+
+#: src/pdf/app_paint.zig
+msgid "Toggle sidebar"
+msgstr "Показать или скрыть боковую панель"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Toggle the focused window between floating and automatic tiling."
+msgstr "Переключить активное окно между свободным и автоматическим размещением."
+
+#: src/control_center/sections/appearance.zig
+msgid "Top"
+msgstr "Вверху"
+
+#: src/files/app_torrents.zig
+msgid "Torrent file or magnet link"
+msgstr "Файл торрента или magnet-ссылка"
+
+#: src/control_center/search_index.zig
+msgid "Touchpad speed"
+msgstr "Скорость сенсорной панели"
+
+#: src/files/app_torrents.zig
+msgid "Transfer"
+msgstr "Передача"
+
+#: src/files/torrents.zig
+msgid "Transfer request could not be sent. Please retry."
+msgstr "Не удалось отправить запрос передачи. Повторите попытку."
+
+#: src/files/ops.zig
+msgid "Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."
+msgstr "Передано: {completed}. Пропущено: {skipped}. Ошибок: {failed}. Осталось: {remaining}."
+
+#: src/files/app_paint.zig
+msgid "Transferring {current}/{total}: {name}... (Esc to cancel)"
+msgstr "Передача {current}/{total}: {name}… (Esc: отмена)"
+
+#: src/files/app_paint.zig
+msgid "Transferring..."
+msgstr "Передача…"
+
+#: src/files/app.zig
+msgid "Transfers"
+msgstr "Передачи"
+
+#: src/files/torrents.zig
+msgid "Transfers disconnected. Reopen Transfers to reconnect."
+msgstr "Связь с «Передачами» потеряна. Откройте «Передачи» снова для подключения."
+
+#: src/files/torrents.zig
+msgid "Transfers is disconnected. Reopen Transfers to reconnect."
+msgstr "«Передачи» отключены. Откройте «Передачи» снова для подключения."
+
+#: src/files/app_torrents.zig
+msgid "Transfers needs attention"
+msgstr "«Передачи» требуют внимания"
+
+#: src/control_center/sections/display.zig
+msgid "Transform"
+msgstr "Преобразование"
+
+#: src/desktop/watcher.zig
+msgid "Trash"
+msgstr "Корзина"
+
+#: src/files/app_fileops.zig
+msgid "Trash emptied"
+msgstr "Корзина очищена"
+
+#: src/images/app.zig
+msgid "Trash is unavailable: install gio to use it."
+msgstr "Корзина недоступна: установите gio."
+
+#: src/files/app_fileops.zig
+msgid "Trash unavailable (gio not installed)"
+msgstr "Корзина недоступна (gio не установлена)"
+
+#: src/control_center/search_index.zig
+msgid "Treble"
+msgstr "Высокие частоты"
+
+#: src/control_center/sections/printers.zig
+msgid "Troubleshooting"
+msgstr "Устранение неполадок"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Trusted Device"
+msgstr "Доверенное устройство"
+
+#: src/control_center/search.zig
+msgid "Try a setting name, such as volume, wallpaper or scroll."
+msgstr "Попробуйте название настройки: громкость, обои или прокрутка."
+
+#: src/control_center/sections/printers.zig
+msgid "Try one language sample…"
+msgstr "Проверить один языковой образец…"
+
+#: src/control_center/sections/region.zig
+msgid "Tuesday"
+msgstr "Вторник"
+
+#: src/control_center/sections/display.zig
+msgid "Turn off screen"
+msgstr "Выключить экран"
+
+#: src/control_center/sections/network.zig
+msgid "Turned off"
+msgstr "Выключено"
+
+#: src/printing/options.zig
+msgid "Two-sided printing"
+msgstr "Двусторонняя печать"
+
+#: src/printing/options.zig
+msgid "Two-sided, long edge"
+msgstr "Двусторонняя, по длинному краю"
+
+#: src/printing/options.zig
+msgid "Two-sided, short edge"
+msgstr "Двусторонняя, по короткому краю"
+
+#: src/files/app_layout.zig
+msgid "Type"
+msgstr "Тип"
+
+#: src/desktop/app_paint.zig
+msgid "Type to search applications — Enter chooses"
+msgstr "Введите текст для поиска приложений — Enter: выбрать"
+
+#: src/start_menu/panel.zig
+msgid "Type to search…"
+msgstr "Введите текст для поиска…"
+
+#: src/files/app_menu.zig
+msgid "Type: A to Z"
+msgstr "Тип: от А до Я"
+
+#: src/files/app_menu.zig
+msgid "Type: Z to A"
+msgstr "Тип: от Я до А"
+
+#: src/control_center/sections/appearance.zig
+msgid "UI font"
+msgstr "Шрифт интерфейса"
+
+#: src/printing/ladder.zig
+msgid "USB presence or queue-to-device identity could not be established."
+msgstr "Не удалось установить наличие USB или соответствие очереди устройству."
+
+#: src/files/app_dialogs.zig
+msgid "Unable to prepare deletion"
+msgstr "Не удалось подготовить удаление"
+
+#: src/session/lock.zig
+msgid "Unable to unlock. Try again."
+msgstr "Не удалось разблокировать. Попробуйте ещё раз."
+
+#: src/battery_popup.zig
+msgid "Unavailable"
+msgstr "Недоступно"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Unavailable: {name}"
+msgstr "Недоступно: {name}"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo"
+msgstr "Отменить"
+
+#: src/images/app.zig
+msgid "Undo edits"
+msgstr "Отменить изменения"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Undo the last layout change."
+msgstr "Отменить последнее изменение расположения."
+
+#: src/control_center/sections/printers.zig
+msgid "Unknown"
+msgstr "Неизвестно"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Unknown key"
+msgstr "Неизвестная клавиша"
+
+#: src/control_center/sections/services.zig
+msgid "Unlock"
+msgstr "Разблокировать"
+
+#: src/control_center/sections/users.zig
+msgid "Unlock to make account changes."
+msgstr "Разблокируйте для изменения учётных записей."
+
+#: src/control_center/sections/services.zig
+msgid "Unlock to make service changes."
+msgstr "Разблокируйте для изменения служб."
+
+#: src/network/manager.zig
+msgid "Unmanaged"
+msgstr "Не управляется"
+
+#: src/files/app_model.zig
+msgid "Unpin"
+msgstr "Открепить"
+
+#: src/start_menu/panel.zig
+msgid "Unpin an application first (five pins maximum)."
+msgstr "Сначала открепите приложение (не более пяти закреплений)."
+
+#: src/start_menu/panel.zig
+msgid "Unpin application"
+msgstr "Открепить приложение"
+
+#: src/taskbar/window_menu.zig
+msgid "Unpin from dock"
+msgstr "Открепить от дока"
+
+#: src/images/app.zig
+msgid "Unsaved edits will be discarded."
+msgstr "Несохранённые изменения будут потеряны."
+
+#: src/images/app.zig
+msgid "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo"
+msgstr "Несохранённые изменения · Ctrl+S: сохранить · Ctrl+Z: отменить"
+
+#: src/system_monitor/app.zig
+msgid "Unsaved work will be lost."
+msgstr "Несохранённая работа будет потеряна."
+
+#: src/images/app.zig
+msgid "Unsupported image, missing decoder, or file unavailable"
+msgstr "Изображение не поддерживается, декодер отсутствует или файл недоступен"
+
+#: src/editor/app.zig
+msgid "Untitled"
+msgstr "Без имени"
+
+#: src/files/app_torrents.zig
+msgid "Up"
+msgstr "Вверх"
+
+#: src/network/manager.zig
+msgid "Updating Wi-Fi…"
+msgstr "Обновление Wi-Fi…"
+
+#: src/files/app_layout.zig
+msgid "Upload"
+msgstr "Отдача"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 1 MiB/s"
+msgstr "Отдача: 1 МиБ/с"
+
+#: src/files/app_torrents.zig
+msgid "Upload: 128 KiB/s"
+msgstr "Отдача: 128 КиБ/с"
+
+#: src/power_menu.zig
+msgid "Uptime unavailable"
+msgstr "Время работы недоступно"
+
+#: src/power_menu.zig
+msgid "Uptime {hours}h {minutes}m"
+msgstr "Время работы: {hours} ч {minutes} мин"
+
+#: src/control_center/sections/region.zig
+msgid "Use 24-hour time"
+msgstr "Использовать 24-часовой формат"
+
+#: src/network/manager.zig
+msgid "Use 8–63 characters or a 64-digit hex key."
+msgstr "Используйте 8–63 символа или 64-значный шестнадцатеричный ключ."
+
+#: src/images/app.zig
+msgid "Use a .png filename to save a PNG copy."
+msgstr "Для копии PNG используйте имя с расширением .png."
+
+#: src/control_center/folder_picker.zig
+msgid "Use folder"
+msgstr "Использовать папку"
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue identifier."
+msgstr "В идентификаторе очереди используйте буквы, цифры, точки, дефисы или подчёркивания."
+
+#: src/control_center/sections/printers.zig
+msgid "Use letters, numbers, dots, hyphens or underscores for the queue name."
+msgstr "В имени очереди используйте буквы, цифры, точки, дефисы или подчёркивания."
+
+#: src/control_center/sections/appearance_themes.zig
+msgid "Use logo"
+msgstr "Использовать логотип"
+
+#: src/control_center/sections/printers.zig
+msgid "Use suggested resolution"
+msgstr "Использовать предлагаемое разрешение"
+
+#: src/control_center/sections/default_apps.zig
+msgid "Used for desktop folders, app shortcuts and apps that run in a terminal."
+msgstr "Используется для папок рабочего стола, ярлыков и приложений, работающих в терминале."
+
+#: src/control_center/sections/users.zig
+msgid "User"
+msgstr "Пользователь"
+
+#: src/control_center/sections/printers.zig
+msgid "Username"
+msgstr "Имя пользователя"
+
+#: src/control_center/panel.zig
+msgid "Users"
+msgstr "Пользователи"
+
+#: src/control_center/sections/appearance_colors.zig
+msgid "Uses the main theme. Apply again after changing it; restart apps to see the colors."
+msgstr "Используется основная тема. Примените повторно после её изменения; перезапустите приложения, чтобы увидеть цвета."
+
+#: src/control_center/sections/desktop.zig
+msgid "Vertical Pan"
+msgstr "Вертикальное перемещение"
+
+#: src/files/app.zig
+msgid "Videos"
+msgstr "Видео"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "View its connection, battery and device settings."
+msgstr "Просмотр подключения, батареи и настроек устройства."
+
+#: src/files/app_places.zig
+msgid "Volume"
+msgstr "Громкость"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Down"
+msgstr "Уменьшить громкость"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Mute"
+msgstr "Выключить звук"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Volume Up"
+msgstr "Увеличить громкость"
+
+#: src/control_center/panel.zig
+msgid "Volume, microphones and output devices."
+msgstr "Громкость, микрофоны и устройства вывода."
+
+#: src/control_center/sections/network.zig
+msgid "WPA2 / WPA3 Personal"
+msgstr "WPA2 / WPA3 Personal"
+
+#: src/control_center/sections/network.zig
+msgid "WPA3 Personal"
+msgstr "WPA3 Personal"
+
+#: src/control_center/sections/printers.zig
+msgid "Wait for the current printer operation to finish."
+msgstr "Дождитесь завершения текущей операции с принтером."
+
+#: src/polkit/dialog.zig
+msgid "Waiting for authentication service…"
+msgstr "Ожидание службы проверки подлинности…"
+
+#: src/control_center/sections/services.zig
+msgid "Waiting for authentication…"
+msgstr "Ожидание подтверждения…"
+
+#: src/control_center/sections/bluetooth.zig
+msgid "Waiting for the device…"
+msgstr "Ожидание устройства…"
+
+#: src/polkit/dialog.zig
+msgid "Waiting…"
+msgstr "Ожидание…"
+
+#: src/control_center/search_index.zig
+msgid "Wallpaper"
+msgstr "Обои"
+
+#: src/control_center/sections/appearance.zig
+msgid "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."
+msgstr "Предупреждение: индикатор захвата экрана скрыт. Запись и демонстрация экрана могут продолжаться без видимого индикатора и кнопки остановки. Скрывать индикатор не рекомендуется."
+
+#: src/control_center/sections/network.zig
+msgid "Weak"
+msgstr "Слабый"
+
+#: src/control_center/sections/region.zig
+msgid "Wednesday"
+msgstr "Среда"
+
+#: src/control_center/welcome.zig
+msgid "Welcome to RediWM"
+msgstr "Добро пожаловать в RediWM"
+
+#: src/control_center/sections/display.zig
+msgid "When the lid is closed"
+msgstr "При закрытии крышки"
+
+#: src/control_center/sections/display.zig
+msgid "Where desktop icons appear."
+msgstr "Экран для значков рабочего стола."
+
+#: src/control_center/sections/appearance.zig
+msgid "While dragging a file out of it"
+msgstr "При перетаскивании из него файла"
+
+#: src/control_center/search_index.zig
+msgid "Wi-Fi"
+msgstr "Wi-Fi"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is disabled by the hardware switch"
+msgstr "Wi-Fi отключён аппаратным переключателем"
+
+#: src/control_center/sections/network.zig
+msgid "Wi-Fi is turned off"
+msgstr "Wi-Fi выключен"
+
+#: src/network/manager.zig
+msgid "Wi-Fi network"
+msgstr "Сеть Wi-Fi"
+
+#: src/network/manager.zig
+msgid "Wi-Fi request failed. Check credentials and permissions."
+msgstr "Запрос Wi-Fi не выполнен. Проверьте учётные данные и права доступа."
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Window Management"
+msgstr "Управление окнами"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window and panel transitions"
+msgstr "Переходы окон и панелей"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome darkness"
+msgstr "Затемнение оформления окна"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome height"
+msgstr "Высота оформления окна"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window chrome opacity"
+msgstr "Непрозрачность оформления окна"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window control gap"
+msgstr "Отступ элементов управления окном"
+
+#: src/control_center/search_index.zig
+msgid "Window control spacing"
+msgstr "Расстояние между кнопками окна"
+
+#: src/control_center/search_index.zig
+msgid "Window darkness"
+msgstr "Затемнение окна"
+
+#: src/control_center/search_index.zig
+msgid "Window item gap"
+msgstr "Расстояние между элементами окон"
+
+#: src/control_center/search_index.zig
+msgid "Window item width"
+msgstr "Ширина элемента окна"
+
+#: src/control_center/search_index.zig
+msgid "Window opacity"
+msgstr "Непрозрачность окна"
+
+#: src/control_center/search_index.zig
+msgid "Window shadow"
+msgstr "Тень окна"
+
+#: src/control_center/search_index.zig
+msgid "Window spacing"
+msgstr "Расстояние между окнами"
+
+#: src/control_center/sections/appearance.zig
+msgid "Window switching zoom"
+msgstr "Масштаб при переключении окон"
+
+#: src/control_center/search_index.zig
+msgid "Window tabs"
+msgstr "Вкладки окон"
+
+#: src/control_center/sections/appearance.zig
+msgid "Windows"
+msgstr "Окна"
+
+#: src/control_center/panel.zig
+msgid "Wired and wireless connections."
+msgstr "Проводные и беспроводные подключения."
+
+#: src/control_center/sections/network.zig
+msgid "Wireless connections"
+msgstr "Беспроводные подключения"
+
+#: src/editor/app.zig
+msgid "Word Wrap"
+msgstr "Перенос строк"
+
+#: src/images/app.zig
+msgid "Working…"
+msgstr "Выполнение…"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace"
+msgstr "Рабочее пространство"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Next"
+msgstr "Следующее рабочее пространство"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspace Prev"
+msgstr "Предыдущее рабочее пространство"
+
+#: src/control_center/search_index.zig
+msgid "Workspace layout"
+msgstr "Расположение рабочих пространств"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspace {n}"
+msgstr "Рабочее пространство {n}"
+
+#: src/control_center/sections/desktop.zig
+msgid "Workspaces"
+msgstr "Рабочие пространства"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Workspaces · Hyprland-style preset"
+msgstr "Рабочие пространства · Предустановка в стиле Hyprland"
+
+#: src/files/properties.zig
+msgid "Write"
+msgstr "Запись"
+
+#: src/control_center/search_index.zig
+msgid "Xwayland scale"
+msgstr "Масштаб Xwayland"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland scale (global)"
+msgstr "Масштаб Xwayland (общий)"
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Changes require a compositor restart."
+msgstr "Xwayland: используется {active}×. Изменения требуют перезапуска композитора."
+
+#: src/control_center/sections/display.zig
+msgid "Xwayland: {active}× active. Restart the compositor to apply {pending}×."
+msgstr "Xwayland: используется {active}×. Перезапустите композитор для применения {pending}×."
+
+#: src/control_center/sections/users.zig
+msgid "You"
+msgstr "Вы"
+
+#: src/control_center/welcome.zig
+msgid "You can change these later in Settings."
+msgstr "Вы сможете изменить это позже в настройках."
+
+#: src/delete_dialog.zig
+msgid "You can restore it later from Trash."
+msgstr "Позже вы сможете восстановить его из корзины."
+
+#: src/images/app.zig
+msgid "You can restore the file from Trash."
+msgstr "Вы можете восстановить файл из корзины."
+
+#: src/delete_dialog.zig
+msgid "You can restore them later from Trash."
+msgstr "Позже вы сможете восстановить их из корзины."
+
+#: src/control_center/sections/network.zig
+msgid "You're connected to this network"
+msgstr "Вы подключены к этой сети"
+
+#: src/control_center/sections/network.zig
+msgid "You're online."
+msgstr "Вы в сети."
+
+#: src/control_center/sections/printers.zig
+msgid "Your default printer"
+msgstr "Ваш принтер по умолчанию"
+
+#: src/control_center/sections/desktop.zig
+msgid "Your desktop panning area."
+msgstr "Область перемещения по рабочему столу."
+
+#: src/control_center/panel.zig
+msgid "Your language, regional formats and calendar preferences."
+msgstr "Язык, региональные форматы и настройки календаря."
+
+#: src/editor/app.zig
+msgid "Your unsaved changes will be lost if you discard them."
+msgstr "Если отказаться от сохранения, несохранённые изменения будут потеряны."
+
+#: src/system_monitor/app.zig
+msgid "Zombie"
+msgstr "Зомби"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom In"
+msgstr "Увеличить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Out"
+msgstr "Уменьшить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom Reset"
+msgstr "Сбросить масштаб"
+
+#: src/images/app.zig
+msgid "Zoom in"
+msgstr "Увеличить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom into the desktop canvas."
+msgstr "Увеличить масштаб холста рабочего стола."
+
+#: src/images/app.zig
+msgid "Zoom out"
+msgstr "Уменьшить"
+
+#: src/control_center/sections/shortcuts.zig
+msgid "Zoom out of the desktop canvas."
+msgstr "Уменьшить масштаб холста рабочего стола."
+
+#: src/control_center/sections/appearance.zig
+msgid "Zoom the desktop to the selected window's level; fade windows passed by the camera."
+msgstr "Изменить масштаб рабочего стола до уровня выбранного окна; плавно скрывать окна, мимо которых проходит камера."
+
+#: src/control_center/search_index.zig
+msgid "accessibility animations"
+msgstr "специальные возможности анимации"
+
+#: src/control_center/search_index.zig
+msgid "application colours theme"
+msgstr "приложения цвета тема"
+
+#: src/control_center/search_index.zig
+msgid "application shell console"
+msgstr "приложение оболочка консоль"
+
+#: src/control_center/search_index.zig
+msgid "applications titlebar grouping"
+msgstr "приложения заголовок группировка"
+
+#: src/control_center/search_index.zig
+msgid "autologin boot"
+msgstr "автовход загрузка"
+
+#: src/control_center/search_index.zig
+msgid "backend gtk kde dialogs"
+msgstr "модуль gtk kde диалоги"
+
+#: src/control_center/search_index.zig
+msgid "background desktop image folder"
+msgstr "фон рабочий стол изображение папка"
+
+#: src/control_center/search_index.zig
+msgid "backlight screen light"
+msgstr "подсветка экран яркость"
+
+#: src/control_center/search_index.zig
+msgid "blue light warm screen"
+msgstr "синий свет тёплый экран"
+
+#: src/control_center/search_index.zig
+msgid "buttons close maximize minimize"
+msgstr "кнопки закрыть развернуть свернуть"
+
+#: src/delete_dialog.zig
+msgid "bytes"
+msgstr "байт"
+
+#: src/control_center/search_index.zig
+msgid "calendar monday sunday"
+msgstr "календарь понедельник воскресенье"
+
+#: src/control_center/search_index.zig
+msgid "canvas workspaces tiling"
+msgstr "холст рабочие пространства размещение"
+
+#: src/control_center/search_index.zig
+msgid "chooser portal"
+msgstr "выбор файлов портал"
+
+#: src/control_center/search_index.zig
+msgid "chrome tint"
+msgstr "оттенок оформления"
+
+#: src/control_center/search_index.zig
+msgid "clock battery tray notifications capture"
+msgstr "часы батарея трей уведомления захват"
+
+#: src/control_center/search_index.zig
+msgid "colors colours dark light preset"
+msgstr "цвета тёмная светлая предустановка"
+
+#: src/control_center/search_index.zig
+msgid "date weekday"
+msgstr "дата день недели"
+
+#: src/control_center/search_index.zig
+msgid "defaults restore"
+msgstr "по умолчанию восстановить"
+
+#: src/control_center/search_index.zig
+msgid "delete pack"
+msgstr "удалить набор"
+
+#: src/control_center/search_index.zig
+msgid "desktop panning"
+msgstr "рабочий стол перемещение"
+
+#: src/control_center/search_index.zig
+msgid "double click folders"
+msgstr "двойное нажатие папки"
+
+#: src/control_center/search_index.zig
+msgid "drag drop windows"
+msgstr "перетаскивание окна"
+
+#: src/notifications/toast.zig
+msgid "earlier"
+msgstr "ранее"
+
+#: src/control_center/search_index.zig
+msgid "edge pan transitions"
+msgstr "край перемещение переходы"
+
+#: src/control_center/search_index.zig
+msgid "effects motion"
+msgstr "эффекты движение"
+
+#: src/control_center/search_index.zig
+msgid "enable apps launcher"
+msgstr "включить приложения панель запуска"
+
+#: src/control_center/search_index.zig
+msgid "export look"
+msgstr "экспорт оформление"
+
+#: src/control_center/search_index.zig
+msgid "files folders application"
+msgstr "файлы папки приложение"
+
+#: src/control_center/search_index.zig
+msgid "gaps tiling"
+msgstr "отступы размещение"
+
+#: src/files/git.zig
+msgid "git switch failed"
+msgstr "не удалось переключить ветку git"
+
+#: src/control_center/search_index.zig
+msgid "hide automatically"
+msgstr "скрывать автоматически"
+
+#: src/control_center/search_index.zig
+msgid "hotkeys keybindings bindings terminal screenshot volume brightness workspaces"
+msgstr "горячие клавиши сочетания привязки терминал снимок экрана громкость яркость рабочие пространства"
+
+#: src/control_center/search_index.zig
+msgid "icons pack"
+msgstr "значки набор"
+
+#: src/control_center/search_index.zig
+msgid "import pack"
+msgstr "импорт набор"
+
+#: src/control_center/search_index.zig
+msgid "keep icons in place"
+msgstr "закрепить значки"
+
+#: src/control_center/search_index.zig
+msgid "keyboard trackpad"
+msgstr "клавиатура сенсорная панель"
+
+#: src/control_center/search_index.zig
+msgid "laptop suspend sleep"
+msgstr "ноутбук приостановить сон"
+
+#: src/control_center/search_index.zig
+msgid "launcher icon image"
+msgstr "панель запуска значок изображение"
+
+#: src/control_center/search_index.zig
+msgid "launcher size"
+msgstr "размер панели запуска"
+
+#: src/control_center/search_index.zig
+msgid "launcher width"
+msgstr "ширина панели запуска"
+
+#: src/control_center/search_index.zig
+msgid "left right speakers"
+msgstr "левый правый динамики"
+
+#: src/control_center/search_index.zig
+msgid "light appearance theme"
+msgstr "светлая оформление тема"
+
+#: src/control_center/search_index.zig
+msgid "locale numbers currency dates"
+msgstr "локаль числа валюта даты"
+
+#: src/control_center/search_index.zig
+msgid "locale translation"
+msgstr "локаль перевод"
+
+#: src/control_center/search_index.zig
+msgid "logo launcher"
+msgstr "логотип панель запуска"
+
+#: src/control_center/sections/users.zig
+msgid "lowercase username"
+msgstr "имя пользователя строчные буквы"
+
+#: src/control_center/search_index.zig
+msgid "magnification mouse"
+msgstr "увеличение мышь"
+
+#: src/control_center/search_index.zig
+msgid "minimap overview"
+msgstr "мини-карта обзор"
+
+#: src/control_center/search_index.zig
+msgid "motion duration"
+msgstr "движение длительность"
+
+#: src/notifications/toast.zig
+msgid "now"
+msgstr "сейчас"
+
+#: src/control_center/search_index.zig
+msgid "orientation portrait landscape screen"
+msgstr "ориентация книжная альбомная экран"
+
+#: src/control_center/search_index.zig
+msgid "overview location"
+msgstr "обзор расположение"
+
+#: src/control_center/search_index.zig
+msgid "overview timeout"
+msgstr "обзор задержка"
+
+#: src/control_center/search_index.zig
+msgid "panel colors colours"
+msgstr "панель цвета"
+
+#: src/control_center/search_index.zig
+msgid "panel height"
+msgstr "высота панели"
+
+#: src/control_center/search_index.zig
+msgid "panel margin"
+msgstr "отступ панели"
+
+#: src/control_center/search_index.zig
+msgid "panel rounded"
+msgstr "панель закругление"
+
+#: src/control_center/search_index.zig
+msgid "panel top bottom"
+msgstr "панель вверху внизу"
+
+#: src/control_center/search_index.zig
+msgid "panel width"
+msgstr "ширина панели"
+
+#: src/control_center/search_index.zig
+msgid "pointer acceleration sensitivity"
+msgstr "указатель ускорение чувствительность"
+
+#: src/control_center/search_index.zig
+msgid "pointer mouse"
+msgstr "указатель мышь"
+
+#: src/control_center/search_index.zig
+msgid "printing cups add queue jobs paper driver label"
+msgstr "печать cups добавить очередь задания бумага драйвер этикетка"
+
+#: src/control_center/search_index.zig
+msgid "recycle bin"
+msgstr "корзина"
+
+#: src/control_center/search_index.zig
+msgid "rounded"
+msgstr "закругление"
+
+#: src/control_center/search_index.zig
+msgid "rounded windows"
+msgstr "закруглённые окна"
+
+#: src/control_center/search_index.zig
+msgid "rows columns panning area"
+msgstr "строки столбцы область перемещения"
+
+#: src/control_center/search_index.zig
+msgid "rules tiling windows"
+msgstr "правила размещение окна"
+
+#: src/control_center/search_index.zig
+msgid "running apps indicator"
+msgstr "индикатор работающих приложений"
+
+#: src/control_center/search_index.zig
+msgid "screen frequency hz"
+msgstr "экран частота гц"
+
+#: src/control_center/search_index.zig
+msgid "screen output"
+msgstr "экран вывод"
+
+#: src/control_center/search_index.zig
+msgid "screen position monitors main display"
+msgstr "расположение экранов мониторы основной экран"
+
+#: src/control_center/search_index.zig
+msgid "screen scaling dpi zoom"
+msgstr "масштаб экрана dpi увеличение"
+
+#: src/control_center/search_index.zig
+msgid "screen size pixels"
+msgstr "размер экрана пиксели"
+
+#: src/control_center/search_index.zig
+msgid "scrolling direction reverse invert mouse touchpad"
+msgstr "прокрутка направление обратное инверсия мышь сенсорная панель"
+
+#: src/control_center/search_index.zig
+msgid "shadows"
+msgstr "тени"
+
+#: src/control_center/search_index.zig
+msgid "size"
+msgstr "размер"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer high frequencies"
+msgstr "звук эквалайзер высокие частоты"
+
+#: src/control_center/search_index.zig
+msgid "sound equalizer low frequencies"
+msgstr "звук эквалайзер низкие частоты"
+
+#: src/control_center/search_index.zig
+msgid "sound input recording mute"
+msgstr "звук ввод запись выключить микрофон"
+
+#: src/control_center/search_index.zig
+msgid "sound speakers loudness mute"
+msgstr "звук динамики громкость выключить"
+
+#: src/control_center/search_index.zig
+msgid "spacing tiled margin"
+msgstr "расстояние размещение отступ"
+
+#: src/control_center/search_index.zig
+msgid "speakers headphones sound default"
+msgstr "динамики наушники звук по умолчанию"
+
+#: src/control_center/search_index.zig
+msgid "start menu spacing"
+msgstr "отступы меню запуска"
+
+#: src/control_center/search_index.zig
+msgid "startup welcome animation"
+msgstr "запуск приветствие анимация"
+
+#: src/control_center/search_index.zig
+msgid "systemd startup boot daemon unit enabled failed slow"
+msgstr "systemd запуск загрузка демон модуль включено ошибка медленно"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip size"
+msgstr "размер элемента панели задач"
+
+#: src/control_center/search_index.zig
+msgid "taskbar chip spacing"
+msgstr "расстояние между элементами панели задач"
+
+#: src/control_center/search_index.zig
+msgid "taskbar launcher spacing"
+msgstr "отступ кнопки запуска панели задач"
+
+#: src/control_center/search_index.zig
+msgid "text size accessibility"
+msgstr "размер текста специальные возможности"
+
+#: src/control_center/search_index.zig
+msgid "thickness scrolling accessibility"
+msgstr "толщина прокрутка специальные возможности"
+
+#: src/control_center/search_index.zig
+msgid "tiling master stack"
+msgstr "размещение основное окно стопка"
+
+#: src/control_center/search_index.zig
+msgid "time"
+msgstr "время"
+
+#: src/control_center/search_index.zig
+msgid "time am pm"
+msgstr "время до полудня после полудня"
+
+#: src/control_center/search_index.zig
+msgid "time taskbar font"
+msgstr "время панель задач шрифт"
+
+#: src/control_center/search_index.zig
+msgid "top bottom left right"
+msgstr "вверху внизу слева справа"
+
+#: src/control_center/search_index.zig
+msgid "touchpad trackpad"
+msgstr "сенсорная панель трекпад"
+
+#: src/control_center/search_index.zig
+msgid "trackpad acceleration sensitivity"
+msgstr "сенсорная панель ускорение чувствительность"
+
+#: src/control_center/search_index.zig
+msgid "transparency"
+msgstr "прозрачность"
+
+#: src/control_center/search_index.zig
+msgid "transparency chrome"
+msgstr "прозрачность оформление"
+
+#: src/control_center/search_index.zig
+msgid "transparency unfocused"
+msgstr "прозрачность неактивные окна"
+
+#: src/control_center/search_index.zig
+msgid "typeface text"
+msgstr "гарнитура шрифт текст"
+
+#: src/control_center/search_index.zig
+msgid "typing keys"
+msgstr "ввод клавиши"
+
+#: src/control_center/search_index.zig
+msgid "typing keys speed"
+msgstr "ввод клавиши скорость"
+
+#: src/control_center/search_index.zig
+msgid "unfocused darkness"
+msgstr "затемнение неактивных окон"
+
+#: src/control_center/search_index.zig
+msgid "users login password administrator groups"
+msgstr "пользователи вход пароль администратор группы"
+
+#: src/control_center/search_index.zig
+msgid "warmth colour color"
+msgstr "теплота цвет"
+
+#: src/control_center/search_index.zig
+msgid "window borders"
+msgstr "рамки окон"
+
+#: src/control_center/search_index.zig
+msgid "window chrome"
+msgstr "оформление окна"
+
+#: src/control_center/search_index.zig
+msgid "window focus"
+msgstr "фокус окна"
+
+#: src/control_center/search_index.zig
+msgid "window moving"
+msgstr "перемещение окон"
+
+#: src/control_center/search_index.zig
+msgid "window moving size"
+msgstr "перемещение размер окна"
+
+#: src/control_center/search_index.zig
+msgid "wired internet adapter"
+msgstr "проводной интернет адаптер"
+
+#: src/control_center/search_index.zig
+msgid "wireless internet wlan hotspot hidden network"
+msgstr "беспроводной интернет wlan точка доступа скрытая сеть"
+
+#: src/control_center/search_index.zig
+msgid "wireless pairing paired headphones mouse keyboard"
+msgstr "беспроводной сопряжение наушники мышь клавиатура"
+
+#: src/control_center/search_index.zig
+msgid "x11 legacy apps scaling"
+msgstr "x11 устаревшие приложения масштаб"
+
+#: src/session/power.zig
+msgid "{action} failed"
+msgstr "Не удалось выполнить действие «{action}»"
+
+#: src/control_center/sections/desktop.zig
+msgid "{columns} × {rows} · {n} screen total"
+msgid_plural "{columns} × {rows} · {n} screens total"
+msgstr[0] "{columns} × {rows} · всего экранов: {n}"
+msgstr[1] "{columns} × {rows} · всего экранов: {n}"
+msgstr[2] "{columns} × {rows} · всего экранов: {n}"
+
+#: src/files/app_paint.zig
+msgid "{count} item selected · {size}"
+msgid_plural "{count} items selected · {size}"
+msgstr[0] "Выбран {count} объект · {size}"
+msgstr[1] "Выбрано {count} объекта · {size}"
+msgstr[2] "Выбрано {count} объектов · {size}"
+
+#: src/files/open_with.zig
+msgid "{count} selected file"
+msgid_plural "{count} selected files"
+msgstr[0] "Выбран {count} файл"
+msgstr[1] "Выбрано {count} файла"
+msgstr[2] "Выбрано {count} файлов"
+
+#: src/delete_dialog.zig
+msgid "{count} selected item"
+msgid_plural "{count} selected items"
+msgstr[0] "Выбран {count} объект"
+msgstr[1] "Выбрано {count} объекта"
+msgstr[2] "Выбрано {count} объектов"
+
+#: src/files/app_paint.zig
+msgid "{count} transfer · Downloads continue after closing Files."
+msgid_plural "{count} transfers · Downloads continue after closing Files."
+msgstr[0] "{count} передача · Загрузки продолжатся после закрытия «Файлов»."
+msgstr[1] "{count} передачи · Загрузки продолжатся после закрытия «Файлов»."
+msgstr[2] "{count} передач · Загрузки продолжатся после закрытия «Файлов»."
+
+#: src/notifications/toast.zig
+msgid "{count}h ago"
+msgstr "{count} ч назад"
+
+#: src/notifications/toast.zig
+msgid "{count}m ago"
+msgstr "{count} мин назад"
+
+#: src/files/app_paint.zig
+msgid "{count}{more} item"
+msgid_plural "{count}{more} items"
+msgstr[0] "{count}{more} объект"
+msgstr[1] "{count}{more} объекта"
+msgstr[2] "{count}{more} объектов"
+
+#: src/desktop/app_paint.zig
+msgid "{kind} · {bytes} bytes"
+msgstr "{kind} · {bytes} байт"
+
+#: src/delete_dialog.zig
+msgid "{kind} · {size} {unit}"
+msgstr "{kind} · {size} {unit}"
+
+#: src/control_center/sections/region.zig
+msgid "{locale} · RediWM stays in English"
+msgstr "{locale} · RediWM остаётся на английском"
+
+#: src/images/app.zig
+msgid "{modified}{name} — Images ({position}/{count})"
+msgstr "{modified}{name} — Изображения ({position}/{count})"
+
+#: src/editor/app.zig
+msgid "{modified}{name} — Text Editor ({tab}/{tabs})"
+msgstr "{modified}{name} — Текстовый редактор ({tab}/{tabs})"
+
+#: src/files/open_with.zig
+msgid "{name} (default)"
+msgstr "{name} (по умолчанию)"
+
+#: src/control_center/sections/region.zig
+msgid "{name} ({locale})"
+msgstr "{name} ({locale})"
+
+#: src/files/app_places.zig
+msgid "{name} can be safely removed"
+msgstr "{name} можно безопасно извлечь"
+
+#: src/control_center/sections/appearance.zig
+msgid "{name} could not be loaded · showing the default R"
+msgstr "Не удалось загрузить {name} · показан стандартный логотип R"
+
+#: src/files/volumes.zig
+msgid "{name} is already mounted"
+msgstr "{name} уже подключено"
+
+#: src/files/volumes.zig
+msgid "{name} is busy"
+msgstr "{name} занято"
+
+#: src/files/volumes.zig
+msgid "{name} is no longer available"
+msgstr "{name} больше недоступно"
+
+#: src/files/app_places.zig
+msgid "{name} is no longer there"
+msgstr "{name} больше не существует"
+
+#: src/files/app_places.zig
+msgid "{name} mounted"
+msgstr "{name} подключено"
+
+#: src/control_center/sections/users.zig
+msgid "{name} · primary"
+msgstr "{name} · основной"
+
+#: src/pdf/app.zig
+msgid "{name} — PDF Viewer ({page}/{pages})"
+msgstr "{name} — Просмотр PDF ({page}/{pages})"
+
+#: src/files/app.zig
+msgid "{name} — RediWM Files"
+msgstr "{name} — Файлы RediWM"
+
+#: src/control_center/sections/printers.zig
+msgid "{name}: level unavailable"
+msgstr "{name}: уровень недоступен"
+
+#: src/control_center/sections/printers.zig
+msgid "{n} completed sheet reported by CUPS"
+msgid_plural "{n} completed sheets reported by CUPS"
+msgstr[0] "CUPS сообщает о {n} напечатанном листе"
+msgstr[1] "CUPS сообщает о {n} напечатанных листах"
+msgstr[2] "CUPS сообщает о {n} напечатанных листах"
+
+#: src/system_monitor/app.zig
+msgid "{n} process · Swap {swap}{status}"
+msgid_plural "{n} processes · Swap {swap}{status}"
+msgstr[0] "{n} процесс · Подкачка {swap}{status}"
+msgstr[1] "{n} процесса · Подкачка {swap}{status}"
+msgstr[2] "{n} процессов · Подкачка {swap}{status}"
+
+#: src/control_center/sections/services.zig
+msgid "{n} service, {enabled} enabled"
+msgid_plural "{n} services, {enabled} enabled"
+msgstr[0] "{n} служба, включено: {enabled}"
+msgstr[1] "{n} службы, включено: {enabled}"
+msgstr[2] "{n} служб, включено: {enabled}"
+
+#: src/files/app_torrents.zig
+msgid "{rate} KiB/s"
+msgstr "{rate} КиБ/с"
+
+#: src/files/properties.zig
+msgid "{size} ({bytes} byte)"
+msgid_plural "{size} ({bytes} bytes)"
+msgstr[0] "{size} ({bytes} байт)"
+msgstr[1] "{size} ({bytes} байта)"
+msgstr[2] "{size} ({bytes} байт)"
+
+#: src/files/app_places.zig
+msgid "{size} Volume"
+msgstr "Том {size}"
+
+#: src/files/app_torrents.zig
+msgid "{size} selected · {path}"
+msgstr "Выбрано {size} · {path}"
+
+#: src/control_center/sections/printers.zig
+msgid "{value} (supported {min}–{max})"
+msgstr "{value} (поддерживается {min}–{max})"
+
+#: src/files/app_torrents.zig
+msgid "{value} active · {rate} KiB/s"
+msgstr "Активных: {value} · {rate} КиБ/с"
+
+#: src/files/app_torrents.zig
+msgid "{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"
+msgstr "{value}% · ↓ {rate} КиБ/с · ↑ {rate3} КиБ/с"
+
+#: src/files/app_torrent_rows.zig
+msgid "↓ {rate} KiB/s ↑ {rate2} KiB/s"
+msgstr "↓ {rate} КиБ/с ↑ {rate2} КиБ/с"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "L"
+msgstr "Л"
+
+#: src/control_center/sections/sound.zig
+msgctxt "balance"
+msgid "R"
+msgstr "П"
+
+#: src/session/lock.zig
+msgctxt "date"
+msgid "%A, %B %-d"
+msgstr "%A, %-d %B"
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%A, %B %-d, %Y"
+msgstr "%A, %-d %B %Y г."
+
+#: src/calendar.zig
+msgctxt "date"
+msgid "%B %Y"
+msgstr "%B %Y"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Comment"
+msgid "Browse, open and manage local files and folders"
+msgstr "Просмотр, открытие и управление локальными файлами и папками"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Comment"
+msgid "Download torrents and magnet links in Files"
+msgstr "Загрузка торрентов и magnet-ссылок в «Файлах»"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Comment"
+msgid "Edit text files in tabs"
+msgstr "Редактирование текстовых файлов во вкладках"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Comment"
+msgid "RediWM Wayland compositor"
+msgstr "Композитор Wayland RediWM"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Comment"
+msgid "Simple arithmetic calculator"
+msgstr "Простой арифметический калькулятор"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Comment"
+msgid "Validate and install a RediWM theme pack"
+msgstr "Проверка и установка набора темы RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Comment"
+msgid "View CPU, memory and processes"
+msgstr "Просмотр загрузки ЦП, памяти и процессов"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Comment"
+msgid "View PDF documents with RediWM"
+msgstr "Просмотр документов PDF в RediWM"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Comment"
+msgid "View images with RediWM"
+msgstr "Просмотр изображений в RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:GenericName"
+msgid "File Manager"
+msgstr "Файловый менеджер"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Keywords"
+msgid "arithmetic;math;calculate;"
+msgstr "арифметика;математика;вычислить;"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Keywords"
+msgid "files;folder;browser;explorer;manager;"
+msgstr "файлы;папка;обзор;проводник;менеджер;"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Keywords"
+msgid "process;task;CPU;memory;performance;"
+msgstr "процесс;задача;ЦП;память;производительность;"
+
+#: data/rediwm-calculator.desktop
+msgctxt "desktop:Name"
+msgid "Calculator"
+msgstr "Калькулятор"
+
+#: data/rediwm-transfers.desktop
+msgctxt "desktop:Name"
+msgid "Files Transfers"
+msgstr "Передачи файлов"
+
+#: data/rediwm-images.desktop
+msgctxt "desktop:Name"
+msgid "Image Viewer"
+msgstr "Просмотр изображений"
+
+#: data/rediwm-theme.desktop
+msgctxt "desktop:Name"
+msgid "Install theme"
+msgstr "Установить тему"
+
+#: data/rediwm-pdf.desktop
+msgctxt "desktop:Name"
+msgid "PDF Viewer"
+msgstr "Просмотр PDF"
+
+#: data/rediwm-release-safe.desktop
+msgctxt "desktop:Name"
+msgid "RediWM"
+msgstr "RediWM"
+
+#: data/rediwm-files.desktop
+msgctxt "desktop:Name"
+msgid "RediWM Files"
+msgstr "Файлы RediWM"
+
+#: data/rediwm-monitor.desktop
+msgctxt "desktop:Name"
+msgid "System Monitor"
+msgstr "Системный монитор"
+
+#: data/rediwm-editor.desktop
+msgctxt "desktop:Name"
+msgid "Text Editor"
+msgstr "Текстовый редактор"
+
+#: data/org.rediwm.accounts.policy
+msgctxt "polkit"
+msgid "Authentication is required to manage login accounts"
+msgstr "Для управления учётными записями требуется подтверждение подлинности"
+
+#: src/Dock.zig
+msgid "Application"
+msgstr "Приложение"
+
+#: src/Dock.zig
+msgid "Files"
+msgstr "Файлы"
+
+#: src/start_menu/search.zig
+msgid "Loading applications…"
+msgstr "Загрузка приложений…"
+
+#: src/toplevel/info.zig
+msgid "RediWM Settings"
+msgstr "Настройки RediWM"
+
+#: src/start_menu/search.zig
+msgid "Scanning installed apps"
+msgstr "Поиск установленных приложений"
+
+#: src/start_menu/search.zig
+msgid "System preferences, display, appearance and input"
+msgstr "Настройки системы, экрана, оформления и ввода"
+
+#: src/start_menu/search.zig
+msgid "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing"
+msgstr "настройки;управление;панель;параметры;экран;оформление;мышь;клавиатура;принтер;принтеры;печать"
+
+#: src/control_center/sections/region.zig
+msgid "English"
+msgstr "Английский"
diff --git a/scripts/i18n-screens.py b/scripts/i18n-screens.py
new file mode 100755
index 0000000..b320bf9
--- /dev/null
+++ b/scripts/i18n-screens.py
@@ -0,0 +1,249 @@
+#!/usr/bin/env python3
+"""Capture an isolated language-review walk and report measured text overflow.
+
+Build first. Output contains PNGs, widget trees and review.json. Authentication
+and lock screens deliberately reject IPC screenshots and are listed for manual
+review; this tool never changes authentication/capture policy.
+"""
+import argparse
+import json
+import os
+from pathlib import Path
+import shutil
+import subprocess
+import sys
+import tempfile
+import time
+
+ROOT = Path(__file__).resolve().parents[1]
+sys.path.insert(0, str(ROOT / "tests"))
+from i18n import isolated_environment, overflow_issues
+from ipc_client import IPCClient, spawn_compositor, stop_process
+from ui_driver import UIDriver
+from xwayland import wayland_display_name
+
+
+PAGES = ("general", "input", "displays", "audio", "network", "appearance", "shortcuts",
+ "desktop", "bluetooth", "region", "users", "printers", "services")
+
+
+def walk(language, destination, scale, apps=True):
+ destination.mkdir(parents=True, exist_ok=True)
+ report = {"language": language, "scale": scale, "complete": False, "captures": [], "overflow": [],
+ "manual_review": ["Lock screen and greeter (IPC is disabled while locked)",
+ "Authentication dialog (IPC screenshots are forbidden)",
+ "Wi-Fi, battery and hardware-dependent dialogs require private device fixtures"],
+ "notes": ["Fuzzy catalog entries fall back to English. Review drafts before removing fuzzy flags."]}
+ with tempfile.TemporaryDirectory(prefix="rediwm-i18n-review-") as directory:
+ tmp = Path(directory)
+ env = isolated_environment(tmp)
+ bus = None
+ if shutil.which("dbus-daemon") and shutil.which("busctl"):
+ bus = subprocess.Popen(["dbus-daemon", "--session", "--nofork", "--nopidfile", "--print-address=1"],
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
+ env["DBUS_SESSION_BUS_ADDRESS"] = bus.stdout.readline().strip()
+ if not env["DBUS_SESSION_BUS_ADDRESS"]:
+ stop_process(bus)
+ raise RuntimeError("private review session bus failed to start")
+ env["REDIWM_FORCE_DBUS"] = "1"
+ else:
+ report["manual_review"].append("Notification popup: dbus-daemon/busctl unavailable")
+ config = ('[compositor]\nxwayland = false\n[animations]\nenabled = false\n'
+ '[polkit]\nenable = false\n[region]\n'
+ f'language = {json.dumps(language)}\nformats = "C"\n')
+ try:
+ process, log = spawn_compositor(tmp, scale=scale, config_content=config, env_extra=env)
+ except Exception:
+ if bus:
+ stop_process(bus)
+ raise
+ children = []
+ try:
+ with IPCClient(tmp, timeout=15) as ipc:
+ ipc.wait_for("wallpaper_presented", timeout_ms=10000)
+ ipc.wait_for("catalog_published", timeout_ms=10000)
+ ui = UIDriver(ipc)
+
+ def capture(name, panel=None):
+ ipc.wait_for_frame()
+ image = destination / f"{name}.png"
+ image.unlink(missing_ok=True)
+ ipc.screenshot(str(image))
+ item = {"name": name, "image": image.name, "panel": panel}
+ if panel:
+ tree = ipc.get_widget_tree(panel)
+ (destination / f"{name}.json").write_text(json.dumps(tree, ensure_ascii=False, indent=2))
+ widgets = tree.get("widgets", [])
+ item["measured_labels"] = sum(w.get("text_width") is not None for w in widgets if w.get("label"))
+ if panel != "taskbar" and not item["measured_labels"]:
+ raise RuntimeError("widget text measurements unavailable; rebuild RediWM before review")
+ found = overflow_issues(widgets)
+ for issue in found:
+ issue["capture"] = name
+ report["overflow"].extend(found)
+ item["widgets"] = len(tree.get("widgets", []))
+ item["overflow_count"] = len(found)
+ else:
+ item["measurement"] = "Visual review; no compositor widget tree for this surface"
+ report["captures"].append(item)
+
+ capture("desktop", "taskbar")
+ for action, panel in (("open_start_menu", "start_menu"), ("open_launcher", "start_menu"),
+ ("open_power_menu", "power_menu")):
+ try:
+ if action == "open_launcher":
+ ipc.key(125, True)
+ ipc.key_press("space")
+ ipc.key(125, False)
+ else:
+ ipc.action(action)
+ ui.wait_settled(panel)
+ capture(action.removeprefix("open_"), panel)
+ finally:
+ ipc.key_down_up(1)
+ ui.wait_absent(panel)
+
+ # The calendar uses private LC_TIME; it has no retained widget tree.
+ taskbar = ipc.get_shell_state()["taskbars"][0]
+ clock = next(i["box"] for i in taskbar["right_items"] if i["name"] == "clock")
+ ipc.click_at(clock["x"] + clock["width"] // 2, clock["y"] + clock["height"] // 2)
+ capture("calendar")
+ ipc.key_down_up(1)
+ ipc.key(29, True)
+ ipc.key(42, True)
+ ipc.key_press("s")
+ ipc.key(42, False)
+ ipc.key(29, False)
+ capture("screenshot-selector")
+ ipc.key_down_up(1)
+
+ if bus:
+ # Empty sender/summary exercise the compositor's fallback
+ # title; the body is fixture content supplied by a client.
+ command = ["busctl", "--address=" + env["DBUS_SESSION_BUS_ADDRESS"], "--timeout=5", "call",
+ "org.freedesktop.Notifications", "/org/freedesktop/Notifications",
+ "org.freedesktop.Notifications", "Notify", "susssasa{sv}i",
+ "", "0", "", "", "Language review", "0", "0", "0"]
+ subprocess.run(command, check=True, capture_output=True, text=True)
+ ipc.wait_for({"notification_count": {"count": 1}}, timeout_ms=5000)
+ capture("notification")
+ ipc.action("clear_notifications")
+
+ ipc.action("open_control_center")
+ ui.wait_settled("control_center")
+ for page in PAGES:
+ if not any(widget.get("name") == page for widget in ui.widgets("control_center")):
+ report["manual_review"].append(f"Settings/{page}: unavailable in this isolated session")
+ continue
+ ui.click(ui.scroll_into_view(page, panel="control_center"), panel="control_center")
+ ui.wait_settled("control_center")
+ capture(f"settings-{page}-0", "control_center")
+ # Walk every vertical viewport, including intermediate pages.
+ for index in range(1, 16):
+ widgets = ui.widgets("control_center")
+ containers = [w for w in widgets if w["role"] == "scroll_container" and w.get("name") == "content_scroll"]
+ if not containers:
+ containers = [w for w in widgets if w["role"] == "scroll_container"]
+ if not containers:
+ break
+ viewport = max(containers, key=lambda w: w["box"]["width"])
+ before = [(w.get("path"), w["box"]["y"]) for w in widgets if w.get("label")]
+ box = viewport["global_box"]
+ ipc.move_cursor(box["x"] + box["width"] - 8, box["y"] + box["height"] // 2)
+ ipc.scroll(0, -360)
+ ui.wait_settled("control_center")
+ after = [(w.get("path"), w["box"]["y"]) for w in ui.widgets("control_center") if w.get("label")]
+ if before == after:
+ break
+ capture(f"settings-{page}-{index}", "control_center")
+ window = next(w for w in ipc.get_windows() if w["app_id"] == "rediwm-settings")
+ ipc.close_window(window["id"])
+ ui.wait_absent("control_center")
+
+ if apps:
+ from PIL import Image
+ home = tmp / "home"
+ (home / "Notes.txt").write_text("RediWM language review\n\nRésumé — Терминал — Cámara\n", encoding="utf-8")
+ image = Image.new("RGB", (480, 320), (72, 108, 138))
+ image.save(home / "Picture.png")
+ image.save(home / "Document.pdf")
+ app_env = dict(os.environ, **env, XDG_RUNTIME_DIR=directory,
+ WAYLAND_DISPLAY=wayland_display_name(tmp), REDIWM_CONFIG=str(tmp / "rediwm-config.toml"),
+ LANG="C.UTF-8", LC_MESSAGES=language, LANGUAGE=language)
+ for key in ("LC_ALL", "DISPLAY", "REDIWM_SOCKET"):
+ app_env.pop(key, None)
+ launches = (("files", "rediwm-files", [str(home)]),
+ ("editor", "rediwm-editor", [str(home / "Notes.txt")]),
+ ("images", "rediwm-images", [str(home / "Picture.png")]),
+ ("pdf", "rediwm-pdf", [str(home / "Document.pdf")]),
+ ("calculator", "rediwm-calculator", []),
+ ("system-monitor", "rediwm-monitor", []),
+ ("share-picker", "rediwm-share-picker", []))
+ for name, app_id, arguments in launches:
+ executable = ROOT / "zig-out/bin" / app_id
+ if not executable.exists():
+ report["manual_review"].append(f"{name}: binary unavailable")
+ continue
+ with (destination / f"{name}.log").open("w") as output:
+ child = subprocess.Popen([str(executable), *arguments], env=app_env, stdout=output, stderr=output,
+ stdin=subprocess.PIPE if name == "share-picker" else subprocess.DEVNULL)
+ children.append(child)
+ if name == "share-picker":
+ child.stdin.write(b"Monitor: Fixture display\nWindow: Language review\n")
+ child.stdin.close()
+ ipc.wait_for({"window_mapped": {"app_id": app_id}}, timeout_ms=10000)
+ window = next(w for w in ipc.get_windows() if w["app_id"] == app_id)
+ ipc.wait_for("window_geometry_settled", window_id=window["id"])
+ ipc.focus_window(window["id"])
+ capture(name)
+ if name == "files":
+ def client_key(key):
+ ipc.key_press(key)
+ # IPC's output barrier cannot wait for a future
+ # client commit. Allow this client to process
+ # the key and publish its dialog before capture.
+ time.sleep(.2)
+ ipc.wait_for_frame()
+
+ client_key("Home")
+ client_key("F2")
+ capture("files-rename")
+ client_key("Escape")
+ client_key("Delete")
+ capture("files-delete")
+ client_key("Escape")
+ ipc.close_window(window["id"])
+ ipc.wait_for("window_closed", window_id=window["id"])
+ report["notes"].append("Client app captures require visual overflow review; only shell widget trees expose measured text.")
+ report["complete"] = True
+ except Exception as error:
+ report["error"] = f"{type(error).__name__}: {error}"
+ raise
+ finally:
+ for child in children:
+ stop_process(child)
+ stop_process(process)
+ if bus:
+ stop_process(bus)
+ log.close()
+ (destination / "compositor.log").write_text(Path(log.name).read_text())
+ (destination / "review.json").write_text(json.dumps(report, ensure_ascii=False, indent=2))
+ return report
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("language", help="Catalog tag such as de, es, pt_BR, ru or qps")
+ parser.add_argument("--scale", default="1")
+ parser.add_argument("--out", type=Path)
+ parser.add_argument("--shell-only", action="store_true", help="Skip client-app captures")
+ parser.add_argument("--allow-overflow", action="store_true", help="Write findings without failing the review walk")
+ args = parser.parse_args()
+ destination = (args.out or Path("/tmp") / f"rediwm-i18n-{args.language}-{args.scale}").resolve()
+ report = walk(args.language, destination, args.scale, not args.shell_only)
+ print(f"{len(report['captures'])} screenshots; {len(report['overflow'])} overflow findings; {destination / 'review.json'}")
+ return 1 if report["overflow"] and not args.allow_overflow else 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/scripts/install-session-root.sh b/scripts/install-session-root.sh
index c93d6cb..b62f3c1 100755
--- a/scripts/install-session-root.sh
+++ b/scripts/install-session-root.sh
@@ -12,27 +12,31 @@ umask 022
install -d /usr/local/bin
stage=$(mktemp -d /usr/local/bin/.rediwm-install.XXXXXX)
trap 'rm -rf -- "$stage"' EXIT HUP INT TERM
-for binary in rediwm rediwm-msg rediwm-theme rediwm-files rediwm-files-terminal rediwm-images rediwm-monitor rediwm-editor rediwm-pdf rediwm-share-picker rediwm-session rediwm-dm rediwm-accounts-helper; do
+for binary in rediwm rediwm-msg rediwm-theme rediwm-files rediwm-files-terminal rediwm-transfers rediwm-images rediwm-monitor rediwm-calculator rediwm-editor rediwm-pdf rediwm-share-picker rediwm-session rediwm-dm rediwm-accounts-helper; do
install -m755 "$release_dir/bin/$binary" "$stage/$binary"
done
-install -Dm644 "$repo_dir/data/rediwm-theme.desktop" /usr/local/share/applications/rediwm-theme.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-theme.desktop" /usr/local/share/applications/rediwm-theme.desktop
install -Dm644 "$repo_dir/data/rediwm-theme.xml" /usr/local/share/mime/packages/rediwm-theme.xml
-install -Dm644 "$repo_dir/data/rediwm-files.desktop" /usr/local/share/applications/rediwm-files.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-files.desktop" /usr/local/share/applications/rediwm-files.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-transfers.desktop" /usr/local/share/applications/rediwm-transfers.desktop
install -Dm644 "$release_dir/share/licenses/rediwm/libvterm-LICENSE" /usr/local/share/licenses/rediwm/libvterm-LICENSE
+install -Dm644 "$release_dir/share/licenses/rediwm/libtorrent-LICENSE" /usr/local/share/licenses/rediwm/libtorrent-LICENSE
install -Dm644 "$release_dir/share/icons/hicolor/256x256/apps/redi-fm-icon.png" /usr/local/share/icons/hicolor/256x256/apps/redi-fm-icon.png
-install -Dm644 "$repo_dir/data/rediwm-images.desktop" /usr/local/share/applications/rediwm-images.desktop
-install -Dm644 "$repo_dir/data/rediwm-monitor.desktop" /usr/local/share/applications/rediwm-monitor.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-images.desktop" /usr/local/share/applications/rediwm-images.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-monitor.desktop" /usr/local/share/applications/rediwm-monitor.desktop
install -Dm644 "$release_dir/share/icons/hicolor/scalable/apps/rediwm-monitor.svg" /usr/local/share/icons/hicolor/scalable/apps/rediwm-monitor.svg
-install -Dm644 "$repo_dir/data/rediwm-editor.desktop" /usr/local/share/applications/rediwm-editor.desktop
-install -Dm644 "$repo_dir/data/rediwm-pdf.desktop" /usr/local/share/applications/rediwm-pdf.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-calculator.desktop" /usr/local/share/applications/rediwm-calculator.desktop
+install -Dm644 "$release_dir/share/icons/hicolor/scalable/apps/rediwm-calculator.svg" /usr/local/share/icons/hicolor/scalable/apps/rediwm-calculator.svg
+install -Dm644 "$release_dir/share/applications/rediwm-editor.desktop" /usr/local/share/applications/rediwm-editor.desktop
+install -Dm644 "$release_dir/share/applications/rediwm-pdf.desktop" /usr/local/share/applications/rediwm-pdf.desktop
if command -v update-mime-database >/dev/null 2>&1; then update-mime-database /usr/local/share/mime; fi
if command -v update-desktop-database >/dev/null 2>&1; then update-desktop-database /usr/local/share/applications; fi
install -Dm644 "$repo_dir/data/rediwm-portals.conf" /usr/local/share/xdg-desktop-portal/rediwm-portals.conf
# xdg-desktop-portal reads backend descriptors only from its own datadir.
install -Dm644 "$repo_dir/data/rediwm.portal" /usr/share/xdg-desktop-portal/portals/rediwm.portal
-install -Dm644 "$repo_dir/data/org.rediwm.accounts.policy" /usr/share/polkit-1/actions/org.rediwm.accounts.policy
+install -Dm644 "$release_dir/share/polkit-1/actions/org.rediwm.accounts.policy" /usr/share/polkit-1/actions/org.rediwm.accounts.policy
install -Dm644 "$repo_dir/data/xdg-desktop-portal-wlr.ini" /usr/local/share/xdg-desktop-portal-wlr/config
-install -Dm644 "$repo_dir/data/rediwm-release-safe.desktop" /usr/share/wayland-sessions/rediwm-release-safe.desktop
+install -Dm644 "$release_dir/share/wayland-sessions/rediwm-release-safe.desktop" /usr/share/wayland-sessions/rediwm-release-safe.desktop
# The bass boost's LADSPA plugin, and on Debian/Ubuntu builds the private
# wlroots 0.20 and dependencies found through the binaries' $ORIGIN/../lib/rediwm
# RUNPATH. Replaced as a whole right before the binaries so they stay in step.
@@ -73,7 +77,7 @@ for pack in "$release_dir"/share/rediwm/themes/*/; do
rm -rf "/usr/local/share/rediwm/themes/$name"
mv -T "/usr/local/share/rediwm/themes/.$name-new" "/usr/local/share/rediwm/themes/$name"
done
-for binary in rediwm rediwm-msg rediwm-theme rediwm-files rediwm-files-terminal rediwm-images rediwm-monitor rediwm-editor rediwm-pdf rediwm-share-picker rediwm-session rediwm-dm rediwm-accounts-helper; do
+for binary in rediwm rediwm-msg rediwm-theme rediwm-files rediwm-files-terminal rediwm-transfers rediwm-images rediwm-monitor rediwm-calculator rediwm-editor rediwm-pdf rediwm-share-picker rediwm-session rediwm-dm rediwm-accounts-helper; do
mv -fT "$stage/$binary" "/usr/local/bin/$binary"
done
# The compositor draws the desktop itself; the old client is retired.
diff --git a/scripts/install.sh b/scripts/install.sh
index 12e4f9e..8f62f6d 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -215,7 +215,7 @@ case "$FAMILY" in
arch)
deps="wayland wayland-protocols pixman libxkbcommon \
freetype2 harfbuzz fontconfig librsvg cairo pango libinput poppler-glib libseccomp \
- libarchive libwebp libpng libjpeg-turbo libpulse pipewire pam libcups mesa pkgconf git python readline \
+ libarchive libwebp libpng libjpeg-turbo libpulse pipewire pam libcups mesa pkgconf git python readline gcc boost libtorrent-rasterbar json-glib \
xorg-xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk"
if [ "$PRIVATE_WLROOTS" = no ]; then
deps="wlroots0.20 $deps"
@@ -238,15 +238,15 @@ case "$FAMILY" in
libxcb-res0-dev libxcb-xfixes0-dev libxcb-dri3-dev libxcb-present-dev \
libxcb-render-util0-dev libxcb-shm0-dev libxcb-xinput-dev xwayland \
libfreetype-dev libharfbuzz-dev libfontconfig-dev librsvg2-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf-2.0-dev \
- libglib2.0-dev libarchive-dev libwebp-dev libpng-dev libjpeg-dev libpulse-dev libpipewire-0.3-dev libpam0g-dev libcups2-dev libpoppler-glib-dev libseccomp-dev libreadline-dev \
+ libglib2.0-dev libarchive-dev libwebp-dev libpng-dev libjpeg-dev libpulse-dev libpipewire-0.3-dev libpam0g-dev libcups2-dev libpoppler-glib-dev libseccomp-dev libreadline-dev libtorrent-rasterbar-dev libjson-glib-dev \
xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk"
;;
fedora)
deps="wayland-devel wayland-protocols-devel pixman-devel libxkbcommon-devel \
freetype-devel harfbuzz-devel fontconfig-devel librsvg2-devel cairo-devel pango-devel libinput-devel \
libarchive-devel libwebp-devel libpng-devel libjpeg-turbo-devel pulseaudio-libs-devel pipewire-devel pam-devel cups-devel poppler-glib-devel libseccomp-devel \
- mesa-libEGL-devel mesa-libGLES-devel glibc-devel readline-devel \
- pkgconf-pkg-config git python3 \
+ mesa-libEGL-devel mesa-libGLES-devel glibc-devel readline-devel gcc-c++ json-glib-devel \
+ pkgconf-pkg-config git python3 rb_libtorrent-devel \
xorg-x11-server-Xwayland \
xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk"
if [ "$PRIVATE_WLROOTS" = no ]; then
@@ -262,8 +262,8 @@ case "$FAMILY" in
deps="wlroots-devel wayland-devel wayland-protocols-devel libpixman-1-0-devel libxkbcommon-devel \
freetype2-devel harfbuzz-devel fontconfig-devel librsvg-devel cairo-devel pango-devel libinput-devel \
libarchive-devel libwebp-devel libpng16-devel libjpeg8-devel libpulse-devel pipewire-devel pam-devel cups-devel libpoppler-glib-devel libseccomp-devel \
- Mesa-libEGL-devel Mesa-libGLESv2-devel glibc-devel readline-devel \
- pkg-config git python3 \
+ Mesa-libEGL-devel Mesa-libGLESv2-devel glibc-devel readline-devel gcc-c++ json-glib-devel \
+ pkg-config git python3 libtorrent-rasterbar-devel \
xwayland \
xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk"
;;
@@ -271,12 +271,17 @@ case "$FAMILY" in
deps="gui-libs/wlroots dev-libs/wayland dev-libs/wayland-protocols x11-libs/pixman x11-libs/libxkbcommon \
media-libs/freetype media-libs/harfbuzz media-libs/fontconfig gnome-base/librsvg x11-libs/cairo x11-libs/pango dev-libs/libinput \
app-arch/libarchive media-libs/libwebp media-libs/libpng media-libs/libjpeg-turbo media-libs/libpulse media-video/pipewire sys-libs/pam net-print/cups \
- media-libs/mesa sys-libs/readline \
+ media-libs/mesa sys-libs/readline net-libs/libtorrent-rasterbar dev-libs/json-glib sys-devel/gcc \
virtual/pkgconfig dev-vcs/git dev-lang/python \
x11-base/xwayland \
sys-apps/xdg-desktop-portal gui-libs/xdg-desktop-portal-wlr sys-apps/xdg-desktop-portal-gtk"
;;
esac
+case "$FAMILY" in
+ gentoo) deps="$deps sys-fs/squashfs-tools" ;;
+ opensuse) deps="$deps squashfs" ;;
+ *) deps="$deps squashfs-tools" ;;
+esac
if [ "$PRIVATE_WLROOTS" = yes ] && [ "$FAMILY" != arch ] && [ "$FAMILY" != debian ] && [ "$FAMILY" != fedora ]; then
die "building the private wlroots isn't supported on $FAMILY yet; unset REDIWM_PRIVATE_WLROOTS to use the system wlroots 0.20"
fi
diff --git a/scripts/release-build.sh b/scripts/release-build.sh
index b28b920..afef80c 100644
--- a/scripts/release-build.sh
+++ b/scripts/release-build.sh
@@ -23,15 +23,15 @@ case "$family" in
# A container image is a snapshot: refresh it so the release links
# what rolling users have today.
pacman -Syu --noconfirm
- extra="xorg-xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk python mesa"
+ extra="xorg-xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk python mesa squashfs-tools"
owner() { pacman -Qqo "$1" 2>/dev/null; }
;;
debian|ubuntu)
- extra="xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk python3 xkb-data libgl1-mesa-dri libegl-mesa0"
+ extra="xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk python3 xkb-data libgl1-mesa-dri libegl-mesa0 squashfs-tools"
owner() { { dpkg-query -S "$1" 2>/dev/null || dpkg-query -S "/usr$1" 2>/dev/null; } | head -n 1 | sed 's/:.*//'; }
;;
fedora)
- extra="xorg-x11-server-Xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk python3 mesa-dri-drivers"
+ extra="xorg-x11-server-Xwayland xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk python3 mesa-dri-drivers squashfs-tools"
owner() { rpm -qf --qf '%{NAME}\n' "$1" 2>/dev/null | head -n 1; }
;;
*) die "unknown family '$family' (arch, debian, ubuntu, fedora)" ;;
diff --git a/scripts/release-verify.sh b/scripts/release-verify.sh
index f247016..53d3112 100644
--- a/scripts/release-verify.sh
+++ b/scripts/release-verify.sh
@@ -52,14 +52,18 @@ log "Checking the installed files"
for bin in /usr/local/bin/rediwm /usr/local/bin/rediwm-*; do
readelf -d "$bin" 2>/dev/null | grep -E 'RUNPATH|RPATH' | grep -q "/work/" && die "$bin carries a build path in its RUNPATH"
done
-for bin in rediwm rediwm-msg rediwm-theme rediwm-files rediwm-files-terminal rediwm-images rediwm-monitor rediwm-editor rediwm-pdf rediwm-share-picker rediwm-session rediwm-dm rediwm-accounts-helper; do
+for bin in rediwm rediwm-msg rediwm-theme rediwm-files rediwm-files-terminal rediwm-transfers rediwm-images rediwm-monitor rediwm-calculator rediwm-editor rediwm-pdf rediwm-share-picker rediwm-session rediwm-dm rediwm-accounts-helper; do
[ -x "/usr/local/bin/$bin" ] || die "/usr/local/bin/$bin is missing"
ldd "/usr/local/bin/$bin" 2>&1 | grep -q 'not found' && die "$bin has unresolved libraries"
done
+[ -f /usr/local/share/applications/rediwm-transfers.desktop ] || die "the torrent handler is missing"
+[ -f /usr/local/share/applications/rediwm-calculator.desktop ] || die "the Calculator launcher is missing"
+[ -f /usr/local/share/icons/hicolor/scalable/apps/rediwm-calculator.svg ] || die "the Calculator icon is missing"
[ -f /usr/share/wayland-sessions/rediwm-release-safe.desktop ] || die "the session entry is missing"
[ -d /usr/local/lib/rediwm ] || die "the bundled libraries are missing"
runuser -u tester -- test -r /usr/local/lib/rediwm/files-bash.so || die "the Files Bash integration is missing or unreadable"
runuser -u tester -- test -r /usr/local/share/licenses/rediwm/libvterm-LICENSE || die "the libvterm license is missing or unreadable"
+runuser -u tester -- test -r /usr/local/share/licenses/rediwm/libtorrent-LICENSE || die "the libtorrent license is missing or unreadable"
for asset in theme.toml icons/folder.png icons/user-home.png icons/user-trash.png wallpapers/wallpaper-gold.png; do
runuser -u tester -- test -r "/usr/local/share/rediwm/themes/gold/$asset" || die "Gold theme asset is missing or unreadable: $asset"
done
diff --git a/src/Dock.zig b/src/Dock.zig
index f8b58b7..d98d717 100644
--- a/src/Dock.zig
+++ b/src/Dock.zig
@@ -127,6 +127,7 @@ root: ui.layout.Widget = .{ .kind = .container },
input_root: ui.layout.Widget = .{ .kind = .container },
buttons: [max_items]ui.layout.Widget = undefined,
ids: [max_items]u64 = @splat(0),
+window_counts: [max_items]usize = @splat(0),
shortcuts: [max_items]?Shortcut = @splat(null),
/// Index into `pins` for the buttons that show a pinned application.
pin_of: [max_items]?u8 = @splat(null),
@@ -487,6 +488,43 @@ fn prefer(current: ?*Toplevel, top: *Toplevel, focused: ?*Toplevel) bool {
return held != focused and (top == focused or (held.minimized and !top.minimized));
}
+fn showsWindow(self: *const Self, top: *Toplevel) bool {
+ const output = self.output.?;
+ return top.in_world and !top.closing and !top.backend_gone and !top.tab_hidden and
+ @import("workspaces.zig").visible(top) and !(top.live_rules.skip_taskbar orelse false) and
+ (!output.server.world.workspaces.active or top.currentOutput() == output);
+}
+
+/// Use the same membership as the badge, including minimized windows.
+fn openWindowPicker(self: *Self, index: usize) bool {
+ const output = self.output.?;
+ const target = self.topAt(index) orelse return false;
+ if (self.pin_of[index] == null and self.shortcuts[index] == null and target.appId().len == 0) return false;
+ const snapshot = output.server.start_menu_catalog.retainSnapshot();
+ defer snapshot.release();
+ var scratch = std.heap.ArenaAllocator.init(gpa);
+ defer scratch.deinit();
+ const matches = self.shortcutApps(snapshot.entries, scratch.allocator());
+ var ids: std.ArrayList(u64) = .empty;
+ defer ids.deinit(gpa);
+ var it = output.server.world.toplevels.iterator(.forward);
+ while (it.next()) |top| {
+ if (!self.showsWindow(top)) continue;
+ const same = if (self.pin_of[index]) |pin|
+ self.pinFor(top) == pin
+ else if (self.shortcuts[index]) |shortcut|
+ self.pinFor(top) == null and matches[@intFromEnum(shortcut)].matches(top)
+ else
+ std.mem.eql(u8, @import("window_tabs.zig").identity(top.appId()), @import("window_tabs.zig").identity(target.appId()));
+ if (same) ids.append(gpa, top.id) catch return false;
+ }
+ if (ids.items.len < 2) return false;
+ std.mem.sort(u64, ids.items, {}, std.sort.asc(u64));
+ const button = &self.buttons[index];
+ output.server.input.window_menu.openDockWindows(self, ids.items, self.shortcuts[index], self.box.x + @as(i32, @intFromFloat(button.computed_x + button.computed_width / 2)), self.box.y + @as(i32, @intFromFloat(button.computed_y + button.computed_height / 2)));
+ return output.server.input.window_menu.node != null;
+}
+
/// Where the dock rests in `area`: centred along its edge, `edge_margin` in.
fn place(self: *Self, area: wlr.Box) void {
self.box.x = area.x + @divTrunc(area.width - self.box.width, 2);
@@ -559,16 +597,18 @@ fn rebuild(self: *Self, capacity: usize, area: wlr.Box) !void {
const matches = self.shortcutApps(snapshot.entries, scratch.allocator());
var targets: [shortcut_count]?*Toplevel = @splat(null);
var pin_targets: [max_pins]?*Toplevel = @splat(null);
+ var shortcut_counts: [shortcut_count]usize = @splat(0);
+ var pin_counts: [max_pins]usize = @splat(0);
+ var app_counts = std.StringHashMap(usize).init(scratch.allocator());
const focused = @import("ipc/handlers.zig").findFocusedToplevel(output.server);
var tops: std.ArrayList(*Toplevel) = .empty;
defer tops.deinit(gpa);
var it = output.server.world.toplevels.iterator(.forward);
windows: while (it.next()) |top| {
- if (!top.in_world or top.closing or top.backend_gone or top.tab_hidden or
- !@import("workspaces.zig").visible(top) or (top.live_rules.skip_taskbar orelse false) or
- (output.server.world.workspaces.active and top.currentOutput() != output)) continue;
+ if (!self.showsWindow(top)) continue;
// Every running app shows: on its pin, on its shortcut, or as a window.
if (self.pinFor(top)) |pin| {
+ pin_counts[pin] += 1;
if (prefer(pin_targets[pin], top, focused)) pin_targets[pin] = top;
continue;
}
@@ -576,11 +616,18 @@ fn rebuild(self: *Self, capacity: usize, area: wlr.Box) !void {
// A removed shortcut is only a launcher gone: its app, once
// running, is an ordinary window button.
if (!self.shortcutShown(shortcut) or !matches[@intFromEnum(shortcut)].matches(top)) continue;
+ shortcut_counts[@intFromEnum(shortcut)] += 1;
const target = &targets[@intFromEnum(shortcut)];
if (prefer(target.*, top, focused)) target.* = top;
continue :windows;
}
try tops.append(gpa, top);
+ const app_id = @import("window_tabs.zig").identity(top.appId());
+ if (app_id.len > 0) {
+ const entry = try app_counts.getOrPut(app_id);
+ if (!entry.found_existing) entry.value_ptr.* = 0;
+ entry.value_ptr.* += 1;
+ }
}
std.mem.sort(*Toplevel, tops.items, {}, struct {
fn less(_: void, a: *Toplevel, b: *Toplevel) bool {
@@ -605,23 +652,28 @@ fn rebuild(self: *Self, capacity: usize, area: wlr.Box) !void {
self.input_root = .{ .kind = .container, .children = self.buttons[0..self.count], .computed_x = @floatFromInt(raster.x), .computed_y = @floatFromInt(raster.y), .computed_width = @floatFromInt(raster.width), .computed_height = @floatFromInt(raster.height) };
var index: usize = 0;
self.pin_of = @splat(null);
+ self.window_counts = @splat(0);
for ([_]Shortcut{ .applications, .files, .terminal }) |shortcut| {
if (!self.shortcutShown(shortcut)) continue;
self.setButton(index, shortcut, if (targets[@intFromEnum(shortcut)]) |top| top.id else 0);
+ self.window_counts[index] = shortcut_counts[@intFromEnum(shortcut)];
index += 1;
}
self.pin_base = index;
for (pin_targets[0..self.pin_count], 0..) |target, pin| {
self.pin_of[index] = @intCast(pin);
self.setButton(index, null, if (target) |top| top.id else 0);
+ self.window_counts[index] = pin_counts[pin];
index += 1;
}
for (tops.items[self.offset .. self.offset + window_count]) |top| {
self.setButton(index, null, top.id);
+ self.window_counts[index] = app_counts.get(@import("window_tabs.zig").identity(top.appId())) orelse 1;
index += 1;
}
if (self.shortcutShown(.settings)) {
self.setButton(index, .settings, if (targets[@intFromEnum(Shortcut.settings)]) |top| top.id else 0);
+ self.window_counts[index] = shortcut_counts[@intFromEnum(Shortcut.settings)];
index += 1;
}
// The trash is the dock's last item, past a divider; no window is its.
@@ -727,14 +779,14 @@ fn rasterBox(self: *const Self) wlr.Box {
fn label(self: *Self, index: usize) []const u8 {
if (self.shortcuts[index]) |shortcut| return switch (shortcut) {
- .applications => "Applications",
- .files => "Files",
- .terminal => "Terminal",
- .settings => "Settings",
- .trash => "Trash",
+ .applications => @import("i18n").tr("Applications"),
+ .files => @import("i18n").tr("Files"),
+ .terminal => @import("i18n").tr("Terminal"),
+ .settings => @import("i18n").tr("Settings"),
+ .trash => @import("i18n").tr("Trash"),
};
if (self.pin_of[index]) |p| return self.pins[p].name;
- return if (self.topAt(index)) |top| top.title() else "Application";
+ return if (self.topAt(index)) |top| top.title() else @import("i18n").tr("Application");
}
/// Hashes a value field by field; floats by their bits, slices by contents.
@@ -756,6 +808,7 @@ fn hashValue(hasher: *std.hash.Wyhash, value: anytype) void {
/// What one button shows.
const Look = struct {
focused: bool,
+ window_count: usize,
icon: ?IconEntry,
pill_width: f32,
pill_opacity: f32,
@@ -807,6 +860,7 @@ fn paint(self: *Self, now_ms: i64) !void {
self.animating = self.animating or !pill.width.settled(now_ms) or !pill.opacity.settled(now_ms) or !pill.zoom.settled(now_ms);
look.* = .{
.focused = active,
+ .window_count = self.window_counts[index],
.icon = if (lookup == .ready) lookup.ready else null,
.pill_width = @max(0, pill.width.last_quantised),
.pill_opacity = std.math.clamp(pill.opacity.last_quantised, 0, 1),
@@ -817,7 +871,7 @@ fn paint(self: *Self, now_ms: i64) !void {
self.setButtonZoom(index, look.zoom);
const icon_id: ?u64 = if (look.icon) |icon| icon.id else null;
var item_hasher = std.hash.Wyhash.init(0);
- hashValue(&item_hasher, .{ self.shortcuts[index], self.pin_of[index], button.kind.button.state, look.focused, icon_id, look.pill_width, look.pill_opacity, look.zoom });
+ hashValue(&item_hasher, .{ self.shortcuts[index], self.pin_of[index], button.kind.button.state, look.focused, look.window_count, icon_id, look.pill_width, look.pill_opacity, look.zoom });
item_keys[index] = item_hasher.final();
hasher.update(std.mem.asBytes(&item_keys[index]));
}
@@ -972,7 +1026,7 @@ fn paintDock(self: *Self, pal: ui.theme.Theme, bg: [4]f32, looks: []const Look,
self.glass_anchor.?.setDestSize(self.box.width, self.box.height);
}
-/// One button: its backdrop, icon and running pill.
+/// One button: its backdrop, icon, window count and running pill.
fn paintItem(self: *Self, r: *ui.paint.Renderer, pal: ui.theme.Theme, m: Metrics, index: usize, look: Look, ox: f32, oy: f32) void {
const zooms = self.output.?.server.config.compositor.dock_hover_zoom > 1;
const button = &self.buttons[index];
@@ -997,6 +1051,26 @@ fn paintItem(self: *Self, r: *ui.paint.Renderer, pal: ui.theme.Theme, m: Metrics
.trash => .trash_can,
} else .generic, .color = pal.window_fg });
}
+ if (look.window_count >= 2) {
+ // Stay inside the icon's square, hence inside itemCell even at the
+ // spring's largest overshoot. A count change only repaints this cell.
+ const rect = self.iconBox(index, look.zoom, 36);
+ const diameter = m.size(18) * look.zoom;
+ const bx = rect.x + rect.w - diameter + ox;
+ const by = rect.y + oy;
+ var label_buf: [3]u8 = undefined;
+ const count_text = if (look.window_count > 99) "99+" else std.fmt.bufPrint(&label_buf, "{d}", .{look.window_count}) catch unreachable;
+ const font_size = m.size(if (count_text.len > 2) 8 else 10) * look.zoom;
+ const text_width = ui.text.measureWidthF(count_text, .manrope_heavy, font_size, self.scale) catch diameter;
+ const text_x = bx + @max(0, (diameter - text_width) / 2);
+ r.fillRect(bx, by, diameter, diameter, .{ .color = pal.accent, .radius = diameter / 2 });
+ r.drawText(text_x, by, bx + diameter - text_x, diameter, .{
+ .content = count_text,
+ .font_size = font_size,
+ .weight = 700,
+ .color = pal.on_accent,
+ });
+ }
if (look.pill_width > 0 and look.pill_opacity > 0) {
var accent = pal.accent;
accent[3] *= look.pill_opacity;
@@ -1397,6 +1471,7 @@ fn clicked(owner: ?*anyopaque, index: usize) void {
const output = self.output.?;
const server = output.server;
if (server.locker != null) return;
+ if (self.openWindowPicker(index)) return;
if (self.topAt(index)) |top| {
const focused = @import("ipc/handlers.zig").findFocusedToplevel(server) == top;
if (!top.minimized and focused and server.world.isWindowVisible(top, output)) {
diff --git a/src/Input.zig b/src/Input.zig
index 438be98..20a4407 100644
--- a/src/Input.zig
+++ b/src/Input.zig
@@ -475,7 +475,7 @@ pub fn detachOutput(input: *Input, output: *Output) void {
}
pub fn detachToplevel(input: *Input, toplevel: *Toplevel) void {
- if (input.window_menu.target == toplevel) input.window_menu.close();
+ if (input.window_menu.references(toplevel)) input.window_menu.close();
if (input.hovered_toplevel == toplevel) input.hovered_toplevel = null;
if (input.glow_toplevel == toplevel) input.glow_toplevel = null;
input.drag_dodge.detach(toplevel);
diff --git a/src/Output.zig b/src/Output.zig
index 1126e68..70c293e 100644
--- a/src/Output.zig
+++ b/src/Output.zig
@@ -194,6 +194,34 @@ pub const restoreReconnectedWindows = output_layout.restoreReconnectedWindows;
pub const Placement = struct { output: *Output, x: i32, y: i32 };
// The wlr.Output should be destroyed by the caller on failure to trigger cleanup.
+/// The kernel DRM driver of a DRM output when it is a hypervisor's virtual GPU.
+fn virtualGpuDriver(wlr_output: *wlr.Output) ?[]const u8 {
+ if (!wlr_output.isDrm()) return null;
+ const fd = wlr_output.backend.getDrmFd();
+ if (fd < 0) return null;
+ // struct drm_version; only the name is asked for.
+ const Version = extern struct {
+ major: c_int = 0,
+ minor: c_int = 0,
+ patch: c_int = 0,
+ name_len: usize,
+ name: [*]u8,
+ date_len: usize = 0,
+ date: ?[*]u8 = null,
+ desc_len: usize = 0,
+ desc: ?[*]u8 = null,
+ };
+ const DRM_IOCTL_VERSION = std.os.linux.IOCTL.IOWR('d', 0x00, Version);
+ var name: [32]u8 = undefined;
+ var version: Version = .{ .name_len = name.len, .name = &name };
+ if (std.os.linux.errno(std.os.linux.ioctl(fd, DRM_IOCTL_VERSION, @intFromPtr(&version))) != .SUCCESS) return null;
+ const driver = name[0..@min(version.name_len, name.len)];
+ for ([_][]const u8{ "vmwgfx", "vboxvideo", "virtio_gpu", "qxl", "bochs-drm", "cirrus", "cirrus-qemu", "hyperv_drm" }) |known| {
+ if (std.mem.eql(u8, driver, known)) return known;
+ }
+ return null;
+}
+
pub fn create(server: *Server, wlr_output: *wlr.Output) !void {
const output = try gpa.create(Output);
errdefer gpa.destroy(output); // listeners are attached last, so this cannot double-free with handleDestroy
@@ -205,7 +233,13 @@ pub fn create(server: *Server, wlr_output: *wlr.Output) !void {
};
errdefer output.lock_view.tree.node.destroy();
- output.vblank_timer = server.wl_server.getEventLoop().addTimer(*Output, handleVblank, output) catch null;
+ if (virtualGpuDriver(wlr_output)) |driver| {
+ // These drivers' cursor planes are often invisible in the guest
+ // (VMware, VirtualBox): draw the cursor in the frame instead.
+ wlr_output.lockSoftwareCursors(true);
+ log.info("{s}: software cursor ({s} virtual GPU)", .{ wlr_output.name, driver });
+ }
+ output.vblank_timer =server.wl_server.getEventLoop().addTimer(*Output, handleVblank, output) catch null;
errdefer if (output.vblank_timer) |timer| timer.remove();
// Layout entry and scene output are addons on `wlr_output`. On error the
diff --git a/src/Server.zig b/src/Server.zig
index bd96cb7..a2acd87 100644
--- a/src/Server.zig
+++ b/src/Server.zig
@@ -388,9 +388,6 @@ pub fn init(server: *Server, scale: ?f32, icon_theme_cfg: icon_theme.Config, io:
const ime_tree = nodes.tree.createSceneTree() catch return error.SceneCreateFailed;
const lock_tree = nodes.tree.createSceneTree() catch return error.SceneCreateFailed;
- const catalog = applications.Catalog.init(@import("main.zig").gpa, io, environ, !greeter) catch return error.ServerCreateFailed;
- errdefer catalog.deinit();
-
var config_load_error: ?[]const u8 = null;
var loaded = (if (greeter) loadGreeterConfig(io, environ) else config_loader.loadDefault(@import("main.zig").gpa, io, environ)) catch |err| blk: {
config_load_error = @errorName(err);
@@ -398,6 +395,10 @@ pub fn init(server: *Server, scale: ?f32, icon_theme_cfg: icon_theme.Config, io:
break :blk config_loader.default(@import("main.zig").gpa) catch return error.ServerCreateFailed;
};
errdefer loaded.deinit();
+ const locale_tag = @import("i18n").resolve(if (greeter) "" else loaded.region.language, environ);
+ _ = @import("i18n").setLanguage(locale_tag);
+ const catalog = applications.Catalog.init(@import("main.zig").gpa, io, environ, !greeter, locale_tag) catch return error.ServerCreateFailed;
+ errdefer catalog.deinit();
if (greeter) {
// The greeter shows no windows or desktop and speaks for no one on
// the session bus; X11 and the authentication agent have no role.
@@ -1081,6 +1082,7 @@ pub fn configurePolkit(server: *Server, config: config_loader.PolkitConfig) void
return;
};
if (server.polkit) |agent| {
+ agent.setLocale(@import("i18n").resolve(server.config.region.language, server.environ)) catch |err| log.warn("could not set authentication language: {}", .{err});
agent.conversation = .{ .owner = server, .opened = @import("polkit/dialog.zig").Dialog.opened, .event = @import("polkit/dialog.zig").Dialog.event };
if (server.locker != null) agent.pauseForLock();
}
diff --git a/src/World.zig b/src/World.zig
index a46fbc4..c4267e8 100644
--- a/src/World.zig
+++ b/src/World.zig
@@ -341,12 +341,18 @@ pub fn initBounds(world: *World, layout_x: i32, layout_y: i32, layout_w: i32, la
/// a window happened to pass through.
fn derivedBounds(world: *World, layout_x: i32, layout_y: i32, layout_w: i32, layout_h: i32) camera_mod.Bounds {
const cfg = world.server.config.compositor;
- var bounds = camera_mod.computeGridBounds(layout_x, layout_y, layout_w, layout_h, cfg.canvas_columns, cfg.canvas_rows);
- if (world.workspaces.active) return bounds;
+ const grid = camera_mod.computeGridBounds(layout_x, layout_y, layout_w, layout_h, cfg.canvas_columns, cfg.canvas_rows);
+ if (world.workspaces.active) return grid;
+ // Each window is measured against the grid alone, so stacking order
+ // cannot change whether a frame's grab strip counts as reachable.
+ var bounds = grid;
var it = world.toplevels.iterator(.forward);
while (it.next()) |top| {
if (top.tab_hidden or top.closing or top.backend_gone or !top.in_world) continue;
- expandForToplevel(&bounds, top);
+ var reach = grid;
+ expandForToplevel(&reach, top);
+ bounds.max_x = @max(bounds.max_x, reach.max_x);
+ bounds.max_y = @max(bounds.max_y, reach.max_y);
}
return bounds;
}
diff --git a/src/battery_popup.zig b/src/battery_popup.zig
index 04ea85a..c9a880b 100644
--- a/src/battery_popup.zig
+++ b/src/battery_popup.zig
@@ -1,4 +1,5 @@
//! Battery details from the taskbar snapshot; no hardware reads or timers here.
+const i18n = @import("i18n");
const std = @import("std");
const popup_style = @import("popup_style.zig");
const glass = @import("glass.zig");
@@ -105,21 +106,26 @@ pub const Popup = struct {
var capacity: [24]u8 = undefined;
var cycles: [16]u8 = undefined;
const values = [_][]const u8{
- if (state.health) |h| std.fmt.bufPrint(&health, "{d}%", .{h}) catch "" else "Unavailable",
- if (state.full_wh) |wh| std.fmt.bufPrint(&capacity, "{d:.1} Wh", .{wh}) catch "" else "Unavailable",
- if (state.cycles) |c| std.fmt.bufPrint(&cycles, "{d}", .{c}) catch "" else "Unavailable",
+ if (state.health) |h| std.fmt.bufPrint(&health, "{d}%", .{h}) catch "" else i18n.tr("Unavailable"),
+ if (state.full_wh) |wh| std.fmt.bufPrint(&capacity, "{d:.1} Wh", .{wh}) catch "" else i18n.tr("Unavailable"),
+ if (state.cycles) |c| std.fmt.bufPrint(&cycles, "{d}", .{c}) catch "" else i18n.tr("Unavailable"),
};
- for ([_][]const u8{ "Health", "Full capacity", "Cycles" }, values, 0..) |name, value, i| {
+ for ([_][]const u8{ i18n.tr("Health"), i18n.tr("Full capacity"), i18n.tr("Cycles") }, values, 0..) |name, value, i| {
const x: f32 = 20 + @as(f32, @floatFromInt(i)) * 112;
if (t.popup_card_bg != null) popup_style.card(&r, x, 274, 104, 70) else r.fillRect(x, 274, 104, 70, .{ .color = t.surface_hover, .radius = 9 });
label(&r, x + 10, 284, 90, 22, name, 12, card_t.window_dim, false);
- label(&r, x + 10, 307, 90, 28, value, if (std.mem.eql(u8, value, "Unavailable")) 11 else 19, card_t.window_fg, true);
+ label(&r, x + 10, 307, 90, 28, value, if (std.mem.eql(u8, value, i18n.tr("Unavailable"))) 11 else 19, card_t.window_fg, true);
}
r.fillRect(20, 356, 328, 1, .{ .color = t.border });
if (t.popup_card_bg != null) popup_style.card(&r, 20, 366, 328, 96);
r.palette = card_t;
const manager = self.output.server.power_profiles;
- for (0..3) |i| {
+ const service_up = if (manager) |m| m.isAvailable() else false;
+ if (!service_up) {
+ label(&r, 28, 378, 310, 28, i18n.tr("Power profiles unavailable"), t.font_size, card_t.fg, true);
+ label(&r, 28, 408, 310, 40, i18n.tr("No power profile service is running."), t.font_size - 1, card_t.faint, false);
+ }
+ for (0..if (service_up) 3 else 0) |i| {
const profile: Profile = @enumFromInt(i);
const enabled = if (manager) |m| m.supports(profile) else false;
const selected = if (manager) |m| m.active == profile else false;
diff --git a/src/calculator/app.zig b/src/calculator/app.zig
new file mode 100644
index 0000000..033d746
--- /dev/null
+++ b/src/calculator/app.zig
@@ -0,0 +1,224 @@
+const std = @import("std");
+const ui = @import("ui");
+const cairo = ui.cairo;
+const theme = ui.theme;
+const W = ui.layout.Widget;
+const c = @import("../files/c.zig").api;
+const Model = @import("model.zig").Model;
+
+/// The entry line is set in the keypad's own label size.
+fn entrySize() f32 {
+ return ui.widgets.button.metrics(.lg, theme.global).font_size;
+}
+
+const labels = [_][]const u8{
+ "AC", "(", ")",
+ "⌫", // Clear and editing.
+ "±",
+ "%",
+ "÷",
+ "×", // Unary and multiplicative operators.
+ "7",
+ "8",
+ "9",
+ "−",
+ "4",
+ "5",
+ "6",
+ "+",
+ "1",
+ "2",
+ "3",
+ "=",
+ "0", ".", // Zero spans two columns; equals spans two rows.
+};
+
+pub const App = struct {
+ model: Model = .{},
+ w: i32 = 360,
+ h: i32 = 500,
+ scale: i32 = 1,
+ density: f64 = 1,
+ dirty: bool = true,
+ closed: bool = false,
+ suspended: bool = false,
+ focused: bool = false,
+ ctrl: bool = false,
+ alt: bool = false,
+ shift: bool = false,
+ px: f32 = -1,
+ py: f32 = -1,
+ root: W = .{ .kind = .container },
+ buttons: [22]W = undefined,
+ initialized: bool = false,
+ dispatcher: ui.input.Dispatcher = .{},
+
+ pub fn deinit(self: *App) void {
+ self.dispatcher.reset();
+ }
+ pub fn getTitle(_: *App) [*:0]const u8 {
+ return @import("i18n").trZ("Calculator");
+ }
+ pub fn requestClose(self: *App) void {
+ self.closed = true;
+ }
+ pub fn setSuspended(self: *App, suspended: bool) void {
+ self.suspended = suspended;
+ if (suspended) self.cancelDrag();
+ self.dirty = true;
+ }
+ fn ensureWidgets(self: *App) void {
+ if (self.initialized) return;
+ self.initialized = true;
+ for (&self.buttons, labels, 0..) |*button, label, id| {
+ button.* = .{ .kind = .{ .button = .{
+ .label = label,
+ .size = .lg,
+ .variant = if (id == 19) .primary else .secondary,
+ .owner = self,
+ .id = id,
+ .on_click = clicked,
+ } } };
+ }
+ self.root.children = &self.buttons;
+ self.root.linkParents();
+ self.layout();
+ }
+ fn layout(self: *App) void {
+ if (!self.initialized) return;
+ const width: f32 = @floatFromInt(self.w);
+ const height: f32 = @floatFromInt(self.h);
+ const gap: f32 = 8;
+ const cell_w = (width - 32 - gap * 3) / 4;
+ const top: f32 = @max(112, entrySize() + cairo.statusSize() * 3 + 56);
+ const cell_h = @max(24, (height - top - 16 - gap * 5) / 6);
+ self.root.computed_width = width;
+ self.root.computed_height = height;
+ for (&self.buttons, 0..) |*button, id| {
+ const row = id / 4;
+ const col = id % 4;
+ var x = 16 + @as(f32, @floatFromInt(col)) * (cell_w + gap);
+ var y = top + @as(f32, @floatFromInt(row)) * (cell_h + gap);
+ var w = cell_w;
+ var h = cell_h;
+ // The final row gives zero a double width; equals spans two rows.
+ if (id == 19) h = cell_h * 2 + gap;
+ if (id == 20) {
+ x = 16;
+ y = top + 5 * (cell_h + gap);
+ w = cell_w * 2 + gap;
+ }
+ if (id == 21) {
+ x = 16 + 2 * (cell_w + gap);
+ y = top + 5 * (cell_h + gap);
+ }
+ ui.arrange.arrange(button, x, y, w, h);
+ }
+ }
+ pub fn resize(self: *App, width: i32, height: i32) void {
+ self.w = @max(280, width);
+ self.h = @max(420, height);
+ self.layout();
+ self.dirty = true;
+ }
+ fn clicked(owner: ?*anyopaque, id: usize) void {
+ const self: *App = @ptrCast(@alignCast(owner.?));
+ switch (id) {
+ 0 => self.model.clear(),
+ 3 => self.model.backspace(),
+ 4 => self.model.negate(),
+ 19 => self.model.equals(),
+ else => self.model.input(switch (id) {
+ 1 => '(',
+ 2 => ')',
+ 5 => '%',
+ 6 => '/',
+ 7 => '*',
+ 11 => '-',
+ 15 => '+',
+ 20 => '0',
+ 21 => '.',
+ else => labels[id][0],
+ }),
+ }
+ self.dirty = true;
+ }
+ pub fn cancelDrag(self: *App) void {
+ self.px = -1;
+ self.py = -1;
+ if (self.dispatcher.pressed) |button| ui.widgets.button.setState(button, .idle);
+ self.dispatcher.pressed = null;
+ if (self.initialized) self.dispatcher.pointerLeave(&self.root);
+ self.dirty = true;
+ }
+ pub fn cursorName(self: *App) [*:0]const u8 {
+ return if (self.dispatcher.hovered != null) "pointer" else "default";
+ }
+ pub fn handleMotion(self: *App, x: f64, y: f64) void {
+ self.ensureWidgets();
+ self.px = @floatCast(x);
+ self.py = @floatCast(y);
+ self.dispatcher.pointerMotion(&self.root, self.px, self.py);
+ self.dirty = true;
+ }
+ pub fn handleButton(self: *App, code: u32, pressed: bool) void {
+ self.ensureWidgets();
+ if (code != 0x110) return;
+ if (pressed) self.dispatcher.pointerButtonDown(&self.root, self.px, self.py) else self.dispatcher.pointerButtonUp(&self.root, self.px, self.py);
+ self.dirty = true;
+ }
+ pub fn handleKey(self: *App, sym: u32, text: []const u8) void {
+ self.ensureWidgets();
+ self.dirty = true;
+ if (self.ctrl and (sym == c.XKB_KEY_q or sym == c.XKB_KEY_w)) return self.requestClose();
+ if (sym == c.XKB_KEY_Tab or sym == c.XKB_KEY_ISO_Left_Tab) {
+ _ = self.dispatcher.focusNext(&self.root, self.shift or sym == c.XKB_KEY_ISO_Left_Tab);
+ return;
+ }
+ if (self.ctrl or self.alt) return;
+ switch (sym) {
+ c.XKB_KEY_Escape, c.XKB_KEY_Delete, c.XKB_KEY_KP_Delete => self.model.clear(),
+ c.XKB_KEY_BackSpace => self.model.backspace(),
+ c.XKB_KEY_Return, c.XKB_KEY_KP_Enter => self.model.equals(),
+ c.XKB_KEY_space => {
+ if (self.dispatcher.focused) |widget| ui.widgets.button.press(widget);
+ },
+ c.XKB_KEY_F9 => self.model.negate(),
+ c.XKB_KEY_KP_Decimal, c.XKB_KEY_KP_Separator => self.model.input('.'),
+ else => for (text) |char| {
+ if (char == '=') self.model.equals() else if (char == ',') self.model.input('.') else self.model.input(char);
+ },
+ }
+ }
+ pub fn keyRepeats(self: *App, sym: u32, text: []const u8) bool {
+ return !self.ctrl and !self.alt and (sym == c.XKB_KEY_BackSpace or (text.len == 1 and std.ascii.isDigit(text[0])));
+ }
+ fn textRight(self: *App, cr: *c.cairo_t, text: []const u8, y: f64, size: f64, bold: bool) void {
+ const width: f64 = @floatFromInt(self.w - 32);
+ c.cairo_save(cr);
+ defer c.cairo_restore(cr);
+ c.cairo_rectangle(cr, 16, y - size * 1.5, width, size * 2);
+ c.cairo_clip(cr);
+ cairo.setSource(cr, theme.global.window_fg);
+ cairo.drawText(cr, text, @as(f64, @floatFromInt(self.w - 16)) - cairo.measureText(cr, text, size, bold), y, size, bold);
+ }
+ pub fn render(self: *App, cr: *c.cairo_t) void {
+ self.ensureWidgets();
+ self.layout();
+ cairo.setSource(cr, theme.global.app_bg);
+ c.cairo_paint(cr);
+ const status = cairo.statusSize();
+ const heading = entrySize();
+ if (self.model.history_len > 0) self.textRight(cr, self.model.history[0..self.model.history_len], 16 + status, status, false);
+ const expression = self.model.display();
+ self.textRight(cr, if (expression.len == 0) "0" else expression, 28 + status + heading, heading, true);
+ self.textRight(cr, if (self.model.notice.len > 0) self.model.notice else @import("i18n").tr("Enter = Esc clear F9 ± % = ÷100"), 40 + status * 2 + heading, status, false);
+ ui.input.active_dispatcher = &self.dispatcher;
+ defer ui.input.active_dispatcher = null;
+ if (cairo.Layer.begin(cr, .{ .x = 0, .y = 0, .w = @floatFromInt(self.w), .h = @floatFromInt(self.h) })) |value| {
+ var layer = value;
+ ui.paint.paint(&self.root, &layer.renderer);
+ layer.finish();
+ }
+ }
+};
diff --git a/src/calculator/client.zig b/src/calculator/client.zig
new file mode 100644
index 0000000..882bada
--- /dev/null
+++ b/src/calculator/client.zig
@@ -0,0 +1,891 @@
+//! Standalone Calculator Wayland host (following the native Calculator client). Uses the same decoration, input,
+//! cursor and released-buffer lifecycle as the other native RediWM clients.
+const std = @import("std");
+const ClientCursor = @import("ui").client_cursor;
+const wl = @import("wayland").client.wl;
+const xdg = @import("wayland").client.xdg;
+const wp = @import("wayland").client.wp;
+const zxdg = @import("wayland").client.zxdg;
+const c = @import("../files/c.zig").api;
+const app_mod = @import("app.zig");
+const key_repeat = @import("ui").key_repeat;
+const shell_ui = @import("ui").cairo;
+const ui_theme = @import("ui").theme;
+const a = std.heap.c_allocator;
+const ui = @import("ui");
+
+// A window with no server-side decorations must draw its own titlebar so it
+// stays usable (movable, closable) on compositors that don't implement
+// zxdg-decoration, e.g. GNOME/Mutter. See plan-file-manager.md section 1.
+const CSD_TITLEBAR_H: i32 = 32;
+const RESIZE_MARGIN: f64 = 6;
+
+const DecorationMode = enum { unknown, client_side, server_side };
+
+const OutputInfo = struct {
+ client: *Client,
+ proxy: *wl.Output,
+ name: u32,
+ scale: i32 = 1,
+ logical: ?*zxdg.OutputV1 = null,
+ logical_width: i32 = 0,
+ logical_height: i32 = 0,
+ mode_width: i32 = 0,
+ mode_height: i32 = 0,
+
+ /// Physical pixels per logical pixel. `wl_output.scale` is the integer
+ /// ceiling, so a 1.5 output reads as 2; the mode and the logical size
+ /// give the real factor. Anything outside (scale - 1, scale] (a rotated
+ /// or nested output) falls back to the integer.
+ fn density(self: OutputInfo) f64 {
+ const whole: f64 = @floatFromInt(self.scale);
+ const logical = @max(self.logical_width, self.logical_height);
+ const mode = @max(self.mode_width, self.mode_height);
+ if (logical <= 0 or mode <= 0) return whole;
+ const real = @as(f64, @floatFromInt(mode)) / @as(f64, @floatFromInt(logical));
+ return if (real > whole - 1 and real <= whole + 0.01) real else whole;
+ }
+};
+
+pub const Client = struct {
+ display: *wl.Display,
+ compositor: ?*wl.Compositor = null,
+ shm: ?*wl.Shm = null,
+ output_manager: ?*zxdg.OutputManagerV1 = null,
+ outputs: std.ArrayList(*OutputInfo) = .empty,
+ entered_outputs: std.ArrayList(*OutputInfo) = .empty,
+ scale: i32 = 1,
+ density: f64 = 1,
+ seat: ?*wl.Seat = null,
+ pointer: ?*wl.Pointer = null,
+ keyboard: ?*wl.Keyboard = null,
+ input_serial: u32 = 0,
+ wm_base: ?*xdg.WmBase = null,
+ activation: ?*xdg.ActivationV1 = null,
+ viewporter: ?*wp.Viewporter = null,
+ viewport: ?*wp.Viewport = null,
+ fractional_manager: ?*wp.FractionalScaleManagerV1 = null,
+ fractional: ?*wp.FractionalScaleV1 = null,
+ preferred_density: ?f64 = null,
+ decoration_manager: ?*zxdg.DecorationManagerV1 = null,
+ surface: *wl.Surface = undefined,
+ xdg_surface: *xdg.Surface = undefined,
+ xdg_toplevel: *xdg.Toplevel = undefined,
+ decoration: ?*zxdg.ToplevelDecorationV1 = null,
+ decoration_mode: DecorationMode = .unknown,
+ pointer_x: f64 = 0,
+ pointer_y: f64 = 0,
+ cursor_shape: ClientCursor = .{},
+ cursor_surface: *wl.Surface = undefined,
+ cursor_theme: ?*wl.CursorTheme = null,
+ cursor_serial: u32 = 0,
+ cursor_name: [*:0]const u8 = "",
+ inside: bool = false,
+ configured: bool = false,
+ running: bool = true,
+ outstanding: usize = 0,
+ buffers: [2]?*Buffer = @splat(null),
+ applied_scale: i32 = 0,
+ xkb_context: ?*c.xkb_context = null,
+ xkb_state: ?*c.xkb_state = null,
+ key_repeat: key_repeat.KeyRepeat = .{},
+ compose: @import("ui").compose.Compose = .{},
+ /// LC_CTYPE of the session; picks the Compose table (´+c is ç in pt_BR).
+ locale: []const u8 = "",
+ app: app_mod.App,
+ close_button: ui.layout.Widget = .{ .kind = .{ .button = .{ .variant = .chrome, .icon = .close, .label = "" } } },
+ chrome_input: ui.input.Dispatcher = .{},
+
+ fn arrangeClose(self: *Client) void {
+ self.close_button.kind.button.label = @import("i18n").tr("Close");
+ self.close_button.kind.button.owner = self;
+ self.close_button.kind.button.on_click = closeClicked;
+ const height: f32 = @floatFromInt(self.titlebarHeight());
+ ui.arrange.arrange(&self.close_button, @as(f32, @floatFromInt(self.app.w)) - height, 0, height, height);
+ }
+
+ fn closeClicked(owner: ?*anyopaque, _: usize) void {
+ const self: *Client = @ptrCast(@alignCast(owner.?));
+ self.app.requestClose();
+ }
+
+ pub fn registryEvent(registry: *wl.Registry, event: wl.Registry.Event, self: *Client) void {
+ switch (event) {
+ .global => |g| {
+ const iface = std.mem.span(g.interface);
+ self.cursor_shape.bind(registry, g.name, iface, g.version);
+ if (std.mem.eql(u8, iface, "wl_compositor")) {
+ self.compositor = registry.bind(g.name, wl.Compositor, @min(g.version, 5)) catch null;
+ } else if (std.mem.eql(u8, iface, "wl_shm")) {
+ self.shm = registry.bind(g.name, wl.Shm, 1) catch null;
+ } else if (std.mem.eql(u8, iface, "wl_output")) {
+ if (registry.bind(g.name, wl.Output, @min(g.version, 4)) catch null) |proxy| {
+ const info = a.create(OutputInfo) catch {
+ proxy.destroy();
+ return;
+ };
+ info.* = .{ .client = self, .proxy = proxy, .name = g.name };
+ self.outputs.append(a, info) catch {
+ proxy.destroy();
+ a.destroy(info);
+ return;
+ };
+ proxy.setListener(*OutputInfo, outputEvent, info);
+ }
+ } else if (std.mem.eql(u8, iface, "zxdg_output_manager_v1")) {
+ self.output_manager = registry.bind(g.name, zxdg.OutputManagerV1, @min(g.version, 3)) catch null;
+ } else if (std.mem.eql(u8, iface, "wl_seat") and self.seat == null) {
+ self.seat = registry.bind(g.name, wl.Seat, @min(g.version, 7)) catch null;
+ if (self.seat) |seat| seat.setListener(*Client, seatEvent, self);
+ } else if (std.mem.eql(u8, iface, "wp_viewporter")) {
+ self.viewporter = registry.bind(g.name, wp.Viewporter, 1) catch null;
+ } else if (std.mem.eql(u8, iface, "wp_fractional_scale_manager_v1")) {
+ self.fractional_manager = registry.bind(g.name, wp.FractionalScaleManagerV1, 1) catch null;
+ } else if (std.mem.eql(u8, iface, "xdg_activation_v1")) {
+ self.activation = registry.bind(g.name, xdg.ActivationV1, 1) catch null;
+ } else if (std.mem.eql(u8, iface, "xdg_wm_base")) {
+ self.wm_base = registry.bind(g.name, xdg.WmBase, @min(g.version, 6)) catch null;
+ if (self.wm_base) |wm| wm.setListener(*Client, wmBaseEvent, self);
+ } else if (std.mem.eql(u8, iface, "zxdg_decoration_manager_v1")) {
+ self.decoration_manager = registry.bind(g.name, zxdg.DecorationManagerV1, 1) catch null;
+ }
+ },
+ .global_remove => |ev| {
+ for (self.outputs.items, 0..) |info, i| {
+ if (info.name == ev.name) {
+ _ = self.outputs.swapRemove(i);
+ self.removeEnteredOutput(info);
+ if (info.logical) |logical| logical.destroy();
+ info.proxy.destroy();
+ a.destroy(info);
+ self.recomputeScale();
+ break;
+ }
+ }
+ },
+ }
+ }
+
+ fn close(self: *Client) void {
+ self.app.requestClose();
+ self.running = false;
+ }
+
+ fn fractionalEvent(_: *wp.FractionalScaleV1, event: wp.FractionalScaleV1.Event, self: *Client) void {
+ if (event == .preferred_scale and event.preferred_scale.scale > 0) {
+ self.preferred_density = std.math.clamp(@as(f64, @floatFromInt(event.preferred_scale.scale)) / 120, 0.5, 4);
+ self.recomputeScale();
+ }
+ }
+
+ fn wmBaseEvent(_: *xdg.WmBase, event: xdg.WmBase.Event, self: *Client) void {
+ switch (event) {
+ .ping => |ev| {
+ if (self.wm_base) |wm| wm.pong(ev.serial);
+ },
+ }
+ }
+
+ fn logicalOutputEvent(_: *zxdg.OutputV1, event: zxdg.OutputV1.Event, info: *OutputInfo) void {
+ if (event == .logical_size) {
+ info.logical_width = event.logical_size.width;
+ info.logical_height = event.logical_size.height;
+ info.client.recomputeScale();
+ }
+ }
+
+ fn outputEvent(_: *wl.Output, event: wl.Output.Event, info: *OutputInfo) void {
+ switch (event) {
+ .scale => |ev| {
+ info.scale = std.math.clamp(ev.factor, 1, 4);
+ info.client.recomputeScale();
+ },
+ .mode => |ev| if (ev.flags.current) {
+ info.mode_width = ev.width;
+ info.mode_height = ev.height;
+ info.client.recomputeScale();
+ },
+ else => {},
+ }
+ }
+
+ // The window may span multiple outputs at different scales; use the
+ // largest scale among outputs the surface currently overlaps, per the
+ // usual Wayland client convention. Falls back to 1 before the first
+ // wl_surface.enter is received.
+ fn recomputeScale(self: *Client) void {
+ var new_scale: i32 = 1;
+ var new_density: f64 = 1;
+ for (self.entered_outputs.items) |info| {
+ new_scale = @max(new_scale, info.scale);
+ new_density = @max(new_density, info.density());
+ }
+ if (self.viewport != null) new_density = self.preferred_density orelse new_density;
+ if (new_scale != self.scale or new_density != self.density) {
+ self.scale = new_scale;
+ self.density = new_density;
+ self.app.scale = new_scale;
+ self.app.density = new_density;
+ self.app.dirty = true;
+ }
+ }
+
+ fn removeEnteredOutput(self: *Client, info: *OutputInfo) void {
+ for (self.entered_outputs.items, 0..) |o, i| {
+ if (o == info) {
+ _ = self.entered_outputs.swapRemove(i);
+ return;
+ }
+ }
+ }
+
+ fn surfaceEvent(_: *wl.Surface, event: wl.Surface.Event, self: *Client) void {
+ switch (event) {
+ .enter => |ev| {
+ if (ev.output) |out| {
+ for (self.outputs.items) |info| {
+ if (info.proxy == out) {
+ self.entered_outputs.append(a, info) catch {};
+ self.recomputeScale();
+ break;
+ }
+ }
+ }
+ self.app.dirty = true;
+ },
+ .leave => |ev| {
+ if (ev.output) |out| {
+ for (self.outputs.items) |info| {
+ if (info.proxy == out) {
+ self.removeEnteredOutput(info);
+ self.recomputeScale();
+ break;
+ }
+ }
+ }
+ },
+ }
+ }
+
+ fn seatEvent(seat: *wl.Seat, event: wl.Seat.Event, self: *Client) void {
+ switch (event) {
+ .capabilities => |ev| {
+ if (ev.capabilities.pointer and self.pointer == null) {
+ self.pointer = seat.getPointer() catch null;
+ if (self.pointer) |p| p.setListener(*Client, pointerEvent, self);
+ }
+ if (!ev.capabilities.pointer) {
+ self.cursor_shape.clearPointer();
+ if (self.pointer) |p| p.release();
+ self.pointer = null;
+ self.app.cancelDrag();
+ }
+ if (ev.capabilities.keyboard and self.keyboard == null) {
+ self.keyboard = seat.getKeyboard() catch null;
+ if (self.keyboard) |k| k.setListener(*Client, keyboardEvent, self);
+ }
+ if (!ev.capabilities.keyboard) {
+ if (self.keyboard) |k| k.release();
+ self.keyboard = null;
+ }
+ },
+ else => {},
+ }
+ }
+
+ fn xdgSurfaceEvent(xdg_surf: *xdg.Surface, event: xdg.Surface.Event, self: *Client) void {
+ switch (event) {
+ .configure => |ev| {
+ xdg_surf.ackConfigure(ev.serial);
+ self.configured = true;
+ self.app.dirty = true;
+ },
+ }
+ }
+
+ // Whether this window must draw its own titlebar: either the compositor
+ // never advertised zxdg_decoration_manager_v1 (no configure event will
+ // ever arrive, so self-decorate unconditionally), or it did negotiate a
+ // mode and that mode isn't server_side. Per the xdg-decoration spec, a
+ // mode that hasn't been negotiated yet is assumed to be client_side.
+ fn wantsCsd(self: *const Client) bool {
+ return self.decoration_mode != .server_side;
+ }
+
+ fn titlebarHeight(self: *const Client) i32 {
+ return if (self.wantsCsd()) CSD_TITLEBAR_H else 0;
+ }
+
+ fn decorationEvent(_: *zxdg.ToplevelDecorationV1, event: zxdg.ToplevelDecorationV1.Event, self: *Client) void {
+ switch (event) {
+ .configure => |ev| {
+ self.decoration_mode = switch (ev.mode) {
+ .server_side => .server_side,
+ .client_side => .client_side,
+ else => .client_side,
+ };
+ self.app.dirty = true;
+ },
+ }
+ }
+
+ fn xdgToplevelEvent(_: *xdg.Toplevel, event: xdg.Toplevel.Event, self: *Client) void {
+ switch (event) {
+ .configure => |ev| {
+ const tbh = self.titlebarHeight();
+ if (ev.width > 0 and ev.height > 0) {
+ self.app.resize(ev.width, @max(1, ev.height - tbh));
+ } else if (!self.configured) {
+ var width: i32 = 360;
+ var height: i32 = 500;
+ if (self.outputs.items.len > 0) {
+ const output = self.outputs.items[0];
+ if (output.logical_width > 0) width = std.math.clamp(output.logical_width - 160, 280, 360);
+ if (output.logical_height > 0) height = std.math.clamp(output.logical_height - 200, 420, 500);
+ }
+ self.app.resize(width, height);
+ }
+ var suspended = false;
+ for (ev.states.slice(u32)) |state| if (state == @intFromEnum(xdg.Toplevel.State.suspended)) {
+ suspended = true;
+ };
+ self.app.setSuspended(suspended);
+ self.xdg_toplevel.setMinSize(280, 420 + tbh);
+ self.app.dirty = true;
+ },
+ .close => {
+ self.app.requestClose();
+ },
+ .configure_bounds, .wm_capabilities => {},
+ }
+ }
+
+ fn pointerEvent(_: *wl.Pointer, event: wl.Pointer.Event, self: *Client) void {
+ switch (event) {
+ .enter => |ev| {
+ self.cursor_serial = ev.serial;
+ self.input_serial = ev.serial;
+ self.inside = true;
+ // Force the next setCursor to reassert the image: another
+ // surface may have changed the shared per-seat pointer
+ // cursor while we weren't hovered.
+ self.cursor_name = "";
+ self.handlePointerMotion(ev.surface_x.toDouble(), ev.surface_y.toDouble());
+ },
+ .leave => {
+ self.inside = false;
+ self.app.cancelDrag();
+ },
+ .motion => |ev| {
+ self.handlePointerMotion(ev.surface_x.toDouble(), ev.surface_y.toDouble());
+ },
+ .button => |ev| {
+ self.input_serial = ev.serial;
+ self.handlePointerButton(ev.button, ev.state == .pressed);
+ },
+ else => {},
+ }
+ }
+
+ fn edgeAt(x: f64, y: f64, w: f64, h: f64) ?xdg.Toplevel.ResizeEdge {
+ const left = x <= RESIZE_MARGIN;
+ const right = x >= w - RESIZE_MARGIN;
+ const top = y <= RESIZE_MARGIN;
+ const bottom = y >= h - RESIZE_MARGIN;
+ if (top and left) return .top_left;
+ if (top and right) return .top_right;
+ if (bottom and left) return .bottom_left;
+ if (bottom and right) return .bottom_right;
+ if (top) return .top;
+ if (bottom) return .bottom;
+ if (left) return .left;
+ if (right) return .right;
+ return null;
+ }
+
+ fn cursorNameForEdge(edge: xdg.Toplevel.ResizeEdge) [*:0]const u8 {
+ return switch (edge) {
+ .top => "n-resize",
+ .bottom => "s-resize",
+ .left => "w-resize",
+ .right => "e-resize",
+ .top_left => "nw-resize",
+ .top_right => "ne-resize",
+ .bottom_left => "sw-resize",
+ .bottom_right => "se-resize",
+ .none => "default",
+ else => "default",
+ };
+ }
+
+ // Only the CSD titlebar and its resize border are handled here; anything
+ // below is forwarded to the App with the titlebar height subtracted so
+ // its hardcoded content-area layout stays oblivious to decorations.
+ fn updateCursor(self: *Client) void {
+ if (self.wantsCsd()) {
+ const tbh: f64 = @floatFromInt(self.titlebarHeight());
+ if (edgeAt(self.pointer_x, self.pointer_y, @floatFromInt(self.app.w), @as(f64, @floatFromInt(self.app.h)) + tbh)) |edge| {
+ self.setCursor(cursorNameForEdge(edge));
+ return;
+ }
+ if (self.pointer_y < tbh) {
+ self.setCursor("default");
+ return;
+ }
+ }
+ self.setCursor(self.app.cursorName());
+ }
+ fn handlePointerMotion(self: *Client, x: f64, y: f64) void {
+ self.pointer_x = x;
+ self.pointer_y = y;
+ const tbh: f64 = @floatFromInt(self.titlebarHeight());
+ if (tbh > 0) {
+ self.arrangeClose();
+ self.chrome_input.pointerMotion(&self.close_button, @floatCast(x), @floatCast(y));
+ }
+ self.app.handleMotion(x, y - tbh);
+ self.updateCursor();
+ if (tbh > 0 and y < tbh) self.app.dirty = true;
+ }
+
+ fn handlePointerButton(self: *Client, button: u32, pressed: bool) void {
+ if (button == 0x110 and !pressed and self.chrome_input.pressed != null) {
+ self.chrome_input.pointerButtonUp(&self.close_button, @floatCast(self.pointer_x), @floatCast(self.pointer_y));
+ self.app.dirty = true;
+ return;
+ }
+ if (button == 0x110 and pressed and self.wantsCsd()) {
+ const tbh_f: f64 = @floatFromInt(self.titlebarHeight());
+ const w_f: f64 = @floatFromInt(self.app.w);
+ const h_f: f64 = @as(f64, @floatFromInt(self.app.h)) + tbh_f;
+ if (edgeAt(self.pointer_x, self.pointer_y, w_f, h_f)) |edge| {
+ if (self.seat) |seat| self.xdg_toplevel.resize(seat, self.input_serial, edge);
+ return;
+ }
+ if (self.pointer_y < tbh_f) {
+ self.handleTitlebarClick();
+ return;
+ }
+ }
+ self.app.handleButton(button, pressed);
+ self.handlePointerMotion(self.pointer_x, self.pointer_y);
+ }
+
+ fn handleTitlebarClick(self: *Client) void {
+ self.arrangeClose();
+ self.chrome_input.pointerButtonDown(&self.close_button, @floatCast(self.pointer_x), @floatCast(self.pointer_y));
+ if (self.chrome_input.pressed != null) return;
+ if (self.seat) |seat| self.xdg_toplevel.move(seat, self.input_serial);
+ }
+
+ /// One press of evdev `key` through the current XKB state.
+ fn deliverKey(self: *Client, key: u32) void {
+ const state = self.xkb_state orelse return;
+ const sym = c.xkb_state_key_get_one_sym(state, key + 8);
+ var buf: [64]u8 = undefined;
+ const n = c.xkb_state_key_get_utf8(state, key + 8, &buf, buf.len);
+ // Dead keys have no text of their own: sequences resolve here, and a
+ // shortcut modifier abandons a half-typed one.
+ if (!self.app.ctrl and !self.app.alt) {
+ var composed: [64]u8 = undefined;
+ if (self.compose.feed(self.locale, sym, &composed)) |text| {
+ if (text.len > 0) self.app.handleKey(0, text);
+ return;
+ }
+ } else self.compose.reset();
+ self.app.handleKey(sym, buf[0..@intCast(std.math.clamp(n, 0, 63))]);
+ }
+
+ fn appRepeats(self: *Client, key: u32) bool {
+ if (self.compose.consumed) return false;
+ const state = self.xkb_state orelse return false;
+ var buf: [64]u8 = undefined;
+ const n = c.xkb_state_key_get_utf8(state, key + 8, &buf, buf.len);
+ return self.app.keyRepeats(c.xkb_state_key_get_one_sym(state, key + 8), buf[0..@intCast(std.math.clamp(n, 0, 63))]);
+ }
+
+ /// A due repeat of the held key, if the app still takes it where its
+ /// focus is now (a repeat may have opened a dialog or left a field).
+ fn repeatDue(self: *Client) void {
+ const key = self.key_repeat.due(key_repeat.nowMs()) orelse return;
+ if (!self.appRepeats(key)) return self.key_repeat.stop();
+ self.deliverKey(key);
+ }
+
+ fn keyboardEvent(_: *wl.Keyboard, event: wl.Keyboard.Event, self: *Client) void {
+ switch (event) {
+ .enter => {
+ self.app.focused = true;
+ self.app.dirty = true;
+ },
+ .leave => {
+ self.app.focused = false;
+ self.key_repeat.stop();
+ self.compose.reset();
+ self.app.cancelDrag();
+ self.app.ctrl = false;
+ self.app.shift = false;
+ self.app.alt = false;
+ self.app.dirty = true;
+ },
+ .keymap => |ev| {
+ defer _ = c.close(ev.fd);
+ self.key_repeat.stop();
+ if (ev.format != .xkb_v1 or ev.size == 0) return;
+ const memory = c.mmap(null, ev.size, c.PROT_READ, c.MAP_PRIVATE, ev.fd, 0);
+ if (memory == c.MAP_FAILED) return;
+ defer _ = c.munmap(memory, ev.size);
+
+ const bytes: [*]const u8 = @ptrCast(memory);
+ if (bytes[ev.size - 1] != 0) return;
+
+ if (self.xkb_context == null) self.xkb_context = c.xkb_context_new(c.XKB_CONTEXT_NO_FLAGS);
+ const keymap = c.xkb_keymap_new_from_string(
+ self.xkb_context,
+ @ptrCast(memory),
+ c.XKB_KEYMAP_FORMAT_TEXT_V1,
+ c.XKB_KEYMAP_COMPILE_NO_FLAGS,
+ ) orelse return;
+ defer c.xkb_keymap_unref(keymap);
+
+ if (self.xkb_state) |state| c.xkb_state_unref(state);
+ self.xkb_state = c.xkb_state_new(keymap);
+ },
+ .modifiers => |ev| {
+ if (self.xkb_state) |state| {
+ _ = c.xkb_state_update_mask(state, ev.mods_depressed, ev.mods_latched, ev.mods_locked, 0, 0, ev.group);
+ self.app.ctrl = c.xkb_state_mod_name_is_active(state, "Control", c.XKB_STATE_MODS_EFFECTIVE) > 0;
+ self.app.shift = c.xkb_state_mod_name_is_active(state, "Shift", c.XKB_STATE_MODS_EFFECTIVE) > 0;
+ self.app.alt = c.xkb_state_mod_name_is_active(state, "Mod1", c.XKB_STATE_MODS_EFFECTIVE) > 0 or
+ c.xkb_state_mod_name_is_active(state, "Alt", c.XKB_STATE_MODS_EFFECTIVE) > 0;
+ }
+ },
+ .key => |ev| {
+ self.input_serial = ev.serial;
+ if (ev.state == .pressed) {
+ const state = self.xkb_state orelse return;
+ self.deliverKey(ev.key);
+ // Asked after the key, of the state it left: the repeats
+ // go wherever this press put focus.
+ const keymap_repeats = c.xkb_keymap_key_repeats(c.xkb_state_get_keymap(state), ev.key + 8) != 0;
+ self.key_repeat.press(ev.key, keymap_repeats, self.appRepeats(ev.key), key_repeat.nowMs());
+ } else self.key_repeat.release(ev.key);
+ },
+ .repeat_info => |ev| self.key_repeat.setInfo(ev.rate, ev.delay),
+ }
+ }
+
+ fn setCursor(self: *Client, name: [*:0]const u8) void {
+ if (!self.inside) return;
+ if (std.mem.eql(u8, std.mem.span(self.cursor_name), std.mem.span(name))) return;
+ const pointer = self.pointer orelse return;
+ if (self.cursor_shape.set(pointer, self.cursor_serial, std.mem.span(name))) {
+ self.cursor_name = name;
+ return;
+ }
+ const theme_ptr = self.cursor_theme orelse return;
+ const cursor = theme_ptr.getCursor(name) orelse theme_ptr.getCursor("default") orelse theme_ptr.getCursor("left_ptr") orelse return;
+ if (cursor.image_count == 0) return;
+ const img = cursor.images[0];
+ const buffer = img.getBuffer() catch return;
+
+ pointer.setCursor(self.cursor_serial, self.cursor_surface, @intCast(img.hotspot_x), @intCast(img.hotspot_y));
+ self.cursor_surface.attach(buffer, 0, 0);
+ self.cursor_surface.damage(0, 0, @intCast(img.width), @intCast(img.height));
+ self.cursor_surface.commit();
+ self.cursor_name = name;
+ }
+
+ fn acquireBuffer(self: *Client, w: i32, h: i32) !?*Buffer {
+ for (self.buffers) |slot| if (slot) |buffer| {
+ if (!buffer.busy and buffer.w == w and buffer.h == h) return buffer;
+ };
+ for (&self.buffers) |*slot| {
+ if (slot.*) |buffer| {
+ if (buffer.busy) continue;
+ buffer.destroy();
+ slot.* = null;
+ }
+ slot.* = try Buffer.create(self, w, h);
+ return slot.*;
+ }
+ return null;
+ }
+ fn render(self: *Client) !void {
+ self.updateCursor();
+ if (!self.configured or !self.app.dirty or self.app.suspended or self.outstanding >= 2) return;
+
+ const tbh = self.titlebarHeight();
+ const w = self.app.w;
+ const h = self.app.h + tbh;
+ const raster_scale: f64 = if (self.viewport != null) self.density else @floatFromInt(self.scale);
+ const bw: i32 = @intFromFloat(@round(@as(f64, @floatFromInt(w)) * raster_scale));
+ const bh: i32 = @intFromFloat(@round(@as(f64, @floatFromInt(h)) * raster_scale));
+ const buffer = (try self.acquireBuffer(bw, bh)) orelse return;
+
+ const cr = c.cairo_create(buffer.image) orelse return error.CairoFailed;
+ defer c.cairo_destroy(cr);
+
+ c.cairo_scale(cr, @as(f64, @floatFromInt(bw)) / @as(f64, @floatFromInt(w)), @as(f64, @floatFromInt(bh)) / @as(f64, @floatFromInt(h)));
+
+ if (tbh > 0) self.renderTitlebar(cr, w, tbh);
+
+ c.cairo_save(cr);
+ c.cairo_translate(cr, 0, @floatFromInt(tbh));
+ self.app.render(cr);
+ c.cairo_restore(cr);
+
+ c.cairo_surface_flush(buffer.image);
+
+ const buffer_scale: i32 = if (self.viewport != null) 1 else self.scale;
+ if (self.applied_scale != buffer_scale) {
+ self.surface.setBufferScale(buffer_scale);
+ self.applied_scale = buffer_scale;
+ }
+ if (self.viewport) |viewport| viewport.setDestination(w, h);
+ self.xdg_surface.setWindowGeometry(0, 0, w, h);
+ buffer.busy = true;
+ self.outstanding += 1;
+ self.surface.attach(buffer.wl_buffer, 0, 0);
+ self.surface.damage(0, 0, w, h);
+ self.surface.commit();
+ self.app.dirty = false;
+ }
+
+ fn renderTitlebar(self: *Client, cr: *c.cairo_t, w: i32, h: i32) void {
+ shell_ui.setSource(cr, ui_theme.global.window_bg);
+ c.cairo_rectangle(cr, 0, 0, @floatFromInt(w), @floatFromInt(h));
+ c.cairo_fill(cr);
+ shell_ui.setSource(cr, ui_theme.global.window_fg);
+ shell_ui.drawText(cr, @import("i18n").tr("Calculator"), 16, @as(f64, @floatFromInt(h)) / 2 + shell_ui.statusSize() / 3, shell_ui.statusSize(), true);
+ self.arrangeClose();
+ if (shell_ui.Layer.begin(cr, .{ .x = 0, .y = 0, .w = @floatFromInt(w), .h = @floatFromInt(h) })) |value| {
+ var layer = value;
+ ui.paint.paint(&self.close_button, &layer.renderer);
+ layer.finish();
+ }
+ }
+ fn deinit(self: *Client) void {
+ for (self.outputs.items) |info| {
+ if (info.logical) |logical| logical.destroy();
+ info.proxy.destroy();
+ a.destroy(info);
+ }
+ self.outputs.deinit(a);
+ self.entered_outputs.deinit(a);
+ if (self.xkb_state) |state| c.xkb_state_unref(state);
+ if (self.xkb_context) |context| c.xkb_context_unref(context);
+ if (self.pointer) |pointer| pointer.release();
+ if (self.keyboard) |keyboard| keyboard.release();
+ if (self.seat) |seat| seat.release();
+ if (self.output_manager) |manager| manager.destroy();
+ if (self.fractional_manager) |manager| manager.destroy();
+ if (self.viewporter) |manager| manager.destroy();
+ if (self.decoration_manager) |manager| manager.destroy();
+ if (self.wm_base) |wm| wm.destroy();
+ if (self.activation) |activation| activation.destroy();
+ if (self.shm) |shm| shm.destroy();
+ if (self.compositor) |compositor| compositor.destroy();
+ self.cursor_shape.deinit();
+ }
+};
+
+const Buffer = struct {
+ client: *Client,
+ wl_buffer: *wl.Buffer,
+ image: *c.cairo_surface_t,
+ memory: *anyopaque,
+ len: usize,
+ w: i32,
+ h: i32,
+ busy: bool = false,
+
+ fn create(client: *Client, w: i32, h: i32) !*Buffer {
+ if (w <= 0 or h <= 0 or w > 16384 or h > 16384) return error.InvalidSize;
+ const len: usize = @intCast(w * h * 4);
+ const fd = c.memfd_create("rediwm-calculator", c.MFD_CLOEXEC);
+ if (fd < 0) return error.ShmFailed;
+ defer _ = c.close(fd);
+
+ if (c.ftruncate(fd, @intCast(len)) != 0) return error.ShmFailed;
+ const memory = c.mmap(null, len, c.PROT_READ | c.PROT_WRITE, c.MAP_SHARED, fd, 0);
+ if (memory == c.MAP_FAILED) return error.ShmFailed;
+ errdefer _ = c.munmap(memory, len);
+
+ const pool = try client.shm.?.createPool(fd, @intCast(len));
+ defer pool.destroy();
+
+ const buffer = try pool.createBuffer(0, w, h, w * 4, .argb8888);
+ errdefer buffer.destroy();
+
+ const image = c.cairo_image_surface_create_for_data(
+ @ptrCast(memory),
+ c.CAIRO_FORMAT_ARGB32,
+ w,
+ h,
+ w * 4,
+ ) orelse return error.CairoFailed;
+ errdefer c.cairo_surface_destroy(image);
+ if (c.cairo_surface_status(image) != c.CAIRO_STATUS_SUCCESS) return error.CairoFailed;
+
+ const self = try a.create(Buffer);
+ self.* = .{
+ .client = client,
+ .wl_buffer = buffer,
+ .image = image,
+ .memory = memory.?,
+ .len = len,
+ .w = w,
+ .h = h,
+ };
+ buffer.setListener(*Buffer, released, self);
+ return self;
+ }
+
+ fn released(_: *wl.Buffer, _: wl.Buffer.Event, self: *Buffer) void {
+ self.busy = false;
+ self.client.outstanding -= 1;
+ }
+ fn destroy(self: *Buffer) void {
+ self.wl_buffer.destroy();
+ c.cairo_surface_destroy(self.image);
+ _ = c.munmap(self.memory, self.len);
+ a.destroy(self);
+ }
+};
+
+pub fn run(init: std.process.Init) !void {
+ _ = c.signal(c.SIGPIPE, c.SIG_IGN);
+ defer @import("../files/settings.zig").deinitTheme();
+ var watch = try @import("../system_monitor/settings_watch.zig").Watch.init(init.io, init.minimal.environ);
+ defer watch.deinit();
+ defer @import("ui").compose.flushTable();
+ const display = try wl.Display.connect(null);
+ defer display.disconnect();
+ var self = Client{ .display = display, .app = .{}, .locale = @import("ui").compose.localeFromEnviron(init.minimal.environ) };
+ defer self.deinit();
+ defer self.compose.deinit();
+ defer self.app.deinit();
+ defer for (self.buffers) |slot| {
+ if (slot) |buffer| buffer.destroy();
+ };
+
+ const registry = try display.getRegistry();
+ defer registry.destroy();
+ registry.setListener(*Client, Client.registryEvent, &self);
+
+ if (display.roundtrip() != .SUCCESS) return error.DisplayFailed;
+ if (self.compositor == null or self.shm == null or self.wm_base == null) {
+ return error.MissingWaylandGlobals;
+ }
+
+ if (self.output_manager) |manager| {
+ for (self.outputs.items) |info| {
+ info.logical = try manager.getXdgOutput(info.proxy);
+ info.logical.?.setListener(*OutputInfo, Client.logicalOutputEvent, info);
+ }
+ if (display.roundtrip() != .SUCCESS) return error.DisplayFailed;
+ }
+
+ self.surface = try self.compositor.?.createSurface();
+ defer self.surface.destroy();
+ self.surface.setListener(*Client, Client.surfaceEvent, &self);
+
+ self.cursor_surface = try self.compositor.?.createSurface();
+ defer self.cursor_surface.destroy();
+ if (self.cursor_shape.manager == null) self.cursor_theme = ClientCursor.loadFallback(self.shm.?);
+ defer if (self.cursor_theme) |theme_ptr| theme_ptr.destroy();
+
+ if (self.viewporter) |manager| self.viewport = try manager.getViewport(self.surface);
+ defer if (self.viewport) |viewport| viewport.destroy();
+ if (self.fractional_manager) |manager| {
+ self.fractional = try manager.getFractionalScale(self.surface);
+ self.fractional.?.setListener(*Client, Client.fractionalEvent, &self);
+ }
+ defer if (self.fractional) |fractional| fractional.destroy();
+
+ self.xdg_surface = try self.wm_base.?.getXdgSurface(self.surface);
+ defer self.xdg_surface.destroy();
+ self.xdg_surface.setListener(*Client, Client.xdgSurfaceEvent, &self);
+
+ self.xdg_toplevel = try self.xdg_surface.getToplevel();
+ defer self.xdg_toplevel.destroy();
+ self.xdg_toplevel.setListener(*Client, Client.xdgToplevelEvent, &self);
+
+ self.xdg_toplevel.setAppId("rediwm-calculator");
+ self.xdg_toplevel.setTitle(self.app.getTitle());
+ // Real min size is set from xdgToplevelEvent once the decoration mode
+ // (and thus titlebar height) is known; this is just a safe pre-configure
+ // default sized for the worst case (self-decorated).
+ self.xdg_toplevel.setMinSize(280, 420 + CSD_TITLEBAR_H);
+
+ // Prefer server-side decorations; the compositor may still tell us via
+ // decorationEvent to self-decorate (e.g. it has no SSD implementation),
+ // and if zxdg_decoration_manager_v1 isn't advertised at all we already
+ // default to self-decorating (see wantsCsd).
+ if (self.decoration_manager) |mgr| {
+ self.decoration = mgr.getToplevelDecoration(self.xdg_toplevel) catch null;
+ if (self.decoration) |dec| {
+ dec.setListener(*Client, Client.decorationEvent, &self);
+ dec.setMode(.server_side);
+ }
+ }
+ defer if (self.decoration) |dec| dec.destroy();
+
+ // Initial commit to start xdg configuration sequence
+ self.surface.commit();
+ if (self.activation) |activation| {
+ if (init.minimal.environ.getPosix("XDG_ACTIVATION_TOKEN")) |token| {
+ const terminated = try a.dupeZ(u8, token);
+ defer a.free(terminated);
+ activation.activate(terminated, self.surface);
+ }
+ }
+
+ while (self.running) {
+ if (watch.poll()) self.app.dirty = true;
+ if (self.app.closed) self.close();
+ if (!self.running) break;
+
+ try self.render();
+
+ while (!display.prepareRead()) {
+ if (display.dispatchPending() != .SUCCESS) return error.DisplayFailed;
+ }
+ if (!self.running or self.app.closed) {
+ display.cancelRead();
+ self.close();
+ break;
+ }
+
+ if (self.configured and self.app.dirty and !self.app.suspended and self.outstanding < 2) {
+ display.cancelRead();
+ continue;
+ }
+ const flushed = display.flush();
+ if (flushed != .SUCCESS and flushed != .AGAIN) {
+ display.cancelRead();
+ return error.DisplayFailed;
+ }
+
+ var fds = [_]c.struct_pollfd{
+ .{ .fd = display.getFd(), .events = @intCast(c.POLLIN | @as(c_int, if (flushed == .AGAIN) c.POLLOUT else 0)), .revents = 0 },
+ .{ .fd = watch.fd, .events = c.POLLIN, .revents = 0 },
+ };
+ const now = key_repeat.nowMs();
+ var timeout: c_int = if (self.key_repeat.timeoutMs(now)) |wait| @intCast(@min(wait, 60_000)) else -1;
+ if (self.app.suspended) {
+ self.key_repeat.stop();
+ timeout = -1;
+ }
+ const result = c.poll(&fds, fds.len, timeout);
+ if (result > 0 and (fds[0].revents & c.POLLIN != 0)) {
+ if (display.readEvents() != .SUCCESS) return error.DisplayFailed;
+ } else {
+ display.cancelRead();
+ }
+ if ((fds[0].revents & (c.POLLERR | c.POLLHUP)) != 0) return error.DisplayFailed;
+ if (display.dispatchPending() != .SUCCESS) return error.DisplayFailed;
+ self.repeatDue();
+ }
+}
diff --git a/src/calculator/model.zig b/src/calculator/model.zig
new file mode 100644
index 0000000..6715b00
--- /dev/null
+++ b/src/calculator/model.zig
@@ -0,0 +1,202 @@
+//! Bounded expression entry and arithmetic, independent of the window host.
+const std = @import("std");
+
+pub const Model = struct {
+ buffer: [256]u8 = undefined,
+ len: usize = 0,
+ history: [256]u8 = undefined,
+ history_len: usize = 0,
+ result: [64]u8 = undefined,
+ result_len: usize = 0,
+ notice: []const u8 = "",
+ evaluated: bool = false,
+
+ pub fn expression(self: *const Model) []const u8 {
+ return self.buffer[0..self.len];
+ }
+
+ pub fn display(self: *const Model) []const u8 {
+ return if (self.evaluated) self.result[0..self.result_len] else self.expression();
+ }
+
+ pub fn clear(self: *Model) void {
+ self.* = .{};
+ }
+
+ pub fn backspace(self: *Model) void {
+ self.notice = "";
+ self.evaluated = false;
+ self.len -|= 1;
+ }
+
+ pub fn input(self: *Model, char: u8) void {
+ if (std.mem.indexOfScalar(u8, "0123456789.+-*/()%", char) == null) return;
+ if (self.evaluated and (std.ascii.isDigit(char) or char == '.' or char == '(')) self.len = 0;
+ self.evaluated = false;
+ self.notice = "";
+ // A decimal starts a number; ignore a second point in that number.
+ if (char == '.') {
+ var i = self.len;
+ while (i > 0 and (std.ascii.isDigit(self.buffer[i - 1]) or self.buffer[i - 1] == '.')) : (i -= 1) {
+ if (self.buffer[i - 1] == '.') return;
+ }
+ if (i == self.len) {
+ if (self.len + 2 > self.buffer.len) return self.full();
+ self.buffer[self.len] = '0';
+ self.len += 1;
+ }
+ }
+ if (self.len == self.buffer.len) return self.full();
+ self.buffer[self.len] = char;
+ self.len += 1;
+ }
+
+ fn full(self: *Model) void {
+ self.notice = @import("i18n").tr("Expression is full");
+ }
+
+ /// Toggle the trailing number (including a scientific-notation result).
+ pub fn negate(self: *Model) void {
+ self.notice = "";
+ self.evaluated = false;
+ var start = self.len;
+ while (start > 0 and (std.ascii.isDigit(self.buffer[start - 1]) or self.buffer[start - 1] == '.')) start -= 1;
+ if (start > 0) {
+ var exponent = start;
+ if (self.buffer[exponent - 1] == '+' or self.buffer[exponent - 1] == '-') exponent -= 1;
+ if (exponent > 0 and (self.buffer[exponent - 1] == 'e' or self.buffer[exponent - 1] == 'E')) {
+ start = exponent - 1;
+ while (start > 0 and (std.ascii.isDigit(self.buffer[start - 1]) or self.buffer[start - 1] == '.')) start -= 1;
+ }
+ }
+ // After an operator, ± starts a negative entry; on a closed group or
+ // percentage it leaves the completed operand alone.
+ if (start == self.len and self.len > 0 and (self.buffer[self.len - 1] == ')' or self.buffer[self.len - 1] == '%')) return;
+ if (start > 0 and self.buffer[start - 1] == '-' and
+ (start == 1 or std.mem.indexOfScalar(u8, "+-*/(", self.buffer[start - 2]) != null))
+ {
+ std.mem.copyForwards(u8, self.buffer[start - 1 ..], self.buffer[start..self.len]);
+ self.len -= 1;
+ } else {
+ if (self.len == self.buffer.len) return self.full();
+ std.mem.copyBackwards(u8, self.buffer[start + 1 .. self.len + 1], self.buffer[start..self.len]);
+ self.buffer[start] = '-';
+ self.len += 1;
+ }
+ }
+
+ pub fn equals(self: *Model) void {
+ if (self.len == 0 or self.evaluated) return;
+ var parser: Parser = .{ .text = self.expression() };
+ const value = parser.evaluate() catch |err| {
+ self.notice = switch (err) {
+ error.DivisionByZero => @import("i18n").tr("Cannot divide by zero"),
+ error.Overflow => @import("i18n").tr("Result is too large"),
+ else => @import("i18n").tr("Check the expression"),
+ };
+ return;
+ };
+ @memcpy(self.history[0..self.len], self.expression());
+ self.history_len = self.len;
+ // General formatting stays short for very large/small values and
+ // retains enough precision to continue calculating from the result.
+ var result: [256]u8 = undefined;
+ const formatted = formatNumber(&result, value) catch {
+ self.notice = @import("i18n").tr("Result is too large");
+ return;
+ };
+ @memcpy(self.buffer[0..formatted.len], formatted);
+ self.len = formatted.len;
+ // Hide floating-point noise (0.1 + 0.2) in the readout, keeping the
+ // full result above for the next operation.
+ var rounded: [64]u8 = undefined;
+ const scientific = std.fmt.float.render(&rounded, value, .{ .mode = .scientific, .precision = 14 }) catch unreachable;
+ const parsed = std.fmt.parseFloat(f64, scientific) catch value;
+ const readout = formatNumber(&self.result, if (std.math.isFinite(parsed)) parsed else value) catch unreachable;
+ self.result_len = readout.len;
+ self.notice = "";
+ self.evaluated = true;
+ }
+};
+
+fn formatNumber(buffer: []u8, number: f64) ![]const u8 {
+ const value: f64 = if (number == 0) 0 else number;
+ const scientific = value != 0 and (@abs(value) >= 1e15 or @abs(value) < 1e-9);
+ return std.fmt.float.render(buffer, value, .{ .mode = if (scientific) .scientific else .decimal });
+}
+
+const EvalError = error{ InvalidExpression, DivisionByZero, Overflow };
+
+const Parser = struct {
+ text: []const u8,
+ pos: usize = 0,
+ depth: usize = 0,
+
+ fn evaluate(self: *Parser) EvalError!f64 {
+ const value = try self.sum();
+ if (self.pos != self.text.len) return error.InvalidExpression;
+ return value;
+ }
+
+ fn take(self: *Parser, char: u8) bool {
+ if (self.pos == self.text.len or self.text[self.pos] != char) return false;
+ self.pos += 1;
+ return true;
+ }
+
+ fn finite(value: f64) EvalError!f64 {
+ if (!std.math.isFinite(value)) return error.Overflow;
+ return value;
+ }
+
+ fn sum(self: *Parser) EvalError!f64 {
+ var value = try self.product();
+ while (self.pos < self.text.len) {
+ if (self.take('+')) {
+ value = try finite(value + try self.product());
+ } else if (self.take('-')) {
+ value = try finite(value - try self.product());
+ } else break;
+ }
+ return value;
+ }
+
+ fn product(self: *Parser) EvalError!f64 {
+ var value = try self.operand();
+ while (self.pos < self.text.len) {
+ if (self.take('*')) {
+ value = try finite(value * try self.operand());
+ } else if (self.take('/')) {
+ const divisor = try self.operand();
+ if (divisor == 0) return error.DivisionByZero;
+ value = try finite(value / divisor);
+ } else break;
+ }
+ return value;
+ }
+
+ fn operand(self: *Parser) EvalError!f64 {
+ if (self.depth >= 32) return error.InvalidExpression;
+ self.depth += 1;
+ defer self.depth -= 1;
+ var negative = false;
+ while (self.pos < self.text.len) {
+ if (self.take('-')) negative = !negative else if (!self.take('+')) break;
+ }
+ var value: f64 = undefined;
+ if (self.take('(')) {
+ value = try self.sum();
+ if (!self.take(')')) return error.InvalidExpression;
+ } else {
+ const start = self.pos;
+ while (self.pos < self.text.len and (std.ascii.isDigit(self.text[self.pos]) or self.text[self.pos] == '.')) self.pos += 1;
+ if (self.take('e') or self.take('E')) {
+ _ = self.take('+') or self.take('-');
+ while (self.pos < self.text.len and std.ascii.isDigit(self.text[self.pos])) self.pos += 1;
+ }
+ value = std.fmt.parseFloat(f64, self.text[start..self.pos]) catch return error.InvalidExpression;
+ }
+ while (self.take('%')) value /= 100;
+ return finite(if (negative) -value else value);
+ }
+};
diff --git a/src/calculator_main.zig b/src/calculator_main.zig
new file mode 100644
index 0000000..c700691
--- /dev/null
+++ b/src/calculator_main.zig
@@ -0,0 +1,19 @@
+const std = @import("std");
+
+pub fn main(init: std.process.Init) !void {
+ defer {
+ if (@import("memory").deinit()) std.log.err("Calculator memory leaks reported above", .{});
+ }
+ defer @import("ui").text.deinit();
+ defer @import("ui").shell_icons.deinit();
+ const args = init.minimal.args.vector;
+ if (args.len > 1) {
+ const arg = std.mem.span(args[1]);
+ if (std.mem.eql(u8, arg, "--help") or std.mem.eql(u8, arg, "-h")) {
+ std.debug.print("Usage: rediwm-calculator\n\nCalculator for RediWM.\nType arithmetic and parentheses, then Enter or =.\nBackspace: undo digit Escape/Delete: clear F9: change sign\nPercent divides by 100. Ctrl+Q: close.\n", .{});
+ return;
+ }
+ return error.UnexpectedArgument;
+ }
+ try @import("calculator/client.zig").run(init);
+}
diff --git a/src/calendar.zig b/src/calendar.zig
index fe50076..be4cae8 100644
--- a/src/calendar.zig
+++ b/src/calendar.zig
@@ -3,7 +3,10 @@
const std = @import("std");
const wlr = @import("wlroots");
const sn = @import("node.zig");
+const i18n = @import("i18n");
const c = @cImport({
+ @cInclude("langinfo.h");
+ @cInclude("locale.h");
@cInclude("time.h");
});
const Output = @import("Output.zig");
@@ -82,6 +85,8 @@ pub const Calendar = struct {
var box: wlr.Box = undefined;
self.output.server.output_layout.getBox(self.output.wlr_output, &box);
const prefs = self.output.server.config.region;
+ const locale = timeLocale(gpa, prefs.formats) orelse return;
+ defer c.freelocale(locale);
const start: usize = @intFromEnum(prefs.first_day_of_week);
const first = monthOffset(self.year, self.month, prefs);
const days = daysInMonth(self.year, self.month);
@@ -142,19 +147,19 @@ pub const Calendar = struct {
if (self.output.server.config.compositor.taskbar_position == .top) buf.flipVertical();
}
const tm = localNow();
- var time: [32]u8 = undefined;
- var date: [96]u8 = undefined;
- _ = c.strftime(&time, time.len, prefs.timeFormat(), &tm);
- _ = c.strftime(&date, date.len, "%A, %B %-d, %Y", &tm);
- label(&r, 24, 17, 320, 44, std.mem.trimStart(u8, std.mem.sliceTo(&time, 0), " "), 36, t.window_fg, true);
- label(&r, 24, 65, 320, 25, std.mem.sliceTo(&date, 0), 16, t.window_dim, false);
+ var time: [64]u8 = undefined;
+ var date: [192]u8 = undefined;
+ label(&r, 24, 17, 320, 44, std.mem.trimStart(u8, formatDate(&time, prefs.timeFormat(), &tm, locale), " "), 36, t.window_fg, true);
+ label(&r, 24, 65, 320, 25, formatDate(&date, i18n.trc("date", "%A, %B %-d, %Y"), &tm, locale), 16, t.window_dim, false);
r.fillRect(20, 102, 328, 1, .{ .color = t.app_divider });
- var title: [40]u8 = undefined;
- label(&r, 24, 116, 238, 32, std.fmt.bufPrint(&title, "{s} {d}", .{ months[@intCast(self.month - 1)], self.year }) catch "", 16, t.text_secondary, true);
+ var title: [128]u8 = undefined;
+ var viewed = tm;
+ viewed.tm_year = self.year - 1900;
+ viewed.tm_mon = self.month - 1;
+ label(&r, 24, 116, 238, 32, formatDate(&title, i18n.trc("date", "%B %Y"), &viewed, locale), 16, t.text_secondary, true);
label(&r, 282, 116, 24, 32, "‹", 26, t.text_secondary, false);
label(&r, 324, 116, 24, 32, "›", 26, t.text_secondary, false);
- const weekdays = [_][]const u8{ "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT" };
- for (0..7) |i| centered(&r, @floatFromInt(i), 158, weekdays[(i + start) % 7], 10, t.window_dim);
+ for (0..7) |i| centered(&r, @floatFromInt(i), 158, weekdayName(locale, (i + start) % 7), 10, t.window_dim);
const previous = daysInMonth(if (self.month == 1) self.year - 1 else self.year, if (self.month == 1) 12 else self.month - 1);
for (0..@intCast(rows * 7)) |i| {
const n = @as(i32, @intCast(i)) - first + 1;
@@ -189,7 +194,26 @@ fn localNow() c.struct_tm {
_ = c.localtime_r(&raw, &tm);
return tm;
}
-const months = [_][]const u8{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
+fn timeLocale(allocator: std.mem.Allocator, name: []const u8) c.locale_t {
+ const terminated = allocator.dupeZ(u8, name) catch return null;
+ defer allocator.free(terminated);
+ // Locale objects are private to this paint. Reloading formats updates an
+ // already-open calendar without changing libc's process-wide locale.
+ return c.newlocale(c.LC_TIME_MASK, terminated, null) orelse c.newlocale(c.LC_TIME_MASK, "C", null);
+}
+
+fn weekdayName(locale: c.locale_t, day: usize) []const u8 {
+ return std.mem.span(c.nl_langinfo_l(@as(c.nl_item, c.ABDAY_1) + @as(c.nl_item, @intCast(day)), locale));
+}
+
+fn formatDate(destination: []u8, pattern: []const u8, tm: *const c.struct_tm, locale: c.locale_t) []const u8 {
+ var terminated: [256]u8 = undefined;
+ if (pattern.len >= terminated.len or std.mem.indexOfScalar(u8, pattern, 0) != null) return "";
+ @memcpy(terminated[0..pattern.len], pattern);
+ terminated[pattern.len] = 0;
+ const length = c.strftime_l(destination.ptr, destination.len, @ptrCast(&terminated), tm, locale);
+ return destination[0..length];
+}
pub fn daysInMonth(year: i32, month: i32) i32 {
return switch (month) {
2 => if (@mod(year, 4) == 0 and (@mod(year, 100) != 0 or @mod(year, 400) == 0)) 29 else 28,
@@ -222,3 +246,20 @@ test "calendar leap centuries and month alignment" {
try std.testing.expectEqual(@mod(@as(i32, 5) - @as(i32, @intCast(start)), 7), offset);
}
}
+
+test "calendar dates use a private regional locale and bounded translated patterns" {
+ const locale = timeLocale(std.testing.allocator, "C") orelse return error.LocaleUnavailable;
+ defer c.freelocale(locale);
+ const tm = std.mem.zeroInit(c.struct_tm, .{ .tm_year = 126, .tm_mon = 9, .tm_mday = 20, .tm_wday = 2 });
+ var buffer: [192]u8 = undefined;
+ try std.testing.expectEqualStrings("Tuesday, October 20, 2026", formatDate(&buffer, "%A, %B %-d, %Y", &tm, locale));
+ try std.testing.expectEqualStrings("20 de October de 2026", formatDate(&buffer, "%-d de %B de %Y", &tm, locale));
+ try std.testing.expectEqualStrings("October 2026", formatDate(&buffer, "%B %Y", &tm, locale));
+ try std.testing.expectEqualStrings("Sun", weekdayName(locale, 0));
+ try std.testing.expectEqualStrings("Sat", weekdayName(locale, 6));
+ try std.testing.expectEqualStrings("", formatDate(buffer[0..2], "%B", &tm, locale));
+ try std.testing.expectEqualStrings("", formatDate(&buffer, "bad\x00format", &tm, locale));
+ const fallback = timeLocale(std.testing.allocator, "rediwm_nonexistent_locale") orelse return error.LocaleUnavailable;
+ defer c.freelocale(fallback);
+ try std.testing.expectEqualStrings("October 2026", formatDate(&buffer, "%B %Y", &tm, fallback));
+}
diff --git a/src/camera.zig b/src/camera.zig
index cca18c3..1913e69 100644
--- a/src/camera.zig
+++ b/src/camera.zig
@@ -163,6 +163,8 @@ pub fn focusOffset(cam: Camera, bounds: Bounds, origin: Vec, size: Vec, usable:
result.offset_x += (a.x - x) / cam.zoom();
result.offset_y += (a.y - y) / cam.zoom();
result.clamp(bounds);
+ // A frame hanging off the canvas edge may be as revealed as it gets.
+ if (result.offset_x == cam.offset_x and result.offset_y == cam.offset_y) return null;
return .{ .x = result.offset_x, .y = result.offset_y };
}
fn clampAxis(value: f64, lo: f64, hi: f64) f64 {
@@ -285,8 +287,15 @@ test "rectangular canvas sizes include even counts and a single screen" {
try std.testing.expectEqual(@as(f64, 0), single.max_y);
}
+/// A frame whose top-left strip this deep is within reach may hang past the
+/// right or bottom of the grid: its title bar and a grab area stay reachable.
+pub const reachable_strip: i32 = 96;
+
/// Grow `bounds.max_*` so a frame at (wx, wy, w, h) stays reachable by panning
-/// the camera across `usable`. No-op when the usable viewport is empty.
+/// the camera across `usable`. Its top and left edges (title and left border)
+/// must be reachable. Past the right or bottom, a frame only grows the bounds
+/// once its `reachable_strip` has left them, so nudging a window off a one-row
+/// canvas does not add a second row. No-op when the usable viewport is empty.
pub fn expandToFrame(
bounds: *Bounds,
wx: i32,
@@ -301,9 +310,9 @@ pub fn expandToFrame(
if (usable_w <= 0 or usable_h <= 0) return;
const ox1 = wx - usable_x;
- const ox2 = wx + w - (usable_x + usable_w);
+ const ox2 = if (@as(f64, @floatFromInt(wx + @min(w, reachable_strip) - (usable_x + usable_w))) <= bounds.max_x) 0 else wx + w - (usable_x + usable_w);
const oy1 = wy - usable_y;
- const oy2 = wy + h - (usable_y + usable_h);
+ const oy2 = if (@as(f64, @floatFromInt(wy + @min(h, reachable_strip) - (usable_y + usable_h))) <= bounds.max_y) 0 else wy + h - (usable_y + usable_h);
// Only edges outside the viewport need more pan range. Taking absolute
// distances also counts the empty space beside an already visible window,
@@ -551,11 +560,29 @@ test "visible windows do not expand a resized canvas" {
}
}
-test "single-screen canvas retains access to every outside frame edge" {
+test "single-screen canvas keeps the top-left frame edges reachable" {
var b = computeGridBounds(-1920, -200, 1920, 1080, 1, 1);
expandToFrame(&b, -2020, -250, 2220, 1200, -1920, -200, 1920, 1080);
- try std.testing.expectEqual(@as(f64, 200), b.max_x);
- try std.testing.expectEqual(@as(f64, 70), b.max_y);
+ try std.testing.expectEqual(@as(f64, 100), b.max_x);
+ try std.testing.expectEqual(@as(f64, 50), b.max_y);
+}
+
+test "a frame nudged past the bottom or right does not add a row or column" {
+ // One row of three: a window hanging 300 below the screen keeps max_y at 0.
+ var b = computeGridBounds(0, 0, 1920, 1080, 3, 1);
+ const before = b;
+ expandToFrame(&b, 200, 600, 800, 780, 0, 0, 1920, 1080);
+ expandToFrame(&b, 3500, 100, 800, 600, 0, 0, 1920, 1080);
+ try std.testing.expectEqual(before, b);
+ // A frame whose grab strip left the grid is still reachable in full.
+ expandToFrame(&b, 200, 1050, 800, 600, 0, 0, 1920, 1080);
+ try std.testing.expectEqual(@as(f64, 570), b.max_y);
+}
+
+test "focusOffset is null when the clamped camera cannot reveal more" {
+ const b = computeGridBounds(0, 0, 1920, 1080, 1, 1);
+ const cam: Camera = .{};
+ try std.testing.expect(focusOffset(cam, b, .{ .x = 200, .y = 900 }, .{ .x = 800, .y = 600 }, .{ .x = 0, .y = 0 }, .{ .x = 1920, .y = 1080 }, true) == null);
}
test "expandToFrame no-op when window already reachable" {
diff --git a/src/child_env.zig b/src/child_env.zig
index 3def10a..6c42024 100644
--- a/src/child_env.zig
+++ b/src/child_env.zig
@@ -86,7 +86,7 @@ pub fn apply(map: *Map, spec: Spec) !void {
}
}
-pub const format_categories = [_][]const u8{ "LC_TIME", "LC_NUMERIC", "LC_MONETARY", "LC_MEASUREMENT", "LC_PAPER", "LC_ADDRESS", "LC_TELEPHONE", "LC_NAME" };
+pub const format_categories = [_][]const u8{ "LC_TIME", "LC_COLLATE", "LC_NUMERIC", "LC_MONETARY", "LC_MEASUREMENT", "LC_PAPER", "LC_ADDRESS", "LC_TELEPHONE", "LC_NAME" };
pub fn applyRegion(map: *Map, prefs: @import("config").loader.RegionConfig) !void {
if (prefs.timezone.len != 0) try map.put("TZ", prefs.timezone);
@@ -184,7 +184,7 @@ test "child env overwrites a host XDG_CURRENT_DESKTOP" {
try std.testing.expectEqualStrings("C.utf8", map.get("LANG").?);
try std.testing.expectEqualStrings("C.utf8", map.get("LC_MESSAGES").?);
try std.testing.expectEqualStrings("C.utf8", map.get("LC_CTYPE").?);
- try std.testing.expectEqualStrings("en_US.utf8", map.get("LC_COLLATE").?);
+ try std.testing.expectEqualStrings("en_NZ.utf8", map.get("LC_COLLATE").?);
for (format_categories) |key| try std.testing.expectEqualStrings("en_NZ.utf8", map.get(key).?);
try std.testing.expectEqualStrings("Pacific/Auckland", map.get("TZ").?);
}
diff --git a/src/chrome_tabs.zig b/src/chrome_tabs.zig
index 3a882f3..543b86d 100644
--- a/src/chrome_tabs.zig
+++ b/src/chrome_tabs.zig
@@ -1,4 +1,5 @@
//! Geometry and retained-pixel painting for the chrome's compact taskbar chips.
+const i18n = @import("i18n");
const std = @import("std");
const theme = @import("ui").theme;
const ui = @import("ui").paint;
@@ -138,9 +139,9 @@ pub fn paint(comptime C: type, pixels: []u32, width: i32, height: i32, logical_w
.font_size = theme.global.taskbar_title_size * density,
.color = theme.global.window_fg,
});
- button.paint(&renderer, close, .{ .variant = .chrome, .size = .sm, .icon = .close, .icon_scale = 0.39, .label = "Close tab" }, .{ .pointer = if (strip.hover == key(.{ .close = t.id })) .hover else .idle });
+ button.paint(&renderer, close, .{ .variant = .chrome, .size = .sm, .icon = .close, .icon_scale = 0.39, .label = i18n.tr("Close tab") }, .{ .pointer = if (strip.hover == key(.{ .close = t.id })) .hover else .idle });
}
- button.paint(&renderer, g.plus, .{ .variant = .ghost, .size = .sm, .icon = .plus, .label = "New tab", .radius = navigationRadius(g.plus) }, .{ .pointer = if (strip.notice == .opening) .disabled else if (strip.hover == key(.plus)) .hover else .idle });
+ button.paint(&renderer, g.plus, .{ .variant = .ghost, .size = .sm, .icon = .plus, .label = i18n.tr("New tab"), .radius = navigationRadius(g.plus) }, .{ .pointer = if (strip.notice == .opening) .disabled else if (strip.hover == key(.plus)) .hover else .idle });
if (g.previous) |r| button.paint(&renderer, r, .{ .variant = .ghost, .size = .sm, .icon = .chevron_left, .radius = navigationRadius(r) }, .{ .pointer = if (strip.hover == key(.previous)) .hover else .idle });
if (g.next) |r| button.paint(&renderer, r, .{ .variant = .ghost, .size = .sm, .icon = .chevron_right, .radius = navigationRadius(r) }, .{ .pointer = if (strip.hover == key(.next)) .hover else .idle });
}
diff --git a/src/config/app_theme.zig b/src/config/app_theme.zig
index 2d017dc..f4520ae 100644
--- a/src/config/app_theme.zig
+++ b/src/config/app_theme.zig
@@ -155,7 +155,7 @@ pub fn gtkColors(a: Allocator, p: Palette, gtk4: bool) ![]u8 {
// GTK3's built-in Adwaita uses literal colors. Named colors alone cannot
// recolor it; override common surfaces without replacing widget geometry.
try out.appendSlice(a,
- \\.background { color: @window_fg_color; background-color: @window_bg_color; }
+ \\window.background, messagedialog.background { color: @window_fg_color; background-color: @window_bg_color; }
\\headerbar, headerbar:backdrop { color: @headerbar_fg_color; background-color: @headerbar_bg_color; background-image: none; }
\\.sidebar, .sidebar:backdrop { color: @sidebar_fg_color; background-color: @sidebar_bg_color; }
\\.view, .view:backdrop, textview text, textview text:backdrop, treeview, treeview:backdrop { color: @view_fg_color; background-color: @view_bg_color; }
@@ -164,7 +164,7 @@ pub fn gtkColors(a: Allocator, p: Palette, gtk4: bool) ![]u8 {
\\button:hover { background-color: @button_hover_color; }
\\button.suggested-action, button.suggested-action:backdrop, selection, :selected { color: @accent_fg_color; background-color: @accent_bg_color; }
\\button.destructive-action { color: @destructive_fg_color; background-color: @destructive_bg_color; }
- \\menu, .menu, popover > contents { color: @popover_fg_color; background-color: @popover_bg_color; }
+ \\menu, popover > contents { color: @popover_fg_color; background-color: @popover_bg_color; }
\\*:disabled { color: @insensitive_fg_color; }
\\
);
@@ -195,6 +195,44 @@ pub fn qtColors(a: Allocator, p: Palette) ![]u8 {
return out.toOwnedSlice(a);
}
+/// KDE Frameworks apps (Dolphin, Kate) read their colors from kdeglobals, not
+/// from the qt6ct palette. Only the color roles RediWM has a source for are
+/// written; neutral/positive and the disabled/inactive effects stay as found.
+pub fn kdeGlobals(a: Allocator, content: []const u8, p: Palette) ![]u8 {
+ const Role = struct { key: []const u8, color: Color };
+ const Group = struct { section: []const u8, roles: []const Role };
+ const groups = [_]Group{
+ .{ .section = "Colors:Window", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.bg }, .{ .key = "BackgroundAlternate", .color = p.item }, .{ .key = "ForegroundNormal", .color = p.fg } } },
+ .{ .section = "Colors:View", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.bg }, .{ .key = "BackgroundAlternate", .color = p.item }, .{ .key = "ForegroundNormal", .color = p.fg } } },
+ .{ .section = "Colors:Button", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.item }, .{ .key = "BackgroundAlternate", .color = p.hover }, .{ .key = "ForegroundNormal", .color = p.fg } } },
+ .{ .section = "Colors:Selection", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.accent }, .{ .key = "BackgroundAlternate", .color = p.accent }, .{ .key = "ForegroundNormal", .color = p.on_accent } } },
+ .{ .section = "Colors:Tooltip", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.toolbar }, .{ .key = "BackgroundAlternate", .color = p.item }, .{ .key = "ForegroundNormal", .color = p.fg } } },
+ .{ .section = "Colors:Complementary", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.sidebar }, .{ .key = "BackgroundAlternate", .color = p.item }, .{ .key = "ForegroundNormal", .color = p.sidebar_fg } } },
+ .{ .section = "Colors:Header", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.toolbar }, .{ .key = "BackgroundAlternate", .color = p.item }, .{ .key = "ForegroundNormal", .color = p.fg } } },
+ .{ .section = "Colors:Header][Inactive", .roles = &.{ .{ .key = "BackgroundNormal", .color = p.toolbar }, .{ .key = "BackgroundAlternate", .color = p.item }, .{ .key = "ForegroundNormal", .color = p.fg } } },
+ };
+ // Every group shares the accent, link and dim roles.
+ const shared = [_]Role{
+ .{ .key = "DecorationFocus", .color = p.accent },
+ .{ .key = "DecorationHover", .color = p.accent },
+ .{ .key = "ForegroundActive", .color = p.accent },
+ .{ .key = "ForegroundLink", .color = p.accent },
+ .{ .key = "ForegroundVisited", .color = p.dim },
+ .{ .key = "ForegroundInactive", .color = p.dim },
+ .{ .key = "ForegroundNegative", .color = p.danger },
+ };
+ var current = try a.dupe(u8, content);
+ errdefer a.free(current);
+ for (groups) |group| for ([_][]const Role{ group.roles, &shared }) |roles| for (roles) |role| {
+ var buf: [11]u8 = undefined;
+ const value = std.fmt.bufPrint(&buf, "{d},{d},{d}", .{ role.color[0], role.color[1], role.color[2] }) catch unreachable;
+ const next = try patchIni(a, current, group.section, role.key, value);
+ a.free(current);
+ current = next;
+ };
+ return current;
+}
+
pub fn iniValue(content: []const u8, section: []const u8, key: []const u8) ?[]const u8 {
var lines = std.mem.splitScalar(u8, content, '\n');
var inside = false;
@@ -256,8 +294,10 @@ pub fn patchCss(a: Allocator, content: []const u8) ![]u8 {
if (std.mem.indexOf(u8, rest, css_end) != null) return error.InvalidManagedCss;
try out.appendSlice(a, rest);
if (out.items.len > 0 and out.items[out.items.len - 1] != '\n') try out.append(a, '\n');
- // Imports precede user rules, so their own CSS keeps its precedence.
- const result = try std.fmt.allocPrint(a, css_begin ++ "\n@import url(\"rediwm-colors.css\");\n" ++ css_end ++ "\n{s}", .{out.items});
+ // The import goes last: GTK keeps the final @define-color and the later of
+ // two equal rules, and generators such as matugen/DMS import their own
+ // palette into gtk.css. Applying must win over those.
+ const result = try std.fmt.allocPrint(a, "{s}" ++ css_begin ++ "\n@import url(\"rediwm-colors.css\");\n" ++ css_end ++ "\n", .{out.items});
out.deinit(a);
return result;
}
@@ -382,6 +422,8 @@ pub fn apply(a: Allocator, io: Io, home: []const u8, toolkit: Toolkit, p: Palett
try tx.add(scheme, colors, false);
try tx.add(config, content, true);
}
+ const kdeglobals = try std.fs.path.join(alloc, &.{ home, "kdeglobals" });
+ try tx.add(kdeglobals, try kdeGlobals(alloc, try readOptional(alloc, io, kdeglobals) orelse "", p), true);
const state = try std.fs.path.join(alloc, &.{ home, "rediwm/app-colors.conf" });
try tx.add(state, try patchIni(alloc, try readOptional(alloc, io, state) orelse "", "Applications", "qt", "true"), true);
},
@@ -439,7 +481,8 @@ test "app colors edits are idempotent and scoped to their INI section" {
const again = try patchCss(a, css);
defer a.free(again);
try std.testing.expectEqualStrings(css, again);
- try std.testing.expect(std.mem.endsWith(u8, again, "button { color: red; }\n"));
+ try std.testing.expect(std.mem.startsWith(u8, again, "/* user */\nbutton { color: red; }\n"));
+ try std.testing.expect(std.mem.endsWith(u8, again, css_end ++ "\n"));
try std.testing.expectError(error.InvalidManagedCss, patchCss(a, css_begin));
}
@@ -482,8 +525,8 @@ test "app colors replaces a file symlink, and rejects linked directories and sta
try std.testing.expectError(error.NotLink, tmp.dir.readLink(io, "gtk-4.0/gtk.css", &buf));
const merged = try tmp.dir.readFileAlloc(io, "gtk-4.0/gtk.css", a, .limited(4096));
defer a.free(merged);
- try std.testing.expect(std.mem.startsWith(u8, merged, css_begin));
- try std.testing.expect(std.mem.endsWith(u8, merged, "/* owned elsewhere */\n"));
+ try std.testing.expect(std.mem.startsWith(u8, merged, "/* owned elsewhere */\n"));
+ try std.testing.expect(std.mem.endsWith(u8, merged, css_end ++ "\n"));
const target = try tmp.dir.readFileAlloc(io, "user.css", a, .limited(64));
defer a.free(target);
try std.testing.expectEqualStrings("/* owned elsewhere */\n", target);
@@ -502,3 +545,21 @@ test "app colors replaces a file symlink, and rejects linked directories and sta
try std.testing.expectError(error.ManagedSymlink, apply(a, io, home, .gtk, p, .{ .qt5 = false, .qt6 = false }));
try std.testing.expectError(error.FileNotFound, tmp.dir.access(io, "external4/rediwm-colors.css", .{}));
}
+
+test "kdeglobals export replaces stale roles in place and is idempotent" {
+ const a = std.testing.allocator;
+ var t = theme.Theme{};
+ t.app_bg = .{ 0.2, 0.1, 0, 1 };
+ const p = Palette.fromTheme(t);
+ const old = "[Colors:Window]\nBackgroundNormal=54,29,25\nForegroundNeutral=1,2,3\n[General]\nColorScheme=Old\n";
+ const first = try kdeGlobals(a, old, p);
+ defer a.free(first);
+ const second = try kdeGlobals(a, first, p);
+ defer a.free(second);
+ try std.testing.expectEqualStrings(first, second);
+ try std.testing.expectEqualStrings("51,26,0", iniValue(first, "Colors:Window", "BackgroundNormal").?);
+ try std.testing.expectEqualStrings("1,2,3", iniValue(first, "Colors:Window", "ForegroundNeutral").?);
+ try std.testing.expectEqualStrings("Old", iniValue(first, "General", "ColorScheme").?);
+ try std.testing.expect(iniValue(first, "Colors:Header][Inactive", "BackgroundNormal") != null);
+ try std.testing.expect(std.mem.indexOf(u8, first, "[Colors:Header][Inactive]\n") != null);
+}
diff --git a/src/config/keymap.zig b/src/config/keymap.zig
index 59204dc..10b3592 100644
--- a/src/config/keymap.zig
+++ b/src/config/keymap.zig
@@ -46,10 +46,50 @@ pub fn bindingSyms(config: anytype, state: *xkb.State, key: xkb.Keycode, mods: a
const fallback = state.getKeymap().keyGetSymsByLevel(key, 0, 0);
for (fallback) |sym| if (config.lookupKeybind(mods, sym) != null) return fallback;
}
+ // A Cyrillic-only keymap has no Latin group to fall back to. Resolve
+ // modifier-letter shortcuts by the XKB physical key name in that case;
+ // never add a text layout or change the active state's keysyms.
+ if (mods.logo or mods.ctrl or mods.alt) {
+ if (latinLetterSyms(state.getKeymap(), key, mods.shift)) |latin| {
+ if (config.lookupKeybind(mods, latin[0]) != null) return latin;
+ if (mods.shift) if (latinLetterSyms(state.getKeymap(), key, false)) |base| {
+ if (config.lookupKeybind(mods, base[0]) != null) return base;
+ };
+ }
+ }
if (layout == 0) return active;
return shifted_fallback;
}
+const latin_lower = letterSyms("qwertyuiopasdfghjklzxcvbnm");
+const latin_upper = letterSyms("QWERTYUIOPASDFGHJKLZXCVBNM");
+
+fn letterSyms(comptime letters: []const u8) [letters.len]xkb.Keysym {
+ var syms: [letters.len]xkb.Keysym = undefined;
+ for (letters, 0..) |letter, i| syms[i] = @enumFromInt(letter);
+ return syms;
+}
+
+fn latinLetterSyms(map: *xkb.Keymap, key: xkb.Keycode, shifted: bool) ?[]const xkb.Keysym {
+ // Preserve the user's physical Latin layout (AZERTY, Dvorak, etc.) when
+ // one exists. This fallback is only for a key without any Latin group.
+ for (0..map.numLayoutsForKey(key)) |layout| {
+ for (map.keyGetSymsByLevel(key, @intCast(layout), 0)) |sym| {
+ const value = @intFromEnum(sym);
+ if ((value >= 'a' and value <= 'z') or (value >= 'A' and value <= 'Z')) return null;
+ }
+ }
+ const physical = std.mem.span(map.keyGetName(key) orelse return null);
+ if (physical.len != 4 or physical[2] != '0' or physical[3] < '1' or physical[3] > '9') {
+ // The tenth key in the top letter row is P.
+ if (!std.mem.eql(u8, physical, "AD10")) return null;
+ return if (shifted) latin_upper[9..10] else latin_lower[9..10];
+ }
+ const column: usize = physical[3] - '1';
+ const index = if (std.mem.eql(u8, physical[0..2], "AD")) column else if (std.mem.eql(u8, physical[0..2], "AC")) column + 10 else if (std.mem.eql(u8, physical[0..2], "AB") and column < 7) column + 19 else return null;
+ return if (shifted) latin_upper[index .. index + 1] else latin_lower[index .. index + 1];
+}
+
pub fn namesEqual(a: anytype, b: @TypeOf(a)) bool {
inline for (.{ "xkb_layout", "xkb_variant", "xkb_options", "xkb_model" }) |field| {
if (!std.mem.eql(u8, @field(a, field), @field(b, field))) return false;
@@ -102,3 +142,41 @@ test "invalid layout rejects config and empty layout compiles" {
const map = try compile(std.testing.allocator, loader.InputConfig{});
defer map.unref();
}
+
+test "Cyrillic-only keymaps keep Latin modifier shortcuts and Cyrillic text" {
+ const loader = @import("loader.zig");
+ const ModifierMask = @import("keybinds.zig").ModifierMask;
+ inline for (.{ "ru", "ua" }) |layout| {
+ var cfg = try loader.parse(
+ std.testing.allocator,
+ "[input]\nxkb_layout = \"" ++ layout ++ "\"\n" ++
+ "[keybinds]\n\"super+t\" = \"noop\"\n\"super+shift+T\" = \"noop\"\n" ++
+ "\"ctrl+t\" = \"noop\"\n\"alt+t\" = \"noop\"\n\"t\" = \"noop\"\n",
+ "cyrillic-only",
+ );
+ defer cfg.deinit();
+ const map = cfg.keyboard_keymap.?;
+ try std.testing.expectEqual(@as(u32, 1), map.numLayouts());
+ const state = xkb.State.new(map) orelse return error.InvalidKeymap;
+ defer state.unref();
+ const key = map.keyByName("AD05");
+ for ([_]ModifierMask{ .{ .logo = true }, .{ .ctrl = true }, .{ .alt = true } }) |mods| {
+ try std.testing.expectEqual(@as(u32, xkb.Keysym.t), @intFromEnum(bindingSyms(&cfg, state, key, mods)[0]));
+ }
+ try std.testing.expectEqual(@as(u32, xkb.Keysym.Cyrillic_ie), @intFromEnum(state.keyGetSyms(key)[0]));
+ try std.testing.expectEqual(@as(u32, xkb.Keysym.Cyrillic_ie), @intFromEnum(bindingSyms(&cfg, state, key, ModifierMask{})[0]));
+ _ = state.updateMask(1, 0, 0, 0, 0, 0);
+ try std.testing.expectEqual(@as(u32, xkb.Keysym.T), @intFromEnum(bindingSyms(&cfg, state, key, ModifierMask{ .logo = true, .shift = true })[0]));
+ }
+ var explicit = try loader.parse(std.testing.allocator,
+ \\[input]
+ \\xkb_layout = "ru"
+ \\[keybinds]
+ \\"super+Cyrillic_ie" = "noop"
+ \\"super+t" = "noop"
+ , "explicit-cyrillic");
+ defer explicit.deinit();
+ const state = xkb.State.new(explicit.keyboard_keymap.?) orelse return error.InvalidKeymap;
+ defer state.unref();
+ try std.testing.expectEqual(@as(u32, xkb.Keysym.Cyrillic_ie), @intFromEnum(bindingSyms(&explicit, state, 28, ModifierMask{ .logo = true })[0]));
+}
diff --git a/src/config_runtime/apply.zig b/src/config_runtime/apply.zig
index 14726ad..7f2a868 100644
--- a/src/config_runtime/apply.zig
+++ b/src/config_runtime/apply.zig
@@ -338,6 +338,10 @@ fn logKeybindDiff(old: Config, new: Config) void {
/// Called by both Settings and config reload; no new clock timers.
pub fn applyRegion(server: *Server) void {
if (server.greeter_mode) return;
+ const locale_tag = @import("i18n").resolve(server.config.region.language, server.environ);
+ const language_changed = @import("i18n").setLanguage(locale_tag);
+ server.start_menu_catalog.setLocale(locale_tag) catch |err| log.warn("could not update application language: {}", .{err});
+ if (server.polkit) |agent| agent.setLocale(locale_tag) catch |err| log.warn("could not update authentication language: {}", .{err});
@import("region.zig").applyTimezone(@import("../main.zig").gpa, server.config.region.timezone, server.environ.getPosix("TZ")) catch |err| {
log.warn("could not apply personal timezone: {}", .{err});
};
@@ -348,6 +352,22 @@ pub fn applyRegion(server: *Server) void {
while (outputs.next()) |output| {
if (output.taskbar) |bar| bar.refreshClockSettings();
if (output.calendar) |calendar| calendar.refresh();
+ if (language_changed) {
+ if (output.start_menu) |menu| menu.refreshCatalog();
+ if (output.power_menu) |menu| menu.refreshCapabilities();
+ if (output.battery_popup) |popup| popup.refresh();
+ if (output.wifi_popup) |popup| popup.refresh();
+ output.dock.invalidate();
+ }
+ }
+ if (language_changed) {
+ var tops = server.world.toplevels.iterator(.forward);
+ while (tops.next()) |top| if (top.backend == .shell) {
+ top.syncChrome(true, @import("../Toplevel.zig").nowMs()) catch {};
+ top.syncForeign();
+ if (server.ipc) |ipc| @import("../ipc/events.zig").onWindowChanged(ipc, top);
+ };
+ server.refreshTaskbars();
}
if (server.locker) |lock| lock.themeChanged();
if (server.input.open_control_center) |cc| cc.refresh();
diff --git a/src/control_center/AGENTS.md b/src/control_center/AGENTS.md
index a627af4..07d431f 100644
--- a/src/control_center/AGENTS.md
+++ b/src/control_center/AGENTS.md
@@ -58,7 +58,9 @@ Settings is an ordinary window with a compositor-drawn body (`Backend.shell`).
* Global search uses `search_index.zig` destinations (widget names or `@` plus
visible label text), without building hidden sections. Add an index entry
- with new settings. A selected category can be covered by search results:
- background callbacks must use `showingPage`, rather than `page`, to decide
- whether to refresh or fetch for it. The search field owns its text across
- rebuilds; result widgets/strings belong to a separate arena.
+ with new settings. Typing navigates to the highest-ranked match; the sidebar
+ contains only matching pages, and selecting one reveals its best match while
+ keeping the query. Clearing search keeps the current page and scroll position.
+ Use `showingPage`, rather than `page`, in background callbacks: an empty
+ search covers the selected page. The search field owns its text across rebuilds;
+ navigation is deferred until widget dispatch has finished.
diff --git a/src/control_center/folder_picker.zig b/src/control_center/folder_picker.zig
index be54c94..1f2e80b 100644
--- a/src/control_center/folder_picker.zig
+++ b/src/control_center/folder_picker.zig
@@ -1,6 +1,7 @@
//! Settings' file and folder pickers: runs Files in chooser mode (the
//! same process and JSON contract the FileChooser portal uses) and hands the
//! picked path to a callback. The event loop only reads the child's pipe.
+const i18n = @import("i18n");
const std = @import("std");
const wl = @import("wayland").server.wl;
const Server = @import("../Server.zig");
@@ -94,7 +95,7 @@ pub fn cancel() void {
/// Opens the chooser at `start_dir`; `on_done` gets the chosen folder's path
/// (valid only during the call), or null. One chooser at a time.
pub fn start(server: *Server, title: []const u8, start_dir: []const u8, owner: ?*anyopaque, on_done: *const fn (?*anyopaque, ?[]const u8) void) !void {
- return startWithOptions(server, .{ .mode = .folder, .title = title, .accept_label = "Use folder", .current_folder = start_dir }, owner, on_done);
+ return startWithOptions(server, .{ .mode = .folder, .title = title, .accept_label = i18n.tr("Use folder"), .current_folder = start_dir }, owner, on_done);
}
pub fn startWithOptions(server: *Server, opts: chooser.Options, owner: ?*anyopaque, on_done: *const fn (?*anyopaque, ?[]const u8) void) !void {
diff --git a/src/control_center/panel.zig b/src/control_center/panel.zig
index 1d528a1..de84db5 100644
--- a/src/control_center/panel.zig
+++ b/src/control_center/panel.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
// Compositor-drawn settings window, opened by the start-menu cog or IPC.
// It is an ordinary window (`Toplevel` backend `.shell`): the toplevel owns
// chrome, stacking, focus, minimize/maximize/resize and the taskbar chip;
@@ -50,16 +51,38 @@ const default_height = 640;
const theme = @import("ui").theme;
pub const Page = @import("search_index.zig").Page;
-pub const page_labels = [_][]const u8{ "General", "Input", "Displays", "Audio", "Network", "Appearance", "Keyboard Shortcuts", "Desktop", "Bluetooth", "Region & Language", "Users", "Printers", "Services" };
+pub const page_labels = [_]i18n.Message{ i18n.msg("General"), i18n.msg("Input"), i18n.msg("Displays"), i18n.msg("Audio"), i18n.msg("Network"), i18n.msg("Appearance"), i18n.msg("Keyboard Shortcuts"), i18n.msg("Desktop"), i18n.msg("Bluetooth"), i18n.msg("Region & Language"), i18n.msg("Users"), i18n.msg("Printers"), i18n.msg("Services") };
+/// Refreshed when a page rebuilds; storage outlives retained widget trees.
+/// Each comptime descriptor list owns its own stable slice.
+pub fn translatedLabels(comptime messages: []const i18n.Message) []const []const u8 {
+ const Storage = struct {
+ var labels: [messages.len][]const u8 = undefined;
+ };
+ inline for (messages, 0..) |message, i| Storage.labels[i] = message.get();
+ return &Storage.labels;
+}
+
+/// Keep the default width in English, and reserve room for translated nav names.
+pub fn sidebarWidth(cc: *const ControlCenter) f32 {
+ if (cc.panel_box.width < 660) return 70;
+ var width: f32 = 238;
+ for (page_labels) |message| width = @max(width, ui.measure.textNatural(message.get(), .sans, 600, 14).w + 94);
+ return @min(width, 340);
+}
+
+pub fn pageLabel(id: usize) []const u8 {
+ return page_labels[id].get();
+}
+
const page_names = [_][]const u8{ "general", "input", "displays", "audio", "network", "appearance", "shortcuts", "desktop", "bluetooth", "region", "users", "printers", "services" };
-const page_descriptions = [_][]const u8{
- "Everyday controls, all in one place.", "Make your mouse and keyboard feel right.",
- "Arrangement, resolution, refresh rate and scaling.", "Volume, microphones and output devices.",
- "Wired and wireless connections.", "Make your desktop your own.",
- "Choose the keys for your everyday actions.", "Configure your desktop canvas and panning area.",
- "Connect and manage your Bluetooth devices.", "Your language, regional formats and calendar preferences.",
- "Review login accounts and automatic-login settings.", "Printer status, jobs and connection diagnostics.",
- "Manage and analyze systemd services.",
+const page_descriptions = [_]i18n.Message{
+ i18n.msg("Everyday controls, all in one place."), i18n.msg("Make your mouse and keyboard feel right."),
+ i18n.msg("Arrangement, resolution, refresh rate and scaling."), i18n.msg("Volume, microphones and output devices."),
+ i18n.msg("Wired and wireless connections."), i18n.msg("Make your desktop your own."),
+ i18n.msg("Choose the keys for your everyday actions."), i18n.msg("Configure your desktop canvas and panning area."),
+ i18n.msg("Connect and manage your Bluetooth devices."), i18n.msg("Your language, regional formats and calendar preferences."),
+ i18n.msg("Review login accounts and automatic-login settings."), i18n.msg("Printer status, jobs and connection diagnostics."),
+ i18n.msg("Manage and analyze systemd services."),
};
const page_icons = [_]layout.IconId{ .settings, .mouse, .display, .music, .wifi, .settings, .keyboard, .squares, .bluetooth, .globe, .users, .print, .settings };
const max_devices = 16;
@@ -85,6 +108,30 @@ fn label(value: []const u8, size: f32, dim: bool) Widget {
return .{ .kind = .{ .text = .{ .content = value, .font_size = size, .weight = if (dim) 400 else 600, .color = if (dim) t.dim else t.fg } } };
}
+/// Build description lines once, with a UTF-8 fallback for an unbroken word.
+/// Children belong to the host's rebuild arena, just like its other widgets.
+pub fn paragraph(a: std.mem.Allocator, value: []const u8, width: f32, size: f32, dim: bool) !Widget {
+ var lines: std.ArrayList(Widget) = .empty;
+ var start: usize = 0;
+ while (start < value.len) {
+ var end = start;
+ var last_space: ?usize = null;
+ while (end < value.len) {
+ const next = @min(value.len, end + (std.unicode.utf8ByteSequenceLength(value[end]) catch 1));
+ if (ui.measure.textNatural(value[start..next], .sans, if (dim) 400 else 600, size).w > @max(64, width) and end > start) break;
+ if (value[end] == ' ') last_space = end;
+ end = next;
+ }
+ if (end < value.len) if (last_space) |space| {
+ if (space > start) end = space;
+ };
+ try lines.append(a, label(value[start..end], size, dim));
+ start = end;
+ while (start < value.len and value[start] == ' ') : (start += 1) {}
+ }
+ return .{ .kind = .container, .direction = .column, .gap = 3, .width = .{ .percent = 1 }, .children = try lines.toOwnedSlice(a) };
+}
+
/// A card or group title: larger and bolder than the semibold row labels.
pub fn sectionTitle(value: []const u8) Widget {
const t = palette();
@@ -94,7 +141,7 @@ pub fn sectionTitle(value: []const u8) Widget {
/// Stands in for a section whose widget tree could not be allocated; it
/// allocates nothing itself.
pub fn outOfMemory() Widget {
- return label("Not enough memory to show this page.", 13, true);
+ return label(i18n.tr("Not enough memory to show this page."), 13, true);
}
fn card(children: []Widget) Widget {
@@ -440,8 +487,8 @@ pub const ControlCenter = struct {
return;
}
cc.search.capture();
- if (cc.search.active != cc.search.built_active) {
- if (cc.search.active) {
+ if (cc.search.empty() != cc.search.built_empty) {
+ if (cc.search.empty()) {
if (cc.body_children[1].kind == .scroll_container) cc.search.saved_scroll = cc.body_children[1].kind.scroll_container;
cc.shortcuts.cancel();
if (cc.page == .services) if (cc.systemd_client) |client| client.hide();
@@ -460,10 +507,8 @@ pub const ControlCenter = struct {
ui.input.reset();
const has_services = if (cc.systemd_client) |client| client.available() else false;
if (cc.page == .services and !has_services) cc.page = .general;
- const selected_row: f32 = @floatFromInt(@intFromEnum(cc.page));
- if (cc.nav_selection.to != selected_row) cc.nav_selection.cancel(selected_row);
const t = palette();
- if (!cc.search.active) {
+ if (!cc.search.empty()) {
if (cc.page == .displays) {
const selected = cc.selectedDisplayOutput() orelse cc.wlr_output;
display_section.build(&cc.display, cc, selected);
@@ -487,18 +532,33 @@ pub const ControlCenter = struct {
}
}
const narrow = cc.panel_box.width < 660;
- const nav_count = page_names.len - @as(usize, @intFromBool(!has_services));
+ var nav_count: usize = 0;
+ for (page_names, 0..) |_, i| {
+ const page: Page = @enumFromInt(i);
+ if (page == .services and !has_services) continue;
+ if (cc.search.active and cc.search.firstInPage(page) == null) continue;
+ nav_count += 1;
+ }
const nav_gap: f32 = if (cc.panel_box.height < 550) 2 else 5;
- const nav_height = @min(52, @max(24, (@as(f32, @floatFromInt(cc.panel_box.height)) - 92 - (if (narrow and cc.search.expanded) @as(f32, 46) else 0) - nav_gap * @as(f32, @floatFromInt(nav_count - 1))) / @as(f32, @floatFromInt(nav_count))));
+ const nav_height = @min(52, @max(24, (@as(f32, @floatFromInt(cc.panel_box.height)) - 92 - (if (narrow and cc.search.expanded) @as(f32, 46) else 0) - nav_gap * @as(f32, @floatFromInt(nav_count -| 1))) / @as(f32, @floatFromInt(@max(1, nav_count)))));
const nav_fg = theme.global.sidebarForeground();
- for (cc.nav_rows[0..nav_count], 0..) |*row, i| {
- const selected = i == @intFromEnum(cc.page);
- cc.nav_children[i] = .{
+ var nav_index: usize = 0;
+ for (page_names, 0..) |_, i| {
+ const page: Page = @enumFromInt(i);
+ if (page == .services and !has_services) continue;
+ if (cc.search.active and cc.search.firstInPage(page) == null) continue;
+ const row = &cc.nav_rows[nav_index];
+ const selected = page == cc.page;
+ if (selected) {
+ const position: f32 = @floatFromInt(nav_index);
+ if (cc.nav_selection.to != position) cc.nav_selection.cancel(position);
+ }
+ cc.nav_children[nav_index] = .{
.{ .kind = .{ .icon = .{ .id = page_icons[i], .color = if (selected) t.accent else nav_fg } }, .width = .{ .fixed = 22 }, .height = .{ .fixed = 22 } },
- label(page_labels[i], 14, false),
+ label(page_labels[i].get(), 14, false),
};
- cc.nav_children[i][1].kind.text.color = nav_fg;
- cc.nav_children[i][1].width = .{ .flex = 1 };
+ cc.nav_children[nav_index][1].kind.text.color = nav_fg;
+ cc.nav_children[nav_index][1].width = .{ .flex = 1 };
row.* = .{
.name = page_names[i],
.kind = .{ .row = .{ .owner = cc, .id = i, .selected = selected, .underlay = true, .on_click = pageClicked } },
@@ -507,18 +567,19 @@ pub const ControlCenter = struct {
.padding = layout.Edges.xy(16, 0),
.gap = 14,
.@"align" = .center,
- .children = cc.nav_children[i][0..if (narrow) @as(usize, 1) else 2],
+ .children = cc.nav_children[nav_index][0..if (narrow) @as(usize, 1) else 2],
};
+ nav_index += 1;
}
- if (!cc.search.active) {
+ if (!cc.search.empty()) {
cc.content_count = 0;
- var heading = label(page_labels[@intFromEnum(cc.page)], 24, false);
+ var heading = label(page_labels[@intFromEnum(cc.page)].get(), 24, false);
heading.kind.text.weight = 600;
if (cc.page != .bluetooth) {
cc.append(heading);
- cc.append(label(page_descriptions[@intFromEnum(cc.page)], 13, true));
+ cc.append(label(page_descriptions[@intFromEnum(cc.page)].get(), 13, true));
}
- if (cc.search.unavailable) cc.append(label("This setting is unavailable on this device or in the current mode.", t.settings_description_size, true));
+ if (cc.search.unavailable) cc.append(label(i18n.tr("This setting is unavailable on this device or in the current mode."), t.settings_description_size, true));
switch (cc.page) {
.desktop => {
desktop_section.build(&cc.desktop, cc);
@@ -584,7 +645,7 @@ pub const ControlCenter = struct {
cc.append(audio_card);
cc.buildDevices();
if (cc.device_count > 0) {
- cc.device_title = .{ sectionTitle("Audio output"), .{ .kind = .container, .direction = .column, .gap = 4, .children = cc.device_rows[0..cc.device_count] } };
+ cc.device_title = .{ sectionTitle(i18n.tr("Audio output")), .{ .kind = .container, .direction = .column, .gap = 4, .children = cc.device_rows[0..cc.device_count] } };
var dev_card = card(&cc.device_title);
dev_card.name = "sound";
cc.append(dev_card);
@@ -601,21 +662,21 @@ pub const ControlCenter = struct {
}
} else {
cc.content_count = 0;
- cc.append(cc.search.build(cc));
+ cc.append(cc.search.noResults());
}
cc.search.buildToolbar(cc);
cc.sidebar_children = .{
if (narrow)
- .{ .name = "settings_search_open", .kind = .{ .button = .{ .icon = .search, .label = "Search settings", .owner = cc, .on_click = settings_search.focusClicked } }, .height = .{ .fixed = 36 }, .width = .{ .percent = 1 } }
+ .{ .name = "settings_search_open", .kind = .{ .button = .{ .icon = .search, .label = i18n.tr("Search settings"), .owner = cc, .on_click = settings_search.focusClicked } }, .height = .{ .fixed = 36 }, .width = .{ .percent = 1 } }
else
.{ .kind = .container, .height = .{ .fixed = 36 }, .width = .{ .percent = 1 }, .children = (&cc.search.toolbar)[0..1] },
.{ .name = "nav", .kind = if (cc.panel_box.height < (if (narrow and cc.search.expanded) @as(i32, 486) else 440)) .{ .scroll_container = .{} } else .container, .direction = .column, .width = .{ .percent = 1 }, .height = .{ .flex = 1 }, .gap = nav_gap, .underlay = .{ .owner = cc, .paint = paintNavHighlights }, .children = cc.nav_rows[0..nav_count] },
};
cc.body_children = .{
- .{ .name = "settings_sidebar", .kind = .{ .rect = .{ .color = t.app_sidebar, .replace = t.app_sidebar[3] < 1, .radius = t.settings_sidebar_radius, .border_width = 1, .border_color = t.app_item_border } }, .direction = .column, .width = .{ .fixed = if (narrow) 70 else 238 }, .height = .{ .percent = 1 }, .padding = layout.Edges.all(8), .gap = 8, .children = &cc.sidebar_children },
+ .{ .name = "settings_sidebar", .kind = .{ .rect = .{ .color = t.app_sidebar, .replace = t.app_sidebar[3] < 1, .radius = t.settings_sidebar_radius, .border_width = 1, .border_color = t.app_item_border } }, .direction = .column, .width = .{ .fixed = sidebarWidth(cc) }, .height = .{ .percent = 1 }, .padding = layout.Edges.all(8), .gap = 8, .children = &cc.sidebar_children },
.{ .kind = .{ .scroll_container = .{} }, .direction = .column, .@"align" = .stretch, .width = .{ .flex = 1 }, .height = .{ .percent = 1 }, .padding = layout.Edges.all(12), .gap = 14, .children = cc.content_children[0..cc.content_count] },
};
- if (cc.page == .services and !cc.search.active) {
+ if (cc.page == .services and !cc.search.empty()) {
cc.body_children[1].kind = .container;
} else {
// Keep the scrollbar's full hover/drag gutter outside the cards.
@@ -634,10 +695,10 @@ pub const ControlCenter = struct {
.children = cc.root_children[if (narrow and cc.search.expanded) @as(usize, 0) else 1..2],
};
cc.root.linkParents();
- if (!cc.search.active and cc.page == .services and cc.services.search_focus) {
+ if (!cc.search.empty() and cc.page == .services and cc.services.search_focus) {
if (cc.services.search) |field| ui.input.current.focus(&cc.root, field);
}
- if (!cc.search.active and cc.page == .users) {
+ if (!cc.search.empty() and cc.page == .users) {
if (users_section.initialFormFocus(&cc.users)) |field| ui.input.current.focus(&cc.root, field);
}
if (cc.search.focused or cc.search.request_focus) {
@@ -645,7 +706,7 @@ pub const ControlCenter = struct {
cc.search.request_focus = false;
}
cc.search.reset_scroll = false;
- cc.search.built_active = cc.search.active;
+ cc.search.built_empty = cc.search.empty();
cc.built_page = cc.page;
cc.refresh_pending = false;
}
@@ -661,11 +722,11 @@ pub const ControlCenter = struct {
fn buildGeneral(cc: *ControlCenter) void {
portal_section.build(&cc.portals, cc);
cc.append(cc.portals.root);
- cc.general_volume = .{ sectionTitle("Master volume"), if (cc.server.audio != null) cc.sound.body_children[1] else label("Audio unavailable", 13, true) };
+ cc.general_volume = .{ sectionTitle(i18n.tr("Master volume")), if (cc.server.audio != null) cc.sound.body_children[1] else label(i18n.tr("Audio unavailable"), 13, true) };
var vol_card = card(&cc.general_volume);
vol_card.name = "sound";
cc.append(vol_card);
- cc.brightness_children = .{ sectionTitle("Brightness"), label(if (cc.server.brightness.failed) "No supported backlight" else "Checking backlight…", 13, true) };
+ cc.brightness_children = .{ sectionTitle(i18n.tr("Brightness")), label(if (cc.server.brightness.failed) i18n.tr("No supported backlight") else i18n.tr("Checking backlight…"), 13, true) };
if (cc.server.brightness.level) |level| {
cc.brightness_row = .{
.{ .kind = .{ .icon = .{ .id = .brightness, .color = palette().fg } }, .width = .{ .fixed = 24 }, .height = .{ .fixed = 24 } },
@@ -677,21 +738,21 @@ pub const ControlCenter = struct {
}
cc.append(card(&cc.brightness_children));
cc.general_output_text = .{
- sectionTitle("Audio output"),
- label(if (cc.sound.output_desc_len > 0) cc.sound.output_desc_buf[0..cc.sound.output_desc_len] else "No audio device available", 13, true),
+ sectionTitle(i18n.tr("Audio output")),
+ label(if (cc.sound.output_desc_len > 0) cc.sound.output_desc_buf[0..cc.sound.output_desc_len] else i18n.tr("No audio device available"), 13, true),
};
cc.general_output = .{
.{ .kind = .container, .direction = .column, .@"align" = .stretch, .width = .{ .flex = 1 }, .gap = 5, .children = &cc.general_output_text },
- .{ .kind = .{ .button = .{ .label = "Audio settings", .owner = cc, .id = @intFromEnum(Page.audio), .on_click = pageClicked } }, .height = .{ .fixed = 32 } },
+ .{ .kind = .{ .button = .{ .label = i18n.tr("Audio settings"), .owner = cc, .id = @intFromEnum(Page.audio), .on_click = pageClicked } }, .height = .{ .fixed = 32 } },
};
var output_card = card(&cc.general_output);
output_card.direction = .row;
output_card.@"align" = .center;
cc.append(output_card);
- cc.general_display_text = .{ sectionTitle("Display"), label(std.mem.span(cc.wlr_output.name), 13, true) };
+ cc.general_display_text = .{ sectionTitle(i18n.tr("Display")), label(std.mem.span(cc.wlr_output.name), 13, true) };
cc.general_display = .{
.{ .kind = .container, .direction = .column, .@"align" = .stretch, .width = .{ .flex = 1 }, .gap = 5, .children = &cc.general_display_text },
- .{ .kind = .{ .button = .{ .label = "Display settings", .owner = cc, .id = @intFromEnum(Page.displays), .on_click = pageClicked } }, .height = .{ .fixed = 32 } },
+ .{ .kind = .{ .button = .{ .label = i18n.tr("Display settings"), .owner = cc, .id = @intFromEnum(Page.displays), .on_click = pageClicked } }, .height = .{ .fixed = 32 } },
};
var display_card = card(&cc.general_display);
display_card.direction = .row;
@@ -700,8 +761,8 @@ pub const ControlCenter = struct {
default_apps_section.build(&cc.default_apps, cc);
cc.append(cc.default_apps.root);
cc.general_files_text = .{
- label("Single-click file and folder icons", 14, false),
- label("In Files, click an icon to open it in list or icons view. Click the name to select.", 12, true),
+ label(i18n.tr("Single-click file and folder icons"), 14, false),
+ label(i18n.tr("In Files, click an icon to open it in list or icons view. Click the name to select."), 12, true),
};
cc.general_files = .{
.{ .kind = .container, .direction = .column, .gap = 5, .width = .{ .flex = 1 }, .children = &cc.general_files_text },
@@ -739,11 +800,14 @@ pub const ControlCenter = struct {
}
pub fn selectPage(cc: *ControlCenter, page: Page) void {
- if (cc.search.active) {
- settings_search.clear(cc);
- cc.search.built_active = false;
- cc.search.restore_scroll = false;
- }
+ if (cc.search.query().len > 0) settings_search.clear(cc);
+ cc.search.built_empty = false;
+ cc.search.restore_scroll = false;
+ cc.selectSearchPage(page);
+ }
+
+ /// Search and filtered sidebar navigation keep the query and its focus.
+ pub fn selectSearchPage(cc: *ControlCenter, page: Page) void {
cc.shortcuts.cancel();
// The service list is only kept live while its page is on screen.
if (cc.page == .services and page != .services) if (cc.systemd_client) |client| client.hide();
@@ -753,7 +817,7 @@ pub const ControlCenter = struct {
if (cc.server.bluetooth) |m| m.closed();
cc.bluetooth.clearPin();
}
- if (cc.page != page) cc.nav_selection.retargetTo(anim.nowMs(), @floatFromInt(@intFromEnum(page)), anim.curveFor(.start_glide));
+ if (cc.page != page) if (cc.navIndex(page)) |row| cc.nav_selection.retargetTo(anim.nowMs(), @floatFromInt(row), anim.curveFor(.start_glide));
cc.page = page;
if (page == .bluetooth and !cc.server.greeter_mode) {
if (cc.panel_box.width == default_width) _ = cc.toplevel.requestSize(1120, cc.panel_box.height);
@@ -791,10 +855,9 @@ pub const ControlCenter = struct {
return cc.wlr_output;
}
- /// Route select keys before panel-level Escape. Tab cycles display fields.
- /// Global search replaces the page body without selecting another category.
+ /// A search only covers the current page when there are no matches.
pub fn showingPage(cc: *const ControlCenter, page: Page) bool {
- return !cc.is_welcome and !cc.search.active and cc.page == page;
+ return !cc.is_welcome and !cc.search.empty() and cc.page == page;
}
pub fn focusSearch(cc: *ControlCenter) void {
@@ -1019,27 +1082,33 @@ pub const ControlCenter = struct {
/// rebuilds the page the moment the button is released, under a pointer that
/// is still on it, and a switch's change rebuilds before its knob has moved.
fn rebuildTree(cc: *ControlCenter) void {
- const hovered_nav = cc.nav_hover.target;
+ const hovered_nav = if (cc.nav_hover.target) |cell| blk: {
+ const row: usize = @intCast(cell.row);
+ break :blk if (row < cc.sidebar_children[1].children.len) cc.nav_rows[row].kind.row.id else null;
+ } else null;
const same_page = cc.built_page == cc.page;
- const bluetooth_scroll: ?layout.ScrollState = if (same_page and cc.page == .bluetooth and !cc.search.active and !cc.search.built_active) cc.body_children[1].kind.scroll_container else null;
+ const bluetooth_scroll: ?layout.ScrollState = if (same_page and cc.page == .bluetooth and !cc.search.empty() and !cc.search.built_empty) cc.body_children[1].kind.scroll_container else null;
var saved: ui.widgets.slider.Saved = .{};
var knobs: ui.widgets.toggle.Saved = .{};
+ var menu: ui.widgets.select.Saved = .{};
if (same_page) {
ui.widgets.slider.capture(&cc.root, &saved);
ui.widgets.toggle.capture(&cc.root, &knobs);
+ if (!cc.search.request_focus) ui.widgets.select.capture(&cc.root, &menu, ui.input.current.focused);
}
cc.buildTree();
- if (hovered_nav) |cell| {
- const index: usize = @intCast(cell.row);
- if (index < cc.sidebar_children[1].children.len) {
- cc.nav_rows[index].kind.row.state = .hover;
- ui.input.adoptHover(&cc.root, &cc.nav_rows[index]);
+ if (hovered_nav) |id| {
+ if (cc.navIndex(@enumFromInt(id))) |row| {
+ cc.nav_hover.setTarget(anim.nowMs(), .{ .col = 0, .row = @intCast(row) });
+ cc.nav_rows[row].kind.row.state = .hover;
+ ui.input.adoptHover(&cc.root, &cc.nav_rows[row]);
} else cc.nav_hover.setTarget(anim.nowMs(), null);
}
if (bluetooth_scroll) |state| cc.body_children[1].kind.scroll_container = state;
if (same_page) {
if (ui.widgets.slider.restore(&cc.root, &saved)) |hovered| ui.input.adoptHover(&cc.root, hovered);
ui.widgets.toggle.restore(&cc.root, &knobs);
+ if (ui.widgets.select.restore(&cc.root, &menu)) |widget| ui.input.current.focus(&cc.root, widget);
}
}
@@ -1061,7 +1130,7 @@ pub const ControlCenter = struct {
}
ui.measure.measure(&cc.root, width, height);
ui.arrange.arrange(&cc.root, 0, 0, width, height);
- if (!cc.search.active and ui.input.current.focused != &cc.search.field) {
+ if (!cc.search.empty() and ui.input.current.focused != &cc.search.field) {
if (cc.page == .appearance) appearance_section.restoreItemFocus(&cc.appearance);
if (cc.page == .network) network_section.restoreFocus(&cc.network, cc);
if (cc.page == .bluetooth) bluetooth_section.restoreFocus(&cc.bluetooth, cc);
@@ -1103,8 +1172,8 @@ pub const ControlCenter = struct {
const narrow = cc.panel_box.width < 660;
const nav_count = cc.sidebar_children[1].children.len;
const gap: f32 = if (cc.panel_box.height < 550) 2 else 5;
- const height = @min(52, @max(24, (@as(f32, @floatFromInt(cc.panel_box.height)) - 92 - (if (narrow and cc.search.expanded) @as(f32, 46) else 0) - gap * @as(f32, @floatFromInt(nav_count - 1))) / @as(f32, @floatFromInt(nav_count))));
- cc.body_children[0].width = .{ .fixed = if (narrow) 70 else 238 };
+ const height = @min(52, @max(24, (@as(f32, @floatFromInt(cc.panel_box.height)) - 92 - (if (narrow and cc.search.expanded) @as(f32, 46) else 0) - gap * @as(f32, @floatFromInt(nav_count -| 1))) / @as(f32, @floatFromInt(@max(1, nav_count)))));
+ cc.body_children[0].width = .{ .fixed = sidebarWidth(cc) };
cc.sidebar_children[1].gap = gap;
for (cc.nav_rows[0..nav_count], 0..) |*row, i| {
row.height = .{ .fixed = height };
@@ -1121,13 +1190,25 @@ pub const ControlCenter = struct {
cc.root.linkParents();
}
+ fn navIndex(cc: *const ControlCenter, page: Page) ?usize {
+ if (cc.is_welcome) return null;
+ for (cc.sidebar_children[1].children, 0..) |row, i| {
+ if (row.kind.row.id == @intFromEnum(page)) return i;
+ }
+ return null;
+ }
+
/// Runs once per frame of `wlr_output` while anything is pending.
/// Returns whether another frame should be scheduled.
pub fn tick(cc: *ControlCenter, now_ms: i64) bool {
- const rebuild = cc.refresh_pending and !cc.pointer_down and ui.input.openSelect(&cc.root) == null;
+ cc.search.syncAvailability(cc);
+ if (cc.search.pending_result != null) settings_search.apply(cc);
+ // A live update must not wait for an open dropdown: that leaves the
+ // page permanently unsettled. rebuildTree preserves compatible menus.
+ const rebuild = cc.refresh_pending and !cc.pointer_down;
if ((cc.layout_pending or rebuild) and cc.panel_box.width > 0 and cc.panel_box.height > 0) {
cc.layout_pending = false;
- const body = if (!cc.search.reset_scroll and cc.search.active == cc.search.built_active and cc.body_children[1].kind == .scroll_container) cc.body_children[1].kind.scroll_container else null;
+ const body = if (!cc.search.reset_scroll and cc.search.empty() == cc.search.built_empty and cc.body_children[1].kind == .scroll_container) cc.body_children[1].kind.scroll_container else null;
if (rebuild or cc.resizeNeedsTree()) cc.rebuildTree();
cc.resizeLayout();
// Keep a wheel glide going across the rebuild.
@@ -1162,7 +1243,7 @@ pub const ControlCenter = struct {
fn syncNavHover(cc: *ControlCenter) void {
const cell: ?ui.hover_glide.Cell = if (ui.input.current.hovered) |widget| switch (widget.kind) {
.row => |data| if (data.owner == @as(?*anyopaque, cc) and data.on_click == pageClicked)
- .{ .col = 0, .row = @intCast(data.id) }
+ .{ .col = 0, .row = @intCast(cc.navIndex(@enumFromInt(data.id)) orelse return) }
else
null,
else => null,
@@ -1366,9 +1447,10 @@ pub fn bodyColor() [4]f32 {
fn pageClicked(owner: ?*anyopaque, id: usize) void {
const cc: *ControlCenter = @ptrCast(@alignCast(owner orelse return));
- if (cc.search.query().len > 0) settings_search.clear(cc);
- cc.search.built_active = false;
- cc.search.restore_scroll = false;
+ if (cc.search.active) {
+ cc.search.pending_result = cc.search.firstInPage(@enumFromInt(id));
+ return;
+ }
cc.search.unavailable = false;
cc.search.destination = null;
cc.search.focused = false;
@@ -1394,7 +1476,7 @@ fn filesSingleClickChanged(owner: ?*anyopaque, _: usize, on: bool) void {
const cc: *ControlCenter = @ptrCast(@alignCast(owner orelse return));
@import("config").setting_save.saveCompositor(gpa, cc.server.io, cc.server.config.path, "files_single_click_open", on) catch |err| {
std.log.warn("could not save Files single-click setting: {}", .{err});
- cc.default_apps.message = "Could not save the Files setting.";
+ cc.default_apps.message = i18n.tr("Could not save the Files setting.");
cc.refresh();
return;
};
diff --git a/src/control_center/search.zig b/src/control_center/search.zig
index 88ff6bd..920d7b8 100644
--- a/src/control_center/search.zig
+++ b/src/control_center/search.zig
@@ -1,5 +1,6 @@
-//! Global Settings search UI. The field outlives tree rebuilds and results own
-//! their strings/widgets in a separate arena, never in a section's arena.
+//! Global Settings search navigates directly to matching controls. The field
+//! owns its text across page rebuilds; only the visible page is built.
+const i18n = @import("i18n");
const std = @import("std");
const ui = @import("ui");
const W = ui.layout.Widget;
@@ -11,18 +12,17 @@ const gpa = @import("../main.zig").gpa;
pub const State = struct {
field: W = .{ .kind = .container },
toolbar: W = .{ .kind = .container },
- toolbar_children: [2]W = undefined,
+ clear_button: W = .{ .kind = .container },
initialized: bool = false,
focused: bool = false,
request_focus: bool = false,
expanded: bool = false,
active: bool = false,
- built_active: bool = false,
- selected: usize = 0,
+ built_empty: bool = false,
matches: [index.entries.len]usize = undefined,
count: usize = 0,
- rows: []W = &.{},
- arena: std.heap.ArenaAllocator = .init(gpa),
+ services_available: bool = false,
+ empty_children: [2]W = undefined,
saved_scroll: ui.layout.ScrollState = .{},
restore_scroll: bool = false,
pending_result: ?usize = null,
@@ -33,7 +33,6 @@ pub const State = struct {
pub fn deinit(s: *State) void {
if (s.initialized) gpa.free(s.field.kind.text_input.value);
- s.arena.deinit();
}
pub fn capture(s: *State) void {
@@ -44,39 +43,48 @@ pub const State = struct {
if (!s.initialized) {
const value = gpa.dupe(u8, "") catch return;
s.field = .{ .name = "settings_search", .kind = .{ .text_input = .{
- .field = .{ .leading_icon = .search, .leading_icon_size = 14 },
- .placeholder = "Search settings…",
+ .field = .{ .leading_icon = .search, .leading_icon_size = 20 },
+ .placeholder = i18n.tr("Search settings…"),
.value = value,
.owner = cc,
.on_change = changed,
} }, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 } };
s.initialized = true;
}
- s.toolbar_children = .{
- .{ .kind = .container, .width = .{ .flex = 1 }, .children = (&s.field)[0..1] },
- .{ .name = "settings_search_clear", .kind = .{ .button = .{ .label = "×", .owner = cc, .on_click = clearClicked } }, .width = .{ .fixed = 30 }, .height = .{ .fixed = 36 } },
- };
- s.toolbar = .{ .kind = .container, .direction = .row, .gap = 4, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 }, .children = s.toolbar_children[0..if (s.query().len > 0) @as(usize, 2) else 1] };
+ s.field.kind.text_input.placeholder = i18n.tr("Search settings…");
+ const has_query = s.query().len > 0;
+ s.clear_button = .{ .name = "settings_search_clear", .kind = .{ .button = .{ .label = i18n.tr("Clear search"), .icon = .close, .variant = .ghost, .owner = cc, .on_click = clearClicked } }, .width = .{ .fixed = 30 }, .height = .{ .fixed = 30 } };
+ s.field.kind.text_input.field.trailing = if (has_query) .accessory else .none;
+ s.field.direction = .row;
+ s.field.justify = .end;
+ s.field.@"align" = .center;
+ s.field.padding.right = 3;
+ s.field.children = if (has_query) (&s.clear_button)[0..1] else &.{};
+ s.toolbar = .{ .kind = .container, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 }, .children = (&s.field)[0..1] };
}
pub fn query(s: *const State) []const u8 {
return if (s.initialized) s.field.kind.text_input.value else "";
}
- fn failed(s: *State) W {
- s.count = 0;
- s.rows = &.{};
- return panel.outOfMemory();
+ pub fn empty(s: *const State) bool {
+ return s.active and s.count == 0;
+ }
+
+ pub fn firstInPage(s: *const State, page: index.Page) ?usize {
+ for (s.matches[0..s.count]) |id| {
+ if (index.entries[id].page == page) return id;
+ }
+ return null;
}
- pub fn build(s: *State, cc: *CC) W {
- _ = s.arena.reset(.retain_capacity);
- const a = s.arena.allocator();
+ fn collect(s: *State, cc: *CC) void {
+ s.services_available = if (cc.systemd_client) |client| client.available() else false;
s.count = 0;
var scores: [index.entries.len]u32 = undefined;
for (index.entries, 0..) |entry, id| {
- if (entry.page == .services and (cc.systemd_client == null or !cc.systemd_client.?.available())) continue;
- const rank = index.score(entry, s.query(), panel.page_labels[@intFromEnum(entry.page)]) orelse continue;
+ if (entry.page == .services and !s.services_available) continue;
+ const rank = index.scoreLocalized(id, s.query(), panel.pageLabel(@intFromEnum(entry.page))) orelse continue;
var at = s.count;
while (at > 0 and scores[at - 1] < rank) : (at -= 1) {
scores[at] = scores[at - 1];
@@ -86,25 +94,26 @@ pub const State = struct {
s.matches[at] = id;
s.count += 1;
}
- s.selected = @min(s.selected, s.count -| 1);
- s.rows = a.alloc(W, s.count + 1) catch return s.failed();
- const t = panel.palette();
- const query_copy = a.dupe(u8, s.query()) catch return s.failed();
- s.rows[0] = panel.sectionTitle(if (s.count == 0) "No settings found" else "Search results");
- if (s.count == 0) {
- const children = a.dupe(W, &.{ s.rows[0], .{ .kind = .{ .text = .{ .content = "Try a setting name, such as volume, wallpaper or scroll.", .font_size = t.settings_description_size, .color = t.dim } } } }) catch return s.failed();
- return .{ .name = "settings_search_results", .kind = .container, .direction = .column, .gap = 12, .children = children };
- }
- for (s.matches[0..s.count], 0..) |id, i| {
- const entry = index.entries[id];
- const title = W{ .kind = .{ .text = .{ .content = entry.title, .font_size = t.app_text_size, .weight = 600, .color = t.fg, .highlight_query = query_copy } } };
- const path = panel.page_labels[@intFromEnum(entry.page)];
- const subtitle = W{ .kind = .{ .text = .{ .content = if (entry.target.len == 0) "Settings page" else path, .font_size = t.settings_description_size, .color = t.dim, .highlight_query = query_copy } } };
- const labels = a.dupe(W, &.{ title, subtitle }) catch return s.failed();
- const children = a.dupe(W, &.{.{ .kind = .container, .direction = .column, .width = .{ .flex = 1 }, .gap = 4, .children = labels }}) catch return s.failed();
- s.rows[i + 1] = .{ .name = entry.target, .kind = .{ .row = .{ .owner = cc, .id = id, .on_click = resultClicked, .selected = i == s.selected } }, .height = .{ .fixed = 64 }, .width = .{ .percent = 1 }, .padding = ui.layout.Edges.all(10), .children = children };
+ }
+
+ pub fn syncAvailability(s: *State, cc: *CC) void {
+ const available = if (cc.systemd_client) |client| client.available() else false;
+ if (!s.active or available == s.services_available) return;
+ s.collect(cc);
+ if (s.firstInPage(cc.page) == null) {
+ s.pending_result = if (s.count > 0) s.matches[0] else null;
+ s.destination = null;
+ s.unavailable = false;
}
- return .{ .name = "settings_search_results", .kind = .container, .direction = .column, .gap = 6, .width = .{ .percent = 1 }, .children = s.rows };
+ cc.refresh();
+ }
+
+ pub fn noResults(s: *State) W {
+ s.empty_children = .{
+ panel.sectionTitle(i18n.tr("No settings found")),
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Try a setting name, such as volume, wallpaper or scroll."), .font_size = panel.palette().settings_description_size, .color = panel.palette().dim } } },
+ };
+ return .{ .name = "settings_search_empty", .kind = .container, .direction = .column, .gap = 12, .children = &s.empty_children };
}
};
@@ -134,8 +143,10 @@ fn changed(owner: ?*anyopaque, _: usize, value: []const u8) void {
const cc: *CC = @ptrCast(@alignCast(owner orelse return));
const s = &cc.search;
s.active = std.mem.trim(u8, value, " \t\r\n").len > 0;
- s.selected = 0;
- s.reset_scroll = true;
+ s.collect(cc);
+ s.pending_result = if (s.active and s.count > 0) s.matches[0] else null;
+ s.request_focus = true;
+ s.reset_scroll = s.active;
s.destination = null;
s.unavailable = false;
cc.refresh();
@@ -155,37 +166,31 @@ pub fn clear(cc: *CC) void {
s.field.kind.text_input.cursor_pos = 0;
s.field.kind.text_input.selection_anchor = null;
s.active = false;
+ s.pending_result = null;
s.destination = null;
s.unavailable = false;
s.request_focus = true;
cc.refresh();
}
-fn resultClicked(owner: ?*anyopaque, id: usize) void {
- const cc: *CC = @ptrCast(@alignCast(owner orelse return));
- cc.search.pending_result = id;
-}
-
pub fn apply(cc: *CC) void {
const s = &cc.search;
const id = s.pending_result orelse return;
s.pending_result = null;
if (id >= index.entries.len) return;
- s.active = false;
- s.built_active = false;
+ // Navigation runs after widget dispatch, so no callback rebuilds its tree.
+ s.built_empty = false;
s.restore_scroll = false;
- s.focused = false;
- s.request_focus = false;
- ui.input.current.focused = null;
s.destination = id;
s.unavailable = false;
s.reveal = true;
- cc.selectPage(index.entries[id].page);
+ cc.selectSearchPage(index.entries[id].page);
}
pub fn key(cc: *CC, k: ui.input.Key, shift: bool) bool {
const s = &cc.search;
if (cc.is_welcome or !s.initialized) return false;
+ if (s.pending_result != null) apply(cc);
if (s.active and cc.refresh_pending and (k == .up or k == .down or k == .enter or k == .tab)) cc.relayout();
const field_focused = ui.input.current.focused == &s.field;
if (k == .escape and (s.active or field_focused or s.destination != null)) {
@@ -197,39 +202,39 @@ pub fn key(cc: *CC, k: ui.input.Key, shift: bool) bool {
}
return true;
}
- if (s.active and (k == .down or k == .up)) {
- if (s.count > 0) {
- ui.input.current.focus(&cc.root, &s.field);
- s.selected = if (k == .down) @min(s.selected + 1, s.count - 1) else s.selected -| 1;
- for (s.rows[1..], 0..) |*row, i| {
- row.kind.row.selected = i == s.selected;
- row.markPaintDirty();
- }
- ui.widgets.scroll_container.ensureVisibleChild(&cc.body_children[1], &s.rows[s.selected + 1]);
+ if (s.active and field_focused and (k == .down or k == .up)) {
+ const rows = cc.sidebar_children[1].children;
+ for (rows, 0..) |row, i| {
+ if (row.kind.row.id != @intFromEnum(cc.page)) continue;
+ const next = if (k == .down) @min(i + 1, rows.len - 1) else i -| 1;
+ s.pending_result = s.firstInPage(@enumFromInt(rows[next].kind.row.id));
+ apply(cc);
+ break;
}
cc.requestWidgetRepaint();
return true;
}
if (s.active and k == .enter) {
- // Tab can leave the field: activate the focused clear button, category
- // or result rather than opening the arrow-key selection unexpectedly.
- if (!field_focused and ui.input.current.focused != null) {
- if (ui.input.current.focused) |widget| switch (widget.kind) {
+ // Enter in the field keeps the revealed control unchanged. Tab can
+ // reach the clear button and filtered navigation without losing search.
+ if (field_focused) return true;
+ if (ui.input.current.focused) |widget| {
+ switch (widget.kind) {
.button => |data| {
- if (data.state != .disabled) if (data.on_click) |callback| callback(data.owner, data.id);
+ if (widget != &s.clear_button) return false;
+ if (data.on_click) |callback| callback(data.owner, data.id);
},
.row => |data| {
- if (data.state != .disabled) if (data.on_click) |callback| callback(data.owner, data.id);
+ const nav = &cc.sidebar_children[1];
+ if (widget.parent != nav) return false;
+ if (data.on_click) |callback| callback(data.owner, data.id);
},
- else => {},
- };
- } else if (s.count > 0) s.pending_result = s.matches[s.selected];
- if (cc.pending_page) |page| {
- cc.pending_page = null;
- cc.selectPage(page);
- } else apply(cc);
- cc.requestWidgetRepaint();
- return true;
+ else => return false,
+ }
+ apply(cc);
+ cc.requestWidgetRepaint();
+ return true;
+ }
}
if (s.active and k == .tab) {
_ = ui.input.current.focusNext(&cc.root, shift);
@@ -244,14 +249,14 @@ pub fn key(cc: *CC, k: ui.input.Key, shift: bool) bool {
return false;
}
-fn find(root: *W, target: []const u8) ?*W {
+fn find(root: *W, target: []const u8, heading: []const u8) ?*W {
if (target.len == 0) return null;
if (target[0] == '@') {
- if (root.kind == .text and std.mem.eql(u8, root.kind.text.content, target[1..])) return root;
+ if (root.kind == .text and std.mem.eql(u8, root.kind.text.content, heading)) return root;
} else if (root.name) |name| {
if (std.mem.eql(u8, name, target)) return root;
}
- for (root.children) |*child| if (find(child, target)) |found| return found;
+ for (root.children) |*child| if (find(child, target, heading)) |found| return found;
return null;
}
@@ -259,10 +264,10 @@ fn find(root: *W, target: []const u8) ?*W {
/// the containing row using the shared renderer. No control receives a click.
pub fn reveal(cc: *CC) void {
const s = &cc.search;
- if (s.active) return;
+ removeMarker(&cc.body_children[1]);
const id = s.destination orelse return;
if (index.entries[id].target.len == 0) return;
- const target = find(&cc.body_children[1], index.entries[id].target) orelse {
+ const target = find(&cc.body_children[1], index.entries[id].target, index.targetLabel(id)) orelse {
// A hardware-dependent control may be absent; its page still explains
// the unavailable device. Never redirect to another setting.
s.reveal = false;
diff --git a/src/control_center/search_index.zig b/src/control_center/search_index.zig
index d03243f..464a8ee 100644
--- a/src/control_center/search_index.zig
+++ b/src/control_center/search_index.zig
@@ -1,5 +1,7 @@
//! Static setting destinations. Searching never builds pages or queries hardware.
const std = @import("std");
+const fold = @import("ui").fold;
+const i18n = @import("i18n");
pub const Page = enum { general, input, displays, audio, network, appearance, shortcuts, desktop, bluetooth, region, users, printers, services };
pub const Entry = struct {
page: Page,
@@ -8,160 +10,197 @@ pub const Entry = struct {
target: []const u8 = "",
keywords: []const u8 = "",
};
-pub const entries = [_]Entry{
- .{ .page = .general, .title = "General", .target = "", .keywords = "" },
- .{ .page = .input, .title = "Input", .target = "", .keywords = "" },
- .{ .page = .displays, .title = "Displays", .target = "", .keywords = "" },
- .{ .page = .audio, .title = "Audio", .target = "", .keywords = "" },
- .{ .page = .network, .title = "Network", .target = "", .keywords = "" },
- .{ .page = .appearance, .title = "Appearance", .target = "", .keywords = "" },
- .{ .page = .shortcuts, .title = "Keyboard Shortcuts", .target = "", .keywords = "" },
- .{ .page = .desktop, .title = "Desktop", .target = "", .keywords = "" },
- .{ .page = .bluetooth, .title = "Bluetooth", .target = "", .keywords = "" },
- .{ .page = .region, .title = "Region & Language", .target = "", .keywords = "" },
- .{ .page = .users, .title = "Users", .target = "", .keywords = "" },
- .{ .page = .printers, .title = "Printers", .target = "", .keywords = "" },
- .{ .page = .services, .title = "Services", .target = "", .keywords = "" },
- .{ .page = .general, .title = "Brightness", .target = "@Brightness", .keywords = "backlight screen light" },
- .{ .page = .general, .title = "Open files with a single click", .target = "files_single_click_open", .keywords = "double click folders" },
- .{ .page = .input, .title = "Mouse speed", .target = "mouse_speed", .keywords = "pointer acceleration sensitivity" },
- .{ .page = .input, .title = "Touchpad speed", .target = "touchpad_speed", .keywords = "trackpad acceleration sensitivity" },
- .{ .page = .input, .title = "Disable touchpad while typing", .target = "touchpad_disable_while_typing", .keywords = "keyboard trackpad" },
- .{ .page = .input, .title = "Natural scroll", .target = "natural_scroll", .keywords = "scrolling direction reverse invert mouse touchpad" },
- .{ .page = .input, .title = "Tap to click", .target = "tap_to_click", .keywords = "touchpad trackpad" },
- .{ .page = .input, .title = "Canvas pan speed", .target = "pan_speed", .keywords = "desktop panning" },
- .{ .page = .input, .title = "Keyboard repeat delay", .target = "repeat_delay", .keywords = "typing keys" },
- .{ .page = .input, .title = "Keyboard repeat rate", .target = "repeat_rate", .keywords = "typing keys speed" },
- .{ .page = .displays, .title = "Monitor", .target = "monitor", .keywords = "screen output" },
- .{ .page = .displays, .title = "Display arrangement", .target = "@Arrangement", .keywords = "screen position monitors main display" },
- .{ .page = .displays, .title = "Resolution", .target = "resolution", .keywords = "screen size pixels" },
- .{ .page = .displays, .title = "Refresh rate", .target = "refresh_rate", .keywords = "screen frequency hz" },
- .{ .page = .displays, .title = "Display scale", .target = "scale", .keywords = "screen scaling dpi zoom" },
- .{ .page = .displays, .title = "Xwayland scale", .target = "xwayland_scale", .keywords = "x11 legacy apps scaling" },
- .{ .page = .displays, .title = "Rotation", .target = "transform", .keywords = "orientation portrait landscape screen" },
- .{ .page = .displays, .title = "Night light", .target = "night_light", .keywords = "blue light warm screen" },
- .{ .page = .displays, .title = "Night light temperature", .target = "night_light_temperature", .keywords = "warmth colour color" },
- .{ .page = .displays, .title = "Lid close action", .target = "lid_close", .keywords = "laptop suspend sleep" },
- .{ .page = .audio, .title = "Output volume", .target = "output_volume", .keywords = "sound speakers loudness mute" },
- .{ .page = .audio, .title = "Microphone volume", .target = "input_volume", .keywords = "sound input recording mute" },
- .{ .page = .audio, .title = "Output balance", .target = "output_balance", .keywords = "left right speakers" },
- .{ .page = .audio, .title = "Bass boost", .target = "bass_boost", .keywords = "sound equalizer low frequencies" },
- .{ .page = .audio, .title = "Treble", .target = "treble", .keywords = "sound equalizer high frequencies" },
- .{ .page = .audio, .title = "Audio output device", .target = "@Audio output", .keywords = "speakers headphones sound default" },
- .{ .page = .network, .title = "Wi-Fi", .target = "wifi_card", .keywords = "wireless internet wlan hotspot hidden network" },
- .{ .page = .network, .title = "Ethernet", .target = "ethernet_card", .keywords = "wired internet adapter" },
- .{ .page = .appearance, .title = "Wallpaper", .target = "@Wallpaper", .keywords = "background desktop image folder" },
- .{ .page = .appearance, .title = "Theme", .target = "@Theme", .keywords = "colors colours dark light preset" },
- .{ .page = .appearance, .title = "Icon theme", .target = "icon_theme", .keywords = "icons pack" },
- .{ .page = .appearance, .title = "Animations", .target = "animations", .keywords = "effects motion" },
- .{ .page = .appearance, .title = "Animation speed", .target = "anim_speed", .keywords = "motion duration" },
- .{ .page = .appearance, .title = "Reduced motion", .target = "reduced_motion", .keywords = "accessibility animations" },
- .{ .page = .appearance, .title = "Focus zoom", .target = "focus_zoom", .keywords = "window focus" },
- .{ .page = .appearance, .title = "Drag feedback", .target = "drag_feedback", .keywords = "window moving" },
- .{ .page = .appearance, .title = "Drag scale", .target = "drag_scale", .keywords = "window moving size" },
- .{ .page = .appearance, .title = "Font", .target = "font", .keywords = "typeface text" },
- .{ .page = .appearance, .title = "Cursor theme", .target = "cursor_theme", .keywords = "pointer mouse" },
- .{ .page = .appearance, .title = "Font size", .target = "font_size", .keywords = "text size accessibility" },
- .{ .page = .appearance, .title = "Corner radius", .target = "radius", .keywords = "rounded windows" },
- .{ .page = .appearance, .title = "Window shadow", .target = "shadow", .keywords = "shadows" },
- .{ .page = .appearance, .title = "Border glow", .target = "border_glow", .keywords = "window borders" },
- .{ .page = .appearance, .title = "Window opacity", .target = "chrome_opacity", .keywords = "transparency chrome" },
- .{ .page = .appearance, .title = "Window darkness", .target = "chrome_darkness", .keywords = "chrome tint" },
- .{ .page = .appearance, .title = "Titlebar height", .target = "chrome_height", .keywords = "window chrome" },
- .{ .page = .appearance, .title = "Window control spacing", .target = "chrome_control_gap", .keywords = "buttons close maximize minimize" },
- .{ .page = .appearance, .title = "Inactive window opacity", .target = "inactive_opacity", .keywords = "transparency unfocused" },
- .{ .page = .appearance, .title = "Terminal opacity", .target = "terminal_opacity", .keywords = "transparency" },
- .{ .page = .appearance, .title = "Taskbar position", .target = "taskbar_position", .keywords = "panel top bottom" },
- .{ .page = .appearance, .title = "Taskbar edge gap", .target = "taskbar_edge_gap", .keywords = "panel margin" },
- .{ .page = .appearance, .title = "Taskbar length", .target = "taskbar_length", .keywords = "panel width" },
- .{ .page = .appearance, .title = "Taskbar corner radius", .target = "taskbar_radius", .keywords = "panel rounded" },
- .{ .page = .appearance, .title = "Taskbar items", .target = "@Taskbar", .keywords = "clock battery tray notifications capture" },
- .{ .page = .appearance, .title = "Bold clock", .target = "clock_bold", .keywords = "time taskbar font" },
- .{ .page = .appearance, .title = "Italic clock", .target = "clock_italic", .keywords = "time taskbar font" },
- .{ .page = .appearance, .title = "Start menu size", .target = "start_menu_width", .keywords = "launcher width" },
- .{ .page = .appearance, .title = "Start menu height", .target = "start_menu_height", .keywords = "launcher size" },
- .{ .page = .appearance, .title = "Start menu logo", .target = "start_logo_tile", .keywords = "launcher icon image" },
- .{ .page = .appearance, .title = "Dock", .target = "dock_enabled", .keywords = "enable apps launcher" },
- .{ .page = .appearance, .title = "Dock position", .target = "dock_position", .keywords = "top bottom left right" },
- .{ .page = .appearance, .title = "Dock auto hide", .target = "dock_auto_hide", .keywords = "hide automatically" },
- .{ .page = .appearance, .title = "Dock height", .target = "dock_height", .keywords = "size" },
- .{ .page = .appearance, .title = "Dock hover zoom", .target = "dock_hover_zoom", .keywords = "magnification mouse" },
- .{ .page = .appearance, .title = "Dock opacity", .target = "dock_opacity", .keywords = "transparency" },
- .{ .page = .appearance, .title = "Dock corner radius", .target = "dock_radius", .keywords = "rounded" },
- .{ .page = .appearance, .title = "Dock active highlight", .target = "dock_active_highlight", .keywords = "running apps indicator" },
- .{ .page = .appearance, .title = "Dock trash", .target = "dock_show_trash", .keywords = "recycle bin" },
- .{ .page = .shortcuts, .title = "Keyboard shortcuts", .target = "@Keyboard Shortcuts", .keywords = "hotkeys keybindings bindings terminal screenshot volume brightness workspaces" },
- .{ .page = .desktop, .title = "Desktop mode", .target = "desktop_mode", .keywords = "canvas workspaces tiling" },
- .{ .page = .desktop, .title = "Canvas size", .target = "@Canvas Size", .keywords = "rows columns panning area" },
- .{ .page = .desktop, .title = "Desktop switching", .target = "@Desktop Switching", .keywords = "edge pan transitions" },
- .{ .page = .desktop, .title = "Mini map", .target = "mini_map_enabled", .keywords = "minimap overview" },
- .{ .page = .desktop, .title = "Mini map position", .target = "mini_map_position", .keywords = "overview location" },
- .{ .page = .desktop, .title = "Mini map hide delay", .target = "mini_map_hide_ms", .keywords = "overview timeout" },
- .{ .page = .desktop, .title = "Fixed desktop icons", .target = "desktop_icons_fixed", .keywords = "keep icons in place" },
- .{ .page = .desktop, .title = "Workspace layout", .target = "@Workspace layout", .keywords = "tiling master stack" },
- .{ .page = .desktop, .title = "Window spacing", .target = "@Window spacing", .keywords = "gaps tiling" },
- .{ .page = .desktop, .title = "Floating apps", .target = "@Floating apps", .keywords = "rules tiling windows" },
- .{ .page = .bluetooth, .title = "Bluetooth devices", .target = "@Bluetooth", .keywords = "wireless pairing paired headphones mouse keyboard" },
- .{ .page = .region, .title = "Application language", .target = "language", .keywords = "locale translation" },
- .{ .page = .region, .title = "Regional formats", .target = "formats", .keywords = "locale numbers currency dates" },
- .{ .page = .region, .title = "24-hour clock", .target = "clock_24h", .keywords = "time am pm" },
- .{ .page = .region, .title = "Clock seconds", .target = "clock_show_seconds", .keywords = "time" },
- .{ .page = .region, .title = "Clock day", .target = "clock_show_day", .keywords = "date weekday" },
- .{ .page = .region, .title = "First day of week", .target = "first_day_of_week", .keywords = "calendar monday sunday" },
- .{ .page = .users, .title = "Accounts", .target = "@Accounts", .keywords = "users login password administrator groups" },
- .{ .page = .users, .title = "Automatic login", .target = "@Automatic login", .keywords = "autologin boot" },
- .{ .page = .printers, .title = "Printers", .target = "@Printers", .keywords = "printing cups add queue jobs paper driver label" },
- .{ .page = .services, .title = "Services", .target = "services_search", .keywords = "systemd startup boot daemon unit enabled failed slow" },
- .{ .page = .general, .title = "Desktop portals", .target = "portal_default", .keywords = "backend gtk kde dialogs" },
- .{ .page = .general, .title = "File dialogs", .target = "portal_file_chooser", .keywords = "chooser portal" },
- .{ .page = .general, .title = "Default file manager", .target = "default_file_manager", .keywords = "files folders application" },
- .{ .page = .general, .title = "Default terminal", .target = "default_terminal", .keywords = "application shell console" },
- .{ .page = .appearance, .title = "Taskbar theme", .target = "taskbar_theme", .keywords = "panel colors colours" },
- .{ .page = .appearance, .title = "Dark mode", .target = "dark_mode", .keywords = "light appearance theme" },
- .{ .page = .appearance, .title = "Apply GTK colors", .target = "apply_gtk_colors", .keywords = "application colours theme" },
- .{ .page = .appearance, .title = "Apply Qt colors", .target = "apply_qt_colors", .keywords = "application colours theme" },
- .{ .page = .appearance, .title = "Launch splash", .target = "launch_splash", .keywords = "startup welcome animation" },
- .{ .page = .appearance, .title = "Dodge file drags", .target = "dodge_file_drags", .keywords = "drag drop windows" },
- .{ .page = .appearance, .title = "Dim inactive windows", .target = "inactive_dim", .keywords = "unfocused darkness" },
- .{ .page = .appearance, .title = "Window tabs", .target = "window_tabs", .keywords = "applications titlebar grouping" },
- .{ .page = .appearance, .title = "Snapped window gap", .target = "@Snapped window gap", .keywords = "spacing tiled margin" },
- .{ .page = .appearance, .title = "Scrollbar width", .target = "@Scrollbar width", .keywords = "thickness scrolling accessibility" },
- .{ .page = .appearance, .title = "Taskbar size", .target = "@Taskbar size", .keywords = "panel height" },
- .{ .page = .appearance, .title = "Window item width", .target = "@Window item width", .keywords = "taskbar chip size" },
- .{ .page = .appearance, .title = "Window item gap", .target = "@Window item gap", .keywords = "taskbar chip spacing" },
- .{ .page = .appearance, .title = "Start button gap", .target = "@Start button gap", .keywords = "taskbar launcher spacing" },
- .{ .page = .appearance, .title = "Start button icon size", .target = "@Start button icon size", .keywords = "logo launcher" },
- .{ .page = .appearance, .title = "Menu left padding", .target = "@Menu left padding", .keywords = "start menu spacing" },
- .{ .page = .appearance, .title = "Menu bottom padding", .target = "@Menu bottom padding", .keywords = "start menu spacing" },
- .{ .page = .appearance, .title = "Icon left padding", .target = "@Icon left padding", .keywords = "start menu spacing" },
- .{ .page = .appearance, .title = "Icon bottom padding", .target = "@Icon bottom padding", .keywords = "start menu spacing" },
- .{ .page = .appearance, .title = "Install theme", .target = "theme_install", .keywords = "import pack" },
- .{ .page = .appearance, .title = "Remove theme", .target = "theme_remove", .keywords = "delete pack" },
- .{ .page = .appearance, .title = "Save theme", .target = "theme_export", .keywords = "export look" },
- .{ .page = .appearance, .title = "Reset theme", .target = "theme_reset", .keywords = "defaults restore" },
+const SourceEntry = struct {
+ page: Page,
+ title: i18n.Message,
+ target: []const u8 = "",
+ heading: ?i18n.Message = null,
+ keywords: i18n.Message = i18n.msg(""),
+};
+
+const source_entries = [_]SourceEntry{
+ .{ .page = .general, .title = i18n.msg("General"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .input, .title = i18n.msg("Input"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .displays, .title = i18n.msg("Displays"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .audio, .title = i18n.msg("Audio"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .network, .title = i18n.msg("Network"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .appearance, .title = i18n.msg("Appearance"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .shortcuts, .title = i18n.msg("Keyboard Shortcuts"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .desktop, .title = i18n.msg("Desktop"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .bluetooth, .title = i18n.msg("Bluetooth"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .region, .title = i18n.msg("Region & Language"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .users, .title = i18n.msg("Users"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .printers, .title = i18n.msg("Printers"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .services, .title = i18n.msg("Services"), .target = "", .keywords = i18n.msg("") },
+ .{ .page = .general, .title = i18n.msg("Brightness"), .target = "@Brightness", .heading = i18n.msg("Brightness"), .keywords = i18n.msg("backlight screen light") },
+ .{ .page = .general, .title = i18n.msg("Open files with a single click"), .target = "files_single_click_open", .keywords = i18n.msg("double click folders") },
+ .{ .page = .input, .title = i18n.msg("Mouse speed"), .target = "mouse_speed", .keywords = i18n.msg("pointer acceleration sensitivity") },
+ .{ .page = .input, .title = i18n.msg("Touchpad speed"), .target = "touchpad_speed", .keywords = i18n.msg("trackpad acceleration sensitivity") },
+ .{ .page = .input, .title = i18n.msg("Disable touchpad while typing"), .target = "touchpad_disable_while_typing", .keywords = i18n.msg("keyboard trackpad") },
+ .{ .page = .input, .title = i18n.msg("Natural scroll"), .target = "natural_scroll", .keywords = i18n.msg("scrolling direction reverse invert mouse touchpad") },
+ .{ .page = .input, .title = i18n.msg("Tap to click"), .target = "tap_to_click", .keywords = i18n.msg("touchpad trackpad") },
+ .{ .page = .input, .title = i18n.msg("Canvas pan speed"), .target = "pan_speed", .keywords = i18n.msg("desktop panning") },
+ .{ .page = .input, .title = i18n.msg("Keyboard repeat delay"), .target = "repeat_delay", .keywords = i18n.msg("typing keys") },
+ .{ .page = .input, .title = i18n.msg("Keyboard repeat rate"), .target = "repeat_rate", .keywords = i18n.msg("typing keys speed") },
+ .{ .page = .displays, .title = i18n.msg("Monitor"), .target = "monitor", .keywords = i18n.msg("screen output") },
+ .{ .page = .displays, .title = i18n.msg("Display arrangement"), .target = "@Arrangement", .heading = i18n.msg("Arrangement"), .keywords = i18n.msg("screen position monitors main display") },
+ .{ .page = .displays, .title = i18n.msg("Resolution"), .target = "resolution", .keywords = i18n.msg("screen size pixels") },
+ .{ .page = .displays, .title = i18n.msg("Refresh rate"), .target = "refresh_rate", .keywords = i18n.msg("screen frequency hz") },
+ .{ .page = .displays, .title = i18n.msg("Display scale"), .target = "scale", .keywords = i18n.msg("screen scaling dpi zoom") },
+ .{ .page = .displays, .title = i18n.msg("Xwayland scale"), .target = "xwayland_scale", .keywords = i18n.msg("x11 legacy apps scaling") },
+ .{ .page = .displays, .title = i18n.msg("Rotation"), .target = "transform", .keywords = i18n.msg("orientation portrait landscape screen") },
+ .{ .page = .displays, .title = i18n.msg("Night light"), .target = "night_light", .keywords = i18n.msg("blue light warm screen") },
+ .{ .page = .displays, .title = i18n.msg("Night light temperature"), .target = "night_light_temperature", .keywords = i18n.msg("warmth colour color") },
+ .{ .page = .displays, .title = i18n.msg("Lid close action"), .target = "lid_close", .keywords = i18n.msg("laptop suspend sleep") },
+ .{ .page = .audio, .title = i18n.msg("Output volume"), .target = "output_volume", .keywords = i18n.msg("sound speakers loudness mute") },
+ .{ .page = .audio, .title = i18n.msg("Microphone volume"), .target = "input_volume", .keywords = i18n.msg("sound input recording mute") },
+ .{ .page = .audio, .title = i18n.msg("Output balance"), .target = "output_balance", .keywords = i18n.msg("left right speakers") },
+ .{ .page = .audio, .title = i18n.msg("Bass boost"), .target = "bass_boost", .keywords = i18n.msg("sound equalizer low frequencies") },
+ .{ .page = .audio, .title = i18n.msg("Treble"), .target = "treble", .keywords = i18n.msg("sound equalizer high frequencies") },
+ .{ .page = .audio, .title = i18n.msg("Audio output device"), .target = "@Audio output", .heading = i18n.msg("Audio output"), .keywords = i18n.msg("speakers headphones sound default") },
+ .{ .page = .network, .title = i18n.msg("Wi-Fi"), .target = "wifi_card", .keywords = i18n.msg("wireless internet wlan hotspot hidden network") },
+ .{ .page = .network, .title = i18n.msg("Ethernet"), .target = "ethernet_card", .keywords = i18n.msg("wired internet adapter") },
+ .{ .page = .appearance, .title = i18n.msg("Wallpaper"), .target = "@Wallpaper", .heading = i18n.msg("Wallpaper"), .keywords = i18n.msg("background desktop image folder") },
+ .{ .page = .appearance, .title = i18n.msg("Theme"), .target = "@Theme", .heading = i18n.msg("Theme"), .keywords = i18n.msg("colors colours dark light preset") },
+ .{ .page = .appearance, .title = i18n.msg("Icon theme"), .target = "icon_theme", .keywords = i18n.msg("icons pack") },
+ .{ .page = .appearance, .title = i18n.msg("Animations"), .target = "animations", .keywords = i18n.msg("effects motion") },
+ .{ .page = .appearance, .title = i18n.msg("Animation speed"), .target = "anim_speed", .keywords = i18n.msg("motion duration") },
+ .{ .page = .appearance, .title = i18n.msg("Reduced motion"), .target = "reduced_motion", .keywords = i18n.msg("accessibility animations") },
+ .{ .page = .appearance, .title = i18n.msg("Focus zoom"), .target = "focus_zoom", .keywords = i18n.msg("window focus") },
+ .{ .page = .appearance, .title = i18n.msg("Drag feedback"), .target = "drag_feedback", .keywords = i18n.msg("window moving") },
+ .{ .page = .appearance, .title = i18n.msg("Drag scale"), .target = "drag_scale", .keywords = i18n.msg("window moving size") },
+ .{ .page = .appearance, .title = i18n.msg("Font"), .target = "font", .keywords = i18n.msg("typeface text") },
+ .{ .page = .appearance, .title = i18n.msg("Cursor theme"), .target = "cursor_theme", .keywords = i18n.msg("pointer mouse") },
+ .{ .page = .appearance, .title = i18n.msg("Font size"), .target = "font_size", .keywords = i18n.msg("text size accessibility") },
+ .{ .page = .appearance, .title = i18n.msg("Corner radius"), .target = "radius", .keywords = i18n.msg("rounded windows") },
+ .{ .page = .appearance, .title = i18n.msg("Window shadow"), .target = "shadow", .keywords = i18n.msg("shadows") },
+ .{ .page = .appearance, .title = i18n.msg("Border glow"), .target = "border_glow", .keywords = i18n.msg("window borders") },
+ .{ .page = .appearance, .title = i18n.msg("Window opacity"), .target = "chrome_opacity", .keywords = i18n.msg("transparency chrome") },
+ .{ .page = .appearance, .title = i18n.msg("Window darkness"), .target = "chrome_darkness", .keywords = i18n.msg("chrome tint") },
+ .{ .page = .appearance, .title = i18n.msg("Titlebar height"), .target = "chrome_height", .keywords = i18n.msg("window chrome") },
+ .{ .page = .appearance, .title = i18n.msg("Window control spacing"), .target = "chrome_control_gap", .keywords = i18n.msg("buttons close maximize minimize") },
+ .{ .page = .appearance, .title = i18n.msg("Inactive window opacity"), .target = "inactive_opacity", .keywords = i18n.msg("transparency unfocused") },
+ .{ .page = .appearance, .title = i18n.msg("Terminal opacity"), .target = "terminal_opacity", .keywords = i18n.msg("transparency") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar position"), .target = "taskbar_position", .keywords = i18n.msg("panel top bottom") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar edge gap"), .target = "taskbar_edge_gap", .keywords = i18n.msg("panel margin") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar length"), .target = "taskbar_length", .keywords = i18n.msg("panel width") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar corner radius"), .target = "taskbar_radius", .keywords = i18n.msg("panel rounded") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar items"), .target = "@Taskbar", .heading = i18n.msg("Taskbar"), .keywords = i18n.msg("clock battery tray notifications capture") },
+ .{ .page = .appearance, .title = i18n.msg("Bold clock"), .target = "clock_bold", .keywords = i18n.msg("time taskbar font") },
+ .{ .page = .appearance, .title = i18n.msg("Italic clock"), .target = "clock_italic", .keywords = i18n.msg("time taskbar font") },
+ .{ .page = .appearance, .title = i18n.msg("Start menu size"), .target = "start_menu_width", .keywords = i18n.msg("launcher width") },
+ .{ .page = .appearance, .title = i18n.msg("Start menu height"), .target = "start_menu_height", .keywords = i18n.msg("launcher size") },
+ .{ .page = .appearance, .title = i18n.msg("Start menu logo"), .target = "start_logo_tile", .keywords = i18n.msg("launcher icon image") },
+ .{ .page = .appearance, .title = i18n.msg("Dock"), .target = "dock_enabled", .keywords = i18n.msg("enable apps launcher") },
+ .{ .page = .appearance, .title = i18n.msg("Dock position"), .target = "dock_position", .keywords = i18n.msg("top bottom left right") },
+ .{ .page = .appearance, .title = i18n.msg("Dock auto hide"), .target = "dock_auto_hide", .keywords = i18n.msg("hide automatically") },
+ .{ .page = .appearance, .title = i18n.msg("Dock height"), .target = "dock_height", .keywords = i18n.msg("size") },
+ .{ .page = .appearance, .title = i18n.msg("Dock hover zoom"), .target = "dock_hover_zoom", .keywords = i18n.msg("magnification mouse") },
+ .{ .page = .appearance, .title = i18n.msg("Dock opacity"), .target = "dock_opacity", .keywords = i18n.msg("transparency") },
+ .{ .page = .appearance, .title = i18n.msg("Dock corner radius"), .target = "dock_radius", .keywords = i18n.msg("rounded") },
+ .{ .page = .appearance, .title = i18n.msg("Dock active highlight"), .target = "dock_active_highlight", .keywords = i18n.msg("running apps indicator") },
+ .{ .page = .appearance, .title = i18n.msg("Dock trash"), .target = "dock_show_trash", .keywords = i18n.msg("recycle bin") },
+ .{ .page = .shortcuts, .title = i18n.msg("Keyboard shortcuts"), .target = "@Keyboard Shortcuts", .heading = i18n.msg("Keyboard Shortcuts"), .keywords = i18n.msg("hotkeys keybindings bindings terminal screenshot volume brightness workspaces") },
+ .{ .page = .desktop, .title = i18n.msg("Desktop mode"), .target = "desktop_mode", .keywords = i18n.msg("canvas workspaces tiling") },
+ .{ .page = .desktop, .title = i18n.msg("Canvas size"), .target = "@Canvas Size", .heading = i18n.msg("Canvas Size"), .keywords = i18n.msg("rows columns panning area") },
+ .{ .page = .desktop, .title = i18n.msg("Desktop switching"), .target = "@Desktop Switching", .heading = i18n.msg("Desktop Switching"), .keywords = i18n.msg("edge pan transitions") },
+ .{ .page = .desktop, .title = i18n.msg("Mini map"), .target = "mini_map_enabled", .keywords = i18n.msg("minimap overview") },
+ .{ .page = .desktop, .title = i18n.msg("Mini map position"), .target = "mini_map_position", .keywords = i18n.msg("overview location") },
+ .{ .page = .desktop, .title = i18n.msg("Mini map hide delay"), .target = "mini_map_hide_ms", .keywords = i18n.msg("overview timeout") },
+ .{ .page = .desktop, .title = i18n.msg("Fixed desktop icons"), .target = "desktop_icons_fixed", .keywords = i18n.msg("keep icons in place") },
+ .{ .page = .desktop, .title = i18n.msg("Workspace layout"), .target = "@Workspace layout", .heading = i18n.msg("Workspace layout"), .keywords = i18n.msg("tiling master stack") },
+ .{ .page = .desktop, .title = i18n.msg("Window spacing"), .target = "@Window spacing", .heading = i18n.msg("Window spacing"), .keywords = i18n.msg("gaps tiling") },
+ .{ .page = .desktop, .title = i18n.msg("Floating apps"), .target = "@Floating apps", .heading = i18n.msg("Floating apps"), .keywords = i18n.msg("rules tiling windows") },
+ .{ .page = .bluetooth, .title = i18n.msg("Bluetooth devices"), .target = "@Bluetooth", .heading = i18n.msg("Bluetooth"), .keywords = i18n.msg("wireless pairing paired headphones mouse keyboard") },
+ .{ .page = .region, .title = i18n.msg("Application language"), .target = "language", .keywords = i18n.msg("locale translation") },
+ .{ .page = .region, .title = i18n.msg("Regional formats"), .target = "formats", .keywords = i18n.msg("locale numbers currency dates") },
+ .{ .page = .region, .title = i18n.msg("24-hour clock"), .target = "clock_24h", .keywords = i18n.msg("time am pm") },
+ .{ .page = .region, .title = i18n.msg("Clock seconds"), .target = "clock_show_seconds", .keywords = i18n.msg("time") },
+ .{ .page = .region, .title = i18n.msg("Clock day"), .target = "clock_show_day", .keywords = i18n.msg("date weekday") },
+ .{ .page = .region, .title = i18n.msg("First day of week"), .target = "first_day_of_week", .keywords = i18n.msg("calendar monday sunday") },
+ .{ .page = .users, .title = i18n.msg("Accounts"), .target = "@Accounts", .heading = i18n.msg("Accounts"), .keywords = i18n.msg("users login password administrator groups") },
+ .{ .page = .users, .title = i18n.msg("Automatic login"), .target = "@Automatic login", .heading = i18n.msg("Automatic login"), .keywords = i18n.msg("autologin boot") },
+ .{ .page = .printers, .title = i18n.msg("Printers"), .target = "@Printers", .heading = i18n.msg("Printers"), .keywords = i18n.msg("printing cups add queue jobs paper driver label") },
+ .{ .page = .services, .title = i18n.msg("Services"), .target = "services_search", .keywords = i18n.msg("systemd startup boot daemon unit enabled failed slow") },
+ .{ .page = .general, .title = i18n.msg("Desktop portals"), .target = "portal_default", .keywords = i18n.msg("backend gtk kde dialogs") },
+ .{ .page = .general, .title = i18n.msg("File dialogs"), .target = "portal_file_chooser", .keywords = i18n.msg("chooser portal") },
+ .{ .page = .general, .title = i18n.msg("Default file manager"), .target = "default_file_manager", .keywords = i18n.msg("files folders application") },
+ .{ .page = .general, .title = i18n.msg("Default terminal"), .target = "default_terminal", .keywords = i18n.msg("application shell console") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar theme"), .target = "taskbar_theme", .keywords = i18n.msg("panel colors colours") },
+ .{ .page = .appearance, .title = i18n.msg("Dark mode"), .target = "dark_mode", .keywords = i18n.msg("light appearance theme") },
+ .{ .page = .appearance, .title = i18n.msg("Apply GTK colors"), .target = "apply_gtk_colors", .keywords = i18n.msg("application colours theme") },
+ .{ .page = .appearance, .title = i18n.msg("Apply Qt colors"), .target = "apply_qt_colors", .keywords = i18n.msg("application colours theme") },
+ .{ .page = .appearance, .title = i18n.msg("Launch splash"), .target = "launch_splash", .keywords = i18n.msg("startup welcome animation") },
+ .{ .page = .appearance, .title = i18n.msg("Dodge file drags"), .target = "dodge_file_drags", .keywords = i18n.msg("drag drop windows") },
+ .{ .page = .appearance, .title = i18n.msg("Dim inactive windows"), .target = "inactive_dim", .keywords = i18n.msg("unfocused darkness") },
+ .{ .page = .appearance, .title = i18n.msg("Window tabs"), .target = "window_tabs", .keywords = i18n.msg("applications titlebar grouping") },
+ .{ .page = .appearance, .title = i18n.msg("Snapped window gap"), .target = "@Snapped window gap", .heading = i18n.msg("Snapped window gap"), .keywords = i18n.msg("spacing tiled margin") },
+ .{ .page = .appearance, .title = i18n.msg("Scrollbar width"), .target = "@Scrollbar width", .heading = i18n.msg("Scrollbar width"), .keywords = i18n.msg("thickness scrolling accessibility") },
+ .{ .page = .appearance, .title = i18n.msg("Taskbar size"), .target = "@Taskbar size", .heading = i18n.msg("Taskbar size"), .keywords = i18n.msg("panel height") },
+ .{ .page = .appearance, .title = i18n.msg("Window item width"), .target = "@Window item width", .heading = i18n.msg("Window item width"), .keywords = i18n.msg("taskbar chip size") },
+ .{ .page = .appearance, .title = i18n.msg("Window item gap"), .target = "@Window item gap", .heading = i18n.msg("Window item gap"), .keywords = i18n.msg("taskbar chip spacing") },
+ .{ .page = .appearance, .title = i18n.msg("Start button gap"), .target = "@Start button gap", .heading = i18n.msg("Start button gap"), .keywords = i18n.msg("taskbar launcher spacing") },
+ .{ .page = .appearance, .title = i18n.msg("Start button icon size"), .target = "@Start button icon size", .heading = i18n.msg("Start button icon size"), .keywords = i18n.msg("logo launcher") },
+ .{ .page = .appearance, .title = i18n.msg("Menu left padding"), .target = "@Menu left padding", .heading = i18n.msg("Menu left padding"), .keywords = i18n.msg("start menu spacing") },
+ .{ .page = .appearance, .title = i18n.msg("Menu bottom padding"), .target = "@Menu bottom padding", .heading = i18n.msg("Menu bottom padding"), .keywords = i18n.msg("start menu spacing") },
+ .{ .page = .appearance, .title = i18n.msg("Icon left padding"), .target = "@Icon left padding", .heading = i18n.msg("Icon left padding"), .keywords = i18n.msg("start menu spacing") },
+ .{ .page = .appearance, .title = i18n.msg("Icon bottom padding"), .target = "@Icon bottom padding", .heading = i18n.msg("Icon bottom padding"), .keywords = i18n.msg("start menu spacing") },
+ .{ .page = .appearance, .title = i18n.msg("Install theme"), .target = "theme_install", .keywords = i18n.msg("import pack") },
+ .{ .page = .appearance, .title = i18n.msg("Remove theme"), .target = "theme_remove", .keywords = i18n.msg("delete pack") },
+ .{ .page = .appearance, .title = i18n.msg("Save theme"), .target = "theme_export", .keywords = i18n.msg("export look") },
+ .{ .page = .appearance, .title = i18n.msg("Reset theme"), .target = "theme_reset", .keywords = i18n.msg("defaults restore") },
+};
+
+pub const entries: [source_entries.len]Entry = blk: {
+ var result: [source_entries.len]Entry = undefined;
+ for (source_entries, 0..) |entry, id| result[id] = .{
+ .page = entry.page,
+ .title = entry.title.source,
+ .target = entry.target,
+ .keywords = entry.keywords.source,
+ };
+ break :blk result;
};
+pub fn localizedEntry(id: usize) Entry {
+ const entry = source_entries[id];
+ return .{ .page = entry.page, .title = entry.title.get(), .target = entry.target, .keywords = entry.keywords.get() };
+}
+
+pub fn targetLabel(id: usize) []const u8 {
+ return if (source_entries[id].heading) |heading| heading.get() else "";
+}
+
+/// Translated labels and keywords coexist with their English guide terms.
+pub fn scoreLocalized(id: usize, query: []const u8, page_label: []const u8) ?u32 {
+ return scorePair(localizedEntry(id), entries[id], query, page_label, .{ .turkish = i18n.isTurkish() });
+}
+
pub fn contains(haystack: []const u8, needle: []const u8) bool {
- if (needle.len == 0 or needle.len > haystack.len) return false;
- for (0..haystack.len - needle.len + 1) |i| {
- if (std.ascii.eqlIgnoreCase(haystack[i..][0..needle.len], needle)) return true;
- }
- return false;
+ return needle.len > 0 and fold.contains(haystack, needle, .{ .turkish = @import("i18n").isTurkish() });
}
/// All words must match, including words supplied by the page or aliases.
/// Label matches outrank aliases; longer queries remain allocation-free.
pub fn score(entry: Entry, query: []const u8, page_label: []const u8) ?u32 {
+ return scoreWithOptions(entry, query, page_label, .{ .turkish = @import("i18n").isTurkish() });
+}
+
+pub fn scoreWithOptions(entry: Entry, query: []const u8, page_label: []const u8, options: fold.Options) ?u32 {
+ return scorePair(entry, entry, query, page_label, options);
+}
+
+fn scorePair(entry: Entry, english: Entry, query: []const u8, page_label: []const u8, options: fold.Options) ?u32 {
var words = std.mem.tokenizeAny(u8, query, " \t\r\n");
var total: u32 = 0;
var count: usize = 0;
while (words.next()) |word| {
count += 1;
- if (contains(entry.title, word)) total += 8 else if (contains(page_label, word)) total += 2 else if (contains(entry.keywords, word)) total += 1 else return null;
+ if (fold.contains(entry.title, word, options) or fold.contains(english.title, word, options)) total += 8 else if (fold.contains(page_label, word, options)) total += 2 else if (fold.contains(entry.keywords, word, options) or fold.contains(english.keywords, word, options)) total += 1 else return null;
}
if (count == 0) return null;
const trimmed = std.mem.trim(u8, query, " \t\r\n");
- if (std.ascii.eqlIgnoreCase(entry.title, trimmed)) total += 100;
+ if (fold.eql(entry.title, trimmed, options) or fold.eql(english.title, trimmed, options)) total += 100;
if (entry.target.len > 0) total += 1;
return total;
}
@@ -178,3 +217,13 @@ test "settings search ranks labels, combines words and resolves aliases" {
try std.testing.expect(a.page != b.page or !std.mem.eql(u8, a.target, b.target));
};
}
+
+test "settings search folds translated titles keywords and page labels" {
+ const entry: Entry = .{ .page = .input, .title = "Cámara", .target = "camera", .keywords = "Терминал Straße" };
+ try std.testing.expect(scoreWithOptions(entry, "CAMARA", "Écran", .{}) != null);
+ try std.testing.expect(scoreWithOptions(entry, "ecran терм strasse", "Écran", .{}) != null);
+ try std.testing.expect(scoreWithOptions(entry, "cámara", "Écran", .{}).? > scoreWithOptions(entry, "cam", "Écran", .{}).?);
+ const turkish: Entry = .{ .page = .input, .title = "IŞIK" };
+ try std.testing.expect(scoreWithOptions(turkish, "ışık", "", .{ .turkish = true }) != null);
+ try std.testing.expect(scoreWithOptions(turkish, "ışık", "", .{}) == null);
+}
diff --git a/src/control_center/sections/appearance.zig b/src/control_center/sections/appearance.zig
index 8243e9f..cfe2988 100644
--- a/src/control_center/sections/appearance.zig
+++ b/src/control_center/sections/appearance.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
// Control center "Appearance" section: UI font, font size, and corner
// radius, all of which write back to REDIWM_THEME and hot-reload (design
// doc Part 3, Section 2), plus the apps' dark mode and the wallpaper, which
@@ -142,20 +143,20 @@ pub const dock_radius_min: f32 = 1;
pub const dock_radius_max: f32 = 48;
pub const font_values = [3]f32{ 12, 13, 14 };
-pub const font_labels = [_][]const u8{ "Small", "Medium", "Large" };
-pub const radius_labels = [_][]const u8{ "Sharp", "Default", "Round" };
+pub const font_labels = [_]i18n.Message{ i18n.msg("Small"), i18n.msg("Medium"), i18n.msg("Large") };
+pub const radius_labels = [_]i18n.Message{ i18n.msg("Sharp"), i18n.msg("Default"), i18n.msg("Round") };
pub const shadow_size_values = [3]f32{ 0, 16, 32 };
pub const shadow_alpha_values = [3]f32{ 0, 0.28, 0.45 };
-pub const shadow_labels = [_][]const u8{ "None", "Soft", "Strong" };
+pub const shadow_labels = [_]i18n.Message{ i18n.msg("None"), i18n.msg("Soft"), i18n.msg("Strong") };
pub const anim_speed_values = [4]f32{ 0.5, 1.0, 1.5, 2.0 };
pub const anim_speed_labels = [_][]const u8{ "0.5×", "1.0×", "1.5×", "2.0×" };
pub const reduced_motion_values = [3]anim.ReducedMotion{ .auto, .on, .off };
-pub const reduced_motion_labels = [_][]const u8{ "Auto", "On", "Off" };
-pub const focus_zoom_labels = [_][]const u8{ "Keep zoom", "Boost window", "Focus camera" };
-pub const focus_zoom_descriptions = [_][]const u8{
- "Pan to the selected window without changing zoom.",
- "Temporarily show the selected window at full size; keep desktop zoom.",
- "Zoom the desktop to the selected window's level; fade windows passed by the camera.",
+pub const reduced_motion_labels = [_]i18n.Message{ i18n.msg("Auto"), i18n.msg("On"), i18n.msg("Off") };
+pub const focus_zoom_labels = [_]i18n.Message{ i18n.msg("Keep zoom"), i18n.msg("Boost window"), i18n.msg("Focus camera") };
+pub const focus_zoom_descriptions = [_]i18n.Message{
+ i18n.msg("Pan to the selected window without changing zoom."),
+ i18n.msg("Temporarily show the selected window at full size; keep desktop zoom."),
+ i18n.msg("Zoom the desktop to the selected window's level; fade windows passed by the camera."),
};
pub fn indexOfReducedMotion(m: anim.ReducedMotion) usize {
@@ -241,7 +242,7 @@ pub const Section = struct {
theme_row_children: [2]Widget = undefined,
theme_actions: [5]Widget = undefined,
theme_preview_pending: bool = false,
- theme_message: []const u8 = "Packs include colours and artwork. Personal edits are saved as overrides.",
+ theme_message: []const u8 = "",
theme_message_buf: [768]u8 = undefined,
theme_pending_path: ?[]u8 = null,
icon_theme_row: [2]Widget = undefined,
@@ -252,7 +253,7 @@ pub const Section = struct {
app_colors_buttons: [2]Widget = undefined,
app_colors_job: ?*AppColorsJob = null,
app_colors_source: ?*wl.EventSource = null,
- app_colors_message: []const u8 = "Uses the main theme. Apply again after changing it; restart apps to see the colors.",
+ app_colors_message: []const u8 = "",
app_colors_message_buf: [384]u8 = undefined,
dark_row_children: [2]Widget = undefined,
dark_label_children: [2]Widget = undefined,
@@ -476,13 +477,13 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
}
} else |_| {}
out.theme_row_children = .{
- labelWidget("Theme"),
+ labelWidget(i18n.tr("Theme")),
.{
.name = "theme",
.kind = .{ .select = .{
.labels = preset_labels,
.selected = matched_index,
- .placeholder = "Custom",
+ .placeholder = i18n.tr("Custom"),
.disabled = preset_labels.len == 0,
.owner = out,
.on_change = &onThemePicked,
@@ -497,7 +498,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
var taskbar_selected: ?usize = null;
if (arena.alloc([]const u8, out.presets.len + 1)) |labels| {
taskbar_labels = labels;
- labels[0] = "Same as theme";
+ labels[0] = i18n.tr("Same as theme");
if (theme.taskbar_override == null) taskbar_selected = 0;
for (out.presets, 1..) |preset, i| {
labels[i] = preset.name;
@@ -508,13 +509,13 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
}
} else |_| {}
out.taskbar_theme_row_children = .{
- labelWidget("Taskbar theme"),
+ labelWidget(i18n.tr("Taskbar theme")),
.{
.name = "taskbar_theme",
.kind = .{ .select = .{
.labels = taskbar_labels,
.selected = taskbar_selected,
- .placeholder = "Custom",
+ .placeholder = i18n.tr("Custom"),
.disabled = taskbar_labels.len == 0,
.owner = out,
.on_change = &onTaskbarThemePicked,
@@ -527,18 +528,18 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const pal = panel.palette();
out.app_colors_buttons = .{
- .{ .name = "apply_gtk_colors", .kind = .{ .button = .{ .label = "Apply GTK colors", .owner = out, .id = 0, .on_click = &onApplyAppColors, .state = if (out.app_colors_job != null) .disabled else .idle } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 32 } },
- .{ .name = "apply_qt_colors", .kind = .{ .button = .{ .label = "Apply Qt colors", .owner = out, .id = 1, .on_click = &onApplyAppColors, .state = if (out.app_colors_job != null) .disabled else .idle } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 32 } },
+ .{ .name = "apply_gtk_colors", .kind = .{ .button = .{ .label = i18n.tr("Apply GTK colors"), .owner = out, .id = 0, .on_click = &onApplyAppColors, .state = if (out.app_colors_job != null) .disabled else .idle } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 32 } },
+ .{ .name = "apply_qt_colors", .kind = .{ .button = .{ .label = i18n.tr("Apply Qt colors"), .owner = out, .id = 1, .on_click = &onApplyAppColors, .state = if (out.app_colors_job != null) .disabled else .idle } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 32 } },
};
out.app_colors_children = .{
- labelWidget("App colors"),
+ labelWidget(i18n.tr("App colors")),
.{ .kind = .container, .direction = .row, .gap = 8, .children = &out.app_colors_buttons },
appColorsNote(out, arena, pal.dim),
};
const dark_mode = out.cc.server.config.compositor.dark_mode;
out.dark_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Dark mode", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
- .{ .kind = .{ .text = .{ .content = "Apps and web pages", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Dark mode"), .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Apps and web pages"), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.dark_row_children = .{
// Flex like the other rows' text labels: an auto-width column is only
@@ -549,8 +550,8 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const splash_on = out.cc.server.config.compositor.placeholder_delay_ms > 0;
out.splash_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Show launch splash", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
- .{ .kind = .{ .text = .{ .content = "Brief placeholder while apps start", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Show launch splash"), .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Brief placeholder while apps start"), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.splash_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = &out.splash_label_children },
@@ -559,8 +560,8 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const dodge_on = out.cc.server.config.compositor.dodge_file_drags;
out.dodge_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Move file manager aside", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
- .{ .kind = .{ .text = .{ .content = "While dragging a file out of it", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Move file manager aside"), .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("While dragging a file out of it"), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.dodge_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = &out.dodge_label_children },
@@ -568,8 +569,8 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
};
out.dim_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Dim inactive windows", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
- .{ .kind = .{ .text = .{ .content = "Slightly darken and mute windows that are not focused", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Dim inactive windows"), .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Slightly darken and mute windows that are not focused"), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.dim_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = &out.dim_label_children },
@@ -578,8 +579,8 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const anim_enabled = out.cc.server.config.animations.enabled;
out.anim_enabled_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Animations", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
- .{ .kind = .{ .text = .{ .content = "Window and panel transitions", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Animations"), .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Window and panel transitions"), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.anim_enabled_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = &out.anim_enabled_label_children },
@@ -588,7 +589,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const anim_speed = out.cc.server.config.animations.speed;
out.anim_speed_row_children = .{
- labelWidget("Animation speed"),
+ labelWidget(i18n.tr("Animation speed")),
.{
.name = "anim_speed",
.kind = .{ .segmented = .{ .labels = &anim_speed_labels, .selected = indexOfNearest(&anim_speed_values, anim_speed), .owner = out, .on_change = &onAnimSpeedChanged } },
@@ -598,28 +599,28 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const reduced_motion = out.cc.server.config.animations.reduced_motion;
out.reduced_motion_row_children = .{
- labelWidget("Reduced motion"),
+ labelWidget(i18n.tr("Reduced motion")),
.{
.name = "reduced_motion",
- .kind = .{ .segmented = .{ .labels = &reduced_motion_labels, .selected = indexOfReducedMotion(reduced_motion), .owner = out, .on_change = &onReducedMotionChanged } },
+ .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&reduced_motion_labels), .selected = indexOfReducedMotion(reduced_motion), .owner = out, .on_change = &onReducedMotionChanged } },
.width = .{ .fixed = segmented_width },
},
};
const focus_zoom = out.cc.server.config.compositor.focus_zoom;
out.focus_zoom_children = .{
- labelWidget("Window switching zoom"),
- .{ .name = "focus_zoom", .kind = .{ .segmented = .{ .labels = &focus_zoom_labels, .selected = @intFromEnum(focus_zoom), .owner = out, .on_change = &onFocusZoomChanged } }, .width = .{ .percent = 1 } },
- .{ .kind = .{ .text = .{ .content = focus_zoom_descriptions[@intFromEnum(focus_zoom)], .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ labelWidget(i18n.tr("Window switching zoom")),
+ .{ .name = "focus_zoom", .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&focus_zoom_labels), .selected = @intFromEnum(focus_zoom), .owner = out, .on_change = &onFocusZoomChanged } }, .width = .{ .percent = 1 } },
+ .{ .kind = .{ .text = .{ .content = focus_zoom_descriptions[@intFromEnum(focus_zoom)].get(), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.drag_feedback_children = .{
- labelWidget("Drag feedback"),
+ labelWidget(i18n.tr("Drag feedback")),
.{ .name = "drag_feedback", .kind = .{ .toggle = .{ .on = out.cc.server.config.compositor.drag_feedback, .owner = out, .on_change = &onDragFeedbackChanged } } },
};
const drag_scale = out.cc.server.config.compositor.drag_scale;
const drag_formatted = std.fmt.bufPrint(&out.drag_scale_value_buf, "{d:.3}×", .{drag_scale}) catch "?";
- out.drag_scale_header_children = .{ labelWidget("Drag lift scale"), pillWidget(drag_formatted) };
+ out.drag_scale_header_children = .{ labelWidget(i18n.tr("Drag lift scale")), pillWidget(drag_formatted) };
out.drag_scale_children = .{
.{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.drag_scale_header_children },
.{ .name = "drag_scale", .kind = .{ .slider = .{
@@ -644,13 +645,13 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
}
}
out.family_row_children = .{
- labelWidget("UI font"),
+ labelWidget(i18n.tr("UI font")),
.{
.name = "font",
.kind = .{ .select = .{
.labels = families,
.selected = family_index,
- .placeholder = arena.dupe(u8, t.font) catch "Current font",
+ .placeholder = arena.dupe(u8, t.font) catch i18n.tr("Current font"),
.disabled = families.len == 0,
.owner = out,
.on_change = &onFontFamilyChanged,
@@ -669,13 +670,13 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
} else |_| {}
const active_cursor = out.cc.server.input.cursorThemeName();
out.cursor_row_children = .{
- labelWidget("Cursor theme"),
+ labelWidget(i18n.tr("Cursor theme")),
.{
.name = "cursor_theme",
.kind = .{ .select = .{
.labels = cursor_labels,
.selected = cursor_theme.indexOf(cursor_themes, active_cursor),
- .placeholder = arena.dupe(u8, active_cursor) catch "Current theme",
+ .placeholder = arena.dupe(u8, active_cursor) catch i18n.tr("Current theme"),
.disabled = cursor_labels.len == 0,
.owner = out,
.on_change = &onCursorThemePicked,
@@ -684,33 +685,33 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
},
};
out.font_row_children = .{
- labelWidget("Font size"),
+ labelWidget(i18n.tr("Font size")),
.{
.name = "font_size",
- .kind = .{ .segmented = .{ .labels = &font_labels, .selected = indexOfNearest(&font_values, t.font_size), .owner = out, .on_change = &onFontSizeChanged } },
+ .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&font_labels), .selected = indexOfNearest(&font_values, t.font_size), .owner = out, .on_change = &onFontSizeChanged } },
.width = .{ .fixed = segmented_width },
},
};
out.radius_row_children = .{
- labelWidget("Radius"),
+ labelWidget(i18n.tr("Radius")),
.{
.name = "radius",
- .kind = .{ .segmented = .{ .labels = &radius_labels, .selected = if (theme.radiusPreset(t)) |preset| @intFromEnum(preset) else radius_labels.len, .owner = out, .on_change = &onRadiusChanged } },
+ .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&radius_labels), .selected = if (theme.radiusPreset(t)) |preset| @intFromEnum(preset) else radius_labels.len, .owner = out, .on_change = &onRadiusChanged } },
.width = .{ .fixed = segmented_width },
},
};
out.shadow_row_children = .{
- labelWidget("Shadow"),
+ labelWidget(i18n.tr("Shadow")),
.{
.name = "shadow",
- .kind = .{ .segmented = .{ .labels = &shadow_labels, .selected = indexOfNearest(&shadow_size_values, t.shadow_size), .owner = out, .on_change = &onShadowChanged } },
+ .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&shadow_labels), .selected = indexOfNearest(&shadow_size_values, t.shadow_size), .owner = out, .on_change = &onShadowChanged } },
.width = .{ .fixed = segmented_width },
},
};
out.glow_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Edge glow", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
- .{ .kind = .{ .text = .{ .content = "Light the active window's edge near the pointer", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Edge glow"), .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Light the active window's edge near the pointer"), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
out.glow_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = &out.glow_label_children },
@@ -719,7 +720,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const opacity_val = std.math.clamp(t.window_bg[3], 0.0, 1.0);
const opacity_formatted = std.fmt.bufPrint(&out.opacity_value_buf, "{d}%", .{@as(i32, @intFromFloat(@round(opacity_val * 100.0)))}) catch "?";
- out.opacity_header_children = .{ labelWidget("Window chrome opacity"), pillWidget(opacity_formatted) };
+ out.opacity_header_children = .{ labelWidget(i18n.tr("Window chrome opacity")), pillWidget(opacity_formatted) };
const opacity_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.opacity_header_children };
const opacity_slider: Widget = .{
.name = "chrome_opacity",
@@ -737,7 +738,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const darkness_val = theme.chromeDarkness(t.window_bg);
const darkness_formatted = std.fmt.bufPrint(&out.darkness_value_buf, "{d}%", .{@as(i32, @intFromFloat(@round(darkness_val * 100.0)))}) catch "?";
- out.darkness_header_children = .{ labelWidget("Window chrome darkness"), pillWidget(darkness_formatted) };
+ out.darkness_header_children = .{ labelWidget(i18n.tr("Window chrome darkness")), pillWidget(darkness_formatted) };
const darkness_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.darkness_header_children };
const darkness_slider: Widget = .{
.name = "chrome_darkness",
@@ -752,16 +753,16 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
};
out.darkness_group_children = .{ darkness_header, darkness_slider };
const darkness_row: Widget = .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.darkness_group_children };
- const chrome_height_row = pxGroup(out, px_chrome_height, "Window chrome height", t.chrome_height, 28, 84, 1, &PxHandler(px_chrome_height, "chrome_height", false).changed);
+ const chrome_height_row = pxGroup(out, px_chrome_height, i18n.tr("Window chrome height"), t.chrome_height, 28, 84, 1, &PxHandler(px_chrome_height, "chrome_height", false).changed);
out.px[px_chrome_height].group_children[1].name = "chrome_height";
- const chrome_gap_row = pxGroup(out, px_chrome_control_gap, "Window control gap", t.chrome_control_gap, 0, 24, 1, &PxHandler(px_chrome_control_gap, "chrome_control_gap", false).changed);
+ const chrome_gap_row = pxGroup(out, px_chrome_control_gap, i18n.tr("Window control gap"), t.chrome_control_gap, 0, 24, 1, &PxHandler(px_chrome_control_gap, "chrome_control_gap", false).changed);
out.px[px_chrome_control_gap].group_children[1].name = "chrome_control_gap";
out.chrome_group_children = .{ chrome_height_row, chrome_gap_row, opacity_row, darkness_row };
const chrome_row: Widget = .{ .kind = .container, .direction = .column, .gap = 12, .children = &out.chrome_group_children };
const inactive_val = std.math.clamp(out.cc.server.config.compositor.inactive_opacity, 0.0, 1.0);
const inactive_formatted = std.fmt.bufPrint(&out.inactive_opacity_value_buf, "{d}%", .{@as(i32, @intFromFloat(@round(inactive_val * 100.0)))}) catch "?";
- out.inactive_opacity_header_children = .{ labelWidget("Inactive window opacity"), pillWidget(inactive_formatted) };
+ out.inactive_opacity_header_children = .{ labelWidget(i18n.tr("Inactive window opacity")), pillWidget(inactive_formatted) };
const inactive_opacity_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.inactive_opacity_header_children };
const inactive_opacity_slider: Widget = .{
.name = "inactive_opacity",
@@ -780,7 +781,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
// Unset means a terminal keeps its own alpha; the slider then shows opaque.
const terminal_val = std.math.clamp(out.cc.server.config.compositor.terminal_opacity orelse 1.0, 0.0, 1.0);
const terminal_formatted = std.fmt.bufPrint(&out.terminal_opacity_value_buf, "{d}%", .{@as(i32, @intFromFloat(@round(terminal_val * 100.0)))}) catch "?";
- out.terminal_opacity_header_children = .{ labelWidget("Terminal opacity (new windows)"), pillWidget(terminal_formatted) };
+ out.terminal_opacity_header_children = .{ labelWidget(i18n.tr("Terminal opacity (new windows)")), pillWidget(terminal_formatted) };
const terminal_opacity_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.terminal_opacity_header_children };
const terminal_opacity_slider: Widget = .{
.name = "terminal_opacity",
@@ -797,36 +798,36 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
const terminal_opacity_row: Widget = .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.terminal_opacity_group_children };
const gap_val: f32 = @floatFromInt(@min(out.cc.server.config.compositor.windowGap(), max_window_gap));
- const window_gap_row = pxGroup(out, px_window_gap, "Snapped window gap", gap_val, 0, max_window_gap, 1, &onWindowGapChanged);
+ const window_gap_row = pxGroup(out, px_window_gap, i18n.tr("Snapped window gap"), gap_val, 0, max_window_gap, 1, &onWindowGapChanged);
out.taskbar_position_children = .{
- labelWidget("Taskbar position"),
- .{ .name = "taskbar_position", .kind = .{ .segmented = .{ .labels = &.{ "Top", "Bottom" }, .selected = @intFromEnum(out.cc.server.config.compositor.taskbar_position), .owner = out, .on_change = &onTaskbarPositionChanged } }, .width = .{ .fixed = segmented_width } },
+ labelWidget(i18n.tr("Taskbar position")),
+ .{ .name = "taskbar_position", .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&.{ i18n.msg("Top"), i18n.msg("Bottom") }), .selected = @intFromEnum(out.cc.server.config.compositor.taskbar_position), .owner = out, .on_change = &onTaskbarPositionChanged } }, .width = .{ .fixed = segmented_width } },
};
const position_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.taskbar_position_children };
const taskbar_min: f32 = @floatFromInt(Taskbar.min_bar_height);
- const taskbar_row = pxGroup(out, px_taskbar_size, "Taskbar size", std.math.clamp(t.taskbar_size, taskbar_min, 84.0), taskbar_min, 84, 2, &PxHandler(px_taskbar_size, "taskbar_size", true).changed);
+ const taskbar_row = pxGroup(out, px_taskbar_size, i18n.tr("Taskbar size"), std.math.clamp(t.taskbar_size, taskbar_min, 84.0), taskbar_min, 84, 2, &PxHandler(px_taskbar_size, "taskbar_size", true).changed);
// A floating bar: its gap from the edge, its length and its corners. At
// 0 px, 100 % and 0 px it is the original flush, full-width, square bar.
- const edge_gap_row = pxGroup(out, px_taskbar_edge_gap, "Taskbar gap from edge", std.math.clamp(t.taskbar_edge_gap, 0.0, 48.0), 0, 48, 2, &PxHandler(px_taskbar_edge_gap, "taskbar_edge_gap", true).changed);
+ const edge_gap_row = pxGroup(out, px_taskbar_edge_gap, i18n.tr("Taskbar gap from edge"), std.math.clamp(t.taskbar_edge_gap, 0.0, 48.0), 0, 48, 2, &PxHandler(px_taskbar_edge_gap, "taskbar_edge_gap", true).changed);
out.px[px_taskbar_edge_gap].group_children[1].name = "taskbar_edge_gap";
- const length_row = unitGroup(out, px_taskbar_length, "Taskbar length", std.math.clamp(t.taskbar_length, 30.0, 100.0), 30, 100, 2, &UnitHandler(px_taskbar_length, "taskbar_length", true, "%").changed, "%");
+ const length_row = unitGroup(out, px_taskbar_length, i18n.tr("Taskbar length"), std.math.clamp(t.taskbar_length, 30.0, 100.0), 30, 100, 2, &UnitHandler(px_taskbar_length, "taskbar_length", true, "%").changed, "%");
out.px[px_taskbar_length].group_children[1].name = "taskbar_length";
- const radius_row = pxGroup(out, px_taskbar_radius, "Taskbar corner radius", std.math.clamp(t.taskbar_radius, 0.0, 42.0), 0, 42, 1, &PxHandler(px_taskbar_radius, "taskbar_radius", true).changed);
+ const radius_row = pxGroup(out, px_taskbar_radius, i18n.tr("Taskbar corner radius"), std.math.clamp(t.taskbar_radius, 0.0, 42.0), 0, 42, 1, &PxHandler(px_taskbar_radius, "taskbar_radius", true).changed);
out.px[px_taskbar_radius].group_children[1].name = "taskbar_radius";
// Also sets each pill's top/bottom margin within the bar (capped) —
// see Taskbar.chipVerticalMargin — so this one slider spaces chips on
// every side at once instead of only widening the horizontal gap.
- const chip_width_row = pxGroup(out, px_chip_width, "Window item width", t.chip_width, 64, 400, 4, &PxHandler(px_chip_width, "chip_width", true).changed);
- const chip_gap_row = pxGroup(out, px_chip_gap, "Window item gap", std.math.clamp(t.chip_gap, 0.0, 24.0), 0, 24, 2, &PxHandler(px_chip_gap, "chip_gap", true).changed);
- const start_gap_row = pxGroup(out, px_start_button_gap, "Start button gap", std.math.clamp(t.start_button_gap, 0.0, 40.0), 0, 40, 2, &PxHandler(px_start_button_gap, "start_button_gap", true).changed);
- const start_icon_row = pxGroup(out, px_start_icon_size, "Start button icon size", std.math.clamp(t.start_button_icon_size, 16.0, 42.0), 16, 42, 2, &PxHandler(px_start_icon_size, "start_button_icon_size", true).changed);
+ const chip_width_row = pxGroup(out, px_chip_width, i18n.tr("Window item width"), t.chip_width, 64, 400, 4, &PxHandler(px_chip_width, "chip_width", true).changed);
+ const chip_gap_row = pxGroup(out, px_chip_gap, i18n.tr("Window item gap"), std.math.clamp(t.chip_gap, 0.0, 24.0), 0, 24, 2, &PxHandler(px_chip_gap, "chip_gap", true).changed);
+ const start_gap_row = pxGroup(out, px_start_button_gap, i18n.tr("Start button gap"), std.math.clamp(t.start_button_gap, 0.0, 40.0), 0, 40, 2, &PxHandler(px_start_button_gap, "start_button_gap", true).changed);
+ const start_icon_row = pxGroup(out, px_start_icon_size, i18n.tr("Start button icon size"), std.math.clamp(t.start_button_icon_size, 16.0, 42.0), 16, 42, 2, &PxHandler(px_start_icon_size, "start_button_icon_size", true).changed);
out.clock_bold_children = .{
- labelWidget("Bold clock text"),
+ labelWidget(i18n.tr("Bold clock text")),
.{ .name = "clock_bold", .kind = .{ .toggle = .{ .on = theme.taskbar(.clock_bold), .owner = out, .on_change = &ClockStyle("clock_bold").changed } } },
};
out.clock_italic_children = .{
- labelWidget("Italic clock text"),
+ labelWidget(i18n.tr("Italic clock text")),
.{ .name = "clock_italic", .kind = .{ .toggle = .{ .on = theme.taskbar(.clock_italic), .owner = out, .on_change = &ClockStyle("clock_italic").changed } } },
};
const clock_bold_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.clock_bold_children };
@@ -834,62 +835,62 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
// Each section is an inset well of raised rows; a whole row is its grip.
inline for (0..taskbar_items.count) |i| {
out.item_controls[i] = .{
- .{ .kind = .{ .button = .{ .label = "Drag to move", .icon = .drag_handle, .variant = .ghost, .owner = out, .id = i } }, .width = .{ .fixed = 28 }, .height = .{ .fixed = 28 } },
+ .{ .kind = .{ .button = .{ .label = i18n.tr("Drag to move"), .icon = .drag_handle, .variant = .ghost, .owner = out, .id = i } }, .width = .{ .fixed = 28 }, .height = .{ .fixed = 28 } },
.{ .kind = .{ .text = .{ .content = "", .font_size = theme.global.app_text_size, .weight = 600, .color = pal.fg } }, .width = .{ .flex = 1 } },
.{ .kind = .{ .toggle = .{ .on = false, .owner = out, .on_change = &ItemToggle(i).changed } } },
};
out.item_rows[i] = .{ .kind = .{ .rect = itemRowStyle(false) }, .direction = .row, .gap = 8, .@"align" = .center, .padding = .{ .top = 6, .right = 10, .bottom = 6, .left = 6 }, .children = &out.item_controls[i] };
}
- inline for (.{ "LEFT", "CENTER", "RIGHT" }, .{ "left", "center", "right" }, 0..) |label, name, zone| {
+ inline for (.{ i18n.msg("LEFT"), i18n.msg("CENTER"), i18n.msg("RIGHT") }, .{ "left", "center", "right" }, 0..) |label, name, zone| {
out.items_placeholder_body[zone] = .{
.{ .kind = .container, .width = .{ .flex = 1 } },
// Slack: a fractional raster scale hints wider than the logical measure.
- .{ .kind = .{ .text = .{ .content = "Drag items here", .font_size = theme.global.settings_description_size, .color = pal.dim } }, .min_width = @import("ui").measure.textNatural("Drag items here", .sans, 400, theme.global.settings_description_size).w + 6 },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Drag items here"), .font_size = theme.global.settings_description_size, .color = pal.dim } }, .min_width = @import("ui").measure.textNatural(i18n.tr("Drag items here"), .sans, 400, theme.global.settings_description_size).w + 6 },
.{ .kind = .container, .width = .{ .flex = 1 } },
};
out.items_placeholder[zone] = .{.{ .kind = .container, .height = .{ .fixed = item_row_height }, .@"align" = .center, .children = &out.items_placeholder_body[zone] }};
out.items_section_children[zone] = .{
- sectionLabel(label),
+ sectionLabel(label.get()),
.{ .name = "taskbar_zone_" ++ name, .kind = .{ .rect = itemZoneStyle(false) }, .direction = .column, .gap = 6, .padding = layout.Edges.all(6), .@"align" = .stretch },
};
}
_ = syncItems(out, out.cc.server.config.compositor.taskbar_items, null);
out.items_children = .{
- labelWidget("Taskbar sections"),
- .{ .kind = .{ .text = .{ .content = "Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available.", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ labelWidget(i18n.tr("Taskbar sections")),
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Drag an item to reorder it or move it to another section. Switch it off to hide it. Battery appears when available."), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
.{ .kind = .container, .direction = .column, .gap = 6, .@"align" = .stretch, .children = &out.items_section_children[0] },
.{ .kind = .container, .direction = .column, .gap = 6, .@"align" = .stretch, .children = &out.items_section_children[1] },
.{ .kind = .container, .direction = .column, .gap = 6, .@"align" = .stretch, .children = &out.items_section_children[2] },
.{ .name = "taskbar_capture_notice", .kind = .{ .text = .{ .content = if (out.cc.server.config.compositor.taskbar_items.shown(.capture))
- "Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended."
+ i18n.tr("Screen capture appears while recording or sharing your screen. Keeping it enabled is recommended.")
else
- "Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended.", .font_size = theme.global.settings_description_size, .color = pal.dim } } },
+ i18n.tr("Warning: Screen capture is hidden. Recording and screen sharing can continue without a visible indicator or Stop sharing button. Hiding it is not recommended."), .font_size = theme.global.settings_description_size, .color = pal.dim } } },
};
const items_group: Widget = .{ .kind = .container, .direction = .column, .gap = 8, .@"align" = .stretch, .children = &out.items_children };
- out.taskbar_section_children = .{ panel.sectionTitle("Taskbar"), position_row, taskbar_row, edge_gap_row, length_row, radius_row, chip_width_row, chip_gap_row, start_gap_row, start_icon_row, clock_bold_row, clock_italic_row, items_group };
+ out.taskbar_section_children = .{ panel.sectionTitle(i18n.tr("Taskbar")), position_row, taskbar_row, edge_gap_row, length_row, radius_row, chip_width_row, chip_gap_row, start_gap_row, start_icon_row, clock_bold_row, clock_italic_row, items_group };
const taskbar_section: Widget = .{ .kind = .container, .direction = .column, .gap = 12, .children = &out.taskbar_section_children };
var output_box: wlr.Box = undefined;
out.cc.server.output_layout.getBox(out.cc.wlr_output, &output_box);
const menu_now = menu_size.wanted(t, @floatFromInt(output_box.width), @floatFromInt(output_box.height));
const menu_pinned = t.start_menu_width > 0 or t.start_menu_max_height > 0;
- const menu_width_row = pxGroup(out, px_menu_width, "Menu width", std.math.clamp(menu_now.width, menu_width_min, menu_width_max), menu_width_min, menu_width_max, 10, &PxHandler(px_menu_width, "start_menu_width", false).changed);
+ const menu_width_row = pxGroup(out, px_menu_width, i18n.tr("Menu width"), std.math.clamp(menu_now.width, menu_width_min, menu_width_max), menu_width_min, menu_width_max, 10, &PxHandler(px_menu_width, "start_menu_width", false).changed);
out.px[px_menu_width].group_children[1].name = "start_menu_width";
- const menu_height_row = pxGroup(out, px_menu_height, "Menu height", std.math.clamp(menu_now.height, menu_height_min, menu_height_max), menu_height_min, menu_height_max, 10, &PxHandler(px_menu_height, "start_menu_max_height", false).changed);
+ const menu_height_row = pxGroup(out, px_menu_height, i18n.tr("Menu height"), std.math.clamp(menu_now.height, menu_height_min, menu_height_max), menu_height_min, menu_height_max, 10, &PxHandler(px_menu_height, "start_menu_max_height", false).changed);
out.px[px_menu_height].group_children[1].name = "start_menu_height";
- const menu_left_row = pxGroup(out, px_menu_left, "Menu left padding", std.math.clamp(t.start_menu_left_pad, 0.0, 40.0), 0, 40, 2, &PxHandler(px_menu_left, "start_menu_left_pad", false).changed);
- const menu_bottom_row = pxGroup(out, px_menu_bottom, "Menu bottom padding", std.math.clamp(t.start_menu_bottom_pad, 0.0, 40.0), 0, 40, 2, &PxHandler(px_menu_bottom, "start_menu_bottom_pad", false).changed);
- const icon_left_row = pxGroup(out, px_icon_left, "Icon left padding", std.math.clamp(t.start_menu_icon_left_pad, 0.0, 32.0), 0, 32, 2, &PxHandler(px_icon_left, "start_menu_icon_left_pad", false).changed);
- const icon_bottom_row = pxGroup(out, px_icon_bottom, "Icon bottom padding", std.math.clamp(t.start_menu_icon_bottom_pad, 0.0, 24.0), 0, 24, 2, &PxHandler(px_icon_bottom, "start_menu_icon_bottom_pad", false).changed);
+ const menu_left_row = pxGroup(out, px_menu_left, i18n.tr("Menu left padding"), std.math.clamp(t.start_menu_left_pad, 0.0, 40.0), 0, 40, 2, &PxHandler(px_menu_left, "start_menu_left_pad", false).changed);
+ const menu_bottom_row = pxGroup(out, px_menu_bottom, i18n.tr("Menu bottom padding"), std.math.clamp(t.start_menu_bottom_pad, 0.0, 40.0), 0, 40, 2, &PxHandler(px_menu_bottom, "start_menu_bottom_pad", false).changed);
+ const icon_left_row = pxGroup(out, px_icon_left, i18n.tr("Icon left padding"), std.math.clamp(t.start_menu_icon_left_pad, 0.0, 32.0), 0, 32, 2, &PxHandler(px_icon_left, "start_menu_icon_left_pad", false).changed);
+ const icon_bottom_row = pxGroup(out, px_icon_bottom, i18n.tr("Icon bottom padding"), std.math.clamp(t.start_menu_icon_bottom_pad, 0.0, 24.0), 0, 24, 2, &PxHandler(px_icon_bottom, "start_menu_icon_bottom_pad", false).changed);
out.start_logo_buttons = .{
- .{ .name = "start_logo_choose", .kind = .{ .button = .{ .label = "Choose file…", .owner = out, .on_click = &onChooseStartLogo, .state = if (folder_picker.running()) .disabled else .idle } }, .width = .{ .fixed = 124 }, .height = .{ .fixed = 30 } },
- .{ .name = "start_logo_reset", .kind = .{ .button = .{ .label = "Reset to default", .owner = out, .on_click = &onResetStartLogo, .state = if (t.start_button_icon.len == 0 or folder_picker.running()) .disabled else .idle } }, .width = .{ .fixed = 140 }, .height = .{ .fixed = 30 } },
+ .{ .name = "start_logo_choose", .kind = .{ .button = .{ .label = i18n.tr("Choose file…"), .owner = out, .on_click = &onChooseStartLogo, .state = if (folder_picker.running()) .disabled else .idle } }, .width = .auto, .min_width = 124, .height = .{ .fixed = 30 } },
+ .{ .name = "start_logo_reset", .kind = .{ .button = .{ .label = i18n.tr("Reset to default"), .owner = out, .on_click = &onResetStartLogo, .state = if (t.start_button_icon.len == 0 or folder_picker.running()) .disabled else .idle } }, .width = .auto, .min_width = 140, .height = .{ .fixed = 30 } },
};
const logo = startLogoImage(out, arena, Taskbar.startIconSize());
const logo_note: []const u8 = out.start_logo_error orelse blk: {
- if (t.start_button_icon.len == 0) break :blk "Default R logo · PNG or SVG";
+ if (t.start_button_icon.len == 0) break :blk i18n.tr("Default R logo · PNG or SVG");
const name = std.fs.path.basename(t.start_button_icon);
- if (logo.failed) break :blk std.fmt.allocPrint(arena, "{s} could not be loaded · showing the default R", .{name}) catch name;
+ if (logo.failed) break :blk i18n.allocPrint(arena, i18n.tr("{name} could not be loaded · showing the default R"), .{ .name = name }) catch name;
break :blk name;
};
// The logo sits on the taskbar, so it is shown on the taskbar's colour.
@@ -918,24 +919,24 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
.{ .kind = .container, .direction = .column, .gap = 8, .justify = .center, .width = .{ .flex = 1 }, .children = &out.start_logo_info },
};
out.start_logo_children = .{
- labelWidget("Start button logo"),
+ labelWidget(i18n.tr("Start button logo")),
.{ .kind = .container, .direction = .row, .gap = 12, .@"align" = .center, .children = &out.start_logo_body },
};
const logo_row: Widget = .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.start_logo_children };
out.start_size_children = .{
- .{ .name = "start_menu_size_note", .kind = .{ .text = .{ .content = if (menu_pinned) "Custom size" else "Sized to fit your screen · move a slider to set your own", .font_size = theme.global.settings_description_size, .color = pal.dim } }, .width = .{ .flex = 1 } },
- .{ .name = "start_menu_size_auto", .kind = .{ .button = .{ .label = "Size to screen", .owner = out, .on_click = &onAutoMenuSize, .state = if (menu_pinned) .idle else .disabled } }, .width = .{ .fixed = 124 }, .height = .{ .fixed = 30 } },
+ .{ .name = "start_menu_size_note", .kind = .{ .text = .{ .content = if (menu_pinned) i18n.tr("Custom size") else i18n.tr("Sized to fit your screen · move a slider to set your own"), .font_size = theme.global.settings_description_size, .color = pal.dim } }, .width = .{ .flex = 1 } },
+ .{ .name = "start_menu_size_auto", .kind = .{ .button = .{ .label = i18n.tr("Size to screen"), .owner = out, .on_click = &onAutoMenuSize, .state = if (menu_pinned) .idle else .disabled } }, .width = .auto, .min_width = 124, .height = .{ .fixed = 30 } },
};
const menu_size_row: Widget = .{ .kind = .container, .direction = .row, .gap = 8, .@"align" = .center, .children = &out.start_size_children };
- out.start_menu_section_children = .{ panel.sectionTitle("Start menu"), logo_row, menu_width_row, menu_height_row, menu_size_row, menu_left_row, menu_bottom_row, icon_left_row, icon_bottom_row };
+ out.start_menu_section_children = .{ panel.sectionTitle(i18n.tr("Start menu")), logo_row, menu_width_row, menu_height_row, menu_size_row, menu_left_row, menu_bottom_row, icon_left_row, icon_bottom_row };
const start_menu_section: Widget = .{ .kind = .container, .direction = .column, .gap = 12, .children = &out.start_menu_section_children };
out.theme_actions = .{
- .{ .name = "theme_reset", .kind = .{ .button = .{ .label = "Reset to theme", .owner = out, .on_click = &onResetTheme } }, .height = .{ .fixed = 32 } },
- .{ .name = "theme_install", .kind = .{ .button = .{ .label = "Install theme…", .owner = out, .on_click = &onInstallTheme } }, .height = .{ .fixed = 32 } },
- .{ .name = "theme_remove", .kind = .{ .button = .{ .label = "Remove", .owner = out, .on_click = &onRemoveTheme, .state = if (matched_index != null and out.presets[matched_index.?].user_installed) .idle else .disabled } }, .height = .{ .fixed = 32 } },
- .{ .name = "theme_export", .kind = .{ .button = .{ .label = "Save look…", .owner = out, .on_click = &onExportTheme } }, .height = .{ .fixed = 32 } },
- .{ .name = "theme_replace", .kind = .{ .button = .{ .label = "Replace installed theme", .owner = out, .on_click = &onReplaceTheme, .state = if (out.theme_pending_path != null) .idle else .disabled } }, .height = .{ .fixed = 32 } },
+ .{ .name = "theme_reset", .kind = .{ .button = .{ .label = i18n.tr("Reset to theme"), .owner = out, .on_click = &onResetTheme } }, .height = .{ .fixed = 32 } },
+ .{ .name = "theme_install", .kind = .{ .button = .{ .label = i18n.tr("Install theme…"), .owner = out, .on_click = &onInstallTheme } }, .height = .{ .fixed = 32 } },
+ .{ .name = "theme_remove", .kind = .{ .button = .{ .label = i18n.tr("Remove"), .owner = out, .on_click = &onRemoveTheme, .state = if (matched_index != null and out.presets[matched_index.?].user_installed) .idle else .disabled } }, .height = .{ .fixed = 32 } },
+ .{ .name = "theme_export", .kind = .{ .button = .{ .label = i18n.tr("Save look…"), .owner = out, .on_click = &onExportTheme } }, .height = .{ .fixed = 32 } },
+ .{ .name = "theme_replace", .kind = .{ .button = .{ .label = i18n.tr("Replace installed theme"), .owner = out, .on_click = &onReplaceTheme, .state = if (out.theme_pending_path != null) .idle else .disabled } }, .height = .{ .fixed = 32 } },
};
var pack_preview: Widget = .{ .kind = .container };
out.theme_preview_pending = false;
@@ -954,56 +955,56 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
}
const pack_controls = arena.dupe(Widget, &.{
.{ .kind = .container, .direction = .row, .gap = 8, .children = out.theme_actions[0..4] },
- .{ .kind = .{ .text = .{ .content = out.theme_message, .font_size = theme.global.app_status_size, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = if (out.theme_message.len > 0) out.theme_message else i18n.tr("Packs include colours and artwork. Personal edits are saved as overrides."), .font_size = theme.global.app_status_size, .color = pal.dim } } },
.{ .kind = .container, .children = if (out.theme_pending_path != null) out.theme_actions[4..5] else &.{} },
pack_preview,
}) catch @constCast(&[_]Widget{});
const icon_themes = @import("../../icon_theme.zig").listNames(arena, server.io, server.icon_theme_cfg) catch &.{};
out.icon_theme_names = icon_themes;
const icon_labels = arena.dupe([]const u8, icon_themes) catch @constCast(icon_themes);
- if (icon_labels.len > 0) icon_labels[0] = "System default";
+ if (icon_labels.len > 0) icon_labels[0] = i18n.tr("System default");
var icon_selected: ?usize = null;
for (icon_themes, 0..) |name, i| if (std.mem.eql(u8, name, server.config.compositor.icon_theme)) {
icon_selected = i;
};
out.icon_theme_row = .{
- labelWidget("Icon theme"),
- .{ .name = "icon_theme", .kind = .{ .select = .{ .labels = icon_labels, .selected = icon_selected, .placeholder = "Pack or system default", .owner = out, .on_change = &onIconThemePicked } }, .width = .{ .fixed = segmented_width } },
+ labelWidget(i18n.tr("Icon theme")),
+ .{ .name = "icon_theme", .kind = .{ .select = .{ .labels = icon_labels, .selected = icon_selected, .placeholder = i18n.tr("Pack or system default"), .owner = out, .on_change = &onIconThemePicked } }, .width = .{ .fixed = segmented_width } },
};
out.dock_children = .{
- labelWidget("RediWM dock"),
+ labelWidget(i18n.tr("RediWM dock")),
.{ .name = "dock_enabled", .kind = .{ .toggle = .{ .on = out.cc.server.config.compositor.dock_enabled, .owner = out, .on_change = &onDockChanged } } },
};
out.dock_position_children = .{
- labelWidget("Dock position"),
- .{ .name = "dock_position", .kind = .{ .segmented = .{ .labels = &.{ "Top", "Bottom", "Left", "Right" }, .selected = @intFromEnum(server.config.compositor.dock_position), .owner = out, .on_change = &onDockPositionChanged } }, .width = .{ .fixed = segmented_width } },
+ labelWidget(i18n.tr("Dock position")),
+ .{ .name = "dock_position", .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&.{ i18n.msg("Top"), i18n.msg("Bottom"), i18n.msg("Left"), i18n.msg("Right") }), .selected = @intFromEnum(server.config.compositor.dock_position), .owner = out, .on_change = &onDockPositionChanged } }, .width = .{ .fixed = segmented_width } },
};
out.dock_auto_hide_children = .{
- labelWidget("Auto-hide dock"),
+ labelWidget(i18n.tr("Auto-hide dock")),
.{ .name = "dock_auto_hide", .kind = .{ .toggle = .{ .on = server.config.compositor.dock_auto_hide, .owner = out, .on_change = &onDockAutoHideChanged } } },
};
- const dock_height_row = pxGroup(out, px_dock_height, "Dock size", @floatFromInt(server.config.compositor.dock_height), @floatFromInt(loader.dock_height_min), @floatFromInt(loader.dock_height_max), 2, &onDockHeightChanged);
+ const dock_height_row = pxGroup(out, px_dock_height, i18n.tr("Dock size"), @floatFromInt(server.config.compositor.dock_height), @floatFromInt(loader.dock_height_min), @floatFromInt(loader.dock_height_max), 2, &onDockHeightChanged);
out.px[px_dock_height].group_children[1].name = "dock_height";
- const dock_zoom_row = pxGroup(out, px_dock_hover_zoom, "Dock hover zoom (1.00× disables)", server.config.compositor.dock_hover_zoom, 1, loader.dock_hover_zoom_max, 0.05, &onDockHoverZoomChanged);
+ const dock_zoom_row = pxGroup(out, px_dock_hover_zoom, i18n.tr("Dock hover zoom (1.00× disables)"), server.config.compositor.dock_hover_zoom, 1, loader.dock_hover_zoom_max, 0.05, &onDockHoverZoomChanged);
out.px[px_dock_hover_zoom].group_children[1].name = "dock_hover_zoom";
updateDockZoomLabel(out);
// The slider shows the opacity the dock is drawn with, whether the theme or
// `dock_opacity` set it; the radius, whether it is the dock's own or the windows'.
const dock_pal = theme.shellPalette();
- const dock_opacity_row = unitGroup(out, px_dock_opacity, "Dock opacity", @round(dock_mod.background(&server.config.compositor, dock_pal)[3] * 100), 0, 100, 1, &onDockOpacityChanged, "%");
+ const dock_opacity_row = unitGroup(out, px_dock_opacity, i18n.tr("Dock opacity"), @round(dock_mod.background(&server.config.compositor, dock_pal)[3] * 100), 0, 100, 1, &onDockOpacityChanged, "%");
out.px[px_dock_opacity].group_children[1].name = "dock_opacity";
- const dock_radius_row = pxGroup(out, px_dock_radius, "Dock corner radius", std.math.clamp(dock_mod.cornerRadius(dock_pal), dock_radius_min, dock_radius_max), dock_radius_min, dock_radius_max, 1, &PxHandler(px_dock_radius, "dock_radius", false).changed);
+ const dock_radius_row = pxGroup(out, px_dock_radius, i18n.tr("Dock corner radius"), std.math.clamp(dock_mod.cornerRadius(dock_pal), dock_radius_min, dock_radius_max), dock_radius_min, dock_radius_max, 1, &PxHandler(px_dock_radius, "dock_radius", false).changed);
out.px[px_dock_radius].group_children[1].name = "dock_radius";
out.dock_active_children = .{
- labelWidget("Highlight active app"),
+ labelWidget(i18n.tr("Highlight active app")),
.{ .name = "dock_active_highlight", .kind = .{ .toggle = .{ .on = server.config.compositor.dock_active_highlight, .owner = out, .on_change = &onDockActiveHighlightChanged } } },
};
out.dock_trash_children = .{
- labelWidget("Show Trash"),
+ labelWidget(i18n.tr("Show Trash")),
.{ .name = "dock_show_trash", .kind = .{ .toggle = .{ .on = server.config.compositor.dock_show_trash, .owner = out, .on_change = &onDockShowTrashChanged } } },
};
out.dock_group_children = .{
- panel.sectionTitle("Dock"),
+ panel.sectionTitle(i18n.tr("Dock")),
.{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.dock_children },
.{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.dock_position_children },
.{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.dock_auto_hide_children },
@@ -1042,7 +1043,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
inactive_opacity_row,
terminal_opacity_row,
window_gap_row,
- pxGroup(out, px_scrollbar_width, "Scrollbar width", t.scrollbar_width, 4, 24, 1, &PxHandler(px_scrollbar_width, "scrollbar_width", false).changed),
+ pxGroup(out, px_scrollbar_width, i18n.tr("Scrollbar width"), t.scrollbar_width, 4, 24, 1, &PxHandler(px_scrollbar_width, "scrollbar_width", false).changed),
.{ .kind = .container, .direction = .column, .gap = 12, .children = &out.dock_group_children },
taskbar_section,
start_menu_section,
@@ -1051,7 +1052,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
for (groups, &out.group_cards) |group, *card| {
const start = at;
if (group.title) |title| {
- out.group_storage[at] = panel.sectionTitle(title);
+ out.group_storage[at] = panel.sectionTitle(title.get());
at += 1;
}
for (group.rows) |row| {
@@ -1062,7 +1063,7 @@ pub fn build(out: *Section, cc: *panel.ControlCenter) void {
card.* = if (group.title == null) out.group_storage[start] else .{ .kind = .container, .direction = .column, .gap = 16, .children = out.group_storage[start..at] };
}
out.top_children = .{
- .{ .kind = .{ .text = .{ .content = "APPEARANCE", .font_size = theme.global.app_heading_size, .weight = 700, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("APPEARANCE"), .font_size = theme.global.app_heading_size, .weight = 700, .color = pal.dim } } },
.{ .kind = .container, .direction = .column, .gap = 12, .children = &out.group_cards },
};
out.root = .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.top_children };
@@ -1106,12 +1107,12 @@ pub const Row = enum {
};
pub const row_count = std.meta.fields(Row).len;
-pub const groups = [_]struct { title: ?[]const u8, rows: []const Row }{
- .{ .title = "Themes & colours", .rows = &.{ .theme, .taskbar_theme, .theme_pack, .icon_theme, .dark_mode, .app_colors } },
- .{ .title = "Wallpaper", .rows = &.{.wallpaper} },
- .{ .title = "Fonts & cursor", .rows = &.{ .font_family, .font_size, .cursor } },
- .{ .title = "Windows", .rows = &.{ .radius, .shadow, .edge_glow, .chrome_opacity, .window_tabs, .inactive_dim, .inactive_opacity, .terminal_opacity, .window_gap, .scrollbar_width } },
- .{ .title = "Motion & feedback", .rows = &.{ .animations, .animation_speed, .reduced_motion, .focus_zoom, .drag_feedback, .drag_scale, .dodge_file_drags, .launch_splash } },
+pub const groups = [_]struct { title: ?i18n.Message, rows: []const Row }{
+ .{ .title = i18n.msg("Themes & colours"), .rows = &.{ .theme, .taskbar_theme, .theme_pack, .icon_theme, .dark_mode, .app_colors } },
+ .{ .title = i18n.msg("Wallpaper"), .rows = &.{.wallpaper} },
+ .{ .title = i18n.msg("Fonts & cursor"), .rows = &.{ .font_family, .font_size, .cursor } },
+ .{ .title = i18n.msg("Windows"), .rows = &.{ .radius, .shadow, .edge_glow, .chrome_opacity, .window_tabs, .inactive_dim, .inactive_opacity, .terminal_opacity, .window_gap, .scrollbar_width } },
+ .{ .title = i18n.msg("Motion & feedback"), .rows = &.{ .animations, .animation_speed, .reduced_motion, .focus_zoom, .drag_feedback, .drag_scale, .dodge_file_drags, .launch_splash } },
.{ .title = null, .rows = &.{.dock} },
.{ .title = null, .rows = &.{.taskbar} },
.{ .title = null, .rows = &.{.start_menu} },
diff --git a/src/control_center/sections/appearance_chrome.zig b/src/control_center/sections/appearance_chrome.zig
index 3b3a974..32ba8f2 100644
--- a/src/control_center/sections/appearance_chrome.zig
+++ b/src/control_center/sections/appearance_chrome.zig
@@ -194,7 +194,7 @@ pub fn onFocusZoomChanged(owner: ?*anyopaque, _: usize, index: usize) void {
};
server.config.compositor.focus_zoom = mode;
server.world.refreshFocusZoom();
- s.focus_zoom_children[2].kind.text.content = focus_zoom_descriptions[index];
+ s.focus_zoom_children[2].kind.text.content = focus_zoom_descriptions[index].get();
s.focus_zoom_children[2].markDirty();
}
diff --git a/src/control_center/sections/appearance_colors.zig b/src/control_center/sections/appearance_colors.zig
index 1685c04..70334ff 100644
--- a/src/control_center/sections/appearance_colors.zig
+++ b/src/control_center/sections/appearance_colors.zig
@@ -1,5 +1,6 @@
//! Appearance app colours: applying the accent to GTK and Qt apps and reporting the result.
+const i18n = @import("i18n");
const std = @import("std");
const layout = @import("ui").layout;
const theme = @import("ui").theme;
@@ -11,22 +12,23 @@ const section = @import("appearance_dock.zig").section;
const Section = @import("appearance.zig").Section;
pub fn appColorsNote(s: *Section, a: std.mem.Allocator, color: [4]f32) Widget {
+ const message = if (s.app_colors_message.len > 0) s.app_colors_message else i18n.tr("Uses the main theme. Apply again after changing it; restart apps to see the colors.");
const text = @import("ui").text;
const width: f32 = @floatFromInt(@max(120, s.cc.panel_box.width - @as(i32, if (s.cc.panel_box.width < 660) 70 else 238) - 100));
var lines: std.ArrayList(Widget) = .empty;
var start: usize = 0;
- var words = std.mem.tokenizeScalar(u8, s.app_colors_message, ' ');
+ var words = std.mem.tokenizeScalar(u8, message, ' ');
var end: usize = 0;
while (words.next()) |word| {
- const next = @intFromPtr(word.ptr) - @intFromPtr(s.app_colors_message.ptr) + word.len;
- const measured = text.measureWidthF(s.app_colors_message[start..next], .manrope, theme.global.settings_description_size, 1) catch 0;
+ const next = @intFromPtr(word.ptr) - @intFromPtr(message.ptr) + word.len;
+ const measured = text.measureWidthF(message[start..next], .manrope, theme.global.settings_description_size, 1) catch 0;
if (end > start and measured > width) {
- lines.append(a, .{ .name = std.fmt.allocPrint(a, "app_colors_status_{d}", .{lines.items.len}) catch "app_colors_status_line", .kind = .{ .text = .{ .content = s.app_colors_message[start..end], .font_size = theme.global.settings_description_size, .color = color } } }) catch break;
+ lines.append(a, .{ .name = std.fmt.allocPrint(a, "app_colors_status_{d}", .{lines.items.len}) catch "app_colors_status_line", .kind = .{ .text = .{ .content = message[start..end], .font_size = theme.global.settings_description_size, .color = color } } }) catch break;
start = next - word.len;
}
end = next;
}
- if (end > start) lines.append(a, .{ .name = std.fmt.allocPrint(a, "app_colors_status_{d}", .{lines.items.len}) catch "app_colors_status_line", .kind = .{ .text = .{ .content = s.app_colors_message[start..end], .font_size = theme.global.settings_description_size, .color = color } } }) catch {};
+ if (end > start) lines.append(a, .{ .name = std.fmt.allocPrint(a, "app_colors_status_{d}", .{lines.items.len}) catch "app_colors_status_line", .kind = .{ .text = .{ .content = message[start..end], .font_size = theme.global.settings_description_size, .color = color } } }) catch {};
return .{ .name = "app_colors_status", .kind = .container, .direction = .column, .gap = 2, .children = lines.toOwnedSlice(a) catch &.{} };
}
@@ -50,16 +52,16 @@ pub fn onApplyAppColors(owner: ?*anyopaque, id: usize) void {
};
s.app_colors_job = job;
s.app_colors_source = source;
- s.app_colors_message = "Applying app colors…";
+ s.app_colors_message = i18n.tr("Applying app colors…");
s.cc.refresh();
}
pub fn appColorsFailure(s: *Section, err: anyerror) void {
s.app_colors_message = switch (err) {
- error.QtToolsMissing => "Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again.",
- error.ManagedSymlink => "A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder.",
- error.InvalidManagedCss => "The RediWM block in gtk.css is incomplete. Repair it before applying colors.",
- else => std.fmt.bufPrint(&s.app_colors_message_buf, "Could not apply app colors: {s}. Check your configuration files and permissions.", .{@errorName(err)}) catch "Could not apply app colors. Check your configuration files and permissions.",
+ error.QtToolsMissing => i18n.tr("Install qt5ct for Qt 5 apps or qt6ct for Qt 6 apps, then apply again."),
+ error.ManagedSymlink => i18n.tr("A toolkit config folder is a symlink. Apply the colors in its real location, or make it a regular folder."),
+ error.InvalidManagedCss => i18n.tr("The RediWM block in gtk.css is incomplete. Repair it before applying colors."),
+ else => i18n.fmt(&s.app_colors_message_buf, i18n.tr("Could not apply app colors: {reason}. Check your configuration files and permissions."), .{ .reason = @errorName(err) }) catch i18n.tr("Could not apply app colors. Check your configuration files and permissions."),
};
std.log.warn("app colors export failed: {}", .{err});
s.cc.refresh();
@@ -79,13 +81,13 @@ pub fn finishAppColors(s: *Section, refresh: bool) void {
if (job.toolkit == .qt) s.cc.server.qt_app_colors = true;
if (!refresh) return;
s.app_colors_message = switch (job.toolkit) {
- .gtk => "GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ.",
+ .gtk => i18n.tr("GTK colors applied. Restart GTK apps. Apps with their own styles or sandbox settings may differ."),
.qt => if (support.qt5 and support.qt6)
- "Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change."
+ i18n.tr("Qt 5 and Qt 6 colors applied. Restart apps; sign in again if their colors do not change.")
else if (support.qt6)
- "Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change."
+ i18n.tr("Qt 6 colors applied. Install qt5ct for Qt 5 apps. Restart apps; sign in again if their colors do not change.")
else
- "Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change.",
+ i18n.tr("Qt 5 colors applied. Install qt6ct for Qt 6 apps. Restart apps; sign in again if their colors do not change."),
};
s.cc.refresh();
}
diff --git a/src/control_center/sections/appearance_themes.zig b/src/control_center/sections/appearance_themes.zig
index 265c151..f0bd877 100644
--- a/src/control_center/sections/appearance_themes.zig
+++ b/src/control_center/sections/appearance_themes.zig
@@ -1,5 +1,6 @@
//! Appearance themes: applying and saving, start logo, packs, import and export.
+const i18n = @import("i18n");
const std = @import("std");
const Server = @import("../../Server.zig");
const theme = @import("ui").theme;
@@ -52,13 +53,13 @@ pub fn onChooseStartLogo(owner: ?*anyopaque, _: usize) void {
const server = s.cc.server;
s.start_logo_error = null;
folder_picker.startWithOptions(server, .{
- .title = "Choose Start button logo",
- .accept_label = "Use logo",
+ .title = i18n.tr("Choose Start button logo"),
+ .accept_label = i18n.tr("Use logo"),
.current_folder = std.fs.path.dirname(theme.global.start_button_icon) orelse "",
- .filters = &.{.{ .name = "PNG and SVG images", .rules = &.{ .{ .kind = 0, .value = "*.png" }, .{ .kind = 0, .value = "*.svg" } } }},
+ .filters = &.{.{ .name = i18n.tr("PNG and SVG images"), .rules = &.{ .{ .kind = 0, .value = "*.png" }, .{ .kind = 0, .value = "*.svg" } } }},
}, server, &onStartLogoChosen) catch |err| {
std.log.warn("could not open the logo chooser: {}", .{err});
- s.start_logo_error = "Could not open the file chooser.";
+ s.start_logo_error = i18n.tr("Could not open the file chooser.");
};
s.cc.refresh();
}
@@ -70,7 +71,7 @@ pub fn onStartLogoChosen(owner: ?*anyopaque, path: ?[]const u8) void {
// Theme strings use a literal, double-quoted TOML dialect.
if (!std.fs.path.isAbsolute(picked) or std.mem.indexOfAny(u8, picked, "\"\\\n\r\t") != null) {
if (server.input.open_control_center) |cc| {
- cc.appearance.start_logo_error = "Choose a path without quotes, backslashes or control characters.";
+ cc.appearance.start_logo_error = i18n.tr("Choose a path without quotes, backslashes or control characters.");
cc.refresh();
}
return;
@@ -126,13 +127,13 @@ pub fn onResetTheme(owner: ?*anyopaque, _: usize) void {
}
pub fn themeFailure(server: *Server, err: anyerror) void {
if (server.input.open_control_center) |cc| {
- cc.appearance.theme_message = std.fmt.bufPrint(&cc.appearance.theme_message_buf, "Theme operation failed: {s}", .{@errorName(err)}) catch "Theme operation failed.";
+ cc.appearance.theme_message = i18n.fmt(&cc.appearance.theme_message_buf, i18n.tr("Theme operation failed: {reason}"), .{ .reason = @errorName(err) }) catch i18n.tr("Theme operation failed.");
cc.refresh();
}
}
pub fn onInstallTheme(owner: ?*anyopaque, _: usize) void {
const server = section(owner).cc.server;
- folder_picker.startWithOptions(server, .{ .title = "Install theme", .accept_label = "Install", .filters = &.{.{ .name = "Theme packs", .rules = &.{ .{ .kind = 0, .value = "*.rediwm-theme" }, .{ .kind = 0, .value = "*.zip" } } }} }, server, themeFileChosen) catch |err| themeFailure(server, err);
+ folder_picker.startWithOptions(server, .{ .title = i18n.tr("Install theme"), .accept_label = i18n.tr("Install"), .filters = &.{.{ .name = i18n.tr("Theme packs"), .rules = &.{ .{ .kind = 0, .value = "*.rediwm-theme" }, .{ .kind = 0, .value = "*.zip" } } }} }, server, themeFileChosen) catch |err| themeFailure(server, err);
}
pub fn themeFileChosen(owner: ?*anyopaque, path: ?[]const u8) void {
const server: *Server = @ptrCast(@alignCast(owner orelse return));
@@ -166,7 +167,7 @@ pub fn onRemoveTheme(owner: ?*anyopaque, _: usize) void {
}
pub fn onExportTheme(owner: ?*anyopaque, _: usize) void {
const server = section(owner).cc.server;
- folder_picker.startWithOptions(server, .{ .mode = .save, .title = "Save current look as theme", .current_name = "my-theme.rediwm-theme", .accept_label = "Save" }, server, exportFileChosen) catch |err| themeFailure(server, err);
+ folder_picker.startWithOptions(server, .{ .mode = .save, .title = i18n.tr("Save current look as theme"), .current_name = "my-theme.rediwm-theme", .accept_label = i18n.tr("Save") }, server, exportFileChosen) catch |err| themeFailure(server, err);
}
pub fn exportFileChosen(owner: ?*anyopaque, path: ?[]const u8) void {
const server: *Server = @ptrCast(@alignCast(owner orelse return));
diff --git a/src/control_center/sections/appearance_wallpaper.zig b/src/control_center/sections/appearance_wallpaper.zig
index dc9bdda..e024c7a 100644
--- a/src/control_center/sections/appearance_wallpaper.zig
+++ b/src/control_center/sections/appearance_wallpaper.zig
@@ -1,5 +1,6 @@
//! Appearance wallpaper strip: tiles, folder choice, thumbnails and teardown.
+const i18n = @import("i18n");
const std = @import("std");
const Server = @import("../../Server.zig");
const layout = @import("ui").layout;
@@ -113,7 +114,7 @@ pub fn buildWallpaper(out: *Section, arena: std.mem.Allocator) void {
labels = l;
} else |_| {}
out.wallpaper_row_children = .{
- labelWidget("Image"),
+ labelWidget(i18n.tr("Image")),
.{
.name = "wallpaper",
.kind = .{
@@ -160,15 +161,16 @@ pub fn buildWallpaper(out: *Section, arena: std.mem.Allocator) void {
const dir = wallpapers.userDir(arena) catch "";
const hint = if (folder) |f|
- std.fmt.allocPrint(arena, "Images in {s}", .{tildePath(arena, f)}) catch "Images in the chosen folder"
+ i18n.allocPrint(arena, i18n.tr("Images in {folder}"), .{ .folder = tildePath(arena, f) }) catch i18n.tr("Images in the chosen folder")
else
- std.fmt.allocPrint(arena, "Add your own images to {s}", .{tildePath(arena, dir)}) catch "Add your own images";
+ i18n.allocPrint(arena, i18n.tr("Add your own images to {folder}"), .{ .folder = tildePath(arena, dir) }) catch i18n.tr("Add your own images");
out.wallpaper_footer_children = .{
.{ .kind = .{ .text = .{ .content = hint, .font_size = theme.global.settings_description_size, .color = pal.dim } }, .width = .{ .flex = 1 } },
.{
.name = "wallpaper_folder",
- .kind = .{ .button = .{ .label = "Choose folder", .owner = out, .on_click = &onChooseWallpaperFolder, .state = if (folder_picker.running()) .disabled else .idle } },
- .width = .{ .fixed = 124 },
+ .kind = .{ .button = .{ .label = i18n.tr("Choose folder"), .owner = out, .on_click = &onChooseWallpaperFolder, .state = if (folder_picker.running()) .disabled else .idle } },
+ .width = .auto,
+ .min_width = 124,
.height = .{ .fixed = 30 },
},
};
@@ -182,7 +184,7 @@ pub fn buildStrip(out: *Section, arena: std.mem.Allocator, pal: theme.Theme, cur
const n = out.strip_entries.len;
if (n == 0) {
const note = arena.alloc(Widget, 1) catch return .{ .kind = .container };
- note[0] = .{ .kind = .{ .text = .{ .content = "No images in this folder", .font_size = theme.global.settings_description_size, .color = pal.dim } } };
+ note[0] = .{ .kind = .{ .text = .{ .content = i18n.tr("No images in this folder"), .font_size = theme.global.settings_description_size, .color = pal.dim } } };
return .{ .name = "wallpaper_strip_empty", .kind = .container, .direction = .row, .children = note };
}
const tiles = arena.alloc(Widget, n) catch return .{ .kind = .container };
@@ -298,7 +300,7 @@ pub fn onChooseWallpaperFolder(owner: ?*anyopaque, _: usize) void {
};
break :blk dir;
};
- folder_picker.start(server, "Choose wallpaper folder", start, server, &onFolderChosen) catch |err| {
+ folder_picker.start(server, i18n.tr("Choose wallpaper folder"), start, server, &onFolderChosen) catch |err| {
std.log.warn("could not open the folder chooser: {}", .{err});
return;
};
diff --git a/src/control_center/sections/bluetooth.zig b/src/control_center/sections/bluetooth.zig
index 20135f2..9573a5f 100644
--- a/src/control_center/sections/bluetooth.zig
+++ b/src/control_center/sections/bluetooth.zig
@@ -1,4 +1,5 @@
//! Bluetooth device list and details, using the shared settings widgets.
+const i18n = @import("i18n");
const std = @import("std");
const ui = @import("ui");
const panel = @import("../panel.zig");
@@ -115,10 +116,10 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: A) !W {
const enabled = if (ad) |adapter| adapter.powered else false;
const busy = if (m) |manager| manager.busy else false;
const scanning = if (m) |manager| manager.scan_path.len > 0 else false;
- var radio_label = try group(a, .column, &.{ text("Bluetooth", 24, false), text("Connect and manage your Bluetooth devices.", 13, true) });
+ var radio_label = try group(a, .column, &.{ text(i18n.tr("Bluetooth"), 24, false), text(i18n.tr("Connect and manage your Bluetooth devices."), 13, true) });
radio_label.width = .{ .flex = 1 };
radio_label.gap = 6;
- var pair = button(cc, "bluetooth_scan", if (scanning) "Stop Searching" else "Pair New Device", 0, !enabled or busy);
+ var pair = button(cc, "bluetooth_scan", if (scanning) i18n.tr("Stop Searching") else i18n.tr("Pair New Device"), 0, !enabled or busy);
pair.kind.button.variant = .primary;
pair.kind.button.leading_icon = if (scanning) .close else .plus;
var controls = try group(a, .row, &.{ radio_label, toggle(cc, "bluetooth_enabled", 0, enabled, ad == null or busy), pair });
@@ -152,11 +153,11 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: A) !W {
}
fn deviceList(s: *Section, cc: *panel.ControlCenter, a: A, enabled: bool) !W {
const m = cc.server.bluetooth;
- if (s.search_data == null) s.search_data = .{ .placeholder = "Search devices…", .value = try gpa.dupe(u8, ""), .field = .{ .leading_icon = .search }, .owner = cc, .on_change = searchChanged };
+ if (s.search_data == null) s.search_data = .{ .placeholder = i18n.tr("Search devices…"), .value = try gpa.dupe(u8, ""), .field = .{ .leading_icon = .search }, .owner = cc, .on_change = searchChanged };
var items: std.ArrayList(W) = .empty;
- try items.append(a, panel.sectionTitle(if (s.nearby) "Available Devices" else "Paired Devices"));
+ try items.append(a, panel.sectionTitle(if (s.nearby) i18n.tr("Available Devices") else i18n.tr("Paired Devices")));
try items.append(a, .{ .name = "bluetooth_search", .kind = .{ .text_input = s.search_data.? }, .height = .{ .fixed = 36 }, .width = .{ .percent = 1 } });
- if (s.nearby) try items.append(a, button(cc, "bluetooth_paired", "Show Paired Devices", 1, false));
+ if (s.nearby) try items.append(a, button(cc, "bluetooth_paired", i18n.tr("Show Paired Devices"), 1, false));
var rows: std.ArrayList(W) = .empty;
var count: usize = 0;
if (m) |manager| for (manager.devices[0..manager.count]) |*d| {
@@ -164,7 +165,7 @@ fn deviceList(s: *Section, cc: *panel.ControlCenter, a: A, enabled: bool) !W {
if (s.search_data.?.value.len > 0 and std.ascii.indexOfIgnoreCase(d.title(), s.search_data.?.value) == null and std.ascii.indexOfIgnoreCase(d.address.slice(), s.search_data.?.value) == null) continue;
const selected = eq(u8, d.path.slice(), s.selected.slice());
s.rows[count] = d.path;
- const state = if (d.connected) "Connected" else if (d.blocked) "Blocked" else if (d.paired) "Not connected" else "Ready to pair";
+ const state = if (d.connected) i18n.tr("Connected") else if (d.blocked) i18n.tr("Blocked") else if (d.paired) i18n.tr("Not connected") else i18n.tr("Ready to pair");
const subtitle = if (d.battery) |pct| try std.fmt.allocPrint(a, "{s} · {d}%", .{ state, pct }) else state;
var labels = try group(a, .column, &.{ text(try a.dupe(u8, d.title()), 14, false), try status(a, subtitle, d.connected) });
labels.width = .{ .flex = 1 };
@@ -173,7 +174,7 @@ fn deviceList(s: *Section, cc: *panel.ControlCenter, a: A, enabled: bool) !W {
count += 1;
};
if (count == 0) {
- const message: []const u8 = if (m == null or !m.?.available) "Bluetooth service is unavailable" else if (m.?.adapter_count == 0) "No Bluetooth adapter found" else if (!enabled) "Bluetooth is turned off" else if (s.search_data.?.value.len > 0) "No matching devices" else if (s.nearby) "Put your device in pairing mode. Nearby devices appear here." else "No paired devices. Choose Pair New Device to get started.";
+ const message: []const u8 = if (m == null or !m.?.available) i18n.tr("Bluetooth service is unavailable") else if (m.?.adapter_count == 0) i18n.tr("No Bluetooth adapter found") else if (!enabled) i18n.tr("Bluetooth is turned off") else if (s.search_data.?.value.len > 0) i18n.tr("No matching devices") else if (s.nearby) i18n.tr("Put your device in pairing mode. Nearby devices appear here.") else i18n.tr("No paired devices. Choose Pair New Device to get started.");
try rows.append(a, text(message, 13, true));
}
var list = try group(a, .column, rows.items);
@@ -198,12 +199,16 @@ fn setting(cc: *panel.ControlCenter, a: A, title: []const u8, description: []con
fn deviceDetails(s: *Section, cc: *panel.ControlCenter, a: A) !W {
const m = cc.server.bluetooth;
const d = if (m) |manager| manager.find(s.selected) else null;
- if (d == null) return card(a, &.{ icon(.bluetooth, 48), panel.sectionTitle("Select a device"), text("View its connection, battery and device settings.", 13, true) });
+ if (d == null) {
+ const available_width = @as(f32, @floatFromInt(cc.panel_box.width)) - panel.sidebarWidth(cc) - 100;
+ const description_width = if (cc.panel_box.width < 1000) available_width else (available_width - 16) * 1.25 / 2.25 - 32;
+ return card(a, &.{ icon(.bluetooth, 48), panel.sectionTitle(i18n.tr("Select a device")), try panel.paragraph(a, i18n.tr("View its connection, battery and device settings."), description_width, 13, true) });
+ }
const dev = d.?;
const manager = m.?;
const ad = manager.adapter(dev.adapter);
const disabled = manager.busy or ad == null or !ad.?.powered;
- var name = try group(a, .column, &.{ text(try a.dupe(u8, dev.title()), 20, false), text(try a.dupe(u8, dev.address.slice()), 12, true), try status(a, if (dev.connected) "Connected" else "Not connected", dev.connected) });
+ var name = try group(a, .column, &.{ text(try a.dupe(u8, dev.title()), 20, false), text(try a.dupe(u8, dev.address.slice()), 12, true), try status(a, if (dev.connected) i18n.tr("Connected") else i18n.tr("Not connected"), dev.connected) });
name.width = .{ .flex = 1 };
name.gap = 7;
var badge: W = .{ .kind = .container, .width = .{ .fixed = 0 } };
@@ -212,27 +217,27 @@ fn deviceDetails(s: *Section, cc: *panel.ControlCenter, a: A) !W {
var items: std.ArrayList(W) = .empty;
try items.append(a, header);
if (dev.battery != null) try items.append(a, badge);
- if (dev.rssi) |rssi| try items.append(a, try card(a, &.{ panel.sectionTitle("Connection"), text(try std.fmt.allocPrint(a, "Last reported signal: {d} dBm", .{rssi}), 13, true) }));
+ if (dev.rssi) |rssi| try items.append(a, try card(a, &.{ panel.sectionTitle(i18n.tr("Connection")), text(try i18n.allocPrint(a, i18n.tr("Last reported signal: {signal} dBm"), .{ .signal = rssi }), 13, true) }));
if (manager.pairing != null and eq(u8, manager.pairing.?.slice(), dev.path.slice())) {
try items.append(a, try pairing(s, cc, a));
} else {
- var connect = button(cc, "bluetooth_connect", if (!dev.paired) "Pair Device" else if (dev.connected) "Disconnect" else "Connect", 2, disabled or dev.blocked or (!dev.paired and !manager.agent_ready));
+ var connect = button(cc, "bluetooth_connect", if (!dev.paired) i18n.tr("Pair Device") else if (dev.connected) i18n.tr("Disconnect") else i18n.tr("Connect"), 2, disabled or dev.blocked or (!dev.paired and !manager.agent_ready));
connect.kind.button.variant = .primary;
try items.append(a, connect);
}
var profiles: std.ArrayList(W) = .empty;
- try profiles.append(a, panel.sectionTitle("Profiles"));
- if (dev.audio) try profiles.append(a, try group(a, .row, &.{ icon(.music, 20), text("Audio (A2DP) · High quality audio", 13, true) }));
- if (dev.microphone) try profiles.append(a, try group(a, .row, &.{ icon(.mic_outline, 20), text("Headset · Audio and microphone", 13, true) }));
- if (dev.input) try profiles.append(a, try group(a, .row, &.{ icon(.keyboard, 20), text("Input · Keyboard, mouse or controller", 13, true) }));
- if (profiles.items.len == 1) try profiles.append(a, text(if (dev.paired) "No supported profiles reported" else "Profiles appear after pairing", 12, true));
- if (dev.audio or dev.microphone) try profiles.append(a, button(cc, "bluetooth_audio", "Audio Settings", 3, false));
+ try profiles.append(a, panel.sectionTitle(i18n.tr("Profiles")));
+ if (dev.audio) try profiles.append(a, try group(a, .row, &.{ icon(.music, 20), text(i18n.tr("Audio (A2DP) · High quality audio"), 13, true) }));
+ if (dev.microphone) try profiles.append(a, try group(a, .row, &.{ icon(.mic_outline, 20), text(i18n.tr("Headset · Audio and microphone"), 13, true) }));
+ if (dev.input) try profiles.append(a, try group(a, .row, &.{ icon(.keyboard, 20), text(i18n.tr("Input · Keyboard, mouse or controller"), 13, true) }));
+ if (profiles.items.len == 1) try profiles.append(a, text(if (dev.paired) i18n.tr("No supported profiles reported") else i18n.tr("Profiles appear after pairing"), 12, true));
+ if (dev.audio or dev.microphone) try profiles.append(a, button(cc, "bluetooth_audio", i18n.tr("Audio Settings"), 3, false));
try items.append(a, try card(a, profiles.items));
- try items.append(a, try card(a, &.{ panel.sectionTitle("Device Settings"), try setting(cc, a, "Trusted Device", "Allow connections from this device without asking.", "bluetooth_trusted", 1, dev.trusted, manager.busy or !dev.paired), try setting(cc, a, "Blocked", "Prevent this device from connecting.", "bluetooth_blocked", 2, dev.blocked, manager.busy) }));
+ try items.append(a, try card(a, &.{ panel.sectionTitle(i18n.tr("Device Settings")), try setting(cc, a, i18n.tr("Trusted Device"), i18n.tr("Allow connections from this device without asking."), "bluetooth_trusted", 1, dev.trusted, manager.busy or !dev.paired), try setting(cc, a, i18n.tr("Blocked"), i18n.tr("Prevent this device from connecting."), "bluetooth_blocked", 2, dev.blocked, manager.busy) }));
if (s.forgetting) {
- try items.append(a, text("Forget this device? Pair it again to reconnect.", 13, true));
- try items.append(a, try group(a, .row, &.{ button(cc, "bluetooth_forget_confirm", "Forget Device", 5, manager.busy), button(cc, "bluetooth_forget_cancel", "Cancel", 6, false) }));
- } else try items.append(a, button(cc, "bluetooth_forget", "Forget Device", 4, manager.busy));
+ try items.append(a, text(i18n.tr("Forget this device? Pair it again to reconnect."), 13, true));
+ try items.append(a, try group(a, .row, &.{ button(cc, "bluetooth_forget_confirm", i18n.tr("Forget Device"), 5, manager.busy), button(cc, "bluetooth_forget_cancel", i18n.tr("Cancel"), 6, false) }));
+ } else try items.append(a, button(cc, "bluetooth_forget", i18n.tr("Forget Device"), 4, manager.busy));
var result = try card(a, items.items);
result.name = "bluetooth_details";
return result;
@@ -240,29 +245,29 @@ fn deviceDetails(s: *Section, cc: *panel.ControlCenter, a: A) !W {
fn pairing(s: *Section, cc: *panel.ControlCenter, a: A) !W {
const m = cc.server.bluetooth.?;
var items: std.ArrayList(W) = .empty;
- try items.append(a, panel.sectionTitle("Pairing"));
+ try items.append(a, panel.sectionTitle(i18n.tr("Pairing")));
switch (m.prompt) {
- .none => try items.append(a, text("Waiting for the device…", 13, true)),
+ .none => try items.append(a, text(i18n.tr("Waiting for the device…"), 13, true)),
.confirm => {
- try items.append(a, text("Does this code match the code on your device?", 13, true));
+ try items.append(a, text(i18n.tr("Does this code match the code on your device?"), 13, true));
try items.append(a, text(try a.dupe(u8, m.code.slice()), 24, false));
},
- .authorize => try items.append(a, text("Allow pairing with this device?", 13, true)),
+ .authorize => try items.append(a, text(i18n.tr("Allow pairing with this device?"), 13, true)),
.display => {
- try items.append(a, text("Enter this code on your device, then press Enter.", 13, true));
+ try items.append(a, text(i18n.tr("Enter this code on your device, then press Enter."), 13, true));
try items.append(a, text(try a.dupe(u8, m.code.slice()), 24, false));
},
.pin, .passkey => {
if (s.pin_data == null) {
- s.pin_data = .{ .placeholder = "Pairing code", .value = try gpa.dupe(u8, ""), .owner = cc, .on_change = pinChanged };
+ s.pin_data = .{ .placeholder = i18n.tr("Pairing code"), .value = try gpa.dupe(u8, ""), .owner = cc, .on_change = pinChanged };
s.focus_name.set("bluetooth_pin");
}
- try items.append(a, text(if (m.prompt == .pin) "Enter the device's PIN" else "Enter the device's six-digit passkey", 13, true));
+ try items.append(a, text(if (m.prompt == .pin) i18n.tr("Enter the device's PIN") else i18n.tr("Enter the device's six-digit passkey"), 13, true));
try items.append(a, .{ .name = "bluetooth_pin", .kind = .{ .text_input = s.pin_data.? }, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 } });
},
}
- if (m.reply != null) try items.append(a, button(cc, "bluetooth_pair_accept", "Confirm Pairing", 7, false));
- try items.append(a, button(cc, "bluetooth_pair_cancel", "Cancel Pairing", 8, false));
+ if (m.reply != null) try items.append(a, button(cc, "bluetooth_pair_accept", i18n.tr("Confirm Pairing"), 7, false));
+ try items.append(a, button(cc, "bluetooth_pair_cancel", i18n.tr("Cancel Pairing"), 8, false));
var result = try card(a, items.items);
result.name = "bluetooth_pairing";
for (result.children) |*w| if (w.kind == .text_input) {
diff --git a/src/control_center/sections/default_apps.zig b/src/control_center/sections/default_apps.zig
index 7866f55..e97db58 100644
--- a/src/control_center/sections/default_apps.zig
+++ b/src/control_center/sections/default_apps.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const panel = @import("../panel.zig");
const ui = @import("ui");
@@ -9,7 +10,7 @@ pub const Section = struct {
arena: std.heap.ArenaAllocator = .init(gpa),
root: W = undefined,
values: [2][]const []const u8 = .{ &.{}, &.{} },
- message: []const u8 = "Used for desktop folders, app shortcuts and apps that run in a terminal.",
+ message: []const u8 = "",
};
fn text(value: []const u8) W {
return .{ .kind = .{ .text = .{ .content = value, .font_size = 14, .color = panel.palette().fg } } };
@@ -23,11 +24,11 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
const snapshot = cc.server.start_menu_catalog.retainSnapshot();
defer snapshot.release();
const children = try a.alloc(W, 4);
- children[0] = text("Default applications");
+ children[0] = text(i18n.tr("Default applications"));
inline for (.{ defaults.Kind.file_manager, defaults.Kind.terminal }, 0..) |kind, index| {
var labels: std.ArrayList([]const u8) = .empty;
var values: std.ArrayList([]const u8) = .empty;
- try labels.append(a, if (kind == .file_manager) "RediWM Files (built-in)" else "Automatic ($TERMINAL / Foot)");
+ try labels.append(a, if (kind == .file_manager) i18n.tr("RediWM Files (built-in)") else i18n.tr("Automatic ($TERMINAL / Foot)"));
try values.append(a, "");
const selected = if (kind == .file_manager) cc.server.config.compositor.default_file_manager else cc.server.config.compositor.default_terminal;
var selected_index: usize = 0;
@@ -38,17 +39,17 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
if (std.mem.eql(u8, entry.id, selected)) selected_index = values.items.len - 1;
}
if (selected.len > 0 and selected_index == 0) {
- try labels.append(a, try std.fmt.allocPrint(a, "Unavailable: {s}", .{selected}));
+ try labels.append(a, try i18n.allocPrint(a, i18n.tr("Unavailable: {name}"), .{ .name = selected }));
try values.append(a, try a.dupe(u8, selected));
selected_index = values.items.len - 1;
}
s.values[index] = values.items;
children[index + 1] = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .gap = 12, .children = try a.dupe(W, &.{
- text(if (kind == .file_manager) "File Manager" else "Terminal"),
+ text(if (kind == .file_manager) i18n.tr("File Manager") else i18n.tr("Terminal")),
.{ .name = "default_" ++ @tagName(kind), .kind = .{ .select = .{ .labels = labels.items, .selected = selected_index, .notify_on_reselect = kind == .file_manager, .owner = cc, .on_change = if (kind == .file_manager) fileChanged else terminalChanged } }, .width = .{ .fixed = 240 } },
}) };
}
- children[3] = text(s.message);
+ children[3] = try panel.paragraph(a, if (s.message.len > 0) s.message else i18n.tr("Used for desktop folders, app shortcuts and apps that run in a terminal."), @as(f32, @floatFromInt(cc.panel_box.width)) - panel.sidebarWidth(cc) - 100, 14, false);
return .{ .kind = .container, .direction = .column, .gap = 12, .width = .{ .percent = 1 }, .children = children };
}
fn save(owner: ?*anyopaque, comptime kind: defaults.Kind, index: usize) void {
@@ -60,14 +61,14 @@ fn save(owner: ?*anyopaque, comptime kind: defaults.Kind, index: usize) void {
const key = "default_" ++ @tagName(kind);
@import("config").setting_save.saveCompositor(gpa, server.io, server.config.path, key, value) catch |err| {
std.log.warn("could not save default application: {}", .{err});
- cc.default_apps.message = "Could not save the default application.";
+ cc.default_apps.message = i18n.tr("Could not save the default application.");
cc.refresh();
return;
};
@field(server.config.compositor, key) = server.config.arena.allocator().dupe(u8, value) catch return;
- cc.default_apps.message = "Saved. Your choice applies immediately.";
+ cc.default_apps.message = i18n.tr("Saved. Your choice applies immediately.");
if (kind == .file_manager) setDirectoryDefault(value) catch {
- cc.default_apps.message = "Saved for RediWM, but could not update the system folder association.";
+ cc.default_apps.message = i18n.tr("Saved for RediWM, but could not update the system folder association.");
};
cc.refresh();
}
diff --git a/src/control_center/sections/desktop.zig b/src/control_center/sections/desktop.zig
index 0c0f4c1..d78d536 100644
--- a/src/control_center/sections/desktop.zig
+++ b/src/control_center/sections/desktop.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
// Desktop canvas settings. All tree storage belongs to the open panel.
const std = @import("std");
const panel = @import("../panel.zig");
@@ -8,9 +9,9 @@ const gpa = @import("../../main.zig").gpa;
// Segmented callbacks carry no owner; the open panel's tree owns the widget.
const map_delays = [_]u32{ 1000, 1500, 2000, 3000, 5000 };
-const map_delay_labels = [_][]const u8{ "1 second", "1.5 seconds", "2 seconds", "3 seconds", "5 seconds" };
+const map_delay_labels = [_]i18n.Message{ i18n.msg("1 second"), i18n.msg("1.5 seconds"), i18n.msg("2 seconds"), i18n.msg("3 seconds"), i18n.msg("5 seconds") };
const map_positions = [_]@import("../../mini_map_geometry.zig").Position{ .bottom_right, .bottom_center, .bottom_left };
-const map_position_labels = [_][]const u8{ "Bottom right", "Bottom center", "Bottom left" };
+const map_position_labels = [_]i18n.Message{ i18n.msg("Bottom right"), i18n.msg("Bottom center"), i18n.msg("Bottom left") };
const switch_ms = [_]u32{ 200, 400, 700, 1000, 1500, 2500 };
const switch_labels = [_][]const u8{ "0.2 s", "0.4 s", "0.7 s", "1 s", "1.5 s", "2.5 s" };
@@ -68,9 +69,9 @@ fn dimension(a: std.mem.Allocator, cc: *panel.ControlCenter, vertical: bool, val
row.@"align" = .center;
row.justify = .center;
return container(a, .column, &.{
- text(if (vertical) "Vertical Pan" else "Horizontal Pan", 13, false),
+ text(if (vertical) i18n.tr("Vertical Pan") else i18n.tr("Horizontal Pan"), 13, false),
row,
- text(if (vertical) "Screens tall (1–10)" else "Screens wide (1–10)", 12, true),
+ text(if (vertical) i18n.tr("Screens tall (1–10)") else i18n.tr("Screens wide (1–10)"), 12, true),
});
}
@@ -108,24 +109,24 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
// instead of floating in a padded box.
const grid_height = cell_size * @as(f32, @floatFromInt(rows)) + gap * @as(f32, @floatFromInt(rows -| 1));
const grid: W = .{ .kind = .container, .direction = .column, .justify = .center, .gap = gap, .width = .{ .percent = 1 }, .height = .{ .fixed = grid_height }, .children = grid_rows };
- const preview = try card(a, &.{ panel.sectionTitle("Canvas Preview"), text("Your desktop panning area.", 12, true), grid, text("Highlighted: bottom-left screen", 12, true) });
+ const preview = try card(a, &.{ panel.sectionTitle(i18n.tr("Canvas Preview")), text(i18n.tr("Your desktop panning area."), 12, true), grid, text(i18n.tr("Highlighted: bottom-left screen"), 12, true) });
const controls = try card(a, &.{
- panel.sectionTitle("Canvas Size"),
+ panel.sectionTitle(i18n.tr("Canvas Size")),
try dimension(a, cc, false, columns),
try dimension(a, cc, true, rows),
- text(try std.fmt.allocPrint(a, "{d} × {d} · {d} screens total", .{ columns, rows, columns * rows }), 18, false),
- button(cc, 4, "Reset to Default", columns == 3 and rows == 3),
+ text(try i18n.allocPrint(a, i18n.trn("{columns} × {rows} · {n} screen total", "{columns} × {rows} · {n} screens total", columns * rows), .{ .columns = columns, .rows = rows, .n = columns * rows }), 18, false),
+ button(cc, 4, i18n.tr("Reset to Default"), columns == 3 and rows == 3),
});
var body = try container(a, if (cc.panel_box.width < 760) .column else .row, &.{ preview, controls });
body.width = .{ .percent = 1 };
const switching = try card(a, &.{
- panel.sectionTitle("Desktop Switching"),
- text("How long Super + arrow keys take to slide to the next desktop.", 12, true),
+ panel.sectionTitle(i18n.tr("Desktop Switching")),
+ text(i18n.tr("How long Super + arrow keys take to slide to the next desktop."), 12, true),
.{ .name = "desktop_switch_ms", .kind = .{ .segmented = .{ .labels = &switch_labels, .selected = nearestSwitch(cfg.desktop_switch_ms), .owner = cc, .on_change = &switchChanged } }, .width = .{ .percent = 1 } },
});
const map_on = cfg.mini_map_enabled;
var map_toggle = try container(a, .row, &.{
- text("Show mini map", 13, false),
+ text(i18n.tr("Show mini map"), 13, false),
.{ .name = "mini_map_enabled", .kind = .{ .toggle = .{ .on = map_on, .owner = cc, .on_change = &mapEnabledChanged } } },
});
map_toggle.justify = .space_between;
@@ -139,22 +140,22 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
if (@abs(@as(i64, delay) - cfg.mini_map_hide_ms) < @abs(@as(i64, map_delays[delay_index]) - cfg.mini_map_hide_ms)) delay_index = i;
}
const mini_map = try card(a, &.{
- panel.sectionTitle("Mini Map"),
- text("See your position while navigating. Drag the highlighted view to pan.", 12, true),
+ panel.sectionTitle(i18n.tr("Mini Map")),
+ text(i18n.tr("See your position while navigating. Drag the highlighted view to pan."), 12, true),
map_toggle,
- try mapSelect(cc, a, "Position", "mini_map_position", &map_position_labels, position_index, !map_on, &mapPositionChanged),
- try mapSelect(cc, a, "Hide after", "mini_map_hide_ms", &map_delay_labels, delay_index, !map_on, &mapDelayChanged),
+ try mapSelect(cc, a, i18n.tr("Position"), "mini_map_position", panel.translatedLabels(&map_position_labels), position_index, !map_on, &mapPositionChanged),
+ try mapSelect(cc, a, i18n.tr("Hide after"), "mini_map_hide_ms", panel.translatedLabels(&map_delay_labels), delay_index, !map_on, &mapDelayChanged),
});
var fixed_row = try container(a, .row, &.{
- text("Keep desktop icons in place", 13, false),
+ text(i18n.tr("Keep desktop icons in place"), 13, false),
.{ .name = "desktop_icons_fixed", .kind = .{ .toggle = .{ .on = cfg.desktop_icons_fixed, .owner = cc, .on_change = &fixedChanged } } },
});
fixed_row.justify = .space_between;
fixed_row.@"align" = .center;
const mode_card = try card(a, &.{
- panel.sectionTitle("Desktop mode"),
- .{ .name = "desktop_mode", .kind = .{ .segmented = .{ .labels = &.{ "Canvas", "Workspaces" }, .selected = @intFromEnum(cfg.desktop_mode), .owner = cc, .on_change = modeChanged } }, .width = .{ .percent = 1 } },
- text(if (cfg.desktop_mode == .workspaces) "Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating." else "Pan and zoom the canvas. Switching back restores your canvas positions and zoom.", 12, true),
+ panel.sectionTitle(i18n.tr("Desktop mode")),
+ .{ .name = "desktop_mode", .kind = .{ .segmented = .{ .labels = panel.translatedLabels(&.{ i18n.msg("Canvas"), i18n.msg("Workspaces") }), .selected = @intFromEnum(cfg.desktop_mode), .owner = cc, .on_change = modeChanged } }, .width = .{ .percent = 1 } },
+ text(if (cfg.desktop_mode == .workspaces) i18n.tr("Automatic tiles with a fixed view and Hyprland-style shortcuts. Drag tiles to rearrange; Super+V toggles floating.") else i18n.tr("Pan and zoom the canvas. Switching back restores your canvas positions and zoom."), 12, true),
});
if (cfg.desktop_mode == .workspaces) return workspaceTree(s, cc, a, mode_card);
var root = try container(a, .column, &.{
@@ -162,9 +163,9 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
body,
switching,
mini_map,
- try card(a, &.{ fixed_row, text("Keep icons fixed on screen while panning and zooming.", 12, true) }),
- text("Dragging stops on release. Edges settle with a short animation.", 12, true),
- text("Existing windows outside a smaller canvas stay reachable.", 12, true),
+ try card(a, &.{ fixed_row, text(i18n.tr("Keep icons fixed on screen while panning and zooming."), 12, true) }),
+ text(i18n.tr("Dragging stops on release. Edges settle with a short animation."), 12, true),
+ text(i18n.tr("Existing windows outside a smaller canvas stay reachable."), 12, true),
text(s.message, 12, true),
});
if (s.message.len == 0) root.children = root.children[0 .. root.children.len - 1];
@@ -185,7 +186,7 @@ fn mapSelect(cc: *panel.ControlCenter, a: std.mem.Allocator, label: []const u8,
fn saveMap(owner: ?*anyopaque, comptime key: []const u8, value: @FieldType(@import("config").loader.CompositorConfig, key)) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
@import("config").setting_save.saveCompositor(gpa, cc.server.io, cc.server.config.path, key, value) catch {
- cc.desktop.message = "Could not save. Check the configuration file and try again.";
+ cc.desktop.message = i18n.tr("Could not save. Check the configuration file and try again.");
cc.refresh();
return;
};
@@ -208,7 +209,7 @@ fn mapDelayChanged(owner: ?*anyopaque, _: usize, index: usize) void {
fn fixedChanged(owner: ?*anyopaque, _: usize, on: bool) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
@import("config").setting_save.saveCompositor(gpa, cc.server.io, cc.server.config.path, "desktop_icons_fixed", on) catch {
- cc.desktop.message = "Could not save. Check the configuration file and try again.";
+ cc.desktop.message = i18n.tr("Could not save. Check the configuration file and try again.");
cc.refresh();
return;
};
@@ -222,7 +223,7 @@ fn switchChanged(owner: ?*anyopaque, _: usize, index: usize) void {
const ms = switch_ms[index];
// The config watcher's reload rebuilds the camera_desktop curve.
@import("config").setting_save.saveCompositor(gpa, cc.server.io, cc.server.config.path, "desktop_switch_ms", ms) catch {
- cc.desktop.message = "Could not save. Check the configuration file and try again.";
+ cc.desktop.message = i18n.tr("Could not save. Check the configuration file and try again.");
cc.refresh();
return;
};
@@ -251,7 +252,7 @@ fn change(owner: ?*anyopaque, id: usize) void {
columns = std.math.clamp(columns, 1, 10);
rows = std.math.clamp(rows, 1, 10);
@import("config").setting_save.saveCanvas(gpa, cc.server.io, cc.server.config.path, columns, rows) catch {
- cc.desktop.message = "Could not save. Check the configuration file and try again.";
+ cc.desktop.message = i18n.tr("Could not save. Check the configuration file and try again.");
cc.refresh();
return;
};
@@ -267,7 +268,7 @@ fn modeChanged(owner: ?*anyopaque, _: usize, index: usize) void {
if (index > 1) return;
const mode: @import("config").loader.DesktopMode = @enumFromInt(index);
@import("../../config_runtime/workspace_controls.zig").mode(cc.server, mode, true) catch {
- cc.desktop.message = "Could not save desktop mode.";
+ cc.desktop.message = i18n.tr("Could not save desktop mode.");
cc.refresh();
};
}
@@ -279,14 +280,14 @@ fn workspaceTree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator, mo
const id = if (s.selected_workspace > 0) s.selected_workspace else if (cc.server.getDefaultOutput()) |out| @max(1, out.workspace_id) else 1;
s.selected_workspace = id;
const labels = try a.alloc([]const u8, 32);
- for (labels, 0..) |*label, i| label.* = try std.fmt.allocPrint(a, "Workspace {d}", .{i + 1});
+ for (labels, 0..) |*label, i| label.* = try i18n.allocPrint(a, i18n.tr("Workspace {n}"), .{ .n = i + 1 });
const slot = manager.slots[id - 1];
const workspace_card = try card(a, &.{
- panel.sectionTitle("Workspace layout"),
- try mapSelect(cc, a, "Workspace", "workspace_select", labels, id - 1, false, workspaceSelected),
- try mapSelect(cc, a, "Placement", "workspace_layout", &.{ "Automatic tiling", "Floating" }, if (slot.automatic) 0 else 1, false, layoutChanged),
- text(if (slot.output) |out| try std.fmt.allocPrint(a, "Output: {s}", .{std.mem.span(out.wlr_output.name)}) else "Assigned to the current output when first used.", 12, true),
- text("Layouts and split sizes are saved for your next session.", 12, true),
+ panel.sectionTitle(i18n.tr("Workspace layout")),
+ try mapSelect(cc, a, i18n.tr("Workspace"), "workspace_select", labels, id - 1, false, workspaceSelected),
+ try mapSelect(cc, a, i18n.tr("Placement"), "workspace_layout", panel.translatedLabels(&.{ i18n.msg("Automatic tiling"), i18n.msg("Floating") }), if (slot.automatic) 0 else 1, false, layoutChanged),
+ text(if (slot.output) |out| try i18n.allocPrint(a, i18n.tr("Output: {name}"), .{ .name = std.mem.span(out.wlr_output.name) }) else i18n.tr("Assigned to the current output when first used."), 12, true),
+ text(i18n.tr("Layouts and split sizes are saved for your next session."), 12, true),
});
var gap_index: usize = 0;
const value = cc.server.config.compositor.windowGap();
@@ -294,9 +295,9 @@ fn workspaceTree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator, mo
gap_index = i;
};
const spacing = try card(a, &.{
- panel.sectionTitle("Window spacing"),
- try mapSelect(cc, a, try std.fmt.allocPrint(a, "Gap ({d} px)", .{value}), "workspace_gap", &gap_labels, gap_index, false, gapChanged),
- text("Applies to output edges and the space between automatic tiles.", 12, true),
+ panel.sectionTitle(i18n.tr("Window spacing")),
+ try mapSelect(cc, a, try i18n.allocPrint(a, i18n.tr("Gap ({n} px)"), .{ .n = value }), "workspace_gap", &gap_labels, gap_index, false, gapChanged),
+ text(i18n.tr("Applies to output edges and the space between automatic tiles."), 12, true),
});
var choices: std.ArrayList([]const u8) = .empty;
for (cc.server.config.compositor.floating_apps) |app| try choices.append(a, try a.dupe(u8, app));
@@ -323,10 +324,10 @@ fn workspaceTree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator, mo
item.* = .{ .id = i, .name = try std.fmt.allocPrint(a, "floating_app:{s}", .{app}), .label = app, .checked = checked };
}
const rules = try card(a, &.{
- panel.sectionTitle("Floating apps"),
- text("Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically.", 12, true),
+ panel.sectionTitle(i18n.tr("Floating apps")),
+ text(i18n.tr("Checked apps open floating. Super+V can override placement for a window. Dialogs and fixed-size windows float automatically."), 12, true),
try list.build(a, items, cc, floatingChanged, .{}),
- text("Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config.", 12, true),
+ text(i18n.tr("Open an app to add it here. Advanced title, backend and glob matches use [[window_rules]] floating in your config."), 12, true),
});
return container(a, .column, &.{ mode_card, workspace_card, spacing, rules, text(s.message, 12, true) });
}
@@ -345,7 +346,7 @@ fn gapChanged(owner: ?*anyopaque, _: usize, index: usize) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
if (index >= gaps.len) return;
@import("../../config_runtime/workspace_controls.zig").gap(cc.server, gaps[index], true) catch {
- cc.desktop.message = "Could not save window spacing.";
+ cc.desktop.message = i18n.tr("Could not save window spacing.");
cc.refresh();
};
}
@@ -362,7 +363,7 @@ fn floatingChanged(owner: ?*anyopaque, index: usize, checked: bool) void {
};
if (checked) apps.append(a, selected) catch return;
@import("../../config_runtime/workspace_controls.zig").floatingApps(cc.server, apps.items, true) catch {
- cc.desktop.message = "Could not save floating apps.";
+ cc.desktop.message = i18n.tr("Could not save floating apps.");
cc.refresh();
};
}
diff --git a/src/control_center/sections/display.zig b/src/control_center/sections/display.zig
index f15cda2..500a593 100644
--- a/src/control_center/sections/display.zig
+++ b/src/control_center/sections/display.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
// Editable output modes, including backend-tested lower resolutions. Apply
// selections after input dispatch: a modeset rebuilds output-local trees.
const std = @import("std");
@@ -43,8 +44,8 @@ const xwayland_labels = blk: {
};
const LidAction = @import("config").loader.LidAction;
/// In `LidAction` order.
-const lid_labels = [_][]const u8{ "Turn off screen", "Lock", "Sleep", "Do nothing" };
-const transform_labels = [_][]const u8{ "Normal", "90°", "180°", "270°", "Flipped", "Flipped 90°", "Flipped 180°", "Flipped 270°" };
+const lid_labels = [_]i18n.Message{ i18n.msg("Turn off screen"), i18n.msg("Lock"), i18n.msg("Sleep"), i18n.msg("Do nothing") };
+const transform_labels = [_]i18n.Message{ i18n.msg("Normal"), i18n.msg("90°"), i18n.msg("180°"), i18n.msg("270°"), i18n.msg("Flipped"), i18n.msg("Flipped 90°"), i18n.msg("Flipped 180°"), i18n.msg("Flipped 270°") };
const row_height: f32 = 40;
const nl_temp_min: f32 = 1700;
const nl_temp_max: f32 = 10000;
@@ -154,24 +155,24 @@ pub fn build(out: *Section, cc: *panel.ControlCenter, wlr_output: *wlr.Output) v
out.initial_monitor = null;
const name = std.mem.span(wlr_output.name);
// Plain-text fallback; buildMonitors replaces it unless it bails early.
- setRow(out, row_monitor, "Monitor", "{s}", .{name});
+ setRow(out, row_monitor, i18n.tr("Monitor"), "{s}", .{name});
buildMonitors(out, name);
if (wlr_output.current_mode) |mode| {
- setRow(out, row_resolution, "Resolution", "{d} × {d}", .{ mode.width, mode.height });
- setRow(out, row_refresh, "Refresh rate", "{d:.3} Hz", .{@as(f64, @floatFromInt(mode.refresh)) / 1000});
+ setRow(out, row_resolution, i18n.tr("Resolution"), "{d} × {d}", .{ mode.width, mode.height });
+ setRow(out, row_refresh, i18n.tr("Refresh rate"), "{d:.3} Hz", .{@as(f64, @floatFromInt(mode.refresh)) / 1000});
} else {
- setRow(out, row_resolution, "Resolution", "{d} × {d}", .{ wlr_output.width, wlr_output.height });
- setRow(out, row_refresh, "Refresh rate", "{d:.3} Hz", .{@as(f64, @floatFromInt(wlr_output.refresh)) / 1000});
+ setRow(out, row_resolution, i18n.tr("Resolution"), "{d} × {d}", .{ wlr_output.width, wlr_output.height });
+ setRow(out, row_refresh, i18n.tr("Refresh rate"), "{d:.3} Hz", .{@as(f64, @floatFromInt(wlr_output.refresh)) / 1000});
}
if (wlr_output.scale == @round(wlr_output.scale)) {
- setRow(out, row_scale, "Display scale", "{d}×", .{@as(i32, @intFromFloat(wlr_output.scale))});
+ setRow(out, row_scale, i18n.tr("Display scale"), "{d}×", .{@as(i32, @intFromFloat(wlr_output.scale))});
} else {
- setRow(out, row_scale, "Display scale", "{d:.2}×", .{wlr_output.scale});
+ setRow(out, row_scale, i18n.tr("Display scale"), "{d:.2}×", .{wlr_output.scale});
}
- setRow(out, row_xwayland, "Xwayland scale (global)", "", .{});
+ setRow(out, row_xwayland, i18n.tr("Xwayland scale (global)"), "", .{});
const current_transform = transformFromWl(wlr_output.transform);
- setRow(out, row_transform, "Transform", "{s}", .{output_transform.name(current_transform)});
- setRow(out, row_name, "Output name", "{s}", .{name});
+ setRow(out, row_transform, i18n.tr("Transform"), "{s}", .{output_transform.name(current_transform)});
+ setRow(out, row_name, i18n.tr("Output name"), "{s}", .{name});
buildScales(out, wlr_output);
buildChoices(out, wlr_output) catch {
@@ -181,9 +182,9 @@ pub fn build(out: *Section, cc: *panel.ControlCenter, wlr_output: *wlr.Output) v
buildTransforms(out, current_transform);
const pal = panel.palette();
out.top_children = .{
- .{ .kind = .{ .text = .{ .content = "DISPLAY", .font_size = 12, .weight = 700, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("DISPLAY"), .font_size = 12, .weight = 700, .color = pal.dim } } },
.{ .kind = .container, .direction = .column, .gap = 12, .children = &out.row_storage },
- .{ .kind = .{ .text = .{ .content = if (out.failed) "Could not apply that display setting." else if (out.save_failed) "Could not save the display setting." else if (wlr_output.modes.empty()) "This output does not advertise editable display modes." else "Changes are saved automatically. Scroll the lists for more modes.", .font_size = 12, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = if (out.failed) i18n.tr("Could not apply that display setting.") else if (out.save_failed) i18n.tr("Could not save the display setting.") else if (wlr_output.modes.empty()) i18n.tr("This output does not advertise editable display modes.") else i18n.tr("Changes are saved automatically. Scroll the lists for more modes."), .font_size = 12, .color = pal.dim } } },
};
out.root = .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.top_children };
buildNightLight(out);
@@ -250,22 +251,22 @@ fn buildArrangement(out: *Section, selected_name: []const u8) void {
}
const canvas_height: f32 = if (3 * (max_y - min_y) > 2 * (max_x - min_x)) 280 else 220;
- var hint = valueWidget("Drag displays to match your desk. Click one to edit it.");
+ var hint = valueWidget(i18n.tr("Drag displays to match your desk. Click one to edit it."));
hint.kind.text.font_size = 12;
hint.width = .{ .flex = 1 };
out.main_text_children = .{
- labelWidget("Main display"),
- valueWidget(if (selected_is_main) "Desktop icons appear on this display." else "Where desktop icons appear."),
+ labelWidget(i18n.tr("Main display")),
+ valueWidget(if (selected_is_main) i18n.tr("Desktop icons appear on this display.") else i18n.tr("Where desktop icons appear.")),
};
out.main_text_children[1].kind.text.font_size = 12;
out.main_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 4, .width = .{ .flex = 1 }, .children = &out.main_text_children },
- .{ .name = "make_main", .kind = .{ .button = .{ .label = "Make main display", .owner = out, .on_click = &onMakeMain } }, .height = .{ .fixed = 32 } },
+ .{ .name = "make_main", .kind = .{ .button = .{ .label = i18n.tr("Make main display"), .owner = out, .on_click = &onMakeMain } }, .height = .{ .fixed = 32 } },
};
// The selected display is already main: nothing to offer.
out.main_row_count = if (selected_is_main or out.arrangement_selected == null) 1 else 2;
out.arrangement_children = .{
- panel.sectionTitle("Arrangement"),
+ panel.sectionTitle(i18n.tr("Arrangement")),
hint,
.{ .name = "arrangement", .kind = .{ .arrangement = .{ .items = out.arrangement_items, .selected = out.arrangement_selected } }, .width = .{ .percent = 1 }, .height = .{ .fixed = canvas_height } },
.{ .kind = .container, .direction = .row, .@"align" = .center, .gap = 12, .children = out.main_row_children[0..out.main_row_count] },
@@ -337,14 +338,14 @@ fn buildLid(out: *Section) void {
const action = server.config.compositor.lid_close;
out.initial_lid = @intFromEnum(action);
out.lid_row_children = .{
- labelWidget("When the lid is closed"),
- .{ .name = "lid_close", .kind = .{ .select = .{ .labels = &lid_labels, .selected = out.initial_lid } }, .width = .{ .fixed = 190 }, .height = .{ .fixed = row_height } },
+ labelWidget(i18n.tr("When the lid is closed")),
+ .{ .name = "lid_close", .kind = .{ .select = .{ .labels = panel.translatedLabels(&lid_labels), .selected = out.initial_lid } }, .width = .{ .fixed = 190 }, .height = .{ .fixed = row_height } },
};
var hint = valueWidget(switch (action) {
- .display_off => "The built-in screen turns off while another display is connected.",
- .lock => "Locks, and turns off the built-in screen while another display is connected.",
- .@"suspend" => "Locks and sleeps, even with another display connected.",
- .ignore => "The built-in screen stays on.",
+ .display_off => i18n.tr("The built-in screen turns off while another display is connected."),
+ .lock => i18n.tr("Locks, and turns off the built-in screen while another display is connected."),
+ .@"suspend" => i18n.tr("Locks and sleeps, even with another display connected."),
+ .ignore => i18n.tr("The built-in screen stays on."),
});
hint.kind.text.font_size = 12;
hint.width = .{ .flex = 1 };
@@ -383,7 +384,7 @@ fn buildMonitors(out: *Section, selected_name: []const u8) void {
}
if (out.initial_monitor == null) out.initial_monitor = 0;
out.row_children[row_monitor] = .{
- labelWidget("Monitor"),
+ labelWidget(i18n.tr("Monitor")),
.{ .name = "monitor", .kind = .{ .select = .{ .labels = out.monitor_labels, .selected = out.initial_monitor, .owner = out, .on_change = &onMonitorChanged } }, .width = .{ .fixed = 190 }, .height = .{ .fixed = row_height } },
};
out.row_storage[row_monitor] = .{
@@ -438,13 +439,13 @@ fn buildScales(out: *Section, output: *wlr.Output) void {
.disabled = !server.config.compositor.xwayland,
} }, .width = .{ .fixed = 190 }, .height = .{ .fixed = row_height } };
const hint = if (server.xwaylandScalePending()) |pending|
- std.fmt.bufPrint(&out.xwayland_hint_buf, "Xwayland: {d}× active. Restart the compositor to apply {d}×.", .{ server.xwaylandScale(), pending }) catch ""
+ i18n.fmt(&out.xwayland_hint_buf, i18n.tr("Xwayland: {active}× active. Restart the compositor to apply {pending}×."), .{ .active = server.xwaylandScale(), .pending = pending }) catch ""
else
- std.fmt.bufPrint(&out.xwayland_hint_buf, "Xwayland: {d}× active. Changes require a compositor restart.", .{server.xwaylandScale()}) catch "";
+ i18n.fmt(&out.xwayland_hint_buf, i18n.tr("Xwayland: {active}× active. Changes require a compositor restart."), .{ .active = server.xwaylandScale() }) catch "";
out.xwayland_hint = labelWidget(hint);
out.xwayland_hint.kind.text.font_size = 12;
if (server.scale_override != null) {
- out.xwayland_hint.kind.text.content = "Display scale is overridden by REDIWM_SCALE. Xwayland changes require a restart.";
+ out.xwayland_hint.kind.text.content = i18n.tr("REDIWM_SCALE sets scaling; restart to apply Xwayland changes.");
}
}
@@ -455,7 +456,7 @@ fn scaleFactor(index: usize) f32 {
fn buildTransforms(out: *Section, current_transform: output_transform.Transform) void {
out.initial_transform = transformIndex(current_transform);
out.row_children[row_transform][1] = .{ .name = "transform", .kind = .{ .select = .{
- .labels = &transform_labels,
+ .labels = panel.translatedLabels(&transform_labels),
.selected = out.initial_transform,
} }, .width = .{ .fixed = 190 }, .height = .{ .fixed = row_height } };
}
@@ -491,15 +492,15 @@ fn buildNightLight(out: *Section) void {
const t = panel.palette();
const nl_cfg: @import("config").loader.NightLightConfig = out.cc.server.config.night_light;
out.nl_label_children = .{
- .{ .kind = .{ .text = .{ .content = "Night light", .font_size = 13, .weight = 600, .color = t.fg } } },
- .{ .kind = .{ .text = .{ .content = "Reduce blue light with a warm tint", .font_size = 12, .color = t.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Night light"), .font_size = 13, .weight = 600, .color = t.fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Reduce blue light with a warm tint"), .font_size = 12, .color = t.dim } } },
};
out.nl_toggle_row_children = .{
.{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = &out.nl_label_children },
.{ .name = "night_light", .kind = .{ .toggle = .{ .style = .settings, .on = nl_cfg.enabled, .owner = out, .on_change = &onNightLightToggled } } },
};
const temp_str = std.fmt.bufPrint(&out.nl_temp_value_buf, "{d} K", .{nl_cfg.temperature}) catch "5000 K";
- out.nl_temp_header_children = .{ labelWidget("Color temperature"), ui_slider.valuePill(temp_str, 13, panel.palette().dim) };
+ out.nl_temp_header_children = .{ labelWidget(i18n.tr("Color temperature")), ui_slider.valuePill(temp_str, 13, panel.palette().dim) };
const temp_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.nl_temp_header_children };
out.nl_temp_slider = .{ .name = "night_light_temperature", .kind = .{ .slider = .{ .style = .settings, .value = @floatFromInt(nl_cfg.temperature), .min = nl_temp_min, .max = nl_temp_max, .step = 100, .owner = out, .on_change = &onNightLightTemperatureChanged } } };
out.nl_group_children = .{
diff --git a/src/control_center/sections/input.zig b/src/control_center/sections/input.zig
index d9e8dea..430b4bd 100644
--- a/src/control_center/sections/input.zig
+++ b/src/control_center/sections/input.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
// Control center "Input" section: mouse/touchpad pointer accel speed, natural
// scroll, tap-to-click (all via libinput device config, applied immediately
// to every pointer device) and keyboard repeat delay/rate (design doc Part 3,
@@ -175,7 +176,7 @@ pub fn build(out: *Section, input: *Input) void {
var row_count: usize = 0;
const mouse_speed_str = std.fmt.bufPrint(&out.speed_value_buf, "{d:.1}", .{mouse_speed}) catch "0.0";
- out.mouse_speed_header_children = .{ fgLabel("Mouse speed"), ui_slider.valuePill(mouse_speed_str, 13, panel.palette().dim) };
+ out.mouse_speed_header_children = .{ fgLabel(i18n.tr("Mouse speed")), ui_slider.valuePill(mouse_speed_str, 13, panel.palette().dim) };
const mouse_speed_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.mouse_speed_header_children };
const mouse_speed_slider: Widget = .{ .name = "mouse_speed", .kind = .{ .slider = .{ .value = mouse_speed, .min = -1, .max = 1, .step = default_speed_step, .owner = out, .on_change = &onMouseSpeedChanged } } };
out.mouse_speed_group_children = .{ mouse_speed_header, mouse_speed_slider };
@@ -184,7 +185,7 @@ pub fn build(out: *Section, input: *Input) void {
if (show_touchpad) {
const touchpad_speed_str = std.fmt.bufPrint(&out.touchpad_speed_value_buf, "{d:.1}", .{touchpad_speed}) catch "0.0";
out.touchpad_speed_header_children = .{
- fgLabel("Touchpad speed"),
+ fgLabel(i18n.tr("Touchpad speed")),
ui_slider.valuePill(touchpad_speed_str, 13, panel.palette().dim),
};
const touchpad_speed_header: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .children = &out.touchpad_speed_header_children };
@@ -193,23 +194,23 @@ pub fn build(out: *Section, input: *Input) void {
layout.appendRow(&out.row_storage, &row_count, .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.touchpad_speed_group_children });
out.touchpad_dwt_row_children = .{
- fgLabel("Disable touchpad while typing"),
+ fgLabel(i18n.tr("Disable touchpad while typing")),
.{ .name = "touchpad_disable_while_typing", .kind = .{ .toggle = .{ .on = touchpad_disable_while_typing, .owner = out, .on_change = &onTouchpadDisableWhileTypingChanged } } },
};
const touchpad_dwt_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.touchpad_dwt_row_children };
layout.appendRow(&out.row_storage, &row_count, touchpad_dwt_row);
}
- out.natural_row_children = .{ fgLabel("Natural scroll"), .{ .name = "natural_scroll", .kind = .{ .toggle = .{ .on = natural, .owner = out, .on_change = &onNaturalScrollChanged } } } };
+ out.natural_row_children = .{ fgLabel(i18n.tr("Natural scroll")), .{ .name = "natural_scroll", .kind = .{ .toggle = .{ .on = natural, .owner = out, .on_change = &onNaturalScrollChanged } } } };
const natural_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.natural_row_children };
layout.appendRow(&out.row_storage, &row_count, natural_row);
- out.tap_row_children = .{ fgLabel("Tap to click"), .{ .name = "tap_to_click", .kind = .{ .toggle = .{ .on = tap, .owner = out, .on_change = &onTapToClickChanged } } } };
+ out.tap_row_children = .{ fgLabel(i18n.tr("Tap to click")), .{ .name = "tap_to_click", .kind = .{ .toggle = .{ .on = tap, .owner = out, .on_change = &onTapToClickChanged } } } };
const tap_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.tap_row_children };
layout.appendRow(&out.row_storage, &row_count, tap_row);
out.pan_speed_row_children = .{
- fgLabel("Pan speed"),
+ fgLabel(i18n.tr("Pan speed")),
.{
.name = "pan_speed",
.kind = .{ .segmented = .{ .labels = &pan_speed_labels, .selected = indexOfNearest(&pan_speed_values, input.server.config.input.pan_speed), .owner = out, .on_change = &onPanSpeedChanged } },
@@ -220,14 +221,14 @@ pub fn build(out: *Section, input: *Input) void {
layout.appendRow(&out.row_storage, &row_count, pan_speed_row);
out.delay_row_children = .{
- fgLabel("Repeat delay"),
+ fgLabel(i18n.tr("Repeat delay")),
.{ .name = "repeat_delay", .kind = .{ .stepper = .{ .value = repeat.delay, .min = 100, .max = 2000, .step = default_delay_step, .unit = "ms", .owner = out, .on_change = &onRepeatDelayChanged } } },
};
const delay_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.delay_row_children };
layout.appendRow(&out.row_storage, &row_count, delay_row);
out.rate_row_children = .{
- fgLabel("Repeat rate"),
+ fgLabel(i18n.tr("Repeat rate")),
.{ .name = "repeat_rate", .kind = .{ .stepper = .{ .value = repeat.rate, .min = 1, .max = 100, .step = default_rate_step, .unit = "/s", .owner = out, .on_change = &onRepeatRateChanged } } },
};
const rate_row: Widget = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = &out.rate_row_children };
@@ -236,7 +237,7 @@ pub fn build(out: *Section, input: *Input) void {
out.row_count = row_count;
const pal = panel.palette();
out.top_children = .{
- .{ .kind = .{ .text = .{ .content = "INPUT", .font_size = 12, .weight = 700, .color = pal.dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("INPUT"), .font_size = 12, .weight = 700, .color = pal.dim } } },
.{ .name = "input", .kind = .container, .direction = .column, .gap = 12, .children = out.row_storage[0..row_count] },
};
out.root = .{ .name = "input", .kind = .container, .direction = .column, .gap = 8, .children = &out.top_children };
diff --git a/src/control_center/sections/network.zig b/src/control_center/sections/network.zig
index 245d14c..26e537a 100644
--- a/src/control_center/sections/network.zig
+++ b/src/control_center/sections/network.zig
@@ -1,5 +1,6 @@
//! Live NetworkManager settings. Widget storage belongs to the window;
//! passwords stay in locked, wiped storage, never in the tree's arena.
+const i18n = @import("i18n");
const std = @import("std");
const panel = @import("../panel.zig");
const network = @import("../../network/manager.zig");
@@ -150,28 +151,31 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
if (net.connected) break net;
} else null else null;
const online = available and m.?.connectivity == 4;
- const internet_state: []const u8 = if (!available) "Unavailable" else switch (m.?.connectivity) {
- 2 => "Sign-in required",
- 3 => "Limited access",
- 4 => "Connected",
- else => if (m.?.state >= 50) "Connected" else "Offline",
+ const internet_state: []const u8 = if (!available) i18n.tr("Unavailable") else switch (m.?.connectivity) {
+ 2 => i18n.tr("Sign-in required"),
+ 3 => i18n.tr("Limited access"),
+ 4 => i18n.tr("Connected"),
+ else => if (m.?.state >= 50) i18n.tr("Connected") else i18n.tr("Offline"),
};
- const internet_detail: []const u8 = if (!available) "NetworkManager unavailable" else switch (m.?.connectivity) {
- 2 => "Open a browser to sign in",
- 3 => "No internet access",
- 4 => "You're online.",
- else => if (m.?.state >= 50) "Internet access not verified" else "No internet connection",
+ const internet_detail: []const u8 = if (!available) i18n.tr("NetworkManager unavailable") else switch (m.?.connectivity) {
+ 2 => i18n.tr("Open a browser to sign in"),
+ 3 => i18n.tr("No internet access"),
+ 4 => i18n.tr("You're online."),
+ else => if (m.?.state >= 50) i18n.tr("Internet access not verified") else i18n.tr("No internet connection"),
};
- const wifi_state: []const u8 = if (!available) "Unavailable" else if (!m.?.hardware) "Hardware blocked" else if (!m.?.enabled) "Turned off" else if (m.?.device.len == 0) "No adapter" else if (connected_wifi != null) "Connected" else "Not connected";
- const eth_detail = if (eth) |e| if (e.connected() and e.address.len != 0) try std.fmt.allocPrint(a, "{s} · {s}", .{ try speed(a, e.*), e.address.slice() }) else try a.dupe(u8, e.name.slice()) else "No wired adapter";
- const wifi_detail = if (connected_wifi) |net| try std.fmt.allocPrint(a, "{s} · {s}", .{ network.networkName(net), if (net.strength >= 80) @as([]const u8, "Excellent") else if (net.strength >= 55) "Good" else "Weak" }) else "Wireless connections";
- const stacked = cc.panel_box.width < 1000;
+ const wifi_state: []const u8 = if (!available) i18n.tr("Unavailable") else if (!m.?.hardware) i18n.tr("Hardware blocked") else if (!m.?.enabled) i18n.tr("Turned off") else if (m.?.device.len == 0) i18n.tr("No adapter") else if (connected_wifi != null) i18n.tr("Connected") else i18n.tr("Not connected");
+ const eth_detail = if (eth) |e| if (e.connected() and e.address.len != 0) try std.fmt.allocPrint(a, "{s} · {s}", .{ try speed(a, e.*), e.address.slice() }) else try a.dupe(u8, e.name.slice()) else i18n.tr("No wired adapter");
+ const wifi_detail = if (connected_wifi) |net| try std.fmt.allocPrint(a, "{s} · {s}", .{ network.networkName(net), if (net.strength >= 80) @as([]const u8, i18n.tr("Excellent")) else if (net.strength >= 55) i18n.tr("Good") else i18n.tr("Weak") }) else i18n.tr("Wireless connections");
+ const overview_width = @as(f32, @floatFromInt(cc.panel_box.width)) - panel.sidebarWidth(cc) - 100;
+ var description_width: f32 = 0;
+ for ([_][]const u8{ internet_detail, eth_detail, wifi_detail }) |value| description_width = @max(description_width, ui.measure.textNatural(value, .sans, 400, 12).w);
+ const stacked = overview_width < 3 * (@min(description_width, 260) + 74);
var overview = try card(a, &.{
- try summary(a, .globe, "Internet", internet_state, internet_detail, online),
+ try summary(a, .globe, i18n.tr("Internet"), internet_state, internet_detail, online),
divider(!stacked),
- try summary(a, .ethernet, "Ethernet", if (eth) |e| e.status() else "Unavailable", eth_detail, if (eth) |e| e.connected() else false),
+ try summary(a, .ethernet, i18n.tr("Ethernet"), if (eth) |e| e.status() else i18n.tr("Unavailable"), eth_detail, if (eth) |e| e.connected() else false),
divider(!stacked),
- try summary(a, .wifi, "Wi-Fi", wifi_state, wifi_detail, connected_wifi != null),
+ try summary(a, .wifi, i18n.tr("Wi-Fi"), wifi_state, wifi_detail, connected_wifi != null),
});
overview.name = "network_overview";
overview.direction = if (stacked) .column else .row;
@@ -190,8 +194,8 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
}
fn ethernetCard(s: *Section, cc: *panel.ControlCenter, a: Allocator, eth: ?*const network.Ethernet) !W {
const m = cc.server.network;
- const subtitle = if (eth) |e| if (e.driver.len != 0) try std.fmt.allocPrint(a, "{s} ({s})", .{ e.name.slice(), e.driver.slice() }) else try a.dupe(u8, e.name.slice()) else "No wired adapter found";
- var labels = try group(a, .column, &.{ text("Ethernet", 20, false), text(subtitle, 12, true) });
+ const subtitle = if (eth) |e| if (e.driver.len != 0) try std.fmt.allocPrint(a, "{s} ({s})", .{ e.name.slice(), e.driver.slice() }) else try a.dupe(u8, e.name.slice()) else i18n.tr("No wired adapter found");
+ var labels = try group(a, .column, &.{ text(i18n.tr("Ethernet"), 20, false), text(subtitle, 12, true) });
labels.width = .{ .flex = 1 };
labels.gap = 4;
const disabled = if (eth) |e| !e.managed or (!e.carrier and !e.active()) or m.?.wired_pending != null else true;
@@ -210,12 +214,12 @@ fn ethernetCard(s: *Section, cc: *panel.ControlCenter, a: Allocator, eth: ?*cons
try items.append(a, .{ .name = "ethernet_adapter", .kind = .{ .select = .{ .labels = names, .selected = selected, .owner = cc, .on_change = adapterChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 34 } });
}
var details = try card(a, &.{
- try detail(cc, a, "Status", if (eth) |e| e.status() else "Unavailable", null, if (eth) |e| e.connected() else false),
- try detail(cc, a, "Link speed", if (eth) |e| try speed(a, e.*) else "—", null, false),
- try detail(cc, a, "IPv4 address", if (eth) |e| e.address.slice() else "", 0, false),
- try detail(cc, a, "Gateway", if (eth) |e| e.gateway.slice() else "", 1, false),
- try detail(cc, a, "DNS servers", if (eth) |e| e.dns.slice() else "", 2, false),
- try detail(cc, a, "MAC address", if (eth) |e| e.mac.slice() else "", 3, false),
+ try detail(cc, a, i18n.tr("Status"), if (eth) |e| e.status() else i18n.tr("Unavailable"), null, if (eth) |e| e.connected() else false, true),
+ try detail(cc, a, i18n.tr("Link speed"), if (eth) |e| try speed(a, e.*) else "—", null, false, false),
+ try detail(cc, a, i18n.tr("IPv4 address"), if (eth) |e| e.address.slice() else "", 0, false, false),
+ try detail(cc, a, i18n.tr("Gateway"), if (eth) |e| e.gateway.slice() else "", 1, false, false),
+ try detail(cc, a, i18n.tr("DNS servers"), if (eth) |e| e.dns.slice() else "", 2, false, false),
+ try detail(cc, a, i18n.tr("MAC address"), if (eth) |e| e.mac.slice() else "", 3, false, false),
});
details.gap = 6;
try items.append(a, details);
@@ -226,10 +230,11 @@ fn ethernetCard(s: *Section, cc: *panel.ControlCenter, a: Allocator, eth: ?*cons
result.name = "ethernet_card";
return result;
}
-fn detail(cc: *panel.ControlCenter, a: Allocator, title: []const u8, value: []const u8, copy_id: ?usize, active: bool) !W {
+fn detail(cc: *panel.ControlCenter, a: Allocator, title: []const u8, value: []const u8, copy_id: ?usize, active: bool, status_chip: bool) !W {
var key_label = text(title, 12, true);
- key_label.width = .{ .fixed = 96 };
- var val = if (std.mem.eql(u8, title, "Status")) try status(a, value, active) else text(if (value.len == 0) "—" else try a.dupe(u8, value), 12, true);
+ key_label.width = .auto;
+ key_label.min_width = 96;
+ var val = if (status_chip) try status(a, value, active) else text(if (value.len == 0) "—" else try a.dupe(u8, value), 12, true);
val.width = .{ .flex = 1 };
var row = try group(a, .row, &.{ key_label, val });
row.height = .{ .fixed = 30 };
@@ -247,7 +252,7 @@ fn wifiCard(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
const m = cc.server.network;
const available = if (m) |n| n.available and n.hardware and n.enabled and n.device.len != 0 else false;
const busy = if (m) |n| n.busy else false;
- var title = text("Wi-Fi", 20, false);
+ var title = text(i18n.tr("Wi-Fi"), 20, false);
title.width = .{ .flex = 1 };
var scan = action(cc, "wifi_scan", "", 0, scanClicked, !available or m.?.searching());
scan.kind.button.icon = .refresh;
@@ -273,7 +278,7 @@ fn wifiCard(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
if (selected) try rows.append(a, try form(s, cc, a));
}
if (s.row_count == 0) {
- const message: []const u8 = if (m) |n| if (!n.available) "NetworkManager is unavailable" else if (!n.hardware) "Wi-Fi is disabled by the hardware switch" else if (!n.enabled) "Wi-Fi is turned off" else if (n.device.len == 0) "No Wi-Fi adapter found" else if (n.searching()) "Searching for networks…" else "No networks found. Scan to try again." else "NetworkManager is unavailable";
+ const message: []const u8 = if (m) |n| if (!n.available) i18n.tr("NetworkManager is unavailable") else if (!n.hardware) i18n.tr("Wi-Fi is disabled by the hardware switch") else if (!n.enabled) i18n.tr("Wi-Fi is turned off") else if (n.device.len == 0) i18n.tr("No Wi-Fi adapter found") else if (n.searching()) i18n.tr("Searching for networks…") else i18n.tr("No networks found. Scan to try again.") else i18n.tr("NetworkManager is unavailable");
var empty = try group(a, .column, &.{ icon(.wifi, 32, false), text(message, 13, true) });
empty.padding = ui.layout.Edges.all(16);
empty.gap = 16;
@@ -281,7 +286,7 @@ fn wifiCard(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
}
if (available) {
try rows.append(a, divider(false));
- var hidden = action(cc, "wifi_hidden", "Join Hidden Network", 0, hiddenClicked, busy);
+ var hidden = action(cc, "wifi_hidden", i18n.tr("Join Hidden Network"), 0, hiddenClicked, busy);
hidden.kind.button.variant = .ghost;
hidden.kind.button.leading_icon = .plus;
hidden.kind.button.trailing_icon = if (s.hidden) .chevron_up else .chevron_down;
@@ -307,18 +312,18 @@ fn wifiCard(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
}
fn form(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
if (s.selected) |net| {
- if (net.connected) return group(a, .column, &.{text("You're connected to this network", 12, true)});
- if (net.security == .unsupported and net.saved.len == 0) return group(a, .column, &.{text("Configure this network with a network tool", 12, true)});
+ if (net.connected) return group(a, .column, &.{text(i18n.tr("You're connected to this network"), 12, true)});
+ if (net.security == .unsupported and net.saved.len == 0) return group(a, .column, &.{text(i18n.tr("Configure this network with a network tool"), 12, true)});
}
var items: std.ArrayList(W) = .empty;
if (s.hidden) {
- if (s.name_data == null) s.name_data = .{ .placeholder = "Network name (SSID)", .value = try gpa.dupe(u8, ""), .owner = cc, .on_change = nameChanged };
+ if (s.name_data == null) s.name_data = .{ .placeholder = i18n.tr("Network name (SSID)"), .value = try gpa.dupe(u8, ""), .owner = cc, .on_change = nameChanged };
const field = try a.create(W);
field.* = .{ .name = "wifi_ssid", .kind = .{ .text_input = s.name_data.? }, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 } };
- try items.append(a, text("Network name", 12, true));
+ try items.append(a, text(i18n.tr("Network name"), 12, true));
try items.append(a, field.*);
- try items.append(a, text("Security", 12, true));
- try items.append(a, .{ .name = "wifi_security", .kind = .{ .select = .{ .labels = &.{ "WPA2 / WPA3 Personal", "WPA3 Personal", "Open" }, .selected = if (s.security == .personal) 0 else if (s.security == .sae) 1 else 2, .owner = cc, .on_change = securityChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 34 } });
+ try items.append(a, text(i18n.tr("Security"), 12, true));
+ try items.append(a, .{ .name = "wifi_security", .kind = .{ .select = .{ .labels = panel.translatedLabels(&.{ i18n.msg("WPA2 / WPA3 Personal"), i18n.msg("WPA3 Personal"), i18n.msg("Open") }), .selected = if (s.security == .personal) 0 else if (s.security == .sae) 1 else 2, .owner = cc, .on_change = securityChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 34 } });
}
const net = s.selected orelse network.Network{ .security = s.security };
if (net.security == .personal or net.security == .sae) {
@@ -326,19 +331,19 @@ fn form(s: *Section, cc: *panel.ControlCenter, a: Allocator) !W {
s.password.storage = try secure.alloc(u8, 128);
@memset(s.password.storage, 0);
}
- try items.append(a, text(if (net.saved.len != 0) "Password (leave empty to use saved)" else "Password", 12, true));
+ try items.append(a, text(if (net.saved.len != 0) i18n.tr("Password (leave empty to use saved)") else i18n.tr("Password"), 12, true));
var reveal = action(cc, "wifi_reveal", "", 0, revealClicked, false);
reveal.kind.button.icon = if (s.revealed) .eye else .eye_off;
reveal.kind.button.variant = .ghost;
reveal.width = .{ .fixed = 34 };
try items.append(a, try group(a, .row, &.{
- .{ .name = "wifi_password", .kind = .{ .secret_input = .{ .placeholder = "Password", .input = &s.password, .revealed = s.revealed } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 36 } }, reveal,
+ .{ .name = "wifi_password", .kind = .{ .secret_input = .{ .placeholder = i18n.tr("Password"), .input = &s.password, .revealed = s.revealed } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 36 } }, reveal,
}));
}
- if (net.saved.len == 0) try items.append(a, .{ .name = "wifi_autojoin", .kind = .{ .checkbox = .{ .label = "Connect automatically", .checked = s.autojoin, .owner = cc, .on_change = autojoinChanged } }, .width = .{ .percent = 1 } });
- var join = action(cc, "wifi_join", "Connect", 0, joinClicked, cc.server.network.?.busy);
+ if (net.saved.len == 0) try items.append(a, .{ .name = "wifi_autojoin", .kind = .{ .checkbox = .{ .label = i18n.tr("Connect automatically"), .checked = s.autojoin, .owner = cc, .on_change = autojoinChanged } }, .width = .{ .percent = 1 } });
+ var join = action(cc, "wifi_join", i18n.tr("Connect"), 0, joinClicked, cc.server.network.?.busy);
join.kind.button.variant = .primary;
- var buttons = try group(a, .row, &.{ action(cc, "wifi_cancel", "Cancel", 0, cancelClicked, false), join });
+ var buttons = try group(a, .row, &.{ action(cc, "wifi_cancel", i18n.tr("Cancel"), 0, cancelClicked, false), join });
buttons.justify = .end;
try items.append(a, buttons);
var result = try group(a, .column, items.items);
@@ -448,7 +453,7 @@ fn joinClicked(raw: ?*anyopaque, _: usize) void {
if (s.hidden) {
const value = if (s.name_field) |field| field.kind.text_input.value else "";
if (value.len > 32) {
- s.message = "Network names must be at most 32 bytes.";
+ s.message = i18n.tr("Network names must be at most 32 bytes.");
cc.refresh();
return;
}
diff --git a/src/control_center/sections/portals.zig b/src/control_center/sections/portals.zig
index 3a3e248..8f72486 100644
--- a/src/control_center/sections/portals.zig
+++ b/src/control_center/sections/portals.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const panel = @import("../panel.zig");
const ui = @import("ui");
@@ -7,7 +8,7 @@ const gpa = @import("../../main.zig").gpa;
pub const Section = struct {
arena: std.heap.ArenaAllocator = .init(gpa),
root: W = undefined,
- message: []const u8 = "Changes apply next time you sign in.",
+ message: []const u8 = "",
};
fn text(value: []const u8, dim: bool) W {
const t = panel.palette();
@@ -20,7 +21,7 @@ fn row(cc: *panel.ControlCenter, a: std.mem.Allocator, title: []const u8, name:
};
const options = try a.alloc([]const u8, labels.len + @as(usize, if (index == values.len) 1 else 0));
@memcpy(options[0..labels.len], labels);
- if (index == values.len) options[index] = std.fmt.allocPrint(a, "Custom ({s})", .{selected}) catch "Custom";
+ if (index == values.len) options[index] = i18n.allocPrint(a, i18n.tr("Custom ({name})"), .{ .name = selected }) catch i18n.tr("Custom");
return .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .gap = 12, .children = try a.dupe(W, &.{
text(title, false),
.{ .name = name, .kind = .{ .select = .{ .labels = options, .selected = index, .owner = cc, .on_change = callback } }, .width = .{ .fixed = 190 } },
@@ -35,21 +36,21 @@ pub fn build(s: *Section, cc: *panel.ControlCenter) void {
fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
const content = config.load(a, cc.server.io, cc.server.environ) catch config.defaults;
return .{ .kind = .container, .direction = .column, .gap = 12, .width = .{ .percent = 1 }, .children = try a.dupe(W, &.{
- panel.sectionTitle("Desktop portals"),
- text("Choose the services apps use for desktop dialogs. The selected backend must be installed.", true),
+ panel.sectionTitle(i18n.tr("Desktop portals")),
+ text(i18n.tr("Choose the services apps use for desktop dialogs. The selected backend must be installed."), true),
try row(cc, a, "Default backend", "portal_default", &.{ "GTK", "KDE", "RediWM + GTK" }, &default_values, config.get(content, "default") orelse "gtk", defaultChanged),
try row(cc, a, "File dialogs", "portal_file_chooser", &.{ "RediWM", "GTK", "KDE", "Any available" }, &file_values, config.get(content, config.chooser_key) orelse config.get(content, "default") orelse "gtk", fileChanged),
- text(s.message, true),
+ text(if (s.message.len > 0) s.message else i18n.tr("Changes apply next time you sign in."), true),
}) };
}
fn save(owner: ?*anyopaque, key: []const u8, value: []const u8) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
config.save(cc.server.io, cc.server.environ, key, value) catch {
- cc.portals.message = "Could not save portal preferences. Check your configuration directory.";
+ cc.portals.message = i18n.tr("Could not save portal preferences. Check your configuration directory.");
cc.refresh();
return;
};
- cc.portals.message = "Saved. Changes apply next time you sign in.";
+ cc.portals.message = i18n.tr("Saved. Changes apply next time you sign in.");
cc.refresh();
}
fn defaultChanged(owner: ?*anyopaque, _: usize, index: usize) void {
diff --git a/src/control_center/sections/printers.zig b/src/control_center/sections/printers.zig
index 7904eae..68ecc8c 100644
--- a/src/control_center/sections/printers.zig
+++ b/src/control_center/sections/printers.zig
@@ -1,4 +1,5 @@
//! Printer setup, queue settings and explicit diagnostic print workflows.
+const i18n = @import("i18n");
const std = @import("std");
const ui = @import("ui");
const panel = @import("../panel.zig");
@@ -216,7 +217,7 @@ fn authenticateClicked(raw: ?*anyopaque, _: usize) void {
const self = &cc.printers;
const manager = self.administration orelse return;
manager.authenticate(fieldValue(self, .auth_user), self.password.value()) catch {
- self.message = "Enter a valid CUPS administrator username and password.";
+ self.message = i18n.tr("Enter a valid CUPS administrator username and password.");
self.password.clear();
cc.refresh();
return;
@@ -305,8 +306,8 @@ fn wrapLabels(a: A, widget: *W, available: f32) !void {
for (widget.children) |*child| try wrapLabels(a, child, if (widget.direction == .row and child.width != .fixed) share else inner);
}
fn tree(self: *Section, cc: *panel.ControlCenter, a: A) !W {
- if (cc.server.greeter_mode) return text("Printers are unavailable in the greeter.", true);
- if (self.client == null) self.client = printing.Client.create(cc.server.io, cc.server.environ, cc.server.wl_server.getEventLoop(), cc, changed) catch return text("Could not start printer diagnostics.", true);
+ if (cc.server.greeter_mode) return text(i18n.tr("Printers are unavailable in the greeter."), true);
+ if (self.client == null) self.client = printing.Client.create(cc.server.io, cc.server.environ, cc.server.wl_server.getEventLoop(), cc, changed) catch return text(i18n.tr("Could not start printer diagnostics."), true);
const client = self.client.?;
var content: std.ArrayList(W) = .empty;
const state = client.current;
@@ -326,15 +327,15 @@ fn tree(self: *Section, cc: *panel.ControlCenter, a: A) !W {
self.listener_attempted = false;
};
const failure: ?anyerror = if (client.failure) |err| err else if (state) |snapshot| if (snapshot.failure) |err| err else snapshot.action_error else null;
- const status = if (client.busy) "Loading printers…" else if (failure) |err| cups.failure(err) else "Connected to CUPS.";
+ const status = if (client.busy) i18n.tr("Loading printers…") else if (failure) |err| cups.failure(err) else i18n.tr("Connected to CUPS.");
if (client.busy or failure != null) try content.append(a, named(text(status, true), "printers_status"));
try content.append(a, try actionRow(a, cc, &.{
- button(cc, "printers_add", "Add a printer", 0, !canAdmin(self) or busy(self), addClicked),
- button(cc, "printers_refresh", "Refresh", 0, client.busy, refresh),
+ button(cc, "printers_add", i18n.tr("Add a printer"), 0, !canAdmin(self) or busy(self), addClicked),
+ button(cc, "printers_refresh", i18n.tr("Refresh"), 0, client.busy, refresh),
}));
if (self.message.len > 0) try content.append(a, text(self.message, false));
if (self.administration) |manager| {
- if (!std.mem.eql(u8, manager.status, "Printer administration is available; authorization may be required.")) try content.append(a, text(manager.status, true));
+ if (manager.status.len != 0) try content.append(a, text(manager.status, true));
if (manager.authentication) {
if (self.password.storage.len == 0) {
self.password.storage = try secure.alloc(u8, 4095);
@@ -342,39 +343,39 @@ fn tree(self: *Section, cc: *panel.ControlCenter, a: A) !W {
}
const username = try cups.user(a);
try content.append(a, try card(a, &.{
- text("Authorize printer administration", false),
- text("Enter an account permitted to administer the local CUPS server.", true),
- try entry(self, cc, a, .auth_user, "Username", username),
- .{ .name = "printers_auth_password", .kind = .{ .secret_input = .{ .placeholder = "Password", .input = &self.password } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 } },
+ text(i18n.tr("Authorize printer administration"), false),
+ text(i18n.tr("Enter an account permitted to administer the local CUPS server."), true),
+ try entry(self, cc, a, .auth_user, i18n.tr("Username"), username),
+ .{ .name = "printers_auth_password", .kind = .{ .secret_input = .{ .placeholder = i18n.tr("Password"), .input = &self.password } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 36 } },
try actionRow(a, cc, &.{
- button(cc, "printers_auth_submit", "Authenticate", 0, false, authenticateClicked),
- button(cc, "printers_auth_cancel", "Cancel", 0, false, cancelAuthenticationClicked),
+ button(cc, "printers_auth_submit", i18n.tr("Authenticate"), 0, false, authenticateClicked),
+ button(cc, "printers_auth_cancel", i18n.tr("Cancel"), 0, false, cancelAuthenticationClicked),
}),
}));
}
- } else try content.append(a, text("Printer setup requires the local default CUPS server.", true));
+ } else try content.append(a, text(i18n.tr("Printer setup requires the local default CUPS server."), true));
if (state) |snapshot| {
if (snapshot.action_error) |err| try content.append(a, text(cups.failure(err), false));
if (snapshot.failure != null) {
try content.append(a, text(snapshot.platform.missing_cups, true));
- try content.append(a, button(cc, "printers_start", "Start CUPS", 0, !snapshot.admin_local or busy(self) or self.administration == null, startClicked));
+ try content.append(a, button(cc, "printers_start", i18n.tr("Start CUPS"), 0, !snapshot.admin_local or busy(self) or self.administration == null, startClicked));
}
if (self.form == .add or self.form == .connection) try content.append(a, try addForm(self, cc, a, snapshot));
if (snapshot.cups) |data| {
if (data.printers.len == 0) {
- try content.append(a, text("No printers configured.", false));
+ try content.append(a, text(i18n.tr("No printers configured."), false));
} else {
const selected = selectIndex(self, data.printers);
const labels = try a.alloc([]const u8, data.printers.len);
const queue_refs = try a.alloc([]const u8, data.printers.len);
for (data.printers, 0..) |printer, i| {
queue_refs[i] = try a.dupe(u8, printer.name);
- labels[i] = try std.fmt.allocPrint(a, "{s} · {s}{s}", .{ printer.name, cups.printerState(printer.state), if (std.mem.eql(u8, printer.name, data.user_default)) " · Default" else if (printer.is_default) " · System default" else "" });
+ labels[i] = try std.fmt.allocPrint(a, "{s} · {s}{s}", .{ printer.name, cups.printerState(printer.state), if (std.mem.eql(u8, printer.name, data.user_default)) i18n.tr(" · Default") else if (printer.is_default) i18n.tr(" · System default") else "" });
}
self.queue_refs = queue_refs;
try content.append(a, try group(a, &.{
- text("Printer", false),
+ text(i18n.tr("Printer"), false),
.{ .name = "printers_printer", .kind = .{ .select = .{ .labels = labels, .selected = selected, .disabled = busy(self), .owner = cc, .on_change = select } }, .height = .{ .fixed = 34 }, .width = .{ .percent = 1 } },
}));
try details(self, cc, a, &content, snapshot, data, data.printers[selected]);
@@ -383,14 +384,14 @@ fn tree(self: *Section, cc: *panel.ControlCenter, a: A) !W {
// Attached printers can still be inspected if CUPS is missing or empty.
if (snapshot.usb) |inventory| if (inventory.devices.len > 0) {
var devices: std.ArrayList(W) = .empty;
- try devices.append(a, disclosure(self, cc, "printers_devices", "Attached USB printers", .devices));
+ try devices.append(a, disclosure(self, cc, "printers_devices", i18n.tr("Attached USB printers"), .devices));
if (isOpen(self, .devices)) for (inventory.devices) |device| {
try devices.append(a, text(try std.fmt.allocPrint(a, "{s} {s} ({x:0>4}:{x:0>4})", .{ device.manufacturer, device.product, device.vid, device.pid }), true));
if (known.lookup(device.vid, device.pid)) |hint| {
try devices.append(a, text(hint.note, true));
try devices.append(a, text(hint.driver_project, true));
}
- if (device.nodes.len == 0) try devices.append(a, text("No usblp node was found; CUPS may still use libusb or ipp-usb.", true));
+ if (device.nodes.len == 0) try devices.append(a, text(i18n.tr("No usblp node was found; CUPS may still use libusb or ipp-usb."), true));
};
try content.append(a, try card(a, devices.items));
};
@@ -517,25 +518,25 @@ fn details(self: *Section, cc: *panel.ControlCenter, a: A, content: *std.ArrayLi
if (printer.message.len > 0 and !repeated_message) try header.append(a, text(try a.dupe(u8, printer.message), true));
for (printer.markers) |marker| {
if (marker.level == null) continue;
- try header.append(a, text(if (marker.level) |level| try std.fmt.allocPrint(a, "{s}: {d}%", .{ marker.name, level }) else try std.fmt.allocPrint(a, "{s}: level unavailable", .{marker.name}), true));
+ try header.append(a, text(if (marker.level) |level| try std.fmt.allocPrint(a, "{s}: {d}%", .{ marker.name, level }) else try i18n.allocPrint(a, i18n.tr("{name}: level unavailable"), .{ .name = marker.name }), true));
if (marker.level) |level| {
const fill = try a.create(W);
fill.* = .{ .kind = .{ .rect = .{ .color = panel.palette().accent, .radius = 3 } }, .width = .{ .percent = @as(f32, @floatFromInt(level)) / 100 }, .height = .{ .fixed = 6 } };
try header.append(a, .{ .kind = .{ .rect = .{ .color = panel.palette().border_soft, .radius = 3 } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 6 }, .children = fill[0..1] });
}
}
- if (printer.accepting == false) try header.append(a, text("Not accepting new jobs", false));
+ if (printer.accepting == false) try header.append(a, text(i18n.tr("Not accepting new jobs"), false));
const result = ladder.evaluate(try diagnostic(a, state, data, printer));
if (result.firstFailure()) |first| {
const row = result.rows[first];
// Historical job failures belong in history and troubleshooting.
if (row.layer != .last_job and row.layer != .queue) try header.append(a, text(try a.dupe(u8, row.message), false));
}
- if (printer.state == 5) try header.append(a, button(cc, "printers_resume", "Resume printer", 0, !canAdmin(self) or busy(self), resumeClicked));
+ if (printer.state == 5) try header.append(a, button(cc, "printers_resume", i18n.tr("Resume printer"), 0, !canAdmin(self) or busy(self), resumeClicked));
try header.append(a, try actionRow(a, cc, &.{
- button(cc, "printers_test_page", "Print test page…", @intFromEnum(printing.TestKind.driver), busy(self) or self.form == .test_result, testClicked),
- button(cc, "printers_default", if (std.mem.eql(u8, data.user_default, printer.name)) "Your default printer" else "Set as my default", 0, busy(self) or std.mem.eql(u8, data.user_default, printer.name), defaultClicked),
- disclosure(self, cc, "printers_manage", "Manage…", .manage),
+ button(cc, "printers_test_page", i18n.tr("Print test page…"), @intFromEnum(printing.TestKind.driver), busy(self) or self.form == .test_result, testClicked),
+ button(cc, "printers_default", if (std.mem.eql(u8, data.user_default, printer.name)) i18n.tr("Your default printer") else i18n.tr("Set as my default"), 0, busy(self) or std.mem.eql(u8, data.user_default, printer.name), defaultClicked),
+ disclosure(self, cc, "printers_manage", i18n.tr("Manage…"), .manage),
}));
if (preferences.overrideMessage(cc.server.environ)) |message| try header.append(a, text(message, true));
if (isOpen(self, .manage)) try header.append(a, try management(self, cc, a, printer));
@@ -546,49 +547,49 @@ fn details(self: *Section, cc: *panel.ControlCenter, a: A, content: *std.ArrayLi
try content.append(a, try printingOptions(self, cc, a, state, printer));
var troubleshooting: std.ArrayList(W) = .empty;
- try troubleshooting.append(a, disclosure(self, cc, "printers_diagnostics", "Troubleshooting", .troubleshooting));
+ try troubleshooting.append(a, disclosure(self, cc, "printers_diagnostics", i18n.tr("Troubleshooting"), .troubleshooting));
if (isOpen(self, .troubleshooting)) {
- const layer_names = [_][]const u8{ "Connection", "Device node", "CUPS", "Queue", "Backend", "Media and resolution", "Last job" };
+ const layer_names = [_]i18n.Message{ i18n.msg("Connection"), i18n.msg("Device node"), i18n.msg("CUPS"), i18n.msg("Queue"), i18n.msg("Backend"), i18n.msg("Media and resolution"), i18n.msg("Last job") };
for (result.rows, layer_names) |row, name| {
try troubleshooting.append(a, text(try std.fmt.allocPrint(a, "{s} · {s}: {s}", .{ switch (row.verdict) {
- .pass => "Pass",
- .fail => "Problem",
- .unknown => "Unknown",
- }, name, row.message }), row.verdict != .fail));
+ .pass => i18n.tr("Pass"),
+ .fail => i18n.tr("Problem"),
+ .unknown => i18n.tr("Unknown"),
+ }, name.get(), row.message }), row.verdict != .fail));
if (row.verdict == .fail and row.fix.len > 0) try troubleshooting.append(a, text(row.fix, true));
}
- try troubleshooting.append(a, button(cc, "printers_copy_report", if (self.copied) "Report copied" else "Copy diagnostic report", 0, false, copy));
- try troubleshooting.append(a, text("Reports omit document names, user names, USB serials and private printer addresses.", true));
+ try troubleshooting.append(a, button(cc, "printers_copy_report", if (self.copied) i18n.tr("Report copied") else i18n.tr("Copy diagnostic report"), 0, false, copy));
+ try troubleshooting.append(a, text(i18n.tr("Reports omit document names, user names, USB serials and private printer addresses."), true));
}
try content.append(a, try card(a, troubleshooting.items));
// A test owns the media fields until its confirmation/result is dismissed.
if (!testing) {
- try content.append(a, disclosure(self, cc, "printers_label_tools", "Label printer and advanced test tools", .label_tools));
+ try content.append(a, disclosure(self, cc, "printers_label_tools", i18n.tr("Label printer and advanced test tools"), .label_tools));
if (isOpen(self, .label_tools)) try content.append(a, try toolsForm(self, cc, a, state, printer));
}
}
fn management(self: *Section, cc: *panel.ControlCenter, a: A, printer: cups.Printer) !W {
var items: std.ArrayList(W) = .empty;
- try items.append(a, text(try std.fmt.allocPrint(a, "Queue: {s}", .{printer.name}), true));
- try items.append(a, button(cc, "printers_disable", "Disable printer", 0, !canAdmin(self) or busy(self) or printer.state == 5, disableClicked));
- try items.append(a, button(cc, "printers_accepting", if (printer.accepting == false) "Accept jobs" else "Stop accepting jobs", 0, !canAdmin(self) or busy(self), acceptingClicked));
- try items.append(a, button(cc, "printers_connection", "Change connection…", 0, !canAdmin(self) or busy(self), connectionClicked));
- try items.append(a, button(cc, "printers_system_default", "Set as system default", 0, !canAdmin(self) or busy(self) or printer.is_default, systemDefaultClicked));
- try items.append(a, try entry(self, cc, a, .rename, "Display name", ""));
- try items.append(a, button(cc, "printers_rename_save", "Save display name", 0, !canAdmin(self) or busy(self), renameClicked));
- try items.append(a, try entry(self, cc, a, .queue_name, "Queue identifier", ""));
- try items.append(a, button(cc, "printers_queue_rename", "Change queue identifier…", 0, !canAdmin(self) or busy(self) or std.ascii.eqlIgnoreCase(fieldValue(self, .queue_name), printer.name), queueRenameClicked));
+ try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Queue: {name}"), .{ .name = printer.name }), true));
+ try items.append(a, button(cc, "printers_disable", i18n.tr("Disable printer"), 0, !canAdmin(self) or busy(self) or printer.state == 5, disableClicked));
+ try items.append(a, button(cc, "printers_accepting", if (printer.accepting == false) i18n.tr("Accept jobs") else i18n.tr("Stop accepting jobs"), 0, !canAdmin(self) or busy(self), acceptingClicked));
+ try items.append(a, button(cc, "printers_connection", i18n.tr("Change connection…"), 0, !canAdmin(self) or busy(self), connectionClicked));
+ try items.append(a, button(cc, "printers_system_default", i18n.tr("Set as system default"), 0, !canAdmin(self) or busy(self) or printer.is_default, systemDefaultClicked));
+ try items.append(a, try entry(self, cc, a, .rename, i18n.tr("Display name"), ""));
+ try items.append(a, button(cc, "printers_rename_save", i18n.tr("Save display name"), 0, !canAdmin(self) or busy(self), renameClicked));
+ try items.append(a, try entry(self, cc, a, .queue_name, i18n.tr("Queue identifier"), ""));
+ try items.append(a, button(cc, "printers_queue_rename", i18n.tr("Change queue identifier…"), 0, !canAdmin(self) or busy(self) or std.ascii.eqlIgnoreCase(fieldValue(self, .queue_name), printer.name), queueRenameClicked));
if (self.form == .queue_rename) {
- try items.append(a, text(try std.fmt.allocPrint(a, "Change {s} to {s}?", .{ printer.name, fieldValue(self, .queue_name) }), false));
- try items.append(a, text("CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards.", true));
- try items.append(a, button(cc, "printers_queue_rename_confirm", "Change this queue identifier", 0, !canAdmin(self) or busy(self), queueRenameConfirm));
- try items.append(a, button(cc, "printers_queue_rename_cancel", "Keep identifier", 0, busy(self), dismiss));
+ try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Change {old} to {name}?"), .{ .old = printer.name, .name = fieldValue(self, .queue_name) }), false));
+ try items.append(a, text(i18n.tr("CUPS copies the queue and removes its old identifier. Finish all jobs first. Check the resulting driver options afterwards."), true));
+ try items.append(a, button(cc, "printers_queue_rename_confirm", i18n.tr("Change this queue identifier"), 0, !canAdmin(self) or busy(self), queueRenameConfirm));
+ try items.append(a, button(cc, "printers_queue_rename_cancel", i18n.tr("Keep identifier"), 0, busy(self), dismiss));
}
if (self.form == .remove) {
- try items.append(a, text(try std.fmt.allocPrint(a, "Remove printer {s} ({s})? This deletes its queue and settings.", .{ if (printer.info.len > 0) printer.info else printer.name, printer.name }), false));
- try items.append(a, button(cc, "printers_remove_confirm", "Remove this printer", 0, !canAdmin(self) or busy(self), removeConfirm));
- try items.append(a, button(cc, "printers_remove_cancel", "Keep printer", 0, busy(self), dismiss));
- } else try items.append(a, button(cc, "printers_remove", "Remove printer…", 0, !canAdmin(self) or busy(self), removeClicked));
+ try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Remove printer {name} ({queue})? This deletes its queue and settings."), .{ .name = if (printer.info.len > 0) printer.info else printer.name, .queue = printer.name }), false));
+ try items.append(a, button(cc, "printers_remove_confirm", i18n.tr("Remove this printer"), 0, !canAdmin(self) or busy(self), removeConfirm));
+ try items.append(a, button(cc, "printers_remove_cancel", i18n.tr("Keep printer"), 0, busy(self), dismiss));
+ } else try items.append(a, button(cc, "printers_remove", i18n.tr("Remove printer…"), 0, !canAdmin(self) or busy(self), removeClicked));
return group(a, items.items);
}
@@ -604,7 +605,7 @@ fn preference(option: driver_options.Option) ?Preference {
}
fn printingOptions(self: *Section, cc: *panel.ControlCenter, a: A, state: *const printing.State, printer: cups.Printer) !W {
var options: std.ArrayList(W) = .empty;
- try options.append(a, panel.sectionTitle("Printing preferences"));
+ try options.append(a, panel.sectionTitle(i18n.tr("Printing preferences")));
const groups: []const driver_options.Group = if (std.mem.eql(u8, state.selected, printer.name)) state.groups else &.{};
// Prefer the driver's selectable default over an alias of the same setting.
var common: [@typeInfo(Preference).@"enum".fields.len]?*const driver_options.Option = @splat(null);
@@ -614,14 +615,14 @@ fn printingOptions(self: *Section, cc: *panel.ControlCenter, a: A, state: *const
const slot = &common[@intFromEnum(kind)];
if (slot.* == null or (slot.*.?.source == .ipp and option.source == .ppd)) slot.* = option;
};
- if (common[@intFromEnum(Preference.paper)] == null) try options.append(a, text(try std.fmt.allocPrint(a, "Paper: {s}", .{if (printer.media.len > 0) printer.media else "Unavailable"}), true));
+ if (common[@intFromEnum(Preference.paper)] == null) try options.append(a, text(try i18n.allocPrint(a, i18n.tr("Paper: {paper}"), .{ .paper = if (printer.media.len > 0) printer.media else i18n.tr("Unavailable") }), true));
if (common[@intFromEnum(Preference.resolution)] == null) {
if (resolution(printer.resolution)) |r| {
- try options.append(a, text(try std.fmt.allocPrint(a, "Resolution: {d} × {d} dpi", .{ r.x_dpi, r.y_dpi }), true));
- } else try options.append(a, text("Resolution: Unavailable", true));
+ try options.append(a, text(try i18n.allocPrint(a, i18n.tr("Resolution: {x} × {y} dpi"), .{ .x = r.x_dpi, .y = r.y_dpi }), true));
+ } else try options.append(a, text(i18n.tr("Resolution: Unavailable"), true));
}
- if (common[@intFromEnum(Preference.colour)] == null and printer.color.len > 0) try options.append(a, text(try std.fmt.allocPrint(a, "Colour: {s}", .{printer.color}), true));
- if (common[@intFromEnum(Preference.sides)] == null and printer.sides.len > 0) try options.append(a, text(try std.fmt.allocPrint(a, "Sides: {s}", .{printer.sides}), true));
+ if (common[@intFromEnum(Preference.colour)] == null and printer.color.len > 0) try options.append(a, text(try i18n.allocPrint(a, i18n.tr("Colour: {colour}"), .{ .colour = printer.color }), true));
+ if (common[@intFromEnum(Preference.sides)] == null and printer.sides.len > 0) try options.append(a, text(try i18n.allocPrint(a, i18n.tr("Sides: {sides}"), .{ .sides = printer.sides }), true));
var refs: std.ArrayList(driver_options.Option) = .empty;
for (common) |option| if (option) |value| try optionWidget(self, cc, a, &options, &refs, state, value.*);
var has_more = false;
@@ -631,12 +632,12 @@ fn printingOptions(self: *Section, cc: *panel.ControlCenter, a: A, state: *const
if (driver_options.ppdMargins(state.ppd, value) != null) has_more = true;
};
};
- if (has_more) try options.append(a, disclosure(self, cc, "printers_more_options", "More printing options", .more_options));
+ if (has_more) try options.append(a, disclosure(self, cc, "printers_more_options", i18n.tr("More printing options"), .more_options));
if (isOpen(self, .more_options)) for (groups) |option_group| {
var heading = false;
for (option_group.options) |option| {
if (std.mem.eql(u8, option.name, "PageSize")) {
- if (driver_options.ppdMargins(state.ppd, option.default orelse continue)) |margins| try options.append(a, text(try std.fmt.allocPrint(a, "Margins (mm): left {d:.1}, right {d:.1}, top {d:.1}, bottom {d:.1}", .{ margins.left_mm, margins.right_mm, margins.top_mm, margins.bottom_mm }), true));
+ if (driver_options.ppdMargins(state.ppd, option.default orelse continue)) |margins| try options.append(a, text(try i18n.allocPrint(a, i18n.tr("Margins (mm): left {left}, right {right}, top {top}, bottom {bottom}"), .{ .left = try std.fmt.allocPrint(a, "{d:.1}", .{margins.left_mm}), .right = try std.fmt.allocPrint(a, "{d:.1}", .{margins.right_mm}), .top = try std.fmt.allocPrint(a, "{d:.1}", .{margins.top_mm}), .bottom = try std.fmt.allocPrint(a, "{d:.1}", .{margins.bottom_mm}) }), true));
}
if (preference(option) != null or (option.choices.len == 0 and option.range == null)) continue;
if (!heading) {
@@ -673,10 +674,10 @@ fn optionWidget(self: *Section, cc: *panel.ControlCenter, a: A, options: *std.Ar
try options.append(a, text(try a.dupe(u8, option.label), false));
if (canAdmin(self) and !busy(self) and editable) {
try options.append(a, .{ .name = try std.fmt.allocPrint(a, "printers_range_{s}", .{option.name}), .kind = .{ .stepper = .{ .value = draft.value, .min = @floatFromInt(range.lower), .max = @floatFromInt(range.upper), .step = 1, .owner = cc, .id = index.?, .on_change = rangeChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 34 } });
- try options.append(a, button(cc, try std.fmt.allocPrint(a, "printers_option_{s}_apply", .{option.name}), "Apply value", index.?, false, rangeApply));
+ try options.append(a, button(cc, try std.fmt.allocPrint(a, "printers_option_{s}_apply", .{option.name}), i18n.tr("Apply value"), index.?, false, rangeApply));
} else {
- try options.append(a, text(try std.fmt.allocPrint(a, "{d:.0} (supported {d}–{d})", .{ draft.value, range.lower, range.upper }), true));
- if (!editable) try options.append(a, text("This range has no selectable queue setting in the current driver.", true));
+ try options.append(a, text(try i18n.allocPrint(a, i18n.tr("{value} (supported {min}–{max})"), .{ .value = try std.fmt.allocPrint(a, "{d:.0}", .{draft.value}), .min = range.lower, .max = range.upper }), true));
+ if (!editable) try options.append(a, text(i18n.tr("This range has no selectable queue setting in the current driver."), true));
}
}
return;
@@ -697,7 +698,7 @@ fn optionWidget(self: *Section, cc: *panel.ControlCenter, a: A, options: *std.Ar
text(try a.dupe(u8, option.label), false),
.{ .name = try std.fmt.allocPrint(a, "printers_option_{s}", .{option.name}), .kind = .{ .select = .{ .labels = labels, .selected = selected, .disabled = !canAdmin(self) or busy(self) or !editable, .owner = cc, .id = id, .on_change = optionChanged } }, .height = .{ .fixed = 34 }, .width = .{ .percent = 1 } },
}));
- if (!editable) try options.append(a, text("This capability has no selectable queue default in the current driver.", true));
+ if (!editable) try options.append(a, text(i18n.tr("This capability has no selectable queue default in the current driver."), true));
}
fn historical(job: cups.Job) bool {
@@ -711,7 +712,7 @@ fn jobList(self: *Section, cc: *panel.ControlCenter, a: A, data: cups.Snapshot,
if (!job.own or !std.mem.eql(u8, job.printer, printer.name)) continue;
if (historical(job)) history += 1 else active += 1;
}
- try items.append(a, panel.sectionTitle(if (active == 0) "Print queue" else try std.fmt.allocPrint(a, "Print queue · {d}", .{active})));
+ try items.append(a, panel.sectionTitle(if (active == 0) i18n.tr("Print queue") else try i18n.allocPrint(a, i18n.tr("Print queue · {n}"), .{ .n = active })));
for (data.jobs) |job| {
if (!job.own or !std.mem.eql(u8, job.printer, printer.name) or historical(job)) continue;
try jobRow(self, cc, a, &items, job);
@@ -721,9 +722,9 @@ fn jobList(self: *Section, cc: *panel.ControlCenter, a: A, data: cups.Snapshot,
if (job.message.len > 0) try items.append(a, text(try a.dupe(u8, job.message), true));
}
}
- if (data.jobs_error) |err| try items.append(a, text(cups.failure(err), true)) else if (active == 0) try items.append(a, text("No active jobs", true));
+ if (data.jobs_error) |err| try items.append(a, text(cups.failure(err), true)) else if (active == 0) try items.append(a, text(i18n.tr("No active jobs"), true));
if (history > 0) {
- try items.append(a, disclosure(self, cc, "printers_history", try std.fmt.allocPrint(a, "Job history · {d}", .{history}), .history));
+ try items.append(a, disclosure(self, cc, "printers_history", try i18n.allocPrint(a, i18n.tr("Job history · {n}"), .{ .n = history }), .history));
if (isOpen(self, .history)) {
var shown: usize = 0;
for (data.jobs) |job| {
@@ -732,20 +733,20 @@ fn jobList(self: *Section, cc: *panel.ControlCenter, a: A, data: cups.Snapshot,
try jobRow(self, cc, a, &items, job);
shown += 1;
}
- if (shown < history) try items.append(a, button(cc, "printers_history_more", "Show more", 0, false, moreHistory));
+ if (shown < history) try items.append(a, button(cc, "printers_history_more", i18n.tr("Show more"), 0, false, moreHistory));
}
}
return card(a, items.items);
}
fn jobRow(self: *Section, cc: *panel.ControlCenter, a: A, items: *std.ArrayList(W), job: cups.Job) !void {
- var row = button(cc, try std.fmt.allocPrint(a, "printers_job_{d}", .{job.id}), try std.fmt.allocPrint(a, "Job {d} · {s}", .{ job.id, cups.jobState(job.state) }), @intCast(@max(0, job.id)), job.id <= 0, jobClicked);
+ var row = button(cc, try std.fmt.allocPrint(a, "printers_job_{d}", .{job.id}), try i18n.allocPrint(a, i18n.tr("Job {id} · {state}"), .{ .id = job.id, .state = cups.jobState(job.state) }), @intCast(@max(0, job.id)), job.id <= 0, jobClicked);
row.kind.button.variant = .ghost;
row.kind.button.trailing_icon = if (self.expanded_job == job.id) .chevron_down else .chevron_right;
if (job.cancellable()) {
- try items.append(a, try actionRow(a, cc, &.{ row, button(cc, try std.fmt.allocPrint(a, "printers_cancel_{d}", .{job.id}), "Cancel job", @intCast(job.id), self.client.?.busy, cancel) }));
+ try items.append(a, try actionRow(a, cc, &.{ row, button(cc, try std.fmt.allocPrint(a, "printers_cancel_{d}", .{job.id}), i18n.tr("Cancel job"), @intCast(job.id), self.client.?.busy, cancel) }));
} else try items.append(a, row);
if (self.expanded_job == job.id) {
- if (job.sheets) |sheets| if (sheets >= 0) try items.append(a, text(try std.fmt.allocPrint(a, "{d} completed sheets reported by CUPS", .{sheets}), true));
+ if (job.sheets) |sheets| if (sheets >= 0) try items.append(a, text(try i18n.allocPrint(a, i18n.trn("{n} completed sheet reported by CUPS", "{n} completed sheets reported by CUPS", @intCast(sheets)), .{ .n = sheets }), true));
if (job.state != 4 and job.state != 6) {
try showReasons(a, items, job.reasons);
if (job.message.len > 0) try items.append(a, text(try a.dupe(u8, job.message), true));
@@ -914,11 +915,11 @@ fn runAdmin(cc: *panel.ControlCenter, action: admin.Action) void {
const manager = cc.printers.administration orelse return;
manager.request(action) catch |err| {
cc.printers.message = switch (err) {
- error.QueueExists => "A printer with this queue name already exists. Choose another name.",
- error.InvalidName => "Use letters, numbers, dots, hyphens or underscores for the queue name.",
- error.InvalidUri, error.UnsupportedScheme => "Enter a supported printer address without credentials.",
- error.UntrustedDevice => "Find available printers again and choose the current discovered device.",
- else => "The printer change could not be requested.",
+ error.QueueExists => i18n.tr("A printer with this queue name already exists. Choose another name."),
+ error.InvalidName => i18n.tr("Use letters, numbers, dots, hyphens or underscores for the queue name."),
+ error.InvalidUri, error.UnsupportedScheme => i18n.tr("Enter a supported printer address without credentials."),
+ error.UntrustedDevice => i18n.tr("Find available printers again and choose the current discovered device."),
+ else => i18n.tr("The printer change could not be requested."),
};
};
cc.refresh();
@@ -926,7 +927,7 @@ fn runAdmin(cc: *panel.ControlCenter, action: admin.Action) void {
fn runClient(cc: *panel.ControlCenter, action: printing.Action) void {
const client = cc.printers.client orelse return;
client.act(action) catch {
- cc.printers.message = "Wait for the current printer operation to finish.";
+ cc.printers.message = i18n.tr("Wait for the current printer operation to finish.");
};
cc.refresh();
}
@@ -1006,7 +1007,7 @@ fn verifyOption(cc: *panel.ControlCenter) void {
for (data.printers) |printer| if (std.mem.eql(u8, printer.name, pending.queue[0..pending.queue_len])) {
const option: driver_options.Option = .{ .name = pending.key[0..pending.key_len], .source = if (pending.ppd) .ppd else .ipp };
const matches = driver_options.settingMatches(state.groups, printer.attributes, option, pending.value[0..pending.value_len]);
- cc.printers.message = if (matches) |saved| if (saved) "Printer setting verified." else "The driver did not report the requested value. Review its settings before printing." else "CUPS accepted the change; the resulting driver value could not be verified.";
+ cc.printers.message = if (matches) |saved| if (saved) i18n.tr("Printer setting verified.") else i18n.tr("The driver did not report the requested value. Review its settings before printing.") else i18n.tr("CUPS accepted the change; the resulting driver value could not be verified.");
return;
};
}
@@ -1042,8 +1043,8 @@ fn addClicked(raw: ?*anyopaque, _: usize) void {
}
fn addForm(self: *Section, cc: *panel.ControlCenter, a: A, state: *const printing.State) !W {
var items: std.ArrayList(W) = .empty;
- try items.append(a, panel.sectionTitle(if (self.form == .connection) "Change printer connection" else "Add a printer"));
- try items.append(a, button(cc, "printers_discover", "Find available printers", 0, !canAdmin(self) or busy(self), discoverClicked));
+ try items.append(a, panel.sectionTitle(if (self.form == .connection) i18n.tr("Change printer connection") else i18n.tr("Add a printer")));
+ try items.append(a, button(cc, "printers_discover", i18n.tr("Find available printers"), 0, !canAdmin(self) or busy(self), discoverClicked));
if (self.administration) |manager| {
const devices = try a.alloc(admin.Device, manager.devices.len);
for (manager.devices, 0..) |device, i| devices[i] = .{ .uri = try a.dupe(u8, device.uri), .make_model = try a.dupe(u8, device.make_model), .info = try a.dupe(u8, device.info), .device_id = try a.dupe(u8, device.device_id) };
@@ -1057,23 +1058,23 @@ fn addForm(self: *Section, cc: *panel.ControlCenter, a: A, state: *const printin
if (used and self.form == .add) continue;
try items.append(a, button(cc, try std.fmt.allocPrint(a, "printers_device_{d}", .{i}), try cups.clean(a, if (device.info.len > 0) device.info else device.make_model), i, busy(self), deviceClicked));
}
- try items.append(a, try entry(self, cc, a, .address, "Printer address (ipp, ipps, socket or lpd)", ""));
- try items.append(a, button(cc, "printers_probe", "Check IPP address", 0, busy(self), probeClicked));
+ try items.append(a, try entry(self, cc, a, .address, i18n.tr("Printer address (ipp, ipps, socket or lpd)"), ""));
+ try items.append(a, button(cc, "printers_probe", i18n.tr("Check IPP address"), 0, busy(self), probeClicked));
if (self.form == .connection) {
- try items.append(a, text("Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue.", true));
- try items.append(a, button(cc, "printers_connection_apply", "Apply connection", 0, busy(self) or !canAdmin(self), applyConnectionClicked));
- try items.append(a, button(cc, "printers_add_cancel", "Keep connection", 0, busy(self), dismiss));
+ try items.append(a, text(i18n.tr("Select an installed USB backend from discovery, or enter a network address. This changes the connection for the selected queue."), true));
+ try items.append(a, button(cc, "printers_connection_apply", i18n.tr("Apply connection"), 0, busy(self) or !canAdmin(self), applyConnectionClicked));
+ try items.append(a, button(cc, "printers_add_cancel", i18n.tr("Keep connection"), 0, busy(self), dismiss));
return card(a, items.items);
}
- try items.append(a, try entry(self, cc, a, .name, "Queue name", "Printer"));
+ try items.append(a, try entry(self, cc, a, .name, i18n.tr("Queue name"), i18n.tr("Printer")));
const data = state.cups orelse return card(a, items.items);
if (data.drivers_error) |err| try items.append(a, text(cups.failure(err), true));
const labels = try a.alloc([]const u8, data.drivers.len + 3);
- labels[0] = "Choose a driver…";
- labels[1] = "IPP Everywhere / AirPrint";
- labels[2] = "Raw queue (printer commands only)";
+ labels[0] = i18n.tr("Choose a driver…");
+ labels[1] = i18n.tr("IPP Everywhere / AirPrint");
+ labels[2] = i18n.tr("Raw queue (printer commands only)");
const driver_refs = try a.alloc([]const u8, data.drivers.len);
- for (data.drivers, 0..) |driver, i| labels[i + 3] = try cups.clean(a, try std.fmt.allocPrint(a, "{s} ({s})", .{ if (driver.model.len > 0) driver.model else "Driver", driver.name }));
+ for (data.drivers, 0..) |driver, i| labels[i + 3] = try cups.clean(a, try std.fmt.allocPrint(a, "{s} ({s})", .{ if (driver.model.len > 0) driver.model else i18n.tr("Driver"), driver.name }));
for (data.drivers, 0..) |driver, i| driver_refs[i] = try a.dupe(u8, driver.name);
self.driver_refs = driver_refs;
if (self.driver_name_len > 0) {
@@ -1095,10 +1096,10 @@ fn addForm(self: *Section, cc: *panel.ControlCenter, a: A, state: *const printin
if (state.action_error == null and state.probe == true and std.mem.eql(u8, fieldValue(self, .address), self.probe_address[0..self.probe_address_len]) and self.driver_index == 0) self.driver_index = 1;
if (self.driver_index >= labels.len) self.driver_index = 0;
try items.append(a, .{ .name = "printers_driver", .kind = .{ .select = .{ .labels = labels, .selected = self.driver_index, .disabled = busy(self), .owner = cc, .on_change = driverChanged } }, .height = .{ .fixed = 34 }, .width = .{ .percent = 1 } });
- try items.append(a, text("A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver.", true));
- if (self.driver_index == 0) try items.append(a, text("No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue.", true));
- try items.append(a, button(cc, "printers_create", "Create printer", 0, busy(self) or !canAdmin(self) or self.driver_index == 0, createClicked));
- try items.append(a, button(cc, "printers_add_cancel", "Cancel setup", 0, busy(self), dismiss));
+ try items.append(a, text(i18n.tr("A raw queue passes commands unchanged; ordinary PDF printing needs a compatible driver."), true));
+ if (self.driver_index == 0) try items.append(a, text(i18n.tr("No unambiguous automatic driver match. Choose a listed driver, check an IPP address, or explicitly choose a raw queue."), true));
+ try items.append(a, button(cc, "printers_create", i18n.tr("Create printer"), 0, busy(self) or !canAdmin(self) or self.driver_index == 0, createClicked));
+ try items.append(a, button(cc, "printers_add_cancel", i18n.tr("Cancel setup"), 0, busy(self), dismiss));
return card(a, items.items);
}
fn discoverClicked(raw: ?*anyopaque, _: usize) void {
@@ -1152,12 +1153,12 @@ fn probeClicked(raw: ?*anyopaque, _: usize) void {
const cc = owner(raw);
const uri = selectedAddress(&cc.printers) catch return;
setup.validateUri(uri, cc.printers.add_discovered) catch {
- cc.printers.message = "Enter a supported printer address without credentials.";
+ cc.printers.message = i18n.tr("Enter a supported printer address without credentials.");
cc.refresh();
return;
};
if (!std.mem.startsWith(u8, uri, "ipp://") and !std.mem.startsWith(u8, uri, "ipps://")) {
- cc.printers.message = "Address checks support IPP printers. Other connections can be tested with an explicit print after setup.";
+ cc.printers.message = i18n.tr("Address checks support IPP printers. Other connections can be tested with an explicit print after setup.");
cc.refresh();
return;
}
@@ -1210,7 +1211,7 @@ fn finishCreate(cc: *panel.ControlCenter) void {
defer pending.destroy();
const state = cc.printers.client.?.current orelse return;
if (state.failure != null or cc.printers.client.?.failure != null or state.generation != cc.printers.client.?.generation) {
- cc.printers.message = "Could not verify existing printers. Refresh before creating a queue.";
+ cc.printers.message = i18n.tr("Could not verify existing printers. Refresh before creating a queue.");
return;
}
const data = state.cups orelse return;
@@ -1222,7 +1223,7 @@ fn queueRenameClicked(raw: ?*anyopaque, _: usize) void {
const cc = owner(raw);
const name = fieldValue(&cc.printers, .queue_name);
if (!setup.validName(name)) {
- cc.printers.message = "Use letters, numbers, dots, hyphens or underscores for the queue identifier.";
+ cc.printers.message = i18n.tr("Use letters, numbers, dots, hyphens or underscores for the queue identifier.");
cc.refresh();
return;
}
@@ -1246,19 +1247,19 @@ fn submitRename(cc: *panel.ControlCenter) void {
const state = cc.printers.client.?.current orelse return;
if (state.failure != null or cc.printers.client.?.failure != null or state.generation != cc.printers.client.?.generation) {
cc.printers.pending_rename = null;
- cc.printers.message = "Could not verify existing printers before changing the identifier.";
+ cc.printers.message = i18n.tr("Could not verify existing printers before changing the identifier.");
return;
}
const data = state.cups orelse return;
const old = pending.old[0..pending.old_len];
if (data.jobs_error != null) {
cc.printers.pending_rename = null;
- cc.printers.message = "Could not verify the printer's jobs. Refresh before changing its identifier.";
+ cc.printers.message = i18n.tr("Could not verify the printer's jobs. Refresh before changing its identifier.");
return;
}
for (data.jobs) |job| if (job.cancellable() and std.mem.eql(u8, job.printer, old)) {
cc.printers.pending_rename = null;
- cc.printers.message = "Finish or cancel the printer's jobs before changing its identifier.";
+ cc.printers.message = i18n.tr("Finish or cancel the printer's jobs before changing its identifier.");
return;
};
var source_exists = false;
@@ -1268,7 +1269,7 @@ fn submitRename(cc: *panel.ControlCenter) void {
};
if (!source_exists) {
cc.printers.pending_rename = null;
- cc.printers.message = "The printer no longer exists. Refresh before retrying.";
+ cc.printers.message = i18n.tr("The printer no longer exists. Refresh before retrying.");
return;
}
runAdmin(cc, .{ .rename = .{ .name = old, .new_name = pending.new[0..pending.new_len], .existing_names = queueNames(cc.printers.arena.allocator(), data) catch return } });
@@ -1293,7 +1294,7 @@ fn finishRename(cc: *panel.ControlCenter) void {
@memcpy(cc.printers.selected[0..pending.new_len], pending.new[0..pending.new_len]);
cc.printers.migration_pending = true;
runClient(cc, .{ .rename_preferences = .{ .old = pending.old[0..pending.old_len], .new = pending.new[0..pending.new_len] } });
- } else cc.printers.message = "The queue identifier change could not be verified. Review the printer list before retrying.";
+ } else cc.printers.message = i18n.tr("The queue identifier change could not be verified. Review the printer list before retrying.");
}
fn mediaFor(printer: cups.Printer, state: *const printing.State) ?tools.Media {
if (tools.mediaFromKeyword(printer.media)) |media| return media;
@@ -1317,13 +1318,13 @@ fn loadedMedia(self: *Section) ?tools.Media {
fn toolsForm(self: *Section, cc: *panel.ControlCenter, a: A, state: *const printing.State, printer: cups.Printer) !W {
var items: std.ArrayList(W) = .empty;
const testing = self.form == .test_confirm or self.form == .test_result;
- try items.append(a, panel.sectionTitle(if (testing) "Print test" else "Label printer and advanced test tools"));
+ try items.append(a, panel.sectionTitle(if (testing) i18n.tr("Print test") else i18n.tr("Label printer and advanced test tools")));
if (self.form != .test_result) {
- if (!testing) try items.append(a, .{ .name = "printers_label", .kind = .{ .checkbox = .{ .label = "This is a label printer", .checked = printer.user.label, .disabled = busy(self), .owner = cc, .on_change = labelChanged } }, .width = .{ .percent = 1 } });
- try items.append(a, .{ .name = "printers_units", .kind = .{ .select = .{ .labels = &.{ "Millimetres", "Inches" }, .selected = @intFromBool(self.inches), .owner = cc, .on_change = unitsChanged } }, .height = .{ .fixed = 34 }, .width = .{ .percent = 1 } });
- try items.append(a, try entry(self, cc, a, .loaded_width, "Loaded paper width", ""));
- try items.append(a, try entry(self, cc, a, .loaded_height, "Loaded paper height", ""));
- try items.append(a, button(cc, "printers_save_media", "Remember loaded paper size", 0, busy(self) or loadedMedia(self) == null, saveMedia));
+ if (!testing) try items.append(a, .{ .name = "printers_label", .kind = .{ .checkbox = .{ .label = i18n.tr("This is a label printer"), .checked = printer.user.label, .disabled = busy(self), .owner = cc, .on_change = labelChanged } }, .width = .{ .percent = 1 } });
+ try items.append(a, .{ .name = "printers_units", .kind = .{ .select = .{ .labels = panel.translatedLabels(&.{ i18n.msg("Millimetres"), i18n.msg("Inches") }), .selected = @intFromBool(self.inches), .owner = cc, .on_change = unitsChanged } }, .height = .{ .fixed = 34 }, .width = .{ .percent = 1 } });
+ try items.append(a, try entry(self, cc, a, .loaded_width, i18n.tr("Loaded paper width"), ""));
+ try items.append(a, try entry(self, cc, a, .loaded_height, i18n.tr("Loaded paper height"), ""));
+ try items.append(a, button(cc, "printers_save_media", i18n.tr("Remember loaded paper size"), 0, busy(self) or loadedMedia(self) == null, saveMedia));
if (!testing or self.test_kind == .raw) {
const language_labels = try a.alloc([]const u8, tools.probe_languages.len + 1);
language_labels[0] = "Unknown language — check the self-test sheet";
@@ -1333,49 +1334,49 @@ fn toolsForm(self: *Section, cc: *panel.ControlCenter, a: A, state: *const print
if (self.language == language) lang_index = index + 1;
}
try items.append(a, .{ .name = "printers_language", .kind = .{ .select = .{ .labels = language_labels, .selected = lang_index, .disabled = busy(self), .owner = cc, .on_change = languageChanged } }, .height = .{ .fixed = 34 }, .width = .{ .percent = 1 } });
- try items.append(a, text("Check the printer's self-test sheet for its language and real resolution.", true));
- try items.append(a, try entry(self, cc, a, .raw_dpi, "Raw sample resolution (dpi)", ""));
+ try items.append(a, text(i18n.tr("Check the printer's self-test sheet for its language and real resolution."), true));
+ try items.append(a, try entry(self, cc, a, .raw_dpi, i18n.tr("Raw sample resolution (dpi)"), ""));
}
}
if (!testing) {
const awaiting_result = self.form == .test_result;
- try items.append(a, button(cc, "printers_test_raw", "Test without the driver…", @intFromEnum(printing.TestKind.raw), busy(self) or awaiting_result or self.language == null, testClicked));
- try items.append(a, button(cc, "printers_probe_language", "Try one language sample…", @intFromEnum(printing.TestKind.raw), busy(self) or awaiting_result, probeLanguage));
- if (printer.label_media) try items.append(a, text("The driver reports label media.", true));
+ try items.append(a, button(cc, "printers_test_raw", i18n.tr("Test without the driver…"), @intFromEnum(printing.TestKind.raw), busy(self) or awaiting_result or self.language == null, testClicked));
+ try items.append(a, button(cc, "printers_probe_language", i18n.tr("Try one language sample…"), @intFromEnum(printing.TestKind.raw), busy(self) or awaiting_result, probeLanguage));
+ if (printer.label_media) try items.append(a, text(i18n.tr("The driver reports label media."), true));
if (printer.user.label or printer.label_media) {
- try items.append(a, button(cc, "printers_check_scale", "Print a 2 × 3 inch ruler…", @intFromEnum(printing.TestKind.ruler), busy(self) or awaiting_result, testClicked));
- try items.append(a, text("Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test.", true));
- try items.append(a, try entry(self, cc, a, .measured_width, "Measured rectangle width", ""));
- try items.append(a, try entry(self, cc, a, .measured_height, "Measured rectangle height", ""));
- try items.append(a, button(cc, "printers_calibrate", "Check measured scale", 0, busy(self), calibrate));
+ try items.append(a, button(cc, "printers_check_scale", i18n.tr("Print a 2 × 3 inch ruler…"), @intFromEnum(printing.TestKind.ruler), busy(self) or awaiting_result, testClicked));
+ try items.append(a, text(i18n.tr("Measure the rectangle edge to edge in the selected unit. Print scaling is disabled for this test."), true));
+ try items.append(a, try entry(self, cc, a, .measured_width, i18n.tr("Measured rectangle width"), ""));
+ try items.append(a, try entry(self, cc, a, .measured_height, i18n.tr("Measured rectangle height"), ""));
+ try items.append(a, button(cc, "printers_calibrate", i18n.tr("Check measured scale"), 0, busy(self), calibrate));
if (self.suggested) |suggestion| {
const r = resolution(suggestion).?;
- try items.append(a, text(try std.fmt.allocPrint(a, "Suggested supported resolution: {d} × {d} dpi", .{ r.x_dpi, r.y_dpi }), false));
+ try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Suggested supported resolution: {x} × {y} dpi"), .{ .x = r.x_dpi, .y = r.y_dpi }), false));
const selectable = resolutionChoice(state, suggestion) != null;
- try items.append(a, button(cc, "printers_apply_resolution", "Use suggested resolution", 0, busy(self) or !canAdmin(self) or !selectable, applyResolution));
- if (!selectable) try items.append(a, text("This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices.", true));
+ try items.append(a, button(cc, "printers_apply_resolution", i18n.tr("Use suggested resolution"), 0, busy(self) or !canAdmin(self) or !selectable, applyResolution));
+ if (!selectable) try items.append(a, text(i18n.tr("This driver does not expose the suggested resolution as a queue setting. Review its quality or driver choices."), true));
}
}
}
if (self.form == .test_confirm) {
const media = loadedMedia(self);
- try items.append(a, text(try std.fmt.allocPrint(a, "Print one {s} test on {s}?", .{ @tagName(self.test_kind), if (printer.info.len != 0) printer.info else printer.name }), false));
- if (media) |size| try items.append(a, text(try std.fmt.allocPrint(a, "Paper: {d:.2} × {d:.2} mm", .{ size.width_mm, size.height_mm }), true));
- try items.append(a, text(try std.fmt.allocPrint(a, "Queue paper setting: {s}. Check that this matches the loaded paper.", .{if (printer.media.len > 0) printer.media else "Unavailable"}), true));
- if (self.test_kind == .raw) try items.append(a, text(try std.fmt.allocPrint(a, "Language: {s}. This sample bypasses the filters and uses the queue's backend.", .{if (self.language) |language| language.label() else "Unknown"}), true));
+ try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Print one {kind} test on {name}?"), .{ .kind = @tagName(self.test_kind), .name = if (printer.info.len != 0) printer.info else printer.name }), false));
+ if (media) |size| try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Paper: {width} × {height} mm"), .{ .width = try std.fmt.allocPrint(a, "{d:.2}", .{size.width_mm}), .height = try std.fmt.allocPrint(a, "{d:.2}", .{size.height_mm}) }), true));
+ try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Queue paper setting: {paper}. Check that this matches the loaded paper."), .{ .paper = if (printer.media.len > 0) printer.media else i18n.tr("Unavailable") }), true));
+ if (self.test_kind == .raw) try items.append(a, text(try i18n.allocPrint(a, i18n.tr("Language: {language}. This sample bypasses the filters and uses the queue's backend."), .{ .language = if (self.language) |language| language.label() else i18n.tr("Unknown") }), true));
if (self.test_kind == .raw) try items.append(a, text(tools.self_test_help, true));
- try items.append(a, button(cc, "printers_test_confirm", "Print one test", 0, busy(self) or media == null or (self.test_kind == .raw and (self.language == null or rawDpi(self) == null)), confirmTest));
- try items.append(a, button(cc, "printers_test_cancel", "Cancel test", 0, busy(self), dismiss));
+ try items.append(a, button(cc, "printers_test_confirm", i18n.tr("Print one test"), 0, busy(self) or media == null or (self.test_kind == .raw and (self.language == null or rawDpi(self) == null)), confirmTest));
+ try items.append(a, button(cc, "printers_test_cancel", i18n.tr("Cancel test"), 0, busy(self), dismiss));
}
if (self.form == .test_result) {
const valid = state.receipt != null and state.receipt.?.matchesQueue(printer.name) and state.receipt.?.kind == self.test_kind and state.action_error == null;
- try items.append(a, text("Did the test produce printed output? CUPS completion alone cannot tell.", false));
- try items.append(a, button(cc, "printers_test_printed", "It printed", 0, busy(self) or !valid, testOutcome));
- try items.append(a, button(cc, "printers_test_blank", "Blank or no output", 1, busy(self) or !valid, testOutcome));
- try items.append(a, button(cc, "printers_test_close", "Close test result", 0, busy(self), dismiss));
+ try items.append(a, text(i18n.tr("Did the test produce printed output? CUPS completion alone cannot tell."), false));
+ try items.append(a, button(cc, "printers_test_printed", i18n.tr("It printed"), 0, busy(self) or !valid, testOutcome));
+ try items.append(a, button(cc, "printers_test_blank", i18n.tr("Blank or no output"), 1, busy(self) or !valid, testOutcome));
+ try items.append(a, button(cc, "printers_test_close", i18n.tr("Close test result"), 0, busy(self), dismiss));
}
- if (printer.user.raw == .printed and printer.user.driver == .no_output) try items.append(a, text("The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution.", false));
- if (printer.user.raw == .no_output and printer.user.driver == .no_output) try items.append(a, text("Neither test produced output: check the backend, connection, printer and loaded paper.", false));
+ if (printer.user.raw == .printed and printer.user.driver == .no_output) try items.append(a, text(i18n.tr("The raw sample printed but the driver test did not: investigate the driver, filters, paper size and resolution."), false));
+ if (printer.user.raw == .no_output and printer.user.driver == .no_output) try items.append(a, text(i18n.tr("Neither test produced output: check the backend, connection, printer and loaded paper."), false));
return card(a, items.items);
}
fn labelChanged(raw: ?*anyopaque, _: usize, checked: bool) void {
@@ -1425,7 +1426,7 @@ fn testClicked(raw: ?*anyopaque, kind: usize) void {
fn probeLanguage(raw: ?*anyopaque, _: usize) void {
const cc = owner(raw);
if (cc.printers.language == null) cc.printers.language = .tspl;
- cc.printers.message = "Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language.";
+ cc.printers.message = i18n.tr("Choose a language from the self-test sheet or try one sample. Record the outcome before choosing another language.");
testClicked(raw, @intFromEnum(printing.TestKind.raw));
}
fn confirmTest(raw: ?*anyopaque, _: usize) void {
@@ -1474,7 +1475,7 @@ fn calibrate(raw: ?*anyopaque, _: usize) void {
const receipt_resolution = if (state.receipt) |receipt| if (receipt.kind == .ruler and receipt.matchesQueue(printer.name)) receipt.queue_resolution else null else null;
const current_value = receipt_resolution orelse printer.user.ruler_resolution orelse queueResolution(printer, state);
const current = current_value orelse {
- cc.printers.message = "The current printer resolution is unavailable.";
+ cc.printers.message = i18n.tr("The current printer resolution is unavailable.");
cc.refresh();
return;
};
@@ -1485,7 +1486,7 @@ fn calibrate(raw: ?*anyopaque, _: usize) void {
};
if (supported.items.len == 0) supported.appendSlice(a, options_module.resolutionChoices(a, state.groups) catch &.{}) catch return;
cc.printers.suggested = tools.suggestResolution(current, supported.items, measurement(&cc.printers, .measured_width) orelse 0, measurement(&cc.printers, .measured_height) orelse 0);
- cc.printers.message = if (cc.printers.suggested != null) "Review the suggested resolution, then apply it explicitly." else "No supported resolution consistently matches both measurements. Check the ruler and print scaling.";
+ cc.printers.message = if (cc.printers.suggested != null) i18n.tr("Review the suggested resolution, then apply it explicitly.") else i18n.tr("No supported resolution consistently matches both measurements. Check the ruler and print scaling.");
cc.refresh();
}
fn queueResolution(printer: cups.Printer, state: *const printing.State) ?cups.ipp.Resolution {
diff --git a/src/control_center/sections/region.zig b/src/control_center/sections/region.zig
index 8c560d0..5822048 100644
--- a/src/control_center/sections/region.zig
+++ b/src/control_center/sections/region.zig
@@ -1,5 +1,7 @@
//! Personal session locale, timezone and shell clock preferences.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const panel = @import("../panel.zig");
const ui = @import("ui");
const W = ui.layout.Widget;
@@ -19,7 +21,7 @@ const c = @cImport({
@cInclude("unistd.h");
});
-const days = [_][]const u8{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
+const days = [_]i18n.Message{ i18n.msg("Sunday"), i18n.msg("Monday"), i18n.msg("Tuesday"), i18n.msg("Wednesday"), i18n.msg("Thursday"), i18n.msg("Friday"), i18n.msg("Saturday") };
pub const Section = struct {
arena: std.heap.ArenaAllocator = .init(gpa),
@@ -111,7 +113,7 @@ fn localeReady(_: c_int, _: wl.EventMask, cc: *panel.ControlCenter) c_int {
var lines = std.mem.splitScalar(u8, s.locale_output.items, '\n');
while (lines.next()) |line| {
const name = std.mem.trim(u8, line, " \t\r");
- if (name.len == 0 or std.mem.eql(u8, name, "POSIX")) continue;
+ if (name.len == 0 or std.mem.eql(u8, name, "POSIX") or std.mem.eql(u8, name, "C") or std.mem.startsWith(u8, name, "C.")) continue;
const z = a.dupeZ(u8, name) catch continue;
const locale = c.newlocale(c.LC_ALL_MASK, z, null) orelse continue;
c.freelocale(locale);
@@ -125,22 +127,69 @@ fn localeReady(_: c_int, _: wl.EventMask, cc: *panel.ControlCenter) c_int {
fn choice(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator, comptime key: []const u8, index: usize, choices: []const []const u8, inherited: []const u8, item: ?c.nl_item) !W {
var labels: std.ArrayList([]const u8) = .empty;
var values: std.ArrayList([]const u8) = .empty;
- try labels.append(a, try std.fmt.allocPrint(a, "Inherited from login ({s})", .{inherited}));
+ try labels.append(a, try i18n.allocPrint(a, tr("Inherited from login ({locale})"), .{ .locale = if (std.mem.eql(u8, inherited, "C") or std.mem.eql(u8, inherited, "POSIX")) tr("English") else inherited }));
try values.append(a, "");
const selected = @field(cc.server.config.region, key);
var selected_index: usize = 0;
+ if (index == 1) {
+ // Catalogs do not require glibc locale generation. Always offer them;
+ // generated locales below remain available for other applications.
+ for (i18n.languages) |language| {
+ const label = try i18n.allocPrint(a, tr("{name} ({locale})"), .{
+ .name = language.native_name,
+ .locale = language.locale,
+ });
+ try labels.append(a, label);
+ try values.append(a, language.locale);
+ if (sameLocale(selected, language.locale) or std.mem.eql(u8, selected, language.tag)) selected_index = values.items.len - 1;
+ }
+ }
for (choices) |value| {
- try labels.append(a, if (item) |what| try localeLabel(a, value, what) else value);
+ if (index == 1) {
+ var duplicate = false;
+ for (values.items) |existing| if (sameLocale(existing, value)) {
+ duplicate = true;
+ break;
+ };
+ if (duplicate) continue;
+ }
+ const display = if (item) |what| try localeLabel(a, value, what) else value;
+ const available = index != 1 or catalogForLocale(value) != null or std.mem.startsWith(u8, value, "en") or std.mem.startsWith(u8, value, "C");
+ try labels.append(a, if (available) display else try i18n.allocPrint(a, tr("{locale} · RediWM stays in English"), .{ .locale = display }));
try values.append(a, value);
if (std.mem.eql(u8, value, selected)) selected_index = values.items.len - 1;
}
if (selected.len != 0 and selected_index == 0) {
- try labels.append(a, try std.fmt.allocPrint(a, "Current: {s}", .{selected}));
+ try labels.append(a, try i18n.allocPrint(a, tr("Current: {locale}"), .{ .locale = selected }));
try values.append(a, selected);
selected_index = values.items.len - 1;
}
s.values[index] = values.items;
- return .{ .name = key, .kind = .{ .select = .{ .labels = labels.items, .selected = selected_index, .disabled = index != 0 and s.locale_source != null, .owner = cc, .id = index, .on_change = preferenceChanged } }, .width = .{ .percent = 1 } };
+ return .{ .name = key, .kind = .{ .select = .{ .labels = labels.items, .selected = selected_index, .disabled = index == 2 and s.locale_source != null, .owner = cc, .id = index, .on_change = preferenceChanged } }, .width = .{ .percent = 1 } };
+}
+
+fn sameLocale(lhs: []const u8, rhs: []const u8) bool {
+ if (lhs.len == 0 or rhs.len == 0) return std.mem.eql(u8, lhs, rhs);
+ var left: [128]u8 = undefined;
+ var right: [128]u8 = undefined;
+ return std.mem.eql(u8, i18n.normalize(&left, lhs), i18n.normalize(&right, rhs));
+}
+fn catalogForLocale(value: []const u8) ?[]const u8 {
+ var buffer: [128]u8 = undefined;
+ const tag = i18n.normalize(&buffer, value);
+ const base = tag[0 .. std.mem.indexOfScalar(u8, tag, '_') orelse tag.len];
+ for (i18n.languages) |language| if (std.mem.eql(u8, tag, language.tag) or std.mem.eql(u8, base, language.tag) or (std.mem.eql(u8, base, "pt") and std.mem.eql(u8, language.tag, "pt_BR"))) return language.locale;
+ return null;
+}
+fn localeHint(a: std.mem.Allocator, cc: *panel.ControlCenter) ![]const u8 {
+ const selected = i18n.resolve(cc.server.config.region.language, cc.server.environ);
+ const canonical = catalogForLocale(selected) orelse return tr("Reopen running apps to use the selected language.");
+ const name = try a.dupeZ(u8, if (std.mem.indexOfScalar(u8, selected, '_') != null) selected else canonical);
+ if (c.newlocale(c.LC_MESSAGES_MASK, name, null)) |locale| {
+ c.freelocale(locale);
+ return tr("Reopen running apps to use the selected language.");
+ }
+ return i18n.allocPrint(a, tr("Enable {locale} in your system’s locale settings to use it in other apps and regional formats."), .{ .locale = canonical });
}
fn preferenceChanged(owner: ?*anyopaque, id: usize, index: usize) void {
@@ -161,6 +210,10 @@ fn text(value: []const u8, size: f32, dim: bool) W {
return .{ .kind = .{ .text = .{ .content = value, .font_size = size, .weight = if (dim) 400 else 600, .color = if (dim) t.dim else t.fg } } };
}
+fn paragraph(a: std.mem.Allocator, value: []const u8, width: f32) !W {
+ return panel.paragraph(a, value, width - 28, 12, true);
+}
+
fn container(a: std.mem.Allocator, direction: ui.layout.Direction, items: []const W) !W {
return .{ .kind = .container, .direction = direction, .gap = 12, .@"align" = .stretch, .width = .{ .flex = 1 }, .children = try a.dupe(W, items) };
}
@@ -200,7 +253,7 @@ fn timezone(a: std.mem.Allocator, cc: *panel.ControlCenter) ![]const u8 {
if (std.mem.indexOf(u8, path[0..len], "zoneinfo/")) |start| return a.dupe(u8, path[start + "zoneinfo/".len .. len]);
var raw = c.time(null);
var tm: c.struct_tm = std.mem.zeroes(c.struct_tm);
- if (c.localtime_r(&raw, &tm) == null) return "Unavailable";
+ if (c.localtime_r(&raw, &tm) == null) return tr("Unavailable");
var buffer: [96]u8 = undefined;
const count = c.strftime(&buffer, buffer.len, "%Z (UTC%z)", &tm);
return a.dupe(u8, buffer[0..count]);
@@ -208,7 +261,7 @@ fn timezone(a: std.mem.Allocator, cc: *panel.ControlCenter) ![]const u8 {
fn previews(a: std.mem.Allocator, prefs: config.loader.RegionConfig) !W {
const name = try a.dupeZ(u8, prefs.formats);
- const locale = c.newlocale(c.LC_ALL_MASK, name, null) orelse return text("Regional formats are unavailable for this session.", 12, true);
+ const locale = c.newlocale(c.LC_ALL_MASK, name, null) orelse return text(tr("Regional formats are unavailable for this session."), 12, true);
defer c.freelocale(locale);
// Fixed examples make format changes easy to compare, with no preview timer.
var tm: c.struct_tm = std.mem.zeroes(c.struct_tm);
@@ -231,10 +284,10 @@ fn previews(a: std.mem.Allocator, prefs: config.loader.RegionConfig) !W {
_ = c.uselocale(previous);
const currency_len = c.strfmon_l(&currency, currency.len, locale, "%n", @as(f64, 1234.56));
return container(a, .column, &.{
- try info(a, "Date", try a.dupe(u8, std.mem.sliceTo(&date, 0))),
- try info(a, "Time", try a.dupe(u8, std.mem.trim(u8, std.mem.sliceTo(&time, 0), " "))),
- try info(a, "Number", if (number_len > 0 and number_len < number.len) try a.dupe(u8, std.mem.sliceTo(&number, 0)) else "Unavailable"),
- try info(a, "Currency", if (std.mem.span(c.nl_langinfo_l(c.INT_CURR_SYMBOL, locale)).len == 0) "Not specified" else if (currency_len > 0) try a.dupe(u8, std.mem.trim(u8, std.mem.sliceTo(&currency, 0), " ")) else "Unavailable"),
+ try info(a, tr("Date"), try a.dupe(u8, std.mem.sliceTo(&date, 0))),
+ try info(a, tr("Time"), try a.dupe(u8, std.mem.trim(u8, std.mem.sliceTo(&time, 0), " "))),
+ try info(a, tr("Number"), if (number_len > 0 and number_len < number.len) try a.dupe(u8, std.mem.sliceTo(&number, 0)) else tr("Unavailable")),
+ try info(a, tr("Currency"), if (std.mem.span(c.nl_langinfo_l(c.INT_CURR_SYMBOL, locale)).len == 0) tr("Not specified") else if (currency_len > 0) try a.dupe(u8, std.mem.trim(u8, std.mem.sliceTo(&currency, 0), " ")) else tr("Unavailable")),
});
}
@@ -246,58 +299,60 @@ pub fn build(s: *Section, cc: *panel.ControlCenter) void {
fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
const prefs = cc.server.config.region;
+ const stacked = cc.panel_box.width < 1100;
+ const content_width = @as(f32, @floatFromInt(cc.panel_box.width)) - panel.sidebarWidth(cc) - 100;
+ const paragraph_width = if (stacked) content_width else (content_width - 12) / 2;
const language = try card(a, &.{
- panel.sectionTitle("Language"),
- text("Application language", 13, false),
+ panel.sectionTitle(tr("Language")),
+ text(tr("Application language"), 13, false),
try choice(s, cc, a, "language", 1, s.locales.items, localeName(cc, "LC_MESSAGES"), c._NL_IDENTIFICATION_LANGUAGE),
- text("RediWM currently uses English. Only installed locales are listed.", 12, true),
});
const region = try card(a, &.{
- panel.sectionTitle("Region"),
- text("Regional formats", 13, false),
+ panel.sectionTitle(tr("Region")),
+ text(tr("Regional formats"), 13, false),
try choice(s, cc, a, "formats", 2, s.locales.items, localeName(cc, "LC_TIME"), c._NL_ADDRESS_COUNTRY_NAME),
- text("Date format for the taskbar; date, number and currency formats for new apps.", 12, true),
+ try paragraph(a, tr("Date format for the taskbar; date, number and currency formats for new apps."), paragraph_width),
});
var toggle = try container(a, .row, &.{
- text("Use 24-hour time", 13, false),
+ text(tr("Use 24-hour time"), 13, false),
.{ .name = "clock_24h", .kind = .{ .toggle = .{ .on = prefs.clock_24h, .style = .settings, .owner = cc, .on_change = clockChanged } } },
});
toggle.justify = .space_between;
toggle.@"align" = .center;
var seconds_toggle = try container(a, .row, &.{
- text("Show seconds", 13, false),
+ text(tr("Show seconds"), 13, false),
.{ .name = "clock_show_seconds", .kind = .{ .toggle = .{ .on = prefs.clock_show_seconds, .style = .settings, .owner = cc, .on_change = secondsChanged } } },
});
seconds_toggle.justify = .space_between;
seconds_toggle.@"align" = .center;
var day_toggle = try container(a, .row, &.{
- text("Show day", 13, false),
+ text(tr("Show day"), 13, false),
.{ .name = "clock_show_day", .kind = .{ .toggle = .{ .on = prefs.clock_show_day, .style = .settings, .owner = cc, .on_change = dayChanged } } },
});
day_toggle.justify = .space_between;
day_toggle.@"align" = .center;
const timing = try card(a, &.{
- panel.sectionTitle("Time & Date"),
- text("Time zone", 13, false),
+ panel.sectionTitle(tr("Time & Date")),
+ text(tr("Time zone"), 13, false),
try choice(s, cc, a, "timezone", 0, s.zones.items, try timezone(a, cc), null),
toggle,
- text("Taskbar, calendar, lock screen and new apps.", 12, true),
+ try paragraph(a, tr("Taskbar, calendar, lock screen and new apps."), paragraph_width),
seconds_toggle,
day_toggle,
- text("Taskbar clock. The date uses your regional format.", 12, true),
- text("First day of the week", 13, false),
- .{ .name = "first_day_of_week", .kind = .{ .select = .{ .labels = &days, .selected = @intFromEnum(prefs.first_day_of_week), .owner = cc, .on_change = firstDayChanged } }, .width = .{ .percent = 1 } },
- text("Changes the taskbar calendar.", 12, true),
+ try paragraph(a, tr("Taskbar clock. The date uses your regional format."), paragraph_width),
+ text(tr("First day of the week"), 13, false),
+ .{ .name = "first_day_of_week", .kind = .{ .select = .{ .labels = panel.translatedLabels(&days), .selected = @intFromEnum(prefs.first_day_of_week), .owner = cc, .on_change = firstDayChanged } }, .width = .{ .percent = 1 } },
+ try paragraph(a, tr("Changes the taskbar calendar."), paragraph_width),
});
- const preview = try card(a, &.{ panel.sectionTitle("Formats Preview"), try previews(a, prefs) });
- var body = try container(a, if (cc.panel_box.width < 900) .column else .row, &.{
+ const preview = try card(a, &.{ panel.sectionTitle(tr("Formats Preview")), try previews(a, prefs) });
+ var body = try container(a, if (stacked) .column else .row, &.{
try container(a, .column, &.{ language, timing }),
try container(a, .column, &.{ region, preview }),
});
body.width = .{ .percent = 1 };
var root = try container(a, .column, &.{
- text("Saved for your user’s RediWM session only; system defaults are unchanged.", 12, true),
- text("Language and region apply to new apps launched by RediWM. Reopen apps to use them.", 12, true),
+ try paragraph(a, tr("Saved for your user’s RediWM session only; system defaults are unchanged."), paragraph_width),
+ try paragraph(a, try localeHint(a, cc), content_width),
body,
text(s.message, 12, true),
});
@@ -309,7 +364,7 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
fn save(owner: ?*anyopaque, comptime key: []const u8, value: @FieldType(config.loader.RegionConfig, key)) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
config.setting_save.saveRegion(gpa, cc.server.io, cc.server.config.path, key, value) catch {
- cc.region.message = "Could not save. Check the configuration file and try again.";
+ cc.region.message = tr("Could not save. Check the configuration file and try again.");
cc.refresh();
return;
};
diff --git a/src/control_center/sections/services.zig b/src/control_center/sections/services.zig
index d762b91..26a7918 100644
--- a/src/control_center/sections/services.zig
+++ b/src/control_center/sections/services.zig
@@ -1,4 +1,5 @@
//! Systemd Settings page. Data and requests outlive widget-tree rebuilds.
+const i18n = @import("i18n");
const std = @import("std");
const ui = @import("ui");
const cairo = @import("ui").cairo;
@@ -118,7 +119,7 @@ pub fn build(s: *Section, cc: *panel.ControlCenter) void {
s.rows = &.{};
const client = cc.systemd_client orelse {
if (saved) |field| gpa.free(field.value);
- s.root = text("Systemd is unavailable.", true);
+ s.root = text(i18n.tr("Systemd is unavailable."), true);
return;
};
s.root = tree(s, cc, client, s.arena.allocator(), saved) catch blk: {
@@ -141,9 +142,9 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
const compact = table_width < 444;
var content: std.ArrayList(W) = .empty;
const locked = !client.unlocked;
- var hint = text(if (client.unlocking) "Waiting for authentication…" else if (locked) "Unlock to make service changes." else "Service changes are unlocked for this session.", true);
+ var hint = text(if (client.unlocking) i18n.tr("Waiting for authentication…") else if (locked) i18n.tr("Unlock to make service changes.") else i18n.tr("Service changes are unlocked for this session."), true);
hint.width = if (compact) .{ .percent = 1 } else .{ .flex = 1 };
- var lock_button = named(button(cc, if (client.unlocked) "Lock" else "Unlock", 0, lockClicked, client.unlocking), "services_unlock");
+ var lock_button = named(button(cc, if (client.unlocked) i18n.tr("Lock") else i18n.tr("Unlock"), 0, lockClicked, client.unlocking), "services_unlock");
lock_button.kind.button.leading_icon = if (client.unlocked) .checkmark else .lock;
lock_button.width = if (compact) .{ .percent = 1 } else .auto;
try tryAppend(&content, a, try group(a, &.{ hint, lock_button }, compact));
@@ -152,16 +153,16 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
enabled += 1;
};
var summary = try group(a, &.{
- text(try std.fmt.allocPrint(a, "Boot time: {s}", .{duration(a, client.boot_us)}), false),
- text(try std.fmt.allocPrint(a, "{d} services, {d} enabled", .{ units.len, enabled }), true),
+ text(try i18n.allocPrint(a, i18n.tr("Boot time: {duration}"), .{ .duration = duration(a, client.boot_us) }), false),
+ text(try i18n.allocPrint(a, i18n.trn("{n} service, {enabled} enabled", "{n} services, {enabled} enabled", units.len), .{ .n = units.len, .enabled = enabled }), true),
}, true);
summary.width = .{ .flex = 1 };
- var analyze_button = named(button(cc, if (client.analyzing) "Analyzing…" else "Analyze", 0, analyze, client.busy()), "services_analyze");
+ var analyze_button = named(button(cc, if (client.analyzing) i18n.tr("Analyzing…") else i18n.tr("Analyze"), 0, analyze, client.busy()), "services_analyze");
analyze_button.kind.button.variant = .primary;
var actions = try group(a, &.{
analyze_button,
- named(button(cc, "Optimize", 0, noop, true), "services_optimize"),
- named(button(cc, "Refresh", 0, refresh, client.busy()), "services_refresh"),
+ named(button(cc, i18n.tr("Optimize"), 0, noop, true), "services_optimize"),
+ named(button(cc, i18n.tr("Refresh"), 0, refresh, client.busy()), "services_refresh"),
}, false);
actions.width = .auto;
var banner = try group(a, &.{ summary, actions }, narrow);
@@ -169,11 +170,11 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
banner.padding = ui.layout.Edges.all(12);
try tryAppend(&content, a, banner);
const field = try a.create(W);
- field.* = .{ .name = "services_search", .kind = .{ .text_input = saved orelse .{ .field = .{ .leading_icon = .search }, .placeholder = "Search services…", .value = try gpa.dupe(u8, ""), .owner = cc, .on_change = searchChanged } }, .height = .{ .fixed = 36 }, .width = .{ .percent = 1 } };
+ field.* = .{ .name = "services_search", .kind = .{ .text_input = saved orelse .{ .field = .{ .leading_icon = .search }, .placeholder = i18n.tr("Search services…"), .value = try gpa.dupe(u8, ""), .owner = cc, .on_change = searchChanged } }, .height = .{ .fixed = 36 }, .width = .{ .percent = 1 } };
s.search = field;
var filters: [5]W = undefined;
- inline for (.{ "All", "Enabled", "Slow", "Disabled", "Failed" }, 0..) |label, i| {
- filters[i] = named(button(cc, label, i, filterClicked, i == 2 and !client.analyzed), label);
+ inline for (.{ i18n.msg("All"), i18n.msg("Enabled"), i18n.msg("Slow"), i18n.msg("Disabled"), i18n.msg("Failed") }, 0..) |label, i| {
+ filters[i] = named(button(cc, label.get(), i, filterClicked, i == 2 and !client.analyzed), label.source);
if (@intFromEnum(s.filter) == i) filters[i].kind.button.variant = .primary;
}
const search_column: W = .{ .kind = .container, .direction = .column, .width = .{ .flex = 1 }, .children = field[0..1] };
@@ -184,22 +185,22 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
const toolbar = named(try group(a, &.{ search_column, filter_row }, false), "services_toolbar");
if (client.status().len > 0) try tryAppend(&content, a, text(try a.dupe(u8, client.status()), false));
- if (s.filter == .slow) try tryAppend(&content, a, text("Services taking at least 1 second to activate.", true));
+ if (s.filter == .slow) try tryAppend(&content, a, text(i18n.tr("Services taking at least 1 second to activate."), true));
if (s.selected) |selected| {
if (client.snapshot.index.get(selected)) |i| {
const unit = units[i];
try tryAppend(&content, a, text(try a.dupe(u8, selected), false));
try tryAppend(&content, a, try group(a, &.{
- named(button(cc, "Start", @intFromEnum(systemd.Action.start), actionClicked, locked or client.busy() or std.mem.eql(u8, unit.active, "active") or std.mem.startsWith(u8, unit.startup, "masked")), "services_start"),
- named(button(cc, "Stop", @intFromEnum(systemd.Action.stop), actionClicked, locked or client.busy() or std.mem.eql(u8, unit.active, "inactive")), "services_stop"),
- named(button(cc, "Restart", @intFromEnum(systemd.Action.restart), actionClicked, locked or client.busy() or std.mem.startsWith(u8, unit.startup, "masked")), "services_restart"),
+ named(button(cc, i18n.tr("Start"), @intFromEnum(systemd.Action.start), actionClicked, locked or client.busy() or std.mem.eql(u8, unit.active, "active") or std.mem.startsWith(u8, unit.startup, "masked")), "services_start"),
+ named(button(cc, i18n.tr("Stop"), @intFromEnum(systemd.Action.stop), actionClicked, locked or client.busy() or std.mem.eql(u8, unit.active, "inactive")), "services_stop"),
+ named(button(cc, i18n.tr("Restart"), @intFromEnum(systemd.Action.restart), actionClicked, locked or client.busy() or std.mem.startsWith(u8, unit.startup, "masked")), "services_restart"),
}, false));
- if (unit.trigger.len > 0) try tryAppend(&content, a, text(try std.fmt.allocPrint(a, "Activated by: {s}", .{unit.trigger}), true));
+ if (unit.trigger.len > 0) try tryAppend(&content, a, text(try i18n.allocPrint(a, i18n.tr("Activated by: {name}"), .{ .name = unit.trigger }), true));
}
}
- try tryAppend(&content, a, text("Startup settings apply at boot. Deferred is coming later.", true));
- try tryAppend(&content, a, text("Notify sets the service type and applies on its next start. Saving requires administrator authentication.", true));
- if (client.analyzed) try tryAppend(&content, a, text("Boot: from kernel start. Activation times overlap; — means unavailable.", true));
+ try tryAppend(&content, a, text(i18n.tr("Startup settings apply at boot. Deferred is coming later."), true));
+ try tryAppend(&content, a, text(i18n.tr("Notify sets the service type and applies on its next start. Saving requires administrator authentication."), true));
+ if (client.analyzed) try tryAppend(&content, a, text(i18n.tr("Boot: from kernel start. Activation times overlap; — means unavailable."), true));
try tryAppend(&content, a, toolbar);
@@ -213,8 +214,8 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
std.mem.sort(usize, sorted[0..count], SortContext{ .section = s, .units = units }, less);
var table: std.ArrayList(W) = .empty;
var headers: [5]W = undefined;
- inline for (.{ "Service", "Status", "Start mode", "Notify", "Startup time" }, 0..) |label, i| {
- headers[i] = try columnHeader(a, cc, s, label, i);
+ inline for (.{ i18n.msg("Service"), i18n.msg("Status"), i18n.msg("Start mode"), i18n.msg("Notify"), i18n.msg("Startup time") }, 0..) |label, i| {
+ headers[i] = try columnHeader(a, cc, s, label.get(), i);
}
var header = try group(a, &headers, false);
header.name = "services_columns";
@@ -254,13 +255,13 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
}, false);
status_widget.children[0].gap = 6;
status_widget.children[0].children[1].width = .{ .flex = 1 };
- const choices: []const []const u8 = if (unit.editable()) &.{ "Enabled", "Disabled", "Deferred" } else try a.dupe([]const u8, &.{try a.dupe(u8, unit.startup)});
+ const choices: []const []const u8 = if (unit.editable()) panel.translatedLabels(&.{ i18n.msg("Enabled"), i18n.msg("Disabled"), i18n.msg("Deferred") }) else try a.dupe([]const u8, &.{try a.dupe(u8, unit.startup)});
const initial: usize = if (unit.editable() and !unit.enabled()) 1 else 0;
const type_index = systemd.typeIndex(unit.service_type);
const notify_labels = if (type_index != null) systemd.service_types else blk: {
const labels = try a.alloc([]const u8, systemd.service_types.len + 1);
@memcpy(labels[0..systemd.service_types.len], systemd.service_types);
- labels[systemd.service_types.len] = if (unit.service_type.len > 0) try a.dupe(u8, unit.service_type) else "Unavailable";
+ labels[systemd.service_types.len] = if (unit.service_type.len > 0) try a.dupe(u8, unit.service_type) else i18n.tr("Unavailable");
break :blk labels;
};
const notify_initial = type_index orelse systemd.service_types.len;
@@ -302,7 +303,7 @@ fn tree(s: *Section, cc: *panel.ControlCenter, client: *systemd.Client, a: std.m
row.height = .{ .fixed = if (!stacked) 54 else if (compact) 130 else 88 };
try tryAppend(&rows, a, row);
}
- if (count == 0) try tryAppend(&rows, a, try placeholder(a, if (client.awaitingList()) "Loading services…" else "No matching services."));
+ if (count == 0) try tryAppend(&rows, a, try placeholder(a, if (client.awaitingList()) i18n.tr("Loading services…") else i18n.tr("No matching services.")));
var body = try group(a, rows.items, true);
body.gap = 2;
body.padding = ui.layout.Edges.xy(0, 8);
diff --git a/src/control_center/sections/shortcuts.zig b/src/control_center/sections/shortcuts.zig
index d40ac88..584518b 100644
--- a/src/control_center/sections/shortcuts.zig
+++ b/src/control_center/sections/shortcuts.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const keys = @import("config").keybinds;
const saving = @import("config").shortcut_save;
@@ -8,7 +9,7 @@ const gpa = @import("../../main.zig").gpa;
const xkb = @import("xkbcommon");
const wlr = @import("wlroots");
-const names = [_][]const u8{ "Window Management", "Canvas & Focus", "Launcher", "Screenshots", "Media", "System" };
+const names = [_]i18n.Message{ i18n.msg("Window Management"), i18n.msg("Canvas & Focus"), i18n.msg("Launcher"), i18n.msg("Screenshots"), i18n.msg("Media"), i18n.msg("System") };
const icons = [_]ui.layout.IconId{ .display, .grid, .grid, .document, .volume, .power };
pub const Section = struct {
arena: std.heap.ArenaAllocator = .init(gpa),
@@ -72,7 +73,7 @@ pub const Section = struct {
for (cc.server.config.activeKeybinds(), 0..) |bind, i| {
if (i != index and bind.action != .noop and keys.pack(bind.modifiers, bind.sym) == keys.pack(candidate.modifiers, candidate.sym)) {
s.candidate = null;
- s.message = "Shortcut already in use. Try another.";
+ s.message = i18n.tr("Shortcut already in use. Try another.");
break;
}
}
@@ -85,7 +86,7 @@ pub const Section = struct {
const candidate = s.candidate orelse return;
const index = s.editing orelse return;
saving.saveMode(gpa, cc.server.io, cc.server.config.path, cc.server.config.activeKeybinds(), index, candidate, cc.server.config.compositor.desktop_mode) catch {
- s.message = "Could not save. Check the configuration file and try again.";
+ s.message = i18n.tr("Could not save. Check the configuration file and try again.");
cc.refresh();
return;
};
@@ -137,13 +138,13 @@ fn buildGroups(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !voi
for (&s.groups, 0..) |*card, g| {
var rows: std.ArrayList(W) = .empty;
if (g == 0) {
- try rows.append(a, text(if (cc.server.world.workspaces.active) "Workspaces · Hyprland-style preset" else "Canvas · RediWM preset", false));
- if (cc.server.world.workspaces.active) try rows.append(a, text("Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces.", true));
+ try rows.append(a, text(if (cc.server.world.workspaces.active) i18n.tr("Workspaces · Hyprland-style preset") else i18n.tr("Canvas · RediWM preset"), false));
+ if (cc.server.world.workspaces.active) try rows.append(a, text(i18n.tr("Super+Q opens Terminal; Super+M opens Power. Arrows focus; numbers switch workspaces."), true));
}
try rows.append(a, .{ .kind = .{ .row = .{ .owner = cc, .id = g, .on_click = collapse } }, .height = .{ .fixed = 40 }, .width = .{ .percent = 1 }, .padding = ui.layout.Edges.xy(12, 0), .gap = 12, .@"align" = .center, .children = try children(a, &.{
.{ .kind = .{ .icon = .{ .id = icons[g], .color = t.window_fg } }, .width = .{ .fixed = 20 }, .height = .{ .fixed = 20 } },
blk: {
- var title = text(names[g], false);
+ var title = text(names[g].get(), false);
title.width = .{ .flex = 1 };
break :blk title;
},
@@ -152,30 +153,19 @@ fn buildGroups(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !voi
if (!s.collapsed[g]) for (cc.server.config.activeKeybinds(), 0..) |bind, i| {
if (group(bind.action) != g) continue;
const editing = s.editing == i;
- const raw = @tagName(bind.action);
- const title = try a.dupe(u8, if (bind.action == .toggle_start_menu) "Toggle Launcher" else raw);
- var capital = true;
- for (title) |*c| {
- if (c.* == '_') {
- c.* = ' ';
- capital = true;
- } else if (capital) {
- c.* = std.ascii.toUpper(c.*);
- capital = false;
- }
- }
+ const title = actionTitle(bind.action);
var desc_buf: [8192]u8 = undefined;
- const description = if (editing) (if (s.message.len > 0) s.message else "Press keys to record. Esc cancels.") else switch (bind.action) {
+ const description = if (editing) (if (s.message.len > 0) s.message else i18n.tr("Press keys to record. Esc cancels.")) else switch (bind.action) {
.spawn => |cmd| cmd,
- .toggle_start_menu => "Open or close the application launcher.",
- .close_window => "Close the focused window.",
- .screenshot_region => "Capture a region of your screen.",
- .screenshot_output => "Capture the current display.",
- .lock_screen => "Lock the session and turn off the display.",
+ .toggle_start_menu => i18n.tr("Open or close the application launcher."),
+ .close_window => i18n.tr("Close the focused window."),
+ .screenshot_region => i18n.tr("Capture a region of your screen."),
+ .screenshot_output => i18n.tr("Capture the current display."),
+ .lock_screen => i18n.tr("Lock the session and turn off the display."),
else => descriptionFor(bind.action, &desc_buf),
};
const caption = try a.dupe(u8, description);
- const shortcut = if (editing and s.candidate == null) "Press new shortcut…" else saving.format(a, if (editing) s.candidate.? else bind) catch "Unknown key";
+ const shortcut = if (editing and s.candidate == null) i18n.tr("Press new shortcut…") else saving.format(a, if (editing) s.candidate.? else bind) catch i18n.tr("Unknown key");
var controls: std.ArrayList(W) = .empty;
try controls.append(a, .{ .kind = .container, .direction = .column, .width = .{ .flex = 1 }, .gap = 3, .children = try children(a, &.{ text(title, false), text(caption, true) }) });
var chip = button(cc, i, shortcut, null, edit);
@@ -184,20 +174,20 @@ fn buildGroups(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !voi
if (editing) chip.kind.button.variant = .primary;
try controls.append(a, chip);
if (editing) {
- var confirm = button(cc, i, "Save shortcut", .checkmark, confirmClicked);
+ var confirm = button(cc, i, i18n.tr("Save shortcut"), .checkmark, confirmClicked);
confirm.name = "save";
confirm.kind.button.variant = .primary;
if (s.candidate == null) confirm.kind.button.state = .disabled;
try controls.append(a, confirm);
- var cancel_btn = button(cc, i, "Cancel", .close, cancelClicked);
+ var cancel_btn = button(cc, i, i18n.tr("Cancel"), .close, cancelClicked);
cancel_btn.name = "cancel";
try controls.append(a, cancel_btn);
} else {
- var edit_btn = button(cc, i, "Edit shortcut", .edit, edit);
+ var edit_btn = button(cc, i, i18n.tr("Edit shortcut"), .edit, edit);
edit_btn.name = "edit";
try controls.append(a, edit_btn);
if (bind.action != .noop) {
- var disable = button(cc, i, "Disable shortcut", .close, disableClicked);
+ var disable = button(cc, i, i18n.tr("Disable shortcut"), .close, disableClicked);
disable.name = "disable";
try controls.append(a, disable);
}
@@ -235,63 +225,63 @@ fn confirmClicked(p: ?*anyopaque, _: usize) void {
fn descriptionFor(action: keys.Action, buf: []u8) []const u8 {
return switch (action) {
- .toggle_floating => "Toggle the focused window between floating and automatic tiling.",
- .toggle_split => "Rotate the nearest tiled split.",
- .toggle_workspace_tiling => "Toggle automatic tiling for the current workspace.",
- .swap_left => "Swap the focused tile left.",
- .swap_right => "Swap the focused tile right.",
- .swap_up => "Swap the focused tile up.",
- .swap_down => "Swap the focused tile down.",
- .resize_split_left => "Move the relevant split divider left.",
- .resize_split_right => "Move the relevant split divider right.",
- .resize_split_up => "Move the relevant split divider up.",
- .resize_split_down => "Move the relevant split divider down.",
- .workspace => |n| std.fmt.bufPrint(buf, "Switch to workspace {d}.", .{n}) catch "Switch workspace.",
- .move_to_workspace => |n| std.fmt.bufPrint(buf, "Move the window to workspace {d} and follow it.", .{n}) catch "Move to workspace.",
- .workspace_next => "Cycle to the next existing workspace.",
- .workspace_prev => "Cycle to the previous existing workspace.",
- .toggle_power_menu => "Open the session and power menu.",
- .open_system_monitor => "Open System Monitor, or restore and focus its window.",
- .noop => "Disabled shortcut.",
- .toggle_fullscreen => "Enter or leave fullscreen.",
- .toggle_maximize => "Maximize or restore the focused window.",
- .tile_left => "Snap the focused window to the left half.",
- .tile_right => "Snap the focused window to the right half.",
- .tile_up => "Snap the focused window to a top quarter, or maximize it.",
- .tile_down => "Snap the focused window to a bottom quarter, or restore it.",
- .set_depth => |n| std.fmt.bufPrint(buf, "Move the window to depth {d}.", .{n}) catch "Change window depth.",
- .zoom_in => "Increase the focused window's size.",
- .zoom_out => "Decrease the focused window's size.",
- .zoom_reset => "Restore the focused window's size.",
- .camera_zoom_in => "Zoom into the desktop canvas.",
- .camera_zoom_out => "Zoom out of the desktop canvas.",
- .camera_zoom_reset => "Restore the desktop zoom.",
- .pan_left => "Scroll to the desktop on the left.",
- .pan_right => "Scroll to the desktop on the right.",
- .pan_up => "Scroll to the desktop above.",
- .pan_down => "Scroll to the desktop below.",
- .focus_next => "Switch to the next window.",
- .focus_prev => "Switch to the previous window.",
- .focus_left => "Focus the window to the left.",
- .focus_right => "Focus the window to the right.",
- .focus_up => "Focus the window above.",
- .focus_down => "Focus the window below.",
- .save_layout => |v| std.fmt.bufPrint(buf, "Save layout: {s}", .{v}) catch "Save the window layout.",
- .restore_layout => |v| std.fmt.bufPrint(buf, "Restore layout: {s}", .{v}) catch "Restore a saved layout.",
- .undo => "Undo the last layout change.",
- .restore_shortcuts => "Take shortcuts back from a virtual machine or remote desktop.",
- .volume_up => "Increase system volume.",
- .volume_down => "Decrease system volume.",
- .volume_mute => "Mute or unmute system audio.",
- .mic_mute => "Mute or unmute the microphone.",
- .brightness_up => "Increase display brightness.",
- .brightness_down => "Decrease display brightness.",
- .power_profile_cycle => "Switch to the next power profile.",
- .quit => "Log out of the desktop session.",
- .poweroff, .poweroff_auto => "Shut down the computer.",
- .reboot, .reboot_auto => "Restart the computer.",
- .@"suspend", .suspend_auto => "Put the computer to sleep.",
- .restart_shell => "Restart the desktop shell.",
+ .toggle_floating => i18n.tr("Toggle the focused window between floating and automatic tiling."),
+ .toggle_split => i18n.tr("Rotate the nearest tiled split."),
+ .toggle_workspace_tiling => i18n.tr("Toggle automatic tiling for the current workspace."),
+ .swap_left => i18n.tr("Swap the focused tile left."),
+ .swap_right => i18n.tr("Swap the focused tile right."),
+ .swap_up => i18n.tr("Swap the focused tile up."),
+ .swap_down => i18n.tr("Swap the focused tile down."),
+ .resize_split_left => i18n.tr("Move the relevant split divider left."),
+ .resize_split_right => i18n.tr("Move the relevant split divider right."),
+ .resize_split_up => i18n.tr("Move the relevant split divider up."),
+ .resize_split_down => i18n.tr("Move the relevant split divider down."),
+ .workspace => |n| i18n.fmt(buf, i18n.tr("Switch to workspace {n}."), .{ .n = n }) catch i18n.tr("Switch workspace."),
+ .move_to_workspace => |n| i18n.fmt(buf, i18n.tr("Move the window to workspace {n} and follow it."), .{ .n = n }) catch i18n.tr("Move to workspace."),
+ .workspace_next => i18n.tr("Cycle to the next existing workspace."),
+ .workspace_prev => i18n.tr("Cycle to the previous existing workspace."),
+ .toggle_power_menu => i18n.tr("Open the session and power menu."),
+ .open_system_monitor => i18n.tr("Open System Monitor, or restore and focus its window."),
+ .noop => i18n.tr("Disabled shortcut."),
+ .toggle_fullscreen => i18n.tr("Enter or leave fullscreen."),
+ .toggle_maximize => i18n.tr("Maximize or restore the focused window."),
+ .tile_left => i18n.tr("Snap the focused window to the left half."),
+ .tile_right => i18n.tr("Snap the focused window to the right half."),
+ .tile_up => i18n.tr("Snap the focused window to a top quarter, or maximize it."),
+ .tile_down => i18n.tr("Snap the focused window to a bottom quarter, or restore it."),
+ .set_depth => |n| i18n.fmt(buf, i18n.tr("Move the window to depth {depth}."), .{ .depth = n }) catch i18n.tr("Change window depth."),
+ .zoom_in => i18n.tr("Increase the focused window's size."),
+ .zoom_out => i18n.tr("Decrease the focused window's size."),
+ .zoom_reset => i18n.tr("Restore the focused window's size."),
+ .camera_zoom_in => i18n.tr("Zoom into the desktop canvas."),
+ .camera_zoom_out => i18n.tr("Zoom out of the desktop canvas."),
+ .camera_zoom_reset => i18n.tr("Restore the desktop zoom."),
+ .pan_left => i18n.tr("Scroll to the desktop on the left."),
+ .pan_right => i18n.tr("Scroll to the desktop on the right."),
+ .pan_up => i18n.tr("Scroll to the desktop above."),
+ .pan_down => i18n.tr("Scroll to the desktop below."),
+ .focus_next => i18n.tr("Switch to the next window."),
+ .focus_prev => i18n.tr("Switch to the previous window."),
+ .focus_left => i18n.tr("Focus the window to the left."),
+ .focus_right => i18n.tr("Focus the window to the right."),
+ .focus_up => i18n.tr("Focus the window above."),
+ .focus_down => i18n.tr("Focus the window below."),
+ .save_layout => |v| i18n.fmt(buf, i18n.tr("Save layout: {name}"), .{ .name = v }) catch i18n.tr("Save the window layout."),
+ .restore_layout => |v| i18n.fmt(buf, i18n.tr("Restore layout: {name}"), .{ .name = v }) catch i18n.tr("Restore a saved layout."),
+ .undo => i18n.tr("Undo the last layout change."),
+ .restore_shortcuts => i18n.tr("Take shortcuts back from a virtual machine or remote desktop."),
+ .volume_up => i18n.tr("Increase system volume."),
+ .volume_down => i18n.tr("Decrease system volume."),
+ .volume_mute => i18n.tr("Mute or unmute system audio."),
+ .mic_mute => i18n.tr("Mute or unmute the microphone."),
+ .brightness_up => i18n.tr("Increase display brightness."),
+ .brightness_down => i18n.tr("Decrease display brightness."),
+ .power_profile_cycle => i18n.tr("Switch to the next power profile."),
+ .quit => i18n.tr("Log out of the desktop session."),
+ .poweroff, .poweroff_auto => i18n.tr("Shut down the computer."),
+ .reboot, .reboot_auto => i18n.tr("Restart the computer."),
+ .@"suspend", .suspend_auto => i18n.tr("Put the computer to sleep."),
+ .restart_shell => i18n.tr("Restart the desktop shell."),
else => "",
};
}
@@ -304,3 +294,74 @@ fn disableClicked(p: ?*anyopaque, i: usize) void {
cc.shortcuts.candidate = .{ .sym = bind.sym, .modifiers = bind.modifiers, .action = .noop };
cc.shortcuts.pending_save = true;
}
+
+fn actionTitle(action: keys.Action) []const u8 {
+ return switch (action) {
+ .toggle_floating => i18n.tr("Toggle Floating"),
+ .toggle_split => i18n.tr("Toggle Split"),
+ .toggle_workspace_tiling => i18n.tr("Toggle Workspace Tiling"),
+ .swap_left => i18n.tr("Swap Left"),
+ .swap_right => i18n.tr("Swap Right"),
+ .swap_up => i18n.tr("Swap Up"),
+ .swap_down => i18n.tr("Swap Down"),
+ .resize_split_left => i18n.tr("Resize Split Left"),
+ .resize_split_right => i18n.tr("Resize Split Right"),
+ .resize_split_up => i18n.tr("Resize Split Up"),
+ .resize_split_down => i18n.tr("Resize Split Down"),
+ .noop => i18n.tr("Noop"),
+ .workspace => i18n.tr("Workspace"),
+ .move_to_workspace => i18n.tr("Move To Workspace"),
+ .workspace_next => i18n.tr("Workspace Next"),
+ .workspace_prev => i18n.tr("Workspace Prev"),
+ .toggle_power_menu => i18n.tr("Toggle Power Menu"),
+ .volume_up => i18n.tr("Volume Up"),
+ .volume_down => i18n.tr("Volume Down"),
+ .volume_mute => i18n.tr("Volume Mute"),
+ .mic_mute => i18n.tr("Mic Mute"),
+ .brightness_up => i18n.tr("Brightness Up"),
+ .brightness_down => i18n.tr("Brightness Down"),
+ .power_profile_cycle => i18n.tr("Power Profile Cycle"),
+ .spawn => i18n.tr("Spawn"),
+ .close_window => i18n.tr("Close Window"),
+ .toggle_fullscreen => i18n.tr("Toggle Fullscreen"),
+ .toggle_maximize => i18n.tr("Toggle Maximize"),
+ .tile_left => i18n.tr("Tile Left"),
+ .tile_right => i18n.tr("Tile Right"),
+ .tile_up => i18n.tr("Tile Up"),
+ .tile_down => i18n.tr("Tile Down"),
+ .toggle_start_menu => i18n.tr("Toggle Launcher"),
+ .open_system_monitor => i18n.tr("Open System Monitor"),
+ .set_depth => i18n.tr("Set Depth"),
+ .zoom_in => i18n.tr("Zoom In"),
+ .zoom_out => i18n.tr("Zoom Out"),
+ .zoom_reset => i18n.tr("Zoom Reset"),
+ .camera_zoom_in => i18n.tr("Camera Zoom In"),
+ .camera_zoom_out => i18n.tr("Camera Zoom Out"),
+ .camera_zoom_reset => i18n.tr("Camera Zoom Reset"),
+ .pan_left => i18n.tr("Pan Left"),
+ .pan_right => i18n.tr("Pan Right"),
+ .pan_up => i18n.tr("Pan Up"),
+ .pan_down => i18n.tr("Pan Down"),
+ .focus_next => i18n.tr("Focus Next"),
+ .focus_prev => i18n.tr("Focus Prev"),
+ .focus_left => i18n.tr("Focus Left"),
+ .focus_right => i18n.tr("Focus Right"),
+ .focus_up => i18n.tr("Focus Up"),
+ .focus_down => i18n.tr("Focus Down"),
+ .lock_screen => i18n.tr("Lock Screen"),
+ .quit => i18n.tr("Quit"),
+ .poweroff => i18n.tr("Poweroff"),
+ .reboot => i18n.tr("Reboot"),
+ .@"suspend" => i18n.tr("Suspend"),
+ .poweroff_auto => i18n.tr("Poweroff Auto"),
+ .reboot_auto => i18n.tr("Reboot Auto"),
+ .suspend_auto => i18n.tr("Suspend Auto"),
+ .restart_shell => i18n.tr("Restart Shell"),
+ .screenshot_region => i18n.tr("Screenshot Region"),
+ .screenshot_output => i18n.tr("Screenshot Output"),
+ .save_layout => i18n.tr("Save Layout"),
+ .restore_layout => i18n.tr("Restore Layout"),
+ .undo => i18n.tr("Undo"),
+ .restore_shortcuts => i18n.tr("Restore Shortcuts"),
+ };
+}
diff --git a/src/control_center/sections/sound.zig b/src/control_center/sections/sound.zig
index 638e172..ab4f56e 100644
--- a/src/control_center/sections/sound.zig
+++ b/src/control_center/sections/sound.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
// Control center sound controls. Each callback carries its owning Section.
const std = @import("std");
@@ -159,7 +160,7 @@ fn volumeRow(
fn unavailableRow(out: *Section) Widget {
out.unavailable_children = .{
- .{ .kind = .{ .text = .{ .content = "Audio unavailable", .font_size = 13, .color = panel.palette().dim } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Audio unavailable"), .font_size = 13, .color = panel.palette().dim } } },
};
return .{ .kind = .container, .height = .{ .fixed = row_height }, .children = &out.unavailable_children };
}
@@ -170,7 +171,7 @@ pub fn build(out: *Section, audio_mgr: ?*audio.AudioManager) void {
out.input_desc_len = 0;
out.app_count = 0;
- out.top_children[0] = .{ .kind = .{ .text = .{ .content = "SOUND", .font_size = 12, .weight = 700, .color = panel.palette().dim } } };
+ out.top_children[0] = .{ .kind = .{ .text = .{ .content = i18n.tr("SOUND"), .font_size = 12, .weight = 700, .color = panel.palette().dim } } };
const mgr = audio_mgr orelse {
out.body_children[0] = unavailableRow(out);
@@ -215,14 +216,14 @@ pub fn build(out: *Section, audio_mgr: ?*audio.AudioManager) void {
mgr.unlock();
out.balance_children = .{
- dimLabel("Balance"),
- valueWidget(if (can_balance) "Left" else "Unavailable"),
+ dimLabel(i18n.tr("Balance")),
+ valueWidget(if (can_balance) i18n.tr("Left") else i18n.tr("Unavailable")),
if (can_balance) .{
.name = "output_balance",
.kind = .{ .slider = .{ .style = .settings, .value = balance, .min = -1, .max = 1, .step = 0.05, .owner = out, .on_change = onBalanceChanged } },
.width = .{ .flex = 2 },
} else valueWidget(""),
- valueWidget("Right"),
+ valueWidget(i18n.tr("Right")),
pillWidget(if (can_balance) formatBalance(&out.balance_value_buf, balance) else "", 13),
};
out.balance_children[4].width = .{ .fixed = 76 };
@@ -230,30 +231,30 @@ pub fn build(out: *Section, audio_mgr: ?*audio.AudioManager) void {
const bass = mgr.getBass();
out.bass_children = .{
- dimLabel("Bass Boost"),
+ dimLabel(i18n.tr("Bass Boost")),
if (bass.available) .{
.name = "bass_boost",
.kind = .{ .slider = .{ .style = .settings, .value = bass.gain, .min = 0, .max = 12, .step = 0.5, .owner = out, .on_change = onBassChanged } },
.width = .{ .flex = 2 },
- } else valueWidget("Unavailable"),
+ } else valueWidget(i18n.tr("Unavailable")),
pillWidget(if (bass.available) formatBass(&out.bass_value_buf, bass) else "", 13),
};
out.bass_children[2].width = .{ .fixed = 76 };
out.body_children[3] = .{ .kind = .container, .direction = .row, .gap = 10, .@"align" = .center, .height = .{ .fixed = row_height }, .children = &out.bass_children };
out.treble_children = .{
- dimLabel("Treble"),
+ dimLabel(i18n.tr("Treble")),
if (bass.available) .{
.name = "treble",
.kind = .{ .slider = .{ .style = .settings, .value = bass.treble, .min = -6, .max = 6, .step = 0.5, .owner = out, .on_change = onTrebleChanged } },
.width = .{ .flex = 2 },
- } else valueWidget("Unavailable"),
+ } else valueWidget(i18n.tr("Unavailable")),
pillWidget(if (bass.available) formatTreble(&out.treble_value_buf, bass) else "", 13),
};
out.treble_children[2].width = .{ .fixed = 76 };
out.body_children[4] = .{ .kind = .container, .direction = .row, .gap = 10, .@"align" = .center, .height = .{ .fixed = row_height }, .children = &out.treble_children };
- out.body_children[0] = deviceRow(&out.output_row_children, "Output", out.output_desc_buf[0..out.output_desc_len]);
+ out.body_children[0] = deviceRow(&out.output_row_children, i18n.tr("Output"), out.output_desc_buf[0..out.output_desc_len]);
out.body_children[1] = volumeRow(
out,
&out.master_children,
@@ -265,7 +266,7 @@ pub fn build(out: *Section, audio_mgr: ?*audio.AudioManager) void {
0,
&onMasterVolumeChanged,
);
- out.body_children[5] = deviceRow(&out.input_row_children, "Input", out.input_desc_buf[0..out.input_desc_len]);
+ out.body_children[5] = deviceRow(&out.input_row_children, i18n.tr("Input"), out.input_desc_buf[0..out.input_desc_len]);
out.body_children[6] = volumeRow(
out,
&out.input_vol_children,
@@ -300,7 +301,7 @@ pub fn build(out: *Section, audio_mgr: ?*audio.AudioManager) void {
};
}
- out.apps_block_children[0] = .{ .kind = .{ .text = .{ .content = "App streams", .font_size = 13, .weight = 600, .color = panel.palette().fg } } };
+ out.apps_block_children[0] = .{ .kind = .{ .text = .{ .content = i18n.tr("App streams"), .font_size = 13, .weight = 600, .color = panel.palette().fg } } };
if (out.app_count > 0) {
out.apps_block_children[1] = .{
.kind = .container,
@@ -309,7 +310,7 @@ pub fn build(out: *Section, audio_mgr: ?*audio.AudioManager) void {
.children = out.apps_list[0..out.app_count],
};
} else {
- out.apps_empty_text = .{ .kind = .{ .text = .{ .content = "No active audio streams", .font_size = 12, .color = panel.palette().dim } } };
+ out.apps_empty_text = .{ .kind = .{ .text = .{ .content = i18n.tr("No active audio streams"), .font_size = 12, .color = panel.palette().dim } } };
out.apps_block_children[1] = out.apps_empty_text;
}
out.body_children[7] = .{ .kind = .container, .direction = .column, .gap = 8, .children = &out.apps_block_children };
@@ -331,8 +332,8 @@ fn onAppVolumeChanged(owner: ?*anyopaque, index: usize, value: f32) void {
fn formatBalance(buf: []u8, balance: f32) []const u8 {
const percent: u32 = @intFromFloat(@round(@abs(balance) * 100));
- if (percent == 0) return "Centre";
- return std.fmt.bufPrint(buf, "{s} {d}%", .{ if (balance < 0) "L" else "R", percent }) catch "?";
+ if (percent == 0) return i18n.tr("Centre");
+ return std.fmt.bufPrint(buf, "{s} {d}%", .{ if (balance < 0) i18n.trc("balance", "L") else i18n.trc("balance", "R"), percent }) catch "?";
}
fn onBalanceChanged(owner: ?*anyopaque, _: usize, value: f32) void {
@@ -344,8 +345,8 @@ fn onBalanceChanged(owner: ?*anyopaque, _: usize, value: f32) void {
}
fn formatBass(buf: []u8, bass: audio.BassState) []const u8 {
- if (bass.save_failed) return "Not saved";
- if (bass.gain == 0) return "Off";
+ if (bass.save_failed) return i18n.tr("Not saved");
+ if (bass.gain == 0) return i18n.tr("Off");
return std.fmt.bufPrint(buf, "+{d:.1} dB", .{bass.gain}) catch "?";
}
@@ -356,13 +357,13 @@ fn onBassChanged(owner: ?*anyopaque, _: usize, value: f32) void {
const bass = mgr.getBass();
s.bass_children[1].kind.slider.value = bass.gain;
s.bass_children[1].markDirty();
- s.bass_children[2].kind.text.content = if (applied) formatBass(&s.bass_value_buf, bass) else "Unavailable";
+ s.bass_children[2].kind.text.content = if (applied) formatBass(&s.bass_value_buf, bass) else i18n.tr("Unavailable");
s.bass_children[2].markDirty();
}
fn formatTreble(buf: []u8, bass: audio.BassState) []const u8 {
- if (bass.save_failed) return "Not saved";
- if (bass.treble == 0) return "Off";
+ if (bass.save_failed) return i18n.tr("Not saved");
+ if (bass.treble == 0) return i18n.tr("Off");
return std.fmt.bufPrint(buf, "{s}{d:.1} dB", .{ if (bass.treble > 0) "+" else "", bass.treble }) catch "?";
}
@@ -373,7 +374,7 @@ fn onTrebleChanged(owner: ?*anyopaque, _: usize, value: f32) void {
const bass = mgr.getBass();
s.treble_children[1].kind.slider.value = bass.treble;
s.treble_children[1].markDirty();
- s.treble_children[2].kind.text.content = if (applied) formatTreble(&s.treble_value_buf, bass) else "Unavailable";
+ s.treble_children[2].kind.text.content = if (applied) formatTreble(&s.treble_value_buf, bass) else i18n.tr("Unavailable");
s.treble_children[2].markDirty();
}
diff --git a/src/control_center/sections/users.zig b/src/control_center/sections/users.zig
index c1fb627..60aff5c 100644
--- a/src/control_center/sections/users.zig
+++ b/src/control_center/sections/users.zig
@@ -1,4 +1,5 @@
//! Account overview and automatic-login settings.
+const i18n = @import("i18n");
const std = @import("std");
const Child = @import("../../session/child.zig");
const panel = @import("../panel.zig");
@@ -90,15 +91,15 @@ pub fn build(s: *Section, cc: *panel.ControlCenter) void {
fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
const snapshot = model.load(a, cc.server.io) catch {
- return buildCard(a, &.{ text("Could not read login accounts.", 14, false), text("Check NSS and /etc/login.defs.", 12, true) });
+ return buildCard(a, &.{ text(i18n.tr("Could not read login accounts."), 14, false), text(i18n.tr("Check NSS and /etc/login.defs."), 12, true) });
};
const rows = try a.alloc(W, snapshot.users.len + 32);
var count: usize = 0;
const header = try a.alloc(W, 2);
- header[0] = panel.sectionTitle("Accounts");
+ header[0] = panel.sectionTitle(i18n.tr("Accounts"));
header[0].width = .{ .flex = 1 };
header[1] = .{ .kind = .{ .button = .{
- .label = if (s.unlocked) "Lock" else "Unlock",
+ .label = if (s.unlocked) i18n.tr("Lock") else i18n.tr("Unlock"),
.leading_icon = if (s.unlocked) .checkmark else .lock,
.owner = cc,
.on_click = lockClicked,
@@ -106,25 +107,25 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
} }, .height = .{ .fixed = 34 } };
rows[count] = .{ .kind = .container, .direction = .row, .gap = 10, .@"align" = .center, .width = .{ .percent = 1 }, .children = header };
count += 1;
- rows[count] = text(if (s.message.len > 0) s.message else if (s.auth != null) "Waiting for authentication…" else if (s.unlocked) "Account settings are unlocked for this session." else "Unlock to make account changes.", 12, true);
+ rows[count] = text(if (s.message.len > 0) s.message else if (s.auth != null) i18n.tr("Waiting for authentication…") else if (s.unlocked) i18n.tr("Account settings are unlocked for this session.") else i18n.tr("Unlock to make account changes."), 12, true);
count += 1;
if (snapshot.users.len == 0) {
- rows[count] = text("No login accounts were found.", 13, true);
+ rows[count] = text(i18n.tr("No login accounts were found."), 13, true);
count += 1;
} else {
for (snapshot.users, 0..) |user, user_index| {
const full_name = if (user.full_name.len == 0) user.name else user.full_name;
- const kind = if (user.admin) "Administrator" else "Standard";
+ const kind = if (user.admin) i18n.tr("Administrator") else i18n.tr("Standard");
const row = try a.alloc(W, 4);
row[0] = .{ .kind = .avatar, .width = .{ .fixed = 28 }, .height = .{ .fixed = 28 } };
row[1] = .{ .kind = .container, .direction = .column, .gap = 2, .width = .{ .flex = 1 }, .children = try a.dupe(W, &.{ text(full_name, 14, false), text(user.name, 12, true) }) };
- row[2] = text(if (user.is_current) "You" else kind, 11, true);
- row[3] = actionButton(cc, if (user.local) "Details" else "Read only", user_index, detailsClicked, !user.local or !s.unlocked or s.auth != null or s.form != .none);
+ row[2] = text(if (user.is_current) i18n.tr("You") else kind, 11, true);
+ row[3] = actionButton(cc, if (user.local) i18n.tr("Details") else i18n.tr("Read only"), user_index, detailsClicked, !user.local or !s.unlocked or s.auth != null or s.form != .none);
rows[count] = .{ .kind = .container, .direction = .row, .gap = 12, .@"align" = .center, .width = .{ .percent = 1 }, .height = .{ .fixed = 44 }, .children = row };
count += 1;
}
}
- rows[count] = actionButton(cc, "Add user…", 0, addUserClicked, !s.unlocked or s.auth != null or s.form != .none);
+ rows[count] = actionButton(cc, i18n.tr("Add user…"), 0, addUserClicked, !s.unlocked or s.auth != null or s.form != .none);
count += 1;
switch (s.form) {
.add => {
@@ -147,10 +148,10 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
},
.none => {},
}
- rows[count] = panel.sectionTitle("Automatic login");
+ rows[count] = panel.sectionTitle(i18n.tr("Automatic login"));
count += 1;
const user_labels = try a.alloc([]const u8, snapshot.users.len + 1);
- user_labels[0] = "Off";
+ user_labels[0] = i18n.tr("Off");
var selected_user: usize = 0;
for (snapshot.users, 0..) |user, i| {
user_labels[i + 1] = user.name;
@@ -158,12 +159,12 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
if (std.mem.eql(u8, name, user.name)) selected_user = i + 1;
}
}
- rows[count] = try selectRow(cc, a, "User", "autologin_user", user_labels, selected_user, s.auth != null or s.form != .none or !s.unlocked or snapshot.sessions.len == 0, autologinUserChanged);
+ rows[count] = try selectRow(cc, a, i18n.tr("User"), "autologin_user", user_labels, selected_user, s.auth != null or s.form != .none or !s.unlocked or snapshot.sessions.len == 0, autologinUserChanged);
count += 1;
const session_labels = try a.alloc([]const u8, @max(snapshot.sessions.len, 1));
var selected_session: usize = 0;
if (snapshot.sessions.len == 0) {
- session_labels[0] = "No sessions available";
+ session_labels[0] = i18n.tr("No sessions available");
} else {
for (snapshot.sessions, 0..) |session, i| {
session_labels[i] = session.name;
@@ -172,9 +173,9 @@ fn tree(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
}
}
}
- rows[count] = try selectRow(cc, a, "Session", "autologin_session", session_labels, selected_session, s.auth != null or s.form != .none or !s.unlocked or snapshot.sessions.len == 0 or snapshot.autologin_user == null, autologinSessionChanged);
+ rows[count] = try selectRow(cc, a, i18n.tr("Session"), "autologin_session", session_labels, selected_session, s.auth != null or s.form != .none or !s.unlocked or snapshot.sessions.len == 0 or snapshot.autologin_user == null, autologinSessionChanged);
count += 1;
- rows[count] = text("Takes effect at next boot. The keyring will not unlock automatically.", 12, true);
+ rows[count] = text(i18n.tr("Takes effect at next boot. The keyring will not unlock automatically."), 12, true);
count += 1;
return buildCard(a, rows[0..count]);
}
@@ -267,16 +268,16 @@ fn formButtons(a: std.mem.Allocator, cc: *panel.ControlCenter, left_label: []con
fn buildAddForm(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
if (s.password_memory == null or s.confirm_memory == null) {
- return buildCard(a, &.{text("Could not allocate locked password storage.", 13, true)});
+ return buildCard(a, &.{text(i18n.tr("Could not allocate locked password storage."), 13, true)});
}
const items = try a.alloc(W, 7);
- items[0] = panel.sectionTitle("Add user");
- items[1] = try textInputRow(cc, a, "Full name", "", "Full name", addFullNameChanged, &s.new_full_name);
- items[2] = try textInputRow(cc, a, "Username", "", "lowercase username", addUsernameChanged, &s.new_username);
- items[3] = try secretInputRowFocus(a, "Password", &s.password, "Enter password", &s.password_field);
- items[4] = try secretInputRow(a, "Confirm", &s.confirm_password, "Confirm password");
- items[5] = .{ .kind = .{ .checkbox = .{ .label = "Administrator", .checked = s.new_admin, .owner = cc, .on_change = addAdminChanged } } };
- items[6] = try formButtons(a, cc, "Cancel", 0, cancelFormClicked, "Create user", 0, createUserClicked);
+ items[0] = panel.sectionTitle(i18n.tr("Add user"));
+ items[1] = try textInputRow(cc, a, i18n.tr("Full name"), "", i18n.tr("Full name"), addFullNameChanged, &s.new_full_name);
+ items[2] = try textInputRow(cc, a, i18n.tr("Username"), "", i18n.tr("lowercase username"), addUsernameChanged, &s.new_username);
+ items[3] = try secretInputRowFocus(a, i18n.tr("Password"), &s.password, i18n.tr("Enter password"), &s.password_field);
+ items[4] = try secretInputRow(a, i18n.tr("Confirm"), &s.confirm_password, i18n.tr("Confirm password"));
+ items[5] = .{ .kind = .{ .checkbox = .{ .label = i18n.tr("Administrator"), .checked = s.new_admin, .owner = cc, .on_change = addAdminChanged } } };
+ items[6] = try formButtons(a, cc, i18n.tr("Cancel"), 0, cancelFormClicked, i18n.tr("Create user"), 0, createUserClicked);
return buildCard(a, items);
}
@@ -284,19 +285,19 @@ fn buildDetailsForm(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator,
populateGroupChoices(s, user, groups);
const visible_count = visibleGroupCount(s);
const items = try a.alloc(W, 9);
- items[0] = panel.sectionTitle(try std.fmt.allocPrint(a, "Account details · {s}", .{user.name}));
+ items[0] = panel.sectionTitle(try i18n.allocPrint(a, i18n.tr("Account details · {name}"), .{ .name = user.name }));
const displayed_full_name = if (s.details_name_dirty) s.details_name_draft[0..s.details_name_len] else user.full_name;
- items[1] = try textInputRow(cc, a, "Full name", displayed_full_name, "Full name", detailsNameChanged, &s.details_full_name);
- const type_labels = [_][]const u8{ "Standard", "Administrator" };
- items[2] = try selectRow(cc, a, "Account type", "account_type", &type_labels, @intFromBool(user.admin), s.auth != null, accountTypeChanged);
+ items[1] = try textInputRow(cc, a, i18n.tr("Full name"), displayed_full_name, i18n.tr("Full name"), detailsNameChanged, &s.details_full_name);
+ const type_labels = comptime [_]i18n.Message{ i18n.msg("Standard"), i18n.msg("Administrator") };
+ items[2] = try selectRow(cc, a, i18n.tr("Account type"), "account_type", panel.translatedLabels(&type_labels), @intFromBool(user.admin), s.auth != null, accountTypeChanged);
const actions = try a.alloc(W, 3);
- actions[0] = actionButton(cc, "Save name", 0, saveFullNameClicked, s.auth != null);
- actions[1] = actionButton(cc, "Change password…", 0, changePasswordClicked, s.auth != null);
- actions[2] = actionButton(cc, "Delete user…", 0, beginDeleteClicked, s.auth != null);
+ actions[0] = actionButton(cc, i18n.tr("Save name"), 0, saveFullNameClicked, s.auth != null);
+ actions[1] = actionButton(cc, i18n.tr("Change password…"), 0, changePasswordClicked, s.auth != null);
+ actions[2] = actionButton(cc, i18n.tr("Delete user…"), 0, beginDeleteClicked, s.auth != null);
items[3] = .{ .kind = .container, .direction = .row, .justify = .space_between, .gap = 8, .children = actions };
const group_header = try a.alloc(W, 2);
- group_header[0] = panel.sectionTitle("Groups");
- group_header[1] = actionButton(cc, if (s.show_all_groups) "Show curated" else "Show all groups", 0, groupVisibilityClicked, s.auth != null);
+ group_header[0] = panel.sectionTitle(i18n.tr("Groups"));
+ group_header[1] = actionButton(cc, if (s.show_all_groups) i18n.tr("Show curated") else i18n.tr("Show all groups"), 0, groupVisibilityClicked, s.auth != null);
items[4] = .{ .kind = .container, .direction = .row, .justify = .space_between, .@"align" = .center, .children = group_header };
const group_widgets = try a.alloc(W, visible_count);
var row_count: usize = 0;
@@ -304,7 +305,7 @@ fn buildDetailsForm(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator,
const name = s.group_names[i][0..s.group_name_lens[i]];
if (!s.show_all_groups and !isCuratedGroup(name, s.group_admin[i])) continue;
group_widgets[row_count] = .{ .name = name, .kind = .{ .checkbox = .{
- .label = if (user.primary_gid == s.group_gids[i]) std.fmt.allocPrint(a, "{s} · primary", .{name}) catch name else name,
+ .label = if (user.primary_gid == s.group_gids[i]) i18n.allocPrint(a, i18n.tr("{name} · primary"), .{ .name = name }) catch name else name,
.checked = s.group_checked[i],
.disabled = s.auth != null or user.primary_gid == s.group_gids[i],
.on_change = groupChecked,
@@ -314,28 +315,28 @@ fn buildDetailsForm(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator,
row_count += 1;
}
items[5] = .{ .name = "user_groups", .kind = .container, .direction = .column, .gap = 4, .children = group_widgets[0..row_count] };
- items[6] = text(if (s.groups_truncated) "Some groups cannot be safely shown; group changes are disabled." else "", 12, true);
- items[7] = try formButtons(a, cc, "Save groups", 0, saveGroupsClicked, "Done", 0, cancelFormClicked);
+ items[6] = text(if (s.groups_truncated) i18n.tr("Some groups cannot be safely shown; group changes are disabled.") else "", 12, true);
+ items[7] = try formButtons(a, cc, i18n.tr("Save groups"), 0, saveGroupsClicked, i18n.tr("Done"), 0, cancelFormClicked);
items[7].children[0].kind.button.state = if (s.auth != null or s.groups_truncated) .disabled else .idle;
items[8] = text(user.home, 12, true);
return buildCard(a, items);
}
fn buildPasswordForm(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
- if (s.password_memory == null or s.confirm_memory == null) return buildCard(a, &.{text("Could not allocate locked password storage.", 13, true)});
+ if (s.password_memory == null or s.confirm_memory == null) return buildCard(a, &.{text(i18n.tr("Could not allocate locked password storage."), 13, true)});
const items = try a.alloc(W, 4);
- items[0] = panel.sectionTitle(try std.fmt.allocPrint(a, "Change password · {s}", .{s.target[0..s.target_len]}));
- items[1] = try secretInputRowFocus(a, "New password", &s.password, "Enter new password", &s.password_field);
- items[2] = try secretInputRow(a, "Confirm", &s.confirm_password, "Confirm new password");
- items[3] = try formButtons(a, cc, "Cancel", 0, cancelFormClicked, "Save password", 0, changePasswordSubmit);
+ items[0] = panel.sectionTitle(try i18n.allocPrint(a, i18n.tr("Change password · {name}"), .{ .name = s.target[0..s.target_len] }));
+ items[1] = try secretInputRowFocus(a, i18n.tr("New password"), &s.password, i18n.tr("Enter new password"), &s.password_field);
+ items[2] = try secretInputRow(a, i18n.tr("Confirm"), &s.confirm_password, i18n.tr("Confirm new password"));
+ items[3] = try formButtons(a, cc, i18n.tr("Cancel"), 0, cancelFormClicked, i18n.tr("Save password"), 0, changePasswordSubmit);
return buildCard(a, items);
}
fn buildDeleteForm(s: *Section, cc: *panel.ControlCenter, a: std.mem.Allocator) !W {
const items = try a.alloc(W, 3);
- items[0] = panel.sectionTitle(try std.fmt.allocPrint(a, "Delete {s}?", .{s.target[0..s.target_len]}));
- items[1] = text("Choose whether to keep the home folder or remove its files.", 12, true);
- items[2] = try formButtons(a, cc, "Keep home", 0, deleteKeepHomeClicked, "Delete files", 0, deleteFilesClicked);
+ items[0] = panel.sectionTitle(try i18n.allocPrint(a, i18n.tr("Delete {name}?"), .{ .name = s.target[0..s.target_len] }));
+ items[1] = text(i18n.tr("Choose whether to keep the home folder or remove its files."), 12, true);
+ items[2] = try formButtons(a, cc, i18n.tr("Keep home"), 0, deleteKeepHomeClicked, i18n.tr("Delete files"), 0, deleteFilesClicked);
return buildCard(a, items);
}
@@ -427,13 +428,13 @@ fn saveGroupsClicked(owner: ?*anyopaque, _: usize) void {
for (0..cc.users.group_count) |i| {
if (!cc.users.group_checked[i]) continue;
groups.append(gpa, cc.users.group_names[i][0..cc.users.group_name_lens[i]]) catch {
- cc.users.message = "Could not prepare the group update.";
+ cc.users.message = i18n.tr("Could not prepare the group update.");
cc.refresh();
return;
};
}
startHelper(cc, .{ .op = "set-groups", .username = targetName(&cc.users), .groups = groups.items }, false) catch {
- cc.users.message = "Could not start the request.";
+ cc.users.message = i18n.tr("Could not start the request.");
cc.refresh();
};
}
@@ -456,7 +457,7 @@ fn addUserClicked(owner: ?*anyopaque, _: usize) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
if (!cc.users.unlocked) return;
openSecrets(&cc.users) catch {
- cc.users.message = "Could not allocate locked password storage.";
+ cc.users.message = i18n.tr("Could not allocate locked password storage.");
cc.refresh();
return;
};
@@ -587,17 +588,17 @@ fn createUserClicked(owner: ?*anyopaque, _: usize) void {
const password = s.password.value();
const confirmation = s.confirm_password.value();
if (!validation.validUsername(username) or !validation.validFullName(full)) {
- s.message = "Enter a valid username and full name.";
+ s.message = i18n.tr("Enter a valid username and full name.");
cc.refresh();
return;
}
if (!validation.validPassword(password) or !std.mem.eql(u8, password, confirmation)) {
- s.message = "Enter matching passwords.";
+ s.message = i18n.tr("Enter matching passwords.");
cc.refresh();
return;
}
startHelper(cc, .{ .op = "create", .username = username, .fullname = full, .password = password, .administrator = s.new_admin }, false) catch {
- s.message = "Could not start the request.";
+ s.message = i18n.tr("Could not start the request.");
cc.refresh();
return;
};
@@ -609,12 +610,12 @@ fn saveFullNameClicked(owner: ?*anyopaque, _: usize) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
const field = cc.users.details_full_name orelse return;
if (field.kind != .text_input or !validation.validFullName(field.kind.text_input.value)) {
- cc.users.message = "Enter a valid full name.";
+ cc.users.message = i18n.tr("Enter a valid full name.");
cc.refresh();
return;
}
startHelper(cc, .{ .op = "set-fullname", .username = targetName(&cc.users), .fullname = field.kind.text_input.value }, false) catch {
- cc.users.message = "Could not start the request.";
+ cc.users.message = i18n.tr("Could not start the request.");
cc.refresh();
};
}
@@ -623,7 +624,7 @@ fn accountTypeChanged(owner: ?*anyopaque, _: usize, index: usize) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
if (index > 1) return;
startHelper(cc, .{ .op = "set-type", .username = targetName(&cc.users), .administrator = index == 1 }, false) catch {
- cc.users.message = "Could not start the request.";
+ cc.users.message = i18n.tr("Could not start the request.");
cc.refresh();
};
}
@@ -631,7 +632,7 @@ fn accountTypeChanged(owner: ?*anyopaque, _: usize, index: usize) void {
fn changePasswordClicked(owner: ?*anyopaque, _: usize) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
openSecrets(&cc.users) catch {
- cc.users.message = "Could not allocate locked password storage.";
+ cc.users.message = i18n.tr("Could not allocate locked password storage.");
cc.refresh();
return;
};
@@ -644,12 +645,12 @@ fn changePasswordSubmit(owner: ?*anyopaque, _: usize) void {
const s = &cc.users;
const password = s.password.value();
if (!validation.validPassword(password) or !std.mem.eql(u8, password, s.confirm_password.value())) {
- s.message = "Enter matching passwords.";
+ s.message = i18n.tr("Enter matching passwords.");
cc.refresh();
return;
}
startHelper(cc, .{ .op = "set-password", .username = targetName(s), .password = password }, false) catch {
- s.message = "Could not start the request.";
+ s.message = i18n.tr("Could not start the request.");
cc.refresh();
return;
};
@@ -675,7 +676,7 @@ fn deleteUser(owner: ?*anyopaque, delete_home: bool) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
const s = &cc.users;
startHelper(cc, .{ .op = "delete", .username = targetName(s), .delete_home = delete_home }, false) catch {
- s.message = "Could not start the request.";
+ s.message = i18n.tr("Could not start the request.");
cc.refresh();
return;
};
@@ -692,7 +693,7 @@ fn lockClicked(owner: ?*anyopaque, _: usize) void {
return;
}
startHelper(cc, .{ .op = "authorize" }, true) catch {
- cc.users.message = "Could not start the authentication request.";
+ cc.users.message = i18n.tr("Could not start the authentication request.");
cc.refresh();
};
}
@@ -705,7 +706,7 @@ fn autologinUserChanged(owner: ?*anyopaque, _: usize, index: usize) void {
const snapshot = model.load(arena.allocator(), cc.server.io) catch return;
if (index == 0) {
startHelper(cc, .{ .op = "set-autologin", .username = "", .session = "" }, false) catch {
- cc.users.message = "Could not start the request.";
+ cc.users.message = i18n.tr("Could not start the request.");
cc.refresh();
};
return;
@@ -722,7 +723,7 @@ fn autologinUserChanged(owner: ?*anyopaque, _: usize, index: usize) void {
break :blk snapshot.sessions[0].id;
};
startHelper(cc, .{ .op = "set-autologin", .username = user.name, .session = session }, false) catch {
- cc.users.message = "Could not start the request.";
+ cc.users.message = i18n.tr("Could not start the request.");
cc.refresh();
};
}
@@ -736,7 +737,7 @@ fn autologinSessionChanged(owner: ?*anyopaque, _: usize, index: usize) void {
const username = snapshot.autologin_user orelse return;
if (index >= snapshot.sessions.len) return;
startHelper(cc, .{ .op = "set-autologin", .username = username, .session = snapshot.sessions[index].id }, false) catch {
- cc.users.message = "Could not start the request.";
+ cc.users.message = i18n.tr("Could not start the request.");
cc.refresh();
};
}
@@ -795,14 +796,14 @@ fn authReady(owner: ?*anyopaque, _: *Child, status: ?u32) void {
cc.users.unlocked = true;
cc.users.message = "";
} else {
- cc.users.message = "Changes saved.";
+ cc.users.message = i18n.tr("Changes saved.");
}
} else {
if (req.is_authorization) {
cc.users.unlocked = false;
- cc.users.message = "Authentication was cancelled or denied.";
+ cc.users.message = i18n.tr("Authentication was cancelled or denied.");
} else {
- cc.users.message = "No changes were made. Authentication was cancelled or the request failed.";
+ cc.users.message = i18n.tr("No changes were made. Authentication was cancelled or the request failed.");
}
}
cc.refresh();
diff --git a/src/control_center/welcome.zig b/src/control_center/welcome.zig
index c7fe843..8b0996f 100644
--- a/src/control_center/welcome.zig
+++ b/src/control_center/welcome.zig
@@ -1,4 +1,5 @@
//! First-session welcome, using the Settings host and shared controls.
+const i18n = @import("i18n");
const std = @import("std");
const wl = @import("wayland").server.wl;
const ui = @import("ui");
@@ -16,7 +17,7 @@ pub const State = struct {
scale: ?f32 = null,
browsers: []const []const u8 = &.{},
terminals: []const []const u8 = &.{},
- message: []const u8 = "You can change these later in Settings.",
+ message: []const u8 = "",
pub fn deinit(s: *State) void {
if (s.idle) |source| source.remove();
@@ -72,8 +73,8 @@ fn choice(cc: *panel.ControlCenter, a: A, tiling: bool) !W {
const selected = (cc.server.config.compositor.desktop_mode == .workspaces) == tiling;
var result = try group(a, .column, &.{
.{ .kind = .container, .height = .{ .fixed = if (compact(cc)) 76 else 126 }, .underlay = .{ .owner = cc, .paint = if (tiling) paintTiles else paintStack } },
- text(if (tiling) "Tiling" else "Classic (stacking)", 18, false),
- text(if (tiling) "Arrange windows automatically." else "Move, resize and overlap windows.", 13, true),
+ text(if (tiling) i18n.tr("Tiling") else i18n.tr("Classic (stacking)"), 18, false),
+ text(if (tiling) i18n.tr("Arrange windows automatically.") else i18n.tr("Move, resize and overlap windows."), 13, true),
});
result.name = if (tiling) "welcome_tiling" else "welcome_classic";
result.kind = .{ .row = .{
@@ -101,13 +102,13 @@ fn tree(cc: *panel.ControlCenter, a: A) !W {
if (@import("../icon_cache.zig").get(cc.server.icon_theme_cfg, cc.server.io, "builtin:redi-logo", @intFromFloat(@ceil(52 * cc.toplevel.render_scale)))) |entry| {
logo.kind = .{ .image = .{ .pixels = entry.pixels, .width = entry.size, .height = entry.size, .fallback_icon = null } };
}
- var heading = try group(a, .row, &.{ logo, try group(a, .column, &.{ text("Welcome to RediWM", if (narrow) 24 else if (small) 26 else 30, false), text("Choose how your desktop works.", 14, true) }) });
+ var heading = try group(a, .row, &.{ logo, try group(a, .column, &.{ text(i18n.tr("Welcome to RediWM"), if (narrow) 24 else if (small) 26 else 30, false), text(i18n.tr("Choose how your desktop works."), 14, true) }) });
heading.@"align" = .center;
heading.gap = 20;
heading.children[1].gap = if (small) 4 else 12;
var apps = try group(a, if (narrow) .column else .row, &.{ try appSelect(cc, a, true), try appSelect(cc, a, false) });
apps.gap = 20;
- const scale_labels = &.{ "System default", "100%", "125%", "150%", "175%", "200%", "250%", "300%" };
+ const scale_labels = panel.translatedLabels(&.{ i18n.msg("System default"), i18n.msg("100%"), i18n.msg("125%"), i18n.msg("150%"), i18n.msg("175%"), i18n.msg("200%"), i18n.msg("250%"), i18n.msg("300%") });
var scale_index: ?usize = 0;
for (cc.server.config.outputs) |config| {
if (!std.mem.eql(u8, config.name, std.mem.span(cc.wlr_output.name))) continue;
@@ -120,26 +121,26 @@ fn tree(cc: *panel.ControlCenter, a: A) !W {
}
}
var scale = try group(a, .column, &.{
- text("Interface scale", 13, true),
- .{ .name = "welcome_scale", .kind = .{ .select = .{ .labels = scale_labels, .selected = scale_index, .placeholder = "Custom", .disabled = cc.server.scale_override != null, .owner = cc, .on_change = scaleChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 38 } },
+ text(i18n.tr("Interface scale"), 13, true),
+ .{ .name = "welcome_scale", .kind = .{ .select = .{ .labels = scale_labels, .selected = scale_index, .placeholder = i18n.tr("Custom"), .disabled = cc.server.scale_override != null, .owner = cc, .on_change = scaleChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 38 } },
});
scale.gap = if (small) 6 else 12;
scale.width = .{ .percent = if (narrow) 1 else 0.48 };
var footer = try group(a, if (narrow) .column else .row, &.{
- .{ .name = "welcome_settings", .kind = .{ .button = .{ .label = "More settings", .leading_icon = .settings, .variant = .ghost, .owner = cc, .id = 1, .on_click = finishClicked } }, .width = .{ .fixed = 170 }, .height = .{ .fixed = 42 } },
- .{ .name = "welcome_start", .kind = .{ .button = .{ .label = "Start using RediWM", .variant = .primary, .owner = cc, .on_click = finishClicked } }, .width = .{ .fixed = 218 }, .height = .{ .fixed = 42 } },
+ .{ .name = "welcome_settings", .kind = .{ .button = .{ .label = i18n.tr("More settings"), .leading_icon = .settings, .variant = .ghost, .owner = cc, .id = 1, .on_click = finishClicked } }, .width = .{ .fixed = 170 }, .height = .{ .fixed = 42 } },
+ .{ .name = "welcome_start", .kind = .{ .button = .{ .label = i18n.tr("Start using RediWM"), .variant = .primary, .owner = cc, .on_click = finishClicked } }, .width = .{ .fixed = 218 }, .height = .{ .fixed = 42 } },
});
footer.justify = .space_between;
- cc.welcome.footer = try group(a, .column, &.{ text(cc.welcome.message, 13, true), footer });
+ cc.welcome.footer = try group(a, .column, &.{ text(if (cc.welcome.message.len > 0) cc.welcome.message else i18n.tr("You can change these later in Settings."), 13, true), footer });
cc.welcome.footer.width = .{ .percent = 1 };
cc.welcome.footer.gap = if (small) 8 else 12;
cc.welcome.footer.padding = .{ .left = if (small) 20 else 28, .right = if (small) 20 else 28, .top = 8, .bottom = if (small) 16 else 24 };
var root = try group(a, .column, &.{
heading,
- text("Choose your window layout", 18, false),
+ text(i18n.tr("Choose your window layout"), 18, false),
try group(a, if (narrow) .column else .row, &.{ try choice(cc, a, false), try choice(cc, a, true) }),
.{ .kind = .{ .rect = .{ .color = panel.palette().border_soft } }, .height = .{ .fixed = 1 } },
- text("Default apps", 18, false),
+ text(i18n.tr("Default apps"), 18, false),
apps,
scale,
.{ .kind = .{ .rect = .{ .color = panel.palette().border_soft } }, .height = .{ .fixed = 1 } },
@@ -166,7 +167,7 @@ fn appSelect(cc: *panel.ControlCenter, a: A, browser: bool) !W {
var values: std.ArrayList([]const u8) = .empty;
// Keep the inherited browser as an explicit choice: selecting a browser
// really changes the system's HTTP/HTTPS associations.
- try labels.append(a, if (current_app) |app| try a.dupe(u8, std.mem.span(g_app_info_get_display_name(app))) else "System default");
+ try labels.append(a, if (current_app) |app| try a.dupe(u8, std.mem.span(g_app_info_get_display_name(app))) else i18n.tr("System default"));
try values.append(a, try a.dupe(u8, if (browser) selected else ""));
var selected_index: usize = 0;
for (snapshot.entries) |entry| {
@@ -182,13 +183,13 @@ fn appSelect(cc: *panel.ControlCenter, a: A, browser: bool) !W {
if (std.mem.eql(u8, entry.id, selected)) selected_index = values.items.len - 1;
}
if (!browser and selected.len > 0 and selected_index == 0) {
- try labels.append(a, try std.fmt.allocPrint(a, "Unavailable: {s}", .{selected}));
+ try labels.append(a, try i18n.allocPrint(a, i18n.tr("Unavailable: {name}"), .{ .name = selected }));
try values.append(a, try a.dupe(u8, selected));
selected_index = values.items.len - 1;
}
if (browser) cc.welcome.browsers = values.items else cc.welcome.terminals = values.items;
var field = try group(a, .column, &.{
- text(if (browser) "Browser" else "Terminal", 13, true),
+ text(if (browser) i18n.tr("Browser") else i18n.tr("Terminal"), 13, true),
.{ .name = if (browser) "welcome_browser" else "welcome_terminal", .kind = .{ .select = .{ .labels = labels.items, .selected = selected_index, .owner = cc, .id = @intFromBool(browser), .on_change = appChanged } }, .width = .{ .percent = 1 }, .height = .{ .fixed = 38 } },
});
field.gap = if (compact(cc)) 6 else 12;
@@ -198,11 +199,11 @@ fn appChanged(owner: ?*anyopaque, id: usize, index: usize) void {
const cc: *panel.ControlCenter = @ptrCast(@alignCast(owner orelse return));
saveApp(cc, id == 1, index) catch |err| {
std.log.warn("could not save welcome application: {}", .{err});
- cc.welcome.message = "Could not save the default app. Please try again.";
+ cc.welcome.message = i18n.tr("Could not save the default app. Please try again.");
cc.refresh();
return;
};
- cc.welcome.message = "Saved. You can change these later in Settings.";
+ cc.welcome.message = i18n.tr("Saved. You can change these later in Settings.");
cc.refresh();
}
fn saveApp(cc: *panel.ControlCenter, browser: bool, index: usize) !void {
@@ -247,7 +248,7 @@ fn finishClicked(owner: ?*anyopaque, id: usize) void {
fn schedule(cc: *panel.ControlCenter) void {
if (cc.welcome.idle != null) return;
cc.welcome.idle = cc.server.wl_server.getEventLoop().addIdle(*panel.ControlCenter, apply, cc) catch {
- cc.welcome.message = "Could not apply this choice. Please try again.";
+ cc.welcome.message = i18n.tr("Could not apply this choice. Please try again.");
cc.refresh();
return;
};
@@ -267,13 +268,13 @@ fn apply(cc: *panel.ControlCenter) void {
},
.classic, .tiling => @import("../config_runtime/workspace_controls.zig").mode(cc.server, if (cc.welcome.action == .tiling) .workspaces else .canvas, true) catch |err| {
std.log.warn("could not save welcome layout: {}", .{err});
- cc.welcome.message = "Could not save your layout. Please try again.";
+ cc.welcome.message = i18n.tr("Could not save your layout. Please try again.");
},
.scale => {
const output = @import("../Output.zig").fromWlr(cc.wlr_output) orelse return;
output.applyAndPersist(.{ .scale = cc.welcome.scale, .auto_scale = cc.welcome.scale == null }) catch |err| {
std.log.warn("could not save welcome scale: {}", .{err});
- cc.welcome.message = "Could not apply or save the display scale.";
+ cc.welcome.message = i18n.tr("Could not apply or save the display scale.");
};
},
}
diff --git a/src/cursor_theme.zig b/src/cursor_theme.zig
index 46f51cf..aa8302b 100644
--- a/src/cursor_theme.zig
+++ b/src/cursor_theme.zig
@@ -5,6 +5,7 @@
//! path. `init` prepends it to XCURSOR_PATH for this process (wlroots' and
//! Xwayland's loaders) and remembers the value for children.
const std = @import("std");
+const i18n = @import("i18n");
/// The config value that follows the system cursor theme.
pub const system_theme = "default";
@@ -70,7 +71,7 @@ pub const Theme = struct {
/// wins for a duplicate name, as for the loaders. Allocated in `arena`.
pub fn list(arena: std.mem.Allocator, io: std.Io) ![]Theme {
var themes: std.ArrayList(Theme) = .empty;
- try themes.append(arena, .{ .id = system_theme, .label = "System default" });
+ try themes.append(arena, .{ .id = system_theme, .label = i18n.tr("System default") });
const path = if (std.c.getenv("XCURSOR_PATH")) |p| std.mem.span(p) else default_path;
const home = if (std.c.getenv("HOME")) |h| std.mem.span(h) else "";
var dirs = std.mem.splitScalar(u8, path, ':');
diff --git a/src/delete_dialog.zig b/src/delete_dialog.zig
index 3d72c16..5d77c4f 100644
--- a/src/delete_dialog.zig
+++ b/src/delete_dialog.zig
@@ -1,4 +1,5 @@
//! Shared modal for Files and desktop. Own the targets until confirmation.
+const i18n = @import("i18n");
const std = @import("std");
const c = @import("files/c.zig").api;
const icons = @import("icon_cache.zig");
@@ -113,9 +114,9 @@ pub const State = struct {
t.button_font_size = shell_ui.textSize();
r.palette = t;
dialog.paintWindowFrame(r, layer.local(), background);
- dialog.paintWindowTitle(r, layer.local(), if (self.empty_trash) "Empty Trash?" else if (self.paths.items.len > 1) "Delete items?" else if (self.folder) "Delete folder?" else "Delete file?", .trash, null);
+ dialog.paintWindowTitle(r, layer.local(), if (self.empty_trash) i18n.tr("Empty Trash?") else if (self.paths.items.len > 1) i18n.tr("Delete items?") else if (self.folder) i18n.tr("Delete folder?") else i18n.tr("Delete file?"), .trash, null);
const hover = g.target(mx, my);
- button.paint(r, g.close, .{ .variant = .chrome, .icon = .close, .label = "Close" }, .{ .pointer = if (hover == .close) .hover else .idle });
+ button.paint(r, g.close, .{ .variant = .chrome, .icon = .close, .label = i18n.tr("Close") }, .{ .pointer = if (hover == .close) .hover else .idle });
// The body is the app surface: it takes the app's foreground, not the dark chrome's.
const app = theme.global.forApp();
t.fg = app.window_fg;
@@ -125,7 +126,7 @@ pub const State = struct {
t.surface_hover = app.surface_hover;
r.palette = t;
r.drawText(16, g.header + 16, g.width - 32, 24, .{
- .content = if (self.permanent) "This cannot be undone." else if (self.paths.items.len == 1) "You can restore it later from Trash." else "You can restore them later from Trash.",
+ .content = if (self.permanent) i18n.tr("This cannot be undone.") else if (self.paths.items.len == 1) i18n.tr("You can restore it later from Trash.") else i18n.tr("You can restore them later from Trash."),
.font_size = shell_ui.textSize(),
.color = t.fg,
});
@@ -138,15 +139,17 @@ pub const State = struct {
r.drawImageCover(28, icon_y, icon_size, icon_size, 0, .{ .pixels = im.pixels, .width = @intCast(im.size), .height = @intCast(im.size) });
} else r.drawIcon(28, icon_y, icon_size, icon_size, .{ .id = if (self.empty_trash) .trash else if (self.folder) .folder else .document, .color = t.fg });
var buf: [256]u8 = undefined;
- const name = if (self.empty_trash) "All items in Trash" else if (self.paths.items.len == 1) self.name else std.fmt.bufPrint(&buf, "{d} selected items", .{self.paths.items.len}) catch "Selected items";
+ const name = if (self.empty_trash) i18n.tr("All items in Trash") else if (self.paths.items.len == 1) self.name else i18n.fmt(&buf, i18n.trn("{count} selected item", "{count} selected items", self.paths.items.len), .{ .count = self.paths.items.len }) catch i18n.tr("Selected items");
r.drawText(76, inset_y + @max(0, (inset_h - 48) / 2), g.width - 108, @min(24, inset_h), .{ .content = name, .font_size = shell_ui.textSize(), .weight = 600, .color = t.fg });
var detail_buf: [128]u8 = undefined;
- const detail = if (self.empty_trash) "Permanently delete all trashed files and folders" else if (self.paths.items.len > 1) "Files and folders in this selection" else if (self.folder) "Folder · includes its contents" else std.fmt.bufPrint(&detail_buf, "{s} · {d:.1} {s}", .{ if (std.ascii.eqlIgnoreCase(std.fs.path.extension(self.name), ".pdf")) "PDF document" else "File", @as(f64, @floatFromInt(@max(0, self.bytes))) / (if (self.bytes >= 1048576) @as(f64, 1048576) else if (self.bytes >= 1024) @as(f64, 1024) else 1), if (self.bytes >= 1048576) "MB" else if (self.bytes >= 1024) "KB" else "bytes" }) catch "File";
+ var size_buffer: [48]u8 = undefined;
+ const size = std.fmt.bufPrint(&size_buffer, "{d:.1}", .{@as(f64, @floatFromInt(@max(0, self.bytes))) / (if (self.bytes >= 1048576) @as(f64, 1048576) else if (self.bytes >= 1024) @as(f64, 1024) else 1)}) catch "";
+ const detail = if (self.empty_trash) i18n.tr("Permanently delete all trashed files and folders") else if (self.paths.items.len > 1) i18n.tr("Files and folders in this selection") else if (self.folder) i18n.tr("Folder · includes its contents") else i18n.fmt(&detail_buf, i18n.tr("{kind} · {size} {unit}"), .{ .kind = if (std.ascii.eqlIgnoreCase(std.fs.path.extension(self.name), ".pdf")) i18n.tr("PDF document") else i18n.tr("File"), .size = size, .unit = if (self.bytes >= 1048576) "MB" else if (self.bytes >= 1024) "KB" else i18n.tr("bytes") }) catch i18n.tr("File");
if (inset_h >= 48) r.drawText(76, inset_y + (inset_h - 48) / 2 + 28, g.width - 108, 20, .{ .content = detail, .font_size = shell_ui.textSize(), .color = t.fg });
const focus = if (self.keyboard_focus) self.focus else null;
- if (!self.empty_trash) checkbox.paint(r, g.toggle, "Delete permanently", .{ .checked = self.permanent, .focused = focus == .toggle });
- button.paint(r, g.cancel, .{ .size = .sm, .label = "Cancel" }, .{ .focused = focus == .cancel, .pointer = if (hover == .cancel) .hover else .idle });
- button.paint(r, g.confirm, .{ .variant = .primary, .size = .sm, .leading_icon = .trash, .label = if (self.empty_trash) "Empty Trash" else if (self.permanent) "Delete permanently" else "Move to Trash" }, .{ .focused = focus == .confirm, .pointer = if (hover == .confirm) .hover else .idle });
+ if (!self.empty_trash) checkbox.paint(r, g.toggle, i18n.tr("Delete permanently"), .{ .checked = self.permanent, .focused = focus == .toggle });
+ button.paint(r, g.cancel, .{ .size = .sm, .label = i18n.tr("Cancel") }, .{ .focused = focus == .cancel, .pointer = if (hover == .cancel) .hover else .idle });
+ button.paint(r, g.confirm, .{ .variant = .primary, .size = .sm, .leading_icon = .trash, .label = if (self.empty_trash) i18n.tr("Empty Trash") else if (self.permanent) i18n.tr("Delete permanently") else i18n.tr("Move to Trash") }, .{ .focused = focus == .confirm, .pointer = if (hover == .confirm) .hover else .idle });
}
};
@@ -164,9 +167,30 @@ pub const Geometry = struct {
pub fn init(w: i32, h: i32) Geometry {
const width = @min(480, @as(f32, @floatFromInt(w)) - 24);
const header: f32 = @floatFromInt((chrome.Metrics{}).titlebarHeight());
- const stacked = width < 440;
- const height = @min(header + @as(f32, if (stacked) 264 else 222), @as(f32, @floatFromInt(h)) - 16);
+ var palette = theme.shellPalette();
+ palette.font_size = shell_ui.textSize();
+ palette.button_font_size = shell_ui.textSize();
+ const text = @import("ui").text;
+ const permanent_width = text.measureWidthF(i18n.tr("Delete permanently"), .manrope, palette.font_size, 1) catch 146;
+ const toggle_width = checkbox.box_size + checkbox.gap + permanent_width + 4;
+ const cancel_label_width = text.measureWidthF(i18n.tr("Cancel"), .manrope_bold, palette.button_font_size, 1) catch 58;
+ const cancel_width = @max(80, button.naturalSize(.{ .size = .sm }, palette, cancel_label_width).w + 4);
+ var confirm_width: f32 = 164;
+ for ([_][]const u8{ i18n.tr("Empty Trash"), i18n.tr("Delete permanently"), i18n.tr("Move to Trash") }) |label| {
+ const label_width = text.measureWidthF(label, .manrope_bold, palette.button_font_size, 1) catch 120;
+ confirm_width = @max(confirm_width, button.naturalSize(.{ .size = .sm, .leading_icon = .trash }, palette, label_width).w + 4);
+ }
+ const available = @max(1, width - 32);
+ // Keep the checkbox label whole. Expanded translations get their own
+ // row; every pointer target uses this same measured geometry.
+ const stacked = width < 440 or toggle_width + cancel_width + confirm_width + 16 > available;
+ const stacked_buttons = cancel_width + confirm_width + 8 > available;
+ const height = @min(header + 222 + @as(f32, if (stacked) 42 else 0) + @as(f32, if (stacked_buttons) 42 else 0), @as(f32, @floatFromInt(h)) - 16);
const footer = height - 58;
+ const confirm_w = @min(available, confirm_width);
+ const cancel_w = @min(available, cancel_width);
+ const cancel_x = if (stacked_buttons) width - 16 - cancel_w else width - 16 - confirm_w - 8 - cancel_w;
+ const cancel_y = footer - @as(f32, if (stacked_buttons) 42 else 0);
return .{
.x = (@as(f64, @floatFromInt(w)) - width) / 2,
.y = (@as(f64, @floatFromInt(h)) - height) / 2,
@@ -174,9 +198,9 @@ pub const Geometry = struct {
.height = height,
.header = header,
.close = dialog.closeBox(width),
- .toggle = .{ .x = 16, .y = footer - @as(f32, if (stacked) 42 else 0), .w = if (stacked) width - 32 else 174, .h = 34 },
- .cancel = .{ .x = width - 268, .y = footer, .w = 80, .h = 34 },
- .confirm = .{ .x = width - 180, .y = footer, .w = 164, .h = 34 },
+ .toggle = .{ .x = 16, .y = cancel_y - @as(f32, if (stacked) 42 else 0), .w = if (stacked) available else @max(toggle_width, cancel_x - 24), .h = 34 },
+ .cancel = .{ .x = cancel_x, .y = cancel_y, .w = cancel_w, .h = 34 },
+ .confirm = .{ .x = width - 16 - confirm_w, .y = footer, .w = confirm_w, .h = 34 },
};
}
diff --git a/src/desktop/app.zig b/src/desktop/app.zig
index 756ddb0..073fb64 100644
--- a/src/desktop/app.zig
+++ b/src/desktop/app.zig
@@ -84,6 +84,7 @@ pub const App = struct {
catalog: []const @import("dotdesktop.zig").parser.AppEntry = &.{},
applications: ?@import("../files/open_with.zig").State = null,
picker_theme: @import("../icon_theme.zig").Config = .{ .theme_name = "", .base_dirs = &.{} },
+ menu_labels: [8][]const u8 = undefined,
choice: usize = 0,
last_tick: i64 = 0,
last_tick_active: bool = false,
diff --git a/src/desktop/app_actions.zig b/src/desktop/app_actions.zig
index a68b5e5..2aeb482 100644
--- a/src/desktop/app_actions.zig
+++ b/src/desktop/app_actions.zig
@@ -1,6 +1,7 @@
//! Desktop actions: clipboard, context menus, renaming and deleting.
const std = @import("std");
+const i18n = @import("i18n");
const App = @import("app.zig").App;
const grid = @import("grid.zig");
const watcher = @import("watcher.zig");
@@ -36,14 +37,16 @@ pub fn menuBuiltin(self: *const App) watcher.Builtin {
}
pub fn menuLabels(self: *App) []const []const u8 {
- switch (self.menuBuiltin()) {
- .home => return &.{"Open"},
- .trash => return &.{ "Open", "Empty Trash…" },
- .none => {},
- }
- const icon_labels = [_][]const u8{ "Open", "Open With…", "Cut", "Copy", "Rename", "Move to Trash", "Properties", "Allow Launching" };
- if (self.menu_icon) |index| return if (self.untrustedLauncher(index)) &icon_labels else icon_labels[0 .. icon_labels.len - 1];
- return &.{ "New Folder", "New File", "Add Application…", "Paste", "Refresh", "Change Wallpaper", "Desktop Settings" };
+ const icon_labels = [_]i18n.Message{ i18n.msg("Open"), i18n.msg("Open With…"), i18n.msg("Cut"), i18n.msg("Copy"), i18n.msg("Rename"), i18n.msg("Move to Trash"), i18n.msg("Properties"), i18n.msg("Allow Launching") };
+ const desktop_labels = [_]i18n.Message{ i18n.msg("New Folder"), i18n.msg("New File"), i18n.msg("Add Application…"), i18n.msg("Paste"), i18n.msg("Refresh"), i18n.msg("Change Wallpaper"), i18n.msg("Desktop Settings") };
+ const trash_labels = [_]i18n.Message{ i18n.msg("Open"), i18n.msg("Empty Trash…") };
+ const messages: []const i18n.Message = switch (self.menuBuiltin()) {
+ .home => icon_labels[0..1],
+ .trash => &trash_labels,
+ .none => if (self.menu_icon) |index| (if (self.untrustedLauncher(index)) &icon_labels else icon_labels[0 .. icon_labels.len - 1]) else &desktop_labels,
+ };
+ for (messages, 0..) |message, i| self.menu_labels[i] = message.get();
+ return self.menu_labels[0..messages.len];
}
pub fn menuIcon(self: *App, row: usize) @import("ui").layout.IconId {
@@ -101,11 +104,17 @@ pub fn menuAction(self: *App, row: usize) void {
4 => self.worker.requestRefresh(),
5 => self.host.openAppearance() catch |err| switch (err) {
error.Unsupported => self.worker.enqueue(.{ .kind = .settings, .path = "" }),
- else => self.notify("Could not open Appearance: {s}", .{@errorName(err)}),
+ else => {
+ var message: [512]u8 = undefined;
+ self.notify("{s}", .{i18n.fmt(&message, i18n.tr("Could not open Appearance: {error}"), .{ .@"error" = @errorName(err) }) catch return});
+ },
},
6 => self.host.openDesktopSettings() catch |err| switch (err) {
error.Unsupported => self.worker.enqueue(.{ .kind = .settings, .path = "" }),
- else => self.notify("Could not open Desktop Settings: {s}", .{@errorName(err)}),
+ else => {
+ var message: [512]u8 = undefined;
+ self.notify("{s}", .{i18n.fmt(&message, i18n.tr("Could not open Desktop Settings: {error}"), .{ .@"error" = @errorName(err) }) catch return});
+ },
},
else => {},
}
@@ -134,7 +143,7 @@ pub fn beginEdit(self: *App, kind: @FieldType(App, "edit")) void {
self.closePicker();
self.edit = kind;
if (kind == .folder) {
- const path = std.fmt.allocPrint(a, "{s}/New Folder", .{self.worker.dir}) catch {
+ const path = std.fmt.allocPrint(a, "{s}/{s}", .{ self.worker.dir, i18n.tr("New Folder") }) catch {
self.edit = .none;
return;
};
@@ -175,7 +184,7 @@ pub fn beginEdit(self: *App, kind: @FieldType(App, "edit")) void {
};
self.edit = .none;
}
- if (kind == .file) self.edit_text.appendSlice(a, "New File") catch {};
+ if (kind == .file) self.edit_text.appendSlice(a, i18n.tr("New File")) catch {};
}
pub fn deleteAction(self: *App, action: deletion.Action) void {
diff --git a/src/desktop/app_paint.zig b/src/desktop/app_paint.zig
index d41650c..1e0bc04 100644
--- a/src/desktop/app_paint.zig
+++ b/src/desktop/app_paint.zig
@@ -1,5 +1,6 @@
//! Desktop painting: icons, selection band, prompts and overlays.
+const i18n = @import("i18n");
const std = @import("std");
const App = @import("app.zig").App;
const appearance_theme = @import("ui").theme;
@@ -229,7 +230,7 @@ pub fn paintOverlay(self: *App, cr: *c.cairo_t, now: i64) void {
rounded(cr, px, py, 480, 360, 10);
shell_cairo.setSource(cr, appearance_theme.global.desktop_dialog_bg);
c.cairo_fill(cr);
- label(cr, if (self.edit_text.items.len == 0) "Type to search applications — Enter chooses" else self.edit_text.items, px + 12, py + 12, 456, 40, false);
+ label(cr, if (self.edit_text.items.len == 0) i18n.tr("Type to search applications — Enter chooses") else self.edit_text.items, px + 12, py + 12, 456, 40, false);
var row: usize = 0;
while (row < 8) : (row += 1) {
const index = (self.choice / 8) * 8 + row;
@@ -254,9 +255,9 @@ pub fn paintOverlay(self: *App, cr: *c.cairo_t, now: i64) void {
shell_cairo.setSource(cr, appearance_theme.global.desktop_dialog_bg);
c.cairo_fill(cr);
const title: []const u8 = switch (self.edit) {
- .properties => "Properties — Escape closes",
- .rename => "Rename — Enter saves, Escape cancels",
- .file => "New File — Enter creates",
+ .properties => i18n.tr("Properties — Escape closes"),
+ .rename => i18n.tr("Rename — Enter saves, Escape cancels"),
+ .file => i18n.tr("New File — Enter creates"),
else => "",
};
label(cr, title, x + 12, y + 12, 396, 32, false);
@@ -266,7 +267,7 @@ pub fn paintOverlay(self: *App, cr: *c.cairo_t, now: i64) void {
if (self.edit == .properties) for (self.icons.items) |ic| {
if (ic.selected) {
property_path = ic.item.path;
- details = std.fmt.bufPrint(&details_buf, "{s} · {d} bytes", .{ if (ic.item.folder) "Folder" else "File", ic.item.bytes }) catch "";
+ details = i18n.fmt(&details_buf, i18n.tr("{kind} · {bytes} bytes"), .{ .kind = if (ic.item.folder) i18n.tr("Folder") else i18n.tr("File"), .bytes = ic.item.bytes }) catch "";
break;
}
};
diff --git a/src/desktop/rename.zig b/src/desktop/rename.zig
index 0d0ed39..f912b5a 100644
--- a/src/desktop/rename.zig
+++ b/src/desktop/rename.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const c = @import("c.zig").api;
const grid = @import("grid.zig");
@@ -93,7 +94,7 @@ pub const Editor = struct {
.variant = .ghost,
.icon = if (i == 0) .checkmark else .close,
.icon_scale = 0.55,
- .label = if (i == 0) "Rename" else "Cancel",
+ .label = if (i == 0) i18n.tr("Rename") else i18n.tr("Cancel"),
}, .{ .pointer = if (b.contains(mx, my)) .hover else .idle });
layer.finish();
}
diff --git a/src/desktop/watcher.zig b/src/desktop/watcher.zig
index a00020f..21ed398 100644
--- a/src/desktop/watcher.zig
+++ b/src/desktop/watcher.zig
@@ -1,4 +1,5 @@
//! Filesystem worker. Only immutable snapshots cross into the Wayland thread.
+const i18n = @import("i18n");
const std = @import("std");
const c = @import("c.zig").api;
const icons = @import("../icon_cache.zig");
@@ -222,7 +223,7 @@ pub const Worker = struct {
fn reportError(self: *Worker, operation: []const u8, err: anyerror) void {
_ = c.pthread_mutex_lock(&self.mutex);
defer _ = c.pthread_mutex_unlock(&self.mutex);
- const message = std.fmt.bufPrint(&self.error_message, "Could not {s}: {s}", .{ operation, @errorName(err) }) catch "File operation failed";
+ const message = i18n.fmt(&self.error_message, i18n.tr("Could not {operation}: {error}"), .{ .operation = operation, .@"error" = @errorName(err) }) catch i18n.tr("File operation failed");
self.error_len = message.len;
if (message.ptr != &self.error_message) @memcpy(self.error_message[0..message.len], message);
signal(self.wake_main);
@@ -288,8 +289,8 @@ pub const Worker = struct {
std.Io.Dir.cwd().createDirPath(self.io, trash_files) catch {};
const size = self.icon_size.load(.acquire);
const entries = [_]struct { kind: Builtin, name: []const u8, path: []const u8, glyph: @import("ui").layout.IconId }{
- .{ .kind = .home, .name = "Home", .path = home, .glyph = .home },
- .{ .kind = .trash, .name = "Trash", .path = trash_files, .glyph = .trash_can },
+ .{ .kind = .home, .name = i18n.tr("Home"), .path = home, .glyph = .home },
+ .{ .kind = .trash, .name = i18n.tr("Trash"), .path = trash_files, .glyph = .trash_can },
};
for (entries) |e| try list.append(mem, .{ .path = try mem.dupe(u8, e.path), .name = e.name, .icon = icons.get(self.theme_cfg, self.io, if (e.kind == .home) "user-home" else "user-trash", size) orelse builtinIcon(e.glyph, size, self.theme_cfg.generation), .folder = true, .cell = config.lookup(mem, saved, e.path), .builtin = e.kind });
}
diff --git a/src/editor/app.zig b/src/editor/app.zig
index e1393e6..3733432 100644
--- a/src/editor/app.zig
+++ b/src/editor/app.zig
@@ -1,4 +1,6 @@
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const c = @import("../files/c.zig").api;
const ui = @import("ui").cairo;
const theme = @import("ui").theme;
@@ -8,6 +10,8 @@ const field = @import("ui").widgets.field;
const dialog = @import("ui").widgets.dialog;
const menu = @import("ui").context_menu;
const p = @import("pango.zig");
+const caret_mod = @import("caret.zig");
+const input = @import("ui").input;
const Document = @import("document.zig").Document;
const view = @import("view.zig");
const lines = @import("lines.zig");
@@ -25,7 +29,7 @@ const Status = struct {
/// Stand-in for the position of a cursor too far from the view to measure.
const far: c_int = 1_000_000 * 1024;
const Action = enum { new, open, save, save_as, find, wrap };
-const labels = [_][]const u8{ "New", "Open", "Save", "Save As", "Find", "Word Wrap" };
+const labels = [_]i18n.Message{ i18n.msg("New"), i18n.msg("Open"), i18n.msg("Save"), i18n.msg("Save As"), i18n.msg("Find"), i18n.msg("Word Wrap") };
const Tab = struct {
id: usize,
doc: Document = .{},
@@ -43,7 +47,7 @@ const Tab = struct {
a.destroy(t);
}
fn name(t: *Tab) []const u8 {
- return if (t.path) |path| std.fs.path.basename(path) else "Untitled";
+ return if (t.path) |path| std.fs.path.basename(path) else tr("Untitled");
}
};
pub const App = struct {
@@ -61,7 +65,9 @@ pub const App = struct {
shift: bool = false,
alt: bool = false,
focused: bool = false,
- caret_visible: bool = true,
+ caret: caret_mod.Caret = .{},
+ caret_painted: caret_mod.Rect = .{},
+ caret_snap: bool = true,
caret_dirty: bool = false,
caret_activity: usize = 0,
menu_open: bool = false,
@@ -69,6 +75,8 @@ pub const App = struct {
menu_anchor: f64 = 0,
has_titlebar: bool = true,
dragging: bool = false,
+ drag_word: ?[2]usize = null,
+ last_text_click: ?struct { time: i64, x: f64, y: f64, tab: usize } = null,
scroll_drag: scrollbar.Drag = .{},
bar_appearance: scrollbar.Appearance = .{},
/// The scroll position and tab the scrollbar last saw: only a scroll within
@@ -143,9 +151,9 @@ pub const App = struct {
self.dirty = true;
if (self.tabs.items.len == 0) return;
const t = self.current();
- const name = if (std.unicode.utf8ValidateSlice(t.name())) t.name() else "Text file";
+ const name = if (std.unicode.utf8ValidateSlice(t.name())) t.name() else tr("Text file");
var title: [1024:0]u8 = undefined;
- const value = std.fmt.bufPrintZ(&title, "{s}{s} — Text Editor ({d}/{d})", .{ if (t.doc.modified()) "* " else "", name, self.selected + 1, self.tabs.items.len }) catch "Text Editor";
+ const value = i18n.fmtZ(&title, tr("{modified}{name} — Text Editor ({tab}/{tabs})"), .{ .modified = if (t.doc.modified()) "* " else "", .name = name, .tab = self.selected + 1, .tabs = self.tabs.items.len }) catch "";
// Resizing and moving the caret do not change the window title. Avoid
// sending a redundant set_title alongside every resize buffer commit.
if (!std.mem.eql(u8, std.mem.span(self.getTitle()), value)) {
@@ -166,6 +174,12 @@ pub const App = struct {
find: bool,
query_hash: u64,
activity: usize,
+ top: usize,
+ dy: f64,
+ scroll_x: f64,
+ width: i32,
+ height: i32,
+ scale: i32,
};
pub fn caretState(self: *App) CaretState {
const d = self.document();
@@ -179,17 +193,49 @@ pub const App = struct {
.anchor = if (self.find_open) self.query.anchor else d.anchor,
.find = self.find_open,
.activity = self.caret_activity,
+ .top = d.top,
+ .dy = self.current().dy,
+ .scroll_x = self.current().scroll_x,
+ .width = self.w,
+ .height = self.h,
+ .scale = self.scale,
.query_hash = if (self.find_open) std.hash.Wyhash.hash(0, self.query.text.items) else 0,
};
}
+ pub fn stepCaret(self: *App, now: i64, active: bool, restart: bool, snap: bool) void {
+ const r = self.caretRect();
+ var target: caret_mod.Rect = .{
+ .x = @floatCast(@as(f64, @floatFromInt(r.x)) / 1024 + 16 - self.current().scroll_x),
+ .y = @floatCast(@as(f64, @floatFromInt(r.y)) / 1024 + self.viewTop()),
+ .h = @as(f32, @floatFromInt(r.height)) / 1024,
+ };
+ if (self.find_open) {
+ if (self.layouts.cr) |cr| target = .{
+ .x = @floatCast(22 + ui.measureText(cr, self.query.text.items[0..@min(self.query.cursor, self.query.text.items.len)], ui.textSize(), false)),
+ .y = 48,
+ .w = 1,
+ .h = 18,
+ };
+ }
+ if (self.caret.update(now, active, restart, target, snap or self.caret_snap)) self.caret_dirty = true;
+ self.caret_snap = false;
+ }
pub fn caretDamage(self: *App) p.Rectangle {
- if (self.find_open) return .{ .x = 12, .y = 43, .width = self.w - 24, .height = 30 };
- var r = self.inputRectangle();
- r.x -= 1;
- r.y -= 1;
- r.width += 3;
- r.height += 2;
- return r;
+ const before = self.caret_painted;
+ const after = self.caret.box;
+ const x: i32 = @intFromFloat(@floor(@min(before.x, after.x)) - 1);
+ const y: i32 = @intFromFloat(@floor(@min(before.y, after.y)) - 1);
+ return .{
+ .x = x,
+ .y = y,
+ .width = @as(i32, @intFromFloat(@ceil(@max(before.x + before.w, after.x + after.w)) + 1)) - x,
+ .height = @as(i32, @intFromFloat(@ceil(@max(before.y + before.h, after.y + after.h)) + 1)) - y,
+ };
+ }
+ fn paintCaret(self: *App, cr: *c.cairo_t) void {
+ if (!self.caret.visible) return;
+ const r = self.caret.box;
+ fill(cr, r.x, r.y, r.w, r.h, theme.global.window_fg);
}
pub fn getTitle(self: *App) [*:0]const u8 {
return &self.title;
@@ -201,14 +247,14 @@ pub const App = struct {
}
fn failure(self: *App, err: anyerror) void {
self.message(switch (err) {
- error.FileChanged => "File changed on disk. Use Save As to keep your edits in another file.",
- error.BinaryFile => "This file contains binary data and cannot be edited as text.",
- error.UnsupportedEncoding => "This file is not valid UTF-8 text.",
- error.FileTooLarge => "Text files are limited to 4 GiB.",
- error.OutOfMemory => "Not enough free memory to hold this file.",
- error.Busy => "Saving a large file. Editing resumes when it is written.",
- error.PermissionDenied => "Permission denied. Try Save As in a writable folder.",
- error.HardLinkedFile => "This file has multiple hard links. Use Save As to create a separate copy.",
+ error.FileChanged => tr("File changed on disk. Use Save As to keep your edits in another file."),
+ error.BinaryFile => tr("This file contains binary data and cannot be edited as text."),
+ error.UnsupportedEncoding => tr("This file is not valid UTF-8 text."),
+ error.FileTooLarge => tr("Text files are limited to 4 GiB."),
+ error.OutOfMemory => tr("Not enough free memory to hold this file."),
+ error.Busy => tr("Saving a large file. Editing resumes when it is written."),
+ error.PermissionDenied => tr("Permission denied. Try Save As in a writable folder."),
+ error.HardLinkedFile => tr("This file has multiple hard links. Use Save As to create a separate copy."),
else => @errorName(err),
});
}
@@ -272,14 +318,14 @@ pub const App = struct {
t.path = path;
t.stamp = job.stamp;
if (t.doc.revision == job.revision) t.doc.saved = t.doc.position;
- self.message("Saved");
+ self.message(tr("Saved"));
self.changed();
if (self.close_tab == t.id and !t.doc.modified()) self.finishClose();
},
.open_dialog => self.open(job.path),
.save_dialog => if (self.findTab(job.tab_id)) |i| {
for (self.tabs.items) |other| if (other.id != job.tab_id and other.path != null and std.mem.eql(u8, other.path.?, job.path)) {
- self.message("That file is open in another tab. Choose a different name.");
+ self.message(tr("That file is open in another tab. Choose a different name."));
return;
};
self.startSave(self.tabs.items[i], job.path, job.stamp);
@@ -293,7 +339,7 @@ pub const App = struct {
self.failure(err);
return;
};
- self.message("Opening…");
+ self.message(tr("Opening…"));
}
}
fn choose(self: *App, saving: bool) void {
@@ -315,7 +361,7 @@ pub const App = struct {
};
self.operation.?.revision = t.doc.revision;
t.doc.locked = borrow;
- self.message("Saving…");
+ self.message(tr("Saving…"));
}
fn save(self: *App, as: bool) void {
if (self.operation != null) return;
@@ -324,7 +370,7 @@ pub const App = struct {
}
pub fn requestClose(self: *App) void {
if (self.operation != null) {
- self.message("Finish the file dialog or operation before closing.");
+ self.message(tr("Finish the file dialog or operation before closing."));
return;
}
self.close_all = true;
@@ -381,6 +427,7 @@ pub const App = struct {
}
pub fn cancelDrag(self: *App) void {
self.dragging = false;
+ self.drag_word = null;
self.scroll_drag.end();
}
pub fn cursorName(self: *App) [*:0]const u8 {
@@ -498,7 +545,13 @@ pub const App = struct {
if (self.dragging) {
const t = self.current();
if (y < self.viewTop()) self.port().scrollBy(-18) else if (y > self.viewTop() + self.viewHeight()) self.port().scrollBy(18);
- t.doc.move(self.indexAt(x - 16 + t.scroll_x, y - self.viewTop()), true);
+ const pos = self.indexAt(x - 16 + t.scroll_x, y - self.viewTop());
+ if (self.drag_word) |initial| {
+ const range = t.doc.wordRange(self.port().characterAt(x - 16 + t.scroll_x, y - self.viewTop()));
+ const backwards = pos < initial[0];
+ t.doc.anchor = if (backwards) initial[1] else initial[0];
+ t.doc.cursor = if (backwards) range[0] else @max(initial[1], range[1]);
+ } else t.doc.move(pos, true);
self.changed();
}
if (self.scroll_drag.active) {
@@ -514,6 +567,9 @@ pub const App = struct {
self.cancelDrag();
return;
}
+ const last_click = self.last_text_click;
+ self.last_text_click = null;
+ self.caret_snap = true;
if (self.close_tab != null) {
const x = (@as(f64, @floatFromInt(self.w)) - 420) / 2;
const y = (@as(f64, @floatFromInt(self.h)) - 170) / 2;
@@ -566,7 +622,19 @@ pub const App = struct {
}
self.find_open = false;
const t = self.current();
- t.doc.move(self.indexAt(self.px - 16 + t.scroll_x, self.py - self.viewTop()), self.shift);
+ const pos = self.indexAt(self.px - 16 + t.scroll_x, self.py - self.viewTop());
+ const now = @import("ui").key_repeat.nowMs();
+ const double = if (last_click) |last| last.tab == t.id and now - last.time <= input.multi_click_ms and
+ @abs(self.px - last.x) <= input.multi_click_slop and @abs(self.py - last.y) <= input.multi_click_slop else false;
+ if (double and !self.shift) {
+ const range = t.doc.wordRange(self.port().characterAt(self.px - 16 + t.scroll_x, self.py - self.viewTop()));
+ t.doc.anchor = range[0];
+ t.doc.cursor = range[1];
+ self.drag_word = range;
+ } else {
+ t.doc.move(pos, self.shift);
+ self.last_text_click = .{ .time = now, .x = self.px, .y = self.py, .tab = t.id };
+ }
self.dragging = true;
self.changed();
}
@@ -596,10 +664,18 @@ pub const App = struct {
d.anchor = pos;
d.cursor = pos + q.len;
self.reveal();
- } else self.message("Text not found");
+ } else self.message(tr("Text not found"));
}
pub fn keyRepeats(self: *App, sym: u32, utf8: []const u8) bool {
- if (self.close_tab != null or self.menu_open or self.ctrl or self.alt) return false;
+ if (self.close_tab != null or self.menu_open or self.alt) return false;
+ if (self.ctrl) return switch (sym) {
+ c.XKB_KEY_Left, c.XKB_KEY_Right, c.XKB_KEY_BackSpace, c.XKB_KEY_Delete => !self.find_open,
+ else => false,
+ };
+ if (!self.find_open) switch (sym) {
+ c.XKB_KEY_Return, c.XKB_KEY_KP_Enter, c.XKB_KEY_Tab, c.XKB_KEY_Home, c.XKB_KEY_End, c.XKB_KEY_Page_Up, c.XKB_KEY_Page_Down => return true,
+ else => {},
+ };
return @import("ui").key_repeat.editingKey(switch (sym) {
c.XKB_KEY_Left, c.XKB_KEY_Right, c.XKB_KEY_Up, c.XKB_KEY_Down, c.XKB_KEY_BackSpace, c.XKB_KEY_Delete => true,
else => false,
@@ -607,6 +683,7 @@ pub const App = struct {
}
pub fn handleKey(self: *App, sym: u32, utf8: []const u8) void {
self.caret_activity +%= 1;
+ self.last_text_click = null;
if (self.close_tab != null) {
if (sym == c.XKB_KEY_Escape and self.operation == null) {
self.close_tab = null;
@@ -708,7 +785,7 @@ pub const App = struct {
c.XKB_KEY_c, c.XKB_KEY_C, c.XKB_KEY_x, c.XKB_KEY_X => {
if (sel[0] == sel[1]) return;
if (sel[1] - sel[0] > @import("../files/transfer.zig").limit) {
- self.message("Clipboard selections are limited to 1 MiB.");
+ self.message(tr("Clipboard selections are limited to 1 MiB."));
return;
}
self.clipboard.clearRetainingCapacity();
@@ -801,7 +878,7 @@ pub const App = struct {
const icons = [_]?IconId{ .plus, .open, .save, .save, .search, if (self.wrap) .checkmark else null };
const hints = [_]?[]const u8{ "CTRL+N", "CTRL+O", "CTRL+S", "CTRL+SHIFT+S", "CTRL+F", null };
for (labels, 0..) |label, i| menu.row(cr, self.menuRow(i), .{
- .label = label,
+ .label = label.get(),
.hint = hints[i],
.icon = icons[i],
.selected = self.menu_selected == i,
@@ -828,7 +905,7 @@ pub const App = struct {
fill(cr, x + 8, 35, tab_w - 16, 2, theme.shellPalette().accent);
}
var buf: [512]u8 = undefined;
- const label = std.fmt.bufPrint(&buf, "{s}{s}", .{ tab.name(), if (tab.doc.modified()) " •" else "" }) catch "Text file";
+ const label = std.fmt.bufPrint(&buf, "{s}{s}", .{ tab.name(), if (tab.doc.modified()) " •" else "" }) catch tr("Text file");
c.cairo_save(cr);
c.cairo_rectangle(cr, x + 12, 2, tab_w - 42, 32);
c.cairo_clip(cr);
@@ -859,10 +936,10 @@ pub const App = struct {
var ink = t.window_fg;
if (bytes.len == 0) ink[3] *= 0.5;
ui.setSource(cr, ink);
- ui.drawText(cr, if (bytes.len == 0) "Find…" else bytes, 22, 64, ui.textSize(), false);
- if (self.focused and self.caret_visible) fill(cr, 22 + ui.measureText(cr, bytes[0..@min(self.query.cursor, bytes.len)], ui.textSize(), false), 48, 1, 18, t.window_fg);
+ ui.drawText(cr, if (bytes.len == 0) tr("Find…") else bytes, 22, 64, ui.textSize(), false);
+ self.paintCaret(cr);
c.cairo_restore(cr);
- self.paintButton(cr, .{ .x = @floatFromInt(self.w - 90), .y = 43, .w = 78, .h = 30 }, "Next", false);
+ self.paintButton(cr, .{ .x = @floatFromInt(self.w - 90), .y = 43, .w = 78, .h = 30 }, tr("Next"), false);
}
self.layouts.beginFrame();
const pt = self.port();
@@ -874,6 +951,7 @@ pub const App = struct {
c.cairo_rectangle(cr, 12, self.viewTop(), @floatFromInt(self.w - 30), self.viewHeight());
c.cairo_clip(cr);
for (self.rows.items) |row| self.paintLine(cr, tab, row, sel);
+ if (!self.find_open) self.paintCaret(cr);
c.cairo_restore(cr);
if (self.scrollbarGeometry()) |bar| ui.drawScrollbar(cr, scrollbar.look(bar, self.bar_appearance, theme.global.scrollbar_width, theme.shellPalette()));
fill(cr, 0, @as(f64, @floatFromInt(self.h)) - status_h, @floatFromInt(self.w), status_h, t.app_bar);
@@ -887,13 +965,13 @@ pub const App = struct {
.column = (std.unicode.utf8CountCodepoints(d.text.items[d.lineStart(d.cursor)..d.cursor]) catch 0) + 1,
};
}
- const text = if (self.notice_len > 0) self.notice[0..self.notice_len] else std.fmt.bufPrint(&info, "Line {d}, Column {d} · UTF-8{s} · {s}", .{ tab.status.line, tab.status.column, if (tab.doc.bom) " BOM" else "", if (tab.doc.crlf) "CRLF" else "LF" }) catch "";
+ const text = if (self.notice_len > 0) self.notice[0..self.notice_len] else i18n.fmt(&info, tr("Line {line}, Column {column} · UTF-8{bom} · {ending}"), .{ .line = tab.status.line, .column = tab.status.column, .bom = if (tab.doc.bom) " BOM" else "", .ending = if (tab.doc.crlf) "CRLF" else "LF" }) catch "";
ui.setSource(cr, t.window_fg);
ui.drawText(cr, text, 12, @floatFromInt(self.h - 8), ui.statusSize(), false);
if (self.menu_open) self.paintMenu(cr);
if (self.close_tab != null) self.paintClose(cr);
}
- /// Draws one segment: its selection, text and, if the cursor is in it, the caret.
+ /// Draws one segment's selection, text and any preedit at the cursor.
fn paintLine(self: *App, cr: *c.cairo_t, tab: *Tab, row: view.Row, sel: [2]usize) void {
const t = theme.global;
const l = row.line;
@@ -953,7 +1031,6 @@ pub const App = struct {
if (self.focused and !self.find_open and self.close_tab == null and lines.holds(seg, tab.doc.cursor, tab.doc.text.items.len)) {
var r: p.Rectangle = undefined;
p.pango_layout_get_cursor_pos(l.layout, l.index(tab.doc.cursor), &r, null);
- if (self.caret_visible) fill(cr, @as(f64, @floatFromInt(r.x)) / 1024, @as(f64, @floatFromInt(r.y)) / 1024, 1.5, @as(f64, @floatFromInt(r.height)) / 1024, t.window_fg);
if (self.preedit.items.len > 0) {
const x = @as(f64, @floatFromInt(r.x)) / 1024;
const py = @as(f64, @floatFromInt(r.y + r.height)) / 1024;
@@ -973,11 +1050,11 @@ pub const App = struct {
layer.finish();
}
ui.setSource(cr, theme.global.window_fg);
- ui.drawText(cr, "Save changes before closing?", x + 20, y + 36, ui.textSize(), true);
- ui.drawText(cr, "Your unsaved changes will be lost if you discard them.", x + 20, y + 72, ui.textSize(), false);
- self.paintButton(cr, .{ .x = x + 20, .y = y + 112, .w = 115, .h = 38 }, "Cancel", self.close_choice == 0);
- self.paintButton(cr, .{ .x = x + 145, .y = y + 112, .w = 125, .h = 38 }, "Discard", self.close_choice == 1);
- self.paintButton(cr, .{ .x = x + 280, .y = y + 112, .w = 120, .h = 38 }, "Save", self.close_choice == 2);
+ ui.drawText(cr, tr("Save changes before closing?"), x + 20, y + 36, ui.textSize(), true);
+ ui.drawText(cr, tr("Your unsaved changes will be lost if you discard them."), x + 20, y + 72, ui.textSize(), false);
+ self.paintButton(cr, .{ .x = x + 20, .y = y + 112, .w = 115, .h = 38 }, tr("Cancel"), self.close_choice == 0);
+ self.paintButton(cr, .{ .x = x + 145, .y = y + 112, .w = 125, .h = 38 }, tr("Discard"), self.close_choice == 1);
+ self.paintButton(cr, .{ .x = x + 280, .y = y + 112, .w = 120, .h = 38 }, tr("Save"), self.close_choice == 2);
}
};
fn fill(cr: *c.cairo_t, x: f64, y: f64, w: f64, h: f64, color: [4]f32) void {
diff --git a/src/editor/caret.zig b/src/editor/caret.zig
index ace0082..b7e64b8 100644
--- a/src/editor/caret.zig
+++ b/src/editor/caret.zig
@@ -1,53 +1,79 @@
-//! Deadline-driven blink: hold solid while editing, stop waking after inactivity.
+//! Search-field caret motion with deadline-only blinking and glide frames.
const std = @import("std");
-pub const Blink = struct {
- cycle_ms: u32 = 1060,
- idle_ms: u32 = 10_000,
- origin_ms: i64 = 0,
+const input = @import("ui").input;
+pub const Rect = struct { x: f32 = 0, y: f32 = 0, w: f32 = 1.5, h: f32 = 18 };
+pub const Caret = struct {
+ motion: input.Caret = .{},
+ box: Rect = .{},
visible: bool = false,
deadline_ms: ?i64 = null,
- pub fn update(self: *Blink, now: i64, active: bool, restart: bool) bool {
- if (restart) self.origin_ms = now;
- const previous = self.visible;
+ pub fn update(self: *Caret, now: i64, active: bool, restart: bool, target: Rect, snap: bool) bool {
+ const previous = self.box;
+ const was_visible = self.visible;
+ if (restart) self.motion.noteEdit(now);
+ // A different line, viewport or field must never sweep through text.
+ if (snap or !active or target.y != self.box.y or target.h != self.box.h) self.motion.snap = true;
+ self.motion.track(now, target.x);
+ self.box = target;
+ self.box.x = self.motion.offset(now);
+ self.visible = active and self.motion.visible(now);
self.deadline_ms = null;
- self.visible = active;
- const elapsed = @max(0, now - self.origin_ms);
- const half: i64 = @intCast(self.cycle_ms / 2);
- if (active and half > 0 and (self.idle_ms == 0 or elapsed < self.idle_ms)) {
- self.visible = @mod(@divFloor(elapsed, half), 2) == 0;
- self.deadline_ms = self.origin_ms + (@divFloor(elapsed, half) + 1) * half;
- if (self.idle_ms > 0) self.deadline_ms = @min(self.deadline_ms.?, self.origin_ms + self.idle_ms);
+ if (active) {
+ if (self.motion.moving(now)) {
+ self.deadline_ms = now + 8;
+ } else if (input.caret_config.blink_ms >= 2 and !self.motion.blinkExpired(now)) {
+ const half: i64 = @intCast(input.caret_config.blink_ms / 2);
+ const origin = self.motion.last_edit_ms;
+ self.deadline_ms = origin + (@divFloor(@max(0, now - origin), half) + 1) * half;
+ if (input.caret_config.blink_timeout_s > 0) self.deadline_ms = @min(self.deadline_ms.?, origin + @as(i64, input.caret_config.blink_timeout_s) * 1000);
+ }
}
- return previous != self.visible;
+ return was_visible != self.visible or (self.visible and !std.meta.eql(previous, self.box));
}
- pub fn timeout(self: Blink, now: i64, other: c_int) c_int {
+ pub fn timeout(self: Caret, now: i64, other: c_int) c_int {
const deadline = self.deadline_ms orelse return other;
const remaining: c_int = @intCast(std.math.clamp(deadline - now, 0, std.math.maxInt(c_int)));
return if (other < 0) remaining else @min(remaining, other);
}
};
-test "blink deadlines reset on activity and stop on blur and idle" {
- var b: Blink = .{};
- try std.testing.expect(b.update(100, true, true));
- try std.testing.expectEqual(@as(c_int, 530), b.timeout(100, -1));
- try std.testing.expect(b.update(630, true, false));
- try std.testing.expect(!b.visible);
- try std.testing.expect(b.update(700, true, true));
- try std.testing.expect(b.visible);
- try std.testing.expectEqual(@as(c_int, 10), b.timeout(700, 10));
- _ = b.update(10_700, true, false);
- try std.testing.expect(b.visible and b.deadline_ms == null);
- _ = b.update(10_701, false, true);
- try std.testing.expect(!b.visible and b.deadline_ms == null);
+test "caret glides like search, snaps lines and bursts, and stops waking on blur and idle" {
+ var caret: Caret = .{};
+ const target: Rect = .{ .x = 10, .y = 40 };
+ try std.testing.expect(caret.update(100, true, true, target, true));
+ try std.testing.expectEqual(@as(c_int, 530), caret.timeout(100, -1));
+ try std.testing.expect(caret.update(630, true, false, target, false));
+ try std.testing.expect(!caret.visible);
+ var next = target;
+ next.x = 30;
+ _ = caret.update(700, true, true, next, false);
+ _ = caret.update(720, true, false, next, false);
+ try std.testing.expect(caret.box.x > 10 and caret.box.x < 30);
+ try std.testing.expect(caret.visible);
+ try std.testing.expect(caret.timeout(720, -1) <= 8);
+ next.x = 40;
+ _ = caret.update(730, true, true, next, false);
+ try std.testing.expectEqual(next.x, caret.box.x); // repeat burst catches up
+ next.y = 60;
+ next.x = 10;
+ _ = caret.update(900, true, true, next, false);
+ try std.testing.expectEqual(next, caret.box);
+ _ = caret.update(10_900, true, false, next, false);
+ try std.testing.expect(caret.visible and caret.deadline_ms == null);
+ _ = caret.update(10_901, false, true, next, false);
+ try std.testing.expect(!caret.visible and caret.deadline_ms == null);
}
+
test "disabled blink is solid and zero idle timeout blinks indefinitely" {
- var b: Blink = .{ .cycle_ms = 0 };
- _ = b.update(100, true, true);
- try std.testing.expect(b.visible and b.deadline_ms == null);
- b = .{ .idle_ms = 0 };
- _ = b.update(0, true, true);
- _ = b.update(106_530, true, false);
- try std.testing.expect(!b.visible and b.deadline_ms != null);
+ const saved = input.caret_config;
+ defer input.caret_config = saved;
+ input.caret_config.blink_ms = 0;
+ var caret: Caret = .{};
+ _ = caret.update(100, true, true, .{}, true);
+ try std.testing.expect(caret.visible and caret.deadline_ms == null);
+ input.caret_config = .{ .blink_timeout_s = 0 };
+ _ = caret.update(0, true, true, .{}, true);
+ _ = caret.update(106_530, true, false, .{}, false);
+ try std.testing.expect(!caret.visible and caret.deadline_ms != null);
}
diff --git a/src/editor/document.zig b/src/editor/document.zig
index a13f423..ecf699b 100644
--- a/src/editor/document.zig
+++ b/src/editor/document.zig
@@ -231,6 +231,21 @@ pub const Document = struct {
const end = if (std.mem.indexOfScalarPos(u8, d.text.items, pos, '\n')) |n| n else d.text.items.len;
return if (end > pos and d.text.items[end - 1] == '\r') end - 1 else end;
}
+ /// Pango word boundaries around a hit, bounded like keyboard movement.
+ /// At EOF select the preceding word; at a word start select that word.
+ pub fn wordRange(d: *const Document, at: usize) [2]usize {
+ const text = d.text.items;
+ if (text.len == 0) return .{ 0, 0 };
+ var pos = @min(at, text.len - 1);
+ while (pos > 0 and text[pos] & 0xc0 == 0x80) pos -= 1;
+ var probe = d.*;
+ probe.cursor = pos;
+ const end = probe.boundary(true, true);
+ // Starting just inside this range makes the reverse lookup include
+ // a boundary exactly at the hit rather than the preceding separator.
+ probe.cursor = pos + (std.unicode.utf8ByteSequenceLength(text[pos]) catch 1);
+ return .{ probe.boundary(false, true), end };
+ }
pub fn boundary(d: *const Document, right: bool, word: bool) usize {
const pos = d.cursor;
const text = d.text.items;
@@ -374,3 +389,19 @@ test "moving by character or word inside an enormous line looks only nearby" {
const word = d.boundary(true, true);
try std.testing.expect(word > d.cursor and word - d.cursor < 16);
}
+
+test "double-click word ranges include Unicode and exclude neighbouring words" {
+ var d = try Document.init("hello café, snow 雪!\r\n");
+ defer d.deinit();
+ for ([_]usize{ 0, 2, 4 }) |pos| try std.testing.expectEqualStrings("hello", d.text.items[d.wordRange(pos)[0]..d.wordRange(pos)[1]]);
+ for ([_]usize{ 6, 8, 10 }) |pos| try std.testing.expectEqualStrings("café", d.text.items[d.wordRange(pos)[0]..d.wordRange(pos)[1]]);
+ const snow = d.wordRange(18);
+ try std.testing.expectEqualStrings("雪", d.text.items[snow[0]..snow[1]]);
+ const punctuation = d.wordRange(11);
+ try std.testing.expectEqualStrings(",", d.text.items[punctuation[0]..punctuation[1]]);
+ var empty: Document = .{};
+ try std.testing.expectEqual([2]usize{ 0, 0 }, empty.wordRange(0));
+ var eof = try Document.init("last");
+ defer eof.deinit();
+ try std.testing.expectEqual([2]usize{ 0, 4 }, eof.wordRange(4));
+}
diff --git a/src/editor/main.zig b/src/editor/main.zig
index 2e66c10..f7bd91a 100644
--- a/src/editor/main.zig
+++ b/src/editor/main.zig
@@ -68,7 +68,6 @@ pub const Client = struct {
xkb_state: ?*c.xkb_state = null,
key_repeat: key_repeat.KeyRepeat = .{},
app: app_mod.App,
- caret: @import("caret.zig").Blink = .{},
caret_state: ?app_mod.App.CaretState = null,
clipboard: @import("clipboard.zig").Clipboard = undefined,
ime: @import("ime.zig").Ime = undefined,
@@ -650,6 +649,7 @@ pub const Client = struct {
self.surface.commit();
self.app.dirty = false;
self.app.caret_dirty = false;
+ self.app.caret_painted = self.app.caret.box;
}
fn renderTitlebar(self: *Client, cr: *c.cairo_t, w: i32, h: i32) void {
@@ -695,7 +695,7 @@ pub const Client = struct {
var layer = l;
layer.renderer.palette = ui_theme.shellPalette();
button_widget.paint(&layer.renderer, layer.local(), .{
- .label = if (control == .menu) "Menu" else "",
+ .label = if (control == .menu) @import("i18n").tr("Menu") else "",
.icon = switch (control) {
.menu => IconId.more,
.minimize => IconId.minimize,
@@ -783,6 +783,17 @@ pub fn run(init: std.process.Init, paths: []const [:0]const u8, instance: *@impo
const force_csd = init.minimal.environ.getPosix("REDIWM_EDITOR_FORCE_CSD") != null;
@import("../files/settings.zig").loadTheme(init.gpa, init.io, init.minimal.environ);
defer @import("../files/settings.zig").deinitTheme();
+ // Use the same persisted caret and motion preferences as shell fields.
+ if (@import("config").loader.loadDefault(init.gpa, init.io, init.minimal.environ)) |loaded| {
+ var cfg = loaded;
+ defer cfg.deinit();
+ @import("ui").input.caret_config = .{
+ .blink_ms = cfg.input.caret_blink_ms,
+ .blink_timeout_s = cfg.input.caret_blink_timeout,
+ .motion_ms = cfg.input.caret_motion_ms,
+ };
+ @import("ui").anim.applySettings(cfg.animations);
+ } else |_| {}
const display = try wl.Display.connect(null);
defer display.disconnect();
var self = Client{ .display = display, .app = try app_mod.App.init(init.io) };
@@ -883,11 +894,11 @@ pub fn run(init: std.process.Init, paths: []const [:0]const u8, instance: *@impo
const now = key_repeat.nowMs();
const caret_state = self.app.caretState();
const restart = self.caret_state == null or !std.meta.eql(self.caret_state.?, caret_state);
+ const snap = if (self.caret_state) |before| !before.active or before.tab != caret_state.tab or before.find != caret_state.find or
+ before.top != caret_state.top or before.dy != caret_state.dy or before.scroll_x != caret_state.scroll_x or
+ before.width != caret_state.width or before.height != caret_state.height or before.scale != caret_state.scale else true;
self.caret_state = caret_state;
- if (self.caret.update(now, caret_state.active, restart)) {
- self.app.caret_visible = self.caret.visible;
- self.app.caret_dirty = true;
- }
+ self.app.stepCaret(now, caret_state.active, restart, snap);
try self.render();
if (self.configured and self.applied_scale > 0 and pending_token.len > 0) {
if (self.activation) |activation| activation.activate(pending_token, self.surface);
@@ -917,7 +928,7 @@ pub fn run(init: std.process.Init, paths: []const [:0]const u8, instance: *@impo
const poll_now = key_repeat.nowMs();
var timeout: c_int = if (self.key_repeat.timeoutMs(poll_now)) |wait| @intCast(@min(wait, 60_000)) else -1;
if (self.app.barTimeout(poll_now)) |wait| timeout = if (timeout < 0) @intCast(wait) else @min(timeout, @as(c_int, @intCast(wait)));
- const result = c.poll(&fds, fd_count, self.caret.timeout(poll_now, self.clipboard.timeout(timeout)));
+ const result = c.poll(&fds, fd_count, self.app.caret.timeout(poll_now, self.clipboard.timeout(timeout)));
if (result > 0 and (fds[0].revents & c.POLLIN != 0)) {
if (display.readEvents() != .SUCCESS) return error.DisplayFailed;
} else {
diff --git a/src/editor/view.zig b/src/editor/view.zig
index bc210ec..a148e79 100644
--- a/src/editor/view.zig
+++ b/src/editor/view.zig
@@ -317,6 +317,14 @@ pub const Port = struct {
/// The byte offset nearest (x, y), both relative to the view's text origin.
pub fn indexAt(s: Port, x: f64, y: f64) usize {
+ return s.hitAt(x, y, true);
+ }
+ /// The character under a word-selection click, including its trailing
+ /// half. An insertion hit there would select the following separator.
+ pub fn characterAt(s: Port, x: f64, y: f64) usize {
+ return s.hitAt(x, y, false);
+ }
+ fn hitAt(s: Port, x: f64, y: f64, insertion: bool) usize {
var cur = s.topLine() orelse return 0;
var top = -s.dy.*;
var guard: usize = 0;
@@ -334,7 +342,7 @@ pub const Port = struct {
var trailing: c_int = 0;
_ = p.pango_layout_xy_to_index(cur.layout, @intFromFloat(std.math.clamp(x * 1024, -1e9, 1e9)), @intFromFloat(local * 1024), &idx, &trailing);
var offset = cur.seg.start + @as(usize, @intCast(@max(0, idx)));
- while (trailing > 0 and offset < cur.seg.text_end) : (trailing -= 1) offset += std.unicode.utf8ByteSequenceLength(s.text()[offset]) catch 1;
+ while (insertion and trailing > 0 and offset < cur.seg.text_end) : (trailing -= 1) offset += std.unicode.utf8ByteSequenceLength(s.text()[offset]) catch 1;
return @min(offset, cur.seg.text_end);
}
@@ -490,3 +498,21 @@ test "small documents measure exactly and seek by pixels" {
e = port.extent(&memo);
try std.testing.expectApproxEqAbs(e.content - 40, e.offset, 0.01);
}
+
+test "word hits use the character under either half of a glyph" {
+ var doc = try Document.init("word next");
+ defer doc.deinit();
+ var layouts = testLayouts();
+ defer layouts.deinit();
+ var dy: f64 = 0;
+ const port: Port = .{ .doc = &doc, .layouts = &layouts, .height = 100, .dy = &dy };
+ const row = port.locate(0).?;
+ var before: p.Rectangle = undefined;
+ var after: p.Rectangle = undefined;
+ p.pango_layout_get_cursor_pos(row.line.layout, 3, &before, null);
+ p.pango_layout_get_cursor_pos(row.line.layout, 4, &after, null);
+ const x = (@as(f64, @floatFromInt(before.x)) * 0.2 + @as(f64, @floatFromInt(after.x)) * 0.8) / 1024;
+ const y = @as(f64, @floatFromInt(before.height)) / 2048;
+ try std.testing.expectEqual(@as(usize, 4), port.indexAt(x, y));
+ try std.testing.expectEqual(@as(usize, 3), port.characterAt(x, y));
+}
diff --git a/src/editor_main.zig b/src/editor_main.zig
index 80efb6e..a6484d2 100644
--- a/src/editor_main.zig
+++ b/src/editor_main.zig
@@ -1,5 +1,6 @@
const std = @import("std");
pub fn main(init: std.process.Init) void {
+ @import("i18n").init(init.minimal.environ);
run(init) catch |err| {
std.log.err("rediwm-editor: {}", .{err});
std.process.exit(1);
diff --git a/src/files/AGENTS.md b/src/files/AGENTS.md
index 17d8f3a..b88c4bf 100644
--- a/src/files/AGENTS.md
+++ b/src/files/AGENTS.md
@@ -59,6 +59,13 @@ and headless fixtures. The pinned library is compiled only into Files/tests.
agree with Files. Only the content type is ours; GIO calls take it as a
C string through `TypeZ`.
+* **AppImages:** `appimage.zig` reads type-2 metadata through bounded,
+ timed `unsquashfs` calls on the directory worker; never run AppRun or the
+ AppImage to inspect it. Publish only the rewritten launcher and icon in
+ XDG data, preserving existing MIME defaults. Registration keeps the image
+ in place, uses its canonical absolute path and drops bundled TryExec,
+ working-directory, desktop-action and D-Bus activation references.
+
## Git
`git.zig` never runs a repository's own programs: a folder's `.git` arrives
@@ -151,7 +158,10 @@ together.
`main.zig` `dragOver`/`dragDropped` accept `text/uri-list`: PLACES pins with
*copy* only; the content area transfers to the hovered folder or, on empty
-space, the displayed directory.
+space, the displayed directory. The live terminal body accepts *copy* only
+and inserts shell-quoted absolute paths without Enter. Snapshot its editor
+revision so a delayed receive cannot type after focus/session changes;
+control bytes are refused because terminal paste would alter them.
* Files sources advertise `application/x-rediwm-file-transfer`: the receiving
job owns moves and the source never deletes on `dnd_finished`. Ctrl at drag
@@ -163,3 +173,34 @@ space, the displayed directory.
state; reject a folder dropped into itself or a descendant, including
through symlinks. Pins take their gap from `pin_drop`.
* Ctrl-click deselection waits for release so Ctrl-drag keeps the selection.
+
+## BitTorrent transfers
+
+`app_torrents.zig` owns the sidebar, main-pane list, toolbar and detail dialog;
+`app_torrent_rows.zig` owns folder-row matching, controls and hover details; `torrents.zig` is a bounded,
+nonblocking SOCK_SEQPACKET subscriber (poll slot 22). `torrent/helper.cpp`
+owns libtorrent, persistent resume data, StatusNotifierItem and its D-Bus menu.
+The helper survives Files closing; no torrent state belongs to a window.
+See `docs/files-torrents.md` for dependencies, storage and lifecycle.
+
+* The socket is `files-transfers.sock`, deliberately outside `rediwm-*.sock`
+ compositor discovery. Both ends check peer credentials; runtime/state are
+ private. Use the system C++ compiler to match libtorrent's distro ABI.
+* Folder accessories match full source/storage/published paths, never basenames.
+ Destination entries for unpublished payload have `transfer_stub` and `missing`:
+ activate transfer details, exclude them from filesystem operations and chooser
+ results. Rebuild their rows only for structural changes; progress/rate updates
+ repaint without resetting selection or scrolling. ETA uses remaining selected
+ bytes and payload rate; no estimate while paused or stalled.
+* File priorities apply asynchronously: keep payload paused/upload-only until
+ `file_prio_alert` confirms the requested priorities, then save and resume.
+ Treat duplicate v1/v2 aliases as errors in libtorrent too, not just by UI ID.
+* Payload starts in a private staging directory. Metadata alone never starts
+ payload downloading. Pause before publication, rename the whole directory
+ with RENAME_NOREPLACE, then update the engine's storage path. Never use
+ libtorrent's racy `fail_if_exist` move mode or delete payload on removal.
+* Idle releases the engine after pending resume writes drain. UI subscribers
+ can remain attached without torrent worker timers. Last subscriber leaving
+ exits a stopped helper; active downloads/seeding keep it alive.
+* `zig build test-files-torrents` uses a private bus, temporary state and a
+ noninstalled loopback network shim. Never fetch public torrents in tests.
diff --git a/src/files/app.zig b/src/files/app.zig
index 890d5c0..53a0e2d 100644
--- a/src/files/app.zig
+++ b/src/files/app.zig
@@ -1,4 +1,6 @@
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const scrollbar = @import("ui").widgets.scrollbar;
const splitter = @import("ui").widgets.splitter;
const anim = @import("ui").anim;
@@ -28,6 +30,8 @@ const app_folder_size = @import("app_folder_size.zig");
const app_places = @import("app_places.zig");
const app_sidebar_paint = @import("app_sidebar_paint.zig");
const app_scroll = @import("app_scroll.zig");
+const app_torrents = @import("app_torrents.zig");
+const app_torrent_rows = @import("app_torrent_rows.zig");
const app_git_sidebar = @import("app_git_sidebar.zig");
const app_opening = @import("app_opening.zig");
const app_pointer = @import("app_pointer.zig");
@@ -63,6 +67,8 @@ pub const measureText = app_draw.measureText;
pub const App = struct {
terminal: app_terminal.Drawer = .{},
closed: bool = false,
+ torrents: @import("torrents.zig").Client = .{},
+ transfer_view: app_torrents.View = .{},
children: @import("../child_set.zig") = .{},
chooser: ?chooser_mod.Options = null,
filename: Editor = .{},
@@ -132,6 +138,8 @@ pub const App = struct {
menu_y: f64 = 0,
menu_selected: usize = 0,
file_menu_labels: [12][]const u8 = undefined,
+ menu_label_text: [8][]const u8 = undefined,
+ column_label_text: [5][]const u8 = undefined,
place_menu_labels: [4][]const u8 = undefined,
menu_place: usize = 0,
unpinned_places: u8 = 0,
@@ -320,6 +328,7 @@ pub const App = struct {
}
pub fn deinit(self: *App) void {
+ self.torrents.deinit();
self.terminal.deinit(self.allocator);
self.children.deinit(self.allocator);
self.closeExtractPicker();
@@ -371,9 +380,9 @@ pub const App = struct {
pub fn updateTitle(self: *App) void {
if (self.chooser) |opts| {
const title = if (opts.title.len > 0) opts.title else switch (opts.mode) {
- .open => "Open File",
- .save => "Save As",
- .folder => "Choose Folder",
+ .open => tr("Open File"),
+ .save => tr("Save As"),
+ .folder => tr("Choose Folder"),
};
const len = @min(title.len, self.title_z.len - 1);
@memcpy(self.title_z[0..len], title[0..len]);
@@ -382,10 +391,9 @@ pub const App = struct {
return;
}
const cur = self.history.current;
- const name = if (self.isRecent()) "Recent" else if (self.trash_dir != null and std.mem.eql(u8, cur, self.trash_dir.?)) "Trash" else if (std.mem.eql(u8, cur, "/")) "/" else std.fs.path.basename(cur);
- _ = std.fmt.bufPrintZ(&self.title_z, "{s} — RediWM Files", .{name}) catch {
- @memcpy(self.title_z[0..12], "RediWM Files");
- self.title_z[12] = 0;
+ const name = if (self.transfer_view.active) tr("Transfers") else if (self.isRecent()) tr("Recent") else if (self.trash_dir != null and std.mem.eql(u8, cur, self.trash_dir.?)) tr("Trash") else if (std.mem.eql(u8, cur, "/")) "/" else std.fs.path.basename(cur);
+ _ = i18n.fmtZ(&self.title_z, tr("{name} — RediWM Files"), .{ .name = name }) catch {
+ _ = i18n.fmtZ(&self.title_z, tr("RediWM Files"), .{}) catch unreachable;
};
self.title_changed = true;
}
@@ -454,12 +462,12 @@ pub const App = struct {
pub fn savePreferences(self: *App) void {
const path = self.preferences_path orelse return;
(Preferences{ .list = self.non_git_list_view orelse self.list_view, .sort = @intFromEnum(self.sort_mode), .unpinned_places = self.unpinned_places, .git_view = self.git_view, .terminal_height = @intCast(self.terminal.requested_height) }).save(self.allocator, self.io, path) catch {
- self.setStatusNotice("Could not save view preferences", true);
+ self.setStatusNotice(tr("Could not save view preferences"), true);
};
}
pub fn rememberView(self: *App) void {
- if (self.loading) return;
+ if (self.loading or self.transfer_view.active) return;
var view: history_mod.View = .{ .scroll = self.scroll_y };
for (self.items.items, 0..) |item, i| {
if (item.selected) {
@@ -641,6 +649,7 @@ pub const App = struct {
pub const setSort = app_listing.setSort;
pub const places = [_][]const u8{ "Home", "Trash", "Recent", "Desktop", "Documents", "Downloads", "Pictures", "Music", "Videos", "Projects" };
+ pub const place_labels = [_]i18n.Message{ i18n.msg("Home"), i18n.msg("Trash"), i18n.msg("Recent"), i18n.msg("Desktop"), i18n.msg("Documents"), i18n.msg("Downloads"), i18n.msg("Pictures"), i18n.msg("Music"), i18n.msg("Videos"), i18n.msg("Projects") };
pub const places_start = 3;
@@ -716,6 +725,35 @@ pub const App = struct {
// app_sidebar_paint.zig
pub const sidebarExtent = app_sidebar_paint.sidebarExtent;
+ pub const startTorrents = app_torrents.startTorrents;
+ pub const stepTorrents = app_torrents.stepTorrents;
+ pub const torrentForItem = app_torrent_rows.torrentForItem;
+ pub const hasFolderTransfers = app_torrent_rows.hasFolderTransfers;
+ pub const appendTorrentRows = app_torrent_rows.appendTorrentRows;
+ pub const inlineTorrentWidth = app_torrent_rows.inlineTorrentWidth;
+ pub const renderInlineTorrent = app_torrent_rows.renderInlineTorrent;
+ pub const inlineTorrentHit = app_torrent_rows.inlineTorrentHit;
+ pub const inlineTorrentClick = app_torrent_rows.inlineTorrentClick;
+ pub const renderTorrentTip = app_torrent_rows.renderTorrentTip;
+ pub const toggleTorrent = app_torrents.toggleTorrent;
+ pub const openTorrentDetails = app_torrents.openTorrentDetails;
+ pub const openTransfers = app_torrents.openTransfers;
+ pub const leaveTransfers = app_torrents.leaveTransfers;
+ pub const renderTransferToolbar = app_torrents.renderTransferToolbar;
+ pub const renderTransferList = app_torrents.renderTransferList;
+ pub const transferPaneClick = app_torrents.transferPaneClick;
+ pub const transferPaneKey = app_torrents.transferPaneKey;
+ pub const transferPaneHover = app_torrents.transferPaneHover;
+ pub const torrentSource = app_torrents.torrentSource;
+ pub const confirmTorrent = app_torrents.confirmTorrent;
+ pub const torrentSidebarHeight = app_torrents.torrentSidebarHeight;
+ pub const torrentSidebarHit = app_torrents.torrentSidebarHit;
+ pub const renderTorrentSidebar = app_torrents.renderTorrentSidebar;
+ pub const transfersHover = app_torrents.transfersHover;
+ pub const transfersClick = app_torrents.transfersClick;
+ pub const transfersKey = app_torrents.transfersKey;
+ pub const renderTransfers = app_torrents.renderTransfers;
+
// app_git_sidebar.zig
pub const gitSidebarHeight = app_git_sidebar.gitSidebarHeight;
pub const gitHeadExtra = app_git_sidebar.gitHeadExtra;
@@ -740,6 +778,7 @@ pub const App = struct {
pub const revealIndex = app_scroll.revealIndex;
// app_opening.zig
+ pub const addApplication = app_opening.addApplication;
pub const previewSelected = app_opening.previewSelected;
pub const launchEditor = app_opening.launchEditor;
pub const launchPreview = app_opening.launchPreview;
@@ -785,6 +824,8 @@ pub const App = struct {
pub const terminalMaximum = app_terminal.terminalMaximum;
pub const terminalRect = app_terminal.terminalRect;
pub const terminalBody = app_terminal.terminalBody;
+ pub const terminalDropAt = app_terminal.terminalDropAt;
+ pub const terminalDropPaths = app_terminal.terminalDropPaths;
pub const terminalControl = app_terminal.terminalControl;
pub const terminalHit = app_terminal.terminalHit;
pub const terminalRestartable = app_terminal.terminalRestartable;
@@ -834,6 +875,7 @@ pub const App = struct {
pub const menuHint = app_menu.menuHint;
pub const hasSizeSelection = app_menu.hasSizeSelection;
pub const selectedArchive = app_menu.selectedArchive;
+ pub const selectedAppImage = app_menu.selectedAppImage;
pub const fileActions = app_menu.fileActions;
pub const placeActions = app_menu.placeActions;
pub const menuLabels = app_menu.menuLabels;
diff --git a/src/files/app_chooser.zig b/src/files/app_chooser.zig
index 9fcedf5..0dcfacd 100644
--- a/src/files/app_chooser.zig
+++ b/src/files/app_chooser.zig
@@ -1,6 +1,8 @@
//! Files in chooser mode: the portal file dialog's footer, filters and results.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig").api;
const header = @import("header.zig");
@@ -195,7 +197,7 @@ pub fn chooserKey(self: *App, sym: u32, utf8: []const u8) bool {
pub fn acceptChooser(self: *App) void {
self.collectChooser() catch {
- self.setStatusNotice("Choose an accessible file or folder and a valid filename.", true);
+ self.setStatusNotice(tr("Choose an accessible file or folder and a valid filename."), true);
};
self.invalidate();
}
@@ -293,20 +295,20 @@ pub fn renderChooser(self: *App, cr: *c.cairo_t) void {
c.cairo_rectangle(cr, 0, top, @floatFromInt(self.w), 1);
c.cairo_fill(cr);
setSource(cr, ui_theme.global.window_fg);
- drawText(cr, if (opts.mode == .folder) "Folder:" else "File name:", 16, self.chooserRect(0).y + 23, shell_ui.textSize(), false);
+ drawText(cr, if (opts.mode == .folder) tr("Folder:") else tr("File name:"), 16, self.chooserRect(0).y + 23, shell_ui.textSize(), false);
if (opts.mode == .folder) {
drawEllipsis(cr, self.history.current, 96, self.chooserRect(0).y + 23, self.chooserRect(0).w, shell_ui.textSize(), false);
} else self.renderEditor(cr, &self.filename, self.chooserRect(0), self.focus == .filename, false);
for (1..4) |i| {
const r = self.chooserRect(i);
const text = switch (i) {
- 1 => if (self.overwrite_pending) "Replace" else if (opts.accept_label.len > 0) opts.accept_label else switch (opts.mode) {
- .open => "Open",
- .save => "Save",
- .folder => "Select",
+ 1 => if (self.overwrite_pending) tr("Replace") else if (opts.accept_label.len > 0) opts.accept_label else switch (opts.mode) {
+ .open => tr("Open"),
+ .save => tr("Save"),
+ .folder => tr("Select"),
},
- 2 => "Cancel",
- else => if (opts.filters.len == 0) "All files" else opts.filters[opts.filter_index].name,
+ 2 => tr("Cancel"),
+ else => if (opts.filters.len == 0) tr("All files") else opts.filters[opts.filter_index].name,
};
var layer = shell_ui.Layer.begin(cr, .{ .x = @floatCast(r.x), .y = @floatCast(r.y), .w = @floatCast(r.w), .h = @floatCast(r.h) }) orelse continue;
ui_button.paint(&layer.renderer, layer.local(), .{ .label = text, .variant = if (i == 1) .primary else .secondary, .alignment = if (i == 3) .left else .center, .trailing_icon = if (i == 3 and opts.filters.len > 0) .chevron_down else null }, .{ .pointer = if (i == 3 and opts.filters.len == 0) .disabled else if (r.contains(self.mouse_x, self.mouse_y)) .hover else .idle, .selected = self.focus == (switch (i) {
@@ -331,6 +333,6 @@ pub fn renderChooser(self: *App, cr: *c.cairo_t) void {
}
if (self.overwrite_pending or self.status_notice != null) {
setSource(cr, ui_theme.global.window_fg);
- drawEllipsis(cr, if (self.overwrite_pending) "A file with this name exists. Replace it?" else self.status_notice.?, 16, top + (if (self.w >= 800) @as(f64, 78) else 56), @floatFromInt(self.w - 32), shell_ui.textSize(), false);
+ drawEllipsis(cr, if (self.overwrite_pending) tr("A file with this name exists. Replace it?") else self.status_notice.?, 16, top + (if (self.w >= 800) @as(f64, 78) else 56), @floatFromInt(self.w - 32), shell_ui.textSize(), false);
}
}
diff --git a/src/files/app_dialogs.zig b/src/files/app_dialogs.zig
index 4d5a9e0..c87d556 100644
--- a/src/files/app_dialogs.zig
+++ b/src/files/app_dialogs.zig
@@ -1,6 +1,8 @@
//! Files dialogs: opening, confirming and keyboard handling of the modal cards.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig").api;
const git = @import("git.zig");
@@ -29,11 +31,11 @@ pub fn closeDialog(self: *App) void {
pub fn openProperties(self: *App, path: []const u8, preview: ?icons.Entry) void {
const state = properties.State.init(self.allocator, path, preview) catch {
- self.setStatusNotice("Could not read file properties", true);
+ self.setStatusNotice(tr("Could not read file properties"), true);
return;
};
self.closeDialog();
- self.dialog = .{ .kind = .properties, .title = "Properties", .properties = state };
+ self.dialog = .{ .kind = .properties, .title = tr("Properties"), .properties = state };
self.invalidate();
}
@@ -43,7 +45,7 @@ pub fn openSelectedProperties(self: *App) void {
for (self.items.items) |item| {
if (!item.selected or item.missing) continue;
if (selected != null) {
- self.setStatusNotice("Select one item to view its properties", false);
+ self.setStatusNotice(tr("Select one item to view its properties"), false);
return;
}
selected = item;
@@ -94,11 +96,11 @@ pub fn openWithDialog(self: *App) void {
if (item.selected) paths.append(self.allocator, item.path) catch return;
}
const state = open_with.State.init(self.allocator, paths.items) catch {
- self.setStatusNotice("Could not load applications", true);
+ self.setStatusNotice(tr("Could not load applications"), true);
return;
};
self.closeDialog();
- self.dialog = .{ .kind = .open_with, .title = "Open With", .applications = state };
+ self.dialog = .{ .kind = .open_with, .title = tr("Open With"), .applications = state };
self.invalidate();
}
@@ -126,9 +128,9 @@ pub fn openNewFolderDialog(self: *App) void {
self.closeDialog();
var dlg = Dialog{
.kind = .new_folder,
- .title = "New Folder",
+ .title = tr("New Folder"),
};
- dlg.edit.text.appendSlice(self.allocator, "New Folder") catch return;
+ dlg.edit.text.appendSlice(self.allocator, tr("New Folder")) catch return;
dlg.edit.cursor = dlg.edit.text.items.len;
dlg.edit.select_all = true;
self.dialog = dlg;
@@ -137,7 +139,7 @@ pub fn openNewFolderDialog(self: *App) void {
pub fn openNewBranchDialog(self: *App) void {
self.closeDialog();
- self.dialog = Dialog{ .kind = .new_branch, .title = "New Branch" };
+ self.dialog = Dialog{ .kind = .new_branch, .title = tr("New Branch") };
self.invalidate();
}
@@ -145,7 +147,7 @@ pub fn switchBranch(self: *App, repo: git.Repository, name: []const u8, create:
const outcome = git.switchBranch(self.allocator, self.io, self.environ, repo.directory, name, create);
var buf: [256]u8 = undefined;
if (outcome.ok) {
- const msg = std.fmt.bufPrint(&buf, "{s} {s}", .{ if (create) "Created and switched to" else "Switched to", name }) catch "Switched branch";
+ const msg = i18n.fmt(&buf, if (create) tr("Created and switched to {name}") else tr("Switched to {name}"), .{ .name = name }) catch tr("Switched branch");
self.setStatusNotice(msg, false);
} else {
self.setStatusNotice(outcome.text(), true);
@@ -158,9 +160,9 @@ pub fn openNewFileDialog(self: *App) void {
self.closeDialog();
var dlg = Dialog{
.kind = .new_file,
- .title = "New File",
+ .title = tr("New File"),
};
- dlg.edit.text.appendSlice(self.allocator, "New File.txt") catch return;
+ dlg.edit.text.appendSlice(self.allocator, tr("New File.txt")) catch return;
dlg.edit.cursor = dlg.edit.text.items.len;
dlg.edit.select_all = true;
self.dialog = dlg;
@@ -183,7 +185,7 @@ pub fn openRenameDialog(self: *App) void {
const target_path = self.allocator.dupe(u8, item.path) catch return;
var dlg = Dialog{
.kind = .rename,
- .title = "Rename",
+ .title = tr("Rename"),
.target_path = target_path,
};
dlg.edit.text.appendSlice(self.allocator, item.name) catch {
@@ -204,7 +206,7 @@ pub fn openEmptyTrashDialog(self: *App) void {
self.closeDialog();
self.dialog = .{
.kind = .trash_confirm,
- .title = "Empty Trash?",
+ .title = tr("Empty Trash?"),
.deletion = .{ .permanent = true, .empty_trash = true },
};
self.invalidate();
@@ -229,14 +231,14 @@ pub fn openTrashConfirmDialog(self: *App) void {
self.closeDialog();
self.dialog = Dialog{
.kind = .trash_confirm,
- .title = "Move to Trash?",
+ .title = tr("Move to Trash?"),
};
for (self.items.items) |it| {
if (!it.selected or it.missing) continue;
const preview = if (self.dialog.?.deletion.paths.items.len == 0) self.itemIcon(it, 64 * self.scale) else null;
self.dialog.?.deletion.add(it.path, it.name, it.is_dir and !it.is_symlink, it.bytes, preview) catch {
self.closeDialog();
- self.setStatusNotice("Unable to prepare deletion", true);
+ self.setStatusNotice(tr("Unable to prepare deletion"), true);
return;
};
}
@@ -247,7 +249,7 @@ pub fn openConflictDialog(self: *App, conflict_name: []const u8) void {
self.closeDialog();
self.dialog = Dialog{
.kind = .conflict,
- .title = "File Conflict",
+ .title = tr("File Conflict"),
.conflict_name = self.allocator.dupe(u8, conflict_name) catch null,
};
self.invalidate();
@@ -256,6 +258,8 @@ pub fn openConflictDialog(self: *App, conflict_name: []const u8) void {
pub fn confirmDialog(self: *App) void {
const dlg = self.dialog orelse return;
switch (dlg.kind) {
+ .transfers => {},
+ .torrent_source, .torrent_destination => self.confirmTorrent(),
.terminal_close => self.terminalConfirmClose(),
.open_with => self.openWithAction(.open),
.properties => {},
@@ -263,19 +267,19 @@ pub fn confirmDialog(self: *App) void {
const name = std.mem.trim(u8, dlg.edit.text.items, " \t\r\n");
ops_mod.createFolder(self.allocator, self.history.current, name) catch |err| {
const msg = switch (err) {
- error.PathAlreadyExists => "Folder already exists",
- error.AccessDenied => "Permission denied",
- error.EmptyName => "Name cannot be empty",
- error.InvalidCharacter => "Invalid characters in name",
- error.ReservedName => "Reserved folder name",
- else => "Failed to create folder",
+ error.PathAlreadyExists => tr("Folder already exists"),
+ error.AccessDenied => tr("Permission denied"),
+ error.EmptyName => tr("Name cannot be empty"),
+ error.InvalidCharacter => tr("Invalid characters in name"),
+ error.ReservedName => tr("Reserved folder name"),
+ else => tr("Failed to create folder"),
};
self.setStatusNotice(msg, true);
self.closeDialog();
return;
};
self.closeDialog();
- self.setStatusNotice("Folder created", false);
+ self.setStatusNotice(tr("Folder created"), false);
self.refresh();
},
.new_branch => {
@@ -288,19 +292,19 @@ pub fn confirmDialog(self: *App) void {
const name = std.mem.trim(u8, dlg.edit.text.items, " \t\r\n");
ops_mod.createFile(self.allocator, self.history.current, name) catch |err| {
const msg = switch (err) {
- error.PathAlreadyExists => "File already exists",
- error.AccessDenied => "Permission denied",
- error.EmptyName => "Name cannot be empty",
- error.InvalidCharacter => "Invalid characters in name",
- error.ReservedName => "Reserved file name",
- else => "Failed to create file",
+ error.PathAlreadyExists => tr("File already exists"),
+ error.AccessDenied => tr("Permission denied"),
+ error.EmptyName => tr("Name cannot be empty"),
+ error.InvalidCharacter => tr("Invalid characters in name"),
+ error.ReservedName => tr("Reserved file name"),
+ else => tr("Failed to create file"),
};
self.setStatusNotice(msg, true);
self.closeDialog();
return;
};
self.closeDialog();
- self.setStatusNotice("File created", false);
+ self.setStatusNotice(tr("File created"), false);
self.refresh();
},
.rename => {
@@ -308,18 +312,18 @@ pub fn confirmDialog(self: *App) void {
const target = dlg.target_path orelse "";
ops_mod.renameItem(self.allocator, target, name) catch |err| {
const msg = switch (err) {
- error.PathAlreadyExists => "Target name already exists",
- error.AccessDenied => "Permission denied",
- error.EmptyName => "Name cannot be empty",
- error.InvalidCharacter => "Invalid characters in name",
- else => "Failed to rename",
+ error.PathAlreadyExists => tr("Target name already exists"),
+ error.AccessDenied => tr("Permission denied"),
+ error.EmptyName => tr("Name cannot be empty"),
+ error.InvalidCharacter => tr("Invalid characters in name"),
+ else => tr("Failed to rename"),
};
self.setStatusNotice(msg, true);
self.closeDialog();
return;
};
self.closeDialog();
- self.setStatusNotice("Renamed successfully", false);
+ self.setStatusNotice(tr("Renamed successfully"), false);
self.refresh();
},
.trash_confirm => {
@@ -337,6 +341,10 @@ pub fn confirmDialog(self: *App) void {
pub fn handleDialogKey(self: *App, sym: u32, utf8: []const u8) void {
var dlg = &(self.dialog orelse return);
+ if (dlg.kind == .transfers) {
+ self.transfersKey(sym);
+ return;
+ }
if (dlg.kind == .properties) {
const action = self.dialog.?.properties.?.key(sym, self.shift, self.w, self.h);
diff --git a/src/files/app_fileops.zig b/src/files/app_fileops.zig
index 6e04f4e..73a2f14 100644
--- a/src/files/app_fileops.zig
+++ b/src/files/app_fileops.zig
@@ -1,6 +1,8 @@
//! Files clipboard and file operations: copy, cut, paste, size and delete.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const recent = @import("recent.zig");
const ops_mod = @import("ops.zig");
@@ -21,7 +23,8 @@ pub fn copySelected(self: *App) void {
self.clipboard_cut = false;
self.clipboard_revision += 1;
var buf: [128]u8 = undefined;
- const msg = std.fmt.bufPrint(&buf, "Copied {d} item(s)", .{self.clipboard_paths.items.len}) catch "Copied";
+ const count = self.clipboard_paths.items.len;
+ const msg = i18n.fmt(&buf, i18n.trn("Copied {count} item", "Copied {count} items", count), .{ .count = count }) catch tr("Copied");
self.setStatusNotice(msg, false);
self.invalidate();
}
@@ -41,7 +44,8 @@ pub fn cutSelected(self: *App) void {
self.clipboard_cut = true;
self.clipboard_revision += 1;
var buf: [128]u8 = undefined;
- const msg = std.fmt.bufPrint(&buf, "Cut {d} item(s)", .{self.clipboard_paths.items.len}) catch "Cut";
+ const count = self.clipboard_paths.items.len;
+ const msg = i18n.fmt(&buf, i18n.trn("Cut {count} item", "Cut {count} items", count), .{ .count = count }) catch tr("Cut");
self.setStatusNotice(msg, false);
self.invalidate();
}
@@ -78,7 +82,7 @@ pub fn executeTransfer(self: *App, kind: ops_mod.OpKind, paths: []const []const
if (paths.len == 0) return false;
const runner = self.job_runner orelse return false;
runner.start(kind, paths, directory, .ask) catch {
- self.setStatusNotice("Failed to start transfer job", true);
+ self.setStatusNotice(tr("Failed to start transfer job"), true);
return false;
};
self.job_cut_revision = if (clipboard and kind == .move and self.clipboard_cut) self.clipboard_revision else null;
@@ -128,10 +132,10 @@ pub fn executeDeletion(self: *App) void {
const state = &self.dialog.?.deletion;
const result = if (state.empty_trash) ops_mod.emptyTrash(self.io) else if (state.permanent) ops_mod.deleteItems(self.io, state.paths.items) else ops_mod.trashItems(self.io, state.paths.items);
result catch |err| {
- self.setStatusNotice(if (state.empty_trash) "Could not empty Trash" else if (state.permanent) "Could not delete all items" else if (err == error.GioNotAvailable) "Trash unavailable (gio not installed)" else "Could not move all items to Trash", true);
+ self.setStatusNotice(if (state.empty_trash) tr("Could not empty Trash") else if (state.permanent) tr("Could not delete all items") else if (err == error.GioNotAvailable) tr("Trash unavailable (gio not installed)") else tr("Could not move all items to Trash"), true);
self.refresh();
return;
};
- self.setStatusNotice(if (state.empty_trash) "Trash emptied" else if (state.permanent) "Items permanently deleted" else "Items moved to Trash", false);
+ self.setStatusNotice(if (state.empty_trash) tr("Trash emptied") else if (state.permanent) tr("Items permanently deleted") else tr("Items moved to Trash"), false);
self.refresh();
}
diff --git a/src/files/app_folder_size.zig b/src/files/app_folder_size.zig
index 7432dd6..20c63f7 100644
--- a/src/files/app_folder_size.zig
+++ b/src/files/app_folder_size.zig
@@ -18,7 +18,7 @@ pub fn startFolderSize(self: *App, idx: usize) void {
if (self.history.archive_len > 0) return;
if (idx >= self.items.items.len) return;
const it = self.items.items[idx];
- if (!it.is_dir or it.is_symlink) return;
+ if (!it.is_dir or it.is_symlink or it.transfer_stub) return;
if (self.folder_sizes.get(it.path)) |sz| {
switch (sz) {
.running => return,
diff --git a/src/files/app_git_sidebar.zig b/src/files/app_git_sidebar.zig
index 86cf8cf..8f2becc 100644
--- a/src/files/app_git_sidebar.zig
+++ b/src/files/app_git_sidebar.zig
@@ -1,6 +1,8 @@
//! Files Git sidebar: branch card, status list and their geometry.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig").api;
const git = @import("git.zig");
@@ -49,7 +51,7 @@ pub fn gitCardHeight(self: *App) f64 {
}
pub fn gitCard(self: *App) header.Rect {
- return .{ .x = 10, .y = @floatFromInt(self.pinRowY(self.pins.items.items.len) + 44 + self.deviceBlock()), .w = @floatFromInt(self.sidebarWidth() - 20 - self.scrollbarGutter()), .h = self.gitCardHeight() };
+ return .{ .x = 10, .y = @floatFromInt(self.pinRowY(self.pins.items.items.len) + 44 + self.deviceBlock() + self.torrentSidebarHeight()), .w = @floatFromInt(self.sidebarWidth() - 20 - self.scrollbarGutter()), .h = self.gitCardHeight() };
}
pub fn renderGitSidebar(self: *App, cr: *c.cairo_t, content_width: f64) void {
@@ -82,7 +84,7 @@ pub fn renderGitSidebar(self: *App, cr: *c.cairo_t, content_width: f64) void {
layer.renderer.drawIcon(0, 0, 14, 14, .{ .id = .plus, .color = ui_theme.global.sidebarForeground() });
layer.finish();
}
- drawText(cr, "New branch", 44, baseline, shell_ui.textSize(), false);
+ drawText(cr, tr("New branch"), 44, baseline, shell_ui.textSize(), false);
break;
}
const row = gitBranchRow(repo, i);
@@ -101,7 +103,7 @@ pub fn renderGitSidebar(self: *App, cr: *c.cairo_t, content_width: f64) void {
}
}
var detached_buf: [40]u8 = undefined;
- const label = if (row.current and std.mem.eql(u8, row.name, "(detached)")) std.fmt.bufPrint(&detached_buf, "Detached {s}", .{repo.oid[0..@min(7, repo.oid.len)]}) catch "Detached" else row.name;
+ const label = if (row.current and std.mem.eql(u8, row.name, "(detached)")) i18n.fmt(&detached_buf, tr("Detached {count}"), .{ .count = repo.oid[0..@min(7, repo.oid.len)] }) catch "Detached" else row.name;
drawEllipsis(cr, label, 44, baseline, @max(0, right - counts_width - 50), shell_ui.textSize(), row.current);
}
}
diff --git a/src/files/app_hover.zig b/src/files/app_hover.zig
index fb0316f..318c74d 100644
--- a/src/files/app_hover.zig
+++ b/src/files/app_hover.zig
@@ -12,6 +12,7 @@ const places = App.places;
const pin_base = App.pin_base;
pub fn hoverBounds(self: *App, key: usize) ?header.Rect {
+ if (key >= std.math.maxInt(usize) - 4096) return null;
if (key >= 900 and key < 904) return .{ .x = 0, .y = 0, .w = @floatFromInt(self.w), .h = @floatFromInt(self.h) };
if (key == 0) return .{ .x = 0, .y = 0, .w = 0, .h = 0 };
if (key >= 2_000_000) {
@@ -157,6 +158,7 @@ pub fn toolbarButtonEnabled(self: *App, action: header.Action) bool {
}
pub fn hoveredToolbarButton(self: *App) ?header.Rect {
+ if (self.transfer_view.active) return null;
if (self.dialog != null or self.menu != null) return null;
const action = header.hit(self.w, self.inRepository(), self.mouse_x, self.mouse_y) orelse return null;
if (!self.toolbarButtonVisible(action) or !self.toolbarButtonEnabled(action)) return null;
@@ -225,7 +227,7 @@ pub fn stepHover(self: *App, now: i64) void {
self.hover_active = self.hover_active or !item.selection_fill.animation.settled(now) or !item.selection_border.animation.settled(now);
}
const field = header.field(self.w);
- const hit = if (!self.search_visible and self.focus != .location_bar and
+ const hit = if (!self.transfer_view.active and !self.search_visible and self.focus != .location_bar and
self.dialog == null and self.menu == null and field.contains(self.mouse_x, self.mouse_y))
self.breadcrumbs(null, self.mouse_x)
else
diff --git a/src/files/app_items.zig b/src/files/app_items.zig
index 71d8f10..f5a8231 100644
--- a/src/files/app_items.zig
+++ b/src/files/app_items.zig
@@ -71,13 +71,13 @@ pub fn renderFileItems(self: *App, cr: *c.cairo_t, viewport_h: i32) void {
self.drawItemIcon(cr, item, icon.x, icon.y, icon.w);
const label_x = x - self.horizontalOffset() + (if (self.list_view) @as(f64, 42) else GridCard.padding_x);
setSource(cr, ui_theme.global.window_fg);
- const name_width = if (self.list_view) self.listColumn(0).w - 46 else width - 2 * GridCard.padding_x;
+ const name_width = if (self.list_view) @max(0, self.listColumn(0).w - 46 - self.inlineTorrentWidth(idx)) else width - 2 * GridCard.padding_x;
// A path that does not fit loses its head, so the file's own name stays readable.
const name_y = y + (if (self.list_view) baseline else GridCard.name_baseline);
if (item.label.len > 0) drawHeadEllipsis(cr, item.label, label_x, name_y, name_width, shell_ui.textSize(), false) else drawEllipsis(cr, item.name, label_x, name_y, name_width, shell_ui.textSize(), false);
var buf: [64]u8 = undefined;
var size_buf: [64]u8 = undefined;
- const disp = self.itemSizeDisplay(item, &size_buf);
+ const disp = if (item.transfer_stub) App.ItemSizeDisplay{ .text = formatSize((self.torrentForItem(idx) orelse continue).total, &size_buf), .is_running = false } else self.itemSizeDisplay(item, &size_buf);
const is_size_hovered = (self.hoverKey() == 2_000_000 + idx);
if (self.list_view and self.repository() != null) {
self.renderGitStatus(cr, item, y);
@@ -100,13 +100,15 @@ pub fn renderFileItems(self: *App, cr: *c.cairo_t, viewport_h: i32) void {
}
setSource(cr, ui_theme.global.window_fg);
const ty = self.listColumn(2);
- drawEllipsis(cr, itemType(item), ty.x + 4, y + baseline, ty.w - 8, shell_ui.textSize(), false);
+ drawEllipsis(cr, if (item.transfer_stub) @import("i18n").tr("Download") else itemType(item), ty.x + 4, y + baseline, ty.w - 8, shell_ui.textSize(), false);
const mt = self.listColumn(3);
- const timestamp = @import("settings.zig").dateTime(if (self.isRecent()) item.opened else item.mtime, &buf);
+ const timestamp = if (item.transfer_stub) "—" else @import("settings.zig").dateTime(if (self.isRecent()) item.opened else item.mtime, &buf);
drawEllipsis(cr, timestamp, mt.x + 4, y + baseline, mt.w - 8, shell_ui.textSize(), false);
const permissions = self.listColumn(4);
const mode = formatPermissions(item.mode);
- drawEllipsis(cr, if (item.permissions_text.len > 0) item.permissions_text else &mode, permissions.x + 4, y + baseline, permissions.w - 8, shell_ui.textSize(), false);
+ drawEllipsis(cr, if (item.transfer_stub) "—" else if (item.permissions_text.len > 0) item.permissions_text else &mode, permissions.x + 4, y + baseline, permissions.w - 8, shell_ui.textSize(), false);
+ } else if (self.torrentForItem(idx) != null) {
+ // The transfer accessory occupies the grid card's detail line.
} else {
if (item.is_symlink) {
setSource(cr, ui_theme.global.window_fg);
@@ -132,6 +134,7 @@ pub fn renderFileItems(self: *App, cr: *c.cairo_t, viewport_h: i32) void {
drawText(cr, formatSize(item.bytes, &buf), label_x, y + GridCard.detail_baseline, shell_ui.textSize(), false);
}
}
+ self.renderInlineTorrent(cr, idx);
if (cut) {
c.cairo_pop_group_to_source(cr);
c.cairo_paint_with_alpha(cr, 0.45);
@@ -140,9 +143,10 @@ pub fn renderFileItems(self: *App, cr: *c.cairo_t, viewport_h: i32) void {
}
pub fn renderFilenameTip(self: *App, cr: *c.cairo_t) void {
+ if (self.inlineTorrentHit(self.mouse_x, self.mouse_y) != null) return;
const index = self.itemAt(self.mouse_x, self.mouse_y) orelse return;
const name = self.items.items[index].text();
- const available: f64 = if (self.list_view) self.listColumn(0).w - 46 else @as(f64, @floatFromInt(self.cellWidth() - 62));
+ const available: f64 = if (self.list_view) self.listColumn(0).w - 46 - self.inlineTorrentWidth(index) else @as(f64, @floatFromInt(self.cellWidth() - 62));
if (measureText(cr, name, shell_ui.textSize(), false) <= available) return;
const width = @min(@as(f64, @floatFromInt(self.w - 24)), @max(180, measureText(cr, name, shell_ui.textSize(), false) + 20));
var lines: [32][]const u8 = undefined;
diff --git a/src/files/app_keyboard.zig b/src/files/app_keyboard.zig
index ae5e3d0..91c6467 100644
--- a/src/files/app_keyboard.zig
+++ b/src/files/app_keyboard.zig
@@ -58,6 +58,12 @@ pub fn handleKey(self: *App, sym: u32, utf8: []const u8) void {
self.terminalKey(sym, utf8);
return;
}
+ if (self.transfer_view.active) {
+ if (self.ctrl and (sym == c.XKB_KEY_l or sym == c.XKB_KEY_L)) self.leaveTransfers() else {
+ self.transferPaneKey(sym);
+ return;
+ }
+ }
if (self.ctrl and (sym == c.XKB_KEY_f or sym == c.XKB_KEY_F)) {
self.search_visible = true;
self.focus = .search;
@@ -88,6 +94,13 @@ pub fn handleKey(self: *App, sym: u32, utf8: []const u8) void {
return;
}
+ if (!self.ctrl and !self.alt and sym == c.XKB_KEY_space) {
+ if (self.focused_index) |index| if (self.torrentForItem(index)) |t| {
+ self.toggleTorrent(t);
+ return;
+ };
+ }
+
// Navigation shortcuts with Alt
if (self.alt) {
if (sym == c.XKB_KEY_Return) {
@@ -168,7 +181,7 @@ pub fn handleKey(self: *App, sym: u32, utf8: []const u8) void {
const prog = runner.pollProgress();
if (prog.state == .running or prog.state == .waiting_conflict) {
runner.cancel();
- self.setStatusNotice("Cancelling operation...", false);
+ self.setStatusNotice(@import("i18n").tr("Cancelling operation..."), false);
self.invalidate();
return;
}
@@ -270,7 +283,7 @@ pub fn handleLocationKey(self: *App, sym: u32, utf8: []const u8) void {
pub fn activeEditor(self: *App) ?*Editor {
if (self.dialog) |*dlg| return switch (dlg.kind) {
- .new_folder, .new_file, .new_branch, .rename => &dlg.edit,
+ .new_folder, .new_file, .new_branch, .rename, .torrent_source, .torrent_destination => &dlg.edit,
else => null,
};
return switch (self.focus) {
@@ -311,7 +324,7 @@ pub fn pasteText(self: *App, bytes: []const u8) void {
const edit = self.activeEditor() orelse return;
if (self.focus == .filename) self.overwrite_pending = false;
edit.insert(self.allocator, bytes) catch {
- self.setStatusNotice("Clipboard text is invalid or too long", true);
+ self.setStatusNotice(@import("i18n").tr("Clipboard text is invalid or too long"), true);
return;
};
self.edit_revision += 1;
diff --git a/src/files/app_layout.zig b/src/files/app_layout.zig
index 11fd187..fd0048f 100644
--- a/src/files/app_layout.zig
+++ b/src/files/app_layout.zig
@@ -1,6 +1,8 @@
//! Files geometry: toolbar, sidebar width, grid and list columns.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const scrollbar = @import("ui").widgets.scrollbar;
const splitter = @import("ui").widgets.splitter;
@@ -37,7 +39,7 @@ pub fn breadcrumbs(self: *App, target: ?*c.cairo_t, hit_x: ?f64) ?BreadcrumbHit
const at_trash = if (self.trash_dir) |trash| std.mem.eql(u8, path, trash) or
(std.mem.startsWith(u8, path, trash) and path.len > trash.len and path[trash.len] == '/') else false;
ends[0] = if (self.isRecent()) path.len else if (at_trash) self.trash_dir.?.len else if (at_home) self.home_dir.len else 1;
- labels[0] = if (self.isRecent()) "Recent" else if (at_trash) "Trash" else if (at_home) "Home" else "/";
+ labels[0] = if (self.isRecent()) tr("Recent") else if (at_trash) tr("Trash") else if (at_home) tr("Home") else "/";
var start = ends[0];
while (start < path.len and count < ends.len) {
if (path[start] == '/') {
@@ -107,15 +109,16 @@ pub fn sidebarFooter(self: *const App) i32 {
}
pub fn contentTop(self: *App) i32 {
+ if (self.transfer_view.active) return if (self.w < 500) 152 else 112;
return header.height(self.w, self.inRepository());
}
pub fn viewTop(self: *App) i32 {
- return self.contentTop() + if (self.list_view) @as(i32, 30) else 0;
+ return self.contentTop() + if (self.list_view or self.transfer_view.active) @as(i32, 30) else 0;
}
pub fn compactList(self: *App) bool {
- return self.list_view and self.contentBottom() - self.viewTop() < 80;
+ return (self.list_view or self.transfer_view.active) and self.contentBottom() - self.viewTop() < 80;
}
pub fn itemInset(self: *App) i32 {
@@ -123,11 +126,11 @@ pub fn itemInset(self: *App) i32 {
}
pub fn rowHeight(self: *App) i32 {
- return if (self.compactList()) 32 else if (self.list_view) 38 else GridCard.height + 8;
+ return if (self.compactList()) 32 else if (self.list_view or self.transfer_view.active) 38 else GridCard.height + 8;
}
pub fn cardHeight(self: *App) i32 {
- return if (self.compactList()) 30 else if (self.list_view) 36 else GridCard.height;
+ return if (self.compactList()) 30 else if (self.list_view or self.transfer_view.active) 36 else GridCard.height;
}
/// Text baseline of a list row, from the row's top.
@@ -211,7 +214,7 @@ pub fn scrollbarGutter(self: *const App) i32 {
}
pub fn columns(self: *App) i32 {
- return if (self.list_view) 1 else @max(1, @divTrunc(self.w - self.sidebarWidth() - 20 - self.scrollbarGutter(), 210));
+ return if (self.list_view or self.transfer_view.active) 1 else @max(1, @divTrunc(self.w - self.sidebarWidth() - 20 - self.scrollbarGutter(), 210));
}
pub fn cellWidth(self: *App) i32 {
@@ -219,11 +222,12 @@ pub fn cellWidth(self: *App) i32 {
}
pub fn contentHeight(self: *App) i32 {
- const count: i32 = @intCast(self.items.items.len);
+ const count: i32 = @intCast(if (self.transfer_view.active) self.torrents.items().len else self.items.items.len);
return 2 * self.itemInset() + @divTrunc(count + self.columns() - 1, self.columns()) * self.rowHeight();
}
pub fn itemAt(self: *App, x: f64, y: f64) ?usize {
+ if (self.transfer_view.active) return null;
const gx = @as(i32, @intFromFloat(x)) - self.sidebarWidth() - 20;
if (y < @as(f64, @floatFromInt(self.viewTop())) or y >= @as(f64, @floatFromInt(self.contentBottom()))) return null;
const gy = @as(i32, @intFromFloat(y)) - self.viewTop() - self.itemInset() + self.scroll_y;
@@ -236,7 +240,7 @@ pub fn itemAt(self: *App, x: f64, y: f64) ?usize {
/// The repository the folder belongs to, whether or not Git View is on.
pub fn foundRepository(self: *App) ?git.Repository {
- if (self.chooser != null) return null;
+ if (self.chooser != null or self.transfer_view.active) return null;
return if (self.snapshot) |snap| snap.repository else null;
}
@@ -254,7 +258,16 @@ pub fn changedOnly(self: *App) bool {
}
pub fn columnLabels(self: *App) []const []const u8 {
- return if (self.repository() != null) &.{ "Name", "Git" } else if (self.isRecent()) &.{ "Name", "Size", "Type", "Opened", "Permissions" } else &column_labels;
+ const messages: []const i18n.Message = if (self.transfer_view.active)
+ &.{ i18n.msg("Name"), i18n.msg("Status"), i18n.msg("Progress"), i18n.msg("Download"), i18n.msg("Upload") }
+ else if (self.repository() != null)
+ &.{ i18n.msg("Name"), i18n.msg("Git") }
+ else if (self.isRecent())
+ &.{ i18n.msg("Name"), i18n.msg("Size"), i18n.msg("Type"), i18n.msg("Opened"), i18n.msg("Permissions") }
+ else
+ &.{ i18n.msg("Name"), i18n.msg("Size"), i18n.msg("Type"), i18n.msg("Modified"), i18n.msg("Permissions") };
+ for (messages, 0..) |message, i| self.column_label_text[i] = message.get();
+ return self.column_label_text[0..messages.len];
}
pub fn columnMinimums(width: f64) [5]f64 {
@@ -269,6 +282,9 @@ pub fn columnMinimums(width: f64) [5]f64 {
pub fn listWidths(self: *App) [5]f64 {
const width: f64 = @floatFromInt(self.cellWidth() - 20);
+ if (self.transfer_view.active) {
+ return .{ width * 0.36, width * 0.25, width * 0.13, width * 0.13, width * 0.13 };
+ }
if (self.repository() != null) {
if (self.git_column_widths) |widths| return widths;
const minimum = gitColumnMinimums(width);
@@ -276,6 +292,7 @@ pub fn listWidths(self: *App) [5]f64 {
return .{ name, width - name, 0, 0, 0 };
}
if (self.column_widths) |widths| return widths;
+ if (self.hasFolderTransfers()) return .{ width * 0.50, width * 0.10, width * 0.12, width * 0.18, width * 0.10 };
const minimum = columnMinimums(width);
const detail = @max(minimum[1], @min(110, width * 0.14));
const modified = @max(minimum[3], @min(160, width * 0.20));
@@ -299,7 +316,7 @@ pub fn listColumn(self: *App, column: usize) header.Rect {
}
pub fn columnBoundary(self: *App, x: f64, y: f64) ?usize {
- if (!self.list_view or self.dialog != null or self.menu != null) return null;
+ if (self.transfer_view.active or !self.list_view or self.dialog != null or self.menu != null) return null;
if (x < @as(f64, @floatFromInt(self.sidebarWidth())) or x >= @as(f64, @floatFromInt(self.w - self.scrollbarGutter()))) return null;
for (0..self.columnLabels().len - 1) |i| {
const rect = self.listColumn(i);
@@ -330,7 +347,7 @@ pub fn sizeButtonRect(self: *App, idx: usize) ?header.Rect {
if (self.repository() != null) return null;
if (idx >= self.items.items.len) return null;
const item = self.items.items[idx];
- if (!item.is_dir or item.is_symlink) return null;
+ if (!item.is_dir or item.is_symlink or item.transfer_stub) return null;
const cols = self.columns();
const cell = self.cellWidth();
const i: i32 = @intCast(idx);
diff --git a/src/files/app_listing.zig b/src/files/app_listing.zig
index 75adf9c..982ce5c 100644
--- a/src/files/app_listing.zig
+++ b/src/files/app_listing.zig
@@ -1,11 +1,15 @@
//! Files listing: navigation, history moves, snapshot sync and the filtered, sorted view.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const anim = @import("ui").anim;
const c = @import("c.zig").api;
const worker_mod = @import("worker.zig");
const recent = @import("recent.zig");
+const collation = @import("collation.zig");
+const fold = @import("ui").fold;
const icons = @import("../icon_cache.zig");
const theme = @import("../icon_theme.zig");
const header = @import("header.zig");
@@ -48,6 +52,10 @@ pub fn selectOnLoad(self: *App, path: []const u8) void {
}
pub fn back(self: *App) void {
+ if (self.transfer_view.active) {
+ self.leaveTransfers();
+ return;
+ }
self.rememberView();
if (self.history.back() catch null) |path| {
self.applyHistoryNav(path);
@@ -76,6 +84,7 @@ pub fn home(self: *App) void {
}
pub fn applyHistoryNav(self: *App, path: []const u8) void {
+ self.leaveTransfers();
self.navigation_count +%= 1;
self.overwrite_pending = false;
if (self.chooser != null and self.chooser.?.mode == .open) self.setChooserName("");
@@ -120,6 +129,7 @@ pub fn isStaleSnapshot(snapshot_request_id: u64, active_request_id: u64) bool {
}
pub fn sync(self: *App) void {
+ if (self.worker.takeApplicationNotice()) |notice| self.setStatusNotice(notice.message, notice.failed);
if (self.worker.takeThemeNotice()) |notice| {
defer self.worker.allocator.free(notice);
self.setStatusNotice(notice, false);
@@ -196,11 +206,16 @@ pub fn sync(self: *App) void {
self.invalidate();
}
+ if (self.transfer_view.active) return;
+
// A background refresh must not reorder items or cancel a gesture
// while the button is held. The worker retains its latest snapshot;
// the first loop after release applies it.
if (self.selection_band != null or self.drag_origin != null) return;
- const snap = self.worker.takeSnapshot() orelse return;
+ const snap = self.worker.takeSnapshot() orelse {
+ if (self.torrents.rows_changed) self.rebuildView();
+ return;
+ };
if (isStaleSnapshot(snap.request_id, self.active_request_id)) {
snap.destroy();
return;
@@ -266,7 +281,7 @@ pub fn matches(self: *App, item: worker_mod.Item) bool {
}
}
if (self.folders_only and !item.is_dir) return false;
- return std.ascii.indexOfIgnoreCase(self.shownName(item), self.search.text.items) != null;
+ return fold.contains(self.shownName(item), self.search.text.items, .{ .turkish = @import("i18n").isTurkish() });
}
pub fn lessThan(mode: Sort, a: ViewItem, b: ViewItem) bool {
@@ -292,12 +307,13 @@ pub fn lessThan(mode: Sort, a: ViewItem, b: ViewItem) bool {
const order = std.mem.order(u8, itemType(a), itemType(b));
if (order != .eq) return if (mode == .type) order == .lt else order == .gt;
}
- const order = std.mem.order(u8, a.text(), b.text());
+ const order = collation.order(a.sort_key orelse a.text(), b.sort_key orelse b.text(), a.text(), b.text(), a.path, b.path);
return if (mode == .name_desc) order == .gt else order == .lt;
}
pub fn rebuildView(self: *App) void {
const snap = self.snapshot orelse return;
+ self.torrents.rows_changed = false;
// Keep old storage alive until names, selection and focus have been copied.
// Both a worker refresh and a local filter can rebuild this view.
self.cancelWheel();
@@ -340,6 +356,7 @@ pub fn rebuildView(self: *App) void {
self.items.append(self.allocator, .{
.name = mem.dupe(u8, it.name) catch continue,
.label = mem.dupe(u8, if (self.changedOnly() and self.full_paths) it.label else "") catch continue,
+ .sort_key = if (if (self.changedOnly() and self.full_paths and it.label.len > 0) it.label_key else it.name_key) |key| mem.dupe(u8, key) catch continue else null,
.path = mem.dupe(u8, it.path) catch continue,
.is_dir = it.is_dir,
.is_symlink = it.is_symlink,
@@ -359,6 +376,24 @@ pub fn rebuildView(self: *App) void {
.selection_border = if (previous) |item| item.selection_border else .{},
}) catch continue;
}
+ self.appendTorrentRows(mem, &selected_paths);
+ // Transfer placeholders and synthetic snapshots have no worker key.
+ // Give those rows keys from the same locale before sorting so every
+ // comparison uses one collation, including mixed real/stub folders.
+ var fallback_locale: ?collation.Locale = null;
+ defer if (fallback_locale) |*locale| locale.deinit();
+ var missing_key = false;
+ for (self.items.items) |*item| {
+ if (item.sort_key != null) continue;
+ if (fallback_locale == null) fallback_locale = collation.Locale.init(snap.collation_name) orelse collation.Locale.init("C").?;
+ item.sort_key = fallback_locale.?.key(mem, item.text()) catch null;
+ missing_key = missing_key or item.sort_key == null;
+ }
+ // Allocation failure must not mix byte and locale comparisons: that
+ // could make the comparator non-transitive.
+ if (missing_key) for (self.items.items) |*item| {
+ item.sort_key = null;
+ };
std.mem.sort(ViewItem, self.items.items, self.effectiveSort(), lessThan);
for (self.items.items, 0..) |item, i| {
if (old_focus) |path| {
@@ -419,7 +454,7 @@ pub fn sortByColumn(self: *App, column: usize) void {
}
pub fn renderColumns(self: *App, cr: *c.cairo_t) void {
- if (!self.list_view) return;
+ if (!self.list_view and !self.transfer_view.active) return;
c.cairo_save(cr);
defer c.cairo_restore(cr);
c.cairo_rectangle(cr, @floatFromInt(self.sidebarWidth()), @floatFromInt(self.contentTop()), @floatFromInt(self.w - self.sidebarWidth() - self.scrollbarGutter()), 30);
@@ -434,7 +469,7 @@ pub fn renderColumns(self: *App, cr: *c.cairo_t) void {
c.cairo_rectangle(cr, rect.x + rect.w - 0.5, rect.y + 6, 1, rect.h - 12);
c.cairo_fill(cr);
}
- const sorted = self.sortColumn() == i and (self.repository() == null or i == 0);
+ const sorted = !self.transfer_view.active and self.sortColumn() == i and (self.repository() == null or i == 0);
const hovered = self.hoverKey() == 400 + i;
if (sorted) {
setSource(cr, ui_theme.global.surface);
@@ -467,11 +502,11 @@ pub fn renderColumns(self: *App, cr: *c.cairo_t) void {
}
pub fn itemType(item: ViewItem) []const u8 {
- if (item.is_broken) return "Broken link";
- if (item.is_symlink) return "Link";
- if (item.is_dir) return "Folder";
+ if (item.is_broken) return tr("Broken link");
+ if (item.is_symlink) return tr("Link");
+ if (item.is_dir) return tr("Folder");
const ext = std.fs.path.extension(item.name);
- return if (ext.len > 1) ext[1..] else "File";
+ return if (ext.len > 1) ext[1..] else tr("File");
}
pub fn isRecent(self: *const App) bool {
diff --git a/src/files/app_menu.zig b/src/files/app_menu.zig
index c0cfc4e..c3906b0 100644
--- a/src/files/app_menu.zig
+++ b/src/files/app_menu.zig
@@ -1,6 +1,8 @@
//! Files menus: header actions, context menus and their geometry.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const archive = @import("archive.zig");
const c = @import("c.zig").api;
@@ -145,16 +147,16 @@ pub fn menuIcon(self: *App, row: usize) ?IconId {
// Faint shortcut text shown on the right of a context-menu row.
pub fn menuHint(self: *App, row: usize) ?[]const u8 {
const label = self.menuLabels()[row];
- if (std.mem.eql(u8, label, "Properties")) return "ALT+ENTER";
+ if (std.mem.eql(u8, label, tr("Properties"))) return "ALT+ENTER";
if (self.menu != .file and self.menu != .background) return null;
const hints = [_][2][]const u8{
- .{ "Open", "CTRL+O" },
- .{ "Cut", "CTRL+X" },
- .{ "Copy", "CTRL+C" },
- .{ "Paste", "CTRL+V" },
- .{ "Rename", "F2" },
- .{ "Move to Trash", "DELETE" },
- .{ "Refresh", "F5" },
+ .{ tr("Open"), "CTRL+O" },
+ .{ tr("Cut"), "CTRL+X" },
+ .{ tr("Copy"), "CTRL+C" },
+ .{ tr("Paste"), "CTRL+V" },
+ .{ tr("Rename"), "F2" },
+ .{ tr("Move to Trash"), "DELETE" },
+ .{ tr("Refresh"), "F5" },
};
for (hints) |hint| {
if (std.mem.eql(u8, label, hint[0])) return hint[1];
@@ -164,7 +166,7 @@ pub fn menuHint(self: *App, row: usize) ?[]const u8 {
pub fn hasSizeSelection(self: *App) bool {
for (self.items.items) |item| {
- if (item.selected and item.is_dir and !item.is_symlink) return true;
+ if (item.selected and item.is_dir and !item.is_symlink and !item.transfer_stub) return true;
}
return false;
}
@@ -180,13 +182,36 @@ pub fn selectedArchive(self: *App) ?[]const u8 {
return selected;
}
+pub fn selectedAppImage(self: *App) ?[]const u8 {
+ if (self.chooser != null or self.history.archive_len > 0 or self.transfer_view.active) return null;
+ var selected: ?[]const u8 = null;
+ for (self.items.items) |item| {
+ if (!item.selected) continue;
+ if (selected != null or item.is_dir or item.is_broken or item.missing or item.transfer_stub or !@import("appimage.zig").candidate(item.name)) return null;
+ selected = item.path;
+ }
+ return selected;
+}
+
pub fn fileActions(self: *App) []const FileAction {
+ var only_transfers = false;
+ for (self.items.items) |item| {
+ if (!item.selected) continue;
+ if (!item.transfer_stub) {
+ only_transfers = false;
+ break;
+ }
+ only_transfers = true;
+ }
+ if (only_transfers) return &.{.open};
if (self.history.archive_len > 0) return &.{.open};
if (self.isRecent()) {
+ if (self.selectedAppImage() != null) return &.{ .open, .open_with, .add_application, .cut, .copy, .rename, .trash, .properties };
if (self.selectedArchive() != null) return &.{ .open, .open_with, .extract, .extract_to, .cut, .copy, .rename, .trash, .properties };
if (self.canOpenWith()) return &.{ .open, .open_with, .cut, .copy, .rename, .trash, .properties };
return &.{ .open, .cut, .copy, .rename, .trash, .properties };
}
+ if (self.selectedAppImage() != null) return &.{ .open, .open_with, .add_application, .cut, .copy, .paste, .rename, .trash, .properties };
if (self.selectedArchive() != null) return &.{ .open, .open_with, .extract, .extract_to, .cut, .copy, .paste, .rename, .trash, .properties };
if (self.canOpenWith()) return &.{ .open, .open_with, .cut, .copy, .paste, .rename, .trash, .properties };
if (self.hasSizeSelection()) return &.{ .open, .cut, .copy, .paste, .rename, .trash, .size, .properties };
@@ -216,26 +241,28 @@ pub fn placeActions(self: *App) []const PlaceAction {
}
pub fn menuLabels(self: *App) []const []const u8 {
- return switch (self.menu orelse return &.{}) {
- .new => &.{ "New Folder", "New File" },
- .sort => &.{ "Name: A to Z", "Name: Z to A", "Largest first", "Newest first", "Type: A to Z", "Smallest first", "Oldest first", "Type: Z to A" },
+ const messages: []const i18n.Message = switch (self.menu orelse return &.{}) {
+ .new => &.{ i18n.msg("New Folder"), i18n.msg("New File") },
+ .sort => &.{ i18n.msg("Name: A to Z"), i18n.msg("Name: Z to A"), i18n.msg("Largest first"), i18n.msg("Newest first"), i18n.msg("Type: A to Z"), i18n.msg("Smallest first"), i18n.msg("Oldest first"), i18n.msg("Type: Z to A") },
.filter => if (self.repository() != null)
- &.{ "Folders only", "Show hidden files", "Show changed files", "Show full paths" }
+ &.{ i18n.msg("Folders only"), i18n.msg("Show hidden files"), i18n.msg("Show changed files"), i18n.msg("Show full paths") }
else
- &.{ "Folders only", "Show hidden files" },
- .file => blk: {
+ &.{ i18n.msg("Folders only"), i18n.msg("Show hidden files") },
+ .file => {
const actions = self.fileActions();
for (actions, 0..) |action, i| self.file_menu_labels[i] = action.label();
- break :blk self.file_menu_labels[0..actions.len];
+ return self.file_menu_labels[0..actions.len];
},
- .sidebar, .device => blk: {
+ .sidebar, .device => {
const actions = self.placeActions();
for (actions, 0..) |action, i| self.place_menu_labels[i] = action.label();
- break :blk self.place_menu_labels[0..actions.len];
+ return self.place_menu_labels[0..actions.len];
},
- .background => if (self.history.archive_len > 0 or self.isRecent()) &.{"Refresh"} else &.{ "New Folder", "New File", "Paste", "Refresh" },
- .chooser_filter => self.chooser_filter_labels.items,
+ .background => if (self.history.archive_len > 0 or self.isRecent()) &.{i18n.msg("Refresh")} else &.{ i18n.msg("New Folder"), i18n.msg("New File"), i18n.msg("Paste"), i18n.msg("Refresh") },
+ .chooser_filter => return self.chooser_filter_labels.items,
};
+ for (messages, 0..) |message, i| self.menu_label_text[i] = message.get();
+ return self.menu_label_text[0..messages.len];
}
pub fn openMenu(self: *App, kind: MenuKind, x: f64, y: f64) void {
@@ -317,6 +344,7 @@ pub fn runMenu(self: *App, row: usize) void {
.file => if (file_action) |action| switch (action) {
.open => self.activateSelected(),
.open_with => self.openWithDialog(),
+ .add_application => self.addApplication(),
.extract => if (self.selectedArchive()) |path| self.startExtraction(path, std.fs.path.dirname(path) orelse "/"),
.extract_to => self.chooseExtractionFolder(),
.cut => self.cutSelected(),
diff --git a/src/files/app_model.zig b/src/files/app_model.zig
index 3844511..9e8223e 100644
--- a/src/files/app_model.zig
+++ b/src/files/app_model.zig
@@ -1,6 +1,8 @@
//! Files view model: the enums and records the App and its parts share.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const anim = @import("ui").anim;
const c = @import("c.zig").api;
const git = @import("git.zig");
@@ -27,20 +29,21 @@ pub const PlaceAction = enum {
pub fn label(self: PlaceAction) []const u8 {
return switch (self) {
- .open => "Open",
- .open_window => "Open in New Window",
- .empty_trash => "Empty Trash…",
- .unpin => "Unpin",
- .remove_pin => "Remove from Places",
- .properties => "Properties",
- .mount => "Mount",
- .eject => "Eject",
+ .open => tr("Open"),
+ .open_window => tr("Open in New Window"),
+ .empty_trash => tr("Empty Trash…"),
+ .unpin => tr("Unpin"),
+ .remove_pin => tr("Remove from Places"),
+ .properties => tr("Properties"),
+ .mount => tr("Mount"),
+ .eject => tr("Eject"),
};
}
};
pub const FileAction = enum {
open,
open_with,
+ add_application,
extract,
extract_to,
cut,
@@ -52,23 +55,25 @@ pub const FileAction = enum {
properties,
pub fn label(self: FileAction) []const u8 {
return switch (self) {
- .open => "Open",
- .open_with => "Open With…",
- .extract => "Extract",
- .extract_to => "Extract to…",
- .cut => "Cut",
- .copy => "Copy",
- .paste => "Paste",
- .rename => "Rename",
- .trash => "Move to Trash",
- .size => "Calculate size",
- .properties => "Properties",
+ .open => tr("Open"),
+ .open_with => tr("Open With…"),
+ .add_application => tr("Add to applications"),
+ .extract => tr("Extract"),
+ .extract_to => tr("Extract to…"),
+ .cut => tr("Cut"),
+ .copy => tr("Copy"),
+ .paste => tr("Paste"),
+ .rename => tr("Rename"),
+ .trash => tr("Move to Trash"),
+ .size => tr("Calculate size"),
+ .properties => tr("Properties"),
};
}
pub fn icon(self: FileAction) IconId {
return switch (self) {
.open => .chevron_right,
.open_with => .grid,
+ .add_application => .plus,
.extract, .extract_to => .folder,
.cut => .cut,
.copy => .copy,
@@ -129,11 +134,13 @@ pub const ToolbarHover = struct {
pub const ViewItem = struct {
git_status: git.Status = .clean,
git_lines: ?git.LineCounts = null,
+ transfer_stub: bool = false,
missing: bool = false,
name: []const u8,
/// Path from the listed folder, shown instead of `name` in the Git view's
/// flat list. `name` stays the file's own name: renaming and opening use it.
label: []const u8 = "",
+ sort_key: ?[]const u8 = null,
path: []const u8,
is_dir: bool,
is_symlink: bool,
@@ -177,6 +184,9 @@ pub const Focus = enum {
};
pub const DialogKind = enum {
+ transfers,
+ torrent_source,
+ torrent_destination,
terminal_close,
new_folder,
new_file,
diff --git a/src/files/app_opening.zig b/src/files/app_opening.zig
index 4317952..4309b74 100644
--- a/src/files/app_opening.zig
+++ b/src/files/app_opening.zig
@@ -1,6 +1,8 @@
//! Files opening: preview, editor, archives, extraction and activation.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const archive = @import("archive.zig");
const c = @import("c.zig").api;
@@ -9,6 +11,15 @@ const theme = @import("../icon_theme.zig");
const chooser_mod = @import("chooser.zig");
const Editor = @import("editor.zig").Editor;
+pub fn addApplication(self: *App) void {
+ const path = self.selectedAppImage() orelse return;
+ self.worker.addApplication(path) catch |err| {
+ self.setStatusNotice(if (err == error.Busy) tr("An application is already being added") else tr("Could not add the application"), true);
+ return;
+ };
+ self.setStatusNotice(tr("Adding to applications…"), false);
+}
+
pub fn previewSelected(self: *App) void {
if (self.chooser != null) return;
const formats = @import("../images/formats.zig");
@@ -37,7 +48,7 @@ pub fn previewSelected(self: *App) void {
if (self.preview_return_fd != null) return;
self.launchPreview(selected) catch |err| {
std.log.warn("could not launch image preview: {}", .{err});
- self.setStatusNotice("Could not open image viewer", true);
+ self.setStatusNotice(tr("Could not open image viewer"), true);
};
}
@@ -49,7 +60,7 @@ pub fn launchEditor(self: *App, token: []const u8) void {
var child = std.process.spawn(self.io, .{
.argv = &.{ @import("../editor/operation.zig").executable(&exe, "rediwm-editor"), "--activation-token", token, "--", path },
}) catch {
- self.setStatusNotice("Could not open Text Editor", true);
+ self.setStatusNotice(tr("Could not open Text Editor"), true);
return;
};
self.worker.recordOpened(path);
@@ -123,16 +134,20 @@ pub fn isPdf(path: []const u8) bool {
pub fn openFile(self: *App, path: []const u8) void {
if (self.chooser != null) return;
+ if (@import("app_torrents.zig").enabled and std.ascii.endsWithIgnoreCase(path, ".torrent")) {
+ self.torrentSource(path);
+ return;
+ }
if (std.ascii.endsWithIgnoreCase(path, ".rediwm-theme")) {
self.worker.installTheme(path);
- self.setStatusNotice("Installing theme…", false);
+ self.setStatusNotice(tr("Installing theme…"), false);
return;
}
const pdf = isPdf(path) and !@import("associations.zig").hasAlternativeDefault(path, "rediwm-pdf.desktop");
if (!pdf) {
@import("associations.zig").launchDefault(path) catch |err| {
std.log.warn("failed to open '{s}': {}", .{ path, err });
- self.setStatusNotice("Could not open file", true);
+ self.setStatusNotice(tr("Could not open file"), true);
return;
};
self.worker.recordOpened(path);
@@ -153,7 +168,7 @@ pub fn openFile(self: *App, path: []const u8) void {
.argv = &.{ executable, "--", path },
}) catch |err| {
std.log.warn("failed to open '{s}': {}", .{ path, err });
- self.setStatusNotice("Could not open file", true);
+ self.setStatusNotice(tr("Could not open file"), true);
return;
};
@@ -171,7 +186,7 @@ pub fn browseArchive(self: *App, path: []const u8) void {
pub fn startExtraction(self: *App, path: []const u8, destination: []const u8) void {
const runner = self.job_runner orelse return;
runner.startArchive(path, destination, null) catch |err| {
- self.setStatusNotice(if (err == error.Busy) "A file operation is already running" else "Could not start extraction", true);
+ self.setStatusNotice(if (err == error.Busy) tr("A file operation is already running") else tr("Could not start extraction"), true);
return;
};
self.job_was_running = true;
@@ -184,7 +199,7 @@ pub fn openArchiveMember(self: *App, path: []const u8, preview: bool) void {
if (len == 0 or path.len <= len) return;
const runner = self.job_runner orelse return;
runner.startArchive(self.history.current[0..len], "/tmp", path[len + 1 ..]) catch |err| {
- self.setStatusNotice(if (err == error.Busy) "A file operation is already running" else "Could not open archive member", true);
+ self.setStatusNotice(if (err == error.Busy) tr("A file operation is already running") else tr("Could not open archive member"), true);
return;
};
self.archive_preview = preview;
@@ -196,7 +211,7 @@ pub fn openArchiveMember(self: *App, path: []const u8, preview: bool) void {
pub fn openExtracted(self: *App, path: []const u8, preview: bool) void {
if (preview and image_formats.candidate(path)) {
- self.previewExtracted(path) catch self.setStatusNotice("Could not open image viewer", true);
+ self.previewExtracted(path) catch self.setStatusNotice(tr("Could not open image viewer"), true);
} else if (preview and @import("../editor/formats.zig").candidate(path)) {
if (self.editor_path == null) self.editor_path = self.allocator.dupeZ(u8, path) catch null;
} else if (!preview or isPdf(path)) self.openFile(path);
@@ -233,7 +248,7 @@ pub fn chooseExtractionFolder(self: *App) void {
.stdout = .pipe,
}) catch {
self.allocator.free(source);
- self.setStatusNotice("Could not open folder picker", true);
+ self.setStatusNotice(tr("Could not open folder picker"), true);
return;
};
const fd = child.stdout.?.handle;
@@ -243,7 +258,7 @@ pub fn chooseExtractionFolder(self: *App) void {
_ = c.close(fd);
child.kill(self.io);
self.allocator.free(source);
- self.setStatusNotice("Could not open folder picker", true);
+ self.setStatusNotice(tr("Could not open folder picker"), true);
return;
}
self.children.add(self.allocator, child.id.?) catch {
@@ -266,14 +281,14 @@ pub fn extractionFolderReady(self: *App) void {
.AGAIN => return,
else => {
self.closeExtractPicker();
- self.setStatusNotice("Could not read folder picker result", true);
+ self.setStatusNotice(tr("Could not read folder picker result"), true);
return;
},
};
if (n == 0) break;
if (self.extract_picker_bytes.items.len + @as(usize, @intCast(n)) > 65536) {
self.closeExtractPicker();
- self.setStatusNotice("Invalid folder picker result", true);
+ self.setStatusNotice(tr("Invalid folder picker result"), true);
return;
}
self.extract_picker_bytes.appendSlice(self.allocator, buffer[0..@intCast(n)]) catch {
@@ -284,7 +299,7 @@ pub fn extractionFolderReady(self: *App) void {
defer self.closeExtractPicker();
if (self.extract_picker_bytes.items.len == 0) return;
const parsed = std.json.parseFromSlice(chooser_mod.Result, self.allocator, self.extract_picker_bytes.items, .{}) catch {
- self.setStatusNotice("Invalid folder picker result", true);
+ self.setStatusNotice(tr("Invalid folder picker result"), true);
return;
};
defer parsed.deinit();
@@ -296,6 +311,12 @@ pub fn extractionFolderReady(self: *App) void {
pub fn activateItem(self: *App, idx: usize) void {
if (idx >= self.items.items.len) return;
const item = self.items.items[idx];
+ if (item.transfer_stub or std.ascii.endsWithIgnoreCase(item.name, ".torrent")) {
+ if (self.torrentForItem(idx)) |t| {
+ self.openTorrentDetails(t.id);
+ return;
+ }
+ }
if (item.is_broken or item.missing) {
return;
}
diff --git a/src/files/app_paint.zig b/src/files/app_paint.zig
index d895028..fed34cd 100644
--- a/src/files/app_paint.zig
+++ b/src/files/app_paint.zig
@@ -1,6 +1,8 @@
//! Files painting: header, toolbar, location bar, rename card and the frame.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig").api;
const recent = @import("recent.zig");
@@ -38,6 +40,10 @@ pub fn renderHeader(self: *App, cr: *c.cairo_t) void {
c.cairo_move_to(cr, 0, @as(f64, @floatFromInt(self.contentTop())) - 0.5);
c.cairo_line_to(cr, width, @as(f64, @floatFromInt(self.contentTop())) - 0.5);
c.cairo_stroke(cr);
+ if (self.transfer_view.active) {
+ self.renderTransferToolbar(cr);
+ return;
+ }
const in_repo = self.inRepository();
for ([_]bool{ false, true }) |content| {
if (content) self.renderToolbarHover(cr);
@@ -48,14 +54,14 @@ pub fn renderHeader(self: *App, cr: *c.cairo_t) void {
const active = (action == .grid and !self.list_view) or (action == .list and self.list_view) or
(action == .filter and (self.folders_only or self.show_hidden or self.changedOnly())) or (action == .search and self.search_visible);
const opts: ui_button.Options = switch (action) {
- .new => .{ .leading_icon = .plus, .label = "New" },
+ .new => .{ .leading_icon = .plus, .label = tr("New") },
.sort => .{ .leading_icon = .sort, .label = switch (self.effectiveSort()) {
- .name, .name_desc => "Name",
- .size, .size_asc => "Size",
- .modified, .modified_asc => "Date",
- .type, .type_desc => "Type",
+ .name, .name_desc => tr("Name"),
+ .size, .size_asc => tr("Size"),
+ .modified, .modified_asc => tr("Date"),
+ .type, .type_desc => tr("Type"),
} },
- .filter => .{ .leading_icon = .filter, .label = "Filter" },
+ .filter => .{ .leading_icon = .filter, .label = tr("Filter") },
else => .{ .variant = .ghost, .icon = header.glyph(action), .icon_scale = 0.56, .label = @tagName(action) },
};
var layer = shell_ui.Layer.begin(cr, .{ .x = @floatCast(r.x), .y = @floatCast(r.y), .w = @floatCast(r.w), .h = @floatCast(r.h) }) orelse continue;
@@ -93,7 +99,7 @@ pub fn renderGitViewToggle(self: *App, cr: *c.cairo_t) void {
c.cairo_stroke(cr);
const r = header.rect(self.w, true, .git_view);
var layer = shell_ui.Layer.begin(cr, .{ .x = @floatCast(r.x), .y = @floatCast(r.y), .w = @floatCast(r.w), .h = @floatCast(r.h) }) orelse return;
- ui_checkbox.paint(&layer.renderer, layer.local(), "Git View", .{
+ ui_checkbox.paint(&layer.renderer, layer.local(), tr("Git View"), .{
.checked = self.git_view,
.focused = r.contains(self.mouse_x, self.mouse_y),
});
@@ -120,28 +126,32 @@ pub fn render(self: *App, cr: *c.cairo_t) void {
c.cairo_rectangle(cr, @floatFromInt(self.sidebarWidth()), @floatFromInt(self.viewTop()), w_f - @as(f64, @floatFromInt(self.sidebarWidth() + self.scrollbarGutter())), @as(f64, @floatFromInt(viewport_h)));
c.cairo_clip(cr);
- if (self.list_view) {
- const column = self.listColumn(if (self.repository() != null) 0 else self.sortColumn());
- setSource(cr, ui_theme.global.surface);
- c.cairo_rectangle(cr, column.x, @floatFromInt(self.viewTop()), column.w, @floatFromInt(viewport_h));
- c.cairo_fill(cr);
- self.paintSortFeedback(cr, .{ .x = column.x, .y = @floatFromInt(self.viewTop()), .w = column.w, .h = @floatFromInt(viewport_h) });
- }
+ if (self.transfer_view.active) {
+ self.renderTransferList(cr);
+ } else {
+ if (self.list_view) {
+ const column = self.listColumn(if (self.repository() != null) 0 else self.sortColumn());
+ setSource(cr, ui_theme.global.surface);
+ c.cairo_rectangle(cr, column.x, @floatFromInt(self.viewTop()), column.w, @floatFromInt(viewport_h));
+ c.cairo_fill(cr);
+ self.paintSortFeedback(cr, .{ .x = column.x, .y = @floatFromInt(self.viewTop()), .w = column.w, .h = @floatFromInt(viewport_h) });
+ }
- if (self.error_message) |err| {
- setSource(cr, ui_theme.global.file_broken);
- drawText(cr, err, @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), shell_ui.textSize(), true);
- } else if (self.loading and self.items.items.len == 0) {
- // A quick listing never shows this; see `scan_notice_delay_ms`.
- if (self.scan_notice_shown) {
+ if (self.error_message) |err| {
+ setSource(cr, ui_theme.global.file_broken);
+ drawText(cr, err, @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), shell_ui.textSize(), true);
+ } else if (self.loading and self.items.items.len == 0) {
+ // A quick listing never shows this; see `scan_notice_delay_ms`.
+ if (self.scan_notice_shown) {
+ setSource(cr, ui_theme.global.window_fg);
+ drawText(cr, tr("Scanning folder..."), @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), shell_ui.textSize(), false);
+ }
+ } else if (self.items.items.len == 0) {
setSource(cr, ui_theme.global.window_fg);
- drawText(cr, "Scanning folder...", @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), shell_ui.textSize(), false);
+ drawText(cr, if (self.search.text.items.len > 0 or self.folders_only) tr("No matching items") else if (self.changedOnly()) tr("No changed files") else if (self.isRecent()) tr("No recent files") else tr("This folder is empty"), @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), shell_ui.textSize(), false);
+ } else {
+ self.renderFileItems(cr, viewport_h);
}
- } else if (self.items.items.len == 0) {
- setSource(cr, ui_theme.global.window_fg);
- drawText(cr, if (self.search.text.items.len > 0 or self.folders_only) "No matching items" else if (self.changedOnly()) "No changed files" else if (self.isRecent()) "No recent files" else "This folder is empty", @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), shell_ui.textSize(), false);
- } else {
- self.renderFileItems(cr, viewport_h);
}
self.renderSelectionBand(cr);
self.renderScrollEdges(cr, viewport_h);
@@ -160,8 +170,9 @@ pub fn render(self: *App, cr: *c.cairo_t) void {
if (self.chooser != null) self.renderChooser(cr) else self.renderStatusBar(cr, h_f);
self.renderTerminal(cr);
- if (self.menu == null and self.dialog == null and self.selection_band == null) self.renderFilenameTip(cr);
+ if (!self.transfer_view.active and self.menu == null and self.dialog == null and self.selection_band == null) self.renderFilenameTip(cr);
if (self.menu != null) self.renderMenu(cr);
+ if (self.menu == null and self.dialog == null) self.renderTorrentTip(cr);
// 6. Modal Dialog
if (self.dialog != null) {
@@ -226,6 +237,7 @@ pub fn pointerCursor(self: *App, x: f64, y: f64) [*:0]const u8 {
if (self.overSidebarDivider(x, y)) return "col-resize";
if (self.chooser != null and self.chooserRect(0).contains(x, y)) return "text";
if (self.focus != .location_bar and !self.search_visible and header.field(self.w).contains(x, y)) return "pointer";
+ if (self.inlineTorrentHit(x, y) != null) return "pointer";
if (self.singleClickIconAt(x, y) != null) return "pointer";
return if (header.field(self.w).contains(x, y)) "text" else "default";
}
@@ -287,7 +299,7 @@ pub fn renderRenameCard(self: *App, cr: *c.cairo_t, card: RenameCard) void {
.variant = .ghost,
.icon = if (i == 0) .checkmark else .close,
.icon_scale = 0.55,
- .label = if (i == 0) "Rename" else "Cancel",
+ .label = if (i == 0) tr("Rename") else tr("Cancel"),
}, .{ .pointer = if (rect.contains(self.mouse_x, self.mouse_y)) .hover else .idle });
layer.finish();
}
@@ -367,7 +379,7 @@ pub fn renderEditor(self: *App, cr: *c.cairo_t, edit: *Editor, rect: header.Rect
const placeholder = search and text.len == 0;
// Half-strength white, not the shell's blue-grey `faint`.
setSource(cr, if (placeholder) withAlpha(t.fg, 0.5) else t.fg);
- drawText(cr, if (placeholder) "Search this folder" else text, x, top + metrics.ascent, fieldFontSize(), false);
+ drawText(cr, if (placeholder) tr("Search this folder") else text, x, top + metrics.ascent, fieldFontSize(), false);
if (focused) {
setSource(cr, t.caretColor());
c.cairo_rectangle(cr, x + pen, top, t.caret_width, ink_h);
@@ -403,13 +415,14 @@ pub fn renderStatusBar(self: *App, cr: *c.cairo_t, h_f: f64) void {
}
}
- if (prog) |p| {
+ if (self.transfer_view.active) {
+ setSource(cr, if (self.torrents.message().len > 0) ui_theme.global.danger else ui_theme.global.window_fg);
+ const count = self.torrents.items().len;
+ status_text = if (self.torrents.message().len > 0) self.torrents.message() else if (self.torrents.retry_at != null) tr("Connecting…") else i18n.fmt(&status_buf, i18n.trn("{count} transfer · Downloads continue after closing Files.", "{count} transfers · Downloads continue after closing Files.", count), .{ .count = count }) catch tr("Transfers");
+ } else if (prog) |p| {
setSource(cr, accent);
- status_text = std.fmt.bufPrint(
- &status_buf,
- "{s} {d}/{d}: {s}... (Esc to cancel)",
- .{ if (self.job_runner.?.kind == .extract or self.job_runner.?.kind == .open_archive_member) @as([]const u8, "Extracting") else "Transferring", p.processed_items + 1, p.total_items, p.current_name },
- ) catch "Transferring...";
+ const pattern = if (self.job_runner.?.kind == .extract or self.job_runner.?.kind == .open_archive_member) tr("Extracting {current}/{total}: {name}... (Esc to cancel)") else tr("Transferring {current}/{total}: {name}... (Esc to cancel)");
+ status_text = i18n.fmt(&status_buf, pattern, .{ .current = p.processed_items + 1, .total = p.total_items, .name = p.current_name }) catch tr("Transferring...");
} else if (self.status_notice != null and nowMs() < self.status_notice_until) {
if (self.status_is_error) {
setSource(cr, ui_theme.global.danger);
@@ -419,7 +432,7 @@ pub fn renderStatusBar(self: *App, cr: *c.cairo_t, h_f: f64) void {
status_text = self.status_notice.?;
} else if (self.error_message) |err| {
setSource(cr, ui_theme.global.danger);
- status_text = std.fmt.bufPrint(&status_buf, "Error: {s}", .{err}) catch err;
+ status_text = i18n.fmt(&status_buf, tr("Error: {value}"), .{ .value = err }) catch err;
} else {
setSource(cr, ui_theme.global.window_fg);
var sel_count: usize = 0;
@@ -434,18 +447,11 @@ pub fn renderStatusBar(self: *App, cr: *c.cairo_t, h_f: f64) void {
if (sel_count > 0) {
var size_buf: [64]u8 = undefined;
const sz = formatSize(sel_bytes, &size_buf);
- status_text = std.fmt.bufPrint(
- &status_buf,
- "{d} item{s} selected · {s}",
- .{ sel_count, if (sel_count == 1) "" else "s", sz },
- ) catch "Selected items";
+ status_text = i18n.fmt(&status_buf, i18n.trn("{count} item selected · {size}", "{count} items selected · {size}", sel_count), .{ .count = sel_count, .size = sz }) catch tr("Selected items");
} else {
const more = if (self.changedOnly() and self.snapshot != null and self.snapshot.?.changed_truncated) "+" else "";
- status_text = std.fmt.bufPrint(
- &status_buf,
- "{d}{s} item{s}",
- .{ self.items.items.len, more, if (self.items.items.len == 1 and more.len == 0) "" else "s" },
- ) catch "Items";
+ const count = self.items.items.len;
+ status_text = i18n.fmt(&status_buf, i18n.trn("{count}{more} item", "{count}{more} items", if (more.len > 0) @max(2, count) else count), .{ .count = count, .more = more }) catch tr("Items");
}
}
@@ -454,6 +460,10 @@ pub fn renderStatusBar(self: *App, cr: *c.cairo_t, h_f: f64) void {
pub fn renderDialog(self: *App, cr: *c.cairo_t) void {
const dlg = self.dialog orelse return;
+ if (dlg.kind == .transfers) {
+ self.renderTransfers(cr);
+ return;
+ }
if (dlg.kind == .properties) {
self.dialog.?.properties.?.draw(cr, self.w, self.h, self.mouse_x, self.mouse_y, self.theme_cfg, self.io);
return;
@@ -498,25 +508,25 @@ pub fn renderDialog(self: *App, cr: *c.cairo_t) void {
var buf: [256]u8 = undefined;
if (dlg.kind == .terminal_close) {
- drawEllipsis(cr, "Closing ends this shell and its running jobs.", dx + 16, dy + 56, dw - 32, shell_ui.textSize(), false);
- self.renderButton(cr, dx + dw - 184, dy + 84, 80, 28, "Close", true);
- self.renderButton(cr, dx + dw - 96, dy + 84, 80, 28, "Cancel", true);
+ drawEllipsis(cr, tr("Closing ends this shell and its running jobs."), dx + 16, dy + 56, dw - 32, shell_ui.textSize(), false);
+ self.renderButton(cr, dx + dw - 184, dy + 84, 80, 28, tr("Close"), true);
+ self.renderButton(cr, dx + dw - 96, dy + 84, 80, 28, tr("Cancel"), true);
} else if (dlg.kind == .conflict) {
const conflict_str = dlg.conflict_name orelse "";
- const conflict_msg = std.fmt.bufPrint(&buf, "File '{s}' already exists in destination.", .{conflict_str}) catch "Conflict";
+ const conflict_msg = i18n.fmt(&buf, tr("File '{value}' already exists in destination."), .{ .value = conflict_str }) catch tr("Conflict");
setSource(cr, t.fg);
drawEllipsis(cr, conflict_msg, dx + 16, dy + 56, dw - 32, shell_ui.textSize(), false);
- self.renderButton(cr, dx + 16, dy + 84, (dw - 48) / 3, 28, "Skip (S)", true);
- self.renderButton(cr, dx + 24 + (dw - 48) / 3, dy + 84, (dw - 48) / 3, 28, "Rename (R)", true);
- self.renderButton(cr, dx + 32 + 2 * (dw - 48) / 3, dy + 84, (dw - 48) / 3, 28, "Cancel (C)", true);
+ self.renderButton(cr, dx + 16, dy + 84, (dw - 48) / 3, 28, tr("Skip (S)"), true);
+ self.renderButton(cr, dx + 24 + (dw - 48) / 3, dy + 84, (dw - 48) / 3, 28, tr("Rename (R)"), true);
+ self.renderButton(cr, dx + 32 + 2 * (dw - 48) / 3, dy + 84, (dw - 48) / 3, 28, tr("Cancel (C)"), true);
} else {
self.renderEditor(cr, &self.dialog.?.edit, self.editorRect(), true, false);
setSource(cr, t.fg);
- if (dw >= 420) drawText(cr, "Enter confirms · Esc cancels", dx + 16, dy + 102, shell_ui.textSize(), false);
+ if (dw >= 420) drawText(cr, tr("Enter confirms · Esc cancels"), dx + 16, dy + 102, shell_ui.textSize(), false);
- self.renderButton(cr, dx + dw - 184, dy + 84, 80, 28, "OK", true);
- self.renderButton(cr, dx + dw - 96, dy + 84, 80, 28, "Cancel", true);
+ self.renderButton(cr, dx + dw - 184, dy + 84, 80, 28, tr("OK"), true);
+ self.renderButton(cr, dx + dw - 96, dy + 84, 80, 28, tr("Cancel"), true);
}
}
diff --git a/src/files/app_places.zig b/src/files/app_places.zig
index dd58957..80e436d 100644
--- a/src/files/app_places.zig
+++ b/src/files/app_places.zig
@@ -1,6 +1,8 @@
//! Files sidebar rows: Places, pins and devices, their drops and actions.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig").api;
const recent = @import("recent.zig");
@@ -88,7 +90,7 @@ pub fn openPlace(self: *App, index: usize) void {
var buf: [4096]u8 = undefined;
if (self.placePath(index, &buf)) |path| {
if (index == 1) std.Io.Dir.cwd().createDirPath(self.io, path) catch {
- self.setStatusNotice("Could not open Trash", true);
+ self.setStatusNotice(tr("Could not open Trash"), true);
return;
};
self.navigate(path);
@@ -104,11 +106,11 @@ pub fn openPlaceWindow(self: *App, index: usize) void {
else
self.placePath(index, &buf) orelse return;
if (index == 1) std.Io.Dir.cwd().createDirPath(self.io, path) catch {
- self.setStatusNotice("Could not open Trash", true);
+ self.setStatusNotice(tr("Could not open Trash"), true);
return;
};
if (!recent.isLocation(path) and pins_mod.kindOf(path) != .dir) {
- self.setStatusNotice("Could not open folder", true);
+ self.setStatusNotice(tr("Could not open folder"), true);
return;
}
var exe: [4096]u8 = undefined;
@@ -117,12 +119,12 @@ pub fn openPlaceWindow(self: *App, index: usize) void {
var child = std.process.spawn(self.io, .{
.argv = &.{ executable, path },
}) catch {
- self.setStatusNotice("Could not open new window", true);
+ self.setStatusNotice(tr("Could not open new window"), true);
return;
};
self.children.add(self.allocator, child.id.?) catch {
child.kill(self.io);
- self.setStatusNotice("Could not open new window", true);
+ self.setStatusNotice(tr("Could not open new window"), true);
};
}
@@ -140,7 +142,7 @@ pub fn openPin(self: *App, j: usize) void {
} else self.openFile(pin.path),
.missing => {
var buf: [160]u8 = undefined;
- self.setStatusNotice(std.fmt.bufPrint(&buf, "{s} is no longer there", .{pin.name()}) catch "Not found", true);
+ self.setStatusNotice(i18n.fmt(&buf, tr("{name} is no longer there"), .{ .name = pin.name() }) catch tr("Not found"), true);
self.invalidate();
},
}
@@ -163,6 +165,7 @@ pub fn placeAt(self: *App, x: f64, y: f64) ?usize {
/// Whether place `index` is the folder being shown; a device also when the
/// folder is inside it.
pub fn placeActive(self: *App, index: usize) bool {
+ if (self.transfer_view.active) return false;
if (self.deviceAt(index)) |volume| {
const mount = volume.mount orelse return false;
return volumes_mod.contains(mount, self.history.current);
@@ -242,6 +245,7 @@ pub fn dropMotion(self: *App, x: f64, y: f64) bool {
/// Content drops use the folder under the pointer, or the displayed folder
/// on empty space. Archives, dialogs, and file choosers are not targets.
pub fn dropDirectoryAt(self: *App, x: f64, y: f64) ?[]const u8 {
+ if (self.transfer_view.active) return null;
if (self.chooser != null or self.dialog != null or self.menu != null or self.history.archive_len > 0) return null;
if (self.job_state == .running or self.job_state == .waiting_conflict) return null;
if (x < @as(f64, @floatFromInt(self.sidebarWidth())) or x >= @as(f64, @floatFromInt(self.w - self.scrollbarGutter())) or
@@ -323,11 +327,11 @@ pub fn pinDropped(self: *App, slot: usize, paths: []const []const u8) void {
self.savePins();
self.pinsChanged();
self.setStatusNotice(if (added == 1)
- std.fmt.bufPrint(&buf, "Added {s} to Places", .{first}) catch "Added to Places"
+ i18n.fmt(&buf, tr("Added {value} to Places"), .{ .value = first }) catch tr("Added to Places")
else
- std.fmt.bufPrint(&buf, "Added {d} items to Places", .{added}) catch "Added to Places", false);
+ i18n.fmt(&buf, tr("Added {value} items to Places"), .{ .value = added }) catch tr("Added to Places"), false);
} else {
- self.setStatusNotice(if (full) "Places is full" else if (listed) "Already in Places" else "Nothing to add to Places", true);
+ self.setStatusNotice(if (full) tr("Places is full") else if (listed) tr("Already in Places") else tr("Nothing to add to Places"), true);
}
}
@@ -344,7 +348,7 @@ pub fn removePin(self: *App, j: usize) void {
pub fn savePins(self: *App) void {
const file = self.pins_path orelse return;
- self.pins.save(self.allocator, self.io, file) catch self.setStatusNotice("Could not save Places", true);
+ self.pins.save(self.allocator, self.io, file) catch self.setStatusNotice(tr("Could not save Places"), true);
}
pub fn reloadPins(self: *App) void {
@@ -384,7 +388,7 @@ pub fn deviceLabel(volume: *const volumes_mod.Volume, buf: []u8) []const u8 {
if (volume.label.len > 0) return volume.label;
var size: [32]u8 = undefined;
const bytes: i64 = @intCast(@min(volume.size, std.math.maxInt(i64)));
- return std.fmt.bufPrint(buf, "{s} Volume", .{formatSize(bytes, &size)}) catch "Volume";
+ return i18n.fmt(buf, tr("{size} Volume"), .{ .size = formatSize(bytes, &size) }) catch tr("Volume");
}
/// Starts watching for volumes. Once, after the window exists.
@@ -420,7 +424,7 @@ pub fn startDeviceOp(self: *App, volume: *const volumes_mod.Volume, unmount: boo
self.device_op = .{ .id = id, .unmount = unmount, .open = open, .navigation = self.navigation_count };
if (unmount) monitor.unmount(volume.id) else monitor.mount(volume.id);
// Unmounting waits for pending writes, which can take a while.
- self.setStatusNotice(if (unmount) "Ejecting…" else "Mounting…", false);
+ self.setStatusNotice(if (unmount) tr("Ejecting…") else tr("Mounting…"), false);
}
/// A click on a device row: browse it, mounting it first when it is not.
@@ -442,7 +446,7 @@ pub fn ejectDevice(self: *App, k: usize) void {
const mount = volume.mount orelse return;
if (self.device_op != null) return;
if (self.job_state == .running) {
- self.setStatusNotice("Finish the running file operation first", true);
+ self.setStatusNotice(tr("Finish the running file operation first"), true);
return;
}
// The window must not be what keeps the volume busy.
@@ -455,15 +459,15 @@ pub fn deviceResult(self: *App, result: *const volumes_mod.Result) void {
self.device_op = null;
defer self.allocator.free(op.id);
var label_buf: [96]u8 = undefined;
- const name = if (self.device_list.find(volumes_mod.resultId(result))) |volume| deviceLabel(volume, &label_buf) else "Device";
+ const name = if (self.device_list.find(volumes_mod.resultId(result))) |volume| deviceLabel(volume, &label_buf) else tr("Device");
var buf: [160]u8 = undefined;
if (result.ok == 0) {
self.setStatusNotice(volumes_mod.failureMessage(&buf, result, name), true);
} else if (op.unmount) {
- self.setStatusNotice(std.fmt.bufPrint(&buf, "{s} can be safely removed", .{name}) catch "Ejected", false);
+ self.setStatusNotice(i18n.fmt(&buf, tr("{name} can be safely removed"), .{ .name = name }) catch tr("Ejected"), false);
} else if (op.open and op.navigation == self.navigation_count and volumes_mod.resultPath(result).len > 0) {
self.navigate(volumes_mod.resultPath(result));
} else {
- self.setStatusNotice(std.fmt.bufPrint(&buf, "{s} mounted", .{name}) catch "Mounted", false);
+ self.setStatusNotice(i18n.fmt(&buf, tr("{name} mounted"), .{ .name = name }) catch tr("Mounted"), false);
}
}
diff --git a/src/files/app_pointer.zig b/src/files/app_pointer.zig
index 7f1c544..5069f2a 100644
--- a/src/files/app_pointer.zig
+++ b/src/files/app_pointer.zig
@@ -18,6 +18,8 @@ const gitBranchRow = App.gitBranchRow;
// Input handlers
pub fn hoverKey(self: *App) usize {
+ if (self.dialog) |dlg| if (dlg.kind == .transfers) return self.transfersHover();
+ if (self.dialog == null and self.torrentSidebarHit(self.mouse_x, self.mouse_y)) return std.math.maxInt(usize) - 2001;
const x = self.mouse_x;
const y = self.mouse_y;
if (self.dialog) |dlg| {
@@ -40,6 +42,8 @@ pub fn hoverKey(self: *App) usize {
return 0;
}
if (self.menu != null) return 100 + (self.menuHit(x, y) orelse 99);
+ if (self.transfer_view.active and (y < @as(f64, @floatFromInt(self.contentTop())) or
+ (x >= @as(f64, @floatFromInt(self.sidebarWidth())) and y < @as(f64, @floatFromInt(self.contentBottom()))))) return self.transferPaneHover();
if (self.terminalHit(x, y)) |index| return 900 + index;
if (self.sidebar_resize != null or self.overSidebarDivider(x, y)) return 0;
if (self.chooser) |opts| {
@@ -68,6 +72,7 @@ pub fn hoverKey(self: *App) usize {
};
}
}
+ if (self.inlineTorrentHit(x, y)) |hit| return std.math.maxInt(usize) - 3000 - hit.index * 2 - @intFromBool(hit.toggle);
if (self.itemAt(x, y)) |i| {
if (self.sizeButtonRect(i)) |rect| {
if (rect.contains(x, y)) {
@@ -340,6 +345,10 @@ pub fn handleButton(self: *App, button: u32, pressed: bool) void {
// Modal Dialog click handling
if (self.dialog != null and button != 0x110) return;
if (self.dialog) |dlg| {
+ if (dlg.kind == .transfers) {
+ self.transfersClick(x, y);
+ return;
+ }
if (dlg.kind == .properties) {
const action = self.dialog.?.properties.?.click(self.w, self.h, x, y);
self.propertiesAction(action);
@@ -431,6 +440,8 @@ pub fn handleButton(self: *App, button: u32, pressed: bool) void {
self.invalidate();
if (button == 0x110) return;
}
+ if (self.transfer_view.active and self.transferPaneClick(x, y, button)) return;
+ if (button == 0x110 and self.inlineTorrentClick(x, y)) return;
if (button == 0x111) {
if (self.placeAt(x, y)) |index| {
self.menu_place = index;
@@ -485,6 +496,10 @@ pub fn handleButton(self: *App, button: u32, pressed: bool) void {
return;
}
}
+ if (self.torrentSidebarHit(x, y)) {
+ self.openTransfers();
+ return;
+ }
if (self.ejectAt(x, y)) |k| {
self.ejectDevice(k);
return;
@@ -612,7 +627,7 @@ pub fn handleButton(self: *App, button: u32, pressed: bool) void {
self.selection_anchor = idx;
}
if (self.chooser != null and !self.items.items[idx].is_dir) self.setChooserName(self.items.items[idx].name);
- if (self.chooser == null and button == 0x110 and self.items.items[idx].selected) self.drag_origin = .{ .x = x, .y = y };
+ if (self.chooser == null and button == 0x110 and self.items.items[idx].selected and !self.items.items[idx].missing) self.drag_origin = .{ .x = x, .y = y };
if (single_click) self.open_on_release = idx;
} else {
// A background press starts a rubber-band selection; pressing
diff --git a/src/files/app_scroll.zig b/src/files/app_scroll.zig
index 5e75abd..f8bf501 100644
--- a/src/files/app_scroll.zig
+++ b/src/files/app_scroll.zig
@@ -11,7 +11,7 @@ const properties = @import("properties.zig");
const nowMs = @import("app_draw.zig").nowMs;
pub fn maxHorizontalScroll(self: *App) f64 {
- if (!self.list_view) return 0;
+ if (self.transfer_view.active or !self.list_view) return 0;
var total: f64 = 0;
for (self.listWidths()) |width| total += width;
const overflow = total - @as(f64, @floatFromInt(self.cellWidth() - 20));
diff --git a/src/files/app_sidebar_paint.zig b/src/files/app_sidebar_paint.zig
index 4872229..c4da993 100644
--- a/src/files/app_sidebar_paint.zig
+++ b/src/files/app_sidebar_paint.zig
@@ -1,6 +1,8 @@
//! Files sidebar painting.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const scrollbar = @import("ui").widgets.scrollbar;
const c = @import("c.zig").api;
@@ -25,7 +27,7 @@ const deviceLabel = App.deviceLabel;
pub fn renderDevices(self: *App, cr: *c.cairo_t, content_width: f64) void {
if (self.device_list.items.len == 0) return;
setSource(cr, ui_theme.global.sidebarForeground());
- drawText(cr, "DEVICES", 24, @floatFromInt(self.placeY(self.deviceBase()) - 12), shell_ui.headingSize(), true);
+ drawText(cr, tr("DEVICES"), 24, @floatFromInt(self.placeY(self.deviceBase()) - 12), shell_ui.headingSize(), true);
const hovered = self.hoverKey();
for (self.device_list.items, 0..) |*volume, k| {
const index = self.deviceBase() + k;
@@ -145,6 +147,7 @@ pub fn renderSidebar(self: *App, cr: *c.cairo_t) void {
c.cairo_set_operator(cr, c.CAIRO_OPERATOR_SOURCE);
c.cairo_paint(cr);
c.cairo_set_operator(cr, c.CAIRO_OPERATOR_OVER);
+ self.renderTorrentSidebar(cr);
self.renderGitSidebar(cr, content_width);
// Under the labels: the glide passes over the PLACES heading.
const glide = self.nav_hover.frame;
@@ -153,7 +156,7 @@ pub fn renderSidebar(self: *App, cr: *c.cairo_t) void {
shell_ui.drawSidebarHover(cr, .{ .x = @floatCast(box.x), .y = @floatCast(box.y), .w = @floatCast(box.w), .h = @floatCast(box.h) }, glide.alpha);
}
setSource(cr, ui_theme.global.sidebarForeground());
- drawText(cr, "PLACES", 24, @floatFromInt(self.placeY(places_start) - 12), shell_ui.headingSize(), true);
+ drawText(cr, tr("PLACES"), 24, @floatFromInt(self.placeY(places_start) - 12), shell_ui.headingSize(), true);
for (0..self.deviceBase()) |i| {
if (!self.placeVisible(i)) continue;
const y: f64 = @floatFromInt(self.placeY(i));
@@ -161,13 +164,13 @@ pub fn renderSidebar(self: *App, cr: *c.cairo_t) void {
const path = self.placePath(i, &buf) orelse continue;
const pin: ?pins_mod.Pin = if (self.pinIndex(i)) |j| self.pins.items.items[j] else null;
const label = switch (self.rowKind(i)) {
- .builtin => |b| places[b],
+ .builtin => |b| App.place_labels[b].get(),
.pin => pin.?.name(),
.device => unreachable,
};
// A pin whose target is gone stays, dimmed, until it is removed.
const alpha: f32 = if (pin != null and pin.?.kind == .missing) 0.5 else 1;
- const active = std.mem.eql(u8, path, self.history.current);
+ const active = !self.transfer_view.active and std.mem.eql(u8, path, self.history.current);
if (active) {
const row = self.placeRect(i);
shell_ui.drawSidebarSelected(cr, .{ .x = @floatCast(row.x), .y = @floatCast(row.y), .w = @floatCast(row.w), .h = @floatCast(row.h) });
@@ -233,7 +236,7 @@ pub fn renderPinDrop(self: *App, cr: *c.cairo_t) void {
// Bottom of the sidebar content in scrolled coordinates: the Git card is the last section.
pub fn sidebarExtent(self: *App) i32 {
- return self.pinRowY(self.pins.items.items.len) + self.sidebar_scroll + 8 + self.deviceBlock() + self.gitSidebarHeight();
+ return self.pinRowY(self.pins.items.items.len) + self.sidebar_scroll + 8 + self.deviceBlock() + self.gitSidebarHeight() + self.torrentSidebarHeight();
}
pub fn renderSidebarScrollbar(self: *App, cr: *c.cairo_t) void {
diff --git a/src/files/app_terminal.zig b/src/files/app_terminal.zig
index b8f4758..63637e2 100644
--- a/src/files/app_terminal.zig
+++ b/src/files/app_terminal.zig
@@ -1,5 +1,7 @@
//! Files terminal controller. All terminal state stays in this client process.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const model = @import("terminal/model.zig");
const tc = model.c;
@@ -30,6 +32,48 @@ pub fn terminalBody(self: *App) Rect {
const rect = self.terminalRect();
return .{ .x = rect.x + 8, .y = rect.y + header_height + 6, .w = @max(0, rect.w - 16 - @as(f64, @floatFromInt(self.scrollbarGutter()))), .h = @max(0, rect.h - header_height - 12) };
}
+pub fn terminalDropAt(self: *App, x: f64, y: f64) bool {
+ if (self.chooser != null or self.dialog != null or self.menu != null or self.terminal.close_at != null or !self.terminal.visible or self.terminalHeight() <= 0) return false;
+ const session = self.terminal.session orelse return false;
+ return tc.ft_running(session) and self.terminalBody().contains(x, y);
+}
+
+/// Quote each absolute path as one shell word, with a trailing argument gap.
+/// Control bytes cannot survive the terminal's paste filtering unchanged.
+pub fn quotePaths(allocator: std.mem.Allocator, paths: []const []const u8) ![]u8 {
+ var bytes: std.ArrayList(u8) = .empty;
+ defer bytes.deinit(allocator);
+ for (paths) |path| {
+ if (!std.fs.path.isAbsolute(path)) return error.InvalidPath;
+ var size: usize = 3;
+ for (path) |ch| {
+ if (ch < 32 or ch == 127) return error.ControlCharacter;
+ size += if (ch == '\'') @as(usize, 4) else 1;
+ if (size > @import("transfer.zig").limit) return error.TooLong;
+ }
+ if (bytes.items.len > @import("transfer.zig").limit - size) return error.TooLong;
+ try bytes.append(allocator, '\'');
+ for (path) |ch| {
+ if (ch == '\'') try bytes.appendSlice(allocator, "'\\''") else try bytes.append(allocator, ch);
+ }
+ try bytes.appendSlice(allocator, "' ");
+ }
+ return bytes.toOwnedSlice(allocator);
+}
+
+pub fn terminalDropPaths(self: *App, paths: []const []const u8) void {
+ if (self.dialog != null or self.menu != null or !self.terminal.visible or self.terminal.close_at != null) return;
+ const session = self.terminal.session orelse return;
+ if (!tc.ft_running(session)) return;
+ const bytes = quotePaths(self.allocator, paths) catch |err| {
+ self.setStatusNotice(if (err == error.ControlCharacter) tr("Cannot insert paths containing control characters") else tr("The dropped paths are invalid or too long"), true);
+ return;
+ };
+ defer self.allocator.free(bytes);
+ if (!tc.ft_paste(session, bytes.ptr, bytes.len)) self.setStatusNotice(tr("Terminal paste exceeds the available input queue"), true);
+ self.terminal.selection = null;
+ self.terminalDamage();
+}
/// Button indices: status toggle, collapse, external terminal, restart.
pub fn terminalControl(self: *App, index: usize) Rect {
const rect = self.terminalRect();
@@ -112,10 +156,11 @@ pub fn terminalStart(self: *App) void {
tc.ft_free(old);
self.terminal.session = null;
}
+ self.edit_revision += 1;
self.terminal.error_message = null;
self.terminal.selection = null;
const session = tc.ft_new(12, 80) orelse {
- self.terminal.error_message = "Could not allocate terminal";
+ self.terminal.error_message = tr("Could not allocate terminal");
self.invalidate();
return;
};
@@ -123,14 +168,14 @@ pub fn terminalStart(self: *App) void {
self.terminal.generation = std.math.maxInt(u64);
rememberDirectory(self);
const directory = self.terminal.directory orelse self.allocator.dupeZ(u8, self.home_dir) catch {
- self.terminal.error_message = "No terminal directory";
+ self.terminal.error_message = tr("No terminal directory");
return;
};
defer if (self.terminal.directory == null) self.allocator.free(directory);
var helper_buf: [4096]u8 = undefined;
var plugin_buf: [4096]u8 = undefined;
const helper = self.terminalHelper("rediwm-files-terminal", &helper_buf) catch {
- self.terminal.error_message = "Terminal helper is unavailable";
+ self.terminal.error_message = tr("Terminal helper is unavailable");
return;
};
const plugin = self.terminalHelper("../lib/rediwm/files-bash.so", &plugin_buf) catch "";
@@ -140,7 +185,7 @@ pub fn terminalStart(self: *App) void {
pub fn terminalToggle(self: *App) void {
if (self.chooser != null or self.dialog != null or self.terminal.close_at != null) return;
if (!self.terminal.visible and self.terminalMaximum() == 0) {
- self.setStatusNotice("Enlarge this window to show the terminal", false);
+ self.setStatusNotice(tr("Enlarge this window to show the terminal"), false);
return;
}
self.cancelDrag();
@@ -427,7 +472,7 @@ pub fn terminalRequestClose(self: *App) void {
if (self.dialog != null) return;
// A snapshot cannot prove that no job began since it arrived. Confirm
// every live session, including hidden and unintegrated shells.
- self.dialog = .{ .kind = .terminal_close, .title = "Close terminal session?" };
+ self.dialog = .{ .kind = .terminal_close, .title = tr("Close terminal session?") };
self.invalidate();
return;
};
diff --git a/src/files/app_tests.zig b/src/files/app_tests.zig
index 20fe60e..dcabfad 100644
--- a/src/files/app_tests.zig
+++ b/src/files/app_tests.zig
@@ -109,6 +109,30 @@ test "search and sorting preserve visible selection across snapshot rebuilds" {
try std.testing.expectEqualStrings("Documents", app.items.items[0].name);
}
+test "Unicode folder filtering and sorting retain folder size and date rules" {
+ const listing = @import("app_listing.zig");
+ var app: App = .{ .allocator = std.testing.allocator, .io = undefined, .environ = undefined, .theme_cfg = undefined, .worker = undefined, .history = .{ .allocator = std.testing.allocator, .current = "/" }, .home_dir = "/", .items_arena = undefined };
+ defer app.search.text.deinit(app.allocator);
+ const source: worker_mod.Item = .{ .name = "CÁMARA — Терминал", .path = "/name", .is_dir = false, .is_symlink = false, .is_broken = false, .bytes = 10, .mtime = 20, .icon_name = "" };
+ for ([_][]const u8{ "camara", "Cámara", "терм", "ТЕРМ" }) |query| {
+ app.search.text.clearRetainingCapacity();
+ try app.search.text.appendSlice(app.allocator, query);
+ try std.testing.expect(app.matches(source));
+ }
+ var a: ViewItem = .{ .name = "z", .path = "/z", .sort_key = "a", .is_dir = true, .is_symlink = false, .is_broken = false, .bytes = 10, .mtime = 20, .icon_name = "" };
+ var b: ViewItem = .{ .name = "a", .path = "/a", .sort_key = "z", .is_dir = false, .is_symlink = false, .is_broken = false, .bytes = 100, .mtime = 30, .icon_name = "" };
+ try std.testing.expect(listing.lessThan(.name, a, b));
+ try std.testing.expect(listing.lessThan(.size, a, b));
+ try std.testing.expect(listing.lessThan(.modified, b, a));
+ try std.testing.expect(listing.lessThan(.modified_asc, a, b));
+ a.is_dir = false;
+ try std.testing.expect(listing.lessThan(.name, a, b));
+ try std.testing.expect(listing.lessThan(.name_desc, b, a));
+ try std.testing.expect(listing.lessThan(.size, b, a));
+ b.bytes = a.bytes;
+ try std.testing.expect(listing.lessThan(.size, a, b));
+}
+
test "context menu stays inside the client and keyboard activation closes it" {
var app = App{
.allocator = std.testing.allocator,
@@ -190,6 +214,23 @@ test "terminal drawer shares viewport geometry and preserves its preferred heigh
try std.testing.expectEqual(@as(i32, 220), app.terminalHeight());
}
+test "terminal dropped paths quote shell metacharacters and reject lossy paste bytes" {
+ const quotePaths = @import("app_terminal.zig").quotePaths;
+ const allocator = std.testing.allocator;
+ const quoted = try quotePaths(allocator, &.{ "/tmp/a space's 雪", "/tmp/\"$()`;\\" });
+ defer allocator.free(quoted);
+ try std.testing.expectEqualStrings("'/tmp/a space'\\''s 雪' '/tmp/\"$()`;\\' ", quoted);
+ for ([_][]const u8{ "/tmp/new\nline", "/tmp/carriage\rreturn", "/tmp/tab\t", "/tmp/escape\x1b", "/tmp/delete\x7f" }) |path| {
+ try std.testing.expectError(error.ControlCharacter, quotePaths(allocator, &.{ "/tmp/valid", path }));
+ }
+ try std.testing.expectError(error.InvalidPath, quotePaths(allocator, &.{"relative"}));
+ const huge = try allocator.alloc(u8, @import("transfer.zig").limit);
+ defer allocator.free(huge);
+ @memset(huge, '\'');
+ huge[0] = '/';
+ try std.testing.expectError(error.TooLong, quotePaths(allocator, &.{huge}));
+}
+
test "terminal keys, modal priority and chooser isolation" {
const tc = @import("terminal/model.zig").c;
var app = try testApp();
@@ -1309,6 +1350,19 @@ test "File context actions distinguish files, folders and symlinks" {
app.items.items[1].is_symlink = true;
try std.testing.expectEqual(@as(usize, 7), app.menuLabels().len);
app.items.items[1].selected = false;
+ app.items.items[0].name = "Hub.AppImage";
+ app.items.items[0].path = "/Hub.AppImage";
+ try std.testing.expectEqualStrings("/Hub.AppImage", app.selectedAppImage().?);
+ try std.testing.expectEqualStrings("Add to applications", app.menuLabels()[2]);
+ app.items.items[1].selected = true;
+ try std.testing.expect(app.selectedAppImage() == null);
+ app.items.items[1].selected = false;
+ app.items.items[0].missing = true;
+ try std.testing.expect(app.selectedAppImage() == null);
+ app.items.items[0].missing = false;
+ app.chooser = .{ .mode = .open };
+ try std.testing.expect(app.selectedAppImage() == null);
+ app.chooser = null;
app.items.items[0].name = "example.ZIP";
app.items.items[0].path = "/example.ZIP";
try std.testing.expectEqualStrings("Extract", app.menuLabels()[2]);
@@ -1399,3 +1453,137 @@ test "Git layout has two columns, scrollable sidebar and display-only deleted ro
app.previewSelected();
try std.testing.expect(app.editor_path == null);
}
+
+test "Transfers uses list geometry and isolates file actions while preserving the folder view" {
+ var app = App{
+ .allocator = std.testing.allocator,
+ .io = undefined,
+ .environ = undefined,
+ .theme_cfg = undefined,
+ .worker = undefined,
+ .history = .{ .allocator = std.testing.allocator, .current = "/" },
+ .home_dir = "/",
+ .items_arena = undefined,
+ };
+ // These records are only counted. File actions must never read them
+ // while the transfer pane is active.
+ var files: [32]ViewItem = undefined;
+ var transfers: [32]@import("torrents.zig").Transfer = undefined;
+ app.items = .{ .items = &files, .capacity = files.len };
+ app.torrents.snapshot = .{ .arena = undefined, .value = .{ .transfers = &transfers } };
+ app.list_view = false;
+ app.transfer_view = .{ .active = true, .folder_scroll = 77, .folder_search_visible = true };
+ try std.testing.expectEqual(@as(i32, 1), app.columns());
+ try std.testing.expectEqual(@as(i32, 38), app.rowHeight());
+ try std.testing.expectEqualStrings("Status", app.columnLabels()[1]);
+ try std.testing.expect(app.scrollbarGeometry() != null);
+ try std.testing.expectEqual(@as(?usize, null), app.itemAt(260, 180));
+ try std.testing.expectEqual(@as(?[]const u8, null), app.dropDirectoryAt(260, 180));
+ app.handleKey(c.XKB_KEY_Delete, "");
+ app.ctrl = true;
+ app.handleKey(c.XKB_KEY_v, "v");
+ try std.testing.expect(!app.paste_requested);
+ try std.testing.expect(app.dialog == null);
+ app.ctrl = false;
+ app.transferPaneKey(c.XKB_KEY_End);
+ try std.testing.expectEqual(@as(?usize, 31), app.transfer_view.row);
+ try std.testing.expect(app.scroll_y > 0);
+ app.back();
+ try std.testing.expect(!app.transfer_view.active);
+ try std.testing.expect(!app.list_view);
+ try std.testing.expect(app.search_visible);
+ try std.testing.expectEqual(@as(i32, 77), app.scroll_y);
+}
+
+fn inlineTransferFixture() @import("torrents.zig").Transfer {
+ return .{
+ .id = "abc",
+ .name = "bundle",
+ .source = "/Downloads/bundle.torrent",
+ .download_directory = "/Downloads",
+ .destination = "/Downloads",
+ .storage = "/Downloads/.rediwm-partials/abc",
+ .pending = false,
+ .metadata = true,
+ .paused = false,
+ .finished = false,
+ .published = false,
+ .progress = 420000,
+ .download_rate = 100,
+ .upload_rate = 50,
+ .total = 1000,
+ .done = 420,
+ .ratio = 1,
+ .limit = 1024,
+ .@"error" = "",
+ .files = &.{},
+ .peers = 4,
+ .known_peers = 8,
+ .seeds = 2,
+ };
+}
+
+test "folder transfer rows match full paths, avoid duplicates and exclude staging from file operations" {
+ const allocator = std.testing.allocator;
+ var arena = std.heap.ArenaAllocator.init(allocator);
+ defer arena.deinit();
+ var app = App{
+ .allocator = allocator,
+ .io = undefined,
+ .environ = undefined,
+ .theme_cfg = undefined,
+ .worker = undefined,
+ .history = .{ .allocator = allocator, .current = "/Downloads" },
+ .home_dir = "/",
+ .items_arena = undefined,
+ };
+ defer app.items.deinit(allocator);
+ var transfers = [_]@import("torrents.zig").Transfer{inlineTransferFixture()};
+ app.torrents.snapshot = .{ .arena = undefined, .value = .{ .transfers = &transfers } };
+ const old = std.StringHashMap(ViewItem).init(allocator);
+ app.appendTorrentRows(arena.allocator(), &old);
+ try std.testing.expectEqual(@as(usize, 1), app.items.items.len);
+ try std.testing.expect(app.items.items[0].transfer_stub and app.items.items[0].missing);
+ try std.testing.expectEqualStrings("abc", app.torrentForItem(0).?.id);
+ app.list_view = true;
+ try std.testing.expect(app.inlineTorrentWidth(0) > 0);
+ try std.testing.expect(app.sizeButtonRect(0) == null);
+ app.items.items[0].selected = true;
+ app.copySelected();
+ app.openRenameDialog();
+ app.openTrashConfirmDialog();
+ try std.testing.expectEqual(@as(usize, 0), app.clipboard_paths.items.len);
+ try std.testing.expect(app.dialog == null);
+ app.activateItem(0);
+ try std.testing.expectEqual(@import("app_model.zig").DialogKind.transfers, app.dialog.?.kind);
+ app.closeDialog();
+
+ app.items.items[0].transfer_stub = false;
+ app.items.items[0].missing = false;
+ app.items.items[0].path = "/Downloads/bundle.torrent";
+ app.appendTorrentRows(arena.allocator(), &old);
+ try std.testing.expectEqual(@as(usize, 1), app.items.items.len);
+ app.items.items[0].path = "/Elsewhere/bundle.torrent";
+ try std.testing.expect(app.torrentForItem(0) == null);
+ transfers[0].published = true;
+ transfers[0].destination = "/Downloads/bundle.download";
+ app.items.items[0].path = "/Downloads/bundle.download/file.bin";
+ try std.testing.expect(app.torrentForItem(0) != null);
+ app.items.items[0].path = "/Downloads/bundle.download-other/file.bin";
+ try std.testing.expect(app.torrentForItem(0) == null);
+}
+
+test "torrent ETA uses remaining selected bytes and is unknown while paused or stalled" {
+ const eta = @import("torrents.zig").etaSeconds;
+ var transfer = inlineTransferFixture();
+ try std.testing.expectEqual(@as(?i64, 6), eta(transfer));
+ transfer.download_rate = 0;
+ try std.testing.expect(eta(transfer) == null);
+ transfer.download_rate = 100;
+ transfer.paused = true;
+ try std.testing.expect(eta(transfer) == null);
+ transfer.finished = true;
+ try std.testing.expectEqual(@as(?i64, 0), eta(transfer));
+ transfer.pending = true;
+ try std.testing.expect(eta(transfer) == null);
+}
diff --git a/src/files/app_torrent_rows.zig b/src/files/app_torrent_rows.zig
new file mode 100644
index 0000000..252f283
--- /dev/null
+++ b/src/files/app_torrent_rows.zig
@@ -0,0 +1,167 @@
+//! File-list transfer accessories, matching and hover details.
+const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
+const App = @import("app.zig").App;
+const c = @import("c.zig").api;
+const ui = @import("ui").cairo;
+const theme = @import("ui").theme;
+const button = @import("ui").widgets.button;
+const frame = @import("ui").widgets.dialog;
+const header = @import("header.zig");
+const draw = @import("app_draw.zig");
+const Transfer = @import("torrents.zig").Transfer;
+
+const ViewItem = @import("app_model.zig").ViewItem;
+fn containsPath(root: []const u8, path: []const u8) bool {
+ if (root.len == 0) return false;
+ return std.mem.eql(u8, root, path) or (std.mem.startsWith(u8, path, root) and path.len > root.len and path[root.len] == '/');
+}
+fn matchesPath(t: Transfer, path: []const u8) bool {
+ return (t.source.len > 0 and std.mem.eql(u8, path, t.source)) or containsPath(t.storage, path) or
+ (t.published and containsPath(t.destination, path));
+}
+pub fn torrentForItem(self: *App, index: usize) ?Transfer {
+ if (self.chooser != null or self.transfer_view.active or self.history.archive_len > 0 or index >= self.items.items.len) return null;
+ for (self.torrents.items()) |t| if (matchesPath(t, self.items.items[index].path)) return t;
+ return null;
+}
+pub fn hasFolderTransfers(self: *App) bool {
+ if (self.chooser != null or self.history.archive_len > 0 or self.transfer_view.active) return false;
+ for (self.torrents.items()) |t| {
+ if (std.mem.eql(u8, t.download_directory, self.history.current) or
+ std.mem.eql(u8, std.fs.path.dirname(t.source) orelse "", self.history.current) or
+ (t.published and std.mem.eql(u8, std.fs.path.dirname(t.destination) orelse "", self.history.current))) return true;
+ }
+ return false;
+}
+
+/// Unpublished payload stays private on disk; this is a transfer entry in
+/// its destination folder. `missing` excludes it from filesystem operations.
+pub fn appendTorrentRows(self: *App, mem: std.mem.Allocator, old: *const std.StringHashMap(ViewItem)) void {
+ if (self.chooser != null or self.history.archive_len > 0 or self.isRecent() or self.changedOnly()) return;
+ for (self.torrents.items()) |t| {
+ if (t.published or t.storage.len == 0 or !std.mem.eql(u8, t.download_directory, self.history.current)) continue;
+ if (!@import("ui").fold.contains(t.name, self.search.text.items, .{ .turkish = @import("i18n").isTurkish() })) continue;
+ var represented = false;
+ for (self.items.items) |item| if (matchesPath(t, item.path)) {
+ represented = true;
+ break;
+ };
+ if (represented) continue;
+ const previous = old.get(t.storage);
+ self.items.append(self.allocator, .{
+ .name = mem.dupe(u8, t.name) catch continue,
+ .path = mem.dupe(u8, t.storage) catch continue,
+ .transfer_stub = true,
+ .missing = true,
+ .is_dir = true,
+ .is_symlink = false,
+ .is_broken = false,
+ .bytes = t.total,
+ .mtime = 0,
+ .icon_name = "folder-download",
+ .selected = if (previous) |p| p.selected else false,
+ .selection_fill = if (previous) |p| p.selection_fill else .{},
+ .selection_border = if (previous) |p| p.selection_border else .{},
+ }) catch {};
+ }
+}
+
+const InlineLayout = struct { area: header.Rect, ring: header.Rect, toggle: header.Rect };
+fn inlineLayout(self: *App, index: usize) ?InlineLayout {
+ if (self.torrentForItem(index) == null) return null;
+ const row: i32 = @intCast(index / @as(usize, @intCast(self.columns())));
+ const y: f64 = @floatFromInt(self.viewTop() + self.itemInset() + row * self.rowHeight() - self.scroll_y);
+ const right: f64 = if (self.list_view) self.listColumn(0).x + self.listColumn(0).w - 4 else @as(f64, @floatFromInt(self.sidebarWidth() + 20 + (@as(i32, @intCast(index)) + 1 - row * self.columns()) * self.cellWidth() - 20)) - 8;
+ const available = if (self.list_view) self.listColumn(0).w - 68 else @as(f64, @floatFromInt(self.cellWidth() - 36));
+ if (available < 56) return null;
+ const width: f64 = if (available >= 210) 156 else if (!self.list_view) @min(156, available) else 60;
+ const top = if (self.list_view) y + (@as(f64, @floatFromInt(self.cardHeight())) - 28) / 2 else y + App.GridCard.detail_baseline - 20;
+ return .{
+ .area = .{ .x = right - width, .y = top, .w = width, .h = 28 },
+ .ring = .{ .x = right - 58, .y = top + 2, .w = 24, .h = 24 },
+ .toggle = .{ .x = right - 28, .y = top, .w = 28, .h = 28 },
+ };
+}
+pub fn inlineTorrentWidth(self: *App, index: usize) f64 {
+ return if (inlineLayout(self, index)) |layout| layout.area.w + 4 else 0;
+}
+fn inlineStatus(t: Transfer) []const u8 {
+ if (t.@"error".len > 0) return tr("Error");
+ if (t.pending) return if (t.metadata) tr("Choose files") else tr("Metadata…");
+ if (t.paused) return if (t.finished) tr("Complete") else tr("Paused");
+ return if (t.finished) tr("Seeding") else tr("Downloading");
+}
+pub fn renderInlineTorrent(self: *App, cr: *c.cairo_t, index: usize) void {
+ const layout = inlineLayout(self, index) orelse return;
+ const t = self.torrentForItem(index) orelse return;
+ c.cairo_save(cr);
+ defer c.cairo_restore(cr);
+ c.cairo_rectangle(cr, @floatFromInt(self.sidebarWidth()), @floatFromInt(self.viewTop()), @floatFromInt(self.w - self.sidebarWidth() - self.scrollbarGutter()), @floatFromInt(@max(0, self.contentBottom() - self.viewTop())));
+ c.cairo_clip(cr);
+ const color = if (t.@"error".len > 0) theme.global.danger else theme.shellPalette().accent;
+ ui.drawProgressRing(cr, .{ .x = layout.ring.x, .y = layout.ring.y, .w = layout.ring.w, .h = layout.ring.h }, if (t.pending) 0 else @as(f64, @floatFromInt(t.progress)) / 1000000, color);
+ if (layout.area.w > 64) {
+ const label = inlineStatus(t);
+ const width = layout.ring.x - layout.area.x - 6;
+ const advance = @min(width, draw.measureText(cr, label, ui.statusSize(), false));
+ draw.setSource(cr, theme.global.window_fg);
+ draw.drawEllipsis(cr, label, layout.ring.x - 6 - advance, layout.area.y + 18, width, ui.statusSize(), false);
+ }
+ var layer = ui.Layer.begin(cr, .{ .x = @floatCast(layout.toggle.x), .y = @floatCast(layout.toggle.y), .w = 28, .h = 28 }) orelse return;
+ defer layer.finish();
+ const hover = self.dialog == null and self.menu == null and layout.toggle.contains(self.mouse_x, self.mouse_y);
+ button.paint(&layer.renderer, layer.local(), .{ .variant = .ghost, .size = .sm, .icon = if (t.paused or t.pending) .play else .pause, .label = if (t.pending) tr("Choose files") else if (t.paused) tr("Resume") else tr("Pause") }, .{ .pointer = if (self.torrents.fd < 0) .disabled else if (hover) .hover else .idle });
+}
+
+pub const InlineHit = struct { index: usize, toggle: bool };
+pub fn inlineTorrentHit(self: *App, x: f64, y: f64) ?InlineHit {
+ if (self.dialog != null or self.menu != null or self.selection_band != null or self.drag_origin != null) return null;
+ const index = self.itemAt(x, y) orelse return null;
+ const layout = inlineLayout(self, index) orelse return null;
+ if (layout.toggle.contains(x, y)) return .{ .index = index, .toggle = true };
+ if (layout.ring.contains(x, y)) return .{ .index = index, .toggle = false };
+ return null;
+}
+pub fn inlineTorrentClick(self: *App, x: f64, y: f64) bool {
+ const hit = self.inlineTorrentHit(x, y) orelse return false;
+ const t = self.torrentForItem(hit.index) orelse return false;
+ self.last_click_index = null;
+ self.last_click_time = 0;
+ if (hit.toggle) self.toggleTorrent(t) else self.openTorrentDetails(t.id);
+ return true;
+}
+pub fn renderTorrentTip(self: *App, cr: *c.cairo_t) void {
+ const hit = self.inlineTorrentHit(self.mouse_x, self.mouse_y) orelse return;
+ if (hit.toggle) return;
+ const t = self.torrentForItem(hit.index) orelse return;
+ const layout = inlineLayout(self, hit.index) orelse return;
+ const width: f32 = @min(360, @as(f32, @floatFromInt(self.w)) - 24);
+ const height: f32 = 164;
+ const x = std.math.clamp(@as(f32, @floatCast(layout.ring.x + layout.ring.w)) - width, 12, @max(12, @as(f32, @floatFromInt(self.w)) - width - 12));
+ const below: f32 = @floatCast(layout.area.y + layout.area.h + 8);
+ const bottom: f32 = @floatFromInt(self.contentBottom());
+ const y = @max(@as(f32, @floatFromInt(self.contentTop())), if (below + height <= bottom) below else @as(f32, @floatCast(layout.area.y)) - height - 8);
+ var layer = ui.Layer.begin(cr, .{ .x = x, .y = y, .w = width, .h = height }) orelse return;
+ defer layer.finish();
+ var palette = theme.shellPalette();
+ palette.fg = theme.global.window_fg;
+ layer.renderer.palette = palette;
+ frame.paintFrame(&layer.renderer, layer.local());
+ var progress_buf: [160]u8 = undefined;
+ var rate_buf: [160]u8 = undefined;
+ var peers_buf: [160]u8 = undefined;
+ var known_buf: [96]u8 = undefined;
+ var eta_buf: [96]u8 = undefined;
+ const progress = if (t.pending) @as(i32, 0) else std.math.clamp(t.progress, 0, 1000000);
+ const state = std.fmt.bufPrint(&progress_buf, "{s} · {d}.{d}%", .{ if (self.torrents.fd < 0) tr("Disconnected") else inlineStatus(t), @divTrunc(progress, 10000), @mod(@divTrunc(progress, 1000), 10) }) catch "";
+ const rates = i18n.fmt(&rate_buf, tr("↓ {rate} KiB/s ↑ {rate2} KiB/s"), .{ .rate = @divTrunc(t.download_rate, 1024), .rate2 = @divTrunc(t.upload_rate, 1024) }) catch "";
+ const connected = i18n.fmt(&peers_buf, tr("Connected peers: {peers} · Seeds: {seeds}"), .{ .peers = t.peers, .seeds = t.seeds }) catch "";
+ const known = i18n.fmt(&known_buf, tr("Known peers: {value}"), .{ .value = t.known_peers }) catch "";
+ const eta = if (@import("torrents.zig").etaSeconds(t)) |seconds|
+ if (seconds == 0) @as([]const u8, tr("ETA: Complete")) else if (seconds >= 3600) i18n.fmt(&eta_buf, tr("ETA: {value}h {value2}m"), .{ .value = @divTrunc(seconds, 3600), .value2 = @divTrunc(@mod(seconds, 3600), 60) }) catch "" else if (seconds >= 60) i18n.fmt(&eta_buf, tr("ETA: {value}m {value2}s"), .{ .value = @divTrunc(seconds, 60), .value2 = @mod(seconds, 60) }) catch "" else i18n.fmt(&eta_buf, tr("ETA: {value}s"), .{ .value = seconds }) catch ""
+ else if (t.pending) tr("ETA: Choose files first") else if (t.paused) tr("ETA: Paused") else tr("ETA: Unknown · waiting for data");
+ const labels = [_][]const u8{ t.name, state, rates, connected, known, eta };
+ for (labels, 0..) |label, i| layer.renderer.drawText(14, 10 + @as(f32, @floatFromInt(i)) * 24, width - 28, 24, .{ .content = label, .font_size = if (i == 0) ui.textSize() else ui.statusSize(), .color = palette.fg });
+}
diff --git a/src/files/app_torrents.zig b/src/files/app_torrents.zig
new file mode 100644
index 0000000..0b69033
--- /dev/null
+++ b/src/files/app_torrents.zig
@@ -0,0 +1,551 @@
+//! Transfers UI: the sidebar, main-pane list and per-transfer dialog. The helper
+//! owns session lifetime; closing this window only closes its subscription.
+const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
+const App = @import("app.zig").App;
+const c = @import("c.zig").api;
+const ui = @import("ui").cairo;
+const theme = @import("ui").theme;
+const button = @import("ui").widgets.button;
+const checkbox = @import("ui").widgets.checkbox;
+const frame = @import("ui").widgets.dialog;
+const Transfer = @import("torrents.zig").Transfer;
+const Rect = ui.Rect;
+const draw = @import("app_draw.zig");
+
+pub const View = struct {
+ active: bool = false,
+ folder_scroll: i32 = 0,
+ folder_scroll_x: f64 = 0,
+ folder_search_visible: bool = false,
+ row: ?usize = null,
+ file_page: usize = 0,
+ selected: [65]u8 = @splat(0),
+ choices: [512]bool = @splat(true),
+ ratio: i32 = 1,
+ limit: i32 = 1048576,
+ focus: usize = 0,
+ pub fn id(self: *const View) []const u8 {
+ return std.mem.sliceTo(&self.selected, 0);
+ }
+};
+/// Transfers are hidden for now: no sidebar entry, no helper started, no
+/// dialogs. Flip to bring the feature back; the rest of the code is intact.
+pub const enabled = false;
+
+pub fn startTorrents(self: *App) void {
+ if (!enabled) return;
+ if (self.chooser != null or self.torrents.fd >= 0 or self.torrents.retry_at != null) return;
+ const runtime = self.environ.getPosix("XDG_RUNTIME_DIR") orelse return;
+ if (self.torrents.connect(runtime)) return;
+ var path: [4096]u8 = undefined;
+ const executable = self.terminalHelper("rediwm-transfers", &path) catch return;
+ var child = std.process.spawn(self.io, .{ .argv = &.{ executable, if (self.terminalScopes()) "--scope" else "--no-scope" } }) catch {
+ self.torrents.fail(tr("Could not start Transfers"));
+ return;
+ };
+ self.children.add(self.allocator, child.id.?) catch child.kill(self.io);
+ self.torrents.attempts = 0;
+ self.torrents.retry_at = draw.nowMs() + 100;
+}
+pub fn stepTorrents(self: *App) void {
+ const at = self.torrents.retry_at orelse return;
+ if (draw.nowMs() < at) return;
+ const runtime = self.environ.getPosix("XDG_RUNTIME_DIR") orelse return;
+ if (self.torrents.connect(runtime)) {
+ self.invalidate();
+ return;
+ }
+ self.torrents.attempts += 1;
+ if (self.torrents.attempts >= 40) {
+ self.torrents.retry_at = null;
+ self.torrents.fail(tr("Could not connect to Transfers"));
+ self.invalidate();
+ } else self.torrents.retry_at = draw.nowMs() + 100;
+}
+pub fn openTransfers(self: *App) void {
+ if (!enabled) return;
+ if (self.chooser != null) return;
+ self.startTorrents();
+ self.closeDialog();
+ self.cancelWheel();
+ self.cancelDrag();
+ self.menu = null;
+ if (!self.transfer_view.active) {
+ self.rememberView();
+ self.transfer_view.folder_scroll = self.scroll_y;
+ self.transfer_view.folder_scroll_x = self.scroll_x;
+ self.transfer_view.folder_search_visible = self.search_visible;
+ }
+ self.transfer_view.active = true;
+ self.scroll_y = 0;
+ self.search_visible = false;
+ self.focus = .file_view;
+ self.updateTitle();
+ self.invalidate();
+}
+pub fn torrentSource(self: *App, source: ?[]const u8) void {
+ if (!enabled) return;
+ if (self.chooser != null) return;
+ self.startTorrents();
+ self.closeDialog();
+ self.dialog = .{ .kind = if (source != null) .torrent_destination else .torrent_source, .title = if (source != null) tr("Download to folder") else tr("Torrent file or magnet link") };
+ if (source) |s| {
+ self.dialog.?.target_path = self.allocator.dupe(u8, s) catch {
+ self.closeDialog();
+ return;
+ };
+ const destination = if (self.isRecent() or self.history.archive_len > 0) self.home_dir else self.history.current;
+ self.dialog.?.edit.text.appendSlice(self.allocator, destination) catch {};
+ }
+ self.dialog.?.edit.cursor = self.dialog.?.edit.text.items.len;
+ self.dialog.?.edit.select_all = true;
+ self.invalidate();
+}
+pub fn confirmTorrent(self: *App) void {
+ const dlg = self.dialog orelse return;
+ const value = std.mem.trim(u8, dlg.edit.text.items, " \t\r\n");
+ if (value.len == 0) return;
+ if (dlg.kind == .torrent_source) {
+ const source = self.allocator.dupe(u8, value) catch return;
+ defer self.allocator.free(source);
+ self.torrentSource(source);
+ } else if (self.torrents.send(.{ .op = "add", .source = dlg.target_path orelse "", .destination = value })) {
+ self.transfer_view.selected[0] = 0;
+ self.openTransfers();
+ } else self.setStatusNotice(self.torrents.message(), true);
+}
+pub fn torrentSidebarHeight(self: *App) i32 {
+ return if (enabled and self.chooser == null) 132 else 0;
+}
+fn sidebarBox(self: *App) Rect {
+ return .{ .x = 12, .y = @floatFromInt(self.pinRowY(self.pins.items.items.len) + 40 + self.deviceBlock()), .w = @floatFromInt(@max(0, self.sidebarWidth() - 24 - self.scrollbarGutter())), .h = 34 };
+}
+pub fn torrentSidebarHit(self: *App, x: f64, y: f64) bool {
+ if (!enabled) return false;
+ if (self.chooser != null or self.sidebarWidth() == 0 or y < @as(f64, @floatFromInt(self.contentTop())) or y >= @as(f64, @floatFromInt(self.h - self.sidebarFooter()))) return false;
+ return contains(sidebarBox(self), @floatCast(x), @floatCast(y));
+}
+pub fn renderTorrentSidebar(self: *App, cr: *c.cairo_t) void {
+ if (!enabled) return;
+ if (self.chooser != null) return;
+ const area = sidebarBox(self);
+ var layer = ui.Layer.begin(cr, .{ .x = area.x, .y = area.y, .w = area.w, .h = 92 }) orelse return;
+ defer layer.finish();
+ var palette = theme.shellPalette();
+ palette.fg = theme.global.sidebarForeground();
+ palette.button_font_size = ui.textSize();
+ layer.renderer.palette = palette;
+ button.paint(&layer.renderer, .{ .x = 0, .y = 0, .w = area.w, .h = 34 }, .{ .label = tr("Transfers"), .leading_icon = .folder, .variant = .ghost, .alignment = .left }, .{ .pointer = if (self.torrentSidebarHit(self.mouse_x, self.mouse_y)) .hover else .idle, .selected = self.transfer_view.active });
+ var active: usize = 0;
+ var rate: i64 = 0;
+ for (self.torrents.items()) |t| {
+ if (!t.paused) active += 1;
+ rate += t.download_rate;
+ }
+ var buf: [96]u8 = undefined;
+ const label = if (self.torrents.retry_at != null) tr("Connecting…") else if (self.torrents.message().len > 0) tr("Transfers needs attention") else i18n.fmt(&buf, tr("{value} active · {rate} KiB/s"), .{ .value = active, .rate = @divTrunc(rate, 1024) }) catch tr("Transfers");
+ layer.renderer.drawText(12, 38, area.w - 24, 24, .{ .content = label, .font_size = ui.statusSize(), .color = palette.fg });
+ if (self.torrents.items().len > 0) {
+ const t = self.torrents.items()[0];
+ layer.renderer.drawText(12, 64, area.w - 24, 24, .{ .content = t.name, .font_size = ui.statusSize(), .color = palette.fg });
+ layer.renderer.fillRect(12, 90, (area.w - 24) * @as(f32, @floatFromInt(std.math.clamp(t.progress, 0, 1000000))) / 1000000, 2, .{ .color = palette.accent });
+ }
+}
+fn box(self: *App) Rect {
+ const w: f32 = @min(720, @as(f32, @floatFromInt(self.w)) - 24);
+ const h: f32 = @min(560, @as(f32, @floatFromInt(self.h)) - 24);
+ return .{ .x = (@as(f32, @floatFromInt(self.w)) - w) / 2, .y = (@as(f32, @floatFromInt(self.h)) - h) / 2, .w = w, .h = h };
+}
+fn selected(self: *App) ?Transfer {
+ for (self.torrents.items()) |t| if (std.mem.eql(u8, t.id, self.transfer_view.id())) return t;
+ return null;
+}
+fn capacity(self: *App) usize {
+ return @intFromFloat(@max(1, @floor((box(self).h - 280) / 58)));
+}
+const Control = struct { rect: Rect, label: []const u8, id: usize, checked: ?bool = null };
+fn controls(self: *App, out: *[32]Control) []Control {
+ const b = box(self);
+ var n: usize = 0;
+ out[n] = .{ .rect = frame.closeBox(b.w), .label = tr("Close"), .id = 1 };
+ n += 1;
+ const top: f32 = 60;
+ if (selected(self)) |t| {
+ self.transfer_view.file_page = @min(self.transfer_view.file_page, (t.files.len -| 1) / capacity(self));
+ out[n] = .{ .rect = .{ .x = 16, .y = top, .w = 72, .h = 30 }, .label = tr("Back"), .id = 2 };
+ n += 1;
+ if (t.pending) {
+ if (t.metadata and t.@"error".len == 0) {
+ const begin = @min(self.transfer_view.file_page * capacity(self), t.files.len);
+ const end = @min(begin + capacity(self), t.files.len);
+ for (t.files[begin..end], 0..) |f, i| {
+ out[n] = .{ .rect = .{ .x = 18, .y = 140 + @as(f32, @floatFromInt(i)) * 58, .w = b.w - 36, .h = 32 }, .label = f.path, .id = 1000 + f.index, .checked = self.transfer_view.choices[f.index] };
+ n += 1;
+ }
+ out[n] = .{ .rect = .{ .x = 16, .y = b.h - 100, .w = 148, .h = 30 }, .label = switch (self.transfer_view.ratio) {
+ 0 => tr("Seed: stop at finish"),
+ 1 => tr("Seed: ratio 1"),
+ else => tr("Seed: ratio 2"),
+ }, .id = 9 };
+ n += 1;
+ out[n] = .{ .rect = .{ .x = 172, .y = b.h - 100, .w = 150, .h = 30 }, .label = if (self.transfer_view.limit == 1048576) tr("Upload: 1 MiB/s") else tr("Upload: 128 KiB/s"), .id = 10 };
+ n += 1;
+ out[n] = .{ .rect = .{ .x = b.w - 140, .y = b.h - 58, .w = 124, .h = 32 }, .label = tr("Start download"), .id = 8 };
+ n += 1;
+ }
+ } else {
+ out[n] = .{ .rect = .{ .x = 16, .y = 148, .w = 120, .h = 32 }, .label = if (t.paused) tr("Resume") else tr("Pause"), .id = 6 };
+ n += 1;
+ out[n] = .{ .rect = .{ .x = 148, .y = 148, .w = 140, .h = 32 }, .label = tr("Show in folder"), .id = 7 };
+ n += 1;
+ }
+ out[n] = .{ .rect = .{ .x = b.w - 180, .y = top, .w = 164, .h = 30 }, .label = tr("Remove · keep files"), .id = 11 };
+ n += 1;
+ }
+ const count = if (selected(self)) |t| t.files.len else 0;
+ if (count > capacity(self)) {
+ out[n] = .{ .rect = .{ .x = 16, .y = b.h - 58, .w = 80, .h = 32 }, .label = tr("Previous"), .id = 12 };
+ n += 1;
+ out[n] = .{ .rect = .{ .x = 104, .y = b.h - 58, .w = 70, .h = 32 }, .label = tr("Next"), .id = 13 };
+ n += 1;
+ }
+ return out[0..n];
+}
+fn activate(self: *App, id: usize) void {
+ switch (id) {
+ 1 => self.closeDialog(),
+ 2 => {
+ self.transfer_view.selected[0] = 0;
+ self.closeDialog();
+ },
+ 3 => self.torrentSource(null),
+ 4 => {
+ _ = self.torrents.send(.{ .op = "pause_all" });
+ },
+ 5 => {
+ _ = self.torrents.send(.{ .op = "stop_seeding" });
+ },
+ 6 => if (selected(self)) |t| {
+ _ = self.torrents.send(.{ .op = if (t.paused) @as([]const u8, "resume") else "pause", .id = t.id });
+ },
+ 7 => if (selected(self)) |t| {
+ const path = self.allocator.dupe(u8, if (t.published) t.destination else t.storage) catch return;
+ defer self.allocator.free(path);
+ self.closeDialog();
+ self.navigate(path);
+ },
+ 8 => if (selected(self)) |t| {
+ var indices: [512]usize = undefined;
+ var n: usize = 0;
+ for (t.files) |f| if (self.transfer_view.choices[f.index]) {
+ indices[n] = f.index;
+ n += 1;
+ };
+ _ = self.torrents.send(.{ .op = "start", .id = t.id, .files = indices[0..n], .ratio = self.transfer_view.ratio, .limit = self.transfer_view.limit });
+ },
+ 9 => self.transfer_view.ratio = @mod(self.transfer_view.ratio + 1, 3),
+ 10 => self.transfer_view.limit = if (self.transfer_view.limit == 1048576) 131072 else 1048576,
+ 11 => if (selected(self)) |t| {
+ _ = self.torrents.send(.{ .op = "remove", .id = t.id });
+ self.transfer_view.selected[0] = 0;
+ self.closeDialog();
+ },
+ 12, 13 => {
+ const page = &self.transfer_view.file_page;
+ const count = if (selected(self)) |t| t.files.len else 0;
+ if (id == 12) page.* -|= 1 else page.* = @min(page.* + 1, (count -| 1) / capacity(self));
+ },
+ else => {
+ if (id >= 1000 and id < 1512) self.transfer_view.choices[id - 1000] = !self.transfer_view.choices[id - 1000] else if (id >= 100 and id - 100 < self.torrents.items().len) {
+ const t = self.torrents.items()[id - 100];
+ if (t.id.len > 64) return;
+ @memcpy(self.transfer_view.selected[0..t.id.len], t.id);
+ self.transfer_view.selected[t.id.len] = 0;
+ self.transfer_view.choices = @splat(true);
+ self.transfer_view.file_page = 0;
+ }
+ },
+ }
+ self.invalidate();
+}
+pub fn transfersClick(self: *App, x: f64, y: f64) void {
+ const b = box(self);
+ var storage: [32]Control = undefined;
+ for (controls(self, &storage)) |control| if (contains(control.rect, @floatCast(x - b.x), @floatCast(y - b.y))) {
+ activate(self, control.id);
+ return;
+ };
+}
+pub fn transfersKey(self: *App, sym: u32) void {
+ if (sym == c.XKB_KEY_Escape) {
+ self.closeDialog();
+ return;
+ }
+ var storage: [32]Control = undefined;
+ const list = controls(self, &storage);
+ self.transfer_view.focus %= list.len;
+ if (sym == c.XKB_KEY_Tab or sym == c.XKB_KEY_ISO_Left_Tab) self.transfer_view.focus = (self.transfer_view.focus + if (self.shift) list.len - 1 else @as(usize, 1)) % list.len;
+ if (sym == c.XKB_KEY_Return or sym == c.XKB_KEY_space) activate(self, list[self.transfer_view.focus].id);
+ self.invalidate();
+}
+pub fn renderTransfers(self: *App, cr: *c.cairo_t) void {
+ ui.setSource(cr, frame.backdropColor());
+ c.cairo_paint(cr);
+ const b = box(self);
+ var layer = ui.Layer.begin(cr, b) orelse return;
+ defer layer.finish();
+ const r = &layer.renderer;
+ var palette = theme.shellPalette();
+ palette.fg = theme.global.window_fg;
+ palette.button_font_size = ui.textSize();
+ r.palette = palette;
+ frame.paintWindowFrame(r, layer.local(), theme.global.app_toolbar);
+ frame.paintWindowTitle(r, layer.local(), if (selected(self)) |t| t.name else tr("Transfer"), .folder, null);
+ var storage: [32]Control = undefined;
+ for (controls(self, &storage), 0..) |control, i| {
+ const hover = contains(control.rect, @floatCast(self.mouse_x - b.x), @floatCast(self.mouse_y - b.y));
+ if (control.checked) |checked| checkbox.paint(r, control.rect, control.label, .{ .checked = checked, .focused = self.transfer_view.focus == i }) else button.paint(r, control.rect, .{ .label = control.label, .variant = if (control.id == 1) .chrome else if (control.id >= 100) .ghost else .secondary, .icon = if (control.id == 1) .close else null, .alignment = if (control.id >= 100) .left else .center }, .{ .pointer = if (hover) .hover else .idle, .focused = self.transfer_view.focus == i });
+ }
+ const message = self.torrents.message();
+ r.drawText(16, 104, b.w - 32, 26, .{ .content = if (message.len > 0) message else if (selected(self)) |t| t.status() else tr("Downloads continue after closing Files."), .font_size = ui.statusSize(), .color = if (message.len > 0) theme.global.danger else palette.fg });
+ if (selected(self)) |t| {
+ if (t.pending and t.metadata) {
+ var bytes: i64 = 0;
+ for (t.files) |f| if (self.transfer_view.choices[f.index]) {
+ bytes +|= f.size;
+ };
+ var size_buf: [32]u8 = undefined;
+ var label_buf: [2300]u8 = undefined;
+ const label = i18n.fmt(&label_buf, tr("{size} selected · {path}"), .{ .size = draw.formatSize(bytes, &size_buf), .path = t.destination }) catch t.destination;
+ r.drawText(16, b.h - 132, b.w - 32, 24, .{ .content = label, .font_size = ui.statusSize(), .color = palette.fg });
+ const begin = @min(self.transfer_view.file_page * capacity(self), t.files.len);
+ for (t.files[begin..@min(begin + capacity(self), t.files.len)], 0..) |f, i| {
+ const size = draw.formatSize(f.size, &size_buf);
+ r.drawText(46, 172 + @as(f32, @floatFromInt(i)) * 58, b.w - 62, 20, .{ .content = size, .font_size = ui.statusSize(), .color = palette.fg });
+ }
+ }
+ if (!t.pending) {
+ var buf: [160]u8 = undefined;
+ const status = i18n.fmt(&buf, tr("{value}% · ↓ {rate} KiB/s · ↑ {rate3} KiB/s"), .{ .value = @divTrunc(t.progress, 10000), .rate = @divTrunc(t.download_rate, 1024), .rate3 = @divTrunc(t.upload_rate, 1024) }) catch "";
+ r.drawText(16, 200, b.w - 32, 30, .{ .content = status, .font_size = ui.textSize(), .color = palette.fg });
+ r.drawText(16, 244, b.w - 32, 30, .{ .content = t.destination, .font_size = ui.statusSize(), .color = palette.fg });
+ }
+ } else {
+ r.drawText(16, 150, b.w - 32, 30, .{ .content = tr("This transfer is no longer available."), .font_size = ui.textSize(), .color = palette.fg });
+ }
+}
+
+fn contains(r: Rect, x: f32, y: f32) bool {
+ return x >= r.x and y >= r.y and x < r.x + r.w and y < r.y + r.h;
+}
+
+pub fn transfersHover(self: *App) usize {
+ const b = box(self);
+ var storage: [32]Control = undefined;
+ for (controls(self, &storage)) |control| if (contains(control.rect, @floatCast(self.mouse_x - b.x), @floatCast(self.mouse_y - b.y))) return std.math.maxInt(usize) - control.id;
+ return std.math.maxInt(usize) - 2000;
+}
+
+pub fn leaveTransfers(self: *App) void {
+ if (!self.transfer_view.active) return;
+ self.cancelWheel();
+ self.transfer_view.active = false;
+ self.syncGitLayout();
+ self.scroll_y = self.transfer_view.folder_scroll;
+ self.scroll_x = self.transfer_view.folder_scroll_x;
+ self.search_visible = self.transfer_view.folder_search_visible;
+ self.clampScroll();
+ self.updateTitle();
+ self.invalidate();
+}
+
+const header = @import("header.zig");
+const field = @import("ui").widgets.field;
+const Icon = @import("ui").layout.IconId;
+const ToolbarControl = struct { rect: Rect, label: []const u8, id: usize, icon: ?Icon = null, enabled: bool = true };
+fn toolbarControls(self: *App) [9]ToolbarControl {
+ const width: f32 = @floatFromInt(self.w);
+ const y: f32 = if (self.w < 500) 110 else 64;
+ const gap: f32 = 8;
+ const scale = @min(1, (width - 40) / 320);
+ const add_w = 112 * scale;
+ const pause_w = 92 * scale;
+ const stop_w = 116 * scale;
+ return .{
+ .{ .rect = .{ .x = 12, .y = 12, .w = 30, .h = 32 }, .label = tr("Back"), .id = 20, .icon = .chevron_left },
+ .{ .rect = .{ .x = 44, .y = 12, .w = 30, .h = 32 }, .label = tr("Forward"), .id = 21, .icon = .chevron_right, .enabled = false },
+ .{ .rect = .{ .x = 76, .y = 12, .w = 30, .h = 32 }, .label = tr("Up"), .id = 20, .icon = .chevron_up },
+ .{ .rect = .{ .x = width - 78, .y = 12, .w = 30, .h = 32 }, .label = tr("Refresh"), .id = 22, .icon = .refresh },
+ .{ .rect = .{ .x = 12, .y = y, .w = add_w, .h = 36 }, .label = tr("Add torrent…"), .id = 3 },
+ .{ .rect = .{ .x = 12 + add_w + gap, .y = y, .w = pause_w, .h = 36 }, .label = tr("Pause all"), .id = 4 },
+ .{ .rect = .{ .x = 12 + add_w + pause_w + 2 * gap, .y = y, .w = stop_w, .h = 36 }, .label = tr("Stop seeding"), .id = 5 },
+ .{ .rect = .{ .x = width - 88, .y = 64, .w = 34, .h = 36 }, .label = tr("Grid"), .id = 23, .icon = .view_grid, .enabled = false },
+ .{ .rect = .{ .x = width - 52, .y = 64, .w = 34, .h = 36 }, .label = tr("List"), .id = 24, .icon = .view_list },
+ };
+}
+
+pub fn renderTransferToolbar(self: *App, cr: *c.cairo_t) void {
+ for (toolbarControls(self), 0..) |control, i| {
+ var layer = ui.Layer.begin(cr, control.rect) orelse continue;
+ defer layer.finish();
+ button.paint(&layer.renderer, layer.local(), .{
+ .label = control.label,
+ .icon = control.icon,
+ .icon_scale = 0.56,
+ .variant = if (control.icon != null) .ghost else .secondary,
+ }, .{
+ .pointer = if (!control.enabled) .disabled else if (contains(control.rect, @floatCast(self.mouse_x), @floatCast(self.mouse_y))) .hover else .idle,
+ .selected = control.id == 24,
+ .focused = self.transfer_view.focus == i + 1,
+ });
+ }
+ const r = header.field(self.w);
+ var layer = ui.Layer.begin(cr, .{ .x = @floatCast(r.x), .y = @floatCast(r.y), .w = @floatCast(r.w), .h = @floatCast(r.h) }) orelse return;
+ defer layer.finish();
+ const area = field.paintFrame(&layer.renderer, layer.local(), .{}, .{});
+ layer.renderer.drawText(area.text.x + 4, area.text.y, @max(0, area.text.w - 8), area.text.h, .{ .content = tr("Transfers"), .font_size = ui.textSize(), .color = theme.global.window_fg });
+}
+
+fn transferAt(self: *App, x: f64, y: f64) ?usize {
+ if (x < @as(f64, @floatFromInt(self.sidebarWidth() + 20)) or x >= @as(f64, @floatFromInt(self.w - 20 - self.scrollbarGutter())) or
+ y < @as(f64, @floatFromInt(self.viewTop())) or y >= @as(f64, @floatFromInt(self.contentBottom()))) return null;
+ const offset = y - @as(f64, @floatFromInt(self.viewTop() + self.itemInset() - self.scroll_y));
+ if (offset < 0) return null;
+ const row: usize = @intFromFloat(@floor(offset / @as(f64, @floatFromInt(self.rowHeight()))));
+ if (@mod(offset, @as(f64, @floatFromInt(self.rowHeight()))) >= @as(f64, @floatFromInt(self.cardHeight()))) return null;
+ return if (row < self.torrents.items().len) row else null;
+}
+
+pub fn renderTransferList(self: *App, cr: *c.cairo_t) void {
+ const entries = self.torrents.items();
+ if (entries.len == 0) {
+ draw.setSource(cr, theme.global.window_fg);
+ draw.drawEllipsis(cr, if (self.torrents.retry_at != null) tr("Connecting…") else tr("No transfers yet. Add a .torrent file or magnet link."), @floatFromInt(self.sidebarWidth() + 24), @floatFromInt(self.viewTop() + 36), @floatFromInt(@max(0, self.w - self.sidebarWidth() - 48)), ui.textSize(), false);
+ return;
+ }
+ const hover = if (self.dialog == null) transferAt(self, self.mouse_x, self.mouse_y) else null;
+ const first = @min(entries.len, @as(usize, @intCast(@divTrunc(self.scroll_y, self.rowHeight()))));
+ const last = @min(entries.len, @as(usize, @intCast(@divTrunc(self.scroll_y + @max(0, self.contentBottom() - self.viewTop()), self.rowHeight()) + 1)));
+ for (entries[first..last], first..) |t, i| {
+ const y: f64 = @floatFromInt(self.viewTop() + self.itemInset() + @as(i32, @intCast(i)) * self.rowHeight() - self.scroll_y);
+ const row: header.Rect = .{ .x = @floatFromInt(self.sidebarWidth() + 20), .y = y, .w = @floatFromInt(@max(0, self.cellWidth() - 20)), .h = @floatFromInt(self.cardHeight()) };
+ if (self.transfer_view.row == i or hover == i) ui.drawItemHighlight(cr, .{ .x = row.x, .y = row.y, .w = row.w, .h = row.h }, self.transfer_view.row == i, 1, 1);
+ var progress_buf: [32]u8 = undefined;
+ var download_buf: [48]u8 = undefined;
+ var upload_buf: [48]u8 = undefined;
+ const progress = std.fmt.bufPrint(&progress_buf, "{d}%", .{@divTrunc(t.progress, 10000)}) catch "";
+ const download = i18n.fmt(&download_buf, tr("{rate} KiB/s"), .{ .rate = @divTrunc(t.download_rate, 1024) }) catch "";
+ const upload = i18n.fmt(&upload_buf, tr("{rate} KiB/s"), .{ .rate = @divTrunc(t.upload_rate, 1024) }) catch "";
+ const labels = [_][]const u8{ t.name, t.status(), progress, download, upload };
+ if (ui.Layer.begin(cr, .{ .x = @floatCast(row.x + 12), .y = @floatCast(y + if (self.compactList()) @as(f64, 3) else 6), .w = 24, .h = 24 })) |value| {
+ var layer = value;
+ layer.renderer.drawIcon(0, 0, 24, 24, .{ .id = .folder, .color = theme.shellPalette().accent });
+ layer.finish();
+ }
+ for (labels, 0..) |label, col| {
+ const column = self.listColumn(col);
+ const inset: f64 = if (col == 0) 44 else 4;
+ draw.setSource(cr, if (col == 1 and t.@"error".len > 0) theme.global.danger else theme.global.window_fg);
+ draw.drawEllipsis(cr, label, column.x + inset, y + self.listBaseline(), @max(0, column.w - inset - 4), ui.textSize(), false);
+ }
+ }
+}
+
+fn openTransfer(self: *App, row: usize) void {
+ self.transfer_view.row = row;
+ activate(self, 100 + row);
+ self.transfer_view.focus = 0;
+ self.dialog = .{ .kind = .transfers, .title = tr("Transfer") };
+ self.invalidate();
+}
+
+pub fn transferPaneClick(self: *App, x: f64, y: f64, mouse_button: u32) bool {
+ if (y < @as(f64, @floatFromInt(self.contentTop()))) {
+ if (mouse_button == 0x110) for (toolbarControls(self)) |control| {
+ if (control.enabled and contains(control.rect, @floatCast(x), @floatCast(y))) {
+ if (control.id == 20) self.leaveTransfers() else if (control.id == 22) {
+ self.startTorrents();
+ self.invalidate();
+ } else if (control.id != 24) activate(self, control.id);
+ break;
+ }
+ };
+ return true;
+ }
+ if (x < @as(f64, @floatFromInt(self.sidebarWidth())) or y >= @as(f64, @floatFromInt(self.contentBottom()))) return false;
+ if (x >= @as(f64, @floatFromInt(self.w - self.scrollbarGutter()))) return false;
+ if (mouse_button == 0x110) {
+ self.focus = .file_view;
+ if (transferAt(self, x, y)) |row| openTransfer(self, row);
+ }
+ return true;
+}
+
+pub fn transferPaneHover(self: *App) usize {
+ for (toolbarControls(self), 0..) |control, i| if (control.enabled and contains(control.rect, @floatCast(self.mouse_x), @floatCast(self.mouse_y))) return std.math.maxInt(usize) - 2100 - i;
+ if (transferAt(self, self.mouse_x, self.mouse_y)) |row| return std.math.maxInt(usize) - 2200 - row;
+ return std.math.maxInt(usize) - 2300;
+}
+
+pub fn transferPaneKey(self: *App, sym: u32) void {
+ if (sym == c.XKB_KEY_Escape or (self.alt and (sym == c.XKB_KEY_Left or sym == c.XKB_KEY_Up))) {
+ self.leaveTransfers();
+ return;
+ }
+ if (self.ctrl and (sym == c.XKB_KEY_o or sym == c.XKB_KEY_O)) {
+ self.torrentSource(null);
+ return;
+ }
+ const list = toolbarControls(self);
+ if (sym == c.XKB_KEY_Tab or sym == c.XKB_KEY_ISO_Left_Tab) {
+ var index = self.transfer_view.focus;
+ for (0..list.len + 1) |_| {
+ index = (index + if (self.shift) list.len else @as(usize, 1)) % (list.len + 1);
+ if (index == 0 or list[index - 1].enabled) break;
+ }
+ self.transfer_view.focus = index;
+ } else if (sym == c.XKB_KEY_Up or sym == c.XKB_KEY_Down or sym == c.XKB_KEY_Home or sym == c.XKB_KEY_End or sym == c.XKB_KEY_Page_Up or sym == c.XKB_KEY_Page_Down) {
+ const count = self.torrents.items().len;
+ if (count > 0) {
+ const row = @min(self.transfer_view.row orelse 0, count - 1);
+ const page: usize = @intCast(@max(1, @divTrunc(self.contentBottom() - self.viewTop(), self.rowHeight())));
+ self.transfer_view.row = switch (sym) {
+ c.XKB_KEY_Home => 0,
+ c.XKB_KEY_End => count - 1,
+ c.XKB_KEY_Up => row -| 1,
+ c.XKB_KEY_Page_Up => row -| page,
+ c.XKB_KEY_Page_Down => @min(count - 1, row + page),
+ else => if (self.transfer_view.row == null) 0 else @min(count - 1, row + 1),
+ };
+ self.transfer_view.focus = 0;
+ self.revealIndex(self.transfer_view.row.?);
+ }
+ } else if (sym == c.XKB_KEY_Return or sym == c.XKB_KEY_space) {
+ const index = self.transfer_view.focus;
+ if (index > 0 and index <= list.len) {
+ const control = list[index - 1];
+ _ = self.transferPaneClick(control.rect.x + 1, control.rect.y + 1, 0x110);
+ } else if (self.transfer_view.row) |row| {
+ if (row < self.torrents.items().len) openTransfer(self, row);
+ }
+ }
+ self.invalidate();
+}
+
+pub fn toggleTorrent(self: *App, t: Transfer) void {
+ if (t.pending) {
+ self.openTorrentDetails(t.id);
+ return;
+ }
+ _ = self.torrents.send(.{ .op = if (t.paused) @as([]const u8, "resume") else "pause", .id = t.id });
+ self.invalidate();
+}
+pub fn openTorrentDetails(self: *App, id: []const u8) void {
+ for (self.torrents.items(), 0..) |t, index| if (std.mem.eql(u8, t.id, id)) {
+ self.closeDialog();
+ openTransfer(self, index);
+ return;
+ };
+}
diff --git a/src/files/appimage.zig b/src/files/appimage.zig
new file mode 100644
index 0000000..56a7c9c
--- /dev/null
+++ b/src/files/appimage.zig
@@ -0,0 +1,298 @@
+//! Desktop integration for type-2 AppImages. Read metadata with unsquashfs;
+//! never execute the image or its AppRun while adding it to the applications.
+const std = @import("std");
+const tr = @import("i18n").tr;
+const c = @import("c.zig").api;
+const Allocator = std.mem.Allocator;
+
+extern fn g_key_file_new() *anyopaque;
+extern fn g_key_file_unref(key_file: *anyopaque) void;
+extern fn g_key_file_load_from_data(key_file: *anyopaque, data: [*]const u8, length: usize, flags: c_int, err: ?*?*anyopaque) c_int;
+extern fn g_key_file_get_keys(key_file: *anyopaque, group: [*:0]const u8, length: ?*usize, err: ?*?*anyopaque) ?[*:null]?[*:0]u8;
+extern fn g_key_file_get_string(key_file: *anyopaque, group: [*:0]const u8, key: [*:0]const u8, err: ?*?*anyopaque) ?[*:0]u8;
+extern fn g_key_file_set_string(key_file: *anyopaque, group: [*:0]const u8, key: [*:0]const u8, value: [*:0]const u8) void;
+extern fn g_key_file_to_data(key_file: *anyopaque, length: ?*usize, err: ?*?*anyopaque) ?[*:0]u8;
+extern fn g_strfreev(strings: ?[*:null]?[*:0]u8) void;
+extern fn g_free(memory: ?*anyopaque) void;
+extern fn g_object_unref(object: *anyopaque) void;
+extern fn g_desktop_app_info_new_from_filename(filename: [*:0]const u8) ?*anyopaque;
+extern fn g_desktop_app_info_new_from_keyfile(key_file: *anyopaque) ?*anyopaque;
+extern fn g_app_info_get_default_for_type(content_type: [*:0]const u8, must_support_uris: c_int) ?*anyopaque;
+extern fn g_app_info_add_supports_type(app: *anyopaque, content_type: [*:0]const u8, err: ?*?*anyopaque) c_int;
+extern fn g_app_info_set_as_default_for_type(app: *anyopaque, content_type: [*:0]const u8, err: ?*?*anyopaque) c_int;
+
+pub const Notice = struct { message: []const u8, failed: bool = false };
+
+pub fn candidate(name: []const u8) bool {
+ return std.ascii.endsWithIgnoreCase(name, ".AppImage");
+}
+
+pub fn message(err: anyerror) []const u8 {
+ return switch (err) {
+ error.FileNotFound => tr("Install squashfs-tools to add AppImages to applications"),
+ error.UnsupportedAppImage => tr("Only type-2 AppImages are supported"),
+ error.InvalidDesktopEntry, error.MissingDesktopEntry => tr("The AppImage has no usable application launcher"),
+ error.AmbiguousDesktopEntry => tr("The AppImage contains more than one application launcher"),
+ error.InvalidAppImage, error.ReadFailed, error.MetadataFailed => tr("Could not read the AppImage's application details"),
+ error.AssociationFailed => tr("Application added, but some file or link associations could not be registered"),
+ else => tr("Could not add the AppImage to applications"),
+ };
+}
+
+fn readAt(fd: c_int, bytes: []u8, offset: u64) !void {
+ var n: usize = 0;
+ while (n < bytes.len) {
+ const got = c.pread(fd, bytes[n..].ptr, bytes.len - n, @intCast(offset + n));
+ if (got < 0 and std.posix.errno(got) == .INTR) continue;
+ if (got <= 0) return error.ReadFailed;
+ n += @intCast(got);
+ }
+}
+
+/// AppImage's filesystem starts after the ELF's last on-disk section/table.
+/// Computing this avoids mistaking the runtime's embedded "hsqs" for a superblock.
+fn filesystemOffset(fd: c_int, size: u64) !u64 {
+ var header: [64]u8 = undefined;
+ try readAt(fd, &header, 0);
+ if (!std.mem.eql(u8, header[0..4], "\x7fELF") or !std.mem.eql(u8, header[8..11], "AI\x02")) return error.UnsupportedAppImage;
+ if (header[5] != 1 or (header[4] != 1 and header[4] != 2)) return error.UnsupportedAppImage;
+ const wide = header[4] == 2;
+ const table = if (wide) std.mem.readInt(u64, header[40..48], .little) else std.mem.readInt(u32, header[32..36], .little);
+ const stride = std.mem.readInt(u16, if (wide) header[58..60] else header[46..48], .little);
+ const count = std.mem.readInt(u16, if (wide) header[60..62] else header[48..50], .little);
+ if (count == 0 or count > 4096 or stride != @as(u16, if (wide) 64 else 40) or table > size or @as(u64, stride) * count > size - table) return error.InvalidAppImage;
+ var offset = table + @as(u64, stride) * count;
+ for (0..count) |i| {
+ var section: [64]u8 = undefined;
+ try readAt(fd, section[0..stride], table + i * stride);
+ const kind = std.mem.readInt(u32, section[4..8], .little);
+ if (kind == 8) continue; // SHT_NOBITS has no bytes on disk.
+ const start = if (wide) std.mem.readInt(u64, section[24..32], .little) else std.mem.readInt(u32, section[16..20], .little);
+ const length = if (wide) std.mem.readInt(u64, section[32..40], .little) else std.mem.readInt(u32, section[20..24], .little);
+ if (start > size or length > size - start) return error.InvalidAppImage;
+ offset = @max(offset, start + length);
+ }
+ var super: [96]u8 = undefined;
+ if (offset > size or size - offset < super.len) return error.InvalidAppImage;
+ try readAt(fd, &super, offset);
+ const used = std.mem.readInt(u64, super[40..48], .little);
+ if (!std.mem.eql(u8, super[0..4], "hsqs") or std.mem.readInt(u16, super[28..30], .little) != 4 or used < super.len or used > size - offset) return error.InvalidAppImage;
+ return offset;
+}
+
+fn command(a: Allocator, io: std.Io, args: []const []const u8, limit: usize) ![]const u8 {
+ const result = try std.process.run(a, io, .{
+ .argv = args,
+ .stdout_limit = .limited(limit),
+ .stderr_limit = .limited(16384),
+ .timeout = .{ .duration = .{ .raw = .fromSeconds(10), .clock = .awake } },
+ });
+ defer a.free(result.stderr);
+ if (result.term != .exited or result.term.exited != 0) {
+ a.free(result.stdout);
+ return error.MetadataFailed;
+ }
+ return result.stdout;
+}
+
+const Image = struct {
+ path: []const u8,
+ offset: []const u8,
+
+ fn cat(self: Image, a: Allocator, io: std.Io, member: []const u8, limit: usize) ![]const u8 {
+ return command(a, io, &.{ "unsquashfs", "-cat", "-no-wildcards", "-processors", "1", "-mem", "16M", "-offset", self.offset, self.path, member }, limit);
+ }
+};
+
+fn get(file: *anyopaque, key: [*:0]const u8) ?[*:0]u8 {
+ return g_key_file_get_string(file, "Desktop Entry", key, null);
+}
+
+fn set(a: Allocator, file: *anyopaque, key: [*:0]const u8, value: []const u8) !void {
+ const z = try a.dupeZ(u8, value);
+ defer a.free(z);
+ g_key_file_set_string(file, "Desktop Entry", key, z);
+}
+
+/// Quote for Desktop Entry Exec, before the key-file layer escapes backslashes.
+fn quotedExecutable(a: Allocator, path: []const u8) ![]const u8 {
+ var out: std.ArrayList(u8) = .empty;
+ errdefer out.deinit(a);
+ try out.append(a, '"');
+ for (path) |ch| {
+ if (ch < 32 or ch == 127) return error.InvalidDesktopEntry;
+ if (std.mem.indexOfScalar(u8, "\\\"`$", ch) != null) try out.append(a, '\\');
+ try out.append(a, ch);
+ if (ch == '%') try out.append(a, '%');
+ }
+ try out.append(a, '"');
+ return out.toOwnedSlice(a);
+}
+
+/// Keep the bundled argument template, replacing only its executable. Desktop
+/// actions, TryExec, Path and D-Bus activation must not refer into the image.
+fn launcher(a: Allocator, source: *anyopaque, path: []const u8, icon: []const u8) ![]const u8 {
+ const kind = get(source, "Type") orelse return error.InvalidDesktopEntry;
+ defer g_free(kind);
+ if (!std.mem.eql(u8, std.mem.span(kind), "Application")) return error.InvalidDesktopEntry;
+ const name = get(source, "Name") orelse return error.InvalidDesktopEntry;
+ defer g_free(name);
+ if (std.mem.span(name).len == 0) return error.InvalidDesktopEntry;
+ const exec_z = get(source, "Exec") orelse return error.InvalidDesktopEntry;
+ defer g_free(exec_z);
+ const exec = std.mem.trim(u8, std.mem.span(exec_z), " \t");
+ var end: usize = 0;
+ var quote = false;
+ while (end < exec.len) : (end += 1) {
+ const ch = exec[end];
+ if (ch == '\\') {
+ end += 1;
+ if (end == exec.len) return error.InvalidDesktopEntry;
+ } else if (ch == '"') {
+ quote = !quote;
+ } else if (!quote and (ch == ' ' or ch == '\t')) break;
+ }
+ if (quote or end == 0) return error.InvalidDesktopEntry;
+ const quoted = try quotedExecutable(a, path);
+ defer a.free(quoted);
+ // GIO checks argv[0] before expanding %% field escapes. Putting the path
+ // in env's argv lets filenames containing '%' pass both loading and launch.
+ const new_exec = try std.fmt.allocPrint(a, "/usr/bin/env -- {s}{s}", .{ quoted, exec[end..] });
+ defer a.free(new_exec);
+ const target = g_key_file_new();
+ defer g_key_file_unref(target);
+ const keys = g_key_file_get_keys(source, "Desktop Entry", null, null) orelse return error.InvalidDesktopEntry;
+ defer g_strfreev(keys);
+ var i: usize = 0;
+ while (keys[i]) |key| : (i += 1) {
+ const k = std.mem.span(key);
+ const keep = for ([_][]const u8{ "Name", "GenericName", "Comment", "Keywords", "Categories", "StartupWMClass", "Terminal", "MimeType", "PrefersNonDefaultGPU" }) |allowed| {
+ if (std.mem.eql(u8, k, allowed) or
+ (std.mem.startsWith(u8, k, allowed) and k.len > allowed.len and k[allowed.len] == '[')) break true;
+ } else false;
+ if (!keep) continue;
+ const value = get(source, key) orelse continue;
+ defer g_free(value);
+ try set(a, target, key, std.mem.span(value));
+ }
+ try set(a, target, "Type", "Application");
+ try set(a, target, "Exec", new_exec);
+ try set(a, target, "Icon", icon);
+ try set(a, target, "X-RediWM-AppImage", path);
+ const checked = g_desktop_app_info_new_from_keyfile(target) orelse return error.InvalidDesktopEntry;
+ g_object_unref(checked);
+ var length: usize = 0;
+ const data = g_key_file_to_data(target, &length, null) orelse return error.InvalidDesktopEntry;
+ defer g_free(data);
+ return a.dupe(u8, data[0..length]);
+}
+
+fn atomicWrite(a: Allocator, io: std.Io, path: []const u8, bytes: []const u8) !void {
+ const tmp = try std.fmt.allocPrintSentinel(a, "{s}.XXXXXX", .{path}, 0);
+ defer a.free(tmp);
+ const fd = c.mkstemp(tmp);
+ if (fd < 0) return error.WriteFailed;
+ defer _ = c.close(fd);
+ defer _ = c.unlink(tmp);
+ var sent: usize = 0;
+ while (sent < bytes.len) {
+ const n = c.write(fd, bytes[sent..].ptr, bytes.len - sent);
+ if (n < 0 and std.posix.errno(n) == .INTR) continue;
+ if (n <= 0) return error.WriteFailed;
+ sent += @intCast(n);
+ }
+ try std.Io.Dir.rename(.cwd(), tmp, .cwd(), path, io);
+}
+
+/// The caller owns an arena. No files are extracted from the image to disk;
+/// only bounded launcher/icon bytes are published to the user's XDG data dir.
+pub fn install(a: Allocator, io: std.Io, environ: std.process.Environ, path: []const u8) !void {
+ const zpath = try a.dupeZ(u8, path);
+ const canonical = c.realpath(zpath, null) orelse return error.ReadFailed;
+ defer c.free(canonical);
+ const image_path = std.mem.span(canonical);
+ const fd = c.open(canonical, c.O_RDONLY | c.O_NONBLOCK | c.O_CLOEXEC);
+ if (fd < 0) return error.ReadFailed;
+ defer _ = c.close(fd);
+ var stat: c.struct_stat = undefined;
+ if (c.fstat(fd, &stat) != 0 or stat.st_mode & c.S_IFMT != c.S_IFREG or stat.st_size < 64) return error.InvalidAppImage;
+ const offset = try filesystemOffset(fd, @intCast(stat.st_size));
+ const image: Image = .{ .path = image_path, .offset = try std.fmt.allocPrint(a, "{d}", .{offset}) };
+ const listing = try command(a, io, &.{ "unsquashfs", "-ls", "-offset", image.offset, image.path, "*.desktop" }, 256 * 1024);
+ var desktop: ?[]const u8 = null;
+ var lines = std.mem.splitScalar(u8, listing, '\n');
+ while (lines.next()) |line| {
+ const prefix = "squashfs-root/";
+ if (!std.mem.startsWith(u8, line, prefix)) continue;
+ const member = line[prefix.len..];
+ if (std.mem.indexOfAny(u8, member, "/\\\r\x00") != null or !std.mem.endsWith(u8, member, ".desktop")) continue;
+ if (desktop != null) return error.AmbiguousDesktopEntry;
+ desktop = member;
+ }
+ const data = try image.cat(a, io, desktop orelse return error.MissingDesktopEntry, 64 * 1024);
+ const source = g_key_file_new();
+ defer g_key_file_unref(source);
+ if (g_key_file_load_from_data(source, data.ptr, data.len, 2, null) == 0) return error.InvalidDesktopEntry;
+
+ const home = environ.getPosix("HOME") orelse return error.NoHome;
+ const data_home = if (environ.getPosix("XDG_DATA_HOME")) |dir| (if (std.fs.path.isAbsolute(dir)) dir else null) else null;
+ const base = data_home orelse try std.fs.path.join(a, &.{ home, ".local/share" });
+ // Path-derived IDs make repeated adds idempotent and avoid overwriting a
+ // packaged launcher or another AppImage with the same embedded filename.
+ var digest: [32]u8 = undefined;
+ std.crypto.hash.sha2.Sha256.hash(image_path, &digest, .{});
+ const id = try std.fmt.allocPrint(a, "rediwm-appimage-{s}", .{std.fmt.bytesToHex(digest[0..16], .lower)});
+ const applications = try std.fs.path.join(a, &.{ base, "applications" });
+ const icon_dir = try std.fs.path.join(a, &.{ base, "icons/hicolor/256x256/apps" });
+ const desktop_path = try std.fmt.allocPrintSentinel(a, "{s}/{s}.desktop", .{ applications, id }, 0);
+
+ var icon_bytes: ?[]const u8 = image.cat(a, io, ".DirIcon", 4 * 1024 * 1024) catch null;
+ if (icon_bytes == null) {
+ if (get(source, "Icon")) |icon| {
+ defer g_free(icon);
+ const name = std.mem.span(icon);
+ if (name.len > 0 and std.mem.indexOfAny(u8, name, "/\\\n\r") == null) {
+ for ([_][]const u8{ "", ".png", ".svg", ".xpm" }) |extension| {
+ icon_bytes = image.cat(a, io, try std.fmt.allocPrint(a, "{s}{s}", .{ name, extension }), 4 * 1024 * 1024) catch continue;
+ break;
+ }
+ }
+ }
+ }
+ var icon_path: []const u8 = "application-x-executable";
+ if (icon_bytes) |bytes| {
+ const extension: ?[]const u8 = if (std.mem.startsWith(u8, bytes, "\x89PNG\r\n\x1a\n")) "png" else if (std.mem.indexOf(u8, bytes[0..@min(bytes.len, 4096)], "<svg") != null) "svg" else if (std.mem.startsWith(u8, bytes, "/* XPM */")) "xpm" else null;
+ if (extension) |ext| {
+ try std.Io.Dir.cwd().createDirPath(io, icon_dir);
+ icon_path = try std.fmt.allocPrint(a, "{s}/{s}.{s}", .{ icon_dir, id, ext });
+ try atomicWrite(a, io, icon_path, bytes);
+ }
+ }
+ const output = try launcher(a, source, image_path, icon_path);
+ try std.Io.Dir.cwd().createDirPath(io, applications);
+ // An already executable image can live in a read-only/shared location.
+ // Otherwise grant owner execute, preserving ordinary access bits only.
+ if (c.access(canonical, c.X_OK) != 0 and c.fchmod(fd, (stat.st_mode & 0o777) | 0o100) != 0) return error.WriteFailed;
+ try atomicWrite(a, io, desktop_path, output);
+ const app = g_desktop_app_info_new_from_filename(desktop_path) orelse return error.InvalidDesktopEntry;
+ defer g_object_unref(app);
+ if (get(source, "MimeType")) |types| {
+ defer g_free(types);
+ var entries = std.mem.splitScalar(u8, std.mem.span(types), ';');
+ var failed = false;
+ while (entries.next()) |entry| {
+ if (entry.len == 0) continue;
+ if (entry.len > 255 or std.mem.indexOfScalar(u8, entry, '/') == null or std.mem.indexOfAny(u8, entry, " \t\r\n\\") != null) continue;
+ const mime = try a.dupeZ(u8, entry);
+ if (g_app_info_add_supports_type(app, mime, null) == 0) failed = true;
+ // Claim unhandled URL schemes (including Unity's sign-in callback),
+ // preserving an existing user choice and all file-type defaults.
+ if (std.mem.startsWith(u8, entry, "x-scheme-handler/")) {
+ if (g_app_info_get_default_for_type(mime, 0)) |existing| {
+ g_object_unref(existing);
+ } else if (g_app_info_set_as_default_for_type(app, mime, null) == 0) failed = true;
+ }
+ }
+ if (failed) return error.AssociationFailed;
+ }
+}
diff --git a/src/files/archive.zig b/src/files/archive.zig
index 56e2840..476d341 100644
--- a/src/files/archive.zig
+++ b/src/files/archive.zig
@@ -1,6 +1,7 @@
//! Read-only archive indexing and extraction. No process cwd changes and no
//! archive-controlled programs. All output walks are relative to an owned dirfd.
const std = @import("std");
+const tr = @import("i18n").tr;
const c = @import("c.zig").api;
const a = @cImport({
@cInclude("archive.h");
@@ -18,16 +19,16 @@ pub fn candidate(path: []const u8) bool {
pub fn message(err: anyerror) []const u8 {
return switch (err) {
- error.Cancelled => "Extraction cancelled",
- error.EncryptedArchive => "Password-protected archives are not supported yet",
- error.UnsafeArchivePath => "Archive contains an unsafe path",
- error.UnsupportedArchiveEntry => "Archive contains unsupported links or special files",
- error.ArchiveTooLarge => "Archive has too many entries",
- error.OpenArchiveFailed => "Could not open archive",
- error.InvalidArchive => "Archive is corrupt or unsupported",
- error.WriteFailed => "Could not write extracted file (check space and permissions)",
- error.MemberNotFound => "File no longer exists in the archive",
- else => "Could not extract archive",
+ error.Cancelled => tr("Extraction cancelled"),
+ error.EncryptedArchive => tr("Password-protected archives are not supported yet"),
+ error.UnsafeArchivePath => tr("Archive contains an unsafe path"),
+ error.UnsupportedArchiveEntry => tr("Archive contains unsupported links or special files"),
+ error.ArchiveTooLarge => tr("Archive has too many entries"),
+ error.OpenArchiveFailed => tr("Could not open archive"),
+ error.InvalidArchive => tr("Archive is corrupt or unsupported"),
+ error.WriteFailed => tr("Could not write extracted file (check space and permissions)"),
+ error.MemberNotFound => tr("File no longer exists in the archive"),
+ else => tr("Could not extract archive"),
};
}
diff --git a/src/files/associations.zig b/src/files/associations.zig
index 69fe716..9e39bdf 100644
--- a/src/files/associations.zig
+++ b/src/files/associations.zig
@@ -5,6 +5,7 @@
//! to the Open With dialog. Neither owns the UI icon cache.
const std = @import("std");
const mime_db = @import("../mime_db.zig");
+const collation = @import("collation.zig");
const Allocator = std.mem.Allocator;
// GLib headers cannot be translated by Zig; declare the stable GIO ABI only.
@@ -143,6 +144,7 @@ pub const Applications = struct {
pub const Entry = struct {
app: *anyopaque,
name: []const u8,
+ sort_key: []const u8 = "",
icons: []const []const u8,
is_default: bool,
};
@@ -164,9 +166,12 @@ pub const Applications = struct {
if (self.same_type) try self.appendList(g_app_info_get_all_for_type(self.content_type), default, false);
self.recommended = self.entries.items.len;
try self.appendList(g_app_info_get_all(), default, true);
+ var locale = collation.Locale.init(@import("settings.zig").formatsLocale()) orelse collation.Locale.init("C").?;
+ defer locale.deinit();
+ for (self.entries.items) |*entry| entry.sort_key = try locale.key(a, entry.name);
std.mem.sort(Entry, self.entries.items[self.recommended..], {}, struct {
fn less(_: void, a_entry: Entry, b_entry: Entry) bool {
- return std.ascii.lessThanIgnoreCase(a_entry.name, b_entry.name);
+ return collation.order(a_entry.sort_key, b_entry.sort_key, a_entry.name, b_entry.name, "", "") == .lt;
}
}.less);
return self;
diff --git a/src/files/collation.zig b/src/files/collation.zig
new file mode 100644
index 0000000..6385d4f
--- /dev/null
+++ b/src/files/collation.zig
@@ -0,0 +1,135 @@
+//! Private name collation. Keys are frozen with each listing so UI sorting
+//! never calls libc, changes the process locale or races a worker update.
+const std = @import("std");
+const c = @cImport({
+ @cUndef("_FORTIFY_SOURCE");
+ @cDefine("_GNU_SOURCE", "1");
+ @cInclude("locale.h");
+ @cInclude("string.h");
+});
+
+pub const Locale = struct {
+ handle: c.locale_t,
+ name_buffer: [256:0]u8,
+ name_len: usize,
+
+ pub fn init(locale_name: []const u8) ?Locale {
+ if (locale_name.len >= 256 or std.mem.indexOfScalar(u8, locale_name, 0) != null) return null;
+ var self: Locale = .{ .handle = null, .name_buffer = @splat(0), .name_len = locale_name.len };
+ @memcpy(self.name_buffer[0..locale_name.len], locale_name);
+ self.handle = c.newlocale(c.LC_COLLATE_MASK, &self.name_buffer, null) orelse return null;
+ return self;
+ }
+
+ pub fn deinit(self: *Locale) void {
+ c.freelocale(self.handle);
+ self.* = undefined;
+ }
+
+ pub fn name(self: *const Locale) []const u8 {
+ return self.name_buffer[0..self.name_len];
+ }
+
+ /// Empty preferences inherit LC_ALL, LC_COLLATE, then LANG. Reading the
+ /// supplied environment also keeps isolated worker fixtures independent
+ /// of libc's process-global environment.
+ pub fn requested(formats: []const u8, env: std.process.Environ) []const u8 {
+ if (formats.len > 0) return formats;
+ inline for (.{ "LC_ALL", "LC_COLLATE", "LANG" }) |variable| {
+ if (env.getPosix(variable)) |value| if (value.len > 0) return value;
+ }
+ return "C";
+ }
+
+ pub fn fromPreferences(formats: []const u8, env: std.process.Environ) Locale {
+ return init(requested(formats, env)) orelse init("C").?;
+ }
+
+ pub fn key(self: *const Locale, allocator: std.mem.Allocator, text: []const u8) ![]const u8 {
+ // Linux filenames need not be UTF-8. Keep their raw bytes as a stable
+ // key instead of passing malformed multibyte sequences to libc.
+ if (!std.unicode.utf8ValidateSlice(text) or std.mem.indexOfScalar(u8, text, 0) != null) return allocator.dupe(u8, text);
+ var source_buffer: [1024]u8 = undefined;
+ const owned_source = if (text.len >= source_buffer.len) try allocator.dupeZ(u8, text) else null;
+ defer if (owned_source) |owned| allocator.free(owned);
+ const ztext: [:0]const u8 = owned_source orelse blk: {
+ @memcpy(source_buffer[0..text.len], text);
+ source_buffer[text.len] = 0;
+ break :blk source_buffer[0..text.len :0];
+ };
+ var unused: [1]u8 = undefined;
+ const size = c.strxfrm_l(&unused, ztext, 0, self.handle);
+ if (size == std.math.maxInt(usize)) return error.OutOfMemory;
+ const result = try allocator.alloc(u8, size + 1);
+ errdefer allocator.free(result);
+ if (c.strxfrm_l(result.ptr, ztext, result.len, self.handle) != size) return error.InvalidCollation;
+ // Keep the allocation's terminating byte in the slice. It is equal
+ // for every key and lets ordinary allocators free the exact length.
+ return result;
+ }
+};
+
+/// Equal collation weights use the original bytes and full path, giving
+/// distinct files a repeatable order across readdir and refreshes.
+pub fn order(a_key: []const u8, b_key: []const u8, a: []const u8, b: []const u8, a_path: []const u8, b_path: []const u8) std.math.Order {
+ const weights = std.mem.order(u8, a_key, b_key);
+ if (weights != .eq) return weights;
+ const names = std.mem.order(u8, a, b);
+ return if (names != .eq) names else std.mem.order(u8, a_path, b_path);
+}
+
+const Fixture = struct { text: []const u8, key: []const u8 };
+
+fn checkOrder(locale_name: []const u8, expected: []const []const u8) !void {
+ var locale = Locale.init(locale_name) orelse {
+ std.debug.print("SKIP Files collation: locale {s} is not installed\n", .{locale_name});
+ return error.SkipZigTest;
+ };
+ defer locale.deinit();
+ var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
+ defer arena.deinit();
+ const entries = try arena.allocator().alloc(Fixture, expected.len);
+ for (expected, 0..) |text, i| entries[expected.len - 1 - i] = .{ .text = text, .key = try locale.key(arena.allocator(), text) };
+ std.mem.sort(Fixture, entries, {}, struct {
+ fn less(_: void, a: Fixture, b: Fixture) bool {
+ return order(a.key, b.key, a.text, b.text, a.text, b.text) == .lt;
+ }
+ }.less);
+ for (entries, expected) |entry, text| try std.testing.expectEqualStrings(text, entry.text);
+}
+
+test "C name collation preserves byte order for a mixed name list" {
+ try checkOrder("C", &.{ "Apfel", "Zebra", "apple", "Äpfel", "Élan", "Ёж", "Ель", "Яблоко" });
+}
+
+test "German name collation places accented names beside their base letters" {
+ try checkOrder("de_DE.UTF-8", &.{ "Apfel", "Äpfel", "apple", "Élan", "Zebra", "Ёж", "Ель", "Яблоко" });
+}
+
+test "Russian name collation orders Cyrillic names and yo with ye" {
+ try checkOrder("ru_RU.UTF-8", &.{ "Apfel", "Äpfel", "apple", "Élan", "Zebra", "Еж", "Ёж", "Ель", "Яблоко" });
+}
+
+test "name collation accepts invalid UTF-8 and keeps deterministic ties" {
+ var locale = Locale.init("C").?;
+ defer locale.deinit();
+ const invalid = try locale.key(std.testing.allocator, "invalid\xff");
+ defer std.testing.allocator.free(invalid);
+ try std.testing.expectEqualStrings("invalid\xff", invalid);
+ try std.testing.expectEqual(std.math.Order.lt, order("same", "same", "name", "name", "/a/name", "/b/name"));
+ try std.testing.expect(Locale.init("bad\x00locale") == null);
+ try std.testing.expect(Locale.init("no_such_REDIWM_locale") == null);
+}
+
+test "Files collation preferences override environment with LC_COLLATE fallback" {
+ const env: std.process.Environ = .{ .block = .{ .slice = &.{ "LANG=ru_RU.UTF-8", "LC_COLLATE=de_DE.UTF-8", "LC_ALL=C" } } };
+ try std.testing.expectEqualStrings("fr_FR.UTF-8", Locale.requested("fr_FR.UTF-8", env));
+ try std.testing.expectEqualStrings("C", Locale.requested("", env));
+ const category_env: std.process.Environ = .{ .block = .{ .slice = &.{ "LANG=ru_RU.UTF-8", "LC_COLLATE=de_DE.UTF-8", "LC_ALL=" } } };
+ try std.testing.expectEqualStrings("de_DE.UTF-8", Locale.requested("", category_env));
+ const language_env: std.process.Environ = .{ .block = .{ .slice = &.{"LANG=ru_RU.UTF-8"} } };
+ try std.testing.expectEqualStrings("ru_RU.UTF-8", Locale.requested("", language_env));
+ var fallback = Locale.fromPreferences("no_such_REDIWM_locale", .empty);
+ defer fallback.deinit();
+ try std.testing.expectEqualStrings("C", fallback.name());
+}
diff --git a/src/files/git.zig b/src/files/git.zig
index 077d8f9..c696110 100644
--- a/src/files/git.zig
+++ b/src/files/git.zig
@@ -6,6 +6,7 @@
//! shown as a plain folder; every other is queried with fsmonitor, hooks,
//! submodule recursion and every transport (lazy fetches included) disabled.
const std = @import("std");
+const tr = @import("i18n").tr;
const c = @import("c.zig").api;
const Allocator = std.mem.Allocator;
@@ -270,17 +271,17 @@ pub fn switchBranch(mem: Allocator, io: std.Io, environ: std.process.Environ, di
return o.*;
}
}.set;
- if (name.len == 0) return fail(&out, "Branch name cannot be empty");
- if (name[0] == '-') return fail(&out, "Invalid branch name");
- var env = cleanEnv(mem, environ) catch return fail(&out, "Out of memory");
+ if (name.len == 0) return fail(&out, tr("Branch name cannot be empty"));
+ if (name[0] == '-') return fail(&out, tr("Invalid branch name"));
+ var env = cleanEnv(mem, environ) catch return fail(&out, tr("Out of memory"));
defer env.deinit();
- if (!trustedRepository(mem, io, &env, dir)) return fail(&out, "This repository runs its own programs; switch branches in a terminal");
+ if (!trustedRepository(mem, io, &env, dir)) return fail(&out, tr("This repository runs its own programs; switch branches in a terminal"));
var argv: std.ArrayList([]const u8) = .empty;
defer argv.deinit(mem);
- argv.appendSlice(mem, &safe_options) catch return fail(&out, "Out of memory");
- argv.appendSlice(mem, &.{ "-C", dir, "switch", "--no-recurse-submodules" }) catch return fail(&out, "Out of memory");
- if (create) argv.append(mem, "-c") catch return fail(&out, "Out of memory");
- argv.append(mem, name) catch return fail(&out, "Out of memory");
+ argv.appendSlice(mem, &safe_options) catch return fail(&out, tr("Out of memory"));
+ argv.appendSlice(mem, &.{ "-C", dir, "switch", "--no-recurse-submodules" }) catch return fail(&out, tr("Out of memory"));
+ if (create) argv.append(mem, "-c") catch return fail(&out, tr("Out of memory"));
+ argv.append(mem, name) catch return fail(&out, tr("Out of memory"));
const result = std.process.run(mem, io, .{
.argv = argv.items,
.environ_map = &env,
@@ -288,7 +289,7 @@ pub fn switchBranch(mem: Allocator, io: std.Io, environ: std.process.Environ, di
.stderr_limit = .limited(64 * 1024),
// A checkout can rewrite many files; do not kill it half way.
.timeout = .{ .duration = .{ .raw = .fromSeconds(60), .clock = .awake } },
- }) catch return fail(&out, "Could not run git");
+ }) catch return fail(&out, tr("Could not run git"));
defer mem.free(result.stdout);
defer mem.free(result.stderr);
if (result.term == .exited and result.term.exited == 0) {
@@ -301,7 +302,7 @@ pub fn switchBranch(mem: Allocator, io: std.Io, environ: std.process.Environ, di
if (trimmed.len == 0) continue;
return fail(&out, std.mem.trimStart(u8, std.mem.trimStart(u8, trimmed, "fatal:"), " "));
}
- return fail(&out, "git switch failed");
+ return fail(&out, tr("git switch failed"));
}
pub fn scan(mem: Allocator, io: std.Io, environ: std.process.Environ, dir: []const u8) !?Repository {
diff --git a/src/files/main.zig b/src/files/main.zig
index 128c843..3eb22b4 100644
--- a/src/files/main.zig
+++ b/src/files/main.zig
@@ -74,6 +74,7 @@ pub const Client = struct {
drop_offer: ?*Offer = null,
drop_receiving: ?transfer.Receive = null,
drop_slot: ?usize = null,
+ drop_terminal: bool = false,
drop_move: bool = false,
clipboard_source: ?*ClipboardSource = null,
drag_source: ?*ClipboardSource = null,
@@ -187,7 +188,7 @@ pub const Client = struct {
fn pollTimeout(self: *Client) c_int {
if (self.app.wheel_glide.active() or self.app.selectionNeedsScroll() or self.app.hover_active or self.app.layout_active or self.app.scroll_appearance.active or self.app.sidebar_scroll_appearance.active or self.app.horizontal_appearance.active or self.app.terminal.active or self.app.terminal.bar.active) return 16;
if (self.app.hasRunningFolderSize()) return 33;
- var deadline: ?i64 = null;
+ var deadline: ?i64 = self.app.torrents.retry_at;
if (self.app.terminal.close_at) |at| deadline = earlier(deadline, at);
if (self.app.terminal.visible) if (self.app.terminal.bar.deadline) |at| {
deadline = earlier(deadline, at);
@@ -496,7 +497,7 @@ pub const Client = struct {
defer {
if (self.app.drag_ready) {
self.app.drag_ready = false;
- self.startFileDrag() catch self.app.setStatusNotice("Could not start file drag", true);
+ self.startFileDrag() catch self.app.setStatusNotice(@import("i18n").tr("Could not start file drag"), true);
}
}
@@ -708,9 +709,10 @@ pub const Client = struct {
self.drag_y = y - @as(f64, @floatFromInt(self.titlebarHeight()));
const available = offer.uri and self.drop_receiving == null;
const pin = available and self.app.dropMotion(x, self.drag_y);
- const folder = available and !pin and self.app.dropDirectoryAt(x, self.drag_y) != null;
+ const terminal = available and !pin and self.app.terminalDropAt(x, self.drag_y);
+ const folder = available and !pin and !terminal and self.app.dropDirectoryAt(x, self.drag_y) != null;
self.app.highlightDrop(x, self.drag_y, folder);
- const wanted = pin or folder;
+ const wanted = pin or folder or terminal;
const moving = folder and offer.files;
if (!entered and wanted == self.drag_accepting and moving == self.drag_moving) return;
self.drag_accepting = wanted;
@@ -718,7 +720,8 @@ pub const Client = struct {
offer.proxy.accept(self.drag_enter_serial, if (wanted) "text/uri-list" else null);
if (offer.proxy.getVersion() >= 3) {
// Files performs filesystem moves in the receiving job, never in
- // the source's finished callback. Other sources and pins copy.
+ // the source's finished callback. Other sources, pins and terminal
+ // path insertion use copy only.
offer.proxy.setActions(.{ .copy = wanted, .move = moving }, if (moving) .{ .move = true } else .{ .copy = wanted });
}
}
@@ -730,7 +733,8 @@ pub const Client = struct {
const accepted = self.drag_accepting;
self.drag_accepting = false;
const slot = self.app.takePinDrop();
- const directory = if (slot != null) "" else self.app.dropDirectoryAt(self.drag_x, self.drag_y) orelse {
+ const terminal = slot == null and self.app.terminalDropAt(self.drag_x, self.drag_y);
+ const directory = if (slot != null or terminal) "" else self.app.dropDirectoryAt(self.drag_x, self.drag_y) orelse {
self.discardOffer(offer);
return;
};
@@ -738,23 +742,29 @@ pub const Client = struct {
self.discardOffer(offer);
return;
}
- self.startDropReceive(offer, slot, directory) catch {
- self.app.setStatusNotice("Could not read the dropped items", true);
+ self.startDropReceive(offer, slot, directory, terminal) catch {
+ self.app.setStatusNotice(@import("i18n").tr("Could not read the dropped items"), true);
self.discardOffer(offer);
};
}
- fn startDropReceive(self: *Client, offer: *Offer, slot: ?usize, target: []const u8) !void {
+ fn startDropReceive(self: *Client, offer: *Offer, slot: ?usize, target: []const u8, terminal: bool) !void {
var fds: [2]c_int = undefined;
if (c.pipe2(&fds, c.O_CLOEXEC) != 0) return error.PipeFailed;
defer _ = c.close(fds[1]);
errdefer _ = c.close(fds[0]);
if (c.fcntl(fds[0], c.F_SETFL, @as(c_int, c.O_NONBLOCK)) < 0) return error.NonblockingFailed;
const directory = try a.dupe(u8, target);
- self.drop_receiving = .{ .fd = fds[0], .text = false, .revision = 0, .directory = directory, .started = app_mod.nowMs() };
+ if (terminal) {
+ self.app.focus = .terminal;
+ self.app.edit_revision += 1;
+ self.app.terminalDamage();
+ }
+ self.drop_receiving = .{ .fd = fds[0], .text = false, .revision = self.app.edit_revision, .directory = directory, .started = app_mod.nowMs() };
self.drop_offer = offer;
self.drop_slot = slot;
- self.drop_move = slot == null and offer.action.move;
+ self.drop_terminal = terminal;
+ self.drop_move = slot == null and !terminal and offer.action.move;
offer.proxy.receive("text/uri-list", fds[1]);
}
@@ -769,27 +779,31 @@ pub const Client = struct {
fn receiveDrop(self: *Client) void {
const receive = if (self.drop_receiving) |*r| r else return;
if (app_mod.nowMs() - receive.started > transfer.timeout_ms) {
- self.app.setStatusNotice("The drop timed out", true);
+ self.app.setStatusNotice(@import("i18n").tr("The drop timed out"), true);
self.finishDrop();
return;
}
const done = receive.read() catch {
- self.app.setStatusNotice("The dropped list failed or exceeded 1 MiB", true);
+ self.app.setStatusNotice(@import("i18n").tr("The dropped list failed or exceeded 1 MiB"), true);
self.finishDrop();
return;
};
if (!done) return;
defer self.finishDrop();
const decoded = clipboard_mod.decodeUris(a, receive.bytes.items) catch {
- self.app.setStatusNotice("Invalid dropped list", true);
+ self.app.setStatusNotice(@import("i18n").tr("Invalid dropped list"), true);
return;
};
defer decoded.deinit(a);
- if (self.drop_slot) |slot| {
+ if (self.drop_terminal) {
+ // Like clipboard paste, an asynchronous drop must not type into a
+ // different editor or a restarted session after focus changes.
+ if (receive.revision == self.app.edit_revision and self.app.focus == .terminal) self.app.terminalDropPaths(decoded.paths);
+ } else if (self.drop_slot) |slot| {
self.app.pinDropped(slot, decoded.paths);
} else {
const destination = canonicalPath(receive.directory) catch {
- self.app.setStatusNotice("The destination folder is unavailable", true);
+ self.app.setStatusNotice(@import("i18n").tr("The destination folder is unavailable"), true);
return;
};
defer a.free(destination);
@@ -799,7 +813,7 @@ pub const Client = struct {
const resolved = canonicalPath(path) catch continue;
defer a.free(resolved);
if (@import("ops.zig").isDescendantOrSame(resolved, destination)) {
- self.app.setStatusNotice("Cannot drop a folder into itself", true);
+ self.app.setStatusNotice(@import("i18n").tr("Cannot drop a folder into itself"), true);
return;
}
const parent = std.fs.path.dirname(path) orelse continue;
@@ -949,12 +963,12 @@ pub const Client = struct {
fn receiveClipboard(self: *Client) void {
const receive = if (self.receiving) |*r| r else return;
if (app_mod.nowMs() - receive.started > transfer.timeout_ms) {
- self.app.setStatusNotice("Clipboard transfer timed out", true);
+ self.app.setStatusNotice(@import("i18n").tr("Clipboard transfer timed out"), true);
self.cancelReceive();
return;
}
const done = receive.read() catch {
- self.app.setStatusNotice("Clipboard transfer failed or exceeded 1 MiB", true);
+ self.app.setStatusNotice(@import("i18n").tr("Clipboard transfer failed or exceeded 1 MiB"), true);
self.cancelReceive();
return;
};
@@ -966,7 +980,7 @@ pub const Client = struct {
// A delayed reply must not paste into a folder navigated to meanwhile.
if (!std.mem.eql(u8, receive.directory, self.app.history.current)) return;
const decoded = clipboard_mod.decodeUris(a, receive.bytes.items) catch {
- self.app.setStatusNotice("Invalid file clipboard", true);
+ self.app.setStatusNotice(@import("i18n").tr("Invalid file clipboard"), true);
return;
};
defer decoded.deinit(a);
@@ -1262,7 +1276,7 @@ const Buffer = struct {
}
};
-pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]const u8, chooser: ?@import("chooser.zig").Options) !void {
+pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]const u8, chooser: ?@import("chooser.zig").Options, torrent_source: ?[]const u8, transfers: bool) !void {
_ = c.signal(c.SIGPIPE, c.SIG_IGN);
const home_dir = init.minimal.environ.getPosix("HOME") orelse "/";
@@ -1301,6 +1315,9 @@ pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]con
if (chooser) |options| try self.app.configureChooser(options);
if (selected_file) |path| self.app.selectOnLoad(path);
self.app.startDevices();
+ if (chooser == null) self.app.startTorrents();
+ if (transfers) self.app.openTransfers();
+ if (torrent_source) |source| self.app.torrentSource(source);
defer {
self.clearDragIcon();
self.cancelReceive();
@@ -1375,6 +1392,7 @@ pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]con
while (self.running and !self.app.closed and !self.app.chooser_done) {
self.openEditor();
try self.handleClipboard();
+ self.app.stepTorrents();
self.app.sync();
self.app.stepThumbs();
self.app.stepWheel(app_mod.nowMs());
@@ -1409,7 +1427,7 @@ pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]con
return error.DisplayFailed;
}
- var fds: [22]c.struct_pollfd = @splat(.{ .fd = -1, .events = c.POLLIN, .revents = 0 });
+ var fds: [23]c.struct_pollfd = @splat(.{ .fd = -1, .events = c.POLLIN, .revents = 0 });
fds[0] = .{ .fd = display.getFd(), .events = @intCast(c.POLLIN | @as(c_int, if (flushed == .AGAIN) c.POLLOUT else 0)), .revents = 0 };
fds[1].fd = self.app.preview_return_fd orelse -1;
fds[2].fd = if (self.receiving) |receive| receive.fd else -1;
@@ -1427,6 +1445,7 @@ pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]con
fds[20] = .{ .fd = terminal_c.ft_channel(session), .events = @intCast(c.POLLIN | @as(c_int, if (terminal_c.ft_wants_request(session)) c.POLLOUT else 0)), .revents = 0 };
fds[21].fd = terminal_c.ft_pidfd(session);
}
+ fds[22].fd = self.app.torrents.fd;
const send_count = self.sends.items.len;
for (self.sends.items, 0..) |send, i| fds[i + 6] = .{ .fd = send.fd, .events = c.POLLOUT, .revents = 0 };
@@ -1439,6 +1458,10 @@ pub fn run(init: std.process.Init, target_dir: []const u8, selected_file: ?[]con
if ((fds[0].revents & (c.POLLERR | c.POLLHUP)) != 0) return error.DisplayFailed;
if (self.app.terminal.session) |session| terminal_c.ft_io(session, fds[19].revents & (c.POLLIN | c.POLLHUP | c.POLLERR) != 0, fds[19].revents & c.POLLOUT != 0, fds[20].revents != 0, fds[21].revents != 0);
+ if (fds[22].revents != 0) {
+ self.app.torrents.drain();
+ self.app.invalidate();
+ }
if (fds[3].revents & c.POLLIN != 0) self.app.worker.drainMain();
if (fds[4].revents & c.POLLIN != 0) {
if (self.app.dirsize_pool) |p| p.drainDone();
diff --git a/src/files/open_with.zig b/src/files/open_with.zig
index dd962f8..45f0d3e 100644
--- a/src/files/open_with.zig
+++ b/src/files/open_with.zig
@@ -1,5 +1,7 @@
//! Shared modal application picker for Open With and desktop shortcuts. Geometry is shared by painting and input.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const associations = @import("associations.zig");
const c = @import("c.zig").api;
const ui = @import("ui").cairo;
@@ -90,7 +92,7 @@ pub const State = struct {
const catalog = self.shortcut_catalog orelse return null;
var n: usize = 0;
for (catalog) |entry| {
- if (std.ascii.indexOfIgnoreCase(entry.name, self.query) == null) continue;
+ if (!@import("ui").fold.contains(entry.name, self.query, .{ .turkish = i18n.isTurkish() })) continue;
if (n == index) return entry;
n += 1;
}
@@ -132,7 +134,7 @@ pub const State = struct {
if (self.shortcut_catalog) |catalog| {
var n: usize = 0;
for (catalog) |entry| {
- if (std.ascii.indexOfIgnoreCase(entry.name, self.query) != null) n += 1;
+ if (@import("ui").fold.contains(entry.name, self.query, .{ .turkish = i18n.isTurkish() })) n += 1;
}
return n;
}
@@ -226,7 +228,7 @@ pub const State = struct {
if (self.shortcut_catalog != null) return false;
if (self.selected >= self.count()) return false;
self.apps.launch(self.selected, self.remember) catch |err| {
- self.message = if (err == error.DefaultFailed) "Opened, but could not save the default app" else "Could not open with this app. Choose another.";
+ self.message = if (err == error.DefaultFailed) tr("Opened, but could not save the default app") else tr("Could not open with this app. Choose another.");
return err == error.DefaultFailed;
};
return true;
@@ -257,13 +259,13 @@ pub const State = struct {
palette.button_font_size = ui.textSize();
r.palette = palette;
frame.paintWindowFrame(r, layer.local(), theme.global.app_toolbar);
- frame.paintWindowTitle(r, layer.local(), if (self.shortcut_catalog != null) "Add Application Shortcut" else "Open With", .grid, null);
+ frame.paintWindowTitle(r, layer.local(), if (self.shortcut_catalog != null) tr("Add Application Shortcut") else tr("Open With"), .grid, null);
var buffer: [256]u8 = undefined;
- const subtitle = if (self.message.len > 0) self.message else if (self.shortcut_catalog != null) (if (self.query.len > 0) std.fmt.bufPrint(&buffer, "Search: {s}", .{self.query}) catch self.query else "Choose an application to add to the desktop") else if (self.apps.paths.len == 1) std.fs.path.basename(self.apps.paths[0]) else std.fmt.bufPrint(&buffer, "{d} selected files", .{self.apps.paths.len}) catch "Selected files";
+ const subtitle = if (self.message.len > 0) self.message else if (self.shortcut_catalog != null) (if (self.query.len > 0) i18n.fmt(&buffer, tr("Search: {query}"), .{ .query = self.query }) catch self.query else tr("Choose an application to add to the desktop")) else if (self.apps.paths.len == 1) std.fs.path.basename(self.apps.paths[0]) else i18n.fmt(&buffer, i18n.trn("{count} selected file", "{count} selected files", self.apps.paths.len), .{ .count = self.apps.paths.len }) catch tr("Selected files");
if (g.list.y - @as(f32, @floatFromInt((chrome.Metrics{}).titlebarHeight())) > 50) r.drawText(16, g.list.y - 50, g.box.w - 32, 20, .{ .content = subtitle, .font_size = ui.textSize(), .color = palette.fg });
- r.drawText(16, g.list.y - 26, g.box.w - 32, 20, .{ .content = if (self.all) "All Applications" else "Recommended Apps", .font_size = ui.headingSize(), .weight = 600, .color = palette.fg });
+ r.drawText(16, g.list.y - 26, g.box.w - 32, 20, .{ .content = if (self.all) tr("All Applications") else tr("Recommended Apps"), .font_size = ui.headingSize(), .weight = 600, .color = palette.fg });
const hovered = self.hit(w, h, mx, my);
- if (self.count() == 0) r.drawText(24, g.list.y, g.list.w - 16, row_height, .{ .content = "No applications available", .font_size = ui.textSize(), .color = palette.fg });
+ if (self.count() == 0) r.drawText(24, g.list.y, g.list.w - 16, row_height, .{ .content = tr("No applications available"), .font_size = ui.textSize(), .color = palette.fg });
const end = @min(self.count(), self.offset + g.rows);
for (self.offset..end) |i| {
var shortcut_icons: [1][]const u8 = undefined;
@@ -288,7 +290,7 @@ pub const State = struct {
if (icon != null) break;
}
if (icon) |im| r.drawImageCover(24, y + 7, 18, 18, 0, .{ .pixels = im.pixels, .width = @intCast(im.size), .height = @intCast(im.size) }) else r.drawIcon(24, y + 7, 18, 18, .{ .id = .grid, .color = palette.fg });
- const label = if (entry.is_default) std.fmt.bufPrint(&buffer, "{s} (default)", .{entry.name}) catch entry.name else entry.name;
+ const label = if (entry.is_default) i18n.fmt(&buffer, tr("{name} (default)"), .{ .name = entry.name }) catch entry.name else entry.name;
r.drawText(52, y, g.list.w - 44, row_height - 2, .{ .content = label, .font_size = ui.textSize(), .color = palette.fg });
}
const strip = scrollbar.gutter(theme.global.scrollbar_width);
@@ -296,17 +298,17 @@ pub const State = struct {
scrollbar.paint(r, scrollbar.look(bar, .{}, theme.global.scrollbar_width, palette));
if (self.shortcut_catalog == null) {
r.fillRect(16, g.divider, g.box.w - 32, 1, .{ .color = theme.global.app_divider });
- button.paint(r, g.more, .{ .size = .sm, .variant = .ghost, .alignment = .left, .leading_icon = .plus, .label = if (self.all) "Back to recommended apps" else "Choose another app…" }, .{ .focused = self.focus == .more, .pointer = if (hovered == 4) .hover else .idle });
+ button.paint(r, g.more, .{ .size = .sm, .variant = .ghost, .alignment = .left, .leading_icon = .plus, .label = if (self.all) tr("Back to recommended apps") else tr("Choose another app…") }, .{ .focused = self.focus == .more, .pointer = if (hovered == 4) .hover else .idle });
const extension = std.fs.path.extension(self.apps.paths[0]);
const remember_label = if (extension.len > 0 and self.apps.paths.len == 1)
- std.fmt.bufPrint(&buffer, "Always use this app for {s} files", .{extension}) catch "Always use this app for this file type"
+ i18n.fmt(&buffer, tr("Always use this app for {value} files"), .{ .value = extension }) catch tr("Always use this app for this file type")
else
- "Always use this app for this file type";
+ tr("Always use this app for this file type");
checkbox.paint(r, g.remember, remember_label, .{ .checked = self.remember, .focused = self.focus == .remember, .disabled = !self.apps.same_type or self.count() == 0 });
}
- button.paint(r, g.cancel, .{ .size = .sm, .label = "Cancel" }, .{ .focused = self.focus == .cancel, .pointer = if (hovered == 2) .hover else .idle });
- button.paint(r, g.open, .{ .size = .sm, .label = if (self.shortcut_catalog != null) "Add Shortcut" else "Open", .variant = .primary }, .{ .focused = self.focus == .open, .pointer = if (self.count() == 0) .disabled else if (hovered == 3) .hover else .idle });
- button.paint(r, g.close, .{ .icon = .close, .variant = .chrome, .label = "Close" }, .{ .pointer = if (hovered == 1) .hover else .idle });
+ button.paint(r, g.cancel, .{ .size = .sm, .label = tr("Cancel") }, .{ .focused = self.focus == .cancel, .pointer = if (hovered == 2) .hover else .idle });
+ button.paint(r, g.open, .{ .size = .sm, .label = if (self.shortcut_catalog != null) tr("Add Shortcut") else tr("Open"), .variant = .primary }, .{ .focused = self.focus == .open, .pointer = if (self.count() == 0) .disabled else if (hovered == 3) .hover else .idle });
+ button.paint(r, g.close, .{ .icon = .close, .variant = .chrome, .label = tr("Close") }, .{ .pointer = if (hovered == 1) .hover else .idle });
}
};
diff --git a/src/files/ops.zig b/src/files/ops.zig
index 414d8a9..ba4196c 100644
--- a/src/files/ops.zig
+++ b/src/files/ops.zig
@@ -1,4 +1,6 @@
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const archive = @import("archive.zig");
const c = @import("c.zig").api;
const Allocator = std.mem.Allocator;
@@ -715,14 +717,19 @@ pub const JobRunner = struct {
_ = c.pthread_mutex_lock(&self.mutex);
defer _ = c.pthread_mutex_unlock(&self.mutex);
const cancelled = self.cancel_flag.load(.acquire);
- if (self.status_message.len == 0) self.status_message = std.fmt.allocPrint(self.allocator, "{s}{d} {s}, {d} skipped, {d} failed, {d} remaining", .{
- if (cancelled) @as([]const u8, "Cancelled: ") else "",
- self.success_count,
- if (self.kind == .extract or self.kind == .open_archive_member) @as([]const u8, "extracted") else "transferred",
- self.skipped_count,
- self.failed_count,
- self.total_items - self.processed_items,
- }) catch "";
+ if (self.status_message.len == 0) {
+ const extracting = self.kind == .extract or self.kind == .open_archive_member;
+ const pattern = if (cancelled)
+ (if (extracting) tr("Cancelled. Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}.") else tr("Cancelled. Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."))
+ else
+ (if (extracting) tr("Extracted: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}.") else tr("Transferred: {completed}. Skipped: {skipped}. Failed: {failed}. Remaining: {remaining}."));
+ self.status_message = i18n.allocPrint(self.allocator, pattern, .{
+ .completed = self.success_count,
+ .skipped = self.skipped_count,
+ .failed = self.failed_count,
+ .remaining = self.total_items - self.processed_items,
+ }) catch "";
+ }
self.is_error = cancelled or self.failed_count > 0;
self.state = .finished;
self.notify();
diff --git a/src/files/properties.zig b/src/files/properties.zig
index 4a73933..9f00e40 100644
--- a/src/files/properties.zig
+++ b/src/files/properties.zig
@@ -1,5 +1,7 @@
//! A snapshot of one file, owned independently of directory refreshes.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const c = @import("c.zig").api;
const mime_db = @import("../mime_db.zig");
const ui = @import("ui").cairo;
@@ -125,17 +127,17 @@ pub const State = struct {
// Read current bits and operate on the pinned inode even if its name
// was replaced while this dialog was open. Preserve special bits.
if (c.fstat(self.fd, &self.stat) != 0) {
- self.message = "Could not read permissions";
+ self.message = tr("Could not read permissions");
return;
}
var buf: [64]u8 = undefined;
const pinned = std.fmt.bufPrintZ(&buf, "/proc/self/fd/{d}", .{self.fd}) catch unreachable;
if (c.chmod(pinned, (self.stat.st_mode & 0o7777) ^ permissionBit(index)) != 0) {
- self.message = "Could not change permissions";
+ self.message = tr("Could not change permissions");
return;
}
self.changed = true;
- self.message = "Permissions updated";
+ self.message = tr("Permissions updated");
_ = c.fstat(self.fd, &self.stat);
}
@@ -202,9 +204,9 @@ pub const State = struct {
frame.paintWindowFrame(r, layer.local(), theme.global.app_toolbar);
const metrics: chrome.Metrics = .{};
const icon = icons.get(cfg, io, "text-x-generic", @intFromFloat(@as(f32, @floatFromInt(metrics.iconSize())) * ui.scaleOf(cr)));
- frame.paintWindowTitle(r, layer.local(), "Properties", .view_list, if (icon) |im| .{ .pixels = im.pixels, .width = @intCast(im.size), .height = @intCast(im.size) } else null);
+ frame.paintWindowTitle(r, layer.local(), tr("Properties"), .view_list, if (icon) |im| .{ .pixels = im.pixels, .width = @intCast(im.size), .height = @intCast(im.size) } else null);
const hover = self.hit(w, h, mx, my);
- button.paint(r, g.close, .{ .icon = .close, .variant = .chrome, .label = "Close" }, .{ .focused = self.keyboard_focus and self.focus == 0, .pointer = if (hover == 1) .hover else .idle });
+ button.paint(r, g.close, .{ .icon = .close, .variant = .chrome, .label = tr("Close") }, .{ .focused = self.keyboard_focus and self.focus == 0, .pointer = if (hover == 1) .hover else .idle });
r.clip = .{ .x = 12, .y = 49 + contentShift(), .w = g.box.w - 24, .h = g.box.h - 59 - contentShift() };
const s = g.scroll - contentShift();
r.fillRect(24, 66 - s, 64, 64, .{ .color = theme.global.app_toolbar, .radius = 9, .border_width = 1, .border_color = theme.global.app_item_border });
@@ -215,38 +217,39 @@ pub const State = struct {
var accent_palette = palette;
accent_palette.fg = palette.accent;
r.palette = accent_palette;
- button.paint(r, g.open, .{ .icon = .open, .variant = .ghost, .label = "Open" }, .{ .focused = self.keyboard_focus and self.focus == 1, .pointer = if (hover == 2) .hover else .idle });
+ button.paint(r, g.open, .{ .icon = .open, .variant = .ghost, .label = tr("Open") }, .{ .focused = self.keyboard_focus and self.focus == 1, .pointer = if (hover == 2) .hover else .idle });
r.palette = palette;
r.fillRect(24, 146 - s, g.box.w - 48, 1, .{ .color = theme.global.app_divider });
var size_buf: [128]u8 = undefined;
var short_buf: [32]u8 = undefined;
- const size = if (self.isDirectory()) "—" else std.fmt.bufPrint(&size_buf, "{s} ({d} bytes)", .{ @import("app.zig").formatSize(self.stat.st_size, &short_buf), self.stat.st_size }) catch "—";
+ const byte_count: u64 = @intCast(@max(0, self.stat.st_size));
+ const size = if (self.isDirectory()) "—" else i18n.fmt(&size_buf, i18n.trn("{size} ({bytes} byte)", "{size} ({bytes} bytes)", byte_count), .{ .size = @import("app.zig").formatSize(self.stat.st_size, &short_buf), .bytes = byte_count }) catch "—";
var created_buf: [64]u8 = undefined;
var modified_buf: [64]u8 = undefined;
const values = [_][]const u8{ size, date(self.created, &created_buf), date(self.stat.st_mtim.tv_sec, &modified_buf), std.fs.path.dirname(self.path) orelse "/", self.owner, self.group };
- const labels = [_][]const u8{ "Size", "Created", "Modified", "Location", "Owner", "Group" };
+ const labels = [_][]const u8{ tr("Size"), tr("Created"), tr("Modified"), tr("Location"), tr("Owner"), tr("Group") };
for (labels, values, 0..) |label, value, i| {
const y = 157 + @as(f32, @floatFromInt(i)) * 26 - s;
r.drawText(24, y, 120, 24, .{ .content = label, .font_size = ui.textSize(), .color = palette.fg });
r.drawText(162, y, g.box.w - 186, 24, .{ .content = value, .font_size = ui.textSize(), .color = palette.fg });
}
r.fillRect(24, 322 - s, g.box.w - 48, 1, .{ .color = theme.global.app_divider });
- r.drawText(24, 334 - s, 160, 28, .{ .content = "Permissions", .font_size = ui.headingSize(), .weight = 600, .color = palette.fg });
+ r.drawText(24, 334 - s, 160, 28, .{ .content = tr("Permissions"), .font_size = ui.headingSize(), .weight = 600, .color = palette.fg });
var mode_buf: [8]u8 = undefined;
const mode = std.fmt.bufPrint(&mode_buf, "{o:0>3}", .{self.stat.st_mode & 0o7777}) catch "";
var tint = palette.accent;
tint[3] *= 0.2;
r.fillRect(g.box.w - 86, 334 - s, 62, 28, .{ .color = tint, .radius = 8 });
r.drawText(centeredTextX(g.box.w - 86, 62, mode, ui.textSize()), 334 - s, 62, 28, .{ .content = mode, .font_size = ui.textSize(), .weight = 600, .color = palette.fg });
- for ([_][]const u8{ "Owner", "Group", "Others" }, 0..) |label, i| {
+ for ([_][]const u8{ tr("Owner"), tr("Group"), tr("Others") }, 0..) |label, i| {
const cell = g.permission(i);
r.drawText(centeredTextX(cell.x - 30, 78, label, ui.headingSize()), 365 - s, 78, 22, .{ .content = label, .font_size = ui.headingSize(), .color = palette.fg });
}
- for ([_][]const u8{ "Read", "Write", "Execute" }, 0..) |label, row| {
+ for ([_][]const u8{ tr("Read"), tr("Write"), tr("Execute") }, 0..) |label, row| {
r.drawText(24, 386 + @as(f32, @floatFromInt(row)) * 34 - s, 90, 28, .{ .content = label, .font_size = ui.textSize(), .color = palette.fg });
}
for (0..9) |i| checkbox.paint(r, g.permission(i), "", .{ .checked = self.stat.st_mode & permissionBit(i) != 0, .focused = (self.keyboard_focus and self.focus == i + 2) or hover == i + 3, .disabled = !self.editable() });
- const message = if (self.message.len > 0) self.message else if (self.stat.st_mode & c.S_IFMT == c.S_IFLNK) "Link permissions cannot be changed" else if (!self.editable()) "Only the owner can change permissions" else "";
+ const message = if (self.message.len > 0) self.message else if (self.stat.st_mode & c.S_IFMT == c.S_IFLNK) tr("Link permissions cannot be changed") else if (!self.editable()) tr("Only the owner can change permissions") else "";
r.drawText(24, 488 - s, g.box.w - 48, 20, .{ .content = message, .font_size = ui.statusSize(), .color = palette.fg });
const strip = scrollbar.gutter(theme.global.scrollbar_width);
if (scrollbar.Geometry.compute(.vertical, .{ .x = g.box.w - strip, .y = 54 + contentShift(), .w = strip, .h = g.box.h - 68 - contentShift() }, g.box.h - 58 - contentShift(), 520 - 58, g.scroll)) |bar|
@@ -259,16 +262,16 @@ fn permissionBit(index: usize) c.mode_t {
}
fn date(timestamp: ?i64, buf: []u8) []const u8 {
- return @import("settings.zig").dateTime(timestamp orelse return "Unavailable", buf);
+ return @import("settings.zig").dateTime(timestamp orelse return tr("Unavailable"), buf);
}
fn describe(a: std.mem.Allocator, path: [:0]const u8, mode: c.mode_t) ![]const u8 {
const simple: ?[]const u8 = switch (mode & c.S_IFMT) {
- c.S_IFDIR => "Folder",
- c.S_IFLNK => "Symbolic link",
- c.S_IFIFO => "Named pipe",
- c.S_IFSOCK => "Socket",
- c.S_IFCHR, c.S_IFBLK => "Device",
+ c.S_IFDIR => tr("Folder"),
+ c.S_IFLNK => tr("Symbolic link"),
+ c.S_IFIFO => tr("Named pipe"),
+ c.S_IFSOCK => tr("Socket"),
+ c.S_IFCHR, c.S_IFBLK => tr("Device"),
else => null,
};
if (simple) |label| return a.dupe(u8, label);
diff --git a/src/files/settings.zig b/src/files/settings.zig
index 210da67..b9f6975 100644
--- a/src/files/settings.zig
+++ b/src/files/settings.zig
@@ -68,6 +68,12 @@ pub const ThemeUpdate = struct {
var applied_theme: ?ThemeUpdate = null;
var region: config.RegionConfig = .{};
+/// Open With uses the same formats preference as directory names. Empty
+/// asks newlocale to inherit the process LC_COLLATE environment.
+pub fn formatsLocale() []const u8 {
+ return region.formats;
+}
+
pub fn deinitTheme() void {
@import("ui").shell_icons.deinitPack();
theme.global = .{};
@@ -212,14 +218,14 @@ pub fn dateTime(timestamp: i64, buf: []u8) []const u8 {
fn formatDateTime(timestamp: i64, buf: []u8, prefs: config.RegionConfig) []const u8 {
var seconds: c.time_t = @intCast(timestamp);
var tm: c.struct_tm = undefined;
- if (c.localtime_r(&seconds, &tm) == null) return "Unavailable";
+ if (c.localtime_r(&seconds, &tm) == null) return @import("i18n").tr("Unavailable");
const date_len = c.strftime(buf.ptr, buf.len, "%Y-%m-%d ", &tm);
- if (date_len == 0) return "Unavailable";
+ if (date_len == 0) return @import("i18n").tr("Unavailable");
var time_buf: [64]u8 = undefined;
const time_len = c.strftime(&time_buf, time_buf.len, prefs.timeFormat(), &tm);
- if (time_len == 0) return "Unavailable";
+ if (time_len == 0) return @import("i18n").tr("Unavailable");
const time = std.mem.trimStart(u8, time_buf[0..time_len], " ");
- if (date_len + time.len > buf.len) return "Unavailable";
+ if (date_len + time.len > buf.len) return @import("i18n").tr("Unavailable");
@memcpy(buf[date_len..][0..time.len], time);
return buf[0 .. date_len + time.len];
}
diff --git a/src/files/torrent/LICENSE.libtorrent b/src/files/torrent/LICENSE.libtorrent
new file mode 100644
index 0000000..e747efb
--- /dev/null
+++ b/src/files/torrent/LICENSE.libtorrent
@@ -0,0 +1,28 @@
+Copyright (c) 2003-2020, Arvid Norberg
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the distribution.
+ * Neither the name of Rasterbar Software nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/src/files/torrent/helper.cpp b/src/files/torrent/helper.cpp
new file mode 100644
index 0000000..30f7d1c
--- /dev/null
+++ b/src/files/torrent/helper.cpp
@@ -0,0 +1,1106 @@
+// One per-user torrent session. The UI is a disposable subscriber, never the
+// owner of a transfer. All libtorrent and GIO state lives on this main loop.
+#include <fcntl.h>
+#include <filesystem>
+#include <fstream>
+#include <gio/gio.h>
+#include <glib-unix.h>
+#include <iostream>
+#include <json-glib/json-glib.h>
+#include <libtorrent/add_torrent_params.hpp>
+#include <libtorrent/alert_types.hpp>
+#include <libtorrent/magnet_uri.hpp>
+#include <libtorrent/read_resume_data.hpp>
+#include <libtorrent/session.hpp>
+#include <libtorrent/torrent_info.hpp>
+#include <libtorrent/write_resume_data.hpp>
+#include <linux/fs.h>
+#include <map>
+#include <memory>
+#include <set>
+#include <signal.h>
+#include <sstream>
+#include <sys/eventfd.h>
+#include <sys/file.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
+#include <sys/syscall.h>
+#include <sys/un.h>
+#include <unistd.h>
+namespace lt = libtorrent;
+namespace fs = std::filesystem;
+static constexpr size_t max_packet = 192 * 1024;
+static constexpr size_t max_files = 512, max_torrents = 64;
+static constexpr char item_iface[] = "org.kde.StatusNotifierItem";
+struct Transfer {
+ lt::torrent_handle handle;
+ std::string id, source, destination, error, publication;
+ bool pending = true, published = false, moving = false,
+ resume_after_publish = false;
+ bool configuring = false, start_after_priority = false;
+ std::vector<lt::download_priority_t> requested_priorities;
+ int ratio = 1, limit = 1024 * 1024;
+ lt::torrent_status cached;
+ std::shared_ptr<lt::torrent_info const> cached_info;
+ lt::torrent_status status() const {
+ return handle.is_valid() ? handle.status() : cached;
+ }
+ std::shared_ptr<lt::torrent_info const> info() const {
+ return handle.is_valid() ? handle.torrent_file() : cached_info;
+ }
+};
+struct Peer {
+ int fd;
+ guint source;
+};
+static std::map<std::string, Transfer> transfers;
+static std::map<int, Peer> peers;
+static std::unique_ptr<lt::session> session;
+static GMainLoop *loop;
+static GDBusConnection *bus;
+static bool bus_attempted = false;
+static std::string state_dir, executable;
+static int wake_fd = -1;
+static guint ticker = 0, idle_exit = 0;
+static unsigned ticks = 0;
+static bool quitting = false, starting = true;
+static std::map<std::string, unsigned> saves;
+static void saved(std::string const &id) {
+ auto it = saves.find(id);
+ if (it != saves.end() && --it->second == 0)
+ saves.erase(it);
+}
+static bool use_scopes = false, tray_upload = false;
+static std::string tray_status = "Passive";
+static std::string tray_title = "Transfers";
+static void publish();
+static void schedule();
+static void persist(Transfer &t);
+static std::string snapshot();
+static void restore();
+static void create_engine() {
+ if (session)
+ return;
+ lt::settings_pack settings;
+ settings.set_int(lt::settings_pack::alert_mask,
+ lt::alert_category::error | lt::alert_category::storage |
+ lt::alert_category::status);
+ settings.set_int(lt::settings_pack::connections_limit, 100);
+ settings.set_int(lt::settings_pack::upload_rate_limit, 1024 * 1024);
+ settings.set_bool(lt::settings_pack::enable_dht, false);
+ settings.set_bool(lt::settings_pack::enable_lsd, false);
+ settings.set_bool(lt::settings_pack::enable_upnp, false);
+ settings.set_bool(lt::settings_pack::enable_natpmp, false);
+ session = std::make_unique<lt::session>(settings);
+ session->set_alert_notify([] {
+ uint64_t one = 1;
+ const auto written = write(wake_fd, &one, sizeof one);
+ (void)written; // EAGAIN means an alert wake is already pending.
+ });
+}
+static void wake_engine() {
+ if (!session) {
+ create_engine();
+ restore();
+ }
+}
+static void sleep_engine() {
+ if (!session)
+ return;
+ for (auto &[id, t] : transfers) {
+ t.cached = t.status();
+ t.cached_info = t.info();
+ t.handle = {};
+ }
+ session->set_alert_notify({});
+ session.reset();
+}
+static void request_save(Transfer &t) {
+ if (t.handle.is_valid()) {
+ ++saves[t.id];
+ t.handle.save_resume_data(lt::torrent_handle::save_info_dict);
+ }
+}
+static void finish_configuration(Transfer &t) {
+ t.configuring = false;
+ t.pending = false;
+ t.requested_priorities.clear();
+ t.handle.set_upload_limit(t.limit);
+ t.handle.unset_flags(lt::torrent_flags::upload_mode);
+ if (t.start_after_priority)
+ t.handle.resume();
+ persist(t);
+ request_save(t);
+}
+static std::string hash_id(lt::info_hash_t const &h) {
+ std::ostringstream out;
+ if (h.has_v2())
+ out << h.v2;
+ else
+ out << h.v1;
+ return out.str();
+}
+static void atomic_write(std::string const &path, std::string const &data) {
+ auto tmp = path + ".tmp";
+ int fd = open(tmp.c_str(),
+ O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, 0600);
+ if (fd < 0)
+ throw std::runtime_error("Cannot save transfer state");
+ size_t n = 0;
+ while (n < data.size()) {
+ auto r = write(fd, data.data() + n, data.size() - n);
+ if (r <= 0) {
+ close(fd);
+ throw std::runtime_error("Cannot save transfer state");
+ }
+ n += size_t(r);
+ }
+ bool ok = fsync(fd) == 0;
+ close(fd);
+ if (!ok || rename(tmp.c_str(), path.c_str()))
+ throw std::runtime_error("Cannot save transfer state");
+}
+static void persist(Transfer &t) {
+ GKeyFile *key = g_key_file_new();
+ g_key_file_set_string(key, "transfer", "source", t.source.c_str());
+ g_key_file_set_string(key, "transfer", "destination", t.destination.c_str());
+ g_key_file_set_string(key, "transfer", "publication", t.publication.c_str());
+ g_key_file_set_boolean(key, "transfer", "pending", t.pending);
+ g_key_file_set_boolean(key, "transfer", "published", t.published);
+ g_key_file_set_integer(key, "transfer", "ratio", t.ratio);
+ g_key_file_set_integer(key, "transfer", "limit", t.limit);
+ gsize n;
+ char *data = g_key_file_to_data(key, &n, nullptr);
+ try {
+ atomic_write(state_dir + "/" + t.id + ".ini", std::string(data, n));
+ } catch (...) {
+ g_free(data);
+ g_key_file_unref(key);
+ throw;
+ }
+ g_free(data);
+ g_key_file_unref(key);
+}
+static void validate(lt::torrent_info const &info) {
+ if (info.num_files() > int(max_files))
+ throw std::runtime_error("This torrent exceeds the 512 file limit");
+ auto const &files = info.files();
+ for (auto i : files.file_range()) {
+ fs::path path(files.file_path(i));
+ if (path.is_absolute() || path.empty() ||
+ (files.file_flags(i) & lt::file_storage::flag_symlink))
+ throw std::runtime_error("Unsafe torrent file path");
+ for (auto const &part : path)
+ if (part == ".." || part == "." || part.empty())
+ throw std::runtime_error("Unsafe torrent file path");
+ }
+}
+static void add(std::string const &source, std::string const &destination) {
+ if (transfers.size() >= max_torrents)
+ throw std::runtime_error("Transfer limit reached (64)");
+ if (destination.empty() || destination[0] != '/' ||
+ !fs::is_directory(destination))
+ throw std::runtime_error("Choose an existing absolute destination folder");
+ lt::add_torrent_params p;
+ lt::error_code ec;
+ if (source.rfind("magnet:?", 0) == 0)
+ p = lt::parse_magnet_uri(source, ec);
+ else {
+ if (source.empty() || source[0] != '/' || !fs::is_regular_file(source) ||
+ fs::file_size(source) > 8 * 1024 * 1024)
+ throw std::runtime_error("Choose a local torrent file (maximum 8 MiB)");
+ p.ti = std::make_shared<lt::torrent_info>(source, ec);
+ if (!ec) {
+ validate(*p.ti);
+ p.info_hashes = p.ti->info_hashes();
+ }
+ }
+ if (ec)
+ throw std::runtime_error(ec.message());
+ auto id = hash_id(p.info_hashes);
+ if (transfers.count(id))
+ throw std::runtime_error("This torrent is already in Transfers");
+ auto staging = fs::path(destination) / ".rediwm-partials" / id;
+ // A private, exclusive staging directory avoids treating incomplete payloads
+ // as ordinary files and prevents an existing file from being overwritten.
+ auto parent = staging.parent_path();
+ if (fs::exists(parent)) {
+ struct stat st{};
+ if (lstat(parent.c_str(), &st) || !S_ISDIR(st.st_mode) ||
+ st.st_uid != getuid() || (st.st_mode & 077))
+ throw std::runtime_error("Unsafe partial-download directory");
+ } else if (mkdir(parent.c_str(), 0700))
+ throw std::runtime_error("Cannot create partial-download directory");
+ if (mkdir(staging.c_str(), 0700))
+ throw std::runtime_error(
+ "Partial data already exists; choose another destination");
+ p.save_path = staging.string();
+ p.flags &= ~lt::torrent_flags::auto_managed;
+ p.flags |=
+ lt::torrent_flags::upload_mode | lt::torrent_flags::duplicate_is_error;
+ if (p.ti)
+ p.file_priorities.assign(p.ti->num_files(), lt::dont_download);
+ if (!p.ti)
+ p.flags &= ~lt::torrent_flags::paused;
+ auto handle = session->add_torrent(p, ec);
+ if (ec) {
+ fs::remove(staging);
+ throw std::runtime_error(ec.message());
+ }
+ Transfer t{handle, id, source, destination};
+ transfers.emplace(id, std::move(t));
+ if (snapshot().size() > max_packet - 4096) {
+ session->remove_torrent(handle);
+ transfers.erase(id);
+ throw std::runtime_error("Transfer metadata exceeds the session limit; "
+ "remove an unused transfer first");
+ }
+ persist(transfers.at(id));
+ request_save(transfers.at(id));
+}
+static std::string string_member(JsonObject *o, char const *name) {
+ auto node = json_object_get_member(o, name);
+ if (!node || json_node_get_value_type(node) != G_TYPE_STRING)
+ throw std::runtime_error("Missing string field");
+ return json_node_get_string(node);
+}
+static void command(JsonObject *o) {
+ auto op = string_member(o, "op");
+ if (op == "list")
+ return;
+ wake_engine();
+ if (op == "add") {
+ add(string_member(o, "source"), string_member(o, "destination"));
+ return;
+ }
+ if (op == "pause_all" || op == "stop_seeding") {
+ for (auto &[id, t] : transfers)
+ if (op == "pause_all" || t.status().is_finished) {
+ t.resume_after_publish = false;
+ t.start_after_priority = false;
+ t.handle.pause();
+ request_save(t);
+ }
+ return;
+ }
+ auto id = string_member(o, "id");
+ auto it = transfers.find(id);
+ if (it == transfers.end())
+ throw std::runtime_error("Transfer no longer exists");
+ auto &t = it->second;
+ if (op == "remove") {
+ session->remove_torrent(t.handle); // Never delete payloads.
+ fs::remove(state_dir + "/" + id + ".ini");
+ fs::remove(state_dir + "/" + id + ".resume");
+ saves.erase(id);
+ transfers.erase(it);
+ return;
+ }
+ if (op == "pause") {
+ t.resume_after_publish = false;
+ t.start_after_priority = false;
+ t.handle.pause();
+ } else if (op == "resume") {
+ if (t.pending)
+ throw std::runtime_error("Choose files and start the download first");
+ t.error.clear();
+ t.handle.clear_error();
+ t.handle.resume();
+ } else if (op == "start") {
+ auto info = t.info();
+ if (!t.pending || !info || t.configuring)
+ throw std::runtime_error("Waiting for torrent metadata");
+ validate(*info);
+ auto node = json_object_get_member(o, "files");
+ if (!node || !JSON_NODE_HOLDS_ARRAY(node))
+ throw std::runtime_error("Choose at least one file");
+ auto arr = json_node_get_array(node);
+ std::vector<lt::download_priority_t> priorities(info->num_files(),
+ lt::dont_download);
+ bool any = false;
+ for (guint i = 0; i < json_array_get_length(arr); ++i) {
+ auto index = json_array_get_int_element(arr, i);
+ if (index < 0 || index >= info->num_files())
+ throw std::runtime_error("Invalid file index");
+ priorities[size_t(index)] = lt::default_priority;
+ any = true;
+ }
+ if (!any)
+ throw std::runtime_error("Choose at least one file");
+ t.ratio = int(json_object_get_int_member_with_default(o, "ratio", 1));
+ t.limit = int(json_object_get_int_member_with_default(o, "limit", 1048576));
+ if (t.ratio < 0 || t.ratio > 2 || t.limit < 16384 || t.limit > 10485760)
+ throw std::runtime_error("Invalid seeding limits");
+ // File priorities become effective asynchronously, after disk work. Keep
+ // upload-only/paused until the matching alert, so unselected files never
+ // briefly inherit the default download priority.
+ t.configuring = true;
+ t.start_after_priority = true;
+ t.requested_priorities = priorities;
+ t.handle.pause();
+ if (t.handle.get_file_priorities() == priorities)
+ finish_configuration(t);
+ else
+ t.handle.prioritize_files(priorities);
+ return;
+ } else
+ throw std::runtime_error("Unknown command");
+ persist(t);
+ request_save(t);
+}
+static std::string display_name(std::string name) {
+ if (name.size() > 512)
+ name.resize(512);
+ while (!name.empty() && !g_utf8_validate(name.c_str(), name.size(), nullptr))
+ name.pop_back();
+ return name;
+}
+static void member(JsonBuilder *b, char const *key, std::string const &v) {
+ json_builder_set_member_name(b, key);
+ json_builder_add_string_value(b, v.c_str());
+}
+static void number(JsonBuilder *b, char const *key, int64_t v) {
+ json_builder_set_member_name(b, key);
+ json_builder_add_int_value(b, v);
+}
+static void boolean(JsonBuilder *b, char const *key, bool v) {
+ json_builder_set_member_name(b, key);
+ json_builder_add_boolean_value(b, v);
+}
+static std::string encode(JsonBuilder *b) {
+ auto root = json_builder_get_root(b);
+ auto gen = json_generator_new();
+ json_generator_set_root(gen, root);
+ gsize n;
+ char *raw = json_generator_to_data(gen, &n);
+ std::string result(raw, n);
+ g_free(raw);
+ g_object_unref(gen);
+ json_node_free(root);
+ g_object_unref(b);
+ return result;
+}
+static std::string snapshot() {
+ auto b = json_builder_new();
+ json_builder_begin_object(b);
+ json_builder_set_member_name(b, "transfers");
+ json_builder_begin_array(b);
+ for (auto &[id, t] : transfers) {
+ auto s = t.status();
+ auto info = t.info();
+ json_builder_begin_object(b);
+ member(b, "id", id);
+ member(b, "name",
+ s.name.empty() ? "Fetching file list…" : display_name(s.name));
+ member(b, "source", t.source);
+ member(b, "download_directory", t.destination);
+ member(b, "destination", t.published ? t.publication : t.destination);
+ member(b, "storage", s.save_path);
+ member(b, "error",
+ t.error.empty() ? (s.errc ? s.errc.message() : "") : t.error);
+ boolean(b, "pending", t.pending);
+ boolean(b, "metadata", bool(info));
+ boolean(b, "paused", bool(s.flags & lt::torrent_flags::paused));
+ boolean(b, "finished", s.is_finished);
+ boolean(b, "published", t.published);
+ number(b, "progress", s.progress_ppm);
+ number(b, "download_rate", s.download_payload_rate);
+ number(b, "upload_rate", s.upload_payload_rate);
+ number(b, "peers", s.num_peers);
+ number(b, "known_peers", s.list_peers);
+ number(b, "seeds", s.num_seeds);
+ number(b, "total", s.total_wanted);
+ number(b, "done", s.total_wanted_done);
+ number(b, "ratio", t.ratio);
+ number(b, "limit", t.limit);
+ json_builder_set_member_name(b, "files");
+ json_builder_begin_array(b);
+ if (t.pending && t.error.empty() && info &&
+ info->num_files() <= int(max_files))
+ for (auto index : info->files().file_range()) {
+ if (info->files().pad_file_at(index))
+ continue;
+ json_builder_begin_object(b);
+ number(b, "index", int(index));
+ member(b, "path", info->files().file_path(index));
+ number(b, "size", info->files().file_size(index));
+ json_builder_end_object(b);
+ }
+ json_builder_end_array(b);
+ json_builder_end_object(b);
+ }
+ json_builder_end_array(b);
+ json_builder_end_object(b);
+ return encode(b);
+}
+static void send_error(int fd, std::string const &error) {
+ auto b = json_builder_new();
+ json_builder_begin_object(b);
+ member(b, "error", error);
+ json_builder_end_object(b);
+ auto data = encode(b);
+ (void)send(fd, data.data(), data.size(), MSG_NOSIGNAL | MSG_DONTWAIT);
+}
+static void drop_peer(int fd) {
+ auto it = peers.find(fd);
+ if (it == peers.end())
+ return;
+ g_source_remove(it->second.source);
+ close(fd);
+ peers.erase(it);
+}
+static gboolean peer_ready(gint fd, GIOCondition condition, gpointer) {
+ char data[max_packet];
+ auto n = recv(fd, data, sizeof data, MSG_DONTWAIT | MSG_TRUNC);
+ // On SOCK_SEQPACKET, closing with unread replies can report ECONNRESET
+ // before the already queued requests. Consume the error, then drain them.
+ if (n < 0 && (errno == ECONNRESET || errno == EINTR))
+ return G_SOURCE_CONTINUE;
+ if (n < 0 && errno == EAGAIN && !(condition & (G_IO_HUP | G_IO_ERR)))
+ return G_SOURCE_CONTINUE;
+ if (n <= 0 || size_t(n) >= sizeof data) {
+ drop_peer(fd);
+ schedule();
+ return G_SOURCE_REMOVE;
+ }
+ auto parser = json_parser_new();
+ GError *error = nullptr;
+ try {
+ if (!json_parser_load_from_data(parser, data, n, &error))
+ throw std::runtime_error("Invalid transfer request");
+ auto root = json_parser_get_root(parser);
+ if (!JSON_NODE_HOLDS_OBJECT(root))
+ throw std::runtime_error("Invalid request");
+ command(json_node_get_object(root));
+ } catch (std::exception const &e) {
+ send_error(fd, e.what());
+ }
+ g_clear_error(&error);
+ g_object_unref(parser);
+ publish();
+ schedule();
+ return G_SOURCE_CONTINUE;
+}
+static gboolean accept_peer(gint fd, GIOCondition, gpointer) {
+ int client = accept4(fd, nullptr, nullptr, SOCK_NONBLOCK | SOCK_CLOEXEC);
+ if (client < 0)
+ return G_SOURCE_CONTINUE;
+ struct ucred cred{};
+ socklen_t size = sizeof cred;
+ if (peers.size() >= 32 ||
+ getsockopt(client, SOL_SOCKET, SO_PEERCRED, &cred, &size) ||
+ cred.uid != getuid()) {
+ close(client);
+ return G_SOURCE_CONTINUE;
+ }
+ int buffer = 512 * 1024;
+ setsockopt(client, SOL_SOCKET, SO_SNDBUF, &buffer, sizeof buffer);
+ peers.emplace(
+ client,
+ Peer{client,
+ g_unix_fd_add(client, GIOCondition(G_IO_IN | G_IO_HUP | G_IO_ERR),
+ peer_ready, nullptr)});
+ publish();
+ schedule();
+ return G_SOURCE_CONTINUE;
+}
+// Same transient scope contract as session/app_scope.zig and the terminal
+// helper.
+static void place_scope(pid_t pid, char const *app) {
+ if (!use_scopes)
+ return;
+ GError *e = nullptr;
+ auto connection = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, &e);
+ g_clear_error(&e);
+ if (connection) {
+ GVariantBuilder props, pids, aux;
+ g_variant_builder_init(&props, G_VARIANT_TYPE("a(sv)"));
+ g_variant_builder_init(&pids, G_VARIANT_TYPE("au"));
+ g_variant_builder_add(&pids, "u", guint32(pid));
+ g_variant_builder_add(&props, "(sv)", "PIDs", g_variant_builder_end(&pids));
+ g_variant_builder_add(&props, "(sv)", "Slice",
+ g_variant_new_string("app.slice"));
+ g_variant_builder_add(&props, "(sv)", "CollectMode",
+ g_variant_new_string("inactive-or-failed"));
+ g_variant_builder_init(&aux, G_VARIANT_TYPE("a(sa(sv))"));
+ auto name =
+ "app-rediwm-" + std::string(app) + "-" + std::to_string(pid) + ".scope";
+ auto reply = g_dbus_connection_call_sync(
+ connection, "org.freedesktop.systemd1", "/org/freedesktop/systemd1",
+ "org.freedesktop.systemd1.Manager", "StartTransientUnit",
+ g_variant_new("(ssa(sv)a(sa(sv)))", name.c_str(), "fail", &props, &aux),
+ nullptr, G_DBUS_CALL_FLAGS_NO_AUTO_START, 1500, nullptr, &e);
+ if (reply)
+ g_variant_unref(reply);
+ g_clear_error(&e);
+ g_object_unref(connection);
+ }
+}
+static void open_files() {
+ char *args[] = {const_cast<char *>(executable.c_str()),
+ const_cast<char *>("--transfers"), nullptr};
+ GError *e = nullptr;
+ GPid pid = 0;
+ if (g_spawn_async(nullptr, args, nullptr, G_SPAWN_SEARCH_PATH, nullptr,
+ nullptr, &pid, &e))
+ place_scope(pid, "files");
+ g_clear_error(&e);
+}
+static void tray_method(GDBusConnection *, const gchar *, const gchar *,
+ const gchar *, const gchar *method, GVariant *,
+ GDBusMethodInvocation *inv, gpointer) {
+ if (!strcmp(method, "Activate") || !strcmp(method, "SecondaryActivate") ||
+ !strcmp(method, "ContextMenu"))
+ open_files();
+ g_dbus_method_invocation_return_value(inv, nullptr);
+}
+static GVariant *tray_property(GDBusConnection *, const gchar *, const gchar *,
+ const gchar *, const gchar *property, GError **,
+ gpointer) {
+ if (!strcmp(property, "Category"))
+ return g_variant_new_string("ApplicationStatus");
+ if (!strcmp(property, "Id"))
+ return g_variant_new_string("rediwm-transfers");
+ if (!strcmp(property, "Title"))
+ return g_variant_new_string(tray_title.c_str());
+ if (!strcmp(property, "Status"))
+ return g_variant_new_string(tray_status.c_str());
+ if (!strcmp(property, "IconName"))
+ return g_variant_new_string(tray_upload ? "go-up" : "folder-download");
+ if (!strcmp(property, "ItemIsMenu"))
+ return g_variant_new_boolean(false);
+ if (!strcmp(property, "Menu"))
+ return g_variant_new_object_path("/MenuBar");
+ if (!strcmp(property, "ToolTip"))
+ return g_variant_new(
+ "(s@a(iiay)ss)", "folder-download",
+ g_variant_new_array(G_VARIANT_TYPE("(iiay)"), nullptr, 0), "Transfers",
+ tray_title.c_str());
+ if (!strcmp(property, "IconPixmap")) {
+ unsigned char pixels[24 * 24 * 4]{};
+ for (int y = 3; y < 21; ++y)
+ for (int x = 4; x < 20; ++x)
+ if ((x >= 10 && x <= 13 && y < 16) ||
+ (y >= 12 && y < 18 && abs(x - 12) <= 18 - y) || (y == 20)) {
+ auto p = &pixels[((tray_upload ? 23 - y : y) * 24 + x) * 4];
+ p[0] = 255;
+ p[1] = 90;
+ p[2] = 180;
+ p[3] = 255;
+ }
+ GVariantBuilder b;
+ g_variant_builder_init(&b, G_VARIANT_TYPE("a(iiay)"));
+ g_variant_builder_add(&b, "(ii@ay)", 24, 24,
+ g_variant_new_fixed_array(G_VARIANT_TYPE_BYTE, pixels,
+ sizeof pixels, 1));
+ return g_variant_builder_end(&b);
+ }
+ return nullptr;
+}
+static void register_tray(GDBusConnection *connection, const gchar *,
+ const gchar *, gpointer) {
+ g_dbus_connection_call(
+ connection, "org.kde.StatusNotifierWatcher", "/StatusNotifierWatcher",
+ "org.kde.StatusNotifierWatcher", "RegisterStatusNotifierItem",
+ g_variant_new("(s)", "/StatusNotifierItem"), nullptr,
+ G_DBUS_CALL_FLAGS_NONE, 2000, nullptr, nullptr, nullptr);
+}
+static GVariant *menu_row(int id, const char *label) {
+ GVariantBuilder properties, children;
+ g_variant_builder_init(&properties, G_VARIANT_TYPE("a{sv}"));
+ g_variant_builder_add(&properties, "{sv}", "label",
+ g_variant_new_string(label));
+ g_variant_builder_add(&properties, "{sv}", "enabled",
+ g_variant_new_boolean(true));
+ g_variant_builder_init(&children, G_VARIANT_TYPE("av"));
+ return g_variant_new("(ia{sv}av)", id, &properties, &children);
+}
+static void menu_method(GDBusConnection *, const gchar *, const gchar *,
+ const gchar *, const gchar *method,
+ GVariant *parameters, GDBusMethodInvocation *inv,
+ gpointer) {
+ if (!strcmp(method, "GetLayout")) {
+ GVariantBuilder properties, children;
+ g_variant_builder_init(&properties, G_VARIANT_TYPE("a{sv}"));
+ g_variant_builder_init(&children, G_VARIANT_TYPE("av"));
+ g_variant_builder_add(&children, "v", menu_row(1, "Open Transfers"));
+ g_variant_builder_add(&children, "v", menu_row(2, "Pause all"));
+ g_variant_builder_add(&children, "v", menu_row(3, "Stop seeding"));
+ g_dbus_method_invocation_return_value(
+ inv, g_variant_new("(u(ia{sv}av))", 1u, 0, &properties, &children));
+ return;
+ }
+ if (!strcmp(method, "AboutToShow")) {
+ g_dbus_method_invocation_return_value(inv, g_variant_new("(b)", false));
+ return;
+ }
+ if (!strcmp(method, "Event")) {
+ gint id;
+ const char *event;
+ GVariant *value;
+ guint timestamp;
+ g_variant_get(parameters, "(i&svu)", &id, &event, &value, &timestamp);
+ g_variant_unref(value);
+ if (!strcmp(event, "clicked")) {
+ if (id == 1)
+ open_files();
+ else
+ for (auto &[key, t] : transfers) {
+ if (t.handle.is_valid() &&
+ (id == 2 || (id == 3 && t.status().is_finished))) {
+ t.handle.pause();
+ request_save(t);
+ }
+ }
+ publish();
+ schedule();
+ }
+ }
+ g_dbus_method_invocation_return_value(inv, nullptr);
+}
+static void init_menu() {
+ const char xml[] =
+ "<node><interface name='com.canonical.dbusmenu'>"
+ "<method name='GetLayout'><arg type='i' direction='in'/><arg type='i' "
+ "direction='in'/><arg type='as' direction='in'/><arg type='u' "
+ "direction='out'/><arg type='(ia{sv}av)' direction='out'/></method>"
+ "<method name='AboutToShow'><arg type='i' direction='in'/><arg type='b' "
+ "direction='out'/></method>"
+ "<method name='Event'><arg type='i' direction='in'/><arg type='s' "
+ "direction='in'/><arg type='v' direction='in'/><arg type='u' "
+ "direction='in'/></method>"
+ "</interface></node>";
+ auto info = g_dbus_node_info_new_for_xml(xml, nullptr);
+ static GDBusInterfaceVTable table = {
+ menu_method, nullptr, nullptr, {nullptr}};
+ g_dbus_connection_register_object(bus, "/MenuBar", info->interfaces[0],
+ &table, nullptr, nullptr, nullptr);
+ g_dbus_node_info_unref(info);
+}
+static void init_tray() {
+ if (bus_attempted)
+ return;
+ bus_attempted = true;
+ GError *error = nullptr;
+ bus = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, &error);
+ g_clear_error(&error);
+ if (!bus)
+ return;
+ const char xml[] =
+ "<node><interface name='org.kde.StatusNotifierItem'>"
+ "<method name='Activate'><arg type='i' direction='in'/><arg type='i' "
+ "direction='in'/></method>"
+ "<method name='SecondaryActivate'><arg type='i' direction='in'/><arg "
+ "type='i' direction='in'/></method>"
+ "<method name='ContextMenu'><arg type='i' direction='in'/><arg type='i' "
+ "direction='in'/></method>"
+ "<property name='Category' type='s' access='read'/><property name='Id' "
+ "type='s' access='read'/><property name='Title' type='s' access='read'/>"
+ "<property name='Status' type='s' access='read'/><property "
+ "name='IconName' type='s' access='read'/><property name='IconPixmap' "
+ "type='a(iiay)' access='read'/>"
+ "<property name='ItemIsMenu' type='b' access='read'/><property "
+ "name='Menu' type='o' access='read'/><property name='ToolTip' "
+ "type='(sa(iiay)ss)' access='read'/>"
+ "<signal name='NewStatus'><arg type='s'/></signal><signal "
+ "name='NewTitle'/><signal name='NewIcon'/><signal "
+ "name='NewToolTip'/></interface></node>";
+ auto info = g_dbus_node_info_new_for_xml(xml, nullptr);
+ static GDBusInterfaceVTable table = {
+ tray_method, tray_property, nullptr, {nullptr}};
+ g_dbus_connection_register_object(bus, "/StatusNotifierItem",
+ info->interfaces[0], &table, nullptr,
+ nullptr, nullptr);
+ g_dbus_node_info_unref(info);
+ init_menu();
+ g_bus_watch_name_on_connection(bus, "org.kde.StatusNotifierWatcher",
+ G_BUS_NAME_WATCHER_FLAGS_NONE, register_tray,
+ nullptr, nullptr, nullptr);
+}
+static void publish() {
+ auto data = snapshot();
+ std::vector<int> lost;
+ for (auto const &[fd, p] : peers) {
+ if (data.size() > max_packet) {
+ lost.push_back(fd);
+ continue;
+ }
+ const auto sent =
+ send(fd, data.data(), data.size(), MSG_NOSIGNAL | MSG_DONTWAIT);
+ // A closed reader may still have queued commands (e.g. pause followed by
+ // window close). Drain those through peer_ready before closing its fd.
+ if (sent != ssize_t(data.size()) && errno != EPIPE && errno != ECONNRESET)
+ lost.push_back(fd);
+ }
+ for (auto fd : lost)
+ drop_peer(fd); // A stalled reader never blocks the engine.
+ int active = 0, downloading = 0;
+ int64_t down = 0, up = 0;
+ for (auto &[id, t] : transfers) {
+ auto s = t.status();
+ if (!(s.flags & lt::torrent_flags::paused)) {
+ ++active;
+ if (!s.is_finished)
+ ++downloading;
+ down += s.download_payload_rate;
+ up += s.upload_payload_rate;
+ }
+ }
+ if (active && !bus)
+ init_tray();
+ auto status = active ? "Active" : "Passive";
+ tray_title = std::to_string(active) + " active · ↓ " +
+ std::to_string(down / 1024) + " KiB/s · ↑ " +
+ std::to_string(up / 1024) + " KiB/s";
+ const bool upload = active && !downloading;
+ const bool icon_changed = tray_upload != upload;
+ tray_upload = upload;
+ if (bus) {
+ if (icon_changed)
+ g_dbus_connection_emit_signal(bus, nullptr, "/StatusNotifierItem",
+ item_iface, "NewIcon", nullptr, nullptr);
+ if (tray_status != status)
+ g_dbus_connection_emit_signal(bus, nullptr, "/StatusNotifierItem",
+ item_iface, "NewStatus",
+ g_variant_new("(s)", status), nullptr);
+ g_dbus_connection_emit_signal(bus, nullptr, "/StatusNotifierItem",
+ item_iface, "NewToolTip", nullptr, nullptr);
+ }
+ tray_status = status;
+}
+static bool active() {
+ for (auto &[id, t] : transfers)
+ if (!(t.status().flags & lt::torrent_flags::paused) || t.moving ||
+ t.configuring)
+ return true;
+ return false;
+}
+static void publish_storage(Transfer &t) {
+ // Publish the entire private staging directory in one no-replace
+ // rename. libtorrent's fail_if_exist has a check/rename race.
+ auto s = t.status();
+ auto name = fs::path(s.name).filename().string();
+ if (name.empty() || name == "." || name == "..")
+ name = t.id;
+ name.resize(std::min<size_t>(name.size(), 160));
+ while (!name.empty() && !g_utf8_validate(name.c_str(), name.size(), nullptr))
+ name.pop_back();
+ if (name.empty())
+ name = t.id;
+ t.publication = (fs::path(t.destination) / (name + ".download")).string();
+ try {
+ persist(t); // recovery knows both locations before the rename
+ if (syscall(SYS_renameat2, AT_FDCWD, s.save_path.c_str(), AT_FDCWD,
+ t.publication.c_str(), RENAME_NOREPLACE))
+ throw std::runtime_error("Destination already exists or cannot be "
+ "written; partial files are kept");
+ t.handle.move_storage(t.publication,
+ lt::move_flags_t::reset_save_path_unchecked);
+ } catch (std::exception const &e) {
+ t.moving = false;
+ t.error = e.what();
+ t.handle.pause();
+ request_save(t);
+ }
+}
+static void maintain() {
+ if (!session)
+ return;
+ for (auto &[id, t] : transfers) {
+ auto s = t.status();
+ if (!t.pending && s.is_finished && !t.published && !t.moving &&
+ t.error.empty()) {
+ t.moving = true;
+ t.resume_after_publish =
+ !(s.flags & lt::torrent_flags::paused) && t.ratio != 0;
+ if (s.flags & lt::torrent_flags::paused)
+ publish_storage(t);
+ else
+ t.handle.pause();
+ }
+ if (!t.pending && s.is_finished && !(s.flags & lt::torrent_flags::paused) &&
+ (t.ratio == 0 ||
+ s.all_time_upload >= std::max<int64_t>(s.total_wanted, 1) * t.ratio)) {
+ t.resume_after_publish = false;
+ t.handle.pause();
+ request_save(t);
+ }
+ }
+}
+static gboolean tick(gpointer) {
+ ++ticks;
+ if (ticks % 30 == 0)
+ for (auto &[id, t] : transfers)
+ if (t.handle.is_valid() && t.handle.need_save_resume_data())
+ request_save(t);
+ maintain();
+ publish();
+ if (!active()) {
+ ticker = 0;
+ schedule();
+ return G_SOURCE_REMOVE;
+ }
+ return G_SOURCE_CONTINUE;
+}
+static void schedule() {
+ if (session && active()) {
+ lt::settings_pack settings;
+ settings.set_bool(lt::settings_pack::enable_dht, true);
+ settings.set_bool(lt::settings_pack::enable_lsd, true);
+ session->apply_settings(settings);
+ }
+ if (!active() && saves.empty())
+ sleep_engine();
+ if (active() && !ticker)
+ ticker = g_timeout_add_seconds(1, tick, nullptr);
+ if (quitting && saves.empty())
+ g_main_loop_quit(loop);
+ // Let a concurrently opening Files window finish its connection before
+ // retiring a stopped session. This is one deadline, never an idle poll.
+ if (!starting && !active() && peers.empty() && saves.empty() && !idle_exit)
+ idle_exit = g_timeout_add(
+ 250,
+ [](gpointer) -> gboolean {
+ idle_exit = 0;
+ if (!active() && peers.empty() && saves.empty())
+ g_main_loop_quit(loop);
+ return G_SOURCE_REMOVE;
+ },
+ nullptr);
+}
+static gboolean alerts(gint, GIOCondition, gpointer) {
+ uint64_t value;
+ while (read(wake_fd, &value, sizeof value) > 0) {
+ }
+ if (!session)
+ return G_SOURCE_CONTINUE;
+ std::vector<lt::alert *> events;
+ session->pop_alerts(&events);
+ for (auto alert : events) {
+ auto ta = dynamic_cast<lt::torrent_alert *>(alert);
+ if (!ta)
+ continue;
+ Transfer *t = nullptr;
+ for (auto &[id, item] : transfers)
+ if (item.handle == ta->handle) {
+ t = &item;
+ break;
+ }
+ if (!t)
+ continue;
+ try {
+ if (auto a = lt::alert_cast<lt::save_resume_data_alert>(alert)) {
+ auto bytes = lt::write_resume_data_buf(a->params);
+ atomic_write(state_dir + "/" + t->id + ".resume",
+ std::string(bytes.data(), bytes.size()));
+ saved(t->id);
+ }
+ if (lt::alert_cast<lt::save_resume_data_failed_alert>(alert))
+ saved(t->id);
+ if (t->configuring && lt::alert_cast<lt::file_prio_alert>(alert) &&
+ t->handle.get_file_priorities() == t->requested_priorities) {
+ finish_configuration(*t);
+ }
+ if (t->pending && lt::alert_cast<lt::metadata_received_alert>(alert)) {
+ t->handle.pause();
+ validate(*t->info());
+ if (snapshot().size() > max_packet - 4096)
+ throw std::runtime_error(
+ "File list exceeds the session metadata limit");
+ request_save(*t);
+ }
+ if (t->moving && lt::alert_cast<lt::torrent_paused_alert>(alert))
+ publish_storage(*t);
+ if (lt::alert_cast<lt::storage_moved_alert>(alert)) {
+ t->moving = false;
+ t->published = true;
+ if (t->resume_after_publish)
+ t->handle.resume();
+ persist(*t);
+ request_save(*t);
+ if (bus)
+ g_dbus_connection_call(
+ bus, "org.freedesktop.Notifications",
+ "/org/freedesktop/Notifications", "org.freedesktop.Notifications",
+ "Notify",
+ g_variant_new(
+ "(susss@as@a{sv}i)", "Files", 0u, "folder-download",
+ "Download complete", t->status().name.c_str(),
+ g_variant_new_strv(nullptr, 0),
+ g_variant_new_array(G_VARIANT_TYPE("{sv}"), nullptr, 0), -1),
+ nullptr, G_DBUS_CALL_FLAGS_NO_AUTO_START, 2000, nullptr, nullptr,
+ nullptr);
+ }
+ if (auto a = lt::alert_cast<lt::storage_moved_failed_alert>(alert)) {
+ t->moving = false;
+ t->error = "Could not publish download: " + a->error.message();
+ t->handle.pause();
+ request_save(*t);
+ }
+ } catch (std::exception const &e) {
+ t->error = e.what();
+ t->handle.pause();
+ saved(t->id);
+ }
+ }
+ maintain();
+ publish();
+ schedule();
+ return G_SOURCE_CONTINUE;
+}
+static gboolean stop(gpointer) {
+ quitting = true;
+ for (auto &[id, t] : transfers)
+ request_save(t);
+ schedule();
+ g_timeout_add_seconds(
+ 5,
+ [](gpointer) -> gboolean {
+ g_main_loop_quit(loop);
+ return G_SOURCE_REMOVE;
+ },
+ nullptr);
+ return G_SOURCE_REMOVE;
+}
+static void restore() {
+ for (auto const &entry : fs::directory_iterator(state_dir)) {
+ if (entry.path().extension() != ".ini" || transfers.size() >= max_torrents)
+ continue;
+ try {
+ auto id = entry.path().stem().string();
+ if (id.size() != 40 && id.size() != 64)
+ continue;
+ auto key = g_key_file_new();
+ if (!g_key_file_load_from_file(key, entry.path().c_str(), G_KEY_FILE_NONE,
+ nullptr)) {
+ g_key_file_unref(key);
+ continue;
+ }
+ auto get = [&](char const *name) {
+ char *p = g_key_file_get_string(key, "transfer", name, nullptr);
+ std::string s = p ? p : "";
+ g_free(p);
+ return s;
+ };
+ Transfer t;
+ t.id = id;
+ t.source = get("source");
+ t.destination = get("destination");
+ t.publication = get("publication");
+ t.pending = g_key_file_get_boolean(key, "transfer", "pending", nullptr);
+ t.published =
+ g_key_file_get_boolean(key, "transfer", "published", nullptr);
+ t.ratio = g_key_file_get_integer(key, "transfer", "ratio", nullptr);
+ t.limit = g_key_file_get_integer(key, "transfer", "limit", nullptr);
+ g_key_file_unref(key);
+ auto path = state_dir + "/" + id + ".resume";
+ if (!fs::exists(path) || fs::file_size(path) > 16 * 1024 * 1024)
+ continue;
+ std::ifstream file(path, std::ios::binary);
+ std::vector<char> data((std::istreambuf_iterator<char>(file)), {});
+ lt::error_code ec;
+ auto p = lt::read_resume_data(data, ec);
+ if (ec)
+ continue;
+ if (p.ti)
+ validate(*p.ti);
+ // A crash between atomic publication and the next resume alert must
+ // not redownload into the now-missing staging directory.
+ if (!t.publication.empty() && !fs::exists(p.save_path) &&
+ fs::is_directory(t.publication)) {
+ p.save_path = t.publication;
+ t.published = true;
+ }
+ p.flags &= ~lt::torrent_flags::auto_managed;
+ if (t.pending) {
+ p.flags |= lt::torrent_flags::upload_mode;
+ if (p.ti)
+ p.flags |= lt::torrent_flags::paused;
+ }
+ create_engine();
+ t.handle = session->add_torrent(p, ec);
+ if (!ec)
+ transfers.insert_or_assign(id, std::move(t));
+ } catch (std::exception const &e) {
+ std::cerr << "Restore transfer: " << e.what() << '\n';
+ }
+ }
+}
+int main(int argc, char **argv) {
+ umask(0077);
+ signal(SIGPIPE, SIG_IGN);
+ try {
+ if (getuid() == 0)
+ throw std::runtime_error("Transfers must run as a user");
+ const char *runtime = getenv("XDG_RUNTIME_DIR");
+ if (!runtime)
+ throw std::runtime_error("Missing runtime directory");
+ struct stat st{};
+ if (lstat(runtime, &st) || !S_ISDIR(st.st_mode) || st.st_uid != getuid() ||
+ (st.st_mode & 077))
+ throw std::runtime_error("Runtime directory is not private");
+ auto socket_path = std::string(runtime) + "/files-transfers.sock";
+ auto lock_path = socket_path + ".lock";
+ int lock = open(lock_path.c_str(),
+ O_CREAT | O_RDWR | O_CLOEXEC | O_NOFOLLOW, 0600);
+ if (lock < 0 || flock(lock, LOCK_EX | LOCK_NB))
+ return 0;
+ sockaddr_un address{};
+ address.sun_family = AF_UNIX;
+ if (socket_path.size() >= sizeof address.sun_path)
+ throw std::runtime_error("Runtime path too long");
+ strcpy(address.sun_path, socket_path.c_str());
+ int listener =
+ socket(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
+ unlink(socket_path.c_str());
+ if (bind(listener, reinterpret_cast<sockaddr *>(&address),
+ sizeof address) ||
+ listen(listener, 16))
+ throw std::runtime_error("Cannot listen for Files");
+ const char *state = getenv("XDG_STATE_HOME");
+ const char *home = getenv("HOME");
+ state_dir =
+ std::string(state ? state : (home ? home : "")) +
+ (state ? "/rediwm/transfers" : "/.local/state/rediwm/transfers");
+ fs::create_directories(state_dir);
+ struct stat state_stat{};
+ if (lstat(state_dir.c_str(), &state_stat) || !S_ISDIR(state_stat.st_mode) ||
+ state_stat.st_uid != getuid() || (state_stat.st_mode & 077))
+ throw std::runtime_error("Transfer state directory is not private");
+ executable =
+ (fs::canonical("/proc/self/exe").parent_path() / "rediwm-files")
+ .string();
+ // Scope policy is supplied by the Files launcher, which uses the same
+ // native/nested rules as its other user-app launches.
+ use_scopes = argc > 1 && !strcmp(argv[1], "--scope");
+ place_scope(getpid(), "transfers");
+ loop = g_main_loop_new(nullptr, false);
+ wake_fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
+ g_unix_fd_add(wake_fd, G_IO_IN, alerts, nullptr);
+ g_unix_fd_add(listener, G_IO_IN, accept_peer, nullptr);
+ g_unix_signal_add(SIGTERM, stop, nullptr);
+ g_unix_signal_add(SIGINT, stop, nullptr);
+ restore();
+ if (active())
+ ticker = g_timeout_add_seconds(1, tick, nullptr);
+ // Allow the spawning window time to connect; no recurring idle timer.
+ g_timeout_add_seconds(
+ 5,
+ [](gpointer) -> gboolean {
+ starting = false;
+ schedule();
+ return G_SOURCE_REMOVE;
+ },
+ nullptr);
+ g_main_loop_run(loop);
+ sleep_engine();
+ close(wake_fd);
+ close(listener);
+ unlink(socket_path.c_str());
+ close(lock);
+ g_main_loop_unref(loop);
+ } catch (std::exception const &e) {
+ std::cerr << "Transfers: " << e.what() << '\n';
+ return 1;
+ }
+}
diff --git a/src/files/torrents.zig b/src/files/torrents.zig
new file mode 100644
index 0000000..41a6a80
--- /dev/null
+++ b/src/files/torrents.zig
@@ -0,0 +1,157 @@
+//! Bounded, nonblocking client for the per-user transfer helper.
+const std = @import("std");
+const tr = @import("i18n").tr;
+const c = @cImport({
+ @cUndef("_FORTIFY_SOURCE");
+ @cDefine("_GNU_SOURCE", "1");
+ @cInclude("sys/socket.h");
+ @cInclude("sys/un.h");
+ @cInclude("unistd.h");
+});
+pub const File = struct { index: usize, path: []const u8, size: i64 };
+pub const Transfer = struct {
+ source: []const u8 = "",
+ download_directory: []const u8 = "",
+ peers: i32 = 0,
+ known_peers: i32 = 0,
+ seeds: i32 = 0,
+ id: []const u8,
+ name: []const u8,
+ destination: []const u8,
+ storage: []const u8,
+ pending: bool,
+ metadata: bool,
+ paused: bool,
+ finished: bool,
+ published: bool,
+ progress: i32,
+ download_rate: i64,
+ upload_rate: i64,
+ total: i64,
+ done: i64,
+ ratio: i32,
+ limit: i32,
+ @"error": []const u8,
+ files: []const File,
+ pub fn status(self: Transfer) []const u8 {
+ if (self.@"error".len > 0) return self.@"error";
+ if (self.pending) return if (self.metadata) tr("Choose files to download") else tr("Fetching file list…");
+ if (self.paused) return if (self.finished) tr("Complete · Stopped") else tr("Paused");
+ return if (self.finished) tr("Downloaded · Seeding") else tr("Downloading");
+ }
+};
+pub const Snapshot = struct { transfers: []const Transfer = &.{}, @"error": []const u8 = "" };
+pub const Client = struct {
+ rows_changed: bool = false,
+ fd: c_int = -1,
+ snapshot: ?std.json.Parsed(Snapshot) = null,
+ retry_at: ?i64 = null,
+ attempts: u8 = 0,
+ error_buf: [256]u8 = @splat(0),
+ pub fn deinit(self: *Client) void {
+ if (self.fd >= 0) _ = c.close(self.fd);
+ if (self.snapshot) |*s| s.deinit();
+ }
+ pub fn items(self: *const Client) []const Transfer {
+ return if (self.snapshot) |s| s.value.transfers else &.{};
+ }
+ pub fn message(self: *const Client) []const u8 {
+ return std.mem.sliceTo(&self.error_buf, 0);
+ }
+ pub fn fail(self: *Client, msg: []const u8) void {
+ const n = @min(msg.len, self.error_buf.len - 1);
+ @memcpy(self.error_buf[0..n], msg[0..n]);
+ self.error_buf[n] = 0;
+ }
+ pub fn connect(self: *Client, runtime: []const u8) bool {
+ var address: c.struct_sockaddr_un = std.mem.zeroes(c.struct_sockaddr_un);
+ address.sun_family = c.AF_UNIX;
+ _ = std.fmt.bufPrintZ(@ptrCast(&address.sun_path), "{s}/files-transfers.sock", .{runtime}) catch return false;
+ const fd = c.socket(c.AF_UNIX, c.SOCK_SEQPACKET | c.SOCK_NONBLOCK | c.SOCK_CLOEXEC, 0);
+ if (fd < 0) return false;
+ if (c.connect(fd, .{ .__sockaddr__ = @ptrCast(&address) }, @sizeOf(@TypeOf(address))) != 0) {
+ _ = c.close(fd);
+ return false;
+ }
+ var cred: c.struct_ucred = undefined;
+ var len: c.socklen_t = @sizeOf(@TypeOf(cred));
+ if (c.getsockopt(fd, c.SOL_SOCKET, c.SO_PEERCRED, &cred, &len) != 0 or cred.uid != c.getuid()) {
+ _ = c.close(fd);
+ return false;
+ }
+ self.fd = fd;
+ self.retry_at = null;
+ self.error_buf[0] = 0;
+ return true;
+ }
+ pub fn send(self: *Client, value: anytype) bool {
+ if (self.fd < 0) {
+ self.fail(tr("Transfers is disconnected. Reopen Transfers to reconnect."));
+ return false;
+ }
+ const bytes = std.json.Stringify.valueAlloc(std.heap.c_allocator, value, .{}) catch return false;
+ defer std.heap.c_allocator.free(bytes);
+ if (bytes.len > 192 * 1024 or c.send(self.fd, bytes.ptr, bytes.len, c.MSG_DONTWAIT | c.MSG_NOSIGNAL) != @as(isize, @intCast(bytes.len))) {
+ self.fail(tr("Transfer request could not be sent. Please retry."));
+ return false;
+ }
+ self.error_buf[0] = 0;
+ return true;
+ }
+ pub fn drain(self: *Client) void {
+ var buffer: [192 * 1024]u8 = undefined;
+ // Bounded per loop so a busy session cannot starve Wayland input.
+ for (0..8) |_| {
+ const n = c.recv(self.fd, &buffer, buffer.len, c.MSG_DONTWAIT | c.MSG_TRUNC);
+ if (n < 0 and std.posix.errno(n) == .AGAIN) return;
+ if (n <= 0 or n >= buffer.len) {
+ _ = c.close(self.fd);
+ self.fd = -1;
+ self.fail(tr("Transfers disconnected. Reopen Transfers to reconnect."));
+ return;
+ }
+ const next = std.json.parseFromSlice(Snapshot, std.heap.c_allocator, buffer[0..@intCast(n)], .{ .allocate = .alloc_always, .ignore_unknown_fields = true, .max_value_len = 16384 }) catch {
+ self.fail(tr("Invalid transfer update"));
+ return;
+ };
+ if (next.value.@"error".len > 0) {
+ self.fail(next.value.@"error");
+ next.deinit();
+ continue;
+ }
+ var valid = next.value.transfers.len <= 64;
+ for (next.value.transfers) |t| {
+ valid = valid and t.id.len <= 64 and t.files.len <= 512;
+ for (t.files) |f| valid = valid and f.index < 512;
+ }
+ if (!valid) {
+ next.deinit();
+ self.fail(tr("Invalid transfer metadata"));
+ return;
+ }
+ self.rows_changed = self.rows_changed or !sameRows(self.items(), next.value.transfers);
+ if (self.snapshot) |*old| old.deinit();
+ self.snapshot = next;
+ }
+ }
+};
+
+fn sameRows(a: []const Transfer, b: []const Transfer) bool {
+ if (a.len != b.len) return false;
+ for (a, b) |old, next| {
+ if (old.published != next.published or !std.mem.eql(u8, old.id, next.id) or
+ !std.mem.eql(u8, old.name, next.name) or !std.mem.eql(u8, old.source, next.source) or
+ !std.mem.eql(u8, old.download_directory, next.download_directory) or
+ !std.mem.eql(u8, old.destination, next.destination) or !std.mem.eql(u8, old.storage, next.storage)) return false;
+ }
+ return true;
+}
+
+pub fn etaSeconds(t: Transfer) ?i64 {
+ if (t.pending) return null;
+ if (t.finished) return 0;
+ if (t.paused or t.download_rate <= 0 or t.total <= 0) return null;
+ const remaining = t.total -| @max(0, t.done);
+ if (remaining <= 0) return 0;
+ return @divTrunc(remaining - 1, t.download_rate) + 1;
+}
diff --git a/src/files/volumes.zig b/src/files/volumes.zig
index c02ce18..2ff5257 100644
--- a/src/files/volumes.zig
+++ b/src/files/volumes.zig
@@ -4,6 +4,8 @@
//! A volume stays listed while its device is attached, mounted or not, so
//! ejecting (unmounting) one leaves it there to mount again.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const c = @cImport({
@cInclude("volumes.h");
});
@@ -130,20 +132,20 @@ pub fn resultPath(result: *const Result) []const u8 {
/// The status line for a failed mount or unmount of `name`.
pub fn failureMessage(buf: []u8, result: *const Result, name: []const u8) []const u8 {
const code = text(&result.code);
- const verb = if (result.unmount != 0) "eject" else "mount";
- const message = if (std.mem.endsWith(u8, code, ".DeviceBusy"))
- std.fmt.bufPrint(buf, "{s} is busy", .{name})
+ const unmount = result.unmount != 0;
+ const pattern = if (std.mem.endsWith(u8, code, ".DeviceBusy"))
+ tr("{name} is busy")
else if (std.mem.endsWith(u8, code, ".NotAuthorizedDismissed") or std.mem.endsWith(u8, code, ".Cancelled"))
- std.fmt.bufPrint(buf, "Cancelled", .{})
+ tr("Cancelled")
else if (std.mem.indexOf(u8, code, ".NotAuthorized") != null)
- std.fmt.bufPrint(buf, "Not authorized to {s} {s}", .{ verb, name })
+ (if (unmount) tr("Not authorized to eject {name}") else tr("Not authorized to mount {name}"))
else if (std.mem.endsWith(u8, code, ".Gone"))
- std.fmt.bufPrint(buf, "{s} is no longer available", .{name})
+ tr("{name} is no longer available")
else if (std.mem.endsWith(u8, code, ".AlreadyMounted"))
- std.fmt.bufPrint(buf, "{s} is already mounted", .{name})
+ tr("{name} is already mounted")
else
- std.fmt.bufPrint(buf, "Could not {s} {s}", .{ verb, name });
- return message catch "Could not use the device";
+ (if (unmount) tr("Could not eject {name}") else tr("Could not mount {name}"));
+ return i18n.fmt(buf, pattern, .{ .name = name }) catch tr("Could not use the device");
}
/// The GLib thread. Created once, after the window exists.
diff --git a/src/files/worker.zig b/src/files/worker.zig
index 05f34bd..daee6c1 100644
--- a/src/files/worker.zig
+++ b/src/files/worker.zig
@@ -1,10 +1,13 @@
const std = @import("std");
+const tr = @import("i18n").tr;
const archive = @import("archive.zig");
+const appimage = @import("appimage.zig");
const c = @import("c.zig").api;
const theme = @import("../icon_theme.zig");
const icons = @import("../icon_cache.zig");
const git = @import("git.zig");
const recent = @import("recent.zig");
+const collation = @import("collation.zig");
const Allocator = std.mem.Allocator;
pub const Item = struct {
@@ -14,6 +17,8 @@ pub const Item = struct {
name: []const u8,
/// Path relative to the listed folder, for the flat list of changed files.
label: []const u8 = "",
+ name_key: ?[]const u8 = null,
+ label_key: ?[]const u8 = null,
path: []const u8,
is_dir: bool,
is_symlink: bool,
@@ -39,6 +44,7 @@ pub const Snapshot = struct {
changed: []Item = &.{},
/// More files changed than `max_changed_rows`; `changed` is cut short.
changed_truncated: bool = false,
+ collation_name: []const u8 = "C",
pub fn destroy(self: *Snapshot) void {
self.arena.deinit();
@@ -51,6 +57,8 @@ pub const Worker = struct {
io: std.Io,
environ: std.process.Environ,
theme_cfg: theme.Config,
+ /// Accessed only by the directory worker; snapshots own transformed keys.
+ collate: collation.Locale,
mutex: c.pthread_mutex_t = undefined,
thread: ?std.Thread = null,
stop: std.atomic.Value(bool) = .init(false),
@@ -71,6 +79,9 @@ pub const Worker = struct {
opened_paths: std.ArrayList([]u8) = .empty,
theme_installs: std.ArrayList([]u8) = .empty,
theme_notice: ?[]u8 = null,
+ application_pending: ?[]u8 = null,
+ application_busy: bool = false,
+ application_notice: ?appimage.Notice = null,
/// Signalled after each request so the worker sleeps between them
/// instead of polling on an 80 ms clock.
wake: c_int = -1,
@@ -94,7 +105,9 @@ pub const Worker = struct {
.environ = environ,
.theme_cfg = theme_cfg,
.current_dir = try allocator.dupe(u8, initial_dir),
+ .collate = collation.Locale.fromPreferences("", environ),
};
+ errdefer self.collate.deinit();
if (c.pthread_mutex_init(&self.mutex, null) != 0) return error.MutexInitFailed;
errdefer _ = c.pthread_mutex_destroy(&self.mutex);
@@ -113,6 +126,7 @@ pub const Worker = struct {
self.stop.store(true, .release);
self.signal();
if (self.thread) |t| t.join();
+ self.collate.deinit();
_ = c.close(self.wake);
_ = c.close(self.wake_main);
if (self.pending_snapshot) |s| s.destroy();
@@ -122,6 +136,7 @@ pub const Worker = struct {
for (self.theme_installs.items) |p| self.allocator.free(p);
self.theme_installs.deinit(self.allocator);
if (self.theme_notice) |p| self.allocator.free(p);
+ if (self.application_pending) |p| self.allocator.free(p);
for (self.theme_cfg.base_dirs) |d| self.allocator.free(d);
self.allocator.free(self.theme_cfg.base_dirs);
@@ -159,7 +174,7 @@ pub const Worker = struct {
const helper = std.fs.path.join(mem, &.{ exe_dir, "rediwm-theme" }) catch return;
const result = std.process.run(mem, self.io, .{ .argv = &.{ helper, "install", path }, .stdout_limit = .limited(4096), .stderr_limit = .limited(16384), .timeout = .{ .duration = .{ .raw = .fromSeconds(30), .clock = .awake } } }) catch return;
const success = result.term == .exited and result.term.exited == 0;
- const message = self.allocator.dupe(u8, if (success) "Theme installed. Choose it in Settings → Appearance." else result.stderr) catch return;
+ const message = self.allocator.dupe(u8, if (success) tr("Theme installed. Choose it in Settings → Appearance.") else result.stderr) catch return;
_ = c.pthread_mutex_lock(&self.mutex);
if (self.theme_notice) |old| self.allocator.free(old);
self.theme_notice = message;
@@ -178,6 +193,37 @@ pub const Worker = struct {
self.signal();
}
+ pub fn addApplication(self: *Worker, path: []const u8) !void {
+ _ = c.pthread_mutex_lock(&self.mutex);
+ defer _ = c.pthread_mutex_unlock(&self.mutex);
+ if (self.application_busy) return error.Busy;
+ self.application_pending = try self.allocator.dupe(u8, path);
+ self.application_busy = true;
+ self.signal();
+ }
+
+ pub fn takeApplicationNotice(self: *Worker) ?appimage.Notice {
+ _ = c.pthread_mutex_lock(&self.mutex);
+ defer _ = c.pthread_mutex_unlock(&self.mutex);
+ const notice = self.application_notice;
+ self.application_notice = null;
+ if (notice != null) self.application_busy = false;
+ return notice;
+ }
+
+ fn processApplication(self: *Worker, path: []const u8) void {
+ var arena = std.heap.ArenaAllocator.init(self.allocator);
+ defer arena.deinit();
+ const notice: appimage.Notice = if (appimage.install(arena.allocator(), self.io, self.environ, path))
+ .{ .message = tr("Added to applications. Keep the AppImage in its current location.") }
+ else |err|
+ .{ .message = appimage.message(err), .failed = true };
+ _ = c.pthread_mutex_lock(&self.mutex);
+ self.application_notice = notice;
+ _ = c.pthread_mutex_unlock(&self.mutex);
+ notify(self.wake_main);
+ }
+
pub fn navigateLocation(self: *Worker, new_dir: []const u8, show_hidden: bool, archive_len: usize) u64 {
_ = c.pthread_mutex_lock(&self.mutex);
defer _ = c.pthread_mutex_unlock(&self.mutex);
@@ -267,7 +313,13 @@ pub const Worker = struct {
self.theme_installs = .empty;
const opened = self.opened_paths;
self.opened_paths = .empty;
+ const application = self.application_pending;
+ self.application_pending = null;
_ = c.pthread_mutex_unlock(&self.mutex);
+ if (application) |path| {
+ defer self.allocator.free(path);
+ if (!self.stop.load(.acquire)) self.processApplication(path);
+ }
for (installs.items) |p| {
self.processTheme(p);
self.allocator.free(p);
@@ -284,6 +336,12 @@ pub const Worker = struct {
const update = if (theme_fd < 0) settings.poll(self.allocator, self.io) else if (theme_changed) settings.reload(self.allocator, self.io) else null;
theme_changed = false;
if (update) |t| {
+ const requested = collation.Locale.requested(t.region.formats, self.environ);
+ if (!std.mem.eql(u8, requested, self.collate.name())) {
+ self.collate.deinit();
+ self.collate = collation.Locale.fromPreferences(t.region.formats, self.environ);
+ self.rescan_requested.store(true, .release);
+ }
_ = c.pthread_mutex_lock(&self.mutex);
self.animation_settings = settings.animations;
if (self.theme) |old| old.deinit();
@@ -344,6 +402,11 @@ pub const Worker = struct {
if (dir_changed or self.rescan_requested.swap(false, .acq_rel)) {
const snap = if (cur_archive_len > 0) self.scanArchive(cur_dir, cur_archive_len, cur_show_hidden, cur_req_id, &archive_cache) else self.scan(cur_dir, cur_show_hidden, cur_req_id);
+ self.prepareCollation(snap) catch {
+ snap.items = &.{};
+ snap.changed = &.{};
+ snap.err_msg = tr("Could not sort folder names");
+ };
// Register new watches before dropping old ones. Re-adding an
// existing path returns its descriptor and creates no events.
var next_watches: [4]c_int = @splat(-1);
@@ -491,13 +554,13 @@ pub const Worker = struct {
};
const mem = snap.arena.allocator();
snap.dir = mem.dupe(u8, dir_path) catch {
- snap.err_msg = "Out of memory";
+ snap.err_msg = tr("Out of memory");
return snap;
};
if (recent.isLocation(dir_path)) {
const entries = recent.read(mem, self.io, self.environ) catch {
- snap.err_msg = "Could not read recent files";
+ snap.err_msg = tr("Could not read recent files");
return snap;
};
var list: std.ArrayList(Item) = .empty;
@@ -521,10 +584,10 @@ pub const Worker = struct {
var dir = std.Io.Dir.cwd().openDir(self.io, dir_path, .{ .iterate = true }) catch |err| {
snap.err_msg = switch (err) {
- error.FileNotFound => "Folder not found",
- error.AccessDenied => "Permission denied",
- error.NotDir => "Not a directory",
- else => "Could not open folder",
+ error.FileNotFound => tr("Folder not found"),
+ error.AccessDenied => tr("Permission denied"),
+ error.NotDir => tr("Not a directory"),
+ else => tr("Could not open folder"),
};
return snap;
};
@@ -575,21 +638,25 @@ pub const Worker = struct {
}
}
- // Sort items: folders first, then alphabetical (case-insensitive)
- std.mem.sort(Item, list.items, {}, struct {
+ snap.items = list.toOwnedSlice(mem) catch &.{};
+ return snap;
+ }
+
+ fn prepareCollation(self: *Worker, snap: *Snapshot) !void {
+ const mem = snap.arena.allocator();
+ snap.collation_name = try mem.dupe(u8, self.collate.name());
+ for ([_][]Item{ snap.items, snap.changed }) |items| for (items) |*item| {
+ item.name_key = try self.collate.key(mem, item.name);
+ if (item.label.len > 0) item.label_key = try self.collate.key(mem, item.label);
+ };
+ // Freeze expensive libc transformations once, also for archive and
+ // Recent listings. UI re-sorts compare these byte keys only.
+ std.mem.sort(Item, snap.items, {}, struct {
fn less(_: void, a: Item, b: Item) bool {
- if (a.is_dir != b.is_dir) {
- return a.is_dir; // Folders come before files
- }
- if (!std.ascii.eqlIgnoreCase(a.name, b.name)) {
- return std.ascii.lessThanIgnoreCase(a.name, b.name);
- }
- return std.mem.lessThan(u8, a.name, b.name);
+ if (a.is_dir != b.is_dir) return a.is_dir;
+ return collation.order(a.name_key.?, b.name_key.?, a.name, b.name, a.path, b.path) == .lt;
}
}.less);
-
- snap.items = list.toOwnedSlice(mem) catch &.{};
- return snap;
}
};
diff --git a/src/files_main.zig b/src/files_main.zig
index 6640016..31a0856 100644
--- a/src/files_main.zig
+++ b/src/files_main.zig
@@ -10,6 +10,8 @@ fn printUsage() void {
\\
\\Options:
\\ -h, --help Show this help message and exit
+ \\ --transfers Show background downloads
+ \\ --torrent URI Open a torrent file or magnet link
\\ --open Choose a file (JSON result on stdout)
\\ --save Choose a save destination
\\ --folder Choose a folder
@@ -80,8 +82,11 @@ fn resolveTarget(allocator: std.mem.Allocator, environ: std.process.Environ, tar
}
pub fn main(init: std.process.Init) void {
+ @import("i18n").init(init.minimal.environ);
const raw_args = init.minimal.args.vector;
var target_arg: ?[]const u8 = null;
+ var torrent_source: ?[]const u8 = null;
+ var transfers = false;
var chooser: ?@import("files/chooser.zig").Options = null;
var arena = std.heap.ArenaAllocator.init(std.heap.c_allocator);
defer arena.deinit();
@@ -93,6 +98,11 @@ pub fn main(init: std.process.Init) void {
if (std.mem.eql(u8, arg, "-h") or std.mem.eql(u8, arg, "--help")) {
printUsage();
return;
+ } else if (std.mem.eql(u8, arg, "--transfers")) {
+ transfers = true;
+ } else if (std.mem.eql(u8, arg, "--torrent") and i + 1 < raw_args.len) {
+ i += 1;
+ torrent_source = std.mem.span(raw_args[i]);
} else if (std.mem.eql(u8, arg, "--chooser-stdin")) {
var bytes: std.ArrayList(u8) = .empty;
while (true) {
@@ -117,6 +127,17 @@ pub fn main(init: std.process.Init) void {
}
}
+ if (torrent_source) |source| {
+ if (std.mem.startsWith(u8, source, "file://")) {
+ const Gio = struct {
+ extern fn g_filename_from_uri([*:0]const u8, ?*?[*:0]u8, ?*anyopaque) ?[*:0]u8;
+ extern fn g_free(?*anyopaque) void;
+ };
+ const raw = Gio.g_filename_from_uri(a.dupeZ(u8, source) catch return, null, null) orelse return;
+ defer Gio.g_free(raw);
+ torrent_source = a.dupe(u8, std.mem.span(raw)) catch return;
+ } else if (!std.mem.startsWith(u8, source, "magnet:?")) torrent_source = std.fs.path.resolve(a, &.{source}) catch return;
+ }
const allocator = std.heap.c_allocator;
const target = resolveTarget(allocator, init.minimal.environ, target_arg, chooser == null) catch |err| blk: {
if (chooser != null) break :blk resolveTarget(allocator, init.minimal.environ, null, false) catch resolveTarget(allocator, init.minimal.environ, "/", false) catch std.process.exit(1);
@@ -132,7 +153,7 @@ pub fn main(init: std.process.Init) void {
};
defer allocator.free(target.path);
- main_mod.run(init, target.directory, if (chooser == null) target.selected else null, chooser) catch |err| {
+ main_mod.run(init, target.directory, if (chooser == null) target.selected else null, chooser, torrent_source, transfers) catch |err| {
std.log.err("rediwm-files: {}", .{err});
std.process.exit(1);
};
diff --git a/src/i18n/mod.zig b/src/i18n/mod.zig
new file mode 100644
index 0000000..dfccedd
--- /dev/null
+++ b/src/i18n/mod.zig
@@ -0,0 +1,276 @@
+//! Compiled, allocation-free UI catalogs. No process locale changes or file IO.
+const std = @import("std");
+const data = @import("catalogs");
+pub const languages = data.languages;
+
+var active = std.atomic.Value(usize).init(0);
+var turkish = std.atomic.Value(bool).init(false);
+
+pub fn resolve(configured: []const u8, environ: std.process.Environ) []const u8 {
+ if (configured.len != 0) return configured;
+ for ([_][]const u8{ "LC_ALL", "LC_MESSAGES", "LANG" }) |key| {
+ if (environ.getPosix(key)) |value| if (value.len != 0) return value;
+ }
+ return "C";
+}
+
+pub fn init(environ: std.process.Environ) void {
+ _ = setLanguage(resolve("", environ));
+}
+
+/// Strip encoding/modifier and normalize language/country without allocating.
+pub fn normalize(buf: []u8, raw: []const u8) []const u8 {
+ const end = std.mem.indexOfAny(u8, raw, ".@") orelse raw.len;
+ if (end > buf.len) return "en";
+ var country = false;
+ for (raw[0..end], 0..) |ch, i| {
+ if (ch == '_' or ch == '-') {
+ buf[i] = '_';
+ country = true;
+ } else buf[i] = if (country) std.ascii.toUpper(ch) else std.ascii.toLower(ch);
+ }
+ const tag = buf[0..end];
+ if (std.mem.eql(u8, tag, "c") or std.mem.eql(u8, tag, "posix") or tag.len == 0) return "en";
+ return tag;
+}
+
+pub fn setLanguage(raw: []const u8) bool {
+ var buf: [128]u8 = undefined;
+ const tag = normalize(&buf, raw);
+ const base = tag[0 .. std.mem.indexOfScalar(u8, tag, '_') orelse tag.len];
+ const turkish_changed = turkish.swap(std.mem.eql(u8, base, "tr"), .acq_rel) != std.mem.eql(u8, base, "tr");
+ var selected: usize = 0;
+ for (data.catalogs, 0..) |catalog, i| {
+ if (std.mem.eql(u8, catalog.tag, tag)) {
+ selected = i + 1;
+ break;
+ }
+ }
+ if (selected == 0) for (data.catalogs, 0..) |catalog, i| {
+ if (std.mem.eql(u8, catalog.tag, base) or (std.mem.eql(u8, base, "pt") and std.mem.eql(u8, catalog.tag, "pt_BR"))) {
+ selected = i + 1;
+ break;
+ }
+ };
+ const changed = active.swap(selected, .acq_rel) != selected;
+ return changed or turkish_changed;
+}
+
+pub fn language() []const u8 {
+ const index = active.load(.acquire);
+ return if (index == 0) "en" else data.catalogs[index - 1].tag;
+}
+
+pub fn isTurkish() bool {
+ return turkish.load(.acquire);
+}
+
+pub fn hash(context: []const u8, msgid: []const u8) u64 {
+ @setEvalBranchQuota(1000000);
+ var value: u64 = 14695981039346656037;
+ for (context) |ch| value = (value ^ ch) *% 1099511628211;
+ value = (value ^ 4) *% 1099511628211;
+ for (msgid) |ch| value = (value ^ ch) *% 1099511628211;
+ return value;
+}
+
+pub fn tr(comptime msgid: []const u8) []const u8 {
+ return trc("", msgid);
+}
+
+pub fn trZ(comptime msgid: []const u8) [:0]const u8 {
+ const value = lookup("", msgid, comptime hash("", msgid), null) orelse return msgid ++ "";
+ return value;
+}
+
+/// Store a prehashed message in a static UI descriptor, resolve when building UI.
+pub const Message = struct {
+ source: []const u8,
+ key: u64,
+ pub fn get(self: Message) []const u8 {
+ return lookup("", self.source, self.key, null) orelse self.source;
+ }
+};
+pub fn msg(comptime msgid: []const u8) Message {
+ return .{ .source = msgid, .key = comptime hash("", msgid) };
+}
+
+pub fn trc(comptime context: []const u8, comptime msgid: []const u8) []const u8 {
+ return lookup(context, msgid, comptime hash(context, msgid), null) orelse msgid;
+}
+
+pub fn trn(comptime singular: []const u8, comptime plural: []const u8, n: u64) []const u8 {
+ return trnc("", singular, plural, n);
+}
+
+pub fn trnc(comptime context: []const u8, comptime singular: []const u8, comptime plural: []const u8, n: u64) []const u8 {
+ return lookup(context, singular, comptime hash(context, singular), n) orelse if (n == 1) singular else plural;
+}
+
+fn lookup(context: []const u8, msgid: []const u8, key: u64, count: ?u64) ?[:0]const u8 {
+ const index = active.load(.acquire);
+ if (index == 0) return null;
+ // Keep catalog probing out of each literal's specialized wrapper. English
+ // is one atomic load/branch, and optimized builds share the larger lookup.
+ return @call(.never_inline, lookupCatalog, .{ index, context, msgid, key, count });
+}
+
+fn lookupCatalog(index: usize, context: []const u8, msgid: []const u8, key: u64, count: ?u64) ?[:0]const u8 {
+ const catalog = data.catalogs[index - 1];
+ if (lookupTable(catalog.slots, context, msgid, key, if (count) |n| pluralIndex(catalog.tag, n) else 0)) |value| return value;
+ // Regional catalogs are sparse overlays. Missing entries inherit the base
+ // language before falling back to the English source string.
+ const base = catalog.tag[0 .. std.mem.indexOfScalar(u8, catalog.tag, '_') orelse catalog.tag.len];
+ for (data.catalogs) |fallback| {
+ if (std.mem.eql(u8, fallback.tag, catalog.tag)) continue;
+ if (std.mem.eql(u8, fallback.tag, base) or (std.mem.eql(u8, base, "pt") and std.mem.eql(u8, fallback.tag, "pt_BR"))) {
+ if (lookupTable(fallback.slots, context, msgid, key, if (count) |n| pluralIndex(fallback.tag, n) else 0)) |value| return value;
+ }
+ }
+ return null;
+}
+
+fn lookupTable(table: []const ?data.Entry, context: []const u8, msgid: []const u8, key: u64, form: usize) ?[:0]const u8 {
+ if (table.len == 0) return null;
+ var slot: usize = @intCast(key % table.len);
+ for (0..table.len) |_| {
+ const entry = table[slot] orelse return null;
+ if (entry.hash == key and std.mem.eql(u8, entry.context, context) and std.mem.eql(u8, entry.msgid, msgid)) {
+ if (entry.forms.len == 0) return null;
+ const value = entry.forms[@min(form, entry.forms.len - 1)];
+ return if (value.len == 0) null else value;
+ }
+ slot = (slot + 1) % table.len;
+ }
+ return null;
+}
+
+pub fn pluralCount(tag: []const u8) usize {
+ return if (std.mem.eql(u8, tag, "ru") or std.mem.eql(u8, tag, "uk") or std.mem.eql(u8, tag, "pl") or std.mem.eql(u8, tag, "cs")) 3 else 2;
+}
+
+pub fn pluralIndex(tag: []const u8, n: u64) usize {
+ if (std.mem.eql(u8, tag, "fr") or std.mem.eql(u8, tag, "pt_BR")) return if (n <= 1) 0 else 1;
+ if (std.mem.eql(u8, tag, "ru") or std.mem.eql(u8, tag, "uk")) {
+ if (n % 10 == 1 and n % 100 != 11) return 0;
+ return if (n % 10 >= 2 and n % 10 <= 4 and (n % 100 < 12 or n % 100 > 14)) 1 else 2;
+ }
+ if (std.mem.eql(u8, tag, "pl")) {
+ if (n == 1) return 0;
+ return if (n % 10 >= 2 and n % 10 <= 4 and (n % 100 < 12 or n % 100 > 14)) 1 else 2;
+ }
+ if (std.mem.eql(u8, tag, "cs")) return if (n == 1) 0 else if (n >= 2 and n <= 4) 1 else 2;
+ return if (n == 1) 0 else 1;
+}
+
+pub const FormatError = error{ NoSpaceLeft, InvalidFormat, MissingArgument };
+
+/// Named fields may be reordered/repeated by translators; braces escape as {{/}}.
+pub fn fmt(buf: []u8, pattern: []const u8, args: anytype) FormatError![]const u8 {
+ var writer = std.Io.Writer.fixed(buf);
+ try format(&writer, pattern, args);
+ return buf[0..writer.end];
+}
+
+pub fn allocPrint(allocator: std.mem.Allocator, pattern: []const u8, args: anytype) ![]u8 {
+ var writer = std.Io.Writer.Allocating.init(allocator);
+ defer writer.deinit();
+ try format(&writer.writer, pattern, args);
+ return writer.toOwnedSlice();
+}
+
+pub fn fmtZ(buf: []u8, pattern: []const u8, args: anytype) FormatError![:0]const u8 {
+ if (buf.len == 0) return error.NoSpaceLeft;
+ const value = try fmt(buf[0 .. buf.len - 1], pattern, args);
+ buf[value.len] = 0;
+ return buf[0..value.len :0];
+}
+
+fn format(writer: *std.Io.Writer, pattern: []const u8, args: anytype) FormatError!void {
+ var i: usize = 0;
+ while (i < pattern.len) {
+ const ch = pattern[i];
+ if (ch == '{' or ch == '}') {
+ if (i + 1 < pattern.len and pattern[i + 1] == ch) {
+ writer.writeByte(ch) catch return error.NoSpaceLeft;
+ i += 2;
+ continue;
+ }
+ if (ch == '}') return error.InvalidFormat;
+ const end = std.mem.indexOfScalarPos(u8, pattern, i + 1, '}') orelse return error.InvalidFormat;
+ const name = pattern[i + 1 .. end];
+ var found = false;
+ inline for (std.meta.fields(@TypeOf(args))) |field| {
+ if (std.mem.eql(u8, name, field.name)) {
+ const value = @field(args, field.name);
+ switch (@typeInfo(field.type)) {
+ .int, .comptime_int, .float, .comptime_float => writer.print("{d}", .{value}) catch return error.NoSpaceLeft,
+ .pointer, .array => writer.print("{s}", .{value}) catch return error.NoSpaceLeft,
+ else => @compileError("i18n argument " ++ field.name ++ " must be string or integer, got " ++ @typeName(field.type)),
+ }
+ found = true;
+ }
+ }
+ if (!found) return error.MissingArgument;
+ i = end + 1;
+ } else {
+ writer.writeByte(ch) catch return error.NoSpaceLeft;
+ i += 1;
+ }
+ }
+}
+
+test "integer CLDR families" {
+ const t = std.testing;
+ for ([_]u64{ 1, 21 }) |n| try t.expectEqual(@as(usize, 0), pluralIndex("ru", n));
+ for ([_]u64{ 2, 22 }) |n| try t.expectEqual(@as(usize, 1), pluralIndex("ru", n));
+ for ([_]u64{ 5, 11, 12, 25, 111 }) |n| try t.expectEqual(@as(usize, 2), pluralIndex("ru", n));
+ for ([_][]const u8{ "fr", "pt_BR" }) |tag| {
+ try t.expectEqual(@as(usize, 0), pluralIndex(tag, 0));
+ try t.expectEqual(@as(usize, 0), pluralIndex(tag, 1));
+ try t.expectEqual(@as(usize, 1), pluralIndex(tag, 2));
+ }
+ try t.expectEqual(@as(usize, 2), pluralIndex("pl", 21));
+}
+
+test "named formatting, braces, bounds and malformed fields" {
+ var buf: [64]u8 = undefined;
+ try std.testing.expectEqualStrings("Delete 3: abc? {ok}", try fmt(&buf, "Delete {n}: {name}? {{ok}}", .{ .name = "abc", .n = 3 }));
+ try std.testing.expectError(error.MissingArgument, fmt(&buf, "{missing}", .{}));
+ try std.testing.expectError(error.InvalidFormat, fmt(&buf, "{name", .{ .name = "abc" }));
+ try std.testing.expectError(error.NoSpaceLeft, fmt(buf[0..2], "{name}", .{ .name = "abc" }));
+}
+
+test "locale normalization, fallback and fuzzy identity" {
+ defer _ = setLanguage("en");
+ var buf: [128]u8 = undefined;
+ try std.testing.expectEqualStrings("pt_BR", normalize(&buf, "pt-br.UTF-8@x"));
+ _ = setLanguage("zz_ZZ.UTF-8");
+ try std.testing.expectEqualStrings("en", language());
+ try std.testing.expectEqualStrings("Cancel", tr("Cancel"));
+ _ = setLanguage("tr_TR");
+ try std.testing.expect(isTurkish());
+}
+
+test "compiled pseudo locale, context, sentinel and English missing fallback" {
+ defer _ = setLanguage("en");
+ _ = setLanguage("qps");
+ try std.testing.expect(!std.mem.eql(u8, "Cancel", tr("Cancel")));
+ try std.testing.expectEqual(@as(u8, 0), trZ("Cancel").ptr[trZ("Cancel").len]);
+ try std.testing.expectEqualStrings("no such source message", tr("no such source message"));
+ _ = setLanguage("en_US.UTF-8");
+ try std.testing.expectEqualStrings("Cancel", tr("Cancel"));
+ try std.testing.expectEqualStrings("many", trn("one", "many", 0));
+}
+
+test "open addressing resolves collisions and confirms context" {
+ var slots: [4]?data.Entry = @splat(null);
+ const first = hash("", "a");
+ const second = hash("", "e");
+ try std.testing.expectEqual(first % 4, second % 4);
+ slots[first % 4] = .{ .hash = first, .context = "", .msgid = "a", .forms = &.{"A"} };
+ slots[(first % 4 + 1) % 4] = .{ .hash = second, .context = "", .msgid = "e", .forms = &.{ "E", "Es" } };
+ try std.testing.expectEqualStrings("A", lookupTable(&slots, "", "a", first, 0).?);
+ try std.testing.expectEqualStrings("Es", lookupTable(&slots, "", "e", second, 1).?);
+ try std.testing.expectEqual(@as(?[:0]const u8, null), lookupTable(&slots, "different context", "e", second, 0));
+}
diff --git a/src/images/app.zig b/src/images/app.zig
index 196f267..6b71216 100644
--- a/src/images/app.zig
+++ b/src/images/app.zig
@@ -1,4 +1,6 @@
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const c = @import("../files/c.zig").api;
const decoder = @import("loader.zig");
const view = @import("view.zig");
@@ -20,7 +22,7 @@ const a = std.heap.c_allocator;
const Dialog = enum { none, save, trash, discard };
const Pending = union(enum) { none, close, select: usize };
const Action = enum { back, previous, next, rotate, crop, undo, smaller, larger, fit, actual, save, trash };
-const labels = [_][]const u8{ "Back", "Previous", "Next", "Rotate", "Crop", "Undo edits", "Zoom out", "Zoom in", "Fit", "100%", "Save as", "Trash" };
+const labels = [_]i18n.Message{ i18n.msg("Back"), i18n.msg("Previous"), i18n.msg("Next"), i18n.msg("Rotate"), i18n.msg("Crop"), i18n.msg("Undo edits"), i18n.msg("Zoom out"), i18n.msg("Zoom in"), i18n.msg("Fit"), i18n.msg("100%"), i18n.msg("Save as"), i18n.msg("Trash") };
const Thumb = struct { index: usize, image: ?decoder.Image, stamp: ?cache_mod.Stamp };
pub const App = struct {
@@ -106,9 +108,9 @@ pub const App = struct {
}
fn setTitle(self: *App) void {
const raw_name = std.fs.path.basename(self.paths[self.selected]);
- const name = if (std.unicode.utf8ValidateSlice(raw_name)) raw_name else "Image";
- _ = std.fmt.bufPrintZ(&self.title, "{s}{s} — Images ({d}/{d})", .{ if (self.modified) "* " else "", name, self.position() + 1, self.count() }) catch {
- _ = std.fmt.bufPrintZ(&self.title, "Images ({d}/{d})", .{ self.position() + 1, self.count() }) catch unreachable;
+ const name = if (std.unicode.utf8ValidateSlice(raw_name)) raw_name else tr("Image");
+ _ = i18n.fmtZ(&self.title, tr("{modified}{name} — Images ({position}/{count})"), .{ .modified = if (self.modified) "* " else "", .name = name, .position = self.position() + 1, .count = self.count() }) catch {
+ _ = i18n.fmtZ(&self.title, tr("Images ({position}/{count})"), .{ .position = self.position() + 1, .count = self.count() }) catch unreachable;
};
self.title_changed = true;
}
@@ -239,9 +241,9 @@ pub const App = struct {
// Only cache pixels if the file remained unchanged throughout decoding.
if (!std.meta.eql(self.image_stamp, cache_mod.Stamp.read(self.paths[self.selected]))) self.image_stamp = null;
self.error_message = if (result.err) |err| switch (err) {
- error.ImageTooLarge => "Image exceeds the 32 megapixel preview limit",
- error.UnsupportedImage => "Unsupported image, missing decoder, or file unavailable",
- else => "Could not read this image",
+ error.ImageTooLarge => tr("Image exceeds the 32 megapixel preview limit"),
+ error.UnsupportedImage => tr("Unsupported image, missing decoder, or file unavailable"),
+ else => tr("Could not read this image"),
} else null;
self.dirty = true;
} else {
@@ -338,7 +340,7 @@ pub const App = struct {
.next => self.navigate(true),
.rotate => {
if (self.image) |im| self.replaceImage(edit.rotate(im) catch {
- self.message("Could not rotate: not enough memory.");
+ self.message(tr("Could not rotate: not enough memory."));
return;
});
},
@@ -351,7 +353,7 @@ pub const App = struct {
self.deletion.deinit();
self.deletion.add(self.paths[self.selected], std.fs.path.basename(self.paths[self.selected]), false, if (self.trash_stamp) |stamp| stamp.size else 0, null) catch {
self.deletion.deinit();
- self.message("Could not open the delete dialog.");
+ self.message(tr("Could not open the delete dialog."));
return;
};
self.deletion.permanent = self.shift;
@@ -626,7 +628,7 @@ pub const App = struct {
}
pub fn requestClose(self: *App) void {
if (self.operation != null) {
- self.message("Please wait for the file operation to finish.");
+ self.message(tr("Please wait for the file operation to finish."));
return;
}
self.cancelDrag();
@@ -681,7 +683,7 @@ pub const App = struct {
self.crop_drag = false;
self.view.reset();
self.storeThumb(self.selected, decoder.makeThumbnail(original) catch null);
- self.message("Edits undone.");
+ self.message(tr("Edits undone."));
self.setTitle();
}
fn imageRect(self: *const App) Rect {
@@ -720,7 +722,7 @@ pub const App = struct {
const w: i32 = @min(im.w, @as(i32, @intFromFloat(@ceil(r.x + r.w)))) - x;
const h: i32 = @min(im.h, @as(i32, @intFromFloat(@ceil(r.y + r.h)))) - y;
if (r.w < 1 or r.h < 1) {
- self.message("Drag a larger crop selection.");
+ self.message(tr("Drag a larger crop selection."));
return;
}
if (x == 0 and y == 0 and w == im.w and h == im.h) {
@@ -729,7 +731,7 @@ pub const App = struct {
return;
}
self.replaceImage(edit.crop(im, x, y, w, h) catch {
- self.message("Could not crop this selection.");
+ self.message(tr("Could not crop this selection."));
return;
});
}
@@ -782,13 +784,13 @@ pub const App = struct {
for (0..10000) |n| {
const name = if (n == 0) std.fmt.bufPrint(&name_buf, "{s}-edited.png", .{base}) catch "edited.png" else std.fmt.bufPrint(&name_buf, "{s}-edited-{d}.png", .{ base, n }) catch "edited.png";
const dest = std.fmt.bufPrintZ(&buf, "{s}/{s}", .{ dir, name }) catch {
- self.message("The filename is too long.");
+ self.message(tr("The filename is too long."));
return;
};
var st: c.struct_stat = undefined;
if (c.lstat(dest, &st) == 0) continue;
self.filename.set(a, name) catch {
- self.message("Not enough memory.");
+ self.message(tr("Not enough memory."));
return;
};
self.filename.anchor = 0;
@@ -798,7 +800,7 @@ pub const App = struct {
}
if (!suggested) {
self.filename.set(a, "edited.png") catch {
- self.message("Not enough memory.");
+ self.message(tr("Not enough memory."));
return;
};
self.filename.select_all = true;
@@ -828,21 +830,21 @@ pub const App = struct {
.save => {
const name = self.filename.text.items;
if (name.len == 0 or !std.unicode.utf8ValidateSlice(name) or std.mem.indexOfScalar(u8, name, 0) != null) {
- self.message("Enter a filename.");
+ self.message(tr("Enter a filename."));
return;
}
if (!std.ascii.eqlIgnoreCase(std.fs.path.extension(name), ".png")) {
- self.message("Use a .png filename to save a PNG copy.");
+ self.message(tr("Use a .png filename to save a PNG copy."));
return;
}
if (!std.fs.path.isAbsolute(name)) @import("../files/ops.zig").validateFilename(name) catch {
- self.message("Enter a filename or an absolute path.");
+ self.message(tr("Enter a filename or an absolute path."));
return;
};
const path = if (std.fs.path.isAbsolute(name)) a.dupeZ(u8, name) catch return else std.fmt.allocPrintSentinel(a, "{s}/{s}", .{ std.fs.path.dirname(self.paths[self.selected]) orelse ".", name }, 0) catch return;
defer a.free(path);
self.operation = edit.Operation.start(.save, self.io, path, self.image, null) catch {
- self.message("Could not start saving.");
+ self.message(tr("Could not start saving."));
return;
};
self.notice_len = 0;
@@ -850,7 +852,7 @@ pub const App = struct {
},
.trash => {
self.operation = edit.Operation.start(if (self.deletion.permanent) .delete else .trash, self.io, self.deletion.paths.items[0], null, self.trash_stamp) catch {
- self.message("Could not start deleting this file.");
+ self.message(tr("Could not start deleting this file."));
return;
};
self.notice_len = 0;
@@ -870,10 +872,10 @@ pub const App = struct {
self.deletion.deinit();
}
self.message(switch (err) {
- error.PathAlreadyExists => "That file already exists. Choose another name.",
- error.FileChanged => "The file changed. Please try again.",
- error.GioNotAvailable => "Trash is unavailable: install gio to use it.",
- else => if (op.kind == .save) "Could not save. Check the folder and permissions." else if (op.kind == .delete) "Could not delete. The file was kept." else "Could not move to Trash. The file was kept.",
+ error.PathAlreadyExists => tr("That file already exists. Choose another name."),
+ error.FileChanged => tr("The file changed. Please try again."),
+ error.GioNotAvailable => tr("Trash is unavailable: install gio to use it."),
+ else => if (op.kind == .save) tr("Could not save. Check the folder and permissions.") else if (op.kind == .delete) tr("Could not delete. The file was kept.") else tr("Could not move to Trash. The file was kept."),
});
return;
}
@@ -882,9 +884,9 @@ pub const App = struct {
if (op.kind == .save) {
self.modified = false;
self.setTitle();
- if (std.fmt.bufPrint(&self.notice, "Saved {s}", .{std.fs.path.basename(op.path)})) |saved_message| {
+ if (i18n.fmt(&self.notice, tr("Saved {name}"), .{ .name = std.fs.path.basename(op.path) })) |saved_message| {
self.notice_len = saved_message.len;
- } else |_| self.message("Saved PNG copy.");
+ } else |_| self.message(tr("Saved PNG copy."));
self.finishPending();
} else {
var pos = self.position();
@@ -906,7 +908,7 @@ pub const App = struct {
return;
}
self.select(self.indexAt(@min(pos, self.count() - 1)));
- self.message("Moved to Trash.");
+ self.message(tr("Moved to Trash."));
}
}
fn dialogRect(self: *const App) Rect {
@@ -946,7 +948,7 @@ pub const App = struct {
fn drawDialog(self: *App, cr: *c.cairo_t) void {
if (self.dialog == .trash) {
self.deletion.draw(cr, self.w, self.h, self.px, self.py, null);
- const note = if (self.operation != null) "Working…" else self.notice[0..self.notice_len];
+ const note = if (self.operation != null) tr("Working…") else self.notice[0..self.notice_len];
if (note.len > 0) {
setSource(cr, ui_theme.global.window_fg);
drawText(cr, note, 16, @floatFromInt(self.h - 8), shell_ui.statusSize(), false);
@@ -969,7 +971,7 @@ pub const App = struct {
const n: usize = if (self.dialog == .discard) 3 else 2;
for (0..n) |i| {
const b = self.dialogButton(i);
- const label = if (i == 0) "Cancel" else if (self.dialog == .save or i == 2) "Save as…" else if (self.dialog == .trash) "Move to Trash" else "Discard";
+ const label = if (i == 0) tr("Cancel") else if (self.dialog == .save or i == 2) tr("Save as…") else if (self.dialog == .trash) tr("Move to Trash") else tr("Discard");
ui_button.paint(lr, .{ .x = @floatCast(b.x - r.x), .y = @floatCast(b.y - r.y), .w = @floatCast(b.w), .h = @floatCast(b.h) }, .{
.variant = if (i == 0) .secondary else .primary,
.label = label,
@@ -979,17 +981,17 @@ pub const App = struct {
}
setSource(cr, t.fg);
const title = switch (self.dialog) {
- .save => "Save a PNG copy",
- .trash => "Move this image to Trash?",
- .discard => "Save your edits?",
+ .save => tr("Save a PNG copy"),
+ .trash => tr("Move this image to Trash?"),
+ .discard => tr("Save your edits?"),
.none => "",
};
drawText(cr, title, r.x + 20, r.y + 30, shell_ui.textSize(), true);
setSource(cr, t.fg);
const description = switch (self.dialog) {
- .save => "Same folder, or enter an absolute path.",
- .trash => if (self.modified or self.hasCropSelection()) "Unsaved edits will be discarded." else "You can restore the file from Trash.",
- .discard => "This image has unsaved changes.",
+ .save => tr("Same folder, or enter an absolute path."),
+ .trash => if (self.modified or self.hasCropSelection()) tr("Unsaved edits will be discarded.") else tr("You can restore the file from Trash."),
+ .discard => tr("This image has unsaved changes."),
.none => "",
};
clippedText(cr, description, .{ .x = r.x + 20, .y = r.y + 42, .w = r.w - 40, .h = 25 }, shell_ui.textSize(), false);
@@ -1024,7 +1026,7 @@ pub const App = struct {
setSource(cr, t.fg);
clippedText(cr, std.fs.path.basename(self.paths[self.selected]), .{ .x = r.x + 20, .y = r.y + 76, .w = r.w - 40, .h = 30 }, shell_ui.textSize(), true);
}
- const note = if (self.operation != null) "Working…" else self.notice[0..self.notice_len];
+ const note = if (self.operation != null) tr("Working…") else self.notice[0..self.notice_len];
setSource(cr, t.danger);
clippedText(cr, note, .{ .x = r.x + 20, .y = r.y + 118, .w = r.w - 40, .h = 26 }, shell_ui.textSize(), false);
}
@@ -1043,9 +1045,9 @@ pub const App = struct {
c.cairo_paint(cr);
for (std.meta.tags(Action)) |act| {
const r = self.buttonRect(act);
- const label = if (act == .crop and self.crop_mode) "Apply crop" else labels[@intFromEnum(act)];
+ const label = if (act == .crop and self.crop_mode) tr("Apply crop") else labels[@intFromEnum(act)].get();
const opts: ui_button.Options = if (act == .crop and self.crop_mode)
- .{ .variant = .primary, .label = "Apply" }
+ .{ .variant = .primary, .label = tr("Apply") }
else if (self.w >= 1400)
.{ .variant = .ghost, .leading_icon = glyph(act), .label = label }
else if (act == .fit or act == .actual)
@@ -1058,7 +1060,7 @@ pub const App = struct {
});
layer.finish();
}
- const hint = if (self.operation) |op| (if (op.kind == .save) "Saving image…" else "Moving to Trash…") else if (self.hover) |act| (if (act == .crop and self.crop_mode) "Apply crop · Enter" else labels[@intFromEnum(act)]) else if (self.notice_len > 0) self.notice[0..self.notice_len] else if (self.crop_mode) "Drag to select · Enter: crop · Esc: cancel" else if (self.modified) "Unsaved edits · Ctrl+S: save · Ctrl+Z: undo" else "C: crop · Ctrl+S: save · Delete: trash";
+ const hint = if (self.operation) |op| (if (op.kind == .save) tr("Saving image…") else tr("Moving to Trash…")) else if (self.hover) |act| (if (act == .crop and self.crop_mode) tr("Apply crop · Enter") else labels[@intFromEnum(act)].get()) else if (self.notice_len > 0) self.notice[0..self.notice_len] else if (self.crop_mode) tr("Drag to select · Enter: crop · Esc: cancel") else if (self.modified) tr("Unsaved edits · Ctrl+S: save · Ctrl+Z: undo") else tr("C: crop · Ctrl+S: save · Delete: trash");
setSource(cr, t.window_fg);
clippedText(cr, hint, .{ .x = 16, .y = self.toolbarBottom() + 2, .w = @floatFromInt(self.w - 32), .h = 22 }, shell_ui.statusSize(), false);
const box = self.canvas();
@@ -1081,7 +1083,7 @@ pub const App = struct {
c.cairo_rotate(cr, @as(f64, @floatFromInt(self.view.rotation)) * std.math.pi / 2.0);
paintImage(cr, im, .{ .x = -@as(f64, @floatFromInt(im.w)) * z / 2, .y = -@as(f64, @floatFromInt(im.h)) * z / 2, .w = @as(f64, @floatFromInt(im.w)) * z, .h = @as(f64, @floatFromInt(im.h)) * z });
} else {
- const msg = self.error_message orelse "Loading image…";
+ const msg = self.error_message orelse tr("Loading image…");
setSource(cr, t.window_fg);
drawText(cr, msg, box.x + @max(12, (box.w - measureText(cr, msg, shell_ui.textSize(), false)) / 2), box.y + box.h / 2, shell_ui.textSize(), false);
}
@@ -1125,7 +1127,7 @@ pub const App = struct {
}
if (self.stripBar()) |bar| shell_ui.drawScrollbar(cr, scrollbar.look(bar, self.strip_appearance, ui_theme.global.scrollbar_width, ui_theme.shellPalette()));
var status: [160]u8 = undefined;
- const text = if (self.image) |im| std.fmt.bufPrint(&status, "{d} × {d} · {d:.0}% · {d} / {d}", .{ im.w, im.h, self.view.scale(box, @floatFromInt(im.w), @floatFromInt(im.h)) * self.density * 100, self.position() + 1, self.count() }) catch "" else "Space / Esc to close · Arrow keys to browse";
+ const text = if (self.image) |im| std.fmt.bufPrint(&status, "{d} × {d} · {d:.0}% · {d} / {d}", .{ im.w, im.h, self.view.scale(box, @floatFromInt(im.w), @floatFromInt(im.h)) * self.density * 100, self.position() + 1, self.count() }) catch "" else tr("Space / Esc to close · Arrow keys to browse");
setSource(cr, t.window_fg);
drawText(cr, text, (@as(f64, @floatFromInt(self.w)) - measureText(cr, text, shell_ui.statusSize(), false)) / 2, @floatFromInt(self.h - 3), shell_ui.statusSize(), false);
if (self.dialog != .none) self.drawDialog(cr);
diff --git a/src/images_main.zig b/src/images_main.zig
index 7fee359..617395f 100644
--- a/src/images_main.zig
+++ b/src/images_main.zig
@@ -4,6 +4,7 @@ const formats = @import("images/formats.zig");
const a = std.heap.c_allocator;
pub fn main(init: std.process.Init) void {
+ @import("i18n").init(init.minimal.environ);
run(init) catch |err| {
std.log.err("rediwm-images: {}", .{err});
std.process.exit(1);
diff --git a/src/input/axis.zig b/src/input/axis.zig
index 9c1c5a2..8f205c9 100644
--- a/src/input/axis.zig
+++ b/src/input/axis.zig
@@ -53,10 +53,13 @@ pub fn processAxis(
// Flip here, before zoom/UI/client branches, so `invert_scroll` behaves
// like `natural_scroll` would if libinput's device toggle applied to
// this device: a single, uniform reversal rather than one per consumer.
- if (input.window_menu.node != null) return;
const invert = input.server.config.input.invert_scroll;
const delta: f64 = if (invert) -raw_delta else raw_delta;
const delta_discrete: i32 = if (invert) -raw_delta_discrete else raw_delta_discrete;
+ if (input.window_menu.node != null) {
+ if (orientation == .vertical_scroll) input.window_menu.scroll(ui_scroll.axisDeltaPx(delta, delta_discrete));
+ return;
+ }
if (input.server.tray) |tray| {
if (tray.menu_item != 0) {
tray.menuScroll(delta);
diff --git a/src/input/buttons.zig b/src/input/buttons.zig
index e703d64..1159822 100644
--- a/src/input/buttons.zig
+++ b/src/input/buttons.zig
@@ -80,6 +80,11 @@ pub fn processButton(
if (state == .pressed) {
input.tray_buttons |= screenshot_bit;
input.window_menu.press(input.cursor.x, input.cursor.y, button);
+ } else if (input.active_buttons > 0) {
+ // A dock picker opens during the icon's left press, after that
+ // press was counted below. Its release still ends the button grab.
+ input.active_buttons -= 1;
+ input.pointer_constraints.sync();
}
return;
}
diff --git a/src/input/motion.zig b/src/input/motion.zig
index f6cc50d..228f9e9 100644
--- a/src/input/motion.zig
+++ b/src/input/motion.zig
@@ -8,6 +8,7 @@ const control_center = @import("../control_center/panel.zig");
const ui_input = @import("ui").input;
const Pointer = @import("../Pointer.zig");
const chrome = @import("../chrome.zig");
+const Output = @import("../Output.zig");
const geometry = @import("../geometry.zig");
const resize = @import("../resize.zig");
const snap = @import("../snap.zig");
@@ -489,13 +490,31 @@ pub fn processMove(input: *Input) void {
// space. Convert to world before computing the new frame position.
const wx = input.server.world.toWorld(input.cursor.x, input.cursor.y).x;
const wy = input.server.world.toWorld(input.cursor.x, input.cursor.y).y;
- const pos = geometry.Vec2.toI32(.{
+ var pos = geometry.Vec2.toI32(.{
.x = wx - input.grab_x,
.y = wy - input.grab_y,
});
+ // A bar reserved along the top edge stops the frame at its lower edge, so
+ // the titlebar can't be dragged out of reach behind it.
+ if (topBarLimit(input)) |limit| {
+ const layout = input.server.world.toLayout(@floatFromInt(pos.x), @floatFromInt(pos.y));
+ if (layout.y < limit) pos.y = @intFromFloat(@round(input.server.world.toWorld(layout.x, limit).y));
+ }
toplevel.setPosition(pos.x, pos.y);
}
+/// Layout y a dragged frame's top may not pass: the usable area's top on the
+/// output under the cursor, unless another output lies above it.
+fn topBarLimit(input: *Input) ?f64 {
+ const output = Output.atLayout(input.server, input.cursor.x, input.cursor.y) orelse return null;
+ var full: wlr.Box = undefined;
+ input.server.output_layout.getBox(output.wlr_output, &full);
+ const usable = output.usableBox();
+ if (usable.y <= full.y) return null;
+ if (Output.atLayout(input.server, input.cursor.x, @as(f64, @floatFromInt(full.y)) - 1) != null) return null;
+ return @floatFromInt(usable.y);
+}
+
pub fn processResize(input: *Input) void {
const session = &(input.resize_session orelse {
input.cursor_mode = .passthrough;
diff --git a/src/ipc/handlers_panels.zig b/src/ipc/handlers_panels.zig
index fa04605..684c899 100644
--- a/src/ipc/handlers_panels.zig
+++ b/src/ipc/handlers_panels.zig
@@ -70,8 +70,15 @@ pub fn resolveDock(output: *Output) ?PanelRoot {
return .{ .root = &output.dock.root, .box = output.dock.box };
}
+pub fn resolveWindowPicker(output: *Output) ?PanelRoot {
+ const menu = &output.server.input.window_menu;
+ if (menu.output != output or menu.node == null or menu.window_ids.len == 0) return null;
+ return .{ .root = &menu.picker_root, .box = menu.box };
+}
+
pub const panel_registry = [_]PanelRegistryEntry{
.{ .name = "dock", .resolve = resolveDock },
+ .{ .name = "window_picker", .resolve = resolveWindowPicker },
.{ .name = "start_menu", .resolve = resolveStartMenu },
.{ .name = "control_center", .resolve = resolveControlCenter },
.{ .name = "power_menu", .resolve = resolvePowerMenu },
diff --git a/src/ipc/handlers_widgets.zig b/src/ipc/handlers_widgets.zig
index 226465e..2cc46a9 100644
--- a/src/ipc/handlers_widgets.zig
+++ b/src/ipc/handlers_widgets.zig
@@ -13,6 +13,15 @@ const panel_registry = @import("handlers_panels.zig").panel_registry;
const findToplevelById = @import("handlers_data.zig").findToplevelById;
const findFocusedToplevel = @import("handlers_data.zig").findFocusedToplevel;
+fn widgetTextWidth(w: *const ui.layout.Widget, label: []const u8) f64 {
+ return switch (w.kind) {
+ .text => |style| if (style.sensitive) 0 else ui.measure.textNatural(label, style.family, style.weight, style.font_size).w,
+ .button => |data| if (data.icon != null) 0 else ui.measure.textNatural(label, .sans, 600, ui.widgets.button.metrics(ui.widgets.button.optionsOf(data).size, ui.theme.global).font_size).w,
+ .select, .segmented => ui.measure.textNatural(label, .sans, 600, ui.theme.global.font_size).w,
+ else => ui.measure.textNatural(label, .sans, 400, ui.theme.global.font_size).w,
+ };
+}
+
pub fn walkWidgetTree(
w: *ui.layout.Widget,
list: *std.ArrayList(protocol.WidgetNodeData),
@@ -180,6 +189,7 @@ pub fn walkWidgetTree(
.open = open,
.selected = selected,
.text_length = text_length,
+ .text_width = if (label) |value_text| widgetTextWidth(w, value_text) else null,
.scroll_offset = scroll_offset,
.content_size = content_size,
});
diff --git a/src/ipc/protocol_data.zig b/src/ipc/protocol_data.zig
index af10fa5..1214d8c 100644
--- a/src/ipc/protocol_data.zig
+++ b/src/ipc/protocol_data.zig
@@ -462,6 +462,8 @@ pub const WidgetNodeData = struct {
open: ?bool = null,
selected: ?bool = null,
text_length: ?usize = null,
+ /// Natural label advance in layout pixels (never editable/secret contents).
+ text_width: ?f64 = null,
scroll_offset: ?f64 = null,
content_size: ?f64 = null,
};
diff --git a/src/ipc_serializers.jsonl b/src/ipc_serializers.jsonl
index 463cd2c..2d7860b 100644
--- a/src/ipc_serializers.jsonl
+++ b/src/ipc_serializers.jsonl
@@ -56,8 +56,8 @@
{"Ok":{"SceneTree":{"total_nodes":7,"nodes":[{"id":7,"role":"text \"quoted\"\n\\","node_type":"text \"quoted\"\n\\","enabled":true,"x":7,"y":7,"children_count":7,"box":{"x":7,"y":7,"width":7,"height":7}}]}}}
{"Ok":{"LayerSurfaces":{"surfaces":[{"namespace":"text \"quoted\"\n\\","output":"text \"quoted\"\n\\","layer":"text \"quoted\"\n\\","exclusive_zone":0,"keyboard_interactive":false,"mapped":false,"box":{"x":0,"y":0,"width":0,"height":0}}]}}}
{"Ok":{"LayerSurfaces":{"surfaces":[{"namespace":"text \"quoted\"\n\\","output":"text \"quoted\"\n\\","layer":"text \"quoted\"\n\\","exclusive_zone":7,"keyboard_interactive":true,"mapped":true,"box":{"x":7,"y":7,"width":7,"height":7}}]}}}
-{"Ok":{"WidgetTree":{"panel":"text \"quoted\"\n\\","widgets":[{"id":0,"role":"text \"quoted\"\n\\","name":null,"path":null,"parent_index":null,"semantic_id":null,"label":null,"box":{"x":0,"y":0,"width":0,"height":0},"global_box":null,"is_focused":false,"is_disabled":false,"visible":false,"clipped":false,"checked":null,"on":null,"value":null,"min":null,"max":null,"step":null,"selected_index":null,"open":null,"selected":null,"text_length":null,"scroll_offset":null,"content_size":null}]}}}
-{"Ok":{"WidgetTree":{"panel":"text \"quoted\"\n\\","widgets":[{"id":7,"role":"text \"quoted\"\n\\","name":"text \"quoted\"\n\\","path":"text \"quoted\"\n\\","parent_index":7,"semantic_id":"text \"quoted\"\n\\","label":"text \"quoted\"\n\\","box":{"x":7,"y":7,"width":7,"height":7},"global_box":{"x":7,"y":7,"width":7,"height":7},"is_focused":true,"is_disabled":true,"visible":true,"clipped":true,"checked":true,"on":true,"value":1.23456,"min":1.23456,"max":1.23456,"step":1.23456,"selected_index":7,"open":true,"selected":true,"text_length":7,"scroll_offset":1.23456,"content_size":1.23456}]}}}
+{"Ok":{"WidgetTree":{"panel":"text \"quoted\"\n\\","widgets":[{"id":0,"role":"text \"quoted\"\n\\","name":null,"path":null,"parent_index":null,"semantic_id":null,"label":null,"box":{"x":0,"y":0,"width":0,"height":0},"global_box":null,"is_focused":false,"is_disabled":false,"visible":false,"clipped":false,"checked":null,"on":null,"value":null,"min":null,"max":null,"step":null,"selected_index":null,"open":null,"selected":null,"text_length":null,"text_width":null,"scroll_offset":null,"content_size":null}]}}}
+{"Ok":{"WidgetTree":{"panel":"text \"quoted\"\n\\","widgets":[{"id":7,"role":"text \"quoted\"\n\\","name":"text \"quoted\"\n\\","path":"text \"quoted\"\n\\","parent_index":7,"semantic_id":"text \"quoted\"\n\\","label":"text \"quoted\"\n\\","box":{"x":7,"y":7,"width":7,"height":7},"global_box":{"x":7,"y":7,"width":7,"height":7},"is_focused":true,"is_disabled":true,"visible":true,"clipped":true,"checked":true,"on":true,"value":1.23456,"min":1.23456,"max":1.23456,"step":1.23456,"selected_index":7,"open":true,"selected":true,"text_length":7,"text_width":1.23456,"scroll_offset":1.23456,"content_size":1.23456}]}}}
{"Ok":{"ConfigStatus":{"config_path":null,"generation":0,"theme_path":null,"keybinds_count":0,"last_reload_result":"text \"quoted\"\n\\","last_reload_error":null}}}
{"Ok":{"ConfigStatus":{"config_path":"text \"quoted\"\n\\","generation":7,"theme_path":"text \"quoted\"\n\\","keybinds_count":7,"last_reload_result":"text \"quoted\"\n\\","last_reload_error":"text \"quoted\"\n\\"}}}
{"Ok":{"RuntimeInfo":{"compositor":"text \"quoted\"\n\\","version":"text \"quoted\"\n\\","wlroots_version":"text \"quoted\"\n\\","backend":"text \"quoted\"\n\\","renderer":"text \"quoted\"\n\\","outputs_count":0,"audio_available":false,"session_id":"text \"quoted\"\n\\","xwayland_display":null,"xwayland_enabled":false,"xwayland_native_scaling":false,"xwayland_scale":0,"xwayland_scale_pending":null,"current_desktop":"text \"quoted\"\n\\","nested":false}}}
diff --git a/src/network/manager.zig b/src/network/manager.zig
index d7bb98f..cf8fe95 100644
--- a/src/network/manager.zig
+++ b/src/network/manager.zig
@@ -1,5 +1,6 @@
//! Asynchronous NetworkManager client. Snapshots are fetched on menu open and
//! service signals, never from a polling timer. No shell commands or argv secrets.
+const i18n = @import("i18n");
const std = @import("std");
const dbus = @import("dbus");
const wire = dbus.wire;
@@ -70,14 +71,14 @@ pub const Ethernet = struct {
return self.state >= 40 and self.state <= 100;
}
pub fn status(self: Ethernet) []const u8 {
- if (!self.managed) return "Unmanaged";
- if (!self.carrier) return "Cable unplugged";
+ if (!self.managed) return i18n.tr("Unmanaged");
+ if (!self.carrier) return i18n.tr("Cable unplugged");
return switch (self.state) {
- 40...90 => "Connecting…",
- 100 => "Connected",
- 110 => "Disconnecting…",
- 120 => "Connection failed",
- else => "Disconnected",
+ 40...90 => i18n.tr("Connecting…"),
+ 100 => i18n.tr("Connected"),
+ 110 => i18n.tr("Disconnecting…"),
+ 120 => i18n.tr("Connection failed"),
+ else => i18n.tr("Disconnected"),
};
}
};
@@ -123,7 +124,7 @@ pub const Manager = struct {
scanning: bool = false,
last_scan: i64 = -1,
scan_timer: ?*@import("wayland").server.wl.EventSource = null,
- message: []const u8 = "NetworkManager is unavailable",
+ message: []const u8 = "",
state: u32 = 0,
connectivity: u32 = 0,
ethernet: [16]Ethernet = @splat(.{}),
@@ -219,7 +220,7 @@ pub const Manager = struct {
if (self.wired_timer) |timer| timer.timerUpdate(0) catch {};
self.busy = false;
self.joining = null;
- self.message = "NetworkManager is unavailable";
+ self.message = i18n.tr("NetworkManager is unavailable");
self.refresh();
}
fn connect(self: *Manager) void {
@@ -324,13 +325,13 @@ pub const Manager = struct {
}
}
var msg = result catch {
- self.message = "Could not read Wi-Fi networks";
+ self.message = i18n.tr("Could not read Wi-Fi networks");
self.refresh();
return;
};
if (!self.fromOwner(msg) or msg.kind != .method_return or !eq(u8, msg.headers.signature, "a{oa{sa{sv}}}")) return;
self.parseObjects(&msg.body) catch {
- self.message = "Could not read Wi-Fi networks";
+ self.message = i18n.tr("Could not read Wi-Fi networks");
self.refresh();
return;
};
@@ -496,7 +497,7 @@ pub const Manager = struct {
if (dev.state == 120) {
self.busy = false;
self.joining = null;
- self.message = "Connection failed. Check the password and try again.";
+ self.message = i18n.tr("Connection failed. Check the password and try again.");
}
}
}
@@ -537,7 +538,7 @@ pub const Manager = struct {
if (self.joining == null) if (self.join_timer) |timer| timer.timerUpdate(0) catch {};
self.applySaved();
std.mem.sort(Network, self.networks[0..self.count], {}, less);
- if (eq(u8, self.message, "NetworkManager is unavailable")) self.message = "";
+ if (eq(u8, self.message, i18n.tr("NetworkManager is unavailable"))) self.message = "";
}
fn less(_: void, a: Network, b: Network) bool {
if (a.connected != b.connected) return a.connected;
@@ -656,14 +657,14 @@ pub const Manager = struct {
req.* = .{ .manager = self, .epoch = self.epoch, .path = path, .wired_generation = self.wired_generation };
_ = self.conn.?.callWithFlags(self.owner.slice(), if (on) root else path.slice(), if (on) nm else device_iface, if (!on) "Disconnect" else if (eth.has_profile) "ActivateConnection" else "AddAndActivateConnection", if (!on) "" else if (eth.has_profile) "ooo" else "a{sa{sv}}oo", &b, req, wiredDone, 15000, wire.flag_allow_interactive_authorization) catch {
gpa.destroy(req);
- self.wired_message = "Could not send the Ethernet request.";
+ self.wired_message = i18n.tr("Could not send the Ethernet request.");
self.refresh();
return;
};
self.wired_pending = path;
self.wired_want_connected = on;
self.wired_accepted = false;
- self.wired_message = if (on) "Connecting Ethernet…" else "Disconnecting Ethernet…";
+ self.wired_message = if (on) i18n.tr("Connecting Ethernet…") else i18n.tr("Disconnecting Ethernet…");
self.wired_timer.?.timerUpdate(45000) catch {};
self.refresh();
}
@@ -675,11 +676,11 @@ pub const Manager = struct {
const pending = self.wired_pending orelse return;
if (!eq(u8, pending.slice(), req.path.slice())) return;
const msg = result catch {
- self.finishWired("Ethernet request failed. Check permissions and try again.");
+ self.finishWired(i18n.tr("Ethernet request failed. Check permissions and try again."));
return;
};
if (!self.fromOwner(msg) or msg.kind != .method_return) {
- self.finishWired("Ethernet request failed. Check permissions and try again.");
+ self.finishWired(i18n.tr("Ethernet request failed. Check permissions and try again."));
return;
}
self.wired_accepted = true;
@@ -691,11 +692,11 @@ pub const Manager = struct {
if (!eq(u8, eth.path.slice(), pending.slice())) continue;
if (!self.wired_accepted) return;
if (self.wired_want_connected and (!eth.carrier or eth.state == 120 or !eth.managed)) {
- self.finishWired("Ethernet could not connect. Check the cable and connection settings.");
+ self.finishWired(i18n.tr("Ethernet could not connect. Check the cable and connection settings."));
} else if ((self.wired_want_connected and eth.connected()) or (!self.wired_want_connected and !eth.active() and eth.state != 110)) self.finishWired("");
return;
}
- self.finishWired("Ethernet adapter was removed.");
+ self.finishWired(i18n.tr("Ethernet adapter was removed."));
}
fn finishWired(self: *Manager, message: []const u8) void {
self.wired_pending = null;
@@ -704,7 +705,7 @@ pub const Manager = struct {
self.refresh();
}
fn wiredTimeout(self: *Manager) c_int {
- self.finishWired("Ethernet connection timed out. Check the cable and try again.");
+ self.finishWired(i18n.tr("Ethernet connection timed out. Check the cable and try again."));
return 0;
}
pub fn join(self: *Manager, net: Network, password: []const u8, autojoin: bool, hidden: bool) void {
@@ -735,7 +736,7 @@ pub const Manager = struct {
self.joining = net;
if (self.join_timer == null) self.join_timer = self.server.wl_server.getEventLoop().addTimer(*Manager, joinTimeout, self) catch null;
if (self.join_timer) |timer| timer.timerUpdate(45000) catch {};
- self.message = "Connecting…";
+ self.message = i18n.tr("Connecting…");
self.refresh();
}
}
@@ -800,19 +801,19 @@ pub const Manager = struct {
return;
};
self.action(root, nm, "ActivateConnection", "ooo", &b);
- if (self.busy) self.message = "Connecting…";
+ if (self.busy) self.message = i18n.tr("Connecting…");
}
fn action(self: *Manager, path: []const u8, iface: []const u8, method: []const u8, sig: []const u8, b: *wire.Writer) void {
const req = gpa.create(Request) catch return;
req.* = .{ .manager = self, .epoch = self.epoch, .path = .{} };
_ = self.conn.?.callWithFlags(self.owner.slice(), path, iface, method, sig, b, req, actionDone, 15000, wire.flag_allow_interactive_authorization) catch {
gpa.destroy(req);
- self.message = "Could not send the Wi-Fi request";
+ self.message = i18n.tr("Could not send the Wi-Fi request");
self.refresh();
return;
};
self.busy = true;
- self.message = "Updating Wi-Fi…";
+ self.message = i18n.tr("Updating Wi-Fi…");
self.refresh();
}
fn actionDone(owner: ?*anyopaque, _: *dbus.Connection, result: dbus.Connection.Failure!wire.Message) void {
@@ -844,7 +845,7 @@ pub const Manager = struct {
if (self.join_timer) |timer| timer.timerUpdate(0) catch {};
self.busy = false;
self.joining = null;
- self.message = "Wi-Fi request failed. Check credentials and permissions.";
+ self.message = i18n.tr("Wi-Fi request failed. Check credentials and permissions.");
self.refresh();
}
};
@@ -852,20 +853,20 @@ pub fn sameNetwork(a: Network, b: Network) bool {
return a.security == b.security and eq(u8, a.ssid.slice(), b.ssid.slice());
}
pub fn networkName(net: *const Network) []const u8 {
- return if (std.unicode.utf8ValidateSlice(net.ssid.slice())) net.ssid.slice() else "Wi-Fi network";
+ return if (std.unicode.utf8ValidateSlice(net.ssid.slice())) net.ssid.slice() else i18n.tr("Wi-Fi network");
}
pub fn networkSubtitle(net: Network) []const u8 {
- return if (net.connected) (if (net.saved.len != 0) "Connected · Saved" else "Connected") else if (net.saved.len != 0) "Saved" else if (net.security == .open) "Open" else if (net.security == .unsupported) "Additional setup required" else "Secured";
+ return if (net.connected) (if (net.saved.len != 0) i18n.tr("Connected · Saved") else i18n.tr("Connected")) else if (net.saved.len != 0) i18n.tr("Saved") else if (net.security == .open) i18n.tr("Open") else if (net.security == .unsupported) i18n.tr("Additional setup required") else i18n.tr("Secured");
}
pub fn joinError(net: Network, password: []const u8) ?[]const u8 {
- if (net.ssid.len == 0) return "Enter a network name.";
- if (net.security == .unsupported and net.saved.len == 0) return "This security type needs a network configuration tool.";
+ if (net.ssid.len == 0) return i18n.tr("Enter a network name.");
+ if (net.security == .unsupported and net.saved.len == 0) return i18n.tr("This security type needs a network configuration tool.");
if (net.connected or net.security == .open or (net.saved.len != 0 and password.len == 0)) return null;
const hex = password.len == 64 and for (password) |c| {
if (!std.ascii.isHex(c)) break false;
} else true;
- if (net.security == .personal and !hex and (password.len < 8 or password.len > 63)) return "Use 8–63 characters or a 64-digit hex key.";
- if (net.security == .sae and (password.len < 1 or password.len > 63)) return "Enter a password (1–63 bytes).";
+ if (net.security == .personal and !hex and (password.len < 8 or password.len > 63)) return i18n.tr("Use 8–63 characters or a 64-digit hex key.");
+ if (net.security == .sae and (password.len < 1 or password.len > 63)) return i18n.tr("Enter a password (1–63 bytes).");
return null;
}
fn addressList(b: *wire.Reader) !Text(256) {
@@ -948,7 +949,7 @@ fn writeSettings(b: *wire.Writer, net: Network, password: []const u8, autojoin:
const all = try b.beginArray(8);
const conn = try section(b, "connection");
// SSIDs are byte strings. Use a valid UTF-8 display name for connection.id.
- try str(b, "id", if (std.unicode.utf8ValidateSlice(net.ssid.slice())) net.ssid.slice() else "Wi-Fi network");
+ try str(b, "id", if (std.unicode.utf8ValidateSlice(net.ssid.slice())) net.ssid.slice() else i18n.tr("Wi-Fi network"));
try str(b, "type", "802-11-wireless");
try prop(b, "autoconnect", "b");
try b.boolean(autojoin);
diff --git a/src/network/popup.zig b/src/network/popup.zig
index 59b011f..230e456 100644
--- a/src/network/popup.zig
+++ b/src/network/popup.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const popup_style = @import("../popup_style.zig");
const glass = @import("../glass.zig");
@@ -364,7 +365,7 @@ pub const Popup = struct {
var net = self.selected orelse network.Network{ .security = self.security };
if (self.hidden) {
if (self.name.len == 0) {
- self.error_message = "Enter a network name.";
+ self.error_message = i18n.tr("Enter a network name.");
self.focus = .ssid;
return;
}
@@ -540,7 +541,7 @@ pub const Popup = struct {
self.syncExpansion(anim.nowMs());
self.content_height = if (enabled) @as(f32, @floatFromInt(count)) * row_height + 58 + self.opening.shown + self.closing.shown else 110;
if (enabled and count == 0) self.content_height += row_height;
- const status = if (self.error_message.len != 0) self.error_message else if (m) |n| n.message else "NetworkManager is unavailable";
+ const status = if (self.error_message.len != 0) self.error_message else if (m) |n| n.message else i18n.tr("NetworkManager is unavailable");
self.status_height = if (enabled and status.len != 0) 40 else 0;
self.height = @min(header + self.content_height + footer + self.status_height, @max(160, @as(f32, @floatFromInt(output_box.height - @import("../Taskbar.zig").barHeight() - 24)) / self.factor));
self.scroll = std.math.clamp(self.scroll, 0, @max(0, self.content_height - (self.height - header - footer - self.status_height)));
@@ -558,7 +559,7 @@ pub const Popup = struct {
popup_style.background(&r, buf, width, self.height, 12, tip, self.output.server.config.compositor.taskbar_position == .top);
const card_t = popup_style.cardPalette(t);
self.hit_count = 0;
- label(&r, 24, 14, 180, 42, "Wi-Fi", 23, t.window_fg, true);
+ label(&r, 24, 14, 180, 42, i18n.tr("Wi-Fi"), 23, t.window_fg, true);
// Same switch as Settings; the hit target is padded for the pointer.
const toggle_box: Rect = .{ .x = 396 - toggle.width, .y = 35 - toggle.height / 2, .w = toggle.width, .h = toggle.height };
_ = self.addHit(.{ .x = toggle_box.x - 8, .y = toggle_box.y - 8, .w = toggle_box.w + 16, .h = toggle_box.h + 16 }, .toggle, 0);
@@ -576,7 +577,7 @@ pub const Popup = struct {
var y = header - self.scroll;
if (enabled) {
if (count == 0) {
- label(&r, 28, y, width - 56, row_height, if (self.searching()) "Searching for networks…" else "No networks found. Try reopening to scan again.", 12, t.window_dim, false);
+ label(&r, 28, y, width - 56, row_height, if (self.searching()) i18n.tr("Searching for networks…") else i18n.tr("No networks found. Try reopening to scan again."), 12, t.window_dim, false);
y += row_height;
}
for (m.?.networks[0..count], 0..) |net, i| {
@@ -615,13 +616,13 @@ pub const Popup = struct {
y += 10;
const hidden_box: Rect = .{ .x = 22, .y = y, .w = width - 44, .h = 48 };
const hover = self.addHit(hidden_box, .hidden, 0);
- button.paint(&r, hidden_box, .{ .variant = .ghost, .label = "Join Hidden Network", .leading_icon = .plus, .trailing_icon = if (self.hidden) .chevron_up else .chevron_down }, .{ .focused = self.focus == .hidden, .pointer = if (hover) .hover else .idle });
+ button.paint(&r, hidden_box, .{ .variant = .ghost, .label = i18n.tr("Join Hidden Network"), .leading_icon = .plus, .trailing_icon = if (self.hidden) .chevron_up else .chevron_down }, .{ .focused = self.focus == .hidden, .pointer = if (hover) .hover else .idle });
y += 48;
const hidden_extra = self.shownHeight(null);
if (self.hidden) self.paintFormClipped(&r, y, hidden_extra);
y += hidden_extra;
} else {
- const value = if (m) |n| (if (!n.available) "NetworkManager is unavailable" else if (!n.hardware) "Wi-Fi is disabled by the hardware switch" else if (!n.enabled) "Wi-Fi is turned off" else "No Wi-Fi adapter found") else "NetworkManager is unavailable";
+ const value = if (m) |n| (if (!n.available) i18n.tr("NetworkManager is unavailable") else if (!n.hardware) i18n.tr("Wi-Fi is disabled by the hardware switch") else if (!n.enabled) i18n.tr("Wi-Fi is turned off") else i18n.tr("No Wi-Fi adapter found")) else i18n.tr("NetworkManager is unavailable");
r.drawIcon(190, y + 16, 32, 32, .{ .id = .wifi, .color = t.window_dim });
label(&r, 28, y + 55, width - 56, 32, value, 13, t.window_dim, false);
}
@@ -634,7 +635,7 @@ pub const Popup = struct {
r.fillRect(20, self.height - footer + 2, width - 40, 1, .{ .color = t.border });
const settings_box: Rect = .{ .x = 22, .y = self.height - footer + 7, .w = width - 44, .h = 40 };
const settings_hovered = self.addHit(settings_box, .settings, 0);
- button.paint(&r, settings_box, .{ .variant = .ghost, .leading_icon = .settings, .label = "Network Settings", .alignment = .left }, .{ .focused = self.focus == .settings, .pointer = if (settings_hovered) .hover else .idle });
+ button.paint(&r, settings_box, .{ .variant = .ghost, .leading_icon = .settings, .label = i18n.tr("Network Settings"), .alignment = .left }, .{ .focused = self.focus == .settings, .pointer = if (settings_hovered) .hover else .idle });
self.buffer_node.setBuffer(&buf.base);
self.buffer_node.setDestSize(w, h);
present.applySlide(self.buffer_node, self.panel_box, self.slide.value(anim.nowMs()), if (self.output.server.config.compositor.taskbar_position == .top) -20 else 20);
@@ -664,31 +665,31 @@ pub const Popup = struct {
var y = top + 4;
if (self.selected) |net| {
if (net.connected) {
- label(r, 78, y, 280, 32, "You're connected to this network", 12, t.window_dim, false);
+ label(r, 78, y, 280, 32, i18n.tr("You're connected to this network"), 12, t.window_dim, false);
return;
}
if (net.security == .unsupported and net.saved.len == 0) {
- label(r, 28, y, 364, 48, "Configure this network with a network tool", 12, t.window_dim, false);
+ label(r, 28, y, 364, 48, i18n.tr("Configure this network with a network tool"), 12, t.window_dim, false);
return;
}
}
if (self.hidden) {
- label(r, 28, y, 360, 20, "Network Name (SSID)", 12, t.window_dim, false);
+ label(r, 28, y, 360, 20, i18n.tr("Network Name (SSID)"), 12, t.window_dim, false);
y += 22;
self.paintInput(r, y, .ssid);
y += 48;
- label(r, 28, y, 360, 20, "Security", 12, t.window_dim, false);
+ label(r, 28, y, 360, 20, i18n.tr("Security"), 12, t.window_dim, false);
y += 22;
const box: Rect = .{ .x = 28, .y = y, .w = 364, .h = 34 };
const hover = self.addHit(box, .security, 0);
button.paint(r, box, .{ .label = switch (self.security) {
- .open => "Open",
- .sae => "WPA3 Personal",
- else => "WPA2 / WPA3 Personal",
+ .open => i18n.tr("Open"),
+ .sae => i18n.tr("WPA3 Personal"),
+ else => i18n.tr("WPA2 / WPA3 Personal"),
}, .trailing_icon = .chevron_down }, .{ .focused = self.focus == .security, .pointer = if (!self.canUse()) .disabled else if (hover) .hover else .idle });
y += 42;
if (self.security_open) {
- for ([_][]const u8{ "WPA2 / WPA3 Personal", "WPA3 Personal", "Open" }, 0..) |name, i| {
+ for ([_][]const u8{ i18n.tr("WPA2 / WPA3 Personal"), i18n.tr("WPA3 Personal"), i18n.tr("Open") }, 0..) |name, i| {
const choice: Rect = .{ .x = 28, .y = y, .w = 364, .h = 34 };
const hovered = self.addHit(choice, .security_option, i);
button.paint(r, choice, .{ .variant = .ghost, .label = name }, .{ .focused = self.focused(.security_option, i), .selected = @intFromEnum(self.security) == ([_]usize{ 1, 2, 0 })[i], .pointer = if (hovered) .hover else .idle });
@@ -697,7 +698,7 @@ pub const Popup = struct {
}
}
if (self.needsPassword()) {
- label(r, 28, y, 360, 20, "Password", 12, t.window_dim, false);
+ label(r, 28, y, 360, 20, i18n.tr("Password"), 12, t.window_dim, false);
y += 22;
self.paintInput(r, y, .password);
y += 50;
@@ -706,15 +707,15 @@ pub const Popup = struct {
if (!saved) {
const check_box: Rect = .{ .x = 28, .y = y, .w = 210, .h = 28 };
_ = self.addHit(check_box, .autojoin, 0);
- checkbox.paint(r, check_box, "Auto-join this network", .{ .checked = self.autojoin, .focused = self.focus == .autojoin, .disabled = !self.canUse() });
+ checkbox.paint(r, check_box, i18n.tr("Auto-join this network"), .{ .checked = self.autojoin, .focused = self.focus == .autojoin, .disabled = !self.canUse() });
y += 32;
}
const join_box: Rect = .{ .x = 202, .y = y, .w = 96, .h = 34 };
const hover_join = self.addHit(join_box, .join, 0);
- button.paint(r, join_box, .{ .variant = .primary, .label = "Join" }, .{ .focused = self.focus == .join, .pointer = if (!self.canUse()) .disabled else if (hover_join) .hover else .idle });
+ button.paint(r, join_box, .{ .variant = .primary, .label = i18n.tr("Join") }, .{ .focused = self.focus == .join, .pointer = if (!self.canUse()) .disabled else if (hover_join) .hover else .idle });
const cancel_box: Rect = .{ .x = 306, .y = y, .w = 86, .h = 34 };
const hover_cancel = self.addHit(cancel_box, .cancel, 0);
- button.paint(r, cancel_box, .{ .label = "Cancel" }, .{ .focused = self.focus == .cancel, .pointer = if (hover_cancel) .hover else .idle });
+ button.paint(r, cancel_box, .{ .label = i18n.tr("Cancel") }, .{ .focused = self.focus == .cancel, .pointer = if (hover_cancel) .hover else .idle });
}
fn paintInput(self: *Popup, r: *paint.Renderer, y: f32, focus: Focus) void {
const box: Rect = .{ .x = 28, .y = y, .w = 364, .h = 40 };
@@ -725,7 +726,7 @@ pub const Popup = struct {
if (secret) if (field.arrange(box, opts, r.palette.?).trailing) |eye| {
_ = self.addHit(eye, .reveal, 0);
};
- const layout = field.paintSecret(r, box, opts, .{ .focused = self.focus == focus, .disabled = !self.canUse(), .revealed = !secret or self.revealed, .trailing_focused = self.focus == .reveal, .external_caret = true }, if (secret) &self.password else &self.name, if (secret) (if (self.selected != null and self.selected.?.saved.len != 0) "Leave blank to use saved password" else "Enter password") else "Enter network name");
+ const layout = field.paintSecret(r, box, opts, .{ .focused = self.focus == focus, .disabled = !self.canUse(), .revealed = !secret or self.revealed, .trailing_focused = self.focus == .reveal, .external_caret = true }, if (secret) &self.password else &self.name, if (secret) (if (self.selected != null and self.selected.?.saved.len != 0) i18n.tr("Leave blank to use saved password") else i18n.tr("Enter password")) else i18n.tr("Enter network name"));
const visible = r.clip.?;
if (layout.caret) |place| if (place.y >= visible.y and place.y + place.h <= visible.y + visible.h) {
self.caret_reported = true;
diff --git a/src/notifications/toast.zig b/src/notifications/toast.zig
index 3b6667f..1f92b9d 100644
--- a/src/notifications/toast.zig
+++ b/src/notifications/toast.zig
@@ -1,5 +1,6 @@
//! A single interactive notification toast card.
//! Rendered using the ui/ widget engine into a PanelBuffer scene node.
+const i18n = @import("i18n");
const std = @import("std");
const wlr = @import("wlroots");
const sn = @import("../node.zig");
@@ -56,7 +57,7 @@ pub const Toast = struct {
target_x: f32 = 0,
target_y: f32 = 0,
width: f32 = 480,
- age_buffer: [32]u8 = undefined,
+ age_buffer: [96]u8 = undefined,
age_minute: i64 = -1,
age_widget: ?*Widget = null,
height: f32 = 0,
@@ -220,7 +221,7 @@ pub const Toast = struct {
const header = try a.alloc(Widget, 3);
header[0] = .{
.kind = .{ .text = .{
- .content = if (toast.summary.len > 0) toast.summary else if (toast.app_name.len > 0) toast.app_name else "Notification",
+ .content = if (toast.summary.len > 0) toast.summary else if (toast.app_name.len > 0) toast.app_name else i18n.tr("Notification"),
.font_size = 15,
.weight = 600,
.color = t.notification_fg orelse t.window_fg,
@@ -228,7 +229,7 @@ pub const Toast = struct {
.width = .{ .flex = 1 },
};
header[1] = .{
- .kind = .{ .text = .{ .content = "now", .font_size = 11, .color = t.notification_dim orelse t.window_dim } },
+ .kind = .{ .text = .{ .content = i18n.tr("now"), .font_size = 11, .color = t.notification_dim orelse t.window_dim } },
.width = .{ .fixed = 52 },
};
toast.age_widget = &header[1];
@@ -325,10 +326,9 @@ pub const Toast = struct {
const minute = @max(0, @divTrunc(now_ms - toast.created_at_ms, 60000));
if (minute == toast.age_minute) return;
const widget = toast.age_widget orelse return;
- widget.kind.text.content = if (minute == 0) "now" else std.fmt.bufPrint(&toast.age_buffer, "{d}{s} ago", .{
- if (minute < 60) minute else @divTrunc(minute, 60),
- if (minute < 60) "m" else "h",
- }) catch "earlier";
+ widget.kind.text.content = if (minute == 0) i18n.tr("now") else i18n.fmt(&toast.age_buffer, if (minute < 60) i18n.tr("{count}m ago") else i18n.tr("{count}h ago"), .{
+ .count = if (minute < 60) minute else @divTrunc(minute, 60),
+ }) catch i18n.tr("earlier");
toast.age_minute = minute;
widget.markPaintDirty();
toast.dirty = true;
diff --git a/src/osd_paint.zig b/src/osd_paint.zig
index 681c18b..ea30ccd 100644
--- a/src/osd_paint.zig
+++ b/src/osd_paint.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const ui = @import("ui");
const Profile = @import("power_profiles.zig").Profile;
@@ -73,7 +74,7 @@ pub fn paint(r: *ui.paint.Renderer, state: State) void {
r.drawText(248, 14, w - 260, 32, .{ .content = label, .font_size = 18, .color = white });
} else {
if (state.active) r.fillRect(47, 27, 6, 6, .{ .color = if (state.kind == .microphone) red else white, .radius = 3 });
- r.drawText(if (state.kind == .microphone) 17 else 30, 34, 52, 20, .{ .content = if (state.kind == .microphone) (if (state.active) "Muted" else "Mic on") else (if (state.active) "On" else "Off"), .font_size = 12, .color = white });
+ r.drawText(if (state.kind == .microphone) 17 else 30, 34, 52, 20, .{ .content = if (state.kind == .microphone) (if (state.active) i18n.tr("Muted") else i18n.tr("Mic on")) else (if (state.active) i18n.tr("On") else i18n.tr("Off")), .font_size = 12, .color = white });
}
}
diff --git a/src/pdf/app.zig b/src/pdf/app.zig
index 51e95bf..47dc165 100644
--- a/src/pdf/app.zig
+++ b/src/pdf/app.zig
@@ -2,6 +2,8 @@
//! Integrates background worker thread, LRU page/tile/thumb caches,
//! continuous layout virtualization, search, selection, and outline.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const c = @import("c.zig");
const document = @import("document.zig");
const layout = @import("layout.zig");
@@ -298,11 +300,11 @@ pub const App = struct {
if (self.path) |p| {
const raw = std.fs.path.basename(p);
const base = if (std.unicode.utf8ValidateSlice(raw)) raw else "Document.pdf";
- _ = std.fmt.bufPrintZ(&self.title, "{s} — PDF Viewer ({d}/{d})", .{ base, self.current_page + 1, self.n_pages }) catch {
- _ = std.fmt.bufPrintZ(&self.title, "PDF Viewer", .{}) catch unreachable;
+ _ = i18n.fmtZ(&self.title, tr("{name} — PDF Viewer ({page}/{pages})"), .{ .name = base, .page = self.current_page + 1, .pages = self.n_pages }) catch {
+ _ = i18n.fmtZ(&self.title, tr("PDF Viewer"), .{}) catch unreachable;
};
} else {
- _ = std.fmt.bufPrintZ(&self.title, "PDF Viewer", .{}) catch unreachable;
+ _ = i18n.fmtZ(&self.title, tr("PDF Viewer"), .{}) catch unreachable;
}
self.title_changed = true;
}
diff --git a/src/pdf/app_document.zig b/src/pdf/app_document.zig
index f3c2cab..f763104 100644
--- a/src/pdf/app_document.zig
+++ b/src/pdf/app_document.zig
@@ -1,6 +1,8 @@
//! PDF viewer document state: opening, passwords, worker sync and render jobs.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const document = @import("document.zig");
const layout = @import("layout.zig");
@@ -70,7 +72,7 @@ pub fn submitPassword(self: *App) void {
self.loading = false;
self.dialog = .password;
self.focus = .password;
- self.error_message = "Could not prepare password. Please try again.";
+ self.error_message = tr("Could not prepare password. Please try again.");
};
self.password_input.clear();
self.dirty = true;
@@ -95,7 +97,7 @@ pub fn sync(self: *App) void {
self.page_sizes.clearRetainingCapacity();
self.page_sizes.ensureTotalCapacity(a, self.n_pages) catch {
self.n_pages = 0;
- self.error_message = "Not enough memory to open this document.";
+ self.error_message = tr("Not enough memory to open this document.");
self.dirty = true;
continue;
};
@@ -123,13 +125,13 @@ pub fn sync(self: *App) void {
self.dialog = .password;
self.focus = .password;
self.password_input.clear();
- self.error_message = "Document is encrypted. Enter password:";
+ self.error_message = tr("Document is encrypted. Enter password:");
} else if (of.err == error.FileNotFound) {
- self.error_message = "File not found.";
+ self.error_message = tr("File not found.");
} else if (of.err == error.InvalidPdf) {
- self.error_message = "Invalid or corrupt PDF document.";
+ self.error_message = tr("Invalid or corrupt PDF document.");
} else {
- self.error_message = "Could not open document.";
+ self.error_message = tr("Could not open document.");
}
self.dirty = true;
},
@@ -173,25 +175,25 @@ pub fn sync(self: *App) void {
self.dirty = true;
},
- .thumb_rendered => |*tr| {
+ .thumb_rendered => |*thumb| {
const key = cache.ThumbKey{
.generation = self.generation,
- .page_index = tr.page_index,
- .rotation = tr.rotation,
- .card_w = tr.card_w,
- .card_h = tr.card_h,
+ .page_index = thumb.page_index,
+ .rotation = thumb.rotation,
+ .card_w = thumb.card_w,
+ .card_h = thumb.card_h,
};
self.thumb_cache.put(.{
.key = key,
- .pixels = tr.rendered.pixels,
- .width = tr.rendered.width,
- .height = tr.rendered.height,
- .stride = tr.rendered.stride,
- .bytes = @intCast(tr.rendered.stride * tr.rendered.height),
+ .pixels = thumb.rendered.pixels,
+ .width = thumb.rendered.width,
+ .height = thumb.rendered.height,
+ .stride = thumb.rendered.stride,
+ .bytes = @intCast(thumb.rendered.stride * thumb.rendered.height),
.last_used = 0,
- .allocator = tr.rendered.allocator,
+ .allocator = thumb.rendered.allocator,
}) catch {};
- tr.rendered.pixels = &[_]u32{};
+ thumb.rendered.pixels = &[_]u32{};
self.dirty = true;
},
diff --git a/src/pdf/app_keyboard.zig b/src/pdf/app_keyboard.zig
index 3ae43e8..66e8e45 100644
--- a/src/pdf/app_keyboard.zig
+++ b/src/pdf/app_keyboard.zig
@@ -1,6 +1,8 @@
//! PDF viewer keyboard input and actions.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig");
const a = @import("app.zig").a;
@@ -31,7 +33,7 @@ pub fn triggerAction(self: *App, act: Action) void {
.open_dialog => {
self.dialog = .information;
self.focus = .none;
- self.error_message = "Open another PDF from Files in a new window.";
+ self.error_message = tr("Open another PDF from Files in a new window.");
},
.find_toggle => {
self.search_open = !self.search_open;
diff --git a/src/pdf/app_paint.zig b/src/pdf/app_paint.zig
index 0a5a69b..ae6b0c4 100644
--- a/src/pdf/app_paint.zig
+++ b/src/pdf/app_paint.zig
@@ -1,6 +1,8 @@
//! PDF viewer painting: canvas, sidebar, toolbar, search bar and dialogs.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const c = @import("c.zig");
const document = @import("document.zig");
@@ -57,14 +59,14 @@ pub fn renderCanvas(self: *App, cr: *c.api.cairo_t) void {
if (self.loading) {
shell_ui.setSource(cr, ui_theme.global.window_fg);
- const msg = "Opening document...";
+ const msg = tr("Opening document...");
shell_ui.drawText(cr, msg, cv.x + @max(20.0, (cv.w - shell_ui.measureText(cr, msg, shell_ui.textSize(), false)) / 2.0), cv.y + cv.h / 2.0, shell_ui.textSize(), false);
return;
}
if (self.doc_layout == null or self.n_pages == 0) {
shell_ui.setSource(cr, ui_theme.global.window_fg);
- const msg = if (self.error_message) |m| m else "No document open. Click 'Open' or press Ctrl+O.";
+ const msg = if (self.error_message) |m| m else tr("No document open. Click 'Open' or press Ctrl+O.");
shell_ui.drawText(cr, msg, cv.x + @max(20.0, (cv.w - shell_ui.measureText(cr, msg, shell_ui.textSize(), false)) / 2.0), cv.y + cv.h / 2.0, shell_ui.textSize(), false);
return;
}
@@ -137,7 +139,7 @@ pub fn renderCanvas(self: *App, cr: *c.api.cairo_t) void {
// Placeholder while page is rendering
shell_ui.setSource(cr, ui_theme.global.pdf_loading);
var buf: [32]u8 = undefined;
- const loading_msg = std.fmt.bufPrint(&buf, "Rendering page {d}...", .{i + 1}) catch "";
+ const loading_msg = i18n.fmt(&buf, tr("Rendering page {value}..."), .{ .value = i + 1 }) catch "";
shell_ui.drawText(cr, loading_msg, page_x + @max(20.0, (p.logical_width - shell_ui.measureText(cr, loading_msg, shell_ui.textSize(), false)) / 2.0), page_y + p.logical_height / 2.0, shell_ui.textSize(), false);
}
}
@@ -242,8 +244,8 @@ pub fn renderSidebar(self: *App, cr: *c.api.cairo_t) void {
// The selected tab is told apart by its fill, not by a dimmer label.
shell_ui.setSource(cr, ui_theme.global.sidebarForeground());
- shell_ui.drawText(cr, "Pages", sb.x + (tab_w - shell_ui.measureText(cr, "Pages", shell_ui.textSize(), true)) / 2.0, sb.y + 20.0, shell_ui.textSize(), true);
- shell_ui.drawText(cr, "Outline", sb.x + tab_w + (tab_w - shell_ui.measureText(cr, "Outline", shell_ui.textSize(), true)) / 2.0, sb.y + 20.0, shell_ui.textSize(), true);
+ shell_ui.drawText(cr, tr("Pages"), sb.x + (tab_w - shell_ui.measureText(cr, tr("Pages"), shell_ui.textSize(), true)) / 2.0, sb.y + 20.0, shell_ui.textSize(), true);
+ shell_ui.drawText(cr, tr("Outline"), sb.x + tab_w + (tab_w - shell_ui.measureText(cr, tr("Outline"), shell_ui.textSize(), true)) / 2.0, sb.y + 20.0, shell_ui.textSize(), true);
// Divider under tabs
shell_ui.setSource(cr, ui_theme.global.app_divider);
@@ -345,7 +347,7 @@ pub fn renderOutlineList(self: *App, cr: *c.api.cairo_t) void {
const sb = self.sidebarRect();
const items = self.outline orelse {
shell_ui.setSource(cr, ui_theme.global.sidebarForeground());
- shell_ui.drawText(cr, "No outline in document", sb.x + 16.0, sb.y + 60.0, shell_ui.textSize(), false);
+ shell_ui.drawText(cr, tr("No outline in document"), sb.x + 16.0, sb.y + 60.0, shell_ui.textSize(), false);
return;
};
@@ -391,16 +393,16 @@ pub fn renderToolbar(self: *App, cr: *c.api.cairo_t) void {
const w = item.w;
const h = toolbar_button_h;
switch (item.act) {
- .toggle_sidebar => self.renderButtonIcon(cr, x, y, w, h, .view_grid, "Toggle sidebar"),
+ .toggle_sidebar => self.renderButtonIcon(cr, x, y, w, h, .view_grid, tr("Toggle sidebar")),
.prev_page => self.renderButtonText(cr, x, y, w, h, "◀"),
.next_page => self.renderButtonText(cr, x, y, w, h, "▶"),
.zoom_out => self.renderButtonText(cr, x, y, w, h, "−"),
.zoom_in => self.renderButtonText(cr, x, y, w, h, "+"),
- .fit_width => self.renderToggle(cr, x, y, w, h, "Fit width", self.zoom_mode == .fit_width),
- .fit_page => self.renderToggle(cr, x, y, w, h, "Fit page", self.zoom_mode == .fit_page),
- .rotate => self.renderButtonIcon(cr, x, y, w, h, .rotate, "Rotate"),
- .find_toggle => self.renderButtonText(cr, x, y, w, h, if (self.search_open) "Find ▲" else "Find"),
- .print => self.renderButtonIcon(cr, x, y, w, h, .print, "Print"),
+ .fit_width => self.renderToggle(cr, x, y, w, h, tr("Fit width"), self.zoom_mode == .fit_width),
+ .fit_page => self.renderToggle(cr, x, y, w, h, tr("Fit page"), self.zoom_mode == .fit_page),
+ .rotate => self.renderButtonIcon(cr, x, y, w, h, .rotate, tr("Rotate")),
+ .find_toggle => self.renderButtonText(cr, x, y, w, h, if (self.search_open) tr("Find ▲") else tr("Find")),
+ .print => self.renderButtonIcon(cr, x, y, w, h, .print, tr("Print")),
else => {},
}
}
@@ -459,7 +461,7 @@ pub fn renderSearchBar(self: *App, cr: *c.api.cairo_t) void {
// Half-strength white, not the shell's blue-grey `faint`.
const fg = ui_theme.global.window_fg;
shell_ui.setSource(cr, if (qtxt.len > 0) fg else .{ fg[0], fg[1], fg[2], fg[3] * 0.5 });
- const display_txt = if (qtxt.len > 0) qtxt else "Find in document...";
+ const display_txt = if (qtxt.len > 0) qtxt else tr("Find in document...");
c.api.cairo_save(cr);
c.api.cairo_rectangle(cr, sr.x + 10.0, sr.y, sr.w - 110.0, sr.h);
c.api.cairo_clip(cr);
@@ -504,8 +506,8 @@ pub fn renderDialog(self: *App, cr: *c.api.cairo_t) void {
// Title
const title = switch (self.dialog) {
- .information => "PDF Viewer",
- .password => "Password Required",
+ .information => tr("PDF Viewer"),
+ .password => tr("Password Required"),
.none => "",
};
shell_ui.setSource(cr, ui_theme.global.window_fg);
@@ -518,8 +520,8 @@ pub fn renderDialog(self: *App, cr: *c.api.cairo_t) void {
} else {
shell_ui.setSource(cr, ui_theme.global.window_fg);
const prompt = switch (self.dialog) {
- .information => "Open another PDF from Files in a new window.",
- .password => "Document is encrypted. Enter password:",
+ .information => tr("Open another PDF from Files in a new window."),
+ .password => tr("Document is encrypted. Enter password:"),
.none => "",
};
shell_ui.drawText(cr, prompt, dx + 24.0, dy + 58.0, shell_ui.textSize(), false);
@@ -528,13 +530,13 @@ pub fn renderDialog(self: *App, cr: *c.api.cairo_t) void {
if (self.dialog == .password) {
if (shell_ui.Layer.begin(cr, .{ .x = @floatCast(dx + 24), .y = @floatCast(dy + 80), .w = @floatCast(dw - 48), .h = 44 })) |value| {
var field = value;
- _ = ui_field.paintSecret(&field.renderer, field.local(), .{}, .{ .focused = true, .external_caret = true }, &self.password_input, "Password");
+ _ = ui_field.paintSecret(&field.renderer, field.local(), .{}, .{ .focused = true, .external_caret = true }, &self.password_input, tr("Password"));
field.finish();
}
}
- self.renderButtonText(cr, dx + dw - 180, dy + dh - 46, 80, 32, "Cancel");
- const btn_label = if (self.dialog == .password) "Unlock" else "OK";
+ self.renderButtonText(cr, dx + dw - 180, dy + dh - 46, 80, 32, tr("Cancel"));
+ const btn_label = if (self.dialog == .password) tr("Unlock") else tr("OK");
self.renderButtonText(cr, dx + dw - 90, dy + dh - 46, 70, 32, btn_label);
}
diff --git a/src/pdf/app_pointer.zig b/src/pdf/app_pointer.zig
index 466ccce..1baca25 100644
--- a/src/pdf/app_pointer.zig
+++ b/src/pdf/app_pointer.zig
@@ -1,6 +1,8 @@
//! PDF viewer pointer input: motion, clicks, selection and toolbar.
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const App = @import("app.zig").App;
const layout = @import("layout.zig");
const selection = @import("selection.zig");
@@ -174,7 +176,7 @@ pub fn handleButton(self: *App, button: u32, pressed: bool) void {
self.clipboard_text = copy;
self.clipboard_request = true;
self.dialog = .information;
- self.error_message = "Link copied. Paste it into your browser.";
+ self.error_message = tr("Link copied. Paste it into your browser.");
self.dirty = true;
},
}
diff --git a/src/pdf/main.zig b/src/pdf/main.zig
index 8975264..b176277 100644
--- a/src/pdf/main.zig
+++ b/src/pdf/main.zig
@@ -613,7 +613,7 @@ pub const Client = struct {
if (c.api.write(self.print_fd, &request, 1) == 1) return;
self.closePrint();
}
- self.app.showMessage("Printing is not available.");
+ self.app.showMessage(@import("i18n").tr("Printing is not available."));
}
fn readPrintReplies(self: *Client) void {
@@ -624,8 +624,8 @@ pub const Client = struct {
return self.closePrint();
}
for (buf[0..@intCast(n)]) |reply| switch (reply) {
- 'u' => self.app.showMessage("No print service answered (xdg-desktop-portal)."),
- 'f' => self.app.showMessage("The document could not be printed."),
+ 'u' => self.app.showMessage(@import("i18n").tr("No print service answered (xdg-desktop-portal).")),
+ 'f' => self.app.showMessage(@import("i18n").tr("The document could not be printed.")),
else => {},
};
}
diff --git a/src/pdf_main.zig b/src/pdf_main.zig
index 9cc33c9..e3e2af6 100644
--- a/src/pdf_main.zig
+++ b/src/pdf_main.zig
@@ -3,6 +3,7 @@ const pdf_main = @import("pdf/main.zig");
// Minimal startup avoids copying environment secrets into an extra heap map.
pub fn main(init: std.process.Init.Minimal) void {
+ @import("i18n").init(init.environ);
pdf_main.run(init) catch |err| {
std.log.err("rediwm-pdf: {}", .{err});
std.process.exit(1);
diff --git a/src/polkit/agent.zig b/src/polkit/agent.zig
index 91fb248..56be034 100644
--- a/src/polkit/agent.zig
+++ b/src/polkit/agent.zig
@@ -40,6 +40,9 @@ pub const Agent = struct {
conversation: ?Conversation = null,
session_id: ?[]u8 = null,
locale: []const u8,
+ owned_locale: ?[]u8 = null,
+ locale_revision: usize = 0,
+ registration_locale_revision: usize = 0,
authority: ?[]u8 = null,
owner_revision: usize = 0,
query_revision: usize = 0,
@@ -80,7 +83,7 @@ pub const Agent = struct {
.allocator = allocator,
.conn = conn,
.loop = loop,
- .locale = nonempty(environ.getPosix("LC_ALL")) orelse nonempty(environ.getPosix("LC_MESSAGES")) orelse nonempty(environ.getPosix("LANG")) orelse "C",
+ .locale = @import("i18n").resolve("", environ),
.observer_owner = observer_owner,
.observer = observer,
};
@@ -113,6 +116,7 @@ pub const Agent = struct {
}
self.conn.destroy();
self.queue.deinit(self.allocator);
+ if (self.owned_locale) |value| self.allocator.free(value);
if (self.owned_helper_socket) |path| self.allocator.free(path);
if (self.session_id) |id| self.allocator.free(id);
if (self.authority) |owner| self.allocator.free(owner);
@@ -131,13 +135,31 @@ pub const Agent = struct {
if (enabled) try self.maybeRegister();
self.schedule();
}
+ pub fn setLocale(self: *Agent, value: []const u8) !void {
+ if (std.mem.eql(u8, self.locale, value)) return;
+ const owned = try self.allocator.dupe(u8, value);
+ if (self.owned_locale) |old| self.allocator.free(old);
+ self.owned_locale = owned;
+ self.locale = owned;
+ self.locale_revision += 1;
+ if (self.active != null or self.queue.items.len != 0) return;
+ if (self.registered) {
+ try self.unregister();
+ self.registered = false;
+ }
+ // An in-flight registration completes before we unregister and retry.
+ try self.maybeRegister();
+ }
+
fn settlePolicy(self: *Agent) void {
- if (self.enabled or !self.registered or self.active != null or self.queue.items.len != 0 or self.conn.closed) return;
+ if (!self.registered or self.active != null or self.queue.items.len != 0 or self.conn.closed) return;
+ if (self.enabled and self.registration_locale_revision == self.locale_revision) return;
self.unregister() catch |err| {
self.unavailable(err);
return;
};
self.registered = false;
+ if (self.enabled) self.maybeRegister() catch |err| self.unavailable(err);
}
fn unregister(self: *Agent) !void {
@@ -270,6 +292,7 @@ pub const Agent = struct {
_ = try self.conn.call(self.authority.?, authority_path, authority_interface, "RegisterAuthenticationAgent", "(sa{sv})ss", &body, self, registrationReply, 5000);
self.registration_pending = true;
self.registration_revision = self.owner_revision;
+ self.registration_locale_revision = self.locale_revision;
}
fn registrationReply(owner: ?*anyopaque, _: *C, result: C.Failure!wire.Message) void {
const self = from(owner);
@@ -287,6 +310,12 @@ pub const Agent = struct {
return self.unavailable(error.InvalidReply);
}
self.registered = true;
+ if (self.registration_locale_revision != self.locale_revision) {
+ self.unregister() catch |err| return self.unavailable(err);
+ self.registered = false;
+ self.maybeRegister() catch |err| self.unavailable(err);
+ return;
+ }
self.settlePolicy();
if (self.registered) {
log.info("authentication agent registered", .{});
@@ -461,7 +490,7 @@ pub const Agent = struct {
if (self.active.?.attempt < max_attempts) {
self.active.?.attempt += 1;
self.restart = true;
- self.emit(.{ .error_message = "Authentication failed. Please try again." });
+ self.emit(.{ .error_message = @import("i18n").tr("Authentication failed. Please try again.") });
self.schedule();
return;
}
diff --git a/src/polkit/dialog.zig b/src/polkit/dialog.zig
index f361e3f..080bc7a 100644
--- a/src/polkit/dialog.zig
+++ b/src/polkit/dialog.zig
@@ -1,5 +1,6 @@
//! Compositor-owned authentication surface. Sensitive input never enters the
//! generic widget tree, clipboard, text cache or IPC inspection payloads.
+const i18n = @import("i18n");
const std = @import("std");
const wlr = @import("wlroots");
const sn = @import("../node.zig");
@@ -103,10 +104,10 @@ pub const Dialog = struct {
self.* = .{ .server = server, .output = output, .scrim = scrim, .node = node, .caret = caret, .memory = memory, .input = .{ .storage = @as([*]u8, @ptrCast(memory))[0..510] }, .action = owned_action, .message = owned_message, .account = agent.active.?.account };
self.attempt = agent.active.?.attempt;
if (self.attempt > 1) {
- set(&self.status, "Authentication failed. Please try again.");
+ set(&self.status, i18n.tr("Authentication failed. Please try again."));
self.message_pending = true;
self.status_error = true;
- } else set(&self.status, "Waiting for authentication service…");
+ } else set(&self.status, i18n.tr("Waiting for authentication service…"));
return self;
}
pub fn destroy(self: *Dialog) void {
@@ -146,7 +147,7 @@ pub const Dialog = struct {
self.waiting = true;
self.ended = true;
self.focus = .cancel;
- set(&self.status, if (e == .failure) "Authentication failed." else "Authentication service unavailable.");
+ set(&self.status, if (e == .failure) i18n.tr("Authentication failed.") else i18n.tr("Authentication service unavailable."));
},
.prompt_hidden, .prompt_visible => |prompt| {
self.input.clear();
@@ -155,7 +156,7 @@ pub const Dialog = struct {
self.focus = .input;
set(&self.prompt, prompt);
if (!self.message_pending) {
- set(&self.status, "Administrator privileges are required to continue.");
+ set(&self.status, i18n.tr("Administrator privileges are required to continue."));
self.status_error = false;
}
self.message_pending = false;
@@ -187,13 +188,13 @@ pub const Dialog = struct {
const agent = self.server.polkit orelse return;
agent.respond(self.input.value()) catch {
self.input.clear();
- set(&self.status, "Could not send response. Please try again.");
+ set(&self.status, i18n.tr("Could not send response. Please try again."));
self.paint();
return;
};
self.input.clear();
self.waiting = true;
- set(&self.status, "Authenticating…");
+ set(&self.status, i18n.tr("Authenticating…"));
self.paint();
}
/// Only the response field repeats; a held Return must not answer twice.
@@ -275,8 +276,8 @@ pub const Dialog = struct {
dialog.paintFrameWithBackground(&r, .{ .x = 0, .y = 0, .w = 560, .h = 480 }, background);
dialog.paintHeader(&r, 28, 28, 504, .{
.icon = .lock,
- .title = if (self.hidden) "Enter Password" else "Authentication",
- .subtitle = "Authentication required",
+ .title = if (self.hidden) i18n.tr("Enter Password") else i18n.tr("Authentication"),
+ .subtitle = i18n.tr("Authentication required"),
});
label(&r, self.message, 28, 100, 504, 28, 15, t.fg);
if (self.focus == .action) r.fillRect(26, 129, 508, 24, .{ .color = .{ t.accent[0], t.accent[1], t.accent[2], 0.16 }, .radius = 4 });
@@ -292,17 +293,17 @@ pub const Dialog = struct {
.disabled = self.waiting,
.revealed = !self.hidden,
.external_caret = true,
- }, &self.input, if (self.waiting) "Waiting…" else "Enter your response");
+ }, &self.input, if (self.waiting) i18n.tr("Waiting…") else i18n.tr("Enter your response"));
label(&r, std.mem.sliceTo(&self.status, 0), 28, 350, 504, 28, 13, if (self.ended or self.status_error) t.danger else t.dim);
var attempt_text: [32]u8 = undefined;
- const attempt = std.fmt.bufPrint(&attempt_text, "Attempt {d} of 3", .{self.attempt}) catch unreachable;
+ const attempt = i18n.fmt(&attempt_text, i18n.tr("Attempt {attempt} of 3"), .{ .attempt = self.attempt }) catch "";
label(&r, attempt, 28, 379, 504, 20, 11, t.dim);
const buttons = ui.widgets.button;
- buttons.paint(&r, cancel_box, .{ .size = .lg, .label = if (self.ended) "Close" else "Cancel" }, .{
+ buttons.paint(&r, cancel_box, .{ .size = .lg, .label = if (self.ended) i18n.tr("Close") else i18n.tr("Cancel") }, .{
.pointer = if (self.pressed == .cancel) .press else .idle,
.focused = self.focus == .cancel,
});
- buttons.paint(&r, unlock_box, .{ .variant = .primary, .size = .lg, .label = "Authenticate" }, .{
+ buttons.paint(&r, unlock_box, .{ .variant = .primary, .size = .lg, .label = i18n.tr("Authenticate") }, .{
.pointer = if (self.waiting) .disabled else if (self.pressed == .unlock) .press else .idle,
.focused = self.focus == .unlock,
});
diff --git a/src/polkit_test_service.zig b/src/polkit_test_service.zig
index 2269f03..a0758a0 100644
--- a/src/polkit_test_service.zig
+++ b/src/polkit_test_service.zig
@@ -32,6 +32,14 @@ fn simulated(_: ?*anyopaque, agent: *Agent, event: helper.Event) void {
fn input(_: c_int, _: wl.EventMask, _: *bool) c_int {
var byte: [1]u8 = undefined;
const n = std.posix.system.read(0, &byte, byte.len);
+ if (n == 1 and byte[0] == 'l') {
+ input_agent.?.setLocale("de_DE.UTF-8") catch {
+ stop = true;
+ return 0;
+ };
+ _ = std.posix.system.write(1, "locale\n", 7);
+ return 0;
+ }
if (n == 1 and hold_prompt) {
const agent = input_agent.?;
switch (byte[0]) {
diff --git a/src/power_menu.zig b/src/power_menu.zig
index f54d252..cd186f8 100644
--- a/src/power_menu.zig
+++ b/src/power_menu.zig
@@ -1,5 +1,6 @@
// Centered session-action cards with system uptime.
const std = @import("std");
+const i18n = @import("i18n");
const glass = @import("glass.zig");
const wl = @import("wayland").server.wl;
const wlr = @import("wlroots");
@@ -44,17 +45,13 @@ const panel_width: f32 = panel_padding * 2 + tile_width * tiles.len + tile_gap *
const uptime_width_slack: f32 = 4;
const slide_distance: f32 = 16;
-// The glass blur itself stays constantly at full strength — only the
-// panel's scene-buffer opacity and the scrim fade with `slide`.
-const glass_opacity: f32 = 1;
-// How dark the rest of the screen gets behind the modal, at full open.
const State = enum { opening, open, selecting, closing };
const Tile = struct {
name: []const u8,
icon: layout.IconId,
- label: []const u8,
+ label: i18n.Message,
action: actions.Action,
// Null for tiles that don't go through logind (Lock, Log Out) and are
// always offered; set for tiles whose availability tracks a
@@ -64,11 +61,11 @@ const Tile = struct {
// Order matches how the menu reads left to right.
const tiles = [_]Tile{
- .{ .name = "lock", .icon = .lock, .label = "Lock", .action = .lock_screen },
- .{ .name = "logout", .icon = .logout, .label = "Log Out", .action = .quit },
- .{ .name = "restart", .icon = .reboot, .label = "Restart", .action = .reboot, .power_kind = .reboot },
- .{ .name = "suspend", .icon = .@"suspend", .label = "Suspend", .action = .@"suspend", .power_kind = .@"suspend" },
- .{ .name = "poweroff", .icon = .power, .label = "Power Off", .action = .poweroff, .power_kind = .poweroff },
+ .{ .name = "lock", .icon = .lock, .label = i18n.msg("Lock"), .action = .lock_screen },
+ .{ .name = "logout", .icon = .logout, .label = i18n.msg("Log Out"), .action = .quit },
+ .{ .name = "restart", .icon = .reboot, .label = i18n.msg("Restart"), .action = .reboot, .power_kind = .reboot },
+ .{ .name = "suspend", .icon = .@"suspend", .label = i18n.msg("Suspend"), .action = .@"suspend", .power_kind = .@"suspend" },
+ .{ .name = "poweroff", .icon = .power, .label = i18n.msg("Power Off"), .action = .poweroff, .power_kind = .poweroff },
};
pub const PowerMenu = struct {
@@ -156,10 +153,11 @@ pub const PowerMenu = struct {
const t = theme.global;
var changed = false;
for (tiles, 0..) |tile, i| {
- const kind = tile.power_kind orelse continue;
- const pm = menu.server.power orelse continue;
- const available = pm.isAvailable(kind);
- const label = if (available) tile.label else (pm.unavailableExplanation(kind) orelse tile.label);
+ const available = if (tile.power_kind) |kind| (if (menu.server.power) |pm| pm.isAvailable(kind) else true) else true;
+ const label = if (!available and tile.power_kind != null and menu.server.power != null)
+ menu.server.power.?.unavailableExplanation(tile.power_kind.?) orelse tile.label.get()
+ else
+ tile.label.get();
const color = if (available) t.fg else t.window_fg;
const want_state: layout.ButtonState = if (available) .idle else .disabled;
@@ -182,6 +180,8 @@ pub const PowerMenu = struct {
if (!available and menu.keyboard_focus == i) menu.keyboard_focus = null;
}
if (!changed) return;
+ menu.uptime_minutes = null;
+ _ = menu.updateUptime();
for (&menu.cards) |*card| card.markPaintDirty();
menu.syncHighlight();
menu.relayout();
@@ -215,7 +215,7 @@ pub const PowerMenu = struct {
.width = .{ .fixed = icon_size },
.height = .{ .fixed = icon_size },
},
- .{ .kind = .{ .text = .{ .content = tile.label, .font_size = label_size, .color = t.fg } } },
+ .{ .kind = .{ .text = .{ .content = tile.label.get(), .font_size = label_size, .color = t.fg } } },
};
menu.cards[i] = .{
.name = tile.name,
@@ -231,7 +231,7 @@ pub const PowerMenu = struct {
}
menu.header_children = .{
.{ .kind = .{ .icon = .{ .id = .clock, .color = t.window_fg } }, .width = .{ .fixed = 15 }, .height = .{ .fixed = 15 } },
- .{ .kind = .{ .text = .{ .content = "Uptime unavailable", .font_size = uptime_size, .color = t.window_fg } } },
+ .{ .kind = .{ .text = .{ .content = i18n.tr("Uptime unavailable"), .font_size = uptime_size, .color = t.window_fg } } },
};
menu.root_children = .{
.{ .kind = .container, .direction = .row, .@"align" = .center, .justify = .end, .gap = 10, .height = .{ .fixed = 20 }, .children = &menu.header_children },
@@ -300,7 +300,7 @@ pub const PowerMenu = struct {
const minutes = @divTrunc(@max(0, ts.sec), 60);
if (menu.uptime_minutes == minutes) return false;
menu.uptime_minutes = minutes;
- const content = std.fmt.bufPrint(&menu.uptime_text, "Uptime {d}h {d}m", .{ @divTrunc(minutes, 60), @mod(minutes, 60) }) catch unreachable;
+ const content = i18n.fmt(&menu.uptime_text, i18n.tr("Uptime {hours}h {minutes}m"), .{ .hours = @divTrunc(minutes, 60), .minutes = @mod(minutes, 60) }) catch i18n.tr("Uptime unavailable");
menu.header_children[1].kind.text.content = content;
const natural = text_mod.measureWidth(content, .manrope, uptime_size, 1.0) catch 0;
menu.header_children[1].min_width = @as(f32, @floatFromInt(natural)) + uptime_width_slack;
@@ -510,9 +510,9 @@ pub const PowerMenu = struct {
if (menu.panel_box.width <= 0 or menu.panel_box.height <= 0) return;
const t = menu.slide.value(now_ms);
panel_present.applySlide(menu.buffer_node, menu.panel_box, t, slide_distance);
- // The blur itself stays fully applied throughout — only the panel's
- // scene-buffer opacity and the scrim animate with `t`.
- glass.Effect.configure(menu.glass_effect, panel_radius, glass_opacity);
+ // Glass has its own opacity: fade it with the panel so the blurred
+ // backdrop does not linger until the closing spring settles.
+ glass.Effect.configure(menu.glass_effect, panel_radius, std.math.clamp(t, 0, 1));
const backdrop = theme.global.power_menu_backdrop;
const scrim_alpha = backdrop[3] * std.math.clamp(t, 0, 1);
if (menu.scrim.color[3] != scrim_alpha) {
diff --git a/src/power_profiles.zig b/src/power_profiles.zig
index ebc4fea..9ad0109 100644
--- a/src/power_profiles.zig
+++ b/src/power_profiles.zig
@@ -8,6 +8,7 @@
//! Every confirmed change shows the OSD, including ones nothing here asked
//! for: asus-wmi's Fn+F5 cycles platform_profile inside the kernel, and asusd
//! and the shim relay it here.
+const i18n = @import("i18n");
const std = @import("std");
const dbus = @import("dbus");
@@ -46,9 +47,9 @@ pub const Profile = enum {
pub fn label(self: Profile) []const u8 {
return switch (self) {
- .power_saver => "Power Saver",
- .balanced => "Balanced",
- .performance => "Performance",
+ .power_saver => i18n.tr("Power Saver"),
+ .balanced => i18n.tr("Balanced"),
+ .performance => i18n.tr("Performance"),
};
}
};
diff --git a/src/printing/admin.zig b/src/printing/admin.zig
index bd53315..2bcc834 100644
--- a/src/printing/admin.zig
+++ b/src/printing/admin.zig
@@ -65,7 +65,7 @@ pub const Manager = struct {
closing: bool = false,
availability: Availability = .loading,
busy: bool = true,
- status: []const u8 = "Checking printer administration…",
+ status: []const u8 = "",
/// Increases after successful mutations or uncertain add/rename results;
/// owners refresh CUPS when it changes. Discovery does not reload CUPS.
generation: u64 = 0,
@@ -86,7 +86,7 @@ pub const Manager = struct {
pub fn create(loop: *wl.EventLoop, env: std.process.Environ, owner: *anyopaque, changed: *const fn (*anyopaque) void) !*Manager {
const self = try a.create(Manager);
errdefer a.destroy(self);
- self.* = .{ .owner = owner, .changed = changed, .loop = loop };
+ self.* = .{ .owner = owner, .changed = changed, .loop = loop, .status = @import("i18n").tr("Checking printer administration…") };
self.bus = dbus.Connection.openSystem(a, loop, env) catch {
self.useDirect();
return self;
@@ -118,7 +118,7 @@ pub const Manager = struct {
if (self.closing) return;
if (self.worker != null) return;
self.stage = .idle;
- self.unavailable("System bus connection lost. Reopen Printers to reconnect.");
+ self.unavailable(@import("i18n").tr("System bus connection lost. Reopen Printers to reconnect."));
}
fn hello(owner: ?*anyopaque, bus: *dbus.Connection, result: dbus.Connection.Failure!wire.Message) void {
@@ -149,19 +149,19 @@ pub const Manager = struct {
if (msg.kind == .method_return and std.mem.eql(u8, msg.headers.signature, "as")) {
var body = msg.body;
var names = body.array(4) catch {
- self.unavailable("Invalid system bus reply.");
+ self.unavailable(@import("i18n").tr("Invalid system bus reply."));
return;
};
var found = false;
while (names.offset < names.bytes.len) {
const value = names.string() catch {
- self.unavailable("Invalid system bus reply.");
+ self.unavailable(@import("i18n").tr("Invalid system bus reply."));
return;
};
found = found or std.mem.eql(u8, value, helper_name);
}
body.done() catch {
- self.unavailable("Invalid system bus reply.");
+ self.unavailable(@import("i18n").tr("Invalid system bus reply."));
return;
};
if (found) {
@@ -192,7 +192,7 @@ pub const Manager = struct {
var body = msg.body;
const found = body.boolean() catch false;
body.done() catch {
- self.unavailable("Invalid system bus reply.");
+ self.unavailable(@import("i18n").tr("Invalid system bus reply."));
return;
};
if (found) {
@@ -206,11 +206,11 @@ pub const Manager = struct {
fn useDirect(self: *Manager) void {
if (self.worker == null) {
const loop = self.loop orelse {
- self.unavailable("Could not start CUPS administration.");
+ self.unavailable(@import("i18n").tr("Could not start CUPS administration."));
return;
};
self.worker = direct.Worker.create(loop, self, directReady) catch {
- self.unavailable("Could not start CUPS administration.");
+ self.unavailable(@import("i18n").tr("Could not start CUPS administration."));
return;
};
}
@@ -230,7 +230,7 @@ pub const Manager = struct {
switch (worker.state()) {
1 => {
self.authentication = true;
- self.status = "CUPS requires an administrator username and password.";
+ self.status = @import("i18n").tr("CUPS requires an administrator username and password.");
self.notify();
},
2 => {
@@ -238,11 +238,11 @@ pub const Manager = struct {
const result = worker.result();
if (result != 0) {
self.fail(switch (result) {
- 2 => "Printer administration was cancelled.",
- 3 => "CUPS authentication failed after three attempts. Check the administrator account and permissions.",
- 4 => "Queue rename only partly completed. Refresh and check both queues before retrying.",
- 5 => "This printer belongs to a CUPS class. Manage its class membership before renaming it here.",
- else => "CUPS refused or could not complete the request. Check authorization and refresh before retrying.",
+ 2 => @import("i18n").tr("Printer administration was cancelled."),
+ 3 => @import("i18n").tr("CUPS authentication failed after three attempts. Check the administrator account and permissions."),
+ 4 => @import("i18n").tr("Queue rename only partly completed. Refresh and check both queues before retrying."),
+ 5 => @import("i18n").tr("This printer belongs to a CUPS class. Manage its class membership before renaming it here."),
+ else => @import("i18n").tr("CUPS refused or could not complete the request. Check authorization and refresh before retrying."),
});
return;
}
@@ -250,18 +250,18 @@ pub const Manager = struct {
var body: wire.Writer = .{ .allocator = a };
defer body.deinit();
worker.devices(&body) catch {
- self.fail("Invalid or oversized printer discovery reply.");
+ self.fail(@import("i18n").tr("Invalid or oversized printer discovery reply."));
return;
};
var reader: wire.Reader = .{ .bytes = body.bytes.items };
self.readDevices(&reader) catch {
- self.fail("Invalid or oversized printer discovery reply.");
+ self.fail(@import("i18n").tr("Invalid or oversized printer discovery reply."));
return;
};
worker.finish();
self.stage = .idle;
self.busy = false;
- self.status = if (self.devices.len == 0) "CUPS discovered no supported printer addresses. You can enter a network address." else "Printer discovery complete.";
+ self.status = if (self.devices.len == 0) @import("i18n").tr("CUPS discovered no supported printer addresses. You can enter a network address.") else @import("i18n").tr("Printer discovery complete.");
self.notify();
} else self.advance();
},
@@ -273,7 +273,7 @@ pub const Manager = struct {
if (!self.authentication) return error.NoChallenge;
try self.worker.?.credentials(user, password);
self.authentication = false;
- self.status = "Authenticating with CUPS…";
+ self.status = @import("i18n").tr("Authenticating with CUPS…");
}
pub fn cancelAuthentication(self: *Manager) void {
if (self.worker) |worker| worker.cancel();
@@ -283,7 +283,7 @@ pub const Manager = struct {
fn available(self: *Manager) void {
self.availability = .available;
self.busy = false;
- self.status = "Printer administration is available; authorization may be required.";
+ self.status = "";
self.notify();
}
@@ -346,22 +346,22 @@ pub const Manager = struct {
}
self.busy = true;
self.status = switch (action) {
- .discover => "Discovering printers; authorization may be required…",
- .start_service => "Requesting CUPS start; authorization may be required…",
- else => "Applying printer change; authorization may be required…",
+ .discover => @import("i18n").tr("Discovering printers; authorization may be required…"),
+ .start_service => @import("i18n").tr("Requesting CUPS start; authorization may be required…"),
+ else => @import("i18n").tr("Applying printer change; authorization may be required…"),
};
if (action == .start_service) {
const bus = self.bus orelse {
- self.fail("The system service manager is unavailable.");
+ self.fail(@import("i18n").tr("The system service manager is unavailable."));
return error.Disconnected;
};
_ = bus.callWithFlags("org.freedesktop.systemd1", "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", method.member, method.signature, &body, self, reply, 120000, 4) catch |err| {
- self.fail("Could not request CUPS start.");
+ self.fail(@import("i18n").tr("Could not request CUPS start."));
return err;
};
} else {
self.send(method, &body, true) catch |err| {
- self.fail("Could not send printer administration request.");
+ self.fail(@import("i18n").tr("Could not send printer administration request."));
return err;
};
}
@@ -371,67 +371,67 @@ pub const Manager = struct {
const self: *Manager = @ptrCast(@alignCast(owner.?));
if (self.closing) return;
const msg = result catch |err| {
- self.fail(if (err == error.Timeout) "Printer administration timed out. Refresh before trying again." else "System bus disconnected during printer administration.");
+ self.fail(if (err == error.Timeout) @import("i18n").tr("Printer administration timed out. Refresh before trying again.") else @import("i18n").tr("System bus disconnected during printer administration."));
return;
};
if (msg.kind == .error_reply) {
const error_name = msg.headers.error_name orelse "";
if (std.mem.eql(u8, error_name, "org.freedesktop.DBus.Error.ServiceUnknown") or std.mem.eql(u8, error_name, "org.freedesktop.DBus.Error.NameHasNoOwner")) {
if (self.stage != .start_service) self.availability = .missing;
- self.fail(if (self.stage == .start_service) "The system service manager is unavailable; start CUPS using your distribution's service tools." else "Printer authorization helper unavailable. Refresh before trying again.");
+ self.fail(if (self.stage == .start_service) @import("i18n").tr("The system service manager is unavailable; start CUPS using your distribution's service tools.") else @import("i18n").tr("Printer authorization helper unavailable. Refresh before trying again."));
} else if (std.mem.indexOf(u8, error_name, "NotPrivileged") != null or std.mem.indexOf(u8, error_name, "AccessDenied") != null or std.mem.indexOf(u8, error_name, "NotAuthorized") != null or std.mem.indexOf(u8, error_name, "InteractiveAuthorizationRequired") != null) {
- self.fail("Printer administration was not authorized or was cancelled.");
- } else self.fail("Printer administration failed; refresh and check the printer status.");
+ self.fail(@import("i18n").tr("Printer administration was not authorized or was cancelled."));
+ } else self.fail(@import("i18n").tr("Printer administration failed; refresh and check the printer status."));
return;
}
if (msg.kind != .method_return) {
- self.fail("Invalid printer administration reply.");
+ self.fail(@import("i18n").tr("Invalid printer administration reply."));
return;
}
if (self.stage == .start_service) {
if (!std.mem.eql(u8, msg.headers.signature, "o")) {
- self.fail("Invalid service-manager reply.");
+ self.fail(@import("i18n").tr("Invalid service-manager reply."));
return;
}
var body = msg.body;
_ = body.objectPath() catch {
- self.fail("Invalid service-manager reply.");
+ self.fail(@import("i18n").tr("Invalid service-manager reply."));
return;
};
body.done() catch {
- self.fail("Invalid service-manager reply.");
+ self.fail(@import("i18n").tr("Invalid service-manager reply."));
return;
};
- self.succeed("CUPS start requested. Refresh to check when it is ready.");
+ self.succeed(@import("i18n").tr("CUPS start requested. Refresh to check when it is ready."));
return;
}
const expected = if (self.stage == .discovery) "sa{ss}" else "s";
if (!std.mem.eql(u8, msg.headers.signature, expected)) {
- self.fail("Invalid cups-pk-helper reply.");
+ self.fail(@import("i18n").tr("Invalid cups-pk-helper reply."));
return;
}
var body = msg.body;
const error_message = body.string() catch {
- self.fail("Invalid cups-pk-helper reply.");
+ self.fail(@import("i18n").tr("Invalid cups-pk-helper reply."));
return;
};
if (error_message.len != 0) {
- self.fail("CUPS refused the printer change. Check authorization, the address and driver, then refresh.");
+ self.fail(@import("i18n").tr("CUPS refused the printer change. Check authorization, the address and driver, then refresh."));
return;
}
if (self.stage == .discovery) {
self.readDevices(&body) catch {
- self.fail("Invalid or oversized printer discovery reply.");
+ self.fail(@import("i18n").tr("Invalid or oversized printer discovery reply."));
return;
};
self.busy = false;
self.stage = .idle;
- self.status = if (self.devices.len == 0) "CUPS discovered no supported printer addresses. You can enter a network address." else "Printer discovery complete.";
+ self.status = if (self.devices.len == 0) @import("i18n").tr("CUPS discovered no supported printer addresses. You can enter a network address.") else @import("i18n").tr("Printer discovery complete.");
self.notify();
return;
}
body.done() catch {
- self.fail("Invalid cups-pk-helper reply.");
+ self.fail(@import("i18n").tr("Invalid cups-pk-helper reply."));
return;
};
self.advance();
@@ -447,9 +447,9 @@ pub const Manager = struct {
self.stage = .accept_added;
self.sendAdded(.{ .accepting = .{ .name = self.added_name[0..self.added_len], .value = true } });
},
- .accept_added => self.succeed("Printer added, enabled and accepting jobs."),
- .rename => self.succeed("Queue rename request completed. Check the refreshed queues and options."),
- .device => self.succeed("Printer connection changed."),
+ .accept_added => self.succeed(@import("i18n").tr("Printer added, enabled and accepting jobs.")),
+ .rename => self.succeed(@import("i18n").tr("Queue rename request completed. Check the refreshed queues and options.")),
+ .device => self.succeed(@import("i18n").tr("Printer connection changed.")),
.clear_ppd_override => {
if (self.option_alias != null) {
self.stage = .clear_ppd_alias;
@@ -463,8 +463,8 @@ pub const Manager = struct {
self.stage = .ppd_option;
self.sendPpdOption();
},
- .ppd_option => self.succeed("Printer option applied."),
- else => self.succeed("Printer change applied."),
+ .ppd_option => self.succeed(@import("i18n").tr("Printer option applied.")),
+ else => self.succeed(@import("i18n").tr("Printer change applied.")),
}
}
@@ -472,11 +472,11 @@ pub const Manager = struct {
var body: wire.Writer = .{ .allocator = a };
defer body.deinit();
const method = encode(&body, action) catch {
- self.fail("Printer was added, but could not be enabled. Refresh and resume it.");
+ self.fail(@import("i18n").tr("Printer was added, but could not be enabled. Refresh and resume it."));
return;
};
self.send(method, &body, false) catch {
- self.fail("Printer was added, but could not be enabled. Refresh and resume it.");
+ self.fail(@import("i18n").tr("Printer was added, but could not be enabled. Refresh and resume it."));
};
}
@@ -488,7 +488,7 @@ pub const Manager = struct {
fn sendPpdOption(self: *Manager) void {
self.send(.{ .member = "PrinterAddOption", .signature = "ssas" }, &self.option_body, false) catch {
- self.fail("Could not apply the printer option.");
+ self.fail(@import("i18n").tr("Could not apply the printer option."));
};
}
@@ -499,11 +499,11 @@ pub const Manager = struct {
.name = self.option_queue[0..self.option_queue_len],
.key = self.option_alias.?,
} }) catch {
- self.fail("Could not clear the canonical default override.");
+ self.fail(@import("i18n").tr("Could not clear the canonical default override."));
return;
};
self.send(method, &body, false) catch {
- self.fail("Could not clear the canonical default override.");
+ self.fail(@import("i18n").tr("Could not clear the canonical default override."));
};
}
@@ -520,11 +520,11 @@ pub const Manager = struct {
const alias_partial = self.stage == .clear_ppd_alias;
if (partial or option_partial or alias_partial or self.stage == .clear_ppd_override or self.stage == .add or self.stage == .rename or self.stage == .device) self.generation +%= 1;
self.status = if (partial)
- "Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs."
+ @import("i18n").tr("Printer was added, but enabling or accepting jobs failed. Refresh, then resume it and allow jobs.")
else if (option_partial)
- "Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option."
+ @import("i18n").tr("Old printer default override cleared, but the new printer option could not be applied. Refresh and review the option.")
else if (alias_partial)
- "Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option."
+ @import("i18n").tr("Printer default cleanup partly completed, but the new printer option could not be applied. Refresh and review the option.")
else
status;
self.busy = false;
diff --git a/src/printing/cups.zig b/src/printing/cups.zig
index d8c7c8d..c2ca378 100644
--- a/src/printing/cups.zig
+++ b/src/printing/cups.zig
@@ -518,39 +518,39 @@ pub fn jobs(a: A, message: ipp.Message, username: []const u8) ![]Job {
pub fn printerState(value: ?i32) []const u8 {
return switch (value orelse 0) {
- 3 => "Ready",
- 4 => "Printing",
- 5 => "Stopped",
- else => "State unavailable",
+ 3 => @import("i18n").tr("Ready"),
+ 4 => @import("i18n").tr("Printing"),
+ 5 => @import("i18n").tr("Stopped"),
+ else => @import("i18n").tr("State unavailable"),
};
}
pub fn jobState(value: ?i32) []const u8 {
return switch (value orelse 0) {
- 3 => "Pending",
- 4 => "Held",
- 5 => "Processing",
- 6 => "Stopped",
- 7 => "Cancelled",
- 8 => "Aborted",
- 9 => "Completed",
- else => "State unavailable",
+ 3 => @import("i18n").tr("Pending"),
+ 4 => @import("i18n").tr("Held"),
+ 5 => @import("i18n").tr("Processing"),
+ 6 => @import("i18n").tr("Stopped"),
+ 7 => @import("i18n").tr("Cancelled"),
+ 8 => @import("i18n").tr("Aborted"),
+ 9 => @import("i18n").tr("Completed"),
+ else => @import("i18n").tr("State unavailable"),
};
}
pub fn failure(err: anyerror) []const u8 {
return switch (err) {
- error.OutOfMemory => "Not enough memory to load printer status. Refresh to check the result.",
- error.CupsUnavailable => "CUPS is unavailable. Install or start CUPS, then refresh.",
- error.UnsupportedServer => "This print server requires an unsupported encrypted or authenticated connection.",
- error.InvalidMedia, error.MediaTooSmall => "Choose the actual paper dimensions before printing this test.",
- error.InvalidPreferences, error.AmbiguousPreferences => "Printer preferences could not be saved safely. Check the existing preferences file.",
- error.PreferencesMigration => "The queue changed, but personal preferences could not be moved. Check your default printer.",
- error.InvalidClientConfiguration => "The CUPS client configuration could not be read or is invalid.",
- error.NotAuthorized => "CUPS denied permission. The operation requires authorization.",
- error.Timeout => "CUPS did not respond in time. Refresh to try again.",
- error.NotFound => "The printer or job no longer exists. Refresh the list.",
- error.OperationUnsupported => "This CUPS server does not support the requested operation.",
- error.UnsupportedPrintSettings => "CUPS cannot honor the requested print settings. Check the paper, format and scaling options.",
- else => "CUPS returned an invalid response or the connection failed. Refresh to try again.",
+ error.OutOfMemory => @import("i18n").tr("Not enough memory to load printer status. Refresh to check the result."),
+ error.CupsUnavailable => @import("i18n").tr("CUPS is unavailable. Install or start CUPS, then refresh."),
+ error.UnsupportedServer => @import("i18n").tr("This print server requires an unsupported encrypted or authenticated connection."),
+ error.InvalidMedia, error.MediaTooSmall => @import("i18n").tr("Choose the actual paper dimensions before printing this test."),
+ error.InvalidPreferences, error.AmbiguousPreferences => @import("i18n").tr("Printer preferences could not be saved safely. Check the existing preferences file."),
+ error.PreferencesMigration => @import("i18n").tr("The queue changed, but personal preferences could not be moved. Check your default printer."),
+ error.InvalidClientConfiguration => @import("i18n").tr("The CUPS client configuration could not be read or is invalid."),
+ error.NotAuthorized => @import("i18n").tr("CUPS denied permission. The operation requires authorization."),
+ error.Timeout => @import("i18n").tr("CUPS did not respond in time. Refresh to try again."),
+ error.NotFound => @import("i18n").tr("The printer or job no longer exists. Refresh the list."),
+ error.OperationUnsupported => @import("i18n").tr("This CUPS server does not support the requested operation."),
+ error.UnsupportedPrintSettings => @import("i18n").tr("CUPS cannot honor the requested print settings. Check the paper, format and scaling options."),
+ else => @import("i18n").tr("CUPS returned an invalid response or the connection failed. Refresh to try again."),
};
}
diff --git a/src/printing/ladder.zig b/src/printing/ladder.zig
index c16d240..899c777 100644
--- a/src/printing/ladder.zig
+++ b/src/printing/ladder.zig
@@ -78,22 +78,22 @@ fn connectionRow(input: Input) Row {
switch (input.connection) {
.usb => {
if (input.usb) |device| return if (device.printer_class)
- .{ .layer = .connection, .verdict = .pass, .message = "A matching USB printer interface is attached." }
+ .{ .layer = .connection, .verdict = .pass, .message = @import("i18n").tr("A matching USB printer interface is attached.") }
else
- .{ .layer = .connection, .verdict = .fail, .message = "The matching USB device has no printer-class interface.", .fix = "Check the device's USB mode and its self-test instructions." };
+ .{ .layer = .connection, .verdict = .fail, .message = @import("i18n").tr("The matching USB device has no printer-class interface."), .fix = @import("i18n").tr("Check the device's USB mode and its self-test instructions.") };
return if (input.usb_scan_complete)
- .{ .layer = .connection, .verdict = .fail, .message = "The matching USB printer was not found.", .fix = "Check power, the USB cable, and which printer this queue uses." }
+ .{ .layer = .connection, .verdict = .fail, .message = @import("i18n").tr("The matching USB printer was not found."), .fix = @import("i18n").tr("Check power, the USB cable, and which printer this queue uses.") }
else
- .{ .layer = .connection, .verdict = .unknown, .message = "USB presence or queue-to-device identity could not be established." };
+ .{ .layer = .connection, .verdict = .unknown, .message = @import("i18n").tr("USB presence or queue-to-device identity could not be established.") };
},
.network => return if (input.network_reachable) |reachable|
if (reachable)
- .{ .layer = .connection, .verdict = .pass, .message = "The printer answered an IPP request." }
+ .{ .layer = .connection, .verdict = .pass, .message = @import("i18n").tr("The printer answered an IPP request.") }
else
- .{ .layer = .connection, .verdict = .fail, .message = "The network printer did not answer.", .fix = "Check printer power, the address, and access through the network or VPN." }
+ .{ .layer = .connection, .verdict = .fail, .message = @import("i18n").tr("The network printer did not answer."), .fix = @import("i18n").tr("Check printer power, the address, and access through the network or VPN.") }
else
- .{ .layer = .connection, .verdict = .unknown, .message = "Network reachability has not been checked." },
- .other => return .{ .layer = .connection, .verdict = .unknown, .message = "This connection has no direct presence check." },
+ .{ .layer = .connection, .verdict = .unknown, .message = @import("i18n").tr("Network reachability has not been checked.") },
+ .other => return .{ .layer = .connection, .verdict = .unknown, .message = @import("i18n").tr("This connection has no direct presence check.") },
}
}
@@ -104,15 +104,15 @@ fn backendKind(input: Input) UsbBackend {
}
fn nodeRow(input: Input) Row {
const layer = Layer.device_node;
- if (input.connection != .usb) return .{ .layer = layer, .verdict = .unknown, .message = "A USB character device is not applicable to this connection." };
- if (backendKind(input) == .libusb) return .{ .layer = layer, .verdict = .unknown, .message = "The CUPS USB backend uses libusb; a usblp node is not required." };
+ if (input.connection != .usb) return .{ .layer = layer, .verdict = .unknown, .message = @import("i18n").tr("A USB character device is not applicable to this connection.") };
+ if (backendKind(input) == .libusb) return .{ .layer = layer, .verdict = .unknown, .message = @import("i18n").tr("The CUPS USB backend uses libusb; a usblp node is not required.") };
if (backendKind(input) == .device_node) if (input.node_kind) |kind| return switch (kind) {
- .regular, .other => .{ .layer = layer, .verdict = .fail, .message = "The queue's device-node path is a regular file or another wrong file type.", .fix = "Have an administrator inspect the node; never write print data to a regular file." },
- .missing => .{ .layer = layer, .verdict = .fail, .message = "The character-device path used by this queue is missing.", .fix = "Check the usblp driver and the queue's device path; node names can change after reconnection." },
- .character => .{ .layer = layer, .verdict = .pass, .message = "The queue's character device exists; backend access has not been tested." },
- .unavailable => .{ .layer = layer, .verdict = .unknown, .message = "The file type of the queue's device-node path could not be read." },
+ .regular, .other => .{ .layer = layer, .verdict = .fail, .message = @import("i18n").tr("The queue's device-node path is a regular file or another wrong file type."), .fix = @import("i18n").tr("Have an administrator inspect the node; never write print data to a regular file.") },
+ .missing => .{ .layer = layer, .verdict = .fail, .message = @import("i18n").tr("The character-device path used by this queue is missing."), .fix = @import("i18n").tr("Check the usblp driver and the queue's device path; node names can change after reconnection.") },
+ .character => .{ .layer = layer, .verdict = .pass, .message = @import("i18n").tr("The queue's character device exists; backend access has not been tested.") },
+ .unavailable => .{ .layer = layer, .verdict = .unknown, .message = @import("i18n").tr("The file type of the queue's device-node path could not be read.") },
};
- const device = input.usb orelse return .{ .layer = layer, .verdict = .unknown, .message = "No matching USB device is available to identify its node." };
+ const device = input.usb orelse return .{ .layer = layer, .verdict = .unknown, .message = @import("i18n").tr("No matching USB device is available to identify its node.") };
var character = false;
var regular = false;
var inaccessible = false;
@@ -126,63 +126,63 @@ fn nodeRow(input: Input) Row {
"A matched node path is not a character device; this backend's need for it is unknown."
else
"This backend's need for a usblp node has not been established." };
- if (regular) return .{ .layer = layer, .verdict = .fail, .message = "A matched device-node path is a regular file or another wrong file type.", .fix = "Have an administrator inspect the node; never write print data to a regular file." };
- if (character) return .{ .layer = layer, .verdict = .pass, .message = "A matching character device exists; backend access has not been tested." };
- if (inaccessible) return .{ .layer = layer, .verdict = .unknown, .message = "The matching device-node file type could not be read." };
- return .{ .layer = layer, .verdict = .fail, .message = "This backend needs a character device, but no matching node was found.", .fix = "Check the usblp driver and the queue's device path; node names can change after reconnection." };
+ if (regular) return .{ .layer = layer, .verdict = .fail, .message = @import("i18n").tr("A matched device-node path is a regular file or another wrong file type."), .fix = @import("i18n").tr("Have an administrator inspect the node; never write print data to a regular file.") };
+ if (character) return .{ .layer = layer, .verdict = .pass, .message = @import("i18n").tr("A matching character device exists; backend access has not been tested.") };
+ if (inaccessible) return .{ .layer = layer, .verdict = .unknown, .message = @import("i18n").tr("The matching device-node file type could not be read.") };
+ return .{ .layer = layer, .verdict = .fail, .message = @import("i18n").tr("This backend needs a character device, but no matching node was found."), .fix = @import("i18n").tr("Check the usblp driver and the queue's device path; node names can change after reconnection.") };
}
fn cupsRow(input: Input) Row {
if (input.cups_reachable) |reachable| return if (reachable)
- .{ .layer = .cups, .verdict = .pass, .message = "CUPS answered an IPP request." }
+ .{ .layer = .cups, .verdict = .pass, .message = @import("i18n").tr("CUPS answered an IPP request.") }
else
- .{ .layer = .cups, .verdict = .fail, .message = "CUPS did not answer an IPP request.", .fix = "Check the configured CUPS server and whether the print service is installed and available." };
- return .{ .layer = .cups, .verdict = .unknown, .message = "CUPS availability has not been checked." };
+ .{ .layer = .cups, .verdict = .fail, .message = @import("i18n").tr("CUPS did not answer an IPP request."), .fix = @import("i18n").tr("Check the configured CUPS server and whether the print service is installed and available.") };
+ return .{ .layer = .cups, .verdict = .unknown, .message = @import("i18n").tr("CUPS availability has not been checked.") };
}
fn queueRow(input: Input) Row {
const queue = input.queue orelse return if (input.cups_reachable == true)
- .{ .layer = .queue, .verdict = .fail, .message = "The selected queue was not found.", .fix = "Select an existing queue or add the printer again." }
+ .{ .layer = .queue, .verdict = .fail, .message = @import("i18n").tr("The selected queue was not found."), .fix = @import("i18n").tr("Select an existing queue or add the printer again.") }
else
- .{ .layer = .queue, .verdict = .unknown, .message = "The queue could not be checked without a CUPS response." };
- if (queue.state == .stopped) return .{ .layer = .queue, .verdict = .fail, .message = "The printer queue is stopped.", .fix = "Resolve the reported printer problem before resuming the queue." };
- if (queue.accepting == false) return .{ .layer = .queue, .verdict = .fail, .message = "The printer queue is not accepting new jobs.", .fix = "Enable acceptance of jobs when the printer is ready." };
- if (queue.accepting == null or queue.state == .unknown) return .{ .layer = .queue, .verdict = .unknown, .message = "The queue exists, but its state or acceptance of jobs is unknown." };
- return .{ .layer = .queue, .verdict = .pass, .message = "The queue exists, is enabled, and accepts jobs." };
+ .{ .layer = .queue, .verdict = .unknown, .message = @import("i18n").tr("The queue could not be checked without a CUPS response.") };
+ if (queue.state == .stopped) return .{ .layer = .queue, .verdict = .fail, .message = @import("i18n").tr("The printer queue is stopped."), .fix = @import("i18n").tr("Resolve the reported printer problem before resuming the queue.") };
+ if (queue.accepting == false) return .{ .layer = .queue, .verdict = .fail, .message = @import("i18n").tr("The printer queue is not accepting new jobs."), .fix = @import("i18n").tr("Enable acceptance of jobs when the printer is ready.") };
+ if (queue.accepting == null or queue.state == .unknown) return .{ .layer = .queue, .verdict = .unknown, .message = @import("i18n").tr("The queue exists, but its state or acceptance of jobs is unknown.") };
+ return .{ .layer = .queue, .verdict = .pass, .message = @import("i18n").tr("The queue exists, is enabled, and accepts jobs.") };
}
fn backendRow(input: Input) Row {
- if (input.backend_match == false) return .{ .layer = .backend, .verdict = .fail, .message = "The queue's device address does not match the selected printer.", .fix = "Check the queue address and USB serial; reconnecting can change a device-node path." };
+ if (input.backend_match == false) return .{ .layer = .backend, .verdict = .fail, .message = @import("i18n").tr("The queue's device address does not match the selected printer."), .fix = @import("i18n").tr("Check the queue address and USB serial; reconnecting can change a device-node path.") };
if (input.last_job) |job| {
if (hasReason(job.reasons, "printer-unreachable") or ((job.state == .aborted or job.state == .stopped) and hasReason(job.reasons, "connecting-to-device")) or containsAsciiIgnoreCase(job.message, "USB transaction timeout")) return .{
.layer = .backend,
.verdict = .fail,
- .message = "The last job reports a backend connection problem.",
- .fix = "Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed.",
+ .message = @import("i18n").tr("The last job reports a backend connection problem."),
+ .fix = @import("i18n").tr("Check the connection and backend address. A timeout alone does not prove that a USB quirk is needed."),
};
}
return .{ .layer = .backend, .verdict = .unknown, .message = if (input.backend_match == true)
- "The device address matches; successful communication has not been confirmed."
+ @import("i18n").tr("The device address matches; successful communication has not been confirmed.")
else
- "Backend communication and device identity have not been confirmed." };
+ @import("i18n").tr("Backend communication and device identity have not been confirmed.") };
}
fn settingsRow(input: Input) Row {
- const queue = input.queue orelse return .{ .layer = .settings, .verdict = .unknown, .message = "Queue media and resolution could not be read." };
- if (input.settings_consistent == false) return .{ .layer = .settings, .verdict = .fail, .message = "CUPS reports conflicting queue and driver defaults.", .fix = "Reapply the intended paper, resolution or driver option, then refresh to verify the result." };
+ const queue = input.queue orelse return .{ .layer = .settings, .verdict = .unknown, .message = @import("i18n").tr("Queue media and resolution could not be read.") };
+ if (input.settings_consistent == false) return .{ .layer = .settings, .verdict = .fail, .message = @import("i18n").tr("CUPS reports conflicting queue and driver defaults."), .fix = @import("i18n").tr("Reapply the intended paper, resolution or driver option, then refresh to verify the result.") };
if (input.expected_media) |expected| {
- if (queue.default_media.len > 0 and !std.mem.eql(u8, expected, queue.default_media)) return .{ .layer = .settings, .verdict = .fail, .message = "The queue's default media differs from the expected media.", .fix = "Choose the paper or label size actually loaded in the printer." };
+ if (queue.default_media.len > 0 and !std.mem.eql(u8, expected, queue.default_media)) return .{ .layer = .settings, .verdict = .fail, .message = @import("i18n").tr("The queue's default media differs from the expected media."), .fix = @import("i18n").tr("Choose the paper or label size actually loaded in the printer.") };
}
if (input.expected_resolution) |expected| {
- if (queue.resolution) |actual| if (expected.x_dpi != actual.x_dpi or expected.y_dpi != actual.y_dpi) return .{ .layer = .settings, .verdict = .fail, .message = "The queue resolution differs from the expected resolution.", .fix = "Confirm resolution using the printer's self-test or a measured ruler test." };
+ if (queue.resolution) |actual| if (expected.x_dpi != actual.x_dpi or expected.y_dpi != actual.y_dpi) return .{ .layer = .settings, .verdict = .fail, .message = @import("i18n").tr("The queue resolution differs from the expected resolution."), .fix = @import("i18n").tr("Confirm resolution using the printer's self-test or a measured ruler test.") };
}
- if ((input.expected_media != null and queue.default_media.len == 0) or (input.expected_resolution != null and queue.resolution == null) or (input.expected_media == null and input.expected_resolution == null)) return .{ .layer = .settings, .verdict = .unknown, .message = "Media and resolution need confirmation against what is loaded in the printer." };
- return .{ .layer = .settings, .verdict = .pass, .message = "The available queue settings match the supplied media or resolution expectations." };
+ if ((input.expected_media != null and queue.default_media.len == 0) or (input.expected_resolution != null and queue.resolution == null) or (input.expected_media == null and input.expected_resolution == null)) return .{ .layer = .settings, .verdict = .unknown, .message = @import("i18n").tr("Media and resolution need confirmation against what is loaded in the printer.") };
+ return .{ .layer = .settings, .verdict = .pass, .message = @import("i18n").tr("The available queue settings match the supplied media or resolution expectations.") };
}
fn jobRow(job_value: ?Job) Row {
- const job = job_value orelse return .{ .layer = .last_job, .verdict = .unknown, .message = "No recent job information is available." };
- if (containsAsciiIgnoreCase(job.message, "No pages were found") or hasReason(job.reasons, "document-format-error") or hasReason(job.reasons, "document-unprintable-error") or hasReason(job.reasons, "cups-filter-error")) return .{ .layer = .last_job, .verdict = .fail, .message = "The last job reports a document or filter failure.", .fix = "Check the document, driver, media size, and resolution. Compare with a test that skips the filters." };
- if (job.state == .completed and job.sheets_completed == 0) return .{ .layer = .last_job, .verdict = .unknown, .message = "CUPS completed the job with zero sheets reported; physical output is not confirmed.", .fix = "Check the physical output and any document or filter failure; sheet counters can be incomplete." };
- if (job.state == .aborted or job.state == .stopped) return .{ .layer = .last_job, .verdict = .fail, .message = "The last job was aborted or stopped.", .fix = "Check the job's reported reason before retrying." };
- if (job.state == .completed) return .{ .layer = .last_job, .verdict = .unknown, .message = "CUPS reports the job completed; physical printed output is not confirmed." };
- if (job.state == .canceled) return .{ .layer = .last_job, .verdict = .unknown, .message = "The last job was canceled." };
- return .{ .layer = .last_job, .verdict = .unknown, .message = "The last job has not completed." };
+ const job = job_value orelse return .{ .layer = .last_job, .verdict = .unknown, .message = @import("i18n").tr("No recent job information is available.") };
+ if (containsAsciiIgnoreCase(job.message, "No pages were found") or hasReason(job.reasons, "document-format-error") or hasReason(job.reasons, "document-unprintable-error") or hasReason(job.reasons, "cups-filter-error")) return .{ .layer = .last_job, .verdict = .fail, .message = @import("i18n").tr("The last job reports a document or filter failure."), .fix = @import("i18n").tr("Check the document, driver, media size, and resolution. Compare with a test that skips the filters.") };
+ if (job.state == .completed and job.sheets_completed == 0) return .{ .layer = .last_job, .verdict = .unknown, .message = @import("i18n").tr("CUPS completed the job with zero sheets reported; physical output is not confirmed."), .fix = @import("i18n").tr("Check the physical output and any document or filter failure; sheet counters can be incomplete.") };
+ if (job.state == .aborted or job.state == .stopped) return .{ .layer = .last_job, .verdict = .fail, .message = @import("i18n").tr("The last job was aborted or stopped."), .fix = @import("i18n").tr("Check the job's reported reason before retrying.") };
+ if (job.state == .completed) return .{ .layer = .last_job, .verdict = .unknown, .message = @import("i18n").tr("CUPS reports the job completed; physical printed output is not confirmed.") };
+ if (job.state == .canceled) return .{ .layer = .last_job, .verdict = .unknown, .message = @import("i18n").tr("The last job was canceled.") };
+ return .{ .layer = .last_job, .verdict = .unknown, .message = @import("i18n").tr("The last job has not completed.") };
}
fn containsAsciiIgnoreCase(haystack: []const u8, needle: []const u8) bool {
diff --git a/src/printing/options.zig b/src/printing/options.zig
index a891036..63bf92e 100644
--- a/src/printing/options.zig
+++ b/src/printing/options.zig
@@ -181,15 +181,15 @@ pub fn deinit(a: A, groups: []Group) void {
a.free(groups);
}
-const Definition = struct { name: []const u8, supported: []const u8, default: []const u8, label: []const u8 };
+const Definition = struct { name: []const u8, supported: []const u8, default: []const u8, label: @import("i18n").Message };
const definitions = [_]Definition{
- .{ .name = "media", .supported = "media-supported", .default = "media-default", .label = "Paper size" },
- .{ .name = "printer-resolution", .supported = "printer-resolution-supported", .default = "printer-resolution-default", .label = "Resolution" },
- .{ .name = "sides", .supported = "sides-supported", .default = "sides-default", .label = "Two-sided printing" },
- .{ .name = "print-color-mode", .supported = "print-color-mode-supported", .default = "print-color-mode-default", .label = "Colour" },
- .{ .name = "print-quality", .supported = "print-quality-supported", .default = "print-quality-default", .label = "Quality" },
- .{ .name = "print-darkness", .supported = "print-darkness-supported", .default = "print-darkness-default", .label = "Darkness" },
- .{ .name = "print-speed", .supported = "print-speed-supported", .default = "print-speed-default", .label = "Speed" },
+ .{ .name = "media", .supported = "media-supported", .default = "media-default", .label = @import("i18n").msg("Paper size") },
+ .{ .name = "printer-resolution", .supported = "printer-resolution-supported", .default = "printer-resolution-default", .label = @import("i18n").msg("Resolution") },
+ .{ .name = "sides", .supported = "sides-supported", .default = "sides-default", .label = @import("i18n").msg("Two-sided printing") },
+ .{ .name = "print-color-mode", .supported = "print-color-mode-supported", .default = "print-color-mode-default", .label = @import("i18n").msg("Colour") },
+ .{ .name = "print-quality", .supported = "print-quality-supported", .default = "print-quality-default", .label = @import("i18n").msg("Quality") },
+ .{ .name = "print-darkness", .supported = "print-darkness-supported", .default = "print-darkness-default", .label = @import("i18n").msg("Darkness") },
+ .{ .name = "print-speed", .supported = "print-speed-supported", .default = "print-speed-default", .label = @import("i18n").msg("Speed") },
};
fn safeText(a: A, value: []const u8) ![]u8 {
@@ -234,17 +234,17 @@ fn attributeValue(a: A, attr: ipp.Attribute) !?[]const u8 {
}
fn choiceLabel(name: []const u8, value: []const u8) []const u8 {
if (eq(u8, name, "sides")) {
- if (eq(u8, value, "one-sided")) return "One-sided";
- if (eq(u8, value, "two-sided-long-edge")) return "Two-sided, long edge";
- if (eq(u8, value, "two-sided-short-edge")) return "Two-sided, short edge";
+ if (eq(u8, value, "one-sided")) return @import("i18n").tr("One-sided");
+ if (eq(u8, value, "two-sided-long-edge")) return @import("i18n").tr("Two-sided, long edge");
+ if (eq(u8, value, "two-sided-short-edge")) return @import("i18n").tr("Two-sided, short edge");
} else if (eq(u8, name, "print-color-mode")) {
- if (eq(u8, value, "monochrome")) return "Black and white";
- if (eq(u8, value, "color")) return "Colour";
- if (eq(u8, value, "auto")) return "Automatic";
+ if (eq(u8, value, "monochrome")) return @import("i18n").tr("Black and white");
+ if (eq(u8, value, "color")) return @import("i18n").tr("Colour");
+ if (eq(u8, value, "auto")) return @import("i18n").tr("Automatic");
} else if (eq(u8, name, "print-quality")) {
- if (eq(u8, value, "3")) return "Draft";
- if (eq(u8, value, "4")) return "Normal";
- if (eq(u8, value, "5")) return "High";
+ if (eq(u8, value, "3")) return @import("i18n").tr("Draft");
+ if (eq(u8, value, "4")) return @import("i18n").tr("Normal");
+ if (eq(u8, value, "5")) return @import("i18n").tr("High");
}
return value;
}
@@ -293,14 +293,14 @@ pub fn parseAttributes(a: A, attributes: []const ipp.Attribute) ![]Group {
}
if (choices.items.len != 0 or range != null) try options.append(mem, .{
.name = definition.name,
- .label = definition.label,
+ .label = definition.label.get(),
.choices = choices.items,
.default = default,
.range = range,
});
}
if (options.items.len == 0) return a.alloc(Group, 0);
- return clone(a, &.{.{ .name = "general", .label = "Printer settings", .options = options.items }});
+ return clone(a, &.{.{ .name = "general", .label = @import("i18n").tr("Printer settings"), .options = options.items }});
}
fn clone(a: A, source: []const Group) ![]Group {
@@ -358,7 +358,7 @@ pub fn parsePpd(a: A, bytes: []const u8) ![]Group {
defer arena.deinit();
const mem = arena.allocator();
var groups: std.ArrayList(BuildGroup) = .empty;
- try groups.append(mem, .{ .name = "general", .label = "General" });
+ try groups.append(mem, .{ .name = "general", .label = @import("i18n").tr("General") });
var group: usize = 0;
var parents: [8]usize = undefined;
var depth: usize = 0;
diff --git a/src/screenshot/capture.zig b/src/screenshot/capture.zig
index 369bedb..a3126f6 100644
--- a/src/screenshot/capture.zig
+++ b/src/screenshot/capture.zig
@@ -1,3 +1,4 @@
+const i18n = @import("i18n");
const std = @import("std");
const posix = std.posix;
const wl = @import("wayland").server.wl;
@@ -537,17 +538,17 @@ fn onWorkerComplete(res: worker.Result) void {
if (res.client_id == null) {
const picker = @import("selector.zig");
if (res.err_msg) |err| {
- picker.report(mgr.server, "Screenshot failed", err);
+ picker.report(mgr.server, i18n.tr("Screenshot failed"), err);
return;
}
if (mgr.server.locker != null or mgr.server.shutting_down) return;
if (res.png) |png| {
@import("../clipboard.zig").copyPng(mgr.server, png) catch {
- picker.report(mgr.server, "Screenshot saved; clipboard failed", res.path orelse "");
+ picker.report(mgr.server, i18n.tr("Screenshot saved; clipboard failed"), res.path orelse "");
return;
};
- picker.report(mgr.server, "Screenshot saved and copied", res.path orelse "");
- } else picker.report(mgr.server, "Screenshot saved; clipboard failed", res.path orelse "");
+ picker.report(mgr.server, i18n.tr("Screenshot saved and copied"), res.path orelse "");
+ } else picker.report(mgr.server, i18n.tr("Screenshot saved; clipboard failed"), res.path orelse "");
return;
}
const ipc = mgr.server.ipc orelse return;
diff --git a/src/screenshot/selector.zig b/src/screenshot/selector.zig
index b8f42f8..a882234 100644
--- a/src/screenshot/selector.zig
+++ b/src/screenshot/selector.zig
@@ -1,4 +1,5 @@
//! Native, modal region picker. All geometry is output-local logical pixels.
+const i18n = @import("i18n");
const std = @import("std");
const wlr = @import("wlroots");
const sn = @import("../node.zig");
@@ -131,7 +132,7 @@ pub fn flush(self: *Self, output: *Output) void {
}
self.updateSelection() catch |err| {
self.cancel();
- report(output.server, "Screenshot failed", @errorName(err));
+ report(output.server, i18n.tr("Screenshot failed"), @errorName(err));
};
}
@@ -199,10 +200,10 @@ fn paintToolbar(self: *Self) !void {
const buttons = ui.widgets.button;
// Region is the mode in effect; Full Screen captures at once. `button()`
// hit tests the same boxes.
- buttons.paint(&r, .{ .x = 9, .y = 8, .w = 132, .h = 42 }, .{ .variant = .primary, .leading_icon = .region, .label = "Region" }, .{});
- buttons.paint(&r, .{ .x = 146, .y = 8, .w = 164, .h = 42 }, .{ .variant = .ghost, .leading_icon = .display, .label = "Full Screen" }, .{});
- buttons.paint(&r, .{ .x = 316, .y = 8, .w = 36, .h = 42 }, .{ .variant = .chrome, .icon = .close, .label = "Cancel" }, .{});
- r.drawText(12, 64, 340, 22, .{ .content = "Drag to save and copy · Esc to cancel", .font_size = 13, .color = selectionWhite().toRgba() });
+ buttons.paint(&r, .{ .x = 9, .y = 8, .w = 132, .h = 42 }, .{ .variant = .primary, .leading_icon = .region, .label = i18n.tr("Region") }, .{});
+ buttons.paint(&r, .{ .x = 146, .y = 8, .w = 164, .h = 42 }, .{ .variant = .ghost, .leading_icon = .display, .label = i18n.tr("Full Screen") }, .{});
+ buttons.paint(&r, .{ .x = 316, .y = 8, .w = 36, .h = 42 }, .{ .variant = .chrome, .icon = .close, .label = i18n.tr("Cancel") }, .{});
+ r.drawText(12, 64, 340, 22, .{ .content = i18n.tr("Drag to save and copy · Esc to cancel"), .font_size = 13, .color = selectionWhite().toRgba() });
const node = try tree.createSceneBuffer(&image.base);
node.setDestSize(360, 88);
node.node.setPosition(self.toolbarX(), 20);
@@ -262,7 +263,7 @@ fn capture(self: *Self, crop: ?wlr.Box) void {
}
pub fn save(server: *Server, output: *Output, crop: ?wlr.Box) void {
- saveInner(server, output, crop) catch |err| report(server, "Screenshot failed", @errorName(err));
+ saveInner(server, output, crop) catch |err| report(server, i18n.tr("Screenshot failed"), @errorName(err));
}
fn saveInner(server: *Server, output: *Output, crop: ?wlr.Box) !void {
@@ -277,11 +278,11 @@ fn saveInner(server: *Server, output: *Output, crop: ?wlr.Box) !void {
const path = try std.fmt.allocPrint(gpa, "{s}/Screenshot-{d}-{d}-{d}.png", .{ directory, ts.sec, ts.nsec, mgr.next_job_id });
defer gpa.free(path);
const result = try mgr.queueRequest(.{ .output = std.mem.span(output.wlr_output.name), .path = path, .crop = if (crop) |b| .{ .x = b.x, .y = b.y, .width = b.width, .height = b.height } else null }, null, null);
- if (result == .err) report(server, "Screenshot failed", result.err);
+ if (result == .err) report(server, i18n.tr("Screenshot failed"), result.err);
}
pub fn report(server: *Server, title: []const u8, body: []const u8) void {
if (server.notifications) |manager| {
- _ = manager.postNotification("Screenshot", 0, "", title, body, &.{}, 1, false, true, 3500, "", null) catch {};
+ _ = manager.postNotification(i18n.tr("Screenshot"), 0, "", title, body, &.{}, 1, false, true, 3500, "", null) catch {};
}
}
diff --git a/src/server/icons.zig b/src/server/icons.zig
index 8f8fd75..e70ccdf 100644
--- a/src/server/icons.zig
+++ b/src/server/icons.zig
@@ -27,9 +27,11 @@ pub fn iconLookup(server: *Server, name: []const u8, size_px: i32) icon_service_
/// that entry's Icon= name.
/// 2. A catalog entry whose desktop-file ID (sans ".desktop") exactly
/// matches `app_id` → use its Icon= name.
-/// 3. Reverse-DNS strip: "com.example.App" → last component, tried against
+/// 3. A catalog entry resolved through the stable application identity
+/// (e.g. Transmission's per-instance GTK ID) → use its Icon= name.
+/// 4. Reverse-DNS strip: "com.example.App" → last component, tried against
/// catalog icon names.
-/// 4. Fall back to `app_id` unchanged.
+/// 5. Fall back to `app_id` unchanged.
/// The returned slice is either borrowed from `snap` arena memory or is a
/// sub-slice of `app_id`; the caller must keep `snap` retained until done.
pub fn iconNameForAppId(snap: *applications.Snapshot, app_id: []const u8) []const u8 {
@@ -47,20 +49,15 @@ pub fn iconNameForAppId(snap: *applications.Snapshot, app_id: []const u8) []cons
}
}
- // Pass 2: desktop-file ID (strip ".desktop" suffix) match.
- for (snap.entries) |e| {
- // e.id is the desktop file ID, e.g. "brave-browser.desktop" or
- // "dev.zed.Zed.desktop"; strip the suffix before comparing.
- const id = if (std.mem.endsWith(u8, e.id, ".desktop"))
- e.id[0 .. e.id.len - ".desktop".len]
- else
- e.id;
- if (std.mem.eql(u8, id, app_id)) {
- return e.icon orelse app_id;
- }
+ // Share the catalog mapping used to launch another window. In particular,
+ // this matches desktop-file IDs with or without the .desktop suffix.
+ // Transmission advertises com.transmissionbt.transmission_<n>_<n>, while
+ // its installed desktop entry and icon can be named transmission-gtk.
+ if (@import("../window_tabs.zig").entry(snap.entries, app_id)) |entry| {
+ return entry.icon orelse app_id;
}
- // Pass 3: reverse-DNS heuristic — "dev.zed.Zed" → last component "Zed".
+ // Reverse-DNS heuristic — "dev.zed.Zed" → last component "Zed".
// Only fire when there are at least two dots (genuine reverse-DNS prefix).
if (std.mem.lastIndexOfScalar(u8, app_id, '.')) |dot| {
const last = app_id[dot + 1 ..];
@@ -79,6 +76,31 @@ pub fn iconNameForAppId(snap: *applications.Snapshot, app_id: []const u8) []cons
return app_id;
}
+test "app icons use catalog identities before reverse-DNS fallback" {
+ const snap = try applications.Snapshot.create(std.testing.allocator);
+ defer snap.release();
+ snap.entries = &.{
+ .{ .id = "transmission-gtk.desktop", .desktop_file_path = "", .name = "Transmission", .exec = "transmission-gtk %U", .icon = "transmission-artwork" },
+ .{ .id = "browser.desktop", .desktop_file_path = "", .name = "Browser", .exec = "browser", .startup_wm_class = "browser-class", .icon = "browser-artwork" },
+ .{ .id = "com.example.App.desktop", .desktop_file_path = "", .name = "App", .exec = "app", .icon = "app-artwork" },
+ };
+ for ([_][2][]const u8{
+ .{ "com.transmissionbt.transmission_1000_12345", "transmission-artwork" },
+ .{ "com.transmissionbt.transmission_1000_67890", "transmission-artwork" },
+ .{ "com.transmissionbt.transmission", "transmission-artwork" },
+ .{ "transmission-gtk", "transmission-artwork" },
+ .{ "transmission-gtk.desktop", "transmission-artwork" },
+ .{ "browser-class", "browser-artwork" },
+ .{ "com.example.App", "app-artwork" },
+ .{ "com.unknown.Other", "Other" },
+ .{ "com.transmissionbt.transmission_bad_12345", "transmission_bad_12345" },
+ .{ "unknown", "unknown" },
+ .{ "", "" },
+ }) |case| {
+ try std.testing.expectEqualStrings(case[1], iconNameForAppId(snap, case[0]));
+ }
+}
+
pub fn iconAcquire(server: *Server, id: u64) void {
if (server.icon_service) |svc| svc.acquire(id);
}
diff --git a/src/server/wallpaper.zig b/src/server/wallpaper.zig
index 68755ba..a71f34b 100644
--- a/src/server/wallpaper.zig
+++ b/src/server/wallpaper.zig
@@ -177,6 +177,7 @@ pub fn handleIconWake(fd: c_int, mask: wl.EventMask, server: *Server) c_int {
if (output.start_menu) |sm| sm.iconsReady();
}
if (server.notifications) |mgr| mgr.iconsReady();
+ server.input.window_menu.iconsReady();
if (server.input.open_control_center) |cc| @import("../control_center/sections/appearance.zig").iconsReady(&cc.appearance);
if (server.tray) |tray| tray.changed();
server.scheduleFrames();
diff --git a/src/session/greeter.zig b/src/session/greeter.zig
index 4144296..2ee088e 100644
--- a/src/session/greeter.zig
+++ b/src/session/greeter.zig
@@ -2,6 +2,7 @@
//! choice, and the rediwm-dm conversation. The greeter runs unprivileged as
//! rediwm-dm's greeter user; rediwm-dm owns PAM, credentials and starting the
//! session, so nothing here can grant a login by itself.
+const i18n = @import("i18n");
const std = @import("std");
const wl = @import("wayland").server.wl;
const dm_ipc = @import("dm_ipc.zig");
@@ -147,7 +148,7 @@ pub const Greeter = struct {
self.disconnect();
return err;
};
- return "Signing in…";
+ return i18n.tr("Signing in…");
}
/// Answers the question the daemon is waiting on.
@@ -288,11 +289,11 @@ pub const Greeter = struct {
const session = self.selectedSession() orelse return self.fail("no session selected");
self.phase = .starting;
self.send(.{ .start = session.id }) catch return self.failSend();
- return .{ .status = "Starting session…" };
+ return .{ .status = i18n.tr("Starting session…") };
}
fn fail(self: *Greeter, text: []const u8) Event {
- const message = self.setMessage("Sign-in failed: ", text);
+ const message = i18n.fmt(&self.message, i18n.tr("Sign-in failed: {reason}"), .{ .reason = text }) catch i18n.tr("Sign-in failed");
self.clearPending();
self.phase = .cancelling;
self.send(.cancel) catch self.disconnect();
diff --git a/src/session/lock.zig b/src/session/lock.zig
index 9e2d017..688f1a1 100644
--- a/src/session/lock.zig
+++ b/src/session/lock.zig
@@ -3,6 +3,7 @@
//!
//! Greeter mode (`rediwm --greeter`) is the same lock that never unlocks: it
//! picks an account and session and signs in through rediwm-dm, then exits.
+const i18n = @import("i18n");
const std = @import("std");
const Child = @import("child.zig");
const wl = @import("wayland").server.wl;
@@ -98,7 +99,7 @@ pub const Lock = struct {
std.debug.assert(server.locker == null);
const self = try gpa.create(Lock);
errdefer gpa.destroy(self);
- self.* = .{ .server = server, .timer = undefined, .origin = origin };
+ self.* = .{ .server = server, .timer = undefined, .origin = origin, .status = i18n.tr("Press Enter to unlock") };
var home: [4096]u8 = @splat(0);
if (rediwm_account(&self.user, self.user.len, &self.name, self.name.len, &home, home.len) != 0) return error.NoAccount;
self.timer = try server.wl_server.getEventLoop().addTimer(*Lock, tick, self);
@@ -258,10 +259,10 @@ pub const Lock = struct {
}
pub fn idleStatus(self: *const Lock) []const u8 {
- const greeter = self.greeter orelse return unlock_hint;
- if (greeter.users.len == 0) return "No user accounts found";
- if (greeter.sessions.len == 0) return "No sessions installed";
- return login_hint;
+ const greeter = self.greeter orelse return i18n.tr("Press Enter to unlock");
+ if (greeter.users.len == 0) return i18n.tr("No user accounts found");
+ if (greeter.sessions.len == 0) return i18n.tr("No sessions installed");
+ return i18n.tr("Press Enter to log in");
}
pub fn busy(self: *const Lock) bool {
@@ -285,7 +286,7 @@ pub const Lock = struct {
self.focus = 0;
},
.rejected => {
- self.status = "Incorrect password. Try again.";
+ self.status = i18n.tr("Incorrect password. Try again.");
self.retry_at = anim.nowMs() + 1500;
},
.failed => |message| {
@@ -293,13 +294,13 @@ pub const Lock = struct {
self.retry_at = anim.nowMs() + 1500;
},
.started => {
- self.status = "Starting session…";
+ self.status = i18n.tr("Starting session…");
std.log.info("greeter: rediwm-dm accepted the session; exiting", .{});
// Out to black, as the session comes in from it.
self.server.reveal.cover(self.server, Server.terminate);
},
.disconnected => {
- self.status = "Lost contact with login service. Try again.";
+ self.status = i18n.tr("Lost contact with login service. Try again.");
std.log.info("greeter: lost the rediwm-dm connection; exiting so it starts a new greeter", .{});
self.server.terminate();
},
@@ -385,7 +386,7 @@ pub const Lock = struct {
/// The lock client died without unlocking: the built-in screen takes over.
pub fn clientGone(self: *Lock) void {
self.focus = 0;
- self.status = unlock_hint;
+ self.status = i18n.tr("Press Enter to unlock");
self.changed();
}
@@ -477,7 +478,7 @@ pub const Lock = struct {
pub fn powerExited(owner: ?*anyopaque, _: *Child, status: ?u32) void {
const self: *Lock = @ptrCast(@alignCast(owner.?));
self.power_child = null;
- self.status = if (status != null and status.? == 0) "Power request accepted" else "Power request denied or unavailable";
+ self.status = if (status != null and status.? == 0) i18n.tr("Power request accepted") else i18n.tr("Power request denied or unavailable");
self.changed();
}
@@ -512,7 +513,7 @@ pub const Lock = struct {
self.release();
return 0;
}
- self.status = "Unable to unlock. Try again.";
+ self.status = i18n.tr("Unable to unlock. Try again.");
self.retry_at = anim.nowMs() + 1500;
self.changed();
return 0;
@@ -532,7 +533,7 @@ pub const Lock = struct {
self.auth = null;
}
}
- self.status = if (self.auth != null) "Checking password…" else "Authentication unavailable. Try again.";
+ self.status = if (self.auth != null) i18n.tr("Checking password…") else i18n.tr("Authentication unavailable. Try again.");
self.changed();
}
@@ -541,18 +542,18 @@ pub const Lock = struct {
defer self.changed();
if (greeter.phase == .prompting) {
greeter.answer(self.field().value()) catch {
- self.status = "Lost contact with login service. Try again.";
+ self.status = i18n.tr("Lost contact with login service. Try again.");
};
- if (greeter.phase == .authenticating) self.status = "Checking…";
+ if (greeter.phase == .authenticating) self.status = i18n.tr("Checking…");
self.clear();
return;
}
if (greeter.busy() or self.input.len == 0) return;
self.status = greeter.begin(self.field().value()) catch |err| switch (err) {
- error.NoService => "No login service",
- error.NoAccount => "No user accounts found",
- error.NoSession => "No sessions installed",
- else => "Cannot reach login service. Try again.",
+ error.NoService => i18n.tr("No login service"),
+ error.NoAccount => i18n.tr("No user accounts found"),
+ error.NoSession => i18n.tr("No sessions installed"),
+ else => i18n.tr("Cannot reach login service. Try again."),
};
self.clear();
}
@@ -632,7 +633,7 @@ pub const Lock = struct {
self.focus = 0;
if (self.prompting()) {
self.greeter.?.cancel();
- self.status = "Sign-in cancelled";
+ self.status = i18n.tr("Sign-in cancelled");
} else if (!self.busy()) self.status = self.idleStatus();
return;
}
@@ -678,7 +679,7 @@ pub const Lock = struct {
if (self.confirm == null or self.confirm.? != reboot) {
self.clear();
self.confirm = reboot;
- self.status = if (reboot) "Restart? Activate Restart again to confirm." else "Power off? Activate Power again to confirm.";
+ self.status = if (reboot) i18n.tr("Restart? Activate Restart again to confirm.") else i18n.tr("Power off? Activate Power again to confirm.");
return;
}
self.confirm = null;
@@ -687,15 +688,15 @@ pub const Lock = struct {
// auth agent behind the locked screen.
var argv: [4][]const u8 = undefined;
var child = std.process.spawn(self.server.io, .{ .argv = power_cmd.commandArgv(&argv, if (reboot) .reboot else .poweroff, false, true) }) catch {
- self.status = "Power service unavailable";
+ self.status = i18n.tr("Power service unavailable");
return;
};
self.power_child = Child.watch(gpa, self.server.wl_server.getEventLoop(), child.id.?, self, powerExited) catch {
child.kill(self.server.io);
- self.status = "Power service unavailable";
+ self.status = i18n.tr("Power service unavailable");
return;
};
- self.status = "Requesting power action…";
+ self.status = i18n.tr("Requesting power action…");
},
focus_account, focus_session => self.choose(focus, 1),
else => {},
@@ -995,10 +996,12 @@ pub fn paint(r: *ui.paint.Renderer, lock: *Lock, w: f32, h: f32, clock_24h: bool
var time_buf: [32]u8 = @splat(0);
var date_buf: [96]u8 = @splat(0);
var period: [16]u8 = @splat(0);
+ var pattern: [256]u8 = undefined;
+ const date_pattern = std.fmt.bufPrintZ(&pattern, "{s}", .{i18n.trc("date", "%A, %B %-d")}) catch "%A, %B %-d";
if (c.localtime_r(&raw, &tm) != null) {
_ = c.strftime(&time_buf, time_buf.len, if (clock_24h) "%H:%M" else "%l:%M", &tm);
if (!clock_24h) _ = c.strftime(&period, period.len, "%p", &tm);
- _ = c.strftime(&date_buf, date_buf.len, "%A, %B %-d", &tm);
+ _ = c.strftime(&date_buf, date_buf.len, date_pattern, &tm);
}
const time_str = std.mem.trim(u8, std.mem.sliceTo(&time_buf, 0), " ");
const period_str = std.mem.sliceTo(&period, 0);
@@ -1025,23 +1028,23 @@ pub fn paint(r: *ui.paint.Renderer, lock: *Lock, w: f32, h: f32, clock_24h: bool
.revealed = lock.reveal,
.trailing_focused = lock.focus == 1,
.external_caret = true,
- }, lock.field(), if (lock.prompting()) "Response" else "Password");
+ }, lock.field(), if (lock.prompting()) i18n.tr("Response") else i18n.tr("Password"));
const action = if (lock.greeter != null)
- (if (lock.busy()) "Signing in…" else if (lock.prompting()) "Continue" else "Log In")
- else if (lock.busy()) "Checking…" else "Unlock";
+ (if (lock.busy()) i18n.tr("Signing in…") else if (lock.prompting()) i18n.tr("Continue") else i18n.tr("Log In"))
+ else if (lock.busy()) i18n.tr("Checking…") else i18n.tr("Unlock");
ui.widgets.button.paint(&zoomed, geo.submit(), .{
.variant = .primary,
.size = .lg,
.label = action,
.trailing_icon = .chevron_right,
}, .{ .pointer = if (lock.busy()) .disabled else .idle, .focused = lock.focus == 2 });
- label(r, cx, y + 590 * s, w - 20, 32 * s, if (lock.caps and std.mem.eql(u8, lock.status, lock.idleStatus())) "Caps Lock is on" else lock.status, 16 * s, muted);
+ label(r, cx, y + 590 * s, w - 20, 32 * s, if (lock.caps and std.mem.eql(u8, lock.status, lock.idleStatus())) i18n.tr("Caps Lock is on") else lock.status, 16 * s, muted);
for (0..2) |i| ui.widgets.button.paint(&zoomed, geo.powerAction(i), .{
.variant = .ghost,
.size = .sm,
.stacked = true,
.leading_icon = if (i == 0) .power else .reboot,
- .label = if (i == 0) "Power" else "Restart",
+ .label = if (i == 0) i18n.tr("Power") else i18n.tr("Restart"),
}, .{ .focused = lock.focus == 3 + i });
r.fillRect(w - 120 * s, h - 90 * s, s, 34 * s, .{ .color = ui.theme.global.lock_divider });
return .{ .caret = field.caret, .factor = s };
@@ -1064,7 +1067,7 @@ pub fn paintChoices(r: *ui.paint.Renderer, lock: *const Lock, greeter: *const Gr
.variant = .ghost,
.icon = if (side < 0) .chevron_left else .chevron_right,
.icon_scale = 0.7,
- .label = if (side < 0) "Previous account" else "Next account",
+ .label = if (side < 0) i18n.tr("Previous account") else i18n.tr("Next account"),
}, .{});
}
}
@@ -1073,7 +1076,7 @@ pub fn paintChoices(r: *ui.paint.Renderer, lock: *const Lock, greeter: *const Gr
const x = 30 * s;
const name_w = @min(280 * s, (text.measureWidthF(session.name, .manrope, 16 * s, r.scale) catch 280 * s) + 1);
r.drawText(x, h - 90 * s, name_w, 30 * s, .{ .content = session.name, .font_size = 16 * s, .color = if (lock.focus == focus_session) fg else ui.theme.global.lock_session_fg });
- const caption = if (greeter.sessions.len > 1) "Session ›" else "Session";
+ const caption = if (greeter.sessions.len > 1) i18n.tr("Session ›") else i18n.tr("Session");
const caption_w = (text.measureWidthF(caption, .manrope, 13 * s, r.scale) catch 90 * s) + 1;
r.drawText(x, h - 54 * s, caption_w, 24 * s, .{ .content = caption, .font_size = 13 * s, .color = color });
if (lock.focus == focus_session) r.fillRect(x - 12 * s, h - 96 * s, @max(name_w, caption_w) + 24 * s, 76 * s, .{ .color = .{ 0, 0, 0, 0 }, .radius = 10 * s, .border_width = s, .border_color = fg });
diff --git a/src/session/power.zig b/src/session/power.zig
index e22fde2..47bd5e2 100644
--- a/src/session/power.zig
+++ b/src/session/power.zig
@@ -11,6 +11,7 @@
//! login (REDIWM_LOGIN_SESSION) also follows logind's Lock request and keeps
//! the session's LockedHint current. logind's Unlock is deliberately ignored:
//! only the lock screen's own authentication ends a lock.
+const i18n = @import("i18n");
const std = @import("std");
const Child = @import("child.zig");
const wl = @import("wayland").server.wl;
@@ -43,9 +44,9 @@ pub const Kind = enum {
fn label(self: Kind) []const u8 {
return switch (self) {
- .poweroff => "Power off",
- .reboot => "Restart",
- .@"suspend" => "Suspend",
+ .poweroff => i18n.tr("Power off"),
+ .reboot => i18n.tr("Restart"),
+ .@"suspend" => i18n.tr("Suspend"),
};
}
fn canMethod(self: Kind) []const u8 {
@@ -454,8 +455,8 @@ pub const Manager = struct {
.@"suspend" => self.can_suspend,
};
return switch (cap) {
- .no => "Denied by policy",
- .na => "Not supported",
+ .no => i18n.tr("Denied by policy"),
+ .na => i18n.tr("Not supported"),
else => null,
};
}
@@ -578,7 +579,7 @@ pub const Manager = struct {
fn beginRequest(self: *Manager, req: Request) void {
if (self.pending != null) {
log.warn("{s}: rejected, {s} is already pending", .{ req.kind.label(), self.pending.?.kind.label() });
- self.report(req.kind, "Another power action is already in progress.");
+ self.report(req.kind, i18n.tr("Another power action is already in progress."));
return;
}
self.pending = req;
@@ -588,7 +589,7 @@ pub const Manager = struct {
}
const conn = self.connection() catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not reach the system's power service.", err);
+ self.failed(req.kind, i18n.tr("Could not reach the system's power service."), err);
return;
};
// A freshly opened connection queries once its Hello + Introspect
@@ -609,14 +610,14 @@ pub const Manager = struct {
// session log. Completion is delivered by the pidfd watcher.
}) catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not start the power command.", err);
+ self.failed(req.kind, i18n.tr("Could not start the power command."), err);
return;
};
self.command_tool = argv[0];
self.command_child = Child.watch(self.allocator, self.server.wl_server.getEventLoop(), child.id.?, self, commandExited) catch |err| {
child.kill(self.server.io);
self.pending = null;
- self.failed(req.kind, "Could not watch the power command.", err);
+ self.failed(req.kind, i18n.tr("Could not watch the power command."), err);
return;
};
}
@@ -630,7 +631,7 @@ pub const Manager = struct {
log.info("{s} requested via {s}", .{ req.kind.label(), self.command_tool });
} else {
log.warn("{s}: {s} failed (wait status {?d})", .{ req.kind.label(), self.command_tool, status });
- self.report(req.kind, "Power request failed. Check permissions and applications blocking shutdown.");
+ self.report(req.kind, i18n.tr("Power request failed. Check permissions and applications blocking shutdown."));
}
}
@@ -663,7 +664,7 @@ pub const Manager = struct {
const req = self.pending orelse return;
if (req.kind != .@"suspend") return;
self.pending = null;
- self.failed(req.kind, "Could not reach the system's power service.", err);
+ self.failed(req.kind, i18n.tr("Could not reach the system's power service."), err);
return;
};
self.hello_done = true;
@@ -786,7 +787,7 @@ pub const Manager = struct {
const body: wire.Writer = .{ .allocator = self.allocator };
_ = conn.call(bus_name, bus_path, bus_interface, req.kind.canMethod(), "", &body, self, onCapability, call_timeout_ms) catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not query logind.", err);
+ self.failed(req.kind, i18n.tr("Could not query logind."), err);
};
}
@@ -796,17 +797,17 @@ pub const Manager = struct {
const req = self.pending orelse return;
var msg = result catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not query logind.", err);
+ self.failed(req.kind, i18n.tr("Could not query logind."), err);
return;
};
if (msg.kind != .method_return) {
self.pending = null;
- self.failedMsg(req.kind, "Could not query logind.", msg);
+ self.failedMsg(req.kind, i18n.tr("Could not query logind."), msg);
return;
}
const cap = msg.body.string() catch {
self.pending = null;
- self.failed(req.kind, "Logind returned a malformed reply.", error.InvalidReply);
+ self.failed(req.kind, i18n.tr("Logind returned a malformed reply."), error.InvalidReply);
return;
};
self.setCapability(req.kind, Capability.parse(cap));
@@ -815,19 +816,19 @@ pub const Manager = struct {
if (std.mem.eql(u8, cap, "no")) {
self.pending = null;
log.warn("{s}: denied by system policy", .{req.kind.label()});
- self.report(req.kind, "Denied by system policy.");
+ self.report(req.kind, i18n.tr("Denied by system policy."));
return;
}
if (std.mem.eql(u8, cap, "na")) {
self.pending = null;
log.warn("{s}: not available on this system", .{req.kind.label()});
- self.report(req.kind, "Not available on this system.");
+ self.report(req.kind, i18n.tr("Not available on this system."));
return;
}
if (!std.mem.eql(u8, cap, "yes") and !std.mem.eql(u8, cap, "challenge")) {
self.pending = null;
log.warn("{s}: unrecognized logind capability '{s}'", .{ req.kind.label(), cap });
- self.report(req.kind, "Logind returned an unrecognized reply.");
+ self.report(req.kind, i18n.tr("Logind returned an unrecognized reply."));
return;
}
@@ -835,7 +836,7 @@ pub const Manager = struct {
if (std.mem.eql(u8, cap, "challenge") and !req.interactive) {
self.pending = null;
log.warn("{s}: automatic request denied, interactive authorization required", .{req.kind.label()});
- self.report(req.kind, "Interactive authorization required.");
+ self.report(req.kind, i18n.tr("Interactive authorization required."));
return;
}
@@ -850,22 +851,22 @@ pub const Manager = struct {
if (self.has_with_flags) {
body.uint64(SD_LOGIND_ROOT_CHECK_INHIBITORS) catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not build the request.", err);
+ self.failed(req.kind, i18n.tr("Could not build the request."), err);
return;
};
_ = conn.callWithFlags(bus_name, bus_path, bus_interface, req.kind.withFlagsMethod(), "t", &body, self, onAction, call_timeout_ms, msg_flags) catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not reach logind.", err);
+ self.failed(req.kind, i18n.tr("Could not reach logind."), err);
};
} else {
body.boolean(req.interactive) catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not build the request.", err);
+ self.failed(req.kind, i18n.tr("Could not build the request."), err);
return;
};
_ = conn.callWithFlags(bus_name, bus_path, bus_interface, req.kind.actionMethod(), "b", &body, self, onAction, call_timeout_ms, msg_flags) catch |err| {
self.pending = null;
- self.failed(req.kind, "Could not reach logind.", err);
+ self.failed(req.kind, i18n.tr("Could not reach logind."), err);
};
}
}
@@ -876,7 +877,7 @@ pub const Manager = struct {
const req = self.pending orelse return;
const msg = result catch |err| {
self.pending = null;
- self.failed(req.kind, "Logind request failed.", err);
+ self.failed(req.kind, i18n.tr("Logind request failed."), err);
return;
};
if (msg.kind == .method_return) {
@@ -904,7 +905,7 @@ pub const Manager = struct {
}
self.pending = null;
log.warn("{s}: blocked by an active inhibitor lock", .{req.kind.label()});
- self.report(req.kind, "Blocked by an active inhibitor lock.");
+ self.report(req.kind, i18n.tr("Blocked by an active inhibitor lock."));
return;
}
@@ -912,7 +913,7 @@ pub const Manager = struct {
if (std.mem.eql(u8, err_name, "org.freedesktop.DBus.Error.InteractiveAuthorizationRequired")) {
log.warn("{s}: interactive authorization required", .{req.kind.label()});
- self.report(req.kind, "Interactive authorization required.");
+ self.report(req.kind, i18n.tr("Interactive authorization required."));
return;
}
@@ -920,11 +921,11 @@ pub const Manager = struct {
std.mem.eql(u8, err_name, "org.freedesktop.login1.NotEnoughPrivileges"))
{
log.warn("{s}: denied by system policy ({s})", .{ req.kind.label(), err_name });
- self.report(req.kind, "Denied by system policy.");
+ self.report(req.kind, i18n.tr("Denied by system policy."));
return;
}
- self.failedMsg(req.kind, "Logind refused the request.", msg);
+ self.failedMsg(req.kind, i18n.tr("Logind refused the request."), msg);
}
fn queryInhibitors(self: *Manager, conn: *dbus.Connection) void {
@@ -933,7 +934,7 @@ pub const Manager = struct {
const req = self.pending orelse return;
self.pending = null;
log.warn("{s}: blocked by an active inhibitor lock", .{req.kind.label()});
- self.report(req.kind, "Blocked by an active inhibitor lock.");
+ self.report(req.kind, i18n.tr("Blocked by an active inhibitor lock."));
};
}
@@ -945,12 +946,12 @@ pub const Manager = struct {
var msg = result catch {
log.warn("{s}: blocked by an active inhibitor lock", .{req.kind.label()});
- self.report(req.kind, "Blocked by an active inhibitor lock.");
+ self.report(req.kind, i18n.tr("Blocked by an active inhibitor lock."));
return;
};
if (msg.kind != .method_return) {
log.warn("{s}: blocked by an active inhibitor lock", .{req.kind.label()});
- self.report(req.kind, "Blocked by an active inhibitor lock.");
+ self.report(req.kind, i18n.tr("Blocked by an active inhibitor lock."));
return;
}
self.handleInhibitors(req.kind, &msg.body);
@@ -960,7 +961,7 @@ pub const Manager = struct {
const target = kind.inhibitorType();
var array = body.array(8) catch {
log.warn("{s}: blocked by an active inhibitor lock", .{kind.label()});
- self.report(kind, "Blocked by an active inhibitor lock.");
+ self.report(kind, i18n.tr("Blocked by an active inhibitor lock."));
return;
};
while (array.offset < array.bytes.len) {
@@ -975,20 +976,20 @@ pub const Manager = struct {
log.warn("{s}: blocked by inhibitor from '{s}' (pid {d}, uid {d}): {s}", .{ kind.label(), who, pid, uid, why });
if (who.len > 0 and why.len > 0) {
var buf: [128]u8 = undefined;
- const text = std.fmt.bufPrint(&buf, "Blocked by {s}: {s}", .{ who, why }) catch "Blocked by an application.";
+ const text = i18n.fmt(&buf, i18n.tr("Blocked by {application}: {reason}"), .{ .application = who, .reason = why }) catch i18n.tr("Blocked by an application.");
self.report(kind, text);
} else if (who.len > 0) {
var buf: [128]u8 = undefined;
- const text = std.fmt.bufPrint(&buf, "Blocked by {s}.", .{who}) catch "Blocked by an application.";
+ const text = i18n.fmt(&buf, i18n.tr("Blocked by {application}."), .{ .application = who }) catch i18n.tr("Blocked by an application.");
self.report(kind, text);
} else {
- self.report(kind, "Blocked by an application.");
+ self.report(kind, i18n.tr("Blocked by an application."));
}
return;
}
}
log.warn("{s}: blocked by an active inhibitor lock", .{kind.label()});
- self.report(kind, "Blocked by an active inhibitor lock.");
+ self.report(kind, i18n.tr("Blocked by an active inhibitor lock."));
}
fn failed(self: *Manager, kind: Kind, why: []const u8, err: anyerror) void {
@@ -1004,8 +1005,8 @@ pub const Manager = struct {
fn report(self: *Manager, kind: Kind, why: []const u8) void {
if (self.server.notifications) |nm| {
var buf: [64]u8 = undefined;
- const title = std.fmt.bufPrint(&buf, "{s} failed", .{kind.label()}) catch "Power action failed";
- _ = nm.postNotification("Power", 0, "", title, why, &.{}, 1, false, true, 4000, "", null) catch {};
+ const title = i18n.fmt(&buf, i18n.tr("{action} failed"), .{ .action = kind.label() }) catch i18n.tr("Power action failed");
+ _ = nm.postNotification(i18n.tr("Power"), 0, "", title, why, &.{}, 1, false, true, 4000, "", null) catch {};
}
}
};
diff --git a/src/share_picker/client.zig b/src/share_picker/client.zig
index 106f7cf..85a0bac 100644
--- a/src/share_picker/client.zig
+++ b/src/share_picker/client.zig
@@ -1,6 +1,7 @@
//! Wayland GUI for `rediwm-share-picker --xdpw-dmenu`. Labels stay opaque;
//! the selected stdin line is returned unchanged. Layout constants are part
//! of the test contract in tests/screencast.py.
+const i18n = @import("i18n");
const std = @import("std");
const wl = @import("wayland").client.wl;
const xdg = @import("wayland").client.xdg;
@@ -381,11 +382,11 @@ const Client = struct {
c.cairo_rectangle(cr, 0, 0, w_f, h_f);
c.cairo_fill(cr);
setSource(cr, t.fg);
- drawText(cr, "Share screen", 16, h_f / 2.0 + 4, 13, true);
+ drawText(cr, i18n.tr("Share screen"), 16, h_f / 2.0 + 4, 13, true);
const close_w: f64 = @min(h_f, 32);
const hovered = self.inside and self.pointer_y < h_f and self.pointer_x >= w_f - close_w;
var layer = shell_ui.Layer.begin(cr, .{ .x = @floatCast(w_f - close_w), .y = 0, .w = @floatCast(close_w), .h = @floatCast(h_f) }) orelse return;
- ui_button.paint(&layer.renderer, layer.local(), .{ .variant = .chrome, .icon = .close, .label = "Close" }, .{ .pointer = if (hovered) .hover else .idle });
+ ui_button.paint(&layer.renderer, layer.local(), .{ .variant = .chrome, .icon = .close, .label = i18n.tr("Close") }, .{ .pointer = if (hovered) .hover else .idle });
layer.finish();
}
@@ -398,13 +399,13 @@ const Client = struct {
c.cairo_fill(cr);
setSource(cr, t.fg);
- drawText(cr, "Share screen", pad, 28, 16, true);
+ drawText(cr, i18n.tr("Share screen"), pad, 28, 16, true);
setSource(cr, t.dim);
- drawText(cr, "Choose a source. Escape cancels.", pad, 48, 12, false);
+ drawText(cr, i18n.tr("Choose a source. Escape cancels."), pad, 48, 12, false);
if (self.labels.len == 0) {
setSource(cr, t.dim);
- drawText(cr, "No sources available.", pad, header_h + 24, 13, false);
+ drawText(cr, i18n.tr("No sources available."), pad, header_h + 24, 13, false);
return;
}
@@ -513,7 +514,8 @@ pub fn run(labels: []const []const u8) !sources.Decision {
defer self.xdg_toplevel.destroy();
self.xdg_toplevel.setListener(*Client, Client.xdgToplevelEvent, &self);
self.xdg_toplevel.setAppId("rediwm-share-picker");
- self.xdg_toplevel.setTitle("Share screen");
+ var title: [256]u8 = undefined;
+ self.xdg_toplevel.setTitle(std.fmt.bufPrintZ(&title, "{s}", .{i18n.tr("Share screen")}) catch "Share screen");
self.xdg_toplevel.setMinSize(320, 200 + CSD_TITLEBAR_H);
if (self.decoration_manager) |mgr| {
diff --git a/src/share_picker/main.zig b/src/share_picker/main.zig
index 780cebc..a37ff63 100644
--- a/src/share_picker/main.zig
+++ b/src/share_picker/main.zig
@@ -37,6 +37,7 @@ const Options = struct {
};
pub fn main(init: std.process.Init) void {
+ @import("i18n").init(init.minimal.environ);
run(init) catch |err| {
std.debug.print("rediwm-share-picker: {}\n", .{err});
std.process.exit(1);
diff --git a/src/start_menu/applications.zig b/src/start_menu/applications.zig
index 2d96c96..74d06b7 100644
--- a/src/start_menu/applications.zig
+++ b/src/start_menu/applications.zig
@@ -16,6 +16,7 @@ const linux = std.os.linux;
const catalog_cache = @import("catalog_cache.zig");
const startup = @import("../startup.zig");
+const i18n = @import("i18n");
const stats = @import("../ipc/stats.zig");
const log = std.log.scoped(.catalog);
@@ -47,10 +48,16 @@ pub const Locale = struct {
modifier: []const u8 = "",
pub fn fromEnv(environ: std.process.Environ) Locale {
- const raw = environ.getPosix("LC_ALL") orelse
- environ.getPosix("LC_MESSAGES") orelse
- environ.getPosix("LANG") orelse return .{};
- return parseLocale(raw);
+ const raw = i18n.resolve("", environ);
+ return forLanguage(raw);
+ }
+
+ /// The catalog's bare Portuguese choice follows Brazilian Portuguese.
+ /// Keep parsing desktop-entry keys pure so Name[pt_BR] outranks Name[pt].
+ pub fn forLanguage(raw: []const u8) Locale {
+ var locale = parseLocale(raw);
+ if (locale.country.len == 0 and std.ascii.eqlIgnoreCase(locale.lang, "pt")) locale.country = "BR";
+ return locale;
}
pub fn parseLocale(raw: []const u8) Locale {
@@ -69,7 +76,7 @@ pub const Locale = struct {
rest = rest[0..at];
}
- if (std.mem.indexOfScalar(u8, rest, '_')) |us| {
+ if (std.mem.indexOfAny(u8, rest, "_-")) |us| {
loc.lang = rest[0..us];
loc.country = rest[us + 1 ..];
} else {
@@ -199,14 +206,14 @@ fn localePriority(key_loc: ?[]const u8, target: Locale) u8 {
if (target.lang.len == 0) return 0;
const parsed = Locale.parseLocale(k);
- if (!std.mem.eql(u8, parsed.lang, target.lang)) return 0;
+ if (!std.ascii.eqlIgnoreCase(parsed.lang, target.lang)) return 0;
if (target.modifier.len > 0 and std.mem.eql(u8, parsed.modifier, target.modifier) and
- target.country.len > 0 and std.mem.eql(u8, parsed.country, target.country))
+ target.country.len > 0 and std.ascii.eqlIgnoreCase(parsed.country, target.country))
{
return 5;
}
- if (target.country.len > 0 and std.mem.eql(u8, parsed.country, target.country)) {
+ if (target.country.len > 0 and std.ascii.eqlIgnoreCase(parsed.country, target.country)) {
return 4;
}
if (target.modifier.len > 0 and std.mem.eql(u8, parsed.modifier, target.modifier)) {
@@ -302,6 +309,7 @@ pub const Snapshot = struct {
loading: bool = false,
from_cache: bool = false,
scan_ns: u64 = 0,
+ locale_tag: []const u8 = "",
pub fn create(parent: Allocator) !*Snapshot {
const snap = try parent.create(Snapshot);
@@ -342,6 +350,7 @@ pub const Catalog = struct {
generation: u64 = 0,
epoch: u64 = 0,
refresh_requested: bool = false,
+ locale_tag: []u8,
running: std.atomic.Value(bool) = std.atomic.Value(bool).init(true),
eventfd: posix.fd_t = -1,
thread: ?std.Thread = null,
@@ -354,26 +363,26 @@ pub const Catalog = struct {
/// `scan` false leaves the catalog empty and never touches the cache
/// (the greeter has no start menu).
- pub fn init(allocator: Allocator, io: Io, environ: std.process.Environ, scan: bool) !*Catalog {
+ pub fn init(allocator: Allocator, io: Io, environ: std.process.Environ, scan: bool, locale_tag: []const u8) !*Catalog {
const cat = try allocator.create(Catalog);
errdefer allocator.destroy(cat);
const loading = try Snapshot.create(allocator);
+ errdefer loading.release();
loading.loading = scan;
const efd = c.eventfd(0, @intCast(std.os.linux.EFD.CLOEXEC | std.os.linux.EFD.NONBLOCK));
- if (efd < 0) {
- loading.release();
- allocator.destroy(cat);
- return error.EventFdFailed;
- }
+ if (efd < 0) return error.EventFdFailed;
errdefer _ = c.close(efd);
+ const owned_locale = try allocator.dupe(u8, locale_tag);
+ errdefer allocator.free(owned_locale);
cat.* = .{
.allocator = allocator,
.io = io,
.environ = environ,
.current = loading,
+ .locale_tag = owned_locale,
.eventfd = efd,
.delay_ns = startup.envDelayNs(environ, "REDIWM_CATALOG_SCAN_DELAY_MS"),
};
@@ -430,6 +439,7 @@ pub const Catalog = struct {
if (self.eventfd >= 0) _ = c.close(self.eventfd);
if (self.pending) |snap| snap.release();
self.current.release();
+ self.allocator.free(self.locale_tag);
self.allocator.destroy(self);
}
@@ -448,6 +458,19 @@ pub const Catalog = struct {
self.unlock();
}
+ /// Main thread updates the request; the worker snapshots it under the mutex.
+ pub fn setLocale(self: *Catalog, locale_tag: []const u8) !void {
+ self.lock();
+ defer self.unlock();
+ if (std.mem.eql(u8, self.locale_tag, locale_tag)) return;
+ const owned = try self.allocator.dupe(u8, locale_tag);
+ self.allocator.free(self.locale_tag);
+ self.locale_tag = owned;
+ self.refresh_requested = true;
+ self.epoch += 1;
+ self.signal();
+ }
+
pub fn refreshAsync(self: *Catalog) void {
self.requestRefresh();
}
@@ -458,8 +481,12 @@ pub const Catalog = struct {
_ = c.read(self.eventfd, &discard, discard.len);
self.lock();
- const incoming = self.pending;
+ var incoming = self.pending;
self.pending = null;
+ if (incoming) |candidate| if (!std.mem.eql(u8, candidate.locale_tag, self.locale_tag)) {
+ candidate.release();
+ incoming = null;
+ };
const old: ?*Snapshot = if (incoming != null) self.current else null;
if (incoming) |snap| {
self.generation += 1;
@@ -525,9 +552,16 @@ pub const Catalog = struct {
const snap = Snapshot.create(self.allocator) catch return null;
snap.epoch = epoch;
const a = snap.allocator();
+ self.lock();
+ snap.locale_tag = a.dupe(u8, self.locale_tag) catch {
+ self.unlock();
+ snap.release();
+ return null;
+ };
+ self.unlock();
const t0 = stats.nowNs();
- if (!baseline.loading) {
+ if (!baseline.loading and std.mem.eql(u8, baseline.locale_tag, snap.locale_tag)) {
if (collectSources(a, self.io, self.environ)) |sources| {
if (catalog_cache.sourcesMatch(baseline.sources, sources)) {
if (copyFiltered(a, baseline.entries, self.environ)) |entries| {
@@ -543,7 +577,7 @@ pub const Catalog = struct {
} else |_| {}
}
- const outcome = scanAll(a, self.io, self.environ) catch {
+ const outcome = scanAllWithLocale(a, self.io, self.environ, snap.locale_tag) catch {
snap.loading = false;
snap.provisional = false;
snap.scan_ns = stats.nowNs() -% t0;
@@ -555,7 +589,7 @@ pub const Catalog = struct {
snap.provisional = false;
snap.scan_ns = stats.nowNs() -% t0;
- const keys = catalog_cache.envKeys(a, self.environ) catch {
+ const keys = catalog_cache.envKeysWithLocale(a, self.environ, snap.locale_tag) catch {
return snap;
};
catalog_cache.write(self.allocator, self.io, self.environ, .{
@@ -572,7 +606,11 @@ pub const Catalog = struct {
fn readCacheSnapshot(self: *Catalog) ?*Snapshot {
const t0 = stats.nowNs();
const snap = Snapshot.create(self.allocator) catch return null;
- const payload = catalog_cache.read(snap.allocator(), self.io, self.environ) orelse {
+ const payload = catalog_cache.readWithLocale(snap.allocator(), self.io, self.environ, self.locale_tag) orelse {
+ snap.release();
+ return null;
+ };
+ snap.locale_tag = snap.allocator().dupe(u8, self.locale_tag) catch {
snap.release();
return null;
};
@@ -723,7 +761,11 @@ pub const ScanOutcome = struct {
};
pub fn scanAll(arena: Allocator, io: Io, environ: std.process.Environ) !ScanOutcome {
- const locale = Locale.fromEnv(environ);
+ return scanAllWithLocale(arena, io, environ, i18n.resolve("", environ));
+}
+
+pub fn scanAllWithLocale(arena: Allocator, io: Io, environ: std.process.Environ, locale_tag: []const u8) !ScanOutcome {
+ const locale = Locale.forLanguage(locale_tag);
const current_desktop = environ.getPosix("XDG_CURRENT_DESKTOP");
const app_dirs = try resolveApplicationDirs(arena, environ);
@@ -921,3 +963,19 @@ test "desktop file hidden override" {
try std.testing.expect(parsed.hidden);
try std.testing.expect(!checkDesktopVisibility(parsed, null));
}
+
+test "bare Portuguese requests Brazil without promoting generic desktop keys" {
+ var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
+ defer arena.deinit();
+ const entry = parseDesktopFile(arena.allocator(),
+ \\[Desktop Entry]
+ \\Type=Application
+ \\Name=Files
+ \\Name[pt_BR]=Arquivos
+ \\Name[pt]=Ficheiros
+ \\Exec=/bin/true
+ , Locale.forLanguage("pt.UTF-8")).?;
+ try std.testing.expectEqualStrings("Arquivos", entry.name.?);
+ try std.testing.expectEqualStrings("", Locale.parseLocale("pt").country);
+ try std.testing.expectEqualStrings("PT", Locale.forLanguage("pt_PT.UTF-8").country);
+}
diff --git a/src/start_menu/catalog_cache.zig b/src/start_menu/catalog_cache.zig
index 8a8eb75..f2ecf09 100644
--- a/src/start_menu/catalog_cache.zig
+++ b/src/start_menu/catalog_cache.zig
@@ -53,15 +53,18 @@ pub fn cachePath(arena: Allocator, environ: std.process.Environ) ![]const u8 {
return "";
}
-pub fn envKeys(arena: Allocator, environ: std.process.Environ) !struct {
+pub const EnvKeys = struct {
locale_tag: []const u8,
current_desktop: []const u8,
app_dirs: []const []const u8,
path_env: []const u8,
-} {
- const locale_tag = environ.getPosix("LC_ALL") orelse
- environ.getPosix("LC_MESSAGES") orelse
- environ.getPosix("LANG") orelse "";
+};
+
+pub fn envKeys(arena: Allocator, environ: std.process.Environ) !EnvKeys {
+ return envKeysWithLocale(arena, environ, @import("i18n").resolve("", environ));
+}
+
+pub fn envKeysWithLocale(arena: Allocator, environ: std.process.Environ, locale_tag: []const u8) !EnvKeys {
const current_desktop = environ.getPosix("XDG_CURRENT_DESKTOP") orelse "";
const path_env = environ.getPosix("PATH") orelse "";
const app_dirs = try applications.resolveApplicationDirs(arena, environ);
@@ -115,6 +118,10 @@ pub fn statPath(io: Io, path: []const u8) ?SourceIdent {
}
pub fn read(arena: Allocator, io: Io, environ: std.process.Environ) ?Payload {
+ return readWithLocale(arena, io, environ, @import("i18n").resolve("", environ));
+}
+
+pub fn readWithLocale(arena: Allocator, io: Io, environ: std.process.Environ, locale_tag: []const u8) ?Payload {
const path = cachePath(arena, environ) catch return null;
if (path.len == 0) return null;
const bytes = Io.Dir.cwd().readFileAlloc(io, path, arena, .limited(max_bytes)) catch return null;
@@ -122,7 +129,7 @@ pub fn read(arena: Allocator, io: Io, environ: std.process.Environ) ?Payload {
log.warn("ignoring catalog cache {s}: {}", .{ path, err });
return null;
};
- const keys = envKeys(arena, environ) catch return null;
+ const keys = envKeysWithLocale(arena, environ, locale_tag) catch return null;
if (!keysMatch(payload, keys.locale_tag, keys.current_desktop, keys.app_dirs, keys.path_env)) {
return null;
}
diff --git a/src/start_menu/launch.zig b/src/start_menu/launch.zig
index 1f94195..73ac2ea 100644
--- a/src/start_menu/launch.zig
+++ b/src/start_menu/launch.zig
@@ -3,6 +3,7 @@
// Complies with the Freedesktop.org Desktop Entry Specification for Exec keys:
// handles quoting, escaping, field code expansions (%f, %u, %c, %i, %k, %%),
// terminal wrapping ($TERMINAL -e / foot -e), working directory, and environment setup.
+const i18n = @import("i18n");
const std = @import("std");
const Allocator = std.mem.Allocator;
const Io = std.Io;
@@ -250,7 +251,7 @@ fn launchRevalidated(
const content = Io.Dir.cwd().readFileAlloc(server.io, entry.desktop_file_path, a, .limited(512 * 1024)) catch {
return error.EntryNoLongerAvailable;
};
- const parsed = applications.parseDesktopFile(a, content, applications.Locale.fromEnv(server.environ)) orelse {
+ const parsed = applications.parseDesktopFile(a, content, applications.Locale.forLanguage(i18n.resolve(server.config.region.language, server.environ))) orelse {
return error.EntryNoLongerAvailable;
};
if (!applications.checkDesktopVisibility(parsed, server.environ.getPosix("XDG_CURRENT_DESKTOP"))) {
@@ -426,7 +427,7 @@ pub const Pending = struct {
launchExec(self.arena.allocator(), server, &self.entry, self.uris) catch |err| {
log.err("could not launch {s}: {}", .{ self.entry.id, err });
if (server.notifications) |manager| {
- _ = manager.postNotification("RediWM", 0, "dialog-error", "Application could not be started", self.entry.name, &.{}, 1, false, false, 8000, "", null) catch {};
+ _ = manager.postNotification("RediWM", 0, "dialog-error", i18n.tr("Application could not be started"), self.entry.name, &.{}, 1, false, false, 8000, "", null) catch {};
}
};
}
@@ -651,7 +652,7 @@ fn launchNewWindowBytes(allocator: Allocator, server: *Server, entry: *const App
var arena = std.heap.ArenaAllocator.init(allocator);
defer arena.deinit();
const a = arena.allocator();
- const parsed = applications.parseDesktopFile(a, bytes, applications.Locale.fromEnv(server.environ)) orelse return error.EntryNoLongerAvailable;
+ const parsed = applications.parseDesktopFile(a, bytes, applications.Locale.forLanguage(i18n.resolve(server.config.region.language, server.environ))) orelse return error.EntryNoLongerAvailable;
if (!applications.checkDesktopVisibility(parsed, server.environ.getPosix("XDG_CURRENT_DESKTOP"))) return error.EntryNoLongerAvailable;
var live = entry.*;
live.exec = parsed.exec orelse "";
diff --git a/src/start_menu/panel.zig b/src/start_menu/panel.zig
index 2d66d4f..702f703 100644
--- a/src/start_menu/panel.zig
+++ b/src/start_menu/panel.zig
@@ -1,6 +1,7 @@
// Compositor-drawn start menu panel.
//
// Taskbar menu and centered keyboard launcher, using the same themed widgets.
+const i18n = @import("i18n");
const std = @import("std");
const Allocator = std.mem.Allocator;
const glass = @import("../glass.zig");
@@ -434,7 +435,7 @@ pub const StartMenu = struct {
sw_children[0] = .{
.name = "search_input",
.kind = .{ .text_input = .{
- .placeholder = if (menu.mode == .launcher) "Search applications…" else "Type to search…",
+ .placeholder = if (menu.mode == .launcher) i18n.tr("Search applications…") else i18n.tr("Type to search…"),
.field = .{ .leading_icon = .search, .leading_icon_size = 24, .leading_icon_color = t.window_fg },
.value = query_val,
.cursor_pos = @min(menu.query_cursor, query_val.len),
@@ -467,7 +468,7 @@ pub const StartMenu = struct {
const heading_label = a.create(Widget) catch return;
heading_label.* = .{
.kind = .{ .text = .{
- .content = "Applications",
+ .content = i18n.tr("Applications"),
.font_size = 12,
.weight = 600,
.color = t.dim,
@@ -580,11 +581,14 @@ pub const StartMenu = struct {
} else if (is_sel) {
const hint_widget = a.create(Widget) catch return;
hint_widget.* = .{
- .kind = .{ .text = .{
- .content = "↵",
- .font_size = 14,
- .color = t.accent,
- } },
+ .kind = .{
+ .text = .{
+ // i18n: raw — Enter key glyph.
+ .content = "↵",
+ .font_size = 14,
+ .color = t.accent,
+ },
+ },
};
row_kids = a.alloc(Widget, 3) catch return;
row_kids[0] = img_widget.*;
@@ -661,7 +665,7 @@ pub const StartMenu = struct {
all_btn.* = .{
.name = "all",
.kind = .{ .button = .{
- .label = "All",
+ .label = i18n.tr("All"),
.variant = if (all_sel) .primary else .secondary,
.owner = menu,
.on_click = onCategoryAll,
@@ -674,7 +678,7 @@ pub const StartMenu = struct {
apps_btn.* = .{
.name = "apps",
.kind = .{ .button = .{
- .label = "Apps",
+ .label = i18n.tr("Apps"),
.variant = if (apps_sel) .primary else .secondary,
.owner = menu,
.on_click = onCategoryApps,
@@ -703,7 +707,7 @@ pub const StartMenu = struct {
.variant = .ghost,
.icon = .power,
.icon_scale = 0.585,
- .label = "Power",
+ .label = i18n.tr("Power"),
.owner = menu,
.on_click = onPowerButtonClick,
} },
@@ -718,7 +722,7 @@ pub const StartMenu = struct {
.variant = .ghost,
.icon = .settings,
.icon_scale = 0.585,
- .label = "Settings",
+ .label = i18n.tr("Settings"),
.owner = menu,
.on_click = onSettingsButtonClick,
} },
@@ -777,7 +781,7 @@ pub const StartMenu = struct {
launcher_kids.append(a, scroll_widget.*) catch return;
if (row_count == 0) launcher_kids.append(a, .{
.name = "no_results",
- .kind = .{ .text = .{ .content = "No applications found", .font_size = t.app_text_size, .color = t.dim } },
+ .kind = .{ .text = .{ .content = i18n.tr("No applications found"), .font_size = t.app_text_size, .color = t.dim } },
.margin = layout.Edges.xy(24, 16),
}) catch return;
children = launcher_kids.toOwnedSlice(a) catch return;
@@ -816,7 +820,7 @@ pub const StartMenu = struct {
return .{
.name = "pin_app",
.kind = .{ .button = .{
- .label = if (pinned) "Unpin application" else if (full) "Five applications already pinned" else "Pin application",
+ .label = if (pinned) i18n.tr("Unpin application") else if (full) i18n.tr("Five applications already pinned") else i18n.tr("Pin application"),
.icon = if (pinned) .checkmark else .plus,
.variant = if (pinned) .primary else .ghost,
.size = .sm,
@@ -898,7 +902,7 @@ pub const StartMenu = struct {
}
return .{
.{ .name = "recent_heading", .kind = .container, .direction = .row, .@"align" = .center, .padding = layout.Edges.xy(24, 6), .height = .{ .fixed = 34 }, .children = try a.dupe(Widget, &.{.{ .kind = .{ .text = .{
- .content = if (have_history) "Pinned & Recent" else "Quick Launch",
+ .content = if (have_history) i18n.tr("Pinned & Recent") else i18n.tr("Quick Launch"),
.font_size = t.app_heading_size,
.weight = 600,
.color = t.dim,
@@ -920,7 +924,7 @@ pub const StartMenu = struct {
const scroll = menu.currentScrollOffset();
const history = &menu.server.launcher_history;
if (!history.pinned(result.id) and history.pinCount() >= 5) {
- menu.model.error_msg = "Unpin an application first (five pins maximum).";
+ menu.model.error_msg = i18n.tr("Unpin an application first (five pins maximum).");
} else {
menu.model.error_msg = null;
history.togglePin(menu.server, result.id);
@@ -1150,7 +1154,7 @@ pub const StartMenu = struct {
launch.launch(gpa, menu.server, entry) catch |err| {
menu.model.launching = false;
log.err("launch failed: {s}", .{@errorName(err)});
- menu.model.error_msg = "Launch failed. The application may have been removed.";
+ menu.model.error_msg = i18n.tr("Launch failed. The application may have been removed.");
menu.buildTree();
menu.requestRepaint();
return;
diff --git a/src/start_menu/search.zig b/src/start_menu/search.zig
index 3cec86d..3212542 100644
--- a/src/start_menu/search.zig
+++ b/src/start_menu/search.zig
@@ -3,7 +3,9 @@
// Matches search queries against application entries and built-in Settings,
// ranking exact matches, name prefixes, word prefixes, keywords, and descriptions.
const std = @import("std");
+const i18n = @import("i18n");
const Allocator = std.mem.Allocator;
+const fold = @import("ui").fold;
const applications = @import("applications.zig");
const AppEntry = applications.AppEntry;
@@ -25,12 +27,12 @@ pub const SearchResult = struct {
};
pub const settings_id = "rediwm.settings";
-pub const settings_name = "Settings";
-pub const settings_description = "System preferences, display, appearance and input";
+pub const settings_name = i18n.msg("Settings");
+pub const settings_description = i18n.msg("System preferences, display, appearance and input");
pub const loading_id = "rediwm.loading";
-pub const loading_name = "Loading applications…";
-pub const loading_description = "Scanning installed apps";
-const settings_keywords = "settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing";
+pub const loading_name = i18n.msg("Loading applications…");
+pub const loading_description = i18n.msg("Scanning installed apps");
+const settings_keywords = i18n.msg("settings;control;panel;preferences;display;appearance;mouse;keyboard;printer;printers;printing");
pub fn search(
allocator: Allocator,
@@ -38,6 +40,17 @@ pub fn search(
query: []const u8,
category: Category,
loading: bool,
+) ![]SearchResult {
+ return searchWithOptions(allocator, catalog, query, category, loading, .{ .turkish = @import("i18n").isTurkish() });
+}
+
+pub fn searchWithOptions(
+ allocator: Allocator,
+ catalog: []const AppEntry,
+ query: []const u8,
+ category: Category,
+ loading: bool,
+ options: fold.Options,
) ![]SearchResult {
var results: std.ArrayList(SearchResult) = .empty;
errdefer results.deinit(allocator);
@@ -60,13 +73,13 @@ pub fn search(
}
// Sort applications alphabetically
- std.mem.sort(SearchResult, results.items, {}, sortAlphabetical);
+ std.mem.sort(SearchResult, results.items, options, sortAlphabetical);
if (loading) {
try results.append(allocator, .{
.id = loading_id,
- .name = loading_name,
- .description = loading_description,
+ .name = loading_name.get(),
+ .description = loading_description.get(),
.is_loading = true,
.score = 0,
});
@@ -75,8 +88,8 @@ pub fn search(
if (category == .all) {
try results.append(allocator, .{
.id = settings_id,
- .name = settings_name,
- .description = settings_description,
+ .name = settings_name.get(),
+ .description = settings_description.get(),
.icon = @import("ui").shell_icons.settings_icon_name,
.is_settings = true,
.app_entry = null,
@@ -86,17 +99,10 @@ pub fn search(
return results.toOwnedSlice(allocator);
}
- var q_buf: [256]u8 = undefined;
- const q_lower = if (trimmed.len <= q_buf.len)
- std.ascii.lowerString(&q_buf, trimmed)
- else
- try std.ascii.allocLowerString(allocator, trimmed);
- defer if (trimmed.len > q_buf.len) allocator.free(q_lower);
-
// Score applications
for (catalog) |*app| {
const desc = app.generic_name orelse app.comment orelse "";
- if (scoreItem(app.name, app.generic_name, app.keywords, app.comment, q_lower)) |sc| {
+ if (scoreItem(app.name, app.generic_name, app.keywords, app.comment, trimmed, options)) |sc| {
try results.append(allocator, .{
.id = app.id,
.name = app.name,
@@ -111,11 +117,13 @@ pub fn search(
// Score Settings if in .all
if (category == .all) {
- if (scoreItem(settings_name, null, settings_keywords, settings_description, q_lower)) |sc| {
+ const localized = scoreItem(settings_name.get(), null, settings_keywords.get(), settings_description.get(), trimmed, options);
+ const english = scoreItem(settings_name.source, null, settings_keywords.source, settings_description.source, trimmed, options);
+ if (localized orelse english) |sc| {
try results.append(allocator, .{
.id = settings_id,
- .name = settings_name,
- .description = settings_description,
+ .name = settings_name.get(),
+ .description = settings_description.get(),
.icon = @import("ui").shell_icons.settings_icon_name,
.is_settings = true,
.app_entry = null,
@@ -125,7 +133,7 @@ pub fn search(
}
// Sort by ranking criteria
- std.mem.sort(SearchResult, results.items, {}, sortRanked);
+ std.mem.sort(SearchResult, results.items, options, sortRanked);
return results.toOwnedSlice(allocator);
}
@@ -135,45 +143,37 @@ fn scoreItem(
generic_name: ?[]const u8,
keywords: []const u8,
comment: ?[]const u8,
- q_lower: []const u8,
+ query: []const u8,
+ options: fold.Options,
) ?i32 {
- var name_buf: [256]u8 = undefined;
const name_len = name.len;
- const n_lower = if (name.len <= name_buf.len)
- std.ascii.lowerString(&name_buf, name)
- else
- return null;
const len_penalty: i32 = @intCast(@min(name_len, 50));
// Tier 1: Exact match
- if (std.mem.eql(u8, n_lower, q_lower)) {
+ if (fold.eql(name, query, options)) {
return 1000;
}
// Tier 2: Prefix match
- if (std.mem.startsWith(u8, n_lower, q_lower)) {
+ if (fold.startsWith(name, query, options)) {
return 800 - len_penalty;
}
// Tier 3: Word prefix in name
- if (matchesWordPrefix(n_lower, q_lower)) {
+ if (matchesWordPrefix(name, query, options)) {
return 600 - len_penalty;
}
// Tier 4: Substring in name
- if (std.mem.indexOf(u8, n_lower, q_lower) != null) {
+ if (fold.contains(name, query, options)) {
return 400 - len_penalty;
}
// Tier 5: Generic name / keywords match
if (generic_name) |gn| {
- var gn_buf: [256]u8 = undefined;
- if (gn.len <= gn_buf.len) {
- const gn_lower = std.ascii.lowerString(&gn_buf, gn);
- if (std.mem.startsWith(u8, gn_lower, q_lower) or matchesWordPrefix(gn_lower, q_lower)) {
- return 300;
- }
+ if (fold.startsWith(gn, query, options) or matchesWordPrefix(gn, query, options)) {
+ return 300;
}
}
@@ -182,52 +182,44 @@ fn scoreItem(
while (it.next()) |kw| {
const kw_trim = std.mem.trim(u8, kw, " \t");
if (kw_trim.len == 0) continue;
- var kw_buf: [128]u8 = undefined;
- if (kw_trim.len <= kw_buf.len) {
- const kw_lower = std.ascii.lowerString(&kw_buf, kw_trim);
- if (std.mem.startsWith(u8, kw_lower, q_lower)) {
- return 280;
- }
+ if (fold.startsWith(kw_trim, query, options)) {
+ return 280;
}
}
}
// Tier 6: Description/comment match
if (comment) |c| {
- var c_buf: [512]u8 = undefined;
- if (c.len <= c_buf.len) {
- const c_lower = std.ascii.lowerString(&c_buf, c);
- if (std.mem.indexOf(u8, c_lower, q_lower) != null) {
- return 200;
- }
+ if (fold.contains(c, query, options)) {
+ return 200;
}
}
return null;
}
-fn matchesWordPrefix(text: []const u8, prefix: []const u8) bool {
+fn matchesWordPrefix(text: []const u8, prefix: []const u8, options: fold.Options) bool {
var it = std.mem.splitAny(u8, text, " \t-_/");
while (it.next()) |word| {
if (word.len == 0) continue;
- if (std.mem.startsWith(u8, word, prefix)) return true;
+ if (fold.startsWith(word, prefix, options)) return true;
}
return false;
}
-fn sortAlphabetical(_: void, a: SearchResult, b: SearchResult) bool {
- const ord = std.ascii.orderIgnoreCase(a.name, b.name);
+fn sortAlphabetical(options: fold.Options, a: SearchResult, b: SearchResult) bool {
+ const ord = fold.order(a.name, b.name, options);
if (ord != .eq) return ord == .lt;
return std.mem.order(u8, a.id, b.id) == .lt;
}
-fn sortRanked(_: void, a: SearchResult, b: SearchResult) bool {
+fn sortRanked(options: fold.Options, a: SearchResult, b: SearchResult) bool {
// Higher score first
if (a.score != b.score) return a.score > b.score;
// Shorter name preferred
if (a.name.len != b.name.len) return a.name.len < b.name.len;
// Alphabetical tie-breaking
- const ord = std.ascii.orderIgnoreCase(a.name, b.name);
+ const ord = fold.order(a.name, b.name, options);
if (ord != .eq) return ord == .lt;
// Stable ID tie-breaking
return std.mem.order(u8, a.id, b.id) == .lt;
@@ -272,6 +264,34 @@ test "search word prefix in name" {
try std.testing.expectEqualStrings("Foot Server", res[0].name);
}
+test "search folds translated names aliases and arbitrarily long fields" {
+ const long_prefix = "Long " ** 80;
+ const apps = [_]AppEntry{
+ .{ .id = "camera", .desktop_file_path = "", .name = "Cámara", .exec = "camera" },
+ .{ .id = "terminal", .desktop_file_path = "", .name = "Терминал", .exec = "terminal" },
+ .{ .id = "photo", .desktop_file_path = "", .name = "Photos", .generic_name = "Álbum", .exec = "photo" },
+ .{ .id = "street", .desktop_file_path = "", .name = "Maps", .keywords = "Straße;Œuvre", .exec = "maps" },
+ .{ .id = "long", .desktop_file_path = "", .name = long_prefix ++ "Éditeur", .comment = long_prefix ++ "Удобный", .exec = "editor" },
+ };
+ const cases = .{
+ .{ "camara", "camera" },
+ .{ "терм", "terminal" },
+ .{ "album", "photo" },
+ .{ "STRASSE", "street" },
+ .{ "oeuv", "street" },
+ .{ "editeur", "long" },
+ .{ "удоб", "long" },
+ };
+ inline for (cases) |case| {
+ const results = try searchWithOptions(std.testing.allocator, &apps, case[0], .apps, false, .{});
+ defer std.testing.allocator.free(results);
+ try std.testing.expectEqual(@as(usize, 1), results.len);
+ try std.testing.expectEqualStrings(case[1], results[0].id);
+ }
+ try std.testing.expectEqual(@as(?i32, 1000), scoreItem("IŞIK", null, "", null, "ışık", .{ .turkish = true }));
+ try std.testing.expectEqual(@as(?i32, null), scoreItem("IŞIK", null, "", null, "ışık", .{}));
+}
+
test "search empty query and category filtering" {
const apps = [_]AppEntry{
.{
diff --git a/src/system_monitor/app.zig b/src/system_monitor/app.zig
index 52ee336..89d5c1e 100644
--- a/src/system_monitor/app.zig
+++ b/src/system_monitor/app.zig
@@ -1,4 +1,6 @@
const std = @import("std");
+const i18n = @import("i18n");
+const tr = i18n.tr;
const ui = @import("ui");
const cairo = ui.cairo;
const theme = ui.theme;
@@ -12,7 +14,7 @@ const actions = @import("actions.zig");
const scrollbar = ui.widgets.scrollbar;
const a = std.heap.c_allocator;
const row_h: f64 = 32;
-const titles = [_][]const u8{ "Name", "PID", "User", "CPU %", "Memory (resident)", "State" };
+const titles = [_]i18n.Message{ i18n.msg("Name"), i18n.msg("PID"), i18n.msg("User"), i18n.msg("CPU %"), i18n.msg("Memory (resident)"), i18n.msg("State") };
const proportions = [_]f32{ 0.28, 0.10, 0.15, 0.12, 0.21, 0.14 };
const Pending = enum { none, end, confirm, cancel, force };
const Confirmation = struct { identity: proc.Identity, name: [256]u8 = undefined, len: usize };
@@ -68,7 +70,7 @@ pub const App = struct {
self.selections.deinit(a);
}
pub fn getTitle(_: *App) [*:0]const u8 {
- return "System Monitor";
+ return i18n.trZ("System Monitor");
}
pub fn requestClose(self: *App) void {
self.closed = true;
@@ -93,7 +95,7 @@ pub const App = struct {
}
self.history.append(snap);
self.model.update(snap) catch {
- self.notice = "Not enough memory to display every process";
+ self.notice = tr("Not enough memory to display every process");
};
self.clampScroll();
self.dirty = true;
@@ -106,19 +108,19 @@ pub const App = struct {
if (self.initialized) return;
self.initialized = true;
self.toolbar = .{
- .{ .kind = .{ .text_input = .{ .owner = self, .placeholder = "Search name, PID or user", .value = a.dupe(u8, "") catch unreachable, .on_change = searchChanged, .field = .{ .leading_icon = .search } } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 34 } },
- self.button("My processes", 0, 148),
- self.button("Pause updates", 1, 130),
+ .{ .kind = .{ .text_input = .{ .owner = self, .placeholder = tr("Search name, PID or user"), .value = a.dupe(u8, "") catch unreachable, .on_change = searchChanged, .field = .{ .leading_icon = .search } } }, .width = .{ .flex = 1 }, .height = .{ .fixed = 34 } },
+ self.button(tr("My processes"), 0, 148),
+ self.button(tr("Pause updates"), 1, 130),
};
for (&self.headers, titles, proportions, 0..) |*header, title, width, i| {
- header.* = self.button(title, 10 + i, 0);
+ header.* = self.button(title.get(), 10 + i, 0);
header.width = .{ .percent = width };
header.kind.button.variant = .ghost;
}
self.footer = .{
.{ .kind = .container, .width = .{ .flex = 1 } },
- self.button("End process", 2, 124),
- self.button("Force quit…", 3, 124),
+ self.button(tr("End process"), 2, 124),
+ self.button(tr("Force quit…"), 3, 124),
};
self.sections = .{
.{ .kind = .container, .height = .{ .fixed = 150 } },
@@ -129,7 +131,7 @@ pub const App = struct {
.{ .kind = .container, .height = .{ .fixed = 28 } },
};
self.root = .{ .kind = .container, .direction = .column, .children = &self.sections, .@"align" = .stretch };
- self.modal_buttons = .{ self.button("Cancel", 20, 120), self.button("Force quit", 21, 120) };
+ self.modal_buttons = .{ self.button(tr("Cancel"), 20, 120), self.button(tr("Force quit"), 21, 120) };
self.modal_buttons[1].kind.button.variant = .primary;
self.modal = .{ .kind = .container, .gap = 12, .children = &self.modal_buttons };
self.root.linkParents();
@@ -201,7 +203,7 @@ pub const App = struct {
self.send(confirmation.identity, .force);
} else {
const row = self.model.selectedProcess() orelse {
- self.notice = "Select a process first";
+ self.notice = tr("Select a process first");
return;
};
if (!self.manageable()) {
@@ -231,7 +233,7 @@ pub const App = struct {
self.dirty = true;
return;
};
- self.notice = if (kind == .end) "Termination requested" else "Force quit requested";
+ self.notice = if (kind == .end) tr("Termination requested") else tr("Force quit requested");
self.dirty = true;
}
pub fn cancelDrag(self: *App) void {
@@ -458,10 +460,10 @@ pub const App = struct {
c.cairo_paint(cr);
self.paintSummary(cr);
self.paintRows(cr);
- self.toolbar[1].kind.button.label = if (self.model.mine) "My processes" else "All processes";
- self.toolbar[2].kind.button.label = if (self.paused) "Resume updates" else "Pause updates";
+ self.toolbar[1].kind.button.label = if (self.model.mine) tr("My processes") else tr("All processes");
+ self.toolbar[2].kind.button.label = if (self.paused) tr("Resume updates") else tr("Pause updates");
for (&self.headers, titles, 0..) |*header, title, i| {
- header.kind.button.label = std.fmt.bufPrint(&self.header_labels[i], "{s}{s}", .{ title, if (@intFromEnum(self.model.sort) == i) if (self.model.descending) " ↓" else " ↑" else "" }) catch title;
+ header.kind.button.label = std.fmt.bufPrint(&self.header_labels[i], "{s}{s}", .{ title.get(), if (@intFromEnum(self.model.sort) == i) if (self.model.descending) " ↓" else " ↑" else "" }) catch title.get();
}
for (self.footer[1..]) |*control| {
if (!self.manageable()) control.kind.button.state = .disabled else if (control.kind.button.state == .disabled) control.kind.button.state = .idle;
@@ -476,13 +478,13 @@ pub const App = struct {
const foot = self.sections[4];
var status_buf: [256]u8 = undefined;
const status = if (self.notice.len > 0) self.notice else blk: {
- const snap = self.model.snapshot orelse break :blk "Collecting processes…";
+ const snap = self.model.snapshot orelse break :blk tr("Collecting processes…");
var swap_buf: [80]u8 = undefined;
- const swap = if (snap.memory) |mem| if (mem.swap_total != null and mem.swap_free != null) bytesPair(&swap_buf, mem.swap_total.? -| mem.swap_free.?, mem.swap_total.?) else "Unavailable" else "Unavailable";
- break :blk std.fmt.bufPrint(&status_buf, "{d} processes · Swap {s}{s}", .{ self.model.rows.items.len, swap, if (self.paused) " · Paused" else if (snap.failed) " · /proc unavailable" else if (snap.truncated) " · List limited" else if (snap.unavailable > 0) " · Some processes unavailable" else "" }) catch "Processes";
+ const swap = if (snap.memory) |mem| if (mem.swap_total != null and mem.swap_free != null) bytesPair(&swap_buf, mem.swap_total.? -| mem.swap_free.?, mem.swap_total.?) else tr("Unavailable") else tr("Unavailable");
+ break :blk i18n.fmt(&status_buf, i18n.trn("{n} process · Swap {swap}{status}", "{n} processes · Swap {swap}{status}", self.model.rows.items.len), .{ .n = self.model.rows.items.len, .swap = swap, .status = if (self.paused) tr(" · Paused") else if (snap.failed) tr(" · /proc unavailable") else if (snap.truncated) tr(" · List limited") else if (snap.unavailable > 0) tr(" · Some processes unavailable") else "" }) catch tr("Processes");
};
textBox(cr, status, .{ .x = 16, .y = foot.computed_y + 8, .w = @max(0, foot.computed_width - 308), .h = 28 }, cairo.statusSize(), false, theme.global.window_fg);
- textBox(cr, "CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit", .{ .x = 16, .y = @floatFromInt(self.h - 26), .w = @floatFromInt(self.w - 32), .h = 24 }, cairo.statusSize(), false, theme.global.window_fg);
+ textBox(cr, tr("CPU: 100% = one core · Memory: resident · Ctrl+F search · Delete end · Shift+Delete force quit"), .{ .x = 16, .y = @floatFromInt(self.h - 26), .w = @floatFromInt(self.w - 32), .h = 24 }, cairo.statusSize(), false, theme.global.window_fg);
if (self.confirmation) |confirmation| self.paintConfirmation(cr, confirmation);
}
fn paintSummary(self: *App, cr: *c.cairo_t) void {
@@ -498,7 +500,7 @@ pub const App = struct {
break :blk std.fmt.bufPrint(&buf, "RAM {s}", .{bytesPair(&pair_buf, mem.used(), mem.total)}) catch "RAM";
} else "RAM —";
textBox(cr, label, .{ .x = box.x, .y = box.y, .w = box.w, .h = 30 }, cairo.headingSize(), true, theme.global.window_fg);
- textBox(cr, "60 seconds", .{ .x = box.x, .y = box.y + 30, .w = box.w, .h = 20 }, cairo.statusSize(), false, theme.global.window_fg);
+ textBox(cr, tr("60 seconds"), .{ .x = box.x, .y = box.y + 30, .w = box.w, .h = 20 }, cairo.statusSize(), false, theme.global.window_fg);
const graph: Rect = .{ .x = box.x, .y = box.y + 56, .w = box.w, .h = 64 };
cairo.setSource(cr, theme.global.app_divider);
c.cairo_set_line_width(cr, 1);
@@ -551,10 +553,10 @@ pub const App = struct {
const pid = std.fmt.bufPrint(&pid_buf, "{d}", .{row.identity.pid}) catch "—";
const cpu = if (row.cpu_percent) |v| std.fmt.bufPrint(&cpu_buf, "{d:.1}%", .{v}) catch "—" else "—";
const memory = if (row.resident_bytes) |v| bytesLabel(&mem_buf, v) else "—";
- const values = [_][]const u8{ row.name, pid, row.user, cpu, memory, model.stateName(row.state) };
+ const values = [_][]const u8{ row.name, pid, row.user, cpu, memory, stateName(row.state) };
for (values, self.headers) |value, header| textBox(cr, value, .{ .x = header.computed_x + 8, .y = y, .w = @max(0, header.computed_width - 16), .h = row_h }, cairo.textSize(), false, theme.global.window_fg);
}
- if (self.model.rows.items.len == 0) textBox(cr, if (snap.failed) "Process data unavailable" else "No matching processes", .{ .x = list.x + 8, .y = list.y + 12, .w = list.w - 16, .h = 32 }, cairo.textSize(), false, theme.global.window_fg);
+ if (self.model.rows.items.len == 0) textBox(cr, if (snap.failed) tr("Process data unavailable") else tr("No matching processes"), .{ .x = list.x + 8, .y = list.y + 12, .w = list.w - 16, .h = 32 }, cairo.textSize(), false, theme.global.window_fg);
if (self.barGeometry()) |g| cairo.drawScrollbar(cr, scrollbar.look(g, self.bar, theme.global.scrollbar_width, theme.global));
}
fn dialogBox(self: *const App) Rect {
@@ -567,11 +569,11 @@ pub const App = struct {
if (cairo.Layer.begin(cr, box)) |value| {
var layer = value;
ui.widgets.dialog.paintFrame(&layer.renderer, layer.local());
- ui.widgets.dialog.paintHeader(&layer.renderer, 24, 24, box.w - 48, .{ .icon = .close, .title = "Force quit this process?", .subtitle = "Unsaved work will be lost." });
+ ui.widgets.dialog.paintHeader(&layer.renderer, 24, 24, box.w - 48, .{ .icon = .close, .title = tr("Force quit this process?"), .subtitle = tr("Unsaved work will be lost.") });
layer.finish();
}
var buf: [512]u8 = undefined;
- const label = std.fmt.bufPrint(&buf, "{s} (PID {d})", .{ confirmation.name[0..confirmation.len], confirmation.identity.pid }) catch "Selected process";
+ const label = std.fmt.bufPrint(&buf, "{s} (PID {d})", .{ confirmation.name[0..confirmation.len], confirmation.identity.pid }) catch tr("Selected process");
textBox(cr, label, .{ .x = box.x + 24, .y = box.y + 112, .w = box.w - 48, .h = 32 }, cairo.textSize(), true, theme.global.window_fg);
if (cairo.Layer.begin(cr, .{ .x = 0, .y = 0, .w = @floatFromInt(self.w), .h = @floatFromInt(self.h) })) |value| {
var layer = value;
@@ -603,3 +605,16 @@ fn bytesPair(buf: []u8, used: u64, total: u64) []const u8 {
var right: [32]u8 = undefined;
return std.fmt.bufPrint(buf, "{s} / {s}", .{ bytesLabel(&left, used), bytesLabel(&right, total) }) catch "—";
}
+
+fn stateName(state: u8) []const u8 {
+ return switch (state) {
+ 'R' => tr("Running"),
+ 'S' => tr("Sleeping"),
+ 'D' => tr("Disk wait"),
+ 'T', 't' => tr("Stopped"),
+ 'Z' => tr("Zombie"),
+ 'I' => tr("Idle"),
+ 'X', 'x' => tr("Exited"),
+ else => tr("Unknown"),
+ };
+}
diff --git a/src/system_monitor/client.zig b/src/system_monitor/client.zig
index 7e66b0c..a2ce938 100644
--- a/src/system_monitor/client.zig
+++ b/src/system_monitor/client.zig
@@ -92,10 +92,11 @@ pub const Client = struct {
/// LC_CTYPE of the session; picks the Compose table (´+c is ç in pt_BR).
locale: []const u8 = "",
app: app_mod.App,
- close_button: ui.layout.Widget = .{ .kind = .{ .button = .{ .variant = .chrome, .icon = .close, .label = "Close" } } },
+ close_button: ui.layout.Widget = .{ .kind = .{ .button = .{ .variant = .chrome, .icon = .close, .label = "" } } },
chrome_input: ui.input.Dispatcher = .{},
fn arrangeClose(self: *Client) void {
+ self.close_button.kind.button.label = @import("i18n").tr("Close");
self.close_button.kind.button.owner = self;
self.close_button.kind.button.on_click = closeClicked;
const height: f32 = @floatFromInt(self.titlebarHeight());
@@ -658,7 +659,7 @@ pub const Client = struct {
c.cairo_rectangle(cr, 0, 0, @floatFromInt(w), @floatFromInt(h));
c.cairo_fill(cr);
shell_ui.setSource(cr, ui_theme.global.window_fg);
- shell_ui.drawText(cr, "System Monitor", 16, @as(f64, @floatFromInt(h)) / 2 + shell_ui.statusSize() / 3, shell_ui.statusSize(), true);
+ shell_ui.drawText(cr, @import("i18n").tr("System Monitor"), 16, @as(f64, @floatFromInt(h)) / 2 + shell_ui.statusSize() / 3, shell_ui.statusSize(), true);
self.arrangeClose();
if (shell_ui.Layer.begin(cr, .{ .x = 0, .y = 0, .w = @floatFromInt(w), .h = @floatFromInt(h) })) |value| {
var layer = value;
diff --git a/src/system_monitor_main.zig b/src/system_monitor_main.zig
index 61d8164..cc6759f 100644
--- a/src/system_monitor_main.zig
+++ b/src/system_monitor_main.zig
@@ -1,5 +1,6 @@
const std = @import("std");
pub fn main(init: std.process.Init) !void {
+ @import("i18n").init(init.minimal.environ);
defer {
if (@import("memory").deinit()) std.log.err("System Monitor memory leaks reported above", .{});
}
diff --git a/src/systemd.zig b/src/systemd.zig
index 1048d05..193ae7c 100644
--- a/src/systemd.zig
+++ b/src/systemd.zig
@@ -393,14 +393,14 @@ pub const Client = struct {
const conn = self.conn orelse return;
self.watching = true;
_ = conn.addMatch(manager_match, null, null) catch {
- self.inform("Could not subscribe to service updates.");
+ self.inform(@import("i18n").tr("Could not subscribe to service updates."));
return;
};
_ = conn.addMatch(properties_match, null, null) catch {
- self.inform("Could not subscribe to service updates.");
+ self.inform(@import("i18n").tr("Could not subscribe to service updates."));
return;
};
- self.subscribe() catch self.inform("Could not subscribe to service updates.");
+ self.subscribe() catch self.inform(@import("i18n").tr("Could not subscribe to service updates."));
}
fn stopWatching(self: *Client) void {
self.watching = false;
@@ -445,7 +445,7 @@ pub const Client = struct {
const body: wire.Writer = .{ .allocator = gpa };
self.call(.units, 0, path, manager, "ListUnits", "", &body, false) catch {
self.loading = false;
- self.inform("Could not load services. Try Refresh.");
+ self.inform(@import("i18n").tr("Could not load services. Try Refresh."));
};
self.changed();
}
@@ -461,7 +461,7 @@ pub const Client = struct {
self.boot_pending = true;
self.getAll(.boot, 0, path, manager) catch {
self.boot_pending = false;
- self.inform("Boot summary is unavailable.");
+ self.inform(@import("i18n").tr("Boot summary is unavailable."));
};
self.pumpTiming();
self.changed();
@@ -491,7 +491,7 @@ pub const Client = struct {
self.message_len = 0;
self.checkAuthorization() catch {
self.unlocking = false;
- self.inform("Could not start the authentication request.");
+ self.inform(@import("i18n").tr("Could not start the authentication request."));
};
self.changed();
}
@@ -540,7 +540,7 @@ pub const Client = struct {
self.message_len = 0;
self.sendAction(unit, action) catch {
self.action_pending = false;
- self.inform("Could not send the service action.");
+ self.inform(@import("i18n").tr("Could not send the service action."));
};
self.changed();
}
@@ -598,7 +598,7 @@ pub const Client = struct {
edit.start(self, unit_name, service_types[index]) catch {
self.edited_type = null;
self.action_pending = false;
- self.inform("Could not open the service edit for authorization.");
+ self.inform(@import("i18n").tr("Could not open the service edit for authorization."));
};
self.changed();
}
@@ -607,9 +607,9 @@ pub const Client = struct {
self.edited_type = null;
self.action_pending = false;
self.inform(if (status_code == 126 or status_code == 127)
- "Authentication was cancelled or denied. Notify setting is unchanged."
+ @import("i18n").tr("Authentication was cancelled or denied. Notify setting is unchanged.")
else
- "Could not save Notify. Service editing requires systemd 256 or newer.");
+ @import("i18n").tr("Could not save Notify. Service editing requires systemd 256 or newer."));
self.reload(false);
return;
}
@@ -617,7 +617,7 @@ pub const Client = struct {
self.call(.reload, 1, path, manager, "Reload", "", &empty, true) catch {
self.edited_type = null;
self.action_pending = false;
- self.inform("Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload.");
+ self.inform(@import("i18n").tr("Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."));
};
self.changed();
}
@@ -682,7 +682,7 @@ pub const Client = struct {
self.edited_type = null;
const i = self.snapshot.index.get(self.edited_unit.?);
if (i == null or !std.mem.eql(u8, self.snapshot.units.items[i.?].service_type, service_types[expected]))
- self.inform("Notify override saved, but the selected type is not active in systemd. Check other service overrides.");
+ self.inform(@import("i18n").tr("Notify override saved, but the selected type is not active in systemd. Check other service overrides."));
}
self.changed();
if (self.again) self.reload(self.again_force);
@@ -731,7 +731,7 @@ pub const Client = struct {
switch (req.kind) {
.unlock => {
self.unlocking = false;
- self.inform("Could not request authentication. Check that polkit is running.");
+ self.inform(@import("i18n").tr("Could not request authentication. Check that polkit is running."));
},
.detail => {
// Not every loaded unit has every property (a masked service has no Type).
@@ -740,19 +740,19 @@ pub const Client = struct {
},
.timing => {
self.pending_details -= 1;
- self.inform("Some startup times are unavailable.");
+ self.inform(@import("i18n").tr("Some startup times are unavailable."));
self.pumpTiming();
},
.boot => {
self.boot_pending = false;
- self.inform("Boot summary is unavailable.");
+ self.inform(@import("i18n").tr("Boot summary is unavailable."));
self.pumpTiming();
},
.action, .reload => {
self.action_pending = false;
if (req.kind == .reload and req.index == 1) {
self.edited_type = null;
- self.inform("Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload.");
+ self.inform(@import("i18n").tr("Notify override saved, but systemd could not reload it. Try Refresh after a daemon reload."));
} else self.inform(reason);
self.reload(false);
},
@@ -858,7 +858,7 @@ pub const Client = struct {
self.action_job = try gpa.dupe(u8, try body.string());
self.action_pending = false;
// The unit's new state arrives as a signal.
- self.inform("Request accepted. Status updates when the job completes.");
+ self.inform(@import("i18n").tr("Request accepted. Status updates when the job completes."));
}
},
.unlock => {
@@ -868,11 +868,11 @@ pub const Client = struct {
const authorized = try body.boolean();
self.unlocking = false;
self.unlocked = authorized;
- if (authorized) self.changed() else self.inform("Authentication was cancelled or denied.");
+ if (authorized) self.changed() else self.inform(@import("i18n").tr("Authentication was cancelled or denied."));
},
.reload => {
self.action_pending = false;
- self.inform(if (req.index == 1) "Notify setting saved. Applies on the next service start." else "Startup setting saved. Running status is unchanged.");
+ self.inform(if (req.index == 1) @import("i18n").tr("Notify setting saved. Applies on the next service start.") else @import("i18n").tr("Startup setting saved. Running status is unchanged."));
self.reload(true);
},
}
@@ -930,7 +930,7 @@ pub const Client = struct {
if (self.closing) return;
const msg = result catch return;
if (msg.kind != .method_return) return;
- self.setup(conn) catch self.inform("Could not connect to systemd.");
+ self.setup(conn) catch self.inform(@import("i18n").tr("Could not connect to systemd."));
}
fn setup(self: *Client, conn: *dbus.Connection) !void {
try conn.registerSignal(.{ .owner = self, .callback = signal });
diff --git a/src/taskbar/battery.zig b/src/taskbar/battery.zig
index ee12edd..c5fbfe9 100644
--- a/src/taskbar/battery.zig
+++ b/src/taskbar/battery.zig
@@ -6,6 +6,7 @@
//! Kernel power_supply uevents (plug, unplug, charge state) trigger an
//! immediate read; capacity is re-read on the taskbar's minute tick, because
//! many firmwares never announce percentage changes.
+const i18n = @import("i18n");
const std = @import("std");
const linux = std.os.linux;
@@ -19,10 +20,10 @@ pub const State = struct {
cycles: ?u32 = null,
pub fn status(self: State) []const u8 {
- if (self.charging) return "Charging";
- if (self.full) return "Fully Charged";
- if (self.plugged) return "Plugged In";
- return "On Battery";
+ if (self.charging) return i18n.tr("Charging");
+ if (self.full) return i18n.tr("Fully Charged");
+ if (self.plugged) return i18n.tr("Plugged In");
+ return i18n.tr("On Battery");
}
};
diff --git a/src/taskbar/window_menu.zig b/src/taskbar/window_menu.zig
index a73ce49..6d733ce 100644
--- a/src/taskbar/window_menu.zig
+++ b/src/taskbar/window_menu.zig
@@ -1,4 +1,5 @@
//! The taskbar's window actions. Input owns one menu across all outputs.
+const i18n = @import("i18n");
const std = @import("std");
const wlr = @import("wlroots");
const sn = @import("../node.zig");
@@ -8,6 +9,7 @@ const Output = @import("../Output.zig");
const Dock = @import("../Dock.zig");
const Buffer = @import("../panel_buffer.zig").PanelBuffer;
const ui = @import("ui");
+const gpa = @import("../main.zig").gpa;
pub const Menu = struct {
bar: ?*Taskbar = null,
@@ -23,6 +25,12 @@ pub const Menu = struct {
node: ?*sn.Buffer = null,
box: wlr.Box = .{ .x = 0, .y = 0, .width = 0, .height = 0 },
selected: ?usize = null,
+ close_hover: ?usize = null,
+ window_ids: []u64 = &.{},
+ first_row: usize = 0,
+ visible_rows: usize = 0,
+ picker_arena: std.heap.ArenaAllocator = .init(std.heap.page_allocator),
+ picker_root: ui.layout.Widget = .{ .kind = .container },
const padding = 6;
const row_height = 32;
@@ -35,10 +43,10 @@ pub const Menu = struct {
fn label(action: Action) []const u8 {
return switch (action) {
- .close => "Close",
- .force_close => "Force Close",
- .remove => "Remove from dock",
- .unpin => "Unpin from dock",
+ .close => i18n.tr("Close"),
+ .force_close => i18n.tr("Force Close"),
+ .remove => i18n.tr("Remove from dock"),
+ .unpin => i18n.tr("Unpin from dock"),
};
}
};
@@ -52,14 +60,18 @@ pub const Menu = struct {
pub fn open(self: *Menu, bar: *Taskbar, target: *Toplevel, x: i32) void {
const output = Output.fromWlr(bar.wlr_output) orelse return;
- self.openOn(output, bar, null, target, null, null, x, 0);
+ self.openOn(output, bar, null, target, null, null, x, 0, &.{});
}
pub fn openDock(self: *Menu, dock: *Dock, target: ?*Toplevel, shortcut: ?Dock.Shortcut, pin: ?[]const u8, x: i32, y: i32) void {
- self.openOn(dock.output orelse return, null, dock, target, shortcut, pin, x, y);
+ self.openOn(dock.output orelse return, null, dock, target, shortcut, pin, x, y, &.{});
}
- fn openOn(self: *Menu, output: *Output, bar: ?*Taskbar, dock: ?*Dock, target: ?*Toplevel, shortcut: ?Dock.Shortcut, pin: ?[]const u8, x: i32, pointer_y: i32) void {
+ pub fn openDockWindows(self: *Menu, dock: *Dock, ids: []const u64, shortcut: ?Dock.Shortcut, x: i32, y: i32) void {
+ self.openOn(dock.output orelse return, null, dock, null, shortcut, null, x, y, ids);
+ }
+
+ fn openOn(self: *Menu, output: *Output, bar: ?*Taskbar, dock: ?*Dock, target: ?*Toplevel, shortcut: ?Dock.Shortcut, pin: ?[]const u8, x: i32, pointer_y: i32, ids: []const u64) void {
self.close();
const server = output.server;
const input = &server.input;
@@ -70,8 +82,12 @@ pub const Menu = struct {
if (input.open_calendar) |other| other.output.closeCalendar();
if (server.tray) |tray| tray.closeMenu();
const bounds = output.dockAreaBox();
- const width = @min(216, bounds.width);
+ const width = @min(if (ids.len > 0) @as(i32, 360) else 216, bounds.width);
self.node = server.overlay_tree.createSceneBuffer(null) catch return;
+ if (ids.len > 0) self.window_ids = gpa.dupe(u64, ids) catch {
+ self.close();
+ return;
+ };
self.bar = bar;
self.output = output;
self.dock = dock;
@@ -82,9 +98,16 @@ pub const Menu = struct {
@memcpy(self.pin_bytes[0..self.pin_len], id[0..self.pin_len]);
self.pinned = true;
}
- const count: i32 = @intCast(self.actions().len);
- const height = padding * 2 + row_height * count + separator * (count - 1);
- var menu_x = x;
+ const available_height = if (dock) |d| switch (d.position) {
+ .top => bounds.y + bounds.height - d.box.y - d.box.height - 4,
+ .bottom => d.box.y - bounds.y - 4,
+ .left, .right => bounds.height,
+ } else bounds.height;
+ const capacity: usize = @intCast(@max(1, @divTrunc(available_height - 2 * padding + self.rowGap(), self.rowHeight() + self.rowGap())));
+ self.visible_rows = if (ids.len > 0) @min(self.itemCount(), capacity) else self.itemCount();
+ const count: i32 = @intCast(self.visible_rows);
+ const height = padding * 2 + self.rowHeight() * count + self.rowGap() * (count - 1);
+ var menu_x = if (ids.len > 0) x - @divTrunc(width, 2) else x;
var y = output.taskbarPopupY(height, 4);
if (dock) |d| switch (d.position) {
.top => y = d.box.y + d.box.height + 4,
@@ -115,31 +138,69 @@ pub const Menu = struct {
pub fn close(self: *Menu) void {
if (self.node) |node| node.node.destroy();
+ gpa.free(self.window_ids);
+ self.picker_arena.deinit();
self.* = .{};
}
- fn rowY(index: usize) i32 {
- return padding + @as(i32, @intCast(index)) * (row_height + separator);
+ pub fn references(self: *const Menu, top: *Toplevel) bool {
+ return self.target == top or std.mem.indexOfScalar(u64, self.window_ids, top.id) != null;
+ }
+
+ pub fn iconsReady(self: *Menu) void {
+ if (self.node != null and self.window_ids.len > 0) self.paint();
+ }
+
+ fn rowHeight(self: *const Menu) i32 {
+ return if (self.window_ids.len > 0) 40 else row_height;
+ }
+
+ fn rowGap(self: *const Menu) i32 {
+ return if (self.window_ids.len > 0) 2 else separator;
+ }
+
+ fn itemCount(self: *const Menu) usize {
+ return if (self.window_ids.len > 0) self.window_ids.len else self.actions().len;
+ }
+
+ fn rowY(self: *const Menu, index: usize) i32 {
+ return padding + @as(i32, @intCast(index - self.first_row)) * (self.rowHeight() + self.rowGap());
}
fn hit(self: *const Menu, x: f64, y: f64) ?usize {
const lx = x - @as(f64, @floatFromInt(self.box.x));
const ly = y - @as(f64, @floatFromInt(self.box.y));
if (lx < padding or lx >= @as(f64, @floatFromInt(self.box.width - padding))) return null;
- for (0..self.actions().len) |i| {
- const top: f64 = @floatFromInt(rowY(i));
- if (ly >= top and ly < top + row_height) return i;
+ for (self.first_row..self.first_row + self.visible_rows) |i| {
+ const top: f64 = @floatFromInt(self.rowY(i));
+ if (ly >= top and ly < top + @as(f64, @floatFromInt(self.rowHeight()))) return i;
}
return null;
}
pub fn motion(self: *Menu, x: f64, y: f64) void {
const next = self.hit(x, y);
- if (self.selected == next) return;
+ const close_hover = if (self.closeButtonAt(x, y)) |button| button.kind.button.id else null;
+ if (self.selected == next and self.close_hover == close_hover) return;
self.selected = next;
+ self.close_hover = close_hover;
self.paint();
}
+ fn closeButtonAt(self: *Menu, x: f64, y: f64) ?*ui.layout.Widget {
+ if (self.window_ids.len == 0) return null;
+ const widget = ui.input.hitTest(&self.picker_root, @floatCast(x - @as(f64, @floatFromInt(self.box.x))), @floatCast(y - @as(f64, @floatFromInt(self.box.y)))) orelse return null;
+ return if (widget.kind == .button) widget else null;
+ }
+
+ fn closeWindow(owner: ?*anyopaque, index: usize) void {
+ const self: *Menu = @ptrCast(@alignCast(owner orelse return));
+ const top = self.findWindow(self.window_ids[index]);
+ // Shell windows can destroy themselves synchronously when closed.
+ self.close();
+ if (top) |t| t.sendClose();
+ }
+
pub fn press(self: *Menu, x: f64, y: f64, button: u32) void {
if (x < @as(f64, @floatFromInt(self.box.x)) or x >= @as(f64, @floatFromInt(self.box.x + self.box.width)) or
y < @as(f64, @floatFromInt(self.box.y)) or y >= @as(f64, @floatFromInt(self.box.y + self.box.height)))
@@ -148,6 +209,10 @@ pub const Menu = struct {
return;
}
if (button != 0x110) return;
+ if (self.closeButtonAt(x, y)) |close_button| {
+ ui.widgets.button.press(close_button);
+ return;
+ }
self.selected = self.hit(x, y);
self.activate();
}
@@ -157,16 +222,47 @@ pub const Menu = struct {
0xff1b => self.close(), // Escape
0xff0d, 0xff8d, 0x20 => self.activate(), // Return, keypad Enter, Space
0xff52, 0xff54 => { // Up / Down skip the separator.
- const count = self.actions().len;
+ self.close_hover = null;
+ const count = self.itemCount();
self.selected = if (self.selected) |i| (i + if (sym == 0xff54) @as(usize, 1) else count - 1) % count else if (sym == 0xff54) 0 else count - 1;
+ if (self.selected.? < self.first_row) self.first_row = self.selected.?;
+ if (self.selected.? >= self.first_row + self.visible_rows) self.first_row = self.selected.? + 1 - self.visible_rows;
self.paint();
},
else => {},
}
}
+ pub fn scroll(self: *Menu, delta: f32) void {
+ if (self.window_ids.len == 0 or delta == 0) return;
+ const next = if (delta > 0) @min(self.first_row + 1, self.itemCount() - self.visible_rows) else self.first_row -| 1;
+ if (next == self.first_row) return;
+ self.first_row = next;
+ self.selected = null;
+ self.close_hover = null;
+ self.paint();
+ }
+
+ fn findWindow(self: *const Menu, id: u64) ?*Toplevel {
+ const output = self.output orelse return null;
+ var it = output.server.world.toplevels.iterator(.forward);
+ while (it.next()) |top| if (top.id == id and top.in_world and !top.backend_gone and !top.closing) return top;
+ return null;
+ }
+
fn activate(self: *Menu) void {
const index = self.selected orelse return;
+ if (self.window_ids.len > 0) {
+ const top = self.findWindow(self.window_ids[index]);
+ const output = self.output.?;
+ // Closing the menu precedes focus callbacks and any dock rebuild.
+ self.close();
+ if (top) |t| {
+ if (t.minimized) t.restore() else output.server.world.focus(t);
+ output.server.world.navigateTo(t, output);
+ }
+ return;
+ }
const action = self.actions()[index];
const target = self.target;
const dock = self.dock;
@@ -190,11 +286,12 @@ pub const Menu = struct {
const buf = Buffer.create(self.box.width, self.box.height, scale) catch return;
defer buf.base.drop();
var renderer = ui.paint.Renderer.init(buf.pixels, buf.width, buf.height, scale);
- const t = ui.theme.global;
+ const t = if (self.window_ids.len > 0) ui.theme.shellPalette() else ui.theme.global;
+ renderer.palette = t;
const width: f32 = @floatFromInt(self.box.width);
- renderer.fillRect(0, 0, width, @floatFromInt(self.box.height), .{ .color = t.window_bg, .radius = 12, .border_width = 1, .border_color = t.border });
- for (self.actions(), 0..) |action, i| {
- const y: f32 = @floatFromInt(rowY(i));
+ renderer.fillRect(0, 0, width, @floatFromInt(self.box.height), .{ .color = if (self.window_ids.len > 0) t.start_menu_bg else t.window_bg, .radius = 12, .border_width = 1, .border_color = t.border });
+ if (self.window_ids.len > 0) self.paintWindows(&renderer) else for (self.actions(), 0..) |action, i| {
+ const y: f32 = @floatFromInt(self.rowY(i));
if (i > 0) renderer.fillRect(12, y - 4, @max(0, width - 24), 1, .{ .color = t.border_soft });
const row: ui.layout.Widget = .{
.kind = .{ .row = .{ .state = if (self.selected == i) .hover else .idle } },
@@ -212,4 +309,71 @@ pub const Menu = struct {
node.node.setPosition(self.box.x, self.box.y);
node.node.raiseToTop();
}
+
+ fn paintWindows(self: *Menu, renderer: *ui.paint.Renderer) void {
+ self.picker_root = .{ .kind = .container };
+ _ = self.picker_arena.reset(.retain_capacity);
+ const a = self.picker_arena.allocator();
+ const rows = a.alloc(ui.layout.Widget, self.visible_rows) catch return;
+ const output = self.output.?;
+ const t = ui.theme.shellPalette();
+ const width: f32 = @floatFromInt(self.box.width);
+ const focused = @import("../ipc/handlers.zig").findFocusedToplevel(output.server);
+ for (rows, self.first_row..) |*row, index| {
+ const top = self.findWindow(self.window_ids[index]) orelse {
+ row.* = .{ .kind = .container };
+ continue;
+ };
+ const y: f32 = @floatFromInt(self.rowY(index));
+ const children = a.alloc(ui.layout.Widget, 2) catch return;
+ const close_x = @max(padding, width - padding - 32);
+ children[0] = .{
+ .kind = .{ .text = .{ .content = a.dupe(u8, top.title()) catch return, .font_size = t.font_size, .weight = 600, .color = t.window_fg } },
+ .computed_x = 50,
+ .computed_y = y,
+ .computed_width = @max(0, close_x - 58),
+ .computed_height = 40,
+ };
+ children[1] = .{
+ .name = std.fmt.allocPrint(a, "close_window_{d}", .{top.id}) catch return,
+ .kind = .{ .button = .{
+ .variant = .chrome,
+ .size = .sm,
+ .label = i18n.tr("Close window"),
+ .icon = .close,
+ .state = if (self.close_hover == index) .hover else .idle,
+ .owner = self,
+ .id = index,
+ .on_click = closeWindow,
+ } },
+ .computed_x = close_x,
+ .computed_y = y + 6,
+ .computed_width = 28,
+ .computed_height = 28,
+ };
+ row.* = .{
+ .name = std.fmt.allocPrint(a, "window_{d}", .{top.id}) catch return,
+ .kind = .{ .row = .{ .state = if (self.selected == index) .hover else .idle, .selected = top == focused } },
+ .computed_x = padding,
+ .computed_y = y,
+ .computed_width = @max(0, width - 2 * padding),
+ .computed_height = 40,
+ .children = children,
+ };
+ ui.paint.paint(row, renderer);
+ const lookup = output.server.iconLookup(top.appId(), @intFromFloat(@ceil(24 * output.wlr_output.scale)));
+ if (lookup == .ready) {
+ const icon = lookup.ready;
+ renderer.drawImageSmooth(18, y + 8, 24, 24, 0, .{ .pixels = icon.pixels, .width = icon.size, .height = icon.size });
+ } else renderer.drawIcon(18, y + 8, 24, 24, .{ .id = if (self.shortcut) |shortcut| switch (shortcut) {
+ .files => .folder,
+ .terminal => .terminal,
+ .settings => .settings,
+ else => .document,
+ } else .document, .color = t.window_fg });
+ }
+ self.picker_root = .{ .kind = .container, .computed_width = width, .computed_height = @floatFromInt(self.box.height), .children = rows };
+ if (self.first_row > 0) renderer.drawIcon(width / 2 - 5, 1, 10, 5, .{ .id = .chevron_up, .color = t.window_fg });
+ if (self.first_row + self.visible_rows < self.window_ids.len) renderer.drawIcon(width / 2 - 5, @floatFromInt(self.box.height - 6), 10, 5, .{ .id = .chevron_down, .color = t.window_fg });
+ }
};
diff --git a/src/toplevel/info.zig b/src/toplevel/info.zig
index 8b2fe74..ac5d38d 100644
--- a/src/toplevel/info.zig
+++ b/src/toplevel/info.zig
@@ -16,7 +16,6 @@ const events = @import("../ipc/events.zig");
const protocol = @import("../ipc/protocol.zig");
const xdg = @import("../xdg.zig");
const xwayland_surface = @import("../xwayland_surface.zig");
-const settings_title = Toplevel.settings_title;
const settings_app_id = Toplevel.settings_app_id;
const welcome_app_id = Toplevel.welcome_app_id;
@@ -90,7 +89,7 @@ pub fn titlePtr(toplevel: *const Toplevel) ?[*:0]const u8 {
.xdg => |*adapter| adapter.xdg_toplevel.title,
.xwayland => |*adapter| adapter.xsurface.title,
.placeholder => |*ph| ph.name.ptr,
- .shell => |shell| if (shell.welcome) "Welcome to RediWM" else settings_title.ptr,
+ .shell => |shell| if (shell.welcome) @import("i18n").trZ("Welcome to RediWM").ptr else @import("i18n").trZ("RediWM Settings").ptr,
};
}
diff --git a/src/ui/AGENTS.md b/src/ui/AGENTS.md
index f7ad709..95ef0bb 100644
--- a/src/ui/AGENTS.md
+++ b/src/ui/AGENTS.md
@@ -20,6 +20,10 @@ text and colours, secrets) are in the root `AGENTS.md` ("Shared UI").
dragging and the scroll hold brighten it. `Appearance.illumination` shares
the existing frame/deadline scheduling (no idle animation). Cairo uses the
shared raster for the lit thumb, preserving its fractional device position.
+* **Text fields with child accessories** reserve text/caret room with
+ `field.trailing = .accessory`. Place a shared button in the field's children
+ (Settings search uses a ghost clear button), so normal pointer and keyboard
+ dispatch handles it inside the field frame.
* **Scroll containers** (`.scroll_container`) give widget trees all of the
above: hosts call `scroll_container.stepBars` beside `stepGlides` and carry
`ScrollState.bar` across rebuilds. It scrolls along its `direction`, which
@@ -50,6 +54,13 @@ text and colours, secrets) are in the root `AGENTS.md` ("Shared UI").
switches' knobs across with `toggle.capture`/`restore` (by name hash: arena
names don't outlive the rebuild). A host that builds `.toggle` widgets must
call `stepBars` or its switches never leave their first position.
+* **Dropdowns survive unrelated page updates.** On a rebuild of the same page,
+ use `select.capture`/`restore` and restore input focus to the returned widget.
+ The saved state owns its bounded name copy: the old tree's arena can be freed.
+ Changed options, disabled choices, owner/id, or backend selection invalidate
+ the saved menu; restoration never replaces the new backend value. Settings
+ does this beside its slider and switch capture, so a live Services update
+ cannot discard an in-progress Notify choice.
* **The battery badge** (`widgets/battery.zig`: frame, glyph, percentage,
charging bolt) is the taskbar's artwork. `sample` is the pixel math (per
device pixel, badge-local units); the taskbar's per-pixel raster calls it and
diff --git a/src/ui/cairo.zig b/src/ui/cairo.zig
index 1e9fa91..b031faa 100644
--- a/src/ui/cairo.zig
+++ b/src/ui/cairo.zig
@@ -371,3 +371,26 @@ test "a scrollbar thumb paints its look through cairo" {
scrollbar.paint(&renderer, hot);
try std.testing.expectEqualSlices(u32, &expected, data[0..expected.len]);
}
+
+/// A determinate progress ring. Updates follow its data; no frame clock.
+pub fn drawProgressRing(cr_any: *anyopaque, box: ItemBox, fraction: f64, color: [4]f32) void {
+ const cr: *c.cairo_t = @ptrCast(cr_any);
+ c.cairo_save(cr);
+ defer c.cairo_restore(cr);
+ const radius = @max(0, @min(box.w, box.h) / 2 - 3);
+ const x = box.x + box.w / 2;
+ const y = box.y + box.h / 2;
+ c.cairo_set_line_width(cr, 2);
+ var track = theme.global.window_fg;
+ track[3] *= 0.2;
+ setSource(cr, track);
+ c.cairo_arc(cr, x, y, radius, 0, 2 * std.math.pi);
+ c.cairo_stroke(cr);
+ const amount = std.math.clamp(fraction, 0, 1);
+ if (amount > 0) {
+ setSource(cr, color);
+ c.cairo_set_line_cap(cr, c.CAIRO_LINE_CAP_ROUND);
+ c.cairo_arc(cr, x, y, radius, -std.math.pi / 2.0, -std.math.pi / 2.0 + 2 * std.math.pi * amount);
+ c.cairo_stroke(cr);
+ }
+}
diff --git a/src/ui/fold.zig b/src/ui/fold.zig
new file mode 100644
index 0000000..3403035
--- /dev/null
+++ b/src/ui/fold.zig
@@ -0,0 +1,213 @@
+//! Allocation-free Unicode matching for user-visible names. The table folds
+//! Latin, Greek and Cyrillic case and accents; other scripts pass through.
+//! Invalid UTF-8 bytes remain distinct, so arbitrary filenames can be searched.
+const std = @import("std");
+const data = @import("fold_data.zig");
+
+pub const Options = struct { turkish: bool = false };
+pub const Match = struct { start: usize, end: usize };
+pub const unicode_version = data.unicode_version;
+
+const Unit = struct { value: u21, start: usize, end: usize };
+const invalid_base = 0x110000;
+
+const Iterator = struct {
+ text: []const u8,
+ options: Options,
+ offset: usize = 0,
+ pending: ?Unit = null,
+ strip_marks: bool = false,
+
+ fn next(self: *Iterator) ?Unit {
+ if (self.pending) |unit| {
+ self.pending = null;
+ return unit;
+ }
+ while (self.offset < self.text.len) {
+ const start = self.offset;
+ const cp = decode(self.text, &self.offset);
+ if (isCombining(cp)) {
+ if (self.strip_marks) continue;
+ return .{ .value = cp, .start = start, .end = self.offset };
+ }
+ self.strip_marks = isFoldedScript(cp);
+ // Include stripped marks in the span used for search highlighting.
+ var end = self.offset;
+ var dotted = false;
+ if (self.strip_marks) {
+ while (end < self.text.len) {
+ var next_end = end;
+ const mark = decode(self.text, &next_end);
+ if (!isCombining(mark)) break;
+ dotted = dotted or mark == 0x307;
+ end = next_end;
+ }
+ self.offset = end;
+ }
+ if (self.options.turkish) {
+ if (cp == 'I') return .{ .value = if (dotted) 'i' else 0x131, .start = start, .end = end };
+ if (cp == 0x130) return .{ .value = 'i', .start = start, .end = end };
+ }
+ if (cp >= 'A' and cp <= 'Z') return .{ .value = cp + ('a' - 'A'), .start = start, .end = end };
+ if (mapping(cp)) |m| {
+ if (m.second != 0) self.pending = .{ .value = m.second, .start = start, .end = end };
+ return .{ .value = m.first, .start = start, .end = end };
+ }
+ return .{ .value = cp, .start = start, .end = end };
+ }
+ return null;
+ }
+};
+
+fn decode(text: []const u8, offset: *usize) u21 {
+ const start = offset.*;
+ const byte = text[start];
+ const len = std.unicode.utf8ByteSequenceLength(byte) catch {
+ offset.* += 1;
+ return invalid_base + @as(u21, byte);
+ };
+ if (start + len <= text.len) {
+ if (std.unicode.utf8Decode(text[start..][0..len])) |cp| {
+ offset.* += len;
+ return cp;
+ } else |_| {}
+ }
+ offset.* += 1;
+ return invalid_base + @as(u21, byte);
+}
+
+fn mapping(cp: u21) ?data.Mapping {
+ if (cp < 0xc0) return null;
+ var lo: usize = 0;
+ var hi: usize = data.mappings.len;
+ while (lo < hi) {
+ const mid = lo + (hi - lo) / 2;
+ const entry = data.mappings[mid];
+ if (entry.from < cp) lo = mid + 1 else if (entry.from > cp) hi = mid else return entry;
+ }
+ return null;
+}
+
+fn isCombining(cp: u21) bool {
+ if (cp < 0x300) return false;
+ var lo: usize = 0;
+ var hi: usize = data.combining.len;
+ while (lo < hi) {
+ const mid = lo + (hi - lo) / 2;
+ const range = data.combining[mid];
+ if (range[1] < cp) lo = mid + 1 else if (range[0] > cp) hi = mid else return true;
+ }
+ return false;
+}
+
+fn isFoldedScript(cp: u21) bool {
+ return (cp >= 'A' and cp <= 'Z') or (cp >= 'a' and cp <= 'z') or
+ (cp >= 0xc0 and cp <= 0x24f) or (cp >= 0x370 and cp <= 0x52f) or
+ (cp >= 0x1d00 and cp <= 0x1fff) or (cp >= 0x2c60 and cp <= 0x2c7f) or
+ (cp >= 0xa640 and cp <= 0xa69f) or (cp >= 0xa720 and cp <= 0xa7ff) or
+ (cp >= 0xab30 and cp <= 0xab6f);
+}
+
+/// Byte offsets refer to the original haystack, including attached accents.
+/// Expansions such as ß→ss map both folded letters to the original character.
+pub fn indexOf(haystack: []const u8, needle: []const u8, options: Options) ?Match {
+ var query = Iterator{ .text = needle, .options = options };
+ const first = query.next() orelse return .{ .start = 0, .end = 0 };
+ var candidates = Iterator{ .text = haystack, .options = options };
+ while (candidates.next()) |candidate| {
+ if (candidate.value != first.value) continue;
+ var rest = candidates;
+ var remaining = query;
+ var end = candidate.end;
+ while (remaining.next()) |expected| {
+ const actual = rest.next() orelse break;
+ if (actual.value != expected.value) break;
+ end = actual.end;
+ } else return .{ .start = candidate.start, .end = end };
+ }
+ return null;
+}
+
+pub fn contains(haystack: []const u8, needle: []const u8, options: Options) bool {
+ return indexOf(haystack, needle, options) != null;
+}
+
+pub fn startsWith(haystack: []const u8, needle: []const u8, options: Options) bool {
+ var text = Iterator{ .text = haystack, .options = options };
+ var query = Iterator{ .text = needle, .options = options };
+ while (query.next()) |expected| {
+ const actual = text.next() orelse return false;
+ if (actual.value != expected.value) return false;
+ }
+ return true;
+}
+
+pub fn eql(a: []const u8, b: []const u8, options: Options) bool {
+ return order(a, b, options) == .eq;
+}
+
+/// Deterministic folded order; locale-sensitive file ordering uses LC_COLLATE.
+pub fn order(a: []const u8, b: []const u8, options: Options) std.math.Order {
+ var lhs = Iterator{ .text = a, .options = options };
+ var rhs = Iterator{ .text = b, .options = options };
+ while (lhs.next()) |left| {
+ const right = rhs.next() orelse return .gt;
+ const result = std.math.order(left.value, right.value);
+ if (result != .eq) return result;
+ }
+ return if (rhs.next() == null) .eq else .lt;
+}
+
+pub fn write(buffer: []u8, input: []const u8, options: Options) error{NoSpaceLeft}![]const u8 {
+ var iterator = Iterator{ .text = input, .options = options };
+ var len: usize = 0;
+ while (iterator.next()) |unit| {
+ var bytes: [4]u8 = undefined;
+ const count = if (unit.value >= invalid_base) blk: {
+ bytes[0] = @intCast(unit.value - invalid_base);
+ break :blk 1;
+ } else std.unicode.utf8Encode(unit.value, &bytes) catch unreachable;
+ if (count > buffer.len - len) return error.NoSpaceLeft;
+ @memcpy(buffer[len..][0..count], bytes[0..count]);
+ len += count;
+ }
+ return buffer[0..len];
+}
+
+test "fold Latin Greek Cyrillic and decomposition extras" {
+ var buffer: [256]u8 = undefined;
+ const cases = .{
+ .{ "Cámara CÁMARA cafe\u{301}", "camara camara cafe" },
+ .{ "Straße Æsir Œuvre ŁÓDŹ Øresund", "strasse aesir oeuvre lodz oresund" },
+ .{ "ΑΘΉΝΑ Ἀθήνα τελικός", "αθηνα αθηνα τελικοσ" },
+ .{ "Терминал ЁЖИК е\u{308}", "терминал ежик е" },
+ .{ "Tiếng Việt", "tieng viet" },
+ .{ "日本語 あ\u{3099} العربية", "日本語 あ\u{3099} العربية" },
+ };
+ inline for (cases) |case| try std.testing.expectEqualStrings(case[1], try write(&buffer, case[0], .{}));
+ try std.testing.expectError(error.NoSpaceLeft, write(buffer[0..1], "Æ", .{}));
+ try std.testing.expectEqualStrings("a\xffb", try write(&buffer, "A\xffB", .{}));
+}
+
+test "fold Turkish dotted and dotless i follow the chosen language" {
+ var buffer: [64]u8 = undefined;
+ try std.testing.expectEqualStrings("iiıi", try write(&buffer, "Iİıi", .{}));
+ try std.testing.expectEqualStrings("ıiıi", try write(&buffer, "Iİıi", .{ .turkish = true }));
+ try std.testing.expectEqualStrings("iı", try write(&buffer, "I\u{307}I", .{ .turkish = true }));
+ try std.testing.expect(contains("IŞIK", "ışık", .{ .turkish = true }));
+ try std.testing.expect(!contains("IŞIK", "ışık", .{}));
+}
+
+test "fold matching maps expansion and decomposed accent offsets" {
+ try std.testing.expectEqual(Match{ .start = 1, .end = 8 }, indexOf("!Cámara?", "CAMARA", .{}).?);
+ try std.testing.expectEqual(Match{ .start = 4, .end = 6 }, indexOf("Straße", "ss", .{}).?);
+ try std.testing.expectEqual(Match{ .start = 0, .end = 3 }, indexOf("e\u{301}lan", "é", .{}).?);
+ try std.testing.expect(contains("Терминал", "терм", .{}));
+ try std.testing.expect(contains("œ", "OE", .{}));
+ try std.testing.expect(!contains("é", "eagle", .{}));
+ try std.testing.expect(startsWith("Æsir", "ae", .{}));
+ try std.testing.expect(eql("ÉLAN", "e\u{301}lan", .{}));
+ try std.testing.expectEqual(std.math.Order.lt, order("Äpfel", "Zebra", .{}));
+ const long = "Préfixe " ** 100;
+ try std.testing.expect(contains(long ++ "Терминал", "терм", .{}));
+}
diff --git a/src/ui/fold_data.zig b/src/ui/fold_data.zig
new file mode 100644
index 0000000..06b85c0
--- /dev/null
+++ b/src/ui/fold_data.zig
@@ -0,0 +1,1430 @@
+// Generated by tools/generate_fold.py; do not edit.
+pub const unicode_version = "16.0.0";
+pub const Mapping = packed struct(u64) { from: u21, first: u21, second: u21 = 0, padding: u1 = 0 };
+pub const mappings = [_]Mapping{
+ .{ .from = 0x41, .first = 0x61 },
+ .{ .from = 0x42, .first = 0x62 },
+ .{ .from = 0x43, .first = 0x63 },
+ .{ .from = 0x44, .first = 0x64 },
+ .{ .from = 0x45, .first = 0x65 },
+ .{ .from = 0x46, .first = 0x66 },
+ .{ .from = 0x47, .first = 0x67 },
+ .{ .from = 0x48, .first = 0x68 },
+ .{ .from = 0x49, .first = 0x69 },
+ .{ .from = 0x4a, .first = 0x6a },
+ .{ .from = 0x4b, .first = 0x6b },
+ .{ .from = 0x4c, .first = 0x6c },
+ .{ .from = 0x4d, .first = 0x6d },
+ .{ .from = 0x4e, .first = 0x6e },
+ .{ .from = 0x4f, .first = 0x6f },
+ .{ .from = 0x50, .first = 0x70 },
+ .{ .from = 0x51, .first = 0x71 },
+ .{ .from = 0x52, .first = 0x72 },
+ .{ .from = 0x53, .first = 0x73 },
+ .{ .from = 0x54, .first = 0x74 },
+ .{ .from = 0x55, .first = 0x75 },
+ .{ .from = 0x56, .first = 0x76 },
+ .{ .from = 0x57, .first = 0x77 },
+ .{ .from = 0x58, .first = 0x78 },
+ .{ .from = 0x59, .first = 0x79 },
+ .{ .from = 0x5a, .first = 0x7a },
+ .{ .from = 0xc0, .first = 0x61 },
+ .{ .from = 0xc1, .first = 0x61 },
+ .{ .from = 0xc2, .first = 0x61 },
+ .{ .from = 0xc3, .first = 0x61 },
+ .{ .from = 0xc4, .first = 0x61 },
+ .{ .from = 0xc5, .first = 0x61 },
+ .{ .from = 0xc6, .first = 0x61, .second = 0x65 },
+ .{ .from = 0xc7, .first = 0x63 },
+ .{ .from = 0xc8, .first = 0x65 },
+ .{ .from = 0xc9, .first = 0x65 },
+ .{ .from = 0xca, .first = 0x65 },
+ .{ .from = 0xcb, .first = 0x65 },
+ .{ .from = 0xcc, .first = 0x69 },
+ .{ .from = 0xcd, .first = 0x69 },
+ .{ .from = 0xce, .first = 0x69 },
+ .{ .from = 0xcf, .first = 0x69 },
+ .{ .from = 0xd0, .first = 0xf0 },
+ .{ .from = 0xd1, .first = 0x6e },
+ .{ .from = 0xd2, .first = 0x6f },
+ .{ .from = 0xd3, .first = 0x6f },
+ .{ .from = 0xd4, .first = 0x6f },
+ .{ .from = 0xd5, .first = 0x6f },
+ .{ .from = 0xd6, .first = 0x6f },
+ .{ .from = 0xd8, .first = 0x6f },
+ .{ .from = 0xd9, .first = 0x75 },
+ .{ .from = 0xda, .first = 0x75 },
+ .{ .from = 0xdb, .first = 0x75 },
+ .{ .from = 0xdc, .first = 0x75 },
+ .{ .from = 0xdd, .first = 0x79 },
+ .{ .from = 0xde, .first = 0xfe },
+ .{ .from = 0xdf, .first = 0x73, .second = 0x73 },
+ .{ .from = 0xe0, .first = 0x61 },
+ .{ .from = 0xe1, .first = 0x61 },
+ .{ .from = 0xe2, .first = 0x61 },
+ .{ .from = 0xe3, .first = 0x61 },
+ .{ .from = 0xe4, .first = 0x61 },
+ .{ .from = 0xe5, .first = 0x61 },
+ .{ .from = 0xe6, .first = 0x61, .second = 0x65 },
+ .{ .from = 0xe7, .first = 0x63 },
+ .{ .from = 0xe8, .first = 0x65 },
+ .{ .from = 0xe9, .first = 0x65 },
+ .{ .from = 0xea, .first = 0x65 },
+ .{ .from = 0xeb, .first = 0x65 },
+ .{ .from = 0xec, .first = 0x69 },
+ .{ .from = 0xed, .first = 0x69 },
+ .{ .from = 0xee, .first = 0x69 },
+ .{ .from = 0xef, .first = 0x69 },
+ .{ .from = 0xf1, .first = 0x6e },
+ .{ .from = 0xf2, .first = 0x6f },
+ .{ .from = 0xf3, .first = 0x6f },
+ .{ .from = 0xf4, .first = 0x6f },
+ .{ .from = 0xf5, .first = 0x6f },
+ .{ .from = 0xf6, .first = 0x6f },
+ .{ .from = 0xf8, .first = 0x6f },
+ .{ .from = 0xf9, .first = 0x75 },
+ .{ .from = 0xfa, .first = 0x75 },
+ .{ .from = 0xfb, .first = 0x75 },
+ .{ .from = 0xfc, .first = 0x75 },
+ .{ .from = 0xfd, .first = 0x79 },
+ .{ .from = 0xff, .first = 0x79 },
+ .{ .from = 0x100, .first = 0x61 },
+ .{ .from = 0x101, .first = 0x61 },
+ .{ .from = 0x102, .first = 0x61 },
+ .{ .from = 0x103, .first = 0x61 },
+ .{ .from = 0x104, .first = 0x61 },
+ .{ .from = 0x105, .first = 0x61 },
+ .{ .from = 0x106, .first = 0x63 },
+ .{ .from = 0x107, .first = 0x63 },
+ .{ .from = 0x108, .first = 0x63 },
+ .{ .from = 0x109, .first = 0x63 },
+ .{ .from = 0x10a, .first = 0x63 },
+ .{ .from = 0x10b, .first = 0x63 },
+ .{ .from = 0x10c, .first = 0x63 },
+ .{ .from = 0x10d, .first = 0x63 },
+ .{ .from = 0x10e, .first = 0x64 },
+ .{ .from = 0x10f, .first = 0x64 },
+ .{ .from = 0x110, .first = 0x111 },
+ .{ .from = 0x112, .first = 0x65 },
+ .{ .from = 0x113, .first = 0x65 },
+ .{ .from = 0x114, .first = 0x65 },
+ .{ .from = 0x115, .first = 0x65 },
+ .{ .from = 0x116, .first = 0x65 },
+ .{ .from = 0x117, .first = 0x65 },
+ .{ .from = 0x118, .first = 0x65 },
+ .{ .from = 0x119, .first = 0x65 },
+ .{ .from = 0x11a, .first = 0x65 },
+ .{ .from = 0x11b, .first = 0x65 },
+ .{ .from = 0x11c, .first = 0x67 },
+ .{ .from = 0x11d, .first = 0x67 },
+ .{ .from = 0x11e, .first = 0x67 },
+ .{ .from = 0x11f, .first = 0x67 },
+ .{ .from = 0x120, .first = 0x67 },
+ .{ .from = 0x121, .first = 0x67 },
+ .{ .from = 0x122, .first = 0x67 },
+ .{ .from = 0x123, .first = 0x67 },
+ .{ .from = 0x124, .first = 0x68 },
+ .{ .from = 0x125, .first = 0x68 },
+ .{ .from = 0x126, .first = 0x127 },
+ .{ .from = 0x128, .first = 0x69 },
+ .{ .from = 0x129, .first = 0x69 },
+ .{ .from = 0x12a, .first = 0x69 },
+ .{ .from = 0x12b, .first = 0x69 },
+ .{ .from = 0x12c, .first = 0x69 },
+ .{ .from = 0x12d, .first = 0x69 },
+ .{ .from = 0x12e, .first = 0x69 },
+ .{ .from = 0x12f, .first = 0x69 },
+ .{ .from = 0x130, .first = 0x69 },
+ .{ .from = 0x132, .first = 0x133 },
+ .{ .from = 0x134, .first = 0x6a },
+ .{ .from = 0x135, .first = 0x6a },
+ .{ .from = 0x136, .first = 0x6b },
+ .{ .from = 0x137, .first = 0x6b },
+ .{ .from = 0x139, .first = 0x6c },
+ .{ .from = 0x13a, .first = 0x6c },
+ .{ .from = 0x13b, .first = 0x6c },
+ .{ .from = 0x13c, .first = 0x6c },
+ .{ .from = 0x13d, .first = 0x6c },
+ .{ .from = 0x13e, .first = 0x6c },
+ .{ .from = 0x13f, .first = 0x140 },
+ .{ .from = 0x141, .first = 0x6c },
+ .{ .from = 0x142, .first = 0x6c },
+ .{ .from = 0x143, .first = 0x6e },
+ .{ .from = 0x144, .first = 0x6e },
+ .{ .from = 0x145, .first = 0x6e },
+ .{ .from = 0x146, .first = 0x6e },
+ .{ .from = 0x147, .first = 0x6e },
+ .{ .from = 0x148, .first = 0x6e },
+ .{ .from = 0x14a, .first = 0x14b },
+ .{ .from = 0x14c, .first = 0x6f },
+ .{ .from = 0x14d, .first = 0x6f },
+ .{ .from = 0x14e, .first = 0x6f },
+ .{ .from = 0x14f, .first = 0x6f },
+ .{ .from = 0x150, .first = 0x6f },
+ .{ .from = 0x151, .first = 0x6f },
+ .{ .from = 0x152, .first = 0x6f, .second = 0x65 },
+ .{ .from = 0x153, .first = 0x6f, .second = 0x65 },
+ .{ .from = 0x154, .first = 0x72 },
+ .{ .from = 0x155, .first = 0x72 },
+ .{ .from = 0x156, .first = 0x72 },
+ .{ .from = 0x157, .first = 0x72 },
+ .{ .from = 0x158, .first = 0x72 },
+ .{ .from = 0x159, .first = 0x72 },
+ .{ .from = 0x15a, .first = 0x73 },
+ .{ .from = 0x15b, .first = 0x73 },
+ .{ .from = 0x15c, .first = 0x73 },
+ .{ .from = 0x15d, .first = 0x73 },
+ .{ .from = 0x15e, .first = 0x73 },
+ .{ .from = 0x15f, .first = 0x73 },
+ .{ .from = 0x160, .first = 0x73 },
+ .{ .from = 0x161, .first = 0x73 },
+ .{ .from = 0x162, .first = 0x74 },
+ .{ .from = 0x163, .first = 0x74 },
+ .{ .from = 0x164, .first = 0x74 },
+ .{ .from = 0x165, .first = 0x74 },
+ .{ .from = 0x166, .first = 0x167 },
+ .{ .from = 0x168, .first = 0x75 },
+ .{ .from = 0x169, .first = 0x75 },
+ .{ .from = 0x16a, .first = 0x75 },
+ .{ .from = 0x16b, .first = 0x75 },
+ .{ .from = 0x16c, .first = 0x75 },
+ .{ .from = 0x16d, .first = 0x75 },
+ .{ .from = 0x16e, .first = 0x75 },
+ .{ .from = 0x16f, .first = 0x75 },
+ .{ .from = 0x170, .first = 0x75 },
+ .{ .from = 0x171, .first = 0x75 },
+ .{ .from = 0x172, .first = 0x75 },
+ .{ .from = 0x173, .first = 0x75 },
+ .{ .from = 0x174, .first = 0x77 },
+ .{ .from = 0x175, .first = 0x77 },
+ .{ .from = 0x176, .first = 0x79 },
+ .{ .from = 0x177, .first = 0x79 },
+ .{ .from = 0x178, .first = 0x79 },
+ .{ .from = 0x179, .first = 0x7a },
+ .{ .from = 0x17a, .first = 0x7a },
+ .{ .from = 0x17b, .first = 0x7a },
+ .{ .from = 0x17c, .first = 0x7a },
+ .{ .from = 0x17d, .first = 0x7a },
+ .{ .from = 0x17e, .first = 0x7a },
+ .{ .from = 0x17f, .first = 0x73 },
+ .{ .from = 0x181, .first = 0x253 },
+ .{ .from = 0x182, .first = 0x183 },
+ .{ .from = 0x184, .first = 0x185 },
+ .{ .from = 0x186, .first = 0x254 },
+ .{ .from = 0x187, .first = 0x188 },
+ .{ .from = 0x189, .first = 0x256 },
+ .{ .from = 0x18a, .first = 0x257 },
+ .{ .from = 0x18b, .first = 0x18c },
+ .{ .from = 0x18e, .first = 0x1dd },
+ .{ .from = 0x18f, .first = 0x259 },
+ .{ .from = 0x190, .first = 0x25b },
+ .{ .from = 0x191, .first = 0x192 },
+ .{ .from = 0x193, .first = 0x260 },
+ .{ .from = 0x194, .first = 0x263 },
+ .{ .from = 0x196, .first = 0x269 },
+ .{ .from = 0x197, .first = 0x268 },
+ .{ .from = 0x198, .first = 0x199 },
+ .{ .from = 0x19c, .first = 0x26f },
+ .{ .from = 0x19d, .first = 0x272 },
+ .{ .from = 0x19f, .first = 0x275 },
+ .{ .from = 0x1a0, .first = 0x6f },
+ .{ .from = 0x1a1, .first = 0x6f },
+ .{ .from = 0x1a2, .first = 0x1a3 },
+ .{ .from = 0x1a4, .first = 0x1a5 },
+ .{ .from = 0x1a6, .first = 0x280 },
+ .{ .from = 0x1a7, .first = 0x1a8 },
+ .{ .from = 0x1a9, .first = 0x283 },
+ .{ .from = 0x1ac, .first = 0x1ad },
+ .{ .from = 0x1ae, .first = 0x288 },
+ .{ .from = 0x1af, .first = 0x75 },
+ .{ .from = 0x1b0, .first = 0x75 },
+ .{ .from = 0x1b1, .first = 0x28a },
+ .{ .from = 0x1b2, .first = 0x28b },
+ .{ .from = 0x1b3, .first = 0x1b4 },
+ .{ .from = 0x1b5, .first = 0x1b6 },
+ .{ .from = 0x1b7, .first = 0x292 },
+ .{ .from = 0x1b8, .first = 0x1b9 },
+ .{ .from = 0x1bc, .first = 0x1bd },
+ .{ .from = 0x1c4, .first = 0x1c6 },
+ .{ .from = 0x1c5, .first = 0x1c6 },
+ .{ .from = 0x1c7, .first = 0x1c9 },
+ .{ .from = 0x1c8, .first = 0x1c9 },
+ .{ .from = 0x1ca, .first = 0x1cc },
+ .{ .from = 0x1cb, .first = 0x1cc },
+ .{ .from = 0x1cd, .first = 0x61 },
+ .{ .from = 0x1ce, .first = 0x61 },
+ .{ .from = 0x1cf, .first = 0x69 },
+ .{ .from = 0x1d0, .first = 0x69 },
+ .{ .from = 0x1d1, .first = 0x6f },
+ .{ .from = 0x1d2, .first = 0x6f },
+ .{ .from = 0x1d3, .first = 0x75 },
+ .{ .from = 0x1d4, .first = 0x75 },
+ .{ .from = 0x1d5, .first = 0x75 },
+ .{ .from = 0x1d6, .first = 0x75 },
+ .{ .from = 0x1d7, .first = 0x75 },
+ .{ .from = 0x1d8, .first = 0x75 },
+ .{ .from = 0x1d9, .first = 0x75 },
+ .{ .from = 0x1da, .first = 0x75 },
+ .{ .from = 0x1db, .first = 0x75 },
+ .{ .from = 0x1dc, .first = 0x75 },
+ .{ .from = 0x1de, .first = 0x61 },
+ .{ .from = 0x1df, .first = 0x61 },
+ .{ .from = 0x1e0, .first = 0x61 },
+ .{ .from = 0x1e1, .first = 0x61 },
+ .{ .from = 0x1e2, .first = 0xe6 },
+ .{ .from = 0x1e3, .first = 0xe6 },
+ .{ .from = 0x1e4, .first = 0x1e5 },
+ .{ .from = 0x1e6, .first = 0x67 },
+ .{ .from = 0x1e7, .first = 0x67 },
+ .{ .from = 0x1e8, .first = 0x6b },
+ .{ .from = 0x1e9, .first = 0x6b },
+ .{ .from = 0x1ea, .first = 0x6f },
+ .{ .from = 0x1eb, .first = 0x6f },
+ .{ .from = 0x1ec, .first = 0x6f },
+ .{ .from = 0x1ed, .first = 0x6f },
+ .{ .from = 0x1ee, .first = 0x292 },
+ .{ .from = 0x1ef, .first = 0x292 },
+ .{ .from = 0x1f0, .first = 0x6a },
+ .{ .from = 0x1f1, .first = 0x1f3 },
+ .{ .from = 0x1f2, .first = 0x1f3 },
+ .{ .from = 0x1f4, .first = 0x67 },
+ .{ .from = 0x1f5, .first = 0x67 },
+ .{ .from = 0x1f6, .first = 0x195 },
+ .{ .from = 0x1f7, .first = 0x1bf },
+ .{ .from = 0x1f8, .first = 0x6e },
+ .{ .from = 0x1f9, .first = 0x6e },
+ .{ .from = 0x1fa, .first = 0x61 },
+ .{ .from = 0x1fb, .first = 0x61 },
+ .{ .from = 0x1fc, .first = 0xe6 },
+ .{ .from = 0x1fd, .first = 0xe6 },
+ .{ .from = 0x1fe, .first = 0xf8 },
+ .{ .from = 0x1ff, .first = 0xf8 },
+ .{ .from = 0x200, .first = 0x61 },
+ .{ .from = 0x201, .first = 0x61 },
+ .{ .from = 0x202, .first = 0x61 },
+ .{ .from = 0x203, .first = 0x61 },
+ .{ .from = 0x204, .first = 0x65 },
+ .{ .from = 0x205, .first = 0x65 },
+ .{ .from = 0x206, .first = 0x65 },
+ .{ .from = 0x207, .first = 0x65 },
+ .{ .from = 0x208, .first = 0x69 },
+ .{ .from = 0x209, .first = 0x69 },
+ .{ .from = 0x20a, .first = 0x69 },
+ .{ .from = 0x20b, .first = 0x69 },
+ .{ .from = 0x20c, .first = 0x6f },
+ .{ .from = 0x20d, .first = 0x6f },
+ .{ .from = 0x20e, .first = 0x6f },
+ .{ .from = 0x20f, .first = 0x6f },
+ .{ .from = 0x210, .first = 0x72 },
+ .{ .from = 0x211, .first = 0x72 },
+ .{ .from = 0x212, .first = 0x72 },
+ .{ .from = 0x213, .first = 0x72 },
+ .{ .from = 0x214, .first = 0x75 },
+ .{ .from = 0x215, .first = 0x75 },
+ .{ .from = 0x216, .first = 0x75 },
+ .{ .from = 0x217, .first = 0x75 },
+ .{ .from = 0x218, .first = 0x73 },
+ .{ .from = 0x219, .first = 0x73 },
+ .{ .from = 0x21a, .first = 0x74 },
+ .{ .from = 0x21b, .first = 0x74 },
+ .{ .from = 0x21c, .first = 0x21d },
+ .{ .from = 0x21e, .first = 0x68 },
+ .{ .from = 0x21f, .first = 0x68 },
+ .{ .from = 0x220, .first = 0x19e },
+ .{ .from = 0x222, .first = 0x223 },
+ .{ .from = 0x224, .first = 0x225 },
+ .{ .from = 0x226, .first = 0x61 },
+ .{ .from = 0x227, .first = 0x61 },
+ .{ .from = 0x228, .first = 0x65 },
+ .{ .from = 0x229, .first = 0x65 },
+ .{ .from = 0x22a, .first = 0x6f },
+ .{ .from = 0x22b, .first = 0x6f },
+ .{ .from = 0x22c, .first = 0x6f },
+ .{ .from = 0x22d, .first = 0x6f },
+ .{ .from = 0x22e, .first = 0x6f },
+ .{ .from = 0x22f, .first = 0x6f },
+ .{ .from = 0x230, .first = 0x6f },
+ .{ .from = 0x231, .first = 0x6f },
+ .{ .from = 0x232, .first = 0x79 },
+ .{ .from = 0x233, .first = 0x79 },
+ .{ .from = 0x23a, .first = 0x2c65 },
+ .{ .from = 0x23b, .first = 0x23c },
+ .{ .from = 0x23d, .first = 0x19a },
+ .{ .from = 0x23e, .first = 0x2c66 },
+ .{ .from = 0x241, .first = 0x242 },
+ .{ .from = 0x243, .first = 0x180 },
+ .{ .from = 0x244, .first = 0x289 },
+ .{ .from = 0x245, .first = 0x28c },
+ .{ .from = 0x246, .first = 0x247 },
+ .{ .from = 0x248, .first = 0x249 },
+ .{ .from = 0x24a, .first = 0x24b },
+ .{ .from = 0x24c, .first = 0x24d },
+ .{ .from = 0x24e, .first = 0x24f },
+ .{ .from = 0x370, .first = 0x371 },
+ .{ .from = 0x372, .first = 0x373 },
+ .{ .from = 0x374, .first = 0x2b9 },
+ .{ .from = 0x376, .first = 0x377 },
+ .{ .from = 0x37e, .first = 0x3b },
+ .{ .from = 0x37f, .first = 0x3f3 },
+ .{ .from = 0x385, .first = 0xa8 },
+ .{ .from = 0x386, .first = 0x3b1 },
+ .{ .from = 0x387, .first = 0xb7 },
+ .{ .from = 0x388, .first = 0x3b5 },
+ .{ .from = 0x389, .first = 0x3b7 },
+ .{ .from = 0x38a, .first = 0x3b9 },
+ .{ .from = 0x38c, .first = 0x3bf },
+ .{ .from = 0x38e, .first = 0x3c5 },
+ .{ .from = 0x38f, .first = 0x3c9 },
+ .{ .from = 0x390, .first = 0x3b9 },
+ .{ .from = 0x391, .first = 0x3b1 },
+ .{ .from = 0x392, .first = 0x3b2 },
+ .{ .from = 0x393, .first = 0x3b3 },
+ .{ .from = 0x394, .first = 0x3b4 },
+ .{ .from = 0x395, .first = 0x3b5 },
+ .{ .from = 0x396, .first = 0x3b6 },
+ .{ .from = 0x397, .first = 0x3b7 },
+ .{ .from = 0x398, .first = 0x3b8 },
+ .{ .from = 0x399, .first = 0x3b9 },
+ .{ .from = 0x39a, .first = 0x3ba },
+ .{ .from = 0x39b, .first = 0x3bb },
+ .{ .from = 0x39c, .first = 0x3bc },
+ .{ .from = 0x39d, .first = 0x3bd },
+ .{ .from = 0x39e, .first = 0x3be },
+ .{ .from = 0x39f, .first = 0x3bf },
+ .{ .from = 0x3a0, .first = 0x3c0 },
+ .{ .from = 0x3a1, .first = 0x3c1 },
+ .{ .from = 0x3a3, .first = 0x3c3 },
+ .{ .from = 0x3a4, .first = 0x3c4 },
+ .{ .from = 0x3a5, .first = 0x3c5 },
+ .{ .from = 0x3a6, .first = 0x3c6 },
+ .{ .from = 0x3a7, .first = 0x3c7 },
+ .{ .from = 0x3a8, .first = 0x3c8 },
+ .{ .from = 0x3a9, .first = 0x3c9 },
+ .{ .from = 0x3aa, .first = 0x3b9 },
+ .{ .from = 0x3ab, .first = 0x3c5 },
+ .{ .from = 0x3ac, .first = 0x3b1 },
+ .{ .from = 0x3ad, .first = 0x3b5 },
+ .{ .from = 0x3ae, .first = 0x3b7 },
+ .{ .from = 0x3af, .first = 0x3b9 },
+ .{ .from = 0x3b0, .first = 0x3c5 },
+ .{ .from = 0x3c2, .first = 0x3c3 },
+ .{ .from = 0x3ca, .first = 0x3b9 },
+ .{ .from = 0x3cb, .first = 0x3c5 },
+ .{ .from = 0x3cc, .first = 0x3bf },
+ .{ .from = 0x3cd, .first = 0x3c5 },
+ .{ .from = 0x3ce, .first = 0x3c9 },
+ .{ .from = 0x3cf, .first = 0x3d7 },
+ .{ .from = 0x3d0, .first = 0x3b2 },
+ .{ .from = 0x3d1, .first = 0x3b8 },
+ .{ .from = 0x3d3, .first = 0x3d2 },
+ .{ .from = 0x3d4, .first = 0x3d2 },
+ .{ .from = 0x3d5, .first = 0x3c6 },
+ .{ .from = 0x3d6, .first = 0x3c0 },
+ .{ .from = 0x3d8, .first = 0x3d9 },
+ .{ .from = 0x3da, .first = 0x3db },
+ .{ .from = 0x3dc, .first = 0x3dd },
+ .{ .from = 0x3de, .first = 0x3df },
+ .{ .from = 0x3e0, .first = 0x3e1 },
+ .{ .from = 0x3f0, .first = 0x3ba },
+ .{ .from = 0x3f1, .first = 0x3c1 },
+ .{ .from = 0x3f4, .first = 0x3b8 },
+ .{ .from = 0x3f5, .first = 0x3b5 },
+ .{ .from = 0x3f7, .first = 0x3f8 },
+ .{ .from = 0x3f9, .first = 0x3f2 },
+ .{ .from = 0x3fa, .first = 0x3fb },
+ .{ .from = 0x3fd, .first = 0x37b },
+ .{ .from = 0x3fe, .first = 0x37c },
+ .{ .from = 0x3ff, .first = 0x37d },
+ .{ .from = 0x400, .first = 0x435 },
+ .{ .from = 0x401, .first = 0x435 },
+ .{ .from = 0x402, .first = 0x452 },
+ .{ .from = 0x403, .first = 0x433 },
+ .{ .from = 0x404, .first = 0x454 },
+ .{ .from = 0x405, .first = 0x455 },
+ .{ .from = 0x406, .first = 0x456 },
+ .{ .from = 0x407, .first = 0x456 },
+ .{ .from = 0x408, .first = 0x458 },
+ .{ .from = 0x409, .first = 0x459 },
+ .{ .from = 0x40a, .first = 0x45a },
+ .{ .from = 0x40b, .first = 0x45b },
+ .{ .from = 0x40c, .first = 0x43a },
+ .{ .from = 0x40d, .first = 0x438 },
+ .{ .from = 0x40e, .first = 0x443 },
+ .{ .from = 0x40f, .first = 0x45f },
+ .{ .from = 0x410, .first = 0x430 },
+ .{ .from = 0x411, .first = 0x431 },
+ .{ .from = 0x412, .first = 0x432 },
+ .{ .from = 0x413, .first = 0x433 },
+ .{ .from = 0x414, .first = 0x434 },
+ .{ .from = 0x415, .first = 0x435 },
+ .{ .from = 0x416, .first = 0x436 },
+ .{ .from = 0x417, .first = 0x437 },
+ .{ .from = 0x418, .first = 0x438 },
+ .{ .from = 0x419, .first = 0x438 },
+ .{ .from = 0x41a, .first = 0x43a },
+ .{ .from = 0x41b, .first = 0x43b },
+ .{ .from = 0x41c, .first = 0x43c },
+ .{ .from = 0x41d, .first = 0x43d },
+ .{ .from = 0x41e, .first = 0x43e },
+ .{ .from = 0x41f, .first = 0x43f },
+ .{ .from = 0x420, .first = 0x440 },
+ .{ .from = 0x421, .first = 0x441 },
+ .{ .from = 0x422, .first = 0x442 },
+ .{ .from = 0x423, .first = 0x443 },
+ .{ .from = 0x424, .first = 0x444 },
+ .{ .from = 0x425, .first = 0x445 },
+ .{ .from = 0x426, .first = 0x446 },
+ .{ .from = 0x427, .first = 0x447 },
+ .{ .from = 0x428, .first = 0x448 },
+ .{ .from = 0x429, .first = 0x449 },
+ .{ .from = 0x42a, .first = 0x44a },
+ .{ .from = 0x42b, .first = 0x44b },
+ .{ .from = 0x42c, .first = 0x44c },
+ .{ .from = 0x42d, .first = 0x44d },
+ .{ .from = 0x42e, .first = 0x44e },
+ .{ .from = 0x42f, .first = 0x44f },
+ .{ .from = 0x439, .first = 0x438 },
+ .{ .from = 0x450, .first = 0x435 },
+ .{ .from = 0x451, .first = 0x435 },
+ .{ .from = 0x453, .first = 0x433 },
+ .{ .from = 0x457, .first = 0x456 },
+ .{ .from = 0x45c, .first = 0x43a },
+ .{ .from = 0x45d, .first = 0x438 },
+ .{ .from = 0x45e, .first = 0x443 },
+ .{ .from = 0x460, .first = 0x461 },
+ .{ .from = 0x462, .first = 0x463 },
+ .{ .from = 0x464, .first = 0x465 },
+ .{ .from = 0x466, .first = 0x467 },
+ .{ .from = 0x468, .first = 0x469 },
+ .{ .from = 0x46a, .first = 0x46b },
+ .{ .from = 0x46c, .first = 0x46d },
+ .{ .from = 0x46e, .first = 0x46f },
+ .{ .from = 0x470, .first = 0x471 },
+ .{ .from = 0x472, .first = 0x473 },
+ .{ .from = 0x474, .first = 0x475 },
+ .{ .from = 0x476, .first = 0x475 },
+ .{ .from = 0x477, .first = 0x475 },
+ .{ .from = 0x478, .first = 0x479 },
+ .{ .from = 0x47a, .first = 0x47b },
+ .{ .from = 0x47c, .first = 0x47d },
+ .{ .from = 0x47e, .first = 0x47f },
+ .{ .from = 0x480, .first = 0x481 },
+ .{ .from = 0x48a, .first = 0x48b },
+ .{ .from = 0x48c, .first = 0x48d },
+ .{ .from = 0x48e, .first = 0x48f },
+ .{ .from = 0x490, .first = 0x491 },
+ .{ .from = 0x492, .first = 0x493 },
+ .{ .from = 0x494, .first = 0x495 },
+ .{ .from = 0x496, .first = 0x497 },
+ .{ .from = 0x498, .first = 0x499 },
+ .{ .from = 0x49a, .first = 0x49b },
+ .{ .from = 0x49c, .first = 0x49d },
+ .{ .from = 0x49e, .first = 0x49f },
+ .{ .from = 0x4a0, .first = 0x4a1 },
+ .{ .from = 0x4a2, .first = 0x4a3 },
+ .{ .from = 0x4a4, .first = 0x4a5 },
+ .{ .from = 0x4a6, .first = 0x4a7 },
+ .{ .from = 0x4a8, .first = 0x4a9 },
+ .{ .from = 0x4aa, .first = 0x4ab },
+ .{ .from = 0x4ac, .first = 0x4ad },
+ .{ .from = 0x4ae, .first = 0x4af },
+ .{ .from = 0x4b0, .first = 0x4b1 },
+ .{ .from = 0x4b2, .first = 0x4b3 },
+ .{ .from = 0x4b4, .first = 0x4b5 },
+ .{ .from = 0x4b6, .first = 0x4b7 },
+ .{ .from = 0x4b8, .first = 0x4b9 },
+ .{ .from = 0x4ba, .first = 0x4bb },
+ .{ .from = 0x4bc, .first = 0x4bd },
+ .{ .from = 0x4be, .first = 0x4bf },
+ .{ .from = 0x4c0, .first = 0x4cf },
+ .{ .from = 0x4c1, .first = 0x436 },
+ .{ .from = 0x4c2, .first = 0x436 },
+ .{ .from = 0x4c3, .first = 0x4c4 },
+ .{ .from = 0x4c5, .first = 0x4c6 },
+ .{ .from = 0x4c7, .first = 0x4c8 },
+ .{ .from = 0x4c9, .first = 0x4ca },
+ .{ .from = 0x4cb, .first = 0x4cc },
+ .{ .from = 0x4cd, .first = 0x4ce },
+ .{ .from = 0x4d0, .first = 0x430 },
+ .{ .from = 0x4d1, .first = 0x430 },
+ .{ .from = 0x4d2, .first = 0x430 },
+ .{ .from = 0x4d3, .first = 0x430 },
+ .{ .from = 0x4d4, .first = 0x4d5 },
+ .{ .from = 0x4d6, .first = 0x435 },
+ .{ .from = 0x4d7, .first = 0x435 },
+ .{ .from = 0x4d8, .first = 0x4d9 },
+ .{ .from = 0x4da, .first = 0x4d9 },
+ .{ .from = 0x4db, .first = 0x4d9 },
+ .{ .from = 0x4dc, .first = 0x436 },
+ .{ .from = 0x4dd, .first = 0x436 },
+ .{ .from = 0x4de, .first = 0x437 },
+ .{ .from = 0x4df, .first = 0x437 },
+ .{ .from = 0x4e0, .first = 0x4e1 },
+ .{ .from = 0x4e2, .first = 0x438 },
+ .{ .from = 0x4e3, .first = 0x438 },
+ .{ .from = 0x4e4, .first = 0x438 },
+ .{ .from = 0x4e5, .first = 0x438 },
+ .{ .from = 0x4e6, .first = 0x43e },
+ .{ .from = 0x4e7, .first = 0x43e },
+ .{ .from = 0x4e8, .first = 0x4e9 },
+ .{ .from = 0x4ea, .first = 0x4e9 },
+ .{ .from = 0x4eb, .first = 0x4e9 },
+ .{ .from = 0x4ec, .first = 0x44d },
+ .{ .from = 0x4ed, .first = 0x44d },
+ .{ .from = 0x4ee, .first = 0x443 },
+ .{ .from = 0x4ef, .first = 0x443 },
+ .{ .from = 0x4f0, .first = 0x443 },
+ .{ .from = 0x4f1, .first = 0x443 },
+ .{ .from = 0x4f2, .first = 0x443 },
+ .{ .from = 0x4f3, .first = 0x443 },
+ .{ .from = 0x4f4, .first = 0x447 },
+ .{ .from = 0x4f5, .first = 0x447 },
+ .{ .from = 0x4f6, .first = 0x4f7 },
+ .{ .from = 0x4f8, .first = 0x44b },
+ .{ .from = 0x4f9, .first = 0x44b },
+ .{ .from = 0x4fa, .first = 0x4fb },
+ .{ .from = 0x4fc, .first = 0x4fd },
+ .{ .from = 0x4fe, .first = 0x4ff },
+ .{ .from = 0x500, .first = 0x501 },
+ .{ .from = 0x502, .first = 0x503 },
+ .{ .from = 0x504, .first = 0x505 },
+ .{ .from = 0x506, .first = 0x507 },
+ .{ .from = 0x508, .first = 0x509 },
+ .{ .from = 0x50a, .first = 0x50b },
+ .{ .from = 0x50c, .first = 0x50d },
+ .{ .from = 0x50e, .first = 0x50f },
+ .{ .from = 0x510, .first = 0x511 },
+ .{ .from = 0x512, .first = 0x513 },
+ .{ .from = 0x514, .first = 0x515 },
+ .{ .from = 0x516, .first = 0x517 },
+ .{ .from = 0x518, .first = 0x519 },
+ .{ .from = 0x51a, .first = 0x51b },
+ .{ .from = 0x51c, .first = 0x51d },
+ .{ .from = 0x51e, .first = 0x51f },
+ .{ .from = 0x520, .first = 0x521 },
+ .{ .from = 0x522, .first = 0x523 },
+ .{ .from = 0x524, .first = 0x525 },
+ .{ .from = 0x526, .first = 0x527 },
+ .{ .from = 0x528, .first = 0x529 },
+ .{ .from = 0x52a, .first = 0x52b },
+ .{ .from = 0x52c, .first = 0x52d },
+ .{ .from = 0x52e, .first = 0x52f },
+ .{ .from = 0x1e00, .first = 0x61 },
+ .{ .from = 0x1e01, .first = 0x61 },
+ .{ .from = 0x1e02, .first = 0x62 },
+ .{ .from = 0x1e03, .first = 0x62 },
+ .{ .from = 0x1e04, .first = 0x62 },
+ .{ .from = 0x1e05, .first = 0x62 },
+ .{ .from = 0x1e06, .first = 0x62 },
+ .{ .from = 0x1e07, .first = 0x62 },
+ .{ .from = 0x1e08, .first = 0x63 },
+ .{ .from = 0x1e09, .first = 0x63 },
+ .{ .from = 0x1e0a, .first = 0x64 },
+ .{ .from = 0x1e0b, .first = 0x64 },
+ .{ .from = 0x1e0c, .first = 0x64 },
+ .{ .from = 0x1e0d, .first = 0x64 },
+ .{ .from = 0x1e0e, .first = 0x64 },
+ .{ .from = 0x1e0f, .first = 0x64 },
+ .{ .from = 0x1e10, .first = 0x64 },
+ .{ .from = 0x1e11, .first = 0x64 },
+ .{ .from = 0x1e12, .first = 0x64 },
+ .{ .from = 0x1e13, .first = 0x64 },
+ .{ .from = 0x1e14, .first = 0x65 },
+ .{ .from = 0x1e15, .first = 0x65 },
+ .{ .from = 0x1e16, .first = 0x65 },
+ .{ .from = 0x1e17, .first = 0x65 },
+ .{ .from = 0x1e18, .first = 0x65 },
+ .{ .from = 0x1e19, .first = 0x65 },
+ .{ .from = 0x1e1a, .first = 0x65 },
+ .{ .from = 0x1e1b, .first = 0x65 },
+ .{ .from = 0x1e1c, .first = 0x65 },
+ .{ .from = 0x1e1d, .first = 0x65 },
+ .{ .from = 0x1e1e, .first = 0x66 },
+ .{ .from = 0x1e1f, .first = 0x66 },
+ .{ .from = 0x1e20, .first = 0x67 },
+ .{ .from = 0x1e21, .first = 0x67 },
+ .{ .from = 0x1e22, .first = 0x68 },
+ .{ .from = 0x1e23, .first = 0x68 },
+ .{ .from = 0x1e24, .first = 0x68 },
+ .{ .from = 0x1e25, .first = 0x68 },
+ .{ .from = 0x1e26, .first = 0x68 },
+ .{ .from = 0x1e27, .first = 0x68 },
+ .{ .from = 0x1e28, .first = 0x68 },
+ .{ .from = 0x1e29, .first = 0x68 },
+ .{ .from = 0x1e2a, .first = 0x68 },
+ .{ .from = 0x1e2b, .first = 0x68 },
+ .{ .from = 0x1e2c, .first = 0x69 },
+ .{ .from = 0x1e2d, .first = 0x69 },
+ .{ .from = 0x1e2e, .first = 0x69 },
+ .{ .from = 0x1e2f, .first = 0x69 },
+ .{ .from = 0x1e30, .first = 0x6b },
+ .{ .from = 0x1e31, .first = 0x6b },
+ .{ .from = 0x1e32, .first = 0x6b },
+ .{ .from = 0x1e33, .first = 0x6b },
+ .{ .from = 0x1e34, .first = 0x6b },
+ .{ .from = 0x1e35, .first = 0x6b },
+ .{ .from = 0x1e36, .first = 0x6c },
+ .{ .from = 0x1e37, .first = 0x6c },
+ .{ .from = 0x1e38, .first = 0x6c },
+ .{ .from = 0x1e39, .first = 0x6c },
+ .{ .from = 0x1e3a, .first = 0x6c },
+ .{ .from = 0x1e3b, .first = 0x6c },
+ .{ .from = 0x1e3c, .first = 0x6c },
+ .{ .from = 0x1e3d, .first = 0x6c },
+ .{ .from = 0x1e3e, .first = 0x6d },
+ .{ .from = 0x1e3f, .first = 0x6d },
+ .{ .from = 0x1e40, .first = 0x6d },
+ .{ .from = 0x1e41, .first = 0x6d },
+ .{ .from = 0x1e42, .first = 0x6d },
+ .{ .from = 0x1e43, .first = 0x6d },
+ .{ .from = 0x1e44, .first = 0x6e },
+ .{ .from = 0x1e45, .first = 0x6e },
+ .{ .from = 0x1e46, .first = 0x6e },
+ .{ .from = 0x1e47, .first = 0x6e },
+ .{ .from = 0x1e48, .first = 0x6e },
+ .{ .from = 0x1e49, .first = 0x6e },
+ .{ .from = 0x1e4a, .first = 0x6e },
+ .{ .from = 0x1e4b, .first = 0x6e },
+ .{ .from = 0x1e4c, .first = 0x6f },
+ .{ .from = 0x1e4d, .first = 0x6f },
+ .{ .from = 0x1e4e, .first = 0x6f },
+ .{ .from = 0x1e4f, .first = 0x6f },
+ .{ .from = 0x1e50, .first = 0x6f },
+ .{ .from = 0x1e51, .first = 0x6f },
+ .{ .from = 0x1e52, .first = 0x6f },
+ .{ .from = 0x1e53, .first = 0x6f },
+ .{ .from = 0x1e54, .first = 0x70 },
+ .{ .from = 0x1e55, .first = 0x70 },
+ .{ .from = 0x1e56, .first = 0x70 },
+ .{ .from = 0x1e57, .first = 0x70 },
+ .{ .from = 0x1e58, .first = 0x72 },
+ .{ .from = 0x1e59, .first = 0x72 },
+ .{ .from = 0x1e5a, .first = 0x72 },
+ .{ .from = 0x1e5b, .first = 0x72 },
+ .{ .from = 0x1e5c, .first = 0x72 },
+ .{ .from = 0x1e5d, .first = 0x72 },
+ .{ .from = 0x1e5e, .first = 0x72 },
+ .{ .from = 0x1e5f, .first = 0x72 },
+ .{ .from = 0x1e60, .first = 0x73 },
+ .{ .from = 0x1e61, .first = 0x73 },
+ .{ .from = 0x1e62, .first = 0x73 },
+ .{ .from = 0x1e63, .first = 0x73 },
+ .{ .from = 0x1e64, .first = 0x73 },
+ .{ .from = 0x1e65, .first = 0x73 },
+ .{ .from = 0x1e66, .first = 0x73 },
+ .{ .from = 0x1e67, .first = 0x73 },
+ .{ .from = 0x1e68, .first = 0x73 },
+ .{ .from = 0x1e69, .first = 0x73 },
+ .{ .from = 0x1e6a, .first = 0x74 },
+ .{ .from = 0x1e6b, .first = 0x74 },
+ .{ .from = 0x1e6c, .first = 0x74 },
+ .{ .from = 0x1e6d, .first = 0x74 },
+ .{ .from = 0x1e6e, .first = 0x74 },
+ .{ .from = 0x1e6f, .first = 0x74 },
+ .{ .from = 0x1e70, .first = 0x74 },
+ .{ .from = 0x1e71, .first = 0x74 },
+ .{ .from = 0x1e72, .first = 0x75 },
+ .{ .from = 0x1e73, .first = 0x75 },
+ .{ .from = 0x1e74, .first = 0x75 },
+ .{ .from = 0x1e75, .first = 0x75 },
+ .{ .from = 0x1e76, .first = 0x75 },
+ .{ .from = 0x1e77, .first = 0x75 },
+ .{ .from = 0x1e78, .first = 0x75 },
+ .{ .from = 0x1e79, .first = 0x75 },
+ .{ .from = 0x1e7a, .first = 0x75 },
+ .{ .from = 0x1e7b, .first = 0x75 },
+ .{ .from = 0x1e7c, .first = 0x76 },
+ .{ .from = 0x1e7d, .first = 0x76 },
+ .{ .from = 0x1e7e, .first = 0x76 },
+ .{ .from = 0x1e7f, .first = 0x76 },
+ .{ .from = 0x1e80, .first = 0x77 },
+ .{ .from = 0x1e81, .first = 0x77 },
+ .{ .from = 0x1e82, .first = 0x77 },
+ .{ .from = 0x1e83, .first = 0x77 },
+ .{ .from = 0x1e84, .first = 0x77 },
+ .{ .from = 0x1e85, .first = 0x77 },
+ .{ .from = 0x1e86, .first = 0x77 },
+ .{ .from = 0x1e87, .first = 0x77 },
+ .{ .from = 0x1e88, .first = 0x77 },
+ .{ .from = 0x1e89, .first = 0x77 },
+ .{ .from = 0x1e8a, .first = 0x78 },
+ .{ .from = 0x1e8b, .first = 0x78 },
+ .{ .from = 0x1e8c, .first = 0x78 },
+ .{ .from = 0x1e8d, .first = 0x78 },
+ .{ .from = 0x1e8e, .first = 0x79 },
+ .{ .from = 0x1e8f, .first = 0x79 },
+ .{ .from = 0x1e90, .first = 0x7a },
+ .{ .from = 0x1e91, .first = 0x7a },
+ .{ .from = 0x1e92, .first = 0x7a },
+ .{ .from = 0x1e93, .first = 0x7a },
+ .{ .from = 0x1e94, .first = 0x7a },
+ .{ .from = 0x1e95, .first = 0x7a },
+ .{ .from = 0x1e96, .first = 0x68 },
+ .{ .from = 0x1e97, .first = 0x74 },
+ .{ .from = 0x1e98, .first = 0x77 },
+ .{ .from = 0x1e99, .first = 0x79 },
+ .{ .from = 0x1e9b, .first = 0x73 },
+ .{ .from = 0x1e9e, .first = 0x73, .second = 0x73 },
+ .{ .from = 0x1ea0, .first = 0x61 },
+ .{ .from = 0x1ea1, .first = 0x61 },
+ .{ .from = 0x1ea2, .first = 0x61 },
+ .{ .from = 0x1ea3, .first = 0x61 },
+ .{ .from = 0x1ea4, .first = 0x61 },
+ .{ .from = 0x1ea5, .first = 0x61 },
+ .{ .from = 0x1ea6, .first = 0x61 },
+ .{ .from = 0x1ea7, .first = 0x61 },
+ .{ .from = 0x1ea8, .first = 0x61 },
+ .{ .from = 0x1ea9, .first = 0x61 },
+ .{ .from = 0x1eaa, .first = 0x61 },
+ .{ .from = 0x1eab, .first = 0x61 },
+ .{ .from = 0x1eac, .first = 0x61 },
+ .{ .from = 0x1ead, .first = 0x61 },
+ .{ .from = 0x1eae, .first = 0x61 },
+ .{ .from = 0x1eaf, .first = 0x61 },
+ .{ .from = 0x1eb0, .first = 0x61 },
+ .{ .from = 0x1eb1, .first = 0x61 },
+ .{ .from = 0x1eb2, .first = 0x61 },
+ .{ .from = 0x1eb3, .first = 0x61 },
+ .{ .from = 0x1eb4, .first = 0x61 },
+ .{ .from = 0x1eb5, .first = 0x61 },
+ .{ .from = 0x1eb6, .first = 0x61 },
+ .{ .from = 0x1eb7, .first = 0x61 },
+ .{ .from = 0x1eb8, .first = 0x65 },
+ .{ .from = 0x1eb9, .first = 0x65 },
+ .{ .from = 0x1eba, .first = 0x65 },
+ .{ .from = 0x1ebb, .first = 0x65 },
+ .{ .from = 0x1ebc, .first = 0x65 },
+ .{ .from = 0x1ebd, .first = 0x65 },
+ .{ .from = 0x1ebe, .first = 0x65 },
+ .{ .from = 0x1ebf, .first = 0x65 },
+ .{ .from = 0x1ec0, .first = 0x65 },
+ .{ .from = 0x1ec1, .first = 0x65 },
+ .{ .from = 0x1ec2, .first = 0x65 },
+ .{ .from = 0x1ec3, .first = 0x65 },
+ .{ .from = 0x1ec4, .first = 0x65 },
+ .{ .from = 0x1ec5, .first = 0x65 },
+ .{ .from = 0x1ec6, .first = 0x65 },
+ .{ .from = 0x1ec7, .first = 0x65 },
+ .{ .from = 0x1ec8, .first = 0x69 },
+ .{ .from = 0x1ec9, .first = 0x69 },
+ .{ .from = 0x1eca, .first = 0x69 },
+ .{ .from = 0x1ecb, .first = 0x69 },
+ .{ .from = 0x1ecc, .first = 0x6f },
+ .{ .from = 0x1ecd, .first = 0x6f },
+ .{ .from = 0x1ece, .first = 0x6f },
+ .{ .from = 0x1ecf, .first = 0x6f },
+ .{ .from = 0x1ed0, .first = 0x6f },
+ .{ .from = 0x1ed1, .first = 0x6f },
+ .{ .from = 0x1ed2, .first = 0x6f },
+ .{ .from = 0x1ed3, .first = 0x6f },
+ .{ .from = 0x1ed4, .first = 0x6f },
+ .{ .from = 0x1ed5, .first = 0x6f },
+ .{ .from = 0x1ed6, .first = 0x6f },
+ .{ .from = 0x1ed7, .first = 0x6f },
+ .{ .from = 0x1ed8, .first = 0x6f },
+ .{ .from = 0x1ed9, .first = 0x6f },
+ .{ .from = 0x1eda, .first = 0x6f },
+ .{ .from = 0x1edb, .first = 0x6f },
+ .{ .from = 0x1edc, .first = 0x6f },
+ .{ .from = 0x1edd, .first = 0x6f },
+ .{ .from = 0x1ede, .first = 0x6f },
+ .{ .from = 0x1edf, .first = 0x6f },
+ .{ .from = 0x1ee0, .first = 0x6f },
+ .{ .from = 0x1ee1, .first = 0x6f },
+ .{ .from = 0x1ee2, .first = 0x6f },
+ .{ .from = 0x1ee3, .first = 0x6f },
+ .{ .from = 0x1ee4, .first = 0x75 },
+ .{ .from = 0x1ee5, .first = 0x75 },
+ .{ .from = 0x1ee6, .first = 0x75 },
+ .{ .from = 0x1ee7, .first = 0x75 },
+ .{ .from = 0x1ee8, .first = 0x75 },
+ .{ .from = 0x1ee9, .first = 0x75 },
+ .{ .from = 0x1eea, .first = 0x75 },
+ .{ .from = 0x1eeb, .first = 0x75 },
+ .{ .from = 0x1eec, .first = 0x75 },
+ .{ .from = 0x1eed, .first = 0x75 },
+ .{ .from = 0x1eee, .first = 0x75 },
+ .{ .from = 0x1eef, .first = 0x75 },
+ .{ .from = 0x1ef0, .first = 0x75 },
+ .{ .from = 0x1ef1, .first = 0x75 },
+ .{ .from = 0x1ef2, .first = 0x79 },
+ .{ .from = 0x1ef3, .first = 0x79 },
+ .{ .from = 0x1ef4, .first = 0x79 },
+ .{ .from = 0x1ef5, .first = 0x79 },
+ .{ .from = 0x1ef6, .first = 0x79 },
+ .{ .from = 0x1ef7, .first = 0x79 },
+ .{ .from = 0x1ef8, .first = 0x79 },
+ .{ .from = 0x1ef9, .first = 0x79 },
+ .{ .from = 0x1efa, .first = 0x1efb },
+ .{ .from = 0x1efc, .first = 0x1efd },
+ .{ .from = 0x1efe, .first = 0x1eff },
+ .{ .from = 0x1f00, .first = 0x3b1 },
+ .{ .from = 0x1f01, .first = 0x3b1 },
+ .{ .from = 0x1f02, .first = 0x3b1 },
+ .{ .from = 0x1f03, .first = 0x3b1 },
+ .{ .from = 0x1f04, .first = 0x3b1 },
+ .{ .from = 0x1f05, .first = 0x3b1 },
+ .{ .from = 0x1f06, .first = 0x3b1 },
+ .{ .from = 0x1f07, .first = 0x3b1 },
+ .{ .from = 0x1f08, .first = 0x3b1 },
+ .{ .from = 0x1f09, .first = 0x3b1 },
+ .{ .from = 0x1f0a, .first = 0x3b1 },
+ .{ .from = 0x1f0b, .first = 0x3b1 },
+ .{ .from = 0x1f0c, .first = 0x3b1 },
+ .{ .from = 0x1f0d, .first = 0x3b1 },
+ .{ .from = 0x1f0e, .first = 0x3b1 },
+ .{ .from = 0x1f0f, .first = 0x3b1 },
+ .{ .from = 0x1f10, .first = 0x3b5 },
+ .{ .from = 0x1f11, .first = 0x3b5 },
+ .{ .from = 0x1f12, .first = 0x3b5 },
+ .{ .from = 0x1f13, .first = 0x3b5 },
+ .{ .from = 0x1f14, .first = 0x3b5 },
+ .{ .from = 0x1f15, .first = 0x3b5 },
+ .{ .from = 0x1f18, .first = 0x3b5 },
+ .{ .from = 0x1f19, .first = 0x3b5 },
+ .{ .from = 0x1f1a, .first = 0x3b5 },
+ .{ .from = 0x1f1b, .first = 0x3b5 },
+ .{ .from = 0x1f1c, .first = 0x3b5 },
+ .{ .from = 0x1f1d, .first = 0x3b5 },
+ .{ .from = 0x1f20, .first = 0x3b7 },
+ .{ .from = 0x1f21, .first = 0x3b7 },
+ .{ .from = 0x1f22, .first = 0x3b7 },
+ .{ .from = 0x1f23, .first = 0x3b7 },
+ .{ .from = 0x1f24, .first = 0x3b7 },
+ .{ .from = 0x1f25, .first = 0x3b7 },
+ .{ .from = 0x1f26, .first = 0x3b7 },
+ .{ .from = 0x1f27, .first = 0x3b7 },
+ .{ .from = 0x1f28, .first = 0x3b7 },
+ .{ .from = 0x1f29, .first = 0x3b7 },
+ .{ .from = 0x1f2a, .first = 0x3b7 },
+ .{ .from = 0x1f2b, .first = 0x3b7 },
+ .{ .from = 0x1f2c, .first = 0x3b7 },
+ .{ .from = 0x1f2d, .first = 0x3b7 },
+ .{ .from = 0x1f2e, .first = 0x3b7 },
+ .{ .from = 0x1f2f, .first = 0x3b7 },
+ .{ .from = 0x1f30, .first = 0x3b9 },
+ .{ .from = 0x1f31, .first = 0x3b9 },
+ .{ .from = 0x1f32, .first = 0x3b9 },
+ .{ .from = 0x1f33, .first = 0x3b9 },
+ .{ .from = 0x1f34, .first = 0x3b9 },
+ .{ .from = 0x1f35, .first = 0x3b9 },
+ .{ .from = 0x1f36, .first = 0x3b9 },
+ .{ .from = 0x1f37, .first = 0x3b9 },
+ .{ .from = 0x1f38, .first = 0x3b9 },
+ .{ .from = 0x1f39, .first = 0x3b9 },
+ .{ .from = 0x1f3a, .first = 0x3b9 },
+ .{ .from = 0x1f3b, .first = 0x3b9 },
+ .{ .from = 0x1f3c, .first = 0x3b9 },
+ .{ .from = 0x1f3d, .first = 0x3b9 },
+ .{ .from = 0x1f3e, .first = 0x3b9 },
+ .{ .from = 0x1f3f, .first = 0x3b9 },
+ .{ .from = 0x1f40, .first = 0x3bf },
+ .{ .from = 0x1f41, .first = 0x3bf },
+ .{ .from = 0x1f42, .first = 0x3bf },
+ .{ .from = 0x1f43, .first = 0x3bf },
+ .{ .from = 0x1f44, .first = 0x3bf },
+ .{ .from = 0x1f45, .first = 0x3bf },
+ .{ .from = 0x1f48, .first = 0x3bf },
+ .{ .from = 0x1f49, .first = 0x3bf },
+ .{ .from = 0x1f4a, .first = 0x3bf },
+ .{ .from = 0x1f4b, .first = 0x3bf },
+ .{ .from = 0x1f4c, .first = 0x3bf },
+ .{ .from = 0x1f4d, .first = 0x3bf },
+ .{ .from = 0x1f50, .first = 0x3c5 },
+ .{ .from = 0x1f51, .first = 0x3c5 },
+ .{ .from = 0x1f52, .first = 0x3c5 },
+ .{ .from = 0x1f53, .first = 0x3c5 },
+ .{ .from = 0x1f54, .first = 0x3c5 },
+ .{ .from = 0x1f55, .first = 0x3c5 },
+ .{ .from = 0x1f56, .first = 0x3c5 },
+ .{ .from = 0x1f57, .first = 0x3c5 },
+ .{ .from = 0x1f59, .first = 0x3c5 },
+ .{ .from = 0x1f5b, .first = 0x3c5 },
+ .{ .from = 0x1f5d, .first = 0x3c5 },
+ .{ .from = 0x1f5f, .first = 0x3c5 },
+ .{ .from = 0x1f60, .first = 0x3c9 },
+ .{ .from = 0x1f61, .first = 0x3c9 },
+ .{ .from = 0x1f62, .first = 0x3c9 },
+ .{ .from = 0x1f63, .first = 0x3c9 },
+ .{ .from = 0x1f64, .first = 0x3c9 },
+ .{ .from = 0x1f65, .first = 0x3c9 },
+ .{ .from = 0x1f66, .first = 0x3c9 },
+ .{ .from = 0x1f67, .first = 0x3c9 },
+ .{ .from = 0x1f68, .first = 0x3c9 },
+ .{ .from = 0x1f69, .first = 0x3c9 },
+ .{ .from = 0x1f6a, .first = 0x3c9 },
+ .{ .from = 0x1f6b, .first = 0x3c9 },
+ .{ .from = 0x1f6c, .first = 0x3c9 },
+ .{ .from = 0x1f6d, .first = 0x3c9 },
+ .{ .from = 0x1f6e, .first = 0x3c9 },
+ .{ .from = 0x1f6f, .first = 0x3c9 },
+ .{ .from = 0x1f70, .first = 0x3b1 },
+ .{ .from = 0x1f71, .first = 0x3b1 },
+ .{ .from = 0x1f72, .first = 0x3b5 },
+ .{ .from = 0x1f73, .first = 0x3b5 },
+ .{ .from = 0x1f74, .first = 0x3b7 },
+ .{ .from = 0x1f75, .first = 0x3b7 },
+ .{ .from = 0x1f76, .first = 0x3b9 },
+ .{ .from = 0x1f77, .first = 0x3b9 },
+ .{ .from = 0x1f78, .first = 0x3bf },
+ .{ .from = 0x1f79, .first = 0x3bf },
+ .{ .from = 0x1f7a, .first = 0x3c5 },
+ .{ .from = 0x1f7b, .first = 0x3c5 },
+ .{ .from = 0x1f7c, .first = 0x3c9 },
+ .{ .from = 0x1f7d, .first = 0x3c9 },
+ .{ .from = 0x1f80, .first = 0x3b1 },
+ .{ .from = 0x1f81, .first = 0x3b1 },
+ .{ .from = 0x1f82, .first = 0x3b1 },
+ .{ .from = 0x1f83, .first = 0x3b1 },
+ .{ .from = 0x1f84, .first = 0x3b1 },
+ .{ .from = 0x1f85, .first = 0x3b1 },
+ .{ .from = 0x1f86, .first = 0x3b1 },
+ .{ .from = 0x1f87, .first = 0x3b1 },
+ .{ .from = 0x1f88, .first = 0x3b1 },
+ .{ .from = 0x1f89, .first = 0x3b1 },
+ .{ .from = 0x1f8a, .first = 0x3b1 },
+ .{ .from = 0x1f8b, .first = 0x3b1 },
+ .{ .from = 0x1f8c, .first = 0x3b1 },
+ .{ .from = 0x1f8d, .first = 0x3b1 },
+ .{ .from = 0x1f8e, .first = 0x3b1 },
+ .{ .from = 0x1f8f, .first = 0x3b1 },
+ .{ .from = 0x1f90, .first = 0x3b7 },
+ .{ .from = 0x1f91, .first = 0x3b7 },
+ .{ .from = 0x1f92, .first = 0x3b7 },
+ .{ .from = 0x1f93, .first = 0x3b7 },
+ .{ .from = 0x1f94, .first = 0x3b7 },
+ .{ .from = 0x1f95, .first = 0x3b7 },
+ .{ .from = 0x1f96, .first = 0x3b7 },
+ .{ .from = 0x1f97, .first = 0x3b7 },
+ .{ .from = 0x1f98, .first = 0x3b7 },
+ .{ .from = 0x1f99, .first = 0x3b7 },
+ .{ .from = 0x1f9a, .first = 0x3b7 },
+ .{ .from = 0x1f9b, .first = 0x3b7 },
+ .{ .from = 0x1f9c, .first = 0x3b7 },
+ .{ .from = 0x1f9d, .first = 0x3b7 },
+ .{ .from = 0x1f9e, .first = 0x3b7 },
+ .{ .from = 0x1f9f, .first = 0x3b7 },
+ .{ .from = 0x1fa0, .first = 0x3c9 },
+ .{ .from = 0x1fa1, .first = 0x3c9 },
+ .{ .from = 0x1fa2, .first = 0x3c9 },
+ .{ .from = 0x1fa3, .first = 0x3c9 },
+ .{ .from = 0x1fa4, .first = 0x3c9 },
+ .{ .from = 0x1fa5, .first = 0x3c9 },
+ .{ .from = 0x1fa6, .first = 0x3c9 },
+ .{ .from = 0x1fa7, .first = 0x3c9 },
+ .{ .from = 0x1fa8, .first = 0x3c9 },
+ .{ .from = 0x1fa9, .first = 0x3c9 },
+ .{ .from = 0x1faa, .first = 0x3c9 },
+ .{ .from = 0x1fab, .first = 0x3c9 },
+ .{ .from = 0x1fac, .first = 0x3c9 },
+ .{ .from = 0x1fad, .first = 0x3c9 },
+ .{ .from = 0x1fae, .first = 0x3c9 },
+ .{ .from = 0x1faf, .first = 0x3c9 },
+ .{ .from = 0x1fb0, .first = 0x3b1 },
+ .{ .from = 0x1fb1, .first = 0x3b1 },
+ .{ .from = 0x1fb2, .first = 0x3b1 },
+ .{ .from = 0x1fb3, .first = 0x3b1 },
+ .{ .from = 0x1fb4, .first = 0x3b1 },
+ .{ .from = 0x1fb6, .first = 0x3b1 },
+ .{ .from = 0x1fb7, .first = 0x3b1 },
+ .{ .from = 0x1fb8, .first = 0x3b1 },
+ .{ .from = 0x1fb9, .first = 0x3b1 },
+ .{ .from = 0x1fba, .first = 0x3b1 },
+ .{ .from = 0x1fbb, .first = 0x3b1 },
+ .{ .from = 0x1fbc, .first = 0x3b1 },
+ .{ .from = 0x1fbe, .first = 0x3b9 },
+ .{ .from = 0x1fc1, .first = 0xa8 },
+ .{ .from = 0x1fc2, .first = 0x3b7 },
+ .{ .from = 0x1fc3, .first = 0x3b7 },
+ .{ .from = 0x1fc4, .first = 0x3b7 },
+ .{ .from = 0x1fc6, .first = 0x3b7 },
+ .{ .from = 0x1fc7, .first = 0x3b7 },
+ .{ .from = 0x1fc8, .first = 0x3b5 },
+ .{ .from = 0x1fc9, .first = 0x3b5 },
+ .{ .from = 0x1fca, .first = 0x3b7 },
+ .{ .from = 0x1fcb, .first = 0x3b7 },
+ .{ .from = 0x1fcc, .first = 0x3b7 },
+ .{ .from = 0x1fcd, .first = 0x1fbf },
+ .{ .from = 0x1fce, .first = 0x1fbf },
+ .{ .from = 0x1fcf, .first = 0x1fbf },
+ .{ .from = 0x1fd0, .first = 0x3b9 },
+ .{ .from = 0x1fd1, .first = 0x3b9 },
+ .{ .from = 0x1fd2, .first = 0x3b9 },
+ .{ .from = 0x1fd3, .first = 0x3b9 },
+ .{ .from = 0x1fd6, .first = 0x3b9 },
+ .{ .from = 0x1fd7, .first = 0x3b9 },
+ .{ .from = 0x1fd8, .first = 0x3b9 },
+ .{ .from = 0x1fd9, .first = 0x3b9 },
+ .{ .from = 0x1fda, .first = 0x3b9 },
+ .{ .from = 0x1fdb, .first = 0x3b9 },
+ .{ .from = 0x1fdd, .first = 0x1ffe },
+ .{ .from = 0x1fde, .first = 0x1ffe },
+ .{ .from = 0x1fdf, .first = 0x1ffe },
+ .{ .from = 0x1fe0, .first = 0x3c5 },
+ .{ .from = 0x1fe1, .first = 0x3c5 },
+ .{ .from = 0x1fe2, .first = 0x3c5 },
+ .{ .from = 0x1fe3, .first = 0x3c5 },
+ .{ .from = 0x1fe4, .first = 0x3c1 },
+ .{ .from = 0x1fe5, .first = 0x3c1 },
+ .{ .from = 0x1fe6, .first = 0x3c5 },
+ .{ .from = 0x1fe7, .first = 0x3c5 },
+ .{ .from = 0x1fe8, .first = 0x3c5 },
+ .{ .from = 0x1fe9, .first = 0x3c5 },
+ .{ .from = 0x1fea, .first = 0x3c5 },
+ .{ .from = 0x1feb, .first = 0x3c5 },
+ .{ .from = 0x1fec, .first = 0x3c1 },
+ .{ .from = 0x1fed, .first = 0xa8 },
+ .{ .from = 0x1fee, .first = 0xa8 },
+ .{ .from = 0x1fef, .first = 0x60 },
+ .{ .from = 0x1ff2, .first = 0x3c9 },
+ .{ .from = 0x1ff3, .first = 0x3c9 },
+ .{ .from = 0x1ff4, .first = 0x3c9 },
+ .{ .from = 0x1ff6, .first = 0x3c9 },
+ .{ .from = 0x1ff7, .first = 0x3c9 },
+ .{ .from = 0x1ff8, .first = 0x3bf },
+ .{ .from = 0x1ff9, .first = 0x3bf },
+ .{ .from = 0x1ffa, .first = 0x3c9 },
+ .{ .from = 0x1ffb, .first = 0x3c9 },
+ .{ .from = 0x1ffc, .first = 0x3c9 },
+ .{ .from = 0x1ffd, .first = 0xb4 },
+ .{ .from = 0x2c60, .first = 0x2c61 },
+ .{ .from = 0x2c62, .first = 0x26b },
+ .{ .from = 0x2c63, .first = 0x1d7d },
+ .{ .from = 0x2c64, .first = 0x27d },
+ .{ .from = 0x2c67, .first = 0x2c68 },
+ .{ .from = 0x2c69, .first = 0x2c6a },
+ .{ .from = 0x2c6b, .first = 0x2c6c },
+ .{ .from = 0x2c6d, .first = 0x251 },
+ .{ .from = 0x2c6e, .first = 0x271 },
+ .{ .from = 0x2c6f, .first = 0x250 },
+ .{ .from = 0x2c70, .first = 0x252 },
+ .{ .from = 0x2c72, .first = 0x2c73 },
+ .{ .from = 0x2c75, .first = 0x2c76 },
+ .{ .from = 0x2c7e, .first = 0x23f },
+ .{ .from = 0x2c7f, .first = 0x240 },
+ .{ .from = 0xa640, .first = 0xa641 },
+ .{ .from = 0xa642, .first = 0xa643 },
+ .{ .from = 0xa644, .first = 0xa645 },
+ .{ .from = 0xa646, .first = 0xa647 },
+ .{ .from = 0xa648, .first = 0xa649 },
+ .{ .from = 0xa64a, .first = 0xa64b },
+ .{ .from = 0xa64c, .first = 0xa64d },
+ .{ .from = 0xa64e, .first = 0xa64f },
+ .{ .from = 0xa650, .first = 0xa651 },
+ .{ .from = 0xa652, .first = 0xa653 },
+ .{ .from = 0xa654, .first = 0xa655 },
+ .{ .from = 0xa656, .first = 0xa657 },
+ .{ .from = 0xa658, .first = 0xa659 },
+ .{ .from = 0xa65a, .first = 0xa65b },
+ .{ .from = 0xa65c, .first = 0xa65d },
+ .{ .from = 0xa65e, .first = 0xa65f },
+ .{ .from = 0xa660, .first = 0xa661 },
+ .{ .from = 0xa662, .first = 0xa663 },
+ .{ .from = 0xa664, .first = 0xa665 },
+ .{ .from = 0xa666, .first = 0xa667 },
+ .{ .from = 0xa668, .first = 0xa669 },
+ .{ .from = 0xa66a, .first = 0xa66b },
+ .{ .from = 0xa66c, .first = 0xa66d },
+ .{ .from = 0xa680, .first = 0xa681 },
+ .{ .from = 0xa682, .first = 0xa683 },
+ .{ .from = 0xa684, .first = 0xa685 },
+ .{ .from = 0xa686, .first = 0xa687 },
+ .{ .from = 0xa688, .first = 0xa689 },
+ .{ .from = 0xa68a, .first = 0xa68b },
+ .{ .from = 0xa68c, .first = 0xa68d },
+ .{ .from = 0xa68e, .first = 0xa68f },
+ .{ .from = 0xa690, .first = 0xa691 },
+ .{ .from = 0xa692, .first = 0xa693 },
+ .{ .from = 0xa694, .first = 0xa695 },
+ .{ .from = 0xa696, .first = 0xa697 },
+ .{ .from = 0xa698, .first = 0xa699 },
+ .{ .from = 0xa69a, .first = 0xa69b },
+ .{ .from = 0xa722, .first = 0xa723 },
+ .{ .from = 0xa724, .first = 0xa725 },
+ .{ .from = 0xa726, .first = 0xa727 },
+ .{ .from = 0xa728, .first = 0xa729 },
+ .{ .from = 0xa72a, .first = 0xa72b },
+ .{ .from = 0xa72c, .first = 0xa72d },
+ .{ .from = 0xa72e, .first = 0xa72f },
+ .{ .from = 0xa732, .first = 0xa733 },
+ .{ .from = 0xa734, .first = 0xa735 },
+ .{ .from = 0xa736, .first = 0xa737 },
+ .{ .from = 0xa738, .first = 0xa739 },
+ .{ .from = 0xa73a, .first = 0xa73b },
+ .{ .from = 0xa73c, .first = 0xa73d },
+ .{ .from = 0xa73e, .first = 0xa73f },
+ .{ .from = 0xa740, .first = 0xa741 },
+ .{ .from = 0xa742, .first = 0xa743 },
+ .{ .from = 0xa744, .first = 0xa745 },
+ .{ .from = 0xa746, .first = 0xa747 },
+ .{ .from = 0xa748, .first = 0xa749 },
+ .{ .from = 0xa74a, .first = 0xa74b },
+ .{ .from = 0xa74c, .first = 0xa74d },
+ .{ .from = 0xa74e, .first = 0xa74f },
+ .{ .from = 0xa750, .first = 0xa751 },
+ .{ .from = 0xa752, .first = 0xa753 },
+ .{ .from = 0xa754, .first = 0xa755 },
+ .{ .from = 0xa756, .first = 0xa757 },
+ .{ .from = 0xa758, .first = 0xa759 },
+ .{ .from = 0xa75a, .first = 0xa75b },
+ .{ .from = 0xa75c, .first = 0xa75d },
+ .{ .from = 0xa75e, .first = 0xa75f },
+ .{ .from = 0xa760, .first = 0xa761 },
+ .{ .from = 0xa762, .first = 0xa763 },
+ .{ .from = 0xa764, .first = 0xa765 },
+ .{ .from = 0xa766, .first = 0xa767 },
+ .{ .from = 0xa768, .first = 0xa769 },
+ .{ .from = 0xa76a, .first = 0xa76b },
+ .{ .from = 0xa76c, .first = 0xa76d },
+ .{ .from = 0xa76e, .first = 0xa76f },
+ .{ .from = 0xa779, .first = 0xa77a },
+ .{ .from = 0xa77b, .first = 0xa77c },
+ .{ .from = 0xa77d, .first = 0x1d79 },
+ .{ .from = 0xa77e, .first = 0xa77f },
+ .{ .from = 0xa780, .first = 0xa781 },
+ .{ .from = 0xa782, .first = 0xa783 },
+ .{ .from = 0xa784, .first = 0xa785 },
+ .{ .from = 0xa786, .first = 0xa787 },
+ .{ .from = 0xa78b, .first = 0xa78c },
+ .{ .from = 0xa78d, .first = 0x265 },
+ .{ .from = 0xa790, .first = 0xa791 },
+ .{ .from = 0xa792, .first = 0xa793 },
+ .{ .from = 0xa796, .first = 0xa797 },
+ .{ .from = 0xa798, .first = 0xa799 },
+ .{ .from = 0xa79a, .first = 0xa79b },
+ .{ .from = 0xa79c, .first = 0xa79d },
+ .{ .from = 0xa79e, .first = 0xa79f },
+ .{ .from = 0xa7a0, .first = 0xa7a1 },
+ .{ .from = 0xa7a2, .first = 0xa7a3 },
+ .{ .from = 0xa7a4, .first = 0xa7a5 },
+ .{ .from = 0xa7a6, .first = 0xa7a7 },
+ .{ .from = 0xa7a8, .first = 0xa7a9 },
+ .{ .from = 0xa7aa, .first = 0x266 },
+ .{ .from = 0xa7ab, .first = 0x25c },
+ .{ .from = 0xa7ac, .first = 0x261 },
+ .{ .from = 0xa7ad, .first = 0x26c },
+ .{ .from = 0xa7ae, .first = 0x26a },
+ .{ .from = 0xa7b0, .first = 0x29e },
+ .{ .from = 0xa7b1, .first = 0x287 },
+ .{ .from = 0xa7b2, .first = 0x29d },
+ .{ .from = 0xa7b3, .first = 0xab53 },
+ .{ .from = 0xa7b4, .first = 0xa7b5 },
+ .{ .from = 0xa7b6, .first = 0xa7b7 },
+ .{ .from = 0xa7b8, .first = 0xa7b9 },
+ .{ .from = 0xa7ba, .first = 0xa7bb },
+ .{ .from = 0xa7bc, .first = 0xa7bd },
+ .{ .from = 0xa7be, .first = 0xa7bf },
+ .{ .from = 0xa7c0, .first = 0xa7c1 },
+ .{ .from = 0xa7c2, .first = 0xa7c3 },
+ .{ .from = 0xa7c4, .first = 0xa794 },
+ .{ .from = 0xa7c5, .first = 0x282 },
+ .{ .from = 0xa7c6, .first = 0x1d8e },
+ .{ .from = 0xa7c7, .first = 0xa7c8 },
+ .{ .from = 0xa7c9, .first = 0xa7ca },
+ .{ .from = 0xa7cb, .first = 0x264 },
+ .{ .from = 0xa7cc, .first = 0xa7cd },
+ .{ .from = 0xa7d0, .first = 0xa7d1 },
+ .{ .from = 0xa7d6, .first = 0xa7d7 },
+ .{ .from = 0xa7d8, .first = 0xa7d9 },
+ .{ .from = 0xa7da, .first = 0xa7db },
+ .{ .from = 0xa7dc, .first = 0x19b },
+ .{ .from = 0xa7f5, .first = 0xa7f6 },
+};
+pub const combining = [_][2]u21{
+ .{ 0x300, 0x34e },
+ .{ 0x350, 0x36f },
+ .{ 0x483, 0x487 },
+ .{ 0x591, 0x5bd },
+ .{ 0x5bf, 0x5bf },
+ .{ 0x5c1, 0x5c2 },
+ .{ 0x5c4, 0x5c5 },
+ .{ 0x5c7, 0x5c7 },
+ .{ 0x610, 0x61a },
+ .{ 0x64b, 0x65f },
+ .{ 0x670, 0x670 },
+ .{ 0x6d6, 0x6dc },
+ .{ 0x6df, 0x6e4 },
+ .{ 0x6e7, 0x6e8 },
+ .{ 0x6ea, 0x6ed },
+ .{ 0x711, 0x711 },
+ .{ 0x730, 0x74a },
+ .{ 0x7eb, 0x7f3 },
+ .{ 0x7fd, 0x7fd },
+ .{ 0x816, 0x819 },
+ .{ 0x81b, 0x823 },
+ .{ 0x825, 0x827 },
+ .{ 0x829, 0x82d },
+ .{ 0x859, 0x85b },
+ .{ 0x897, 0x89f },
+ .{ 0x8ca, 0x8e1 },
+ .{ 0x8e3, 0x8ff },
+ .{ 0x93c, 0x93c },
+ .{ 0x94d, 0x94d },
+ .{ 0x951, 0x954 },
+ .{ 0x9bc, 0x9bc },
+ .{ 0x9cd, 0x9cd },
+ .{ 0x9fe, 0x9fe },
+ .{ 0xa3c, 0xa3c },
+ .{ 0xa4d, 0xa4d },
+ .{ 0xabc, 0xabc },
+ .{ 0xacd, 0xacd },
+ .{ 0xb3c, 0xb3c },
+ .{ 0xb4d, 0xb4d },
+ .{ 0xbcd, 0xbcd },
+ .{ 0xc3c, 0xc3c },
+ .{ 0xc4d, 0xc4d },
+ .{ 0xc55, 0xc56 },
+ .{ 0xcbc, 0xcbc },
+ .{ 0xccd, 0xccd },
+ .{ 0xd3b, 0xd3c },
+ .{ 0xd4d, 0xd4d },
+ .{ 0xdca, 0xdca },
+ .{ 0xe38, 0xe3a },
+ .{ 0xe48, 0xe4b },
+ .{ 0xeb8, 0xeba },
+ .{ 0xec8, 0xecb },
+ .{ 0xf18, 0xf19 },
+ .{ 0xf35, 0xf35 },
+ .{ 0xf37, 0xf37 },
+ .{ 0xf39, 0xf39 },
+ .{ 0xf71, 0xf72 },
+ .{ 0xf74, 0xf74 },
+ .{ 0xf7a, 0xf7d },
+ .{ 0xf80, 0xf80 },
+ .{ 0xf82, 0xf84 },
+ .{ 0xf86, 0xf87 },
+ .{ 0xfc6, 0xfc6 },
+ .{ 0x1037, 0x1037 },
+ .{ 0x1039, 0x103a },
+ .{ 0x108d, 0x108d },
+ .{ 0x135d, 0x135f },
+ .{ 0x1714, 0x1715 },
+ .{ 0x1734, 0x1734 },
+ .{ 0x17d2, 0x17d2 },
+ .{ 0x17dd, 0x17dd },
+ .{ 0x18a9, 0x18a9 },
+ .{ 0x1939, 0x193b },
+ .{ 0x1a17, 0x1a18 },
+ .{ 0x1a60, 0x1a60 },
+ .{ 0x1a75, 0x1a7c },
+ .{ 0x1a7f, 0x1a7f },
+ .{ 0x1ab0, 0x1abd },
+ .{ 0x1abf, 0x1ace },
+ .{ 0x1b34, 0x1b34 },
+ .{ 0x1b44, 0x1b44 },
+ .{ 0x1b6b, 0x1b73 },
+ .{ 0x1baa, 0x1bab },
+ .{ 0x1be6, 0x1be6 },
+ .{ 0x1bf2, 0x1bf3 },
+ .{ 0x1c37, 0x1c37 },
+ .{ 0x1cd0, 0x1cd2 },
+ .{ 0x1cd4, 0x1ce0 },
+ .{ 0x1ce2, 0x1ce8 },
+ .{ 0x1ced, 0x1ced },
+ .{ 0x1cf4, 0x1cf4 },
+ .{ 0x1cf8, 0x1cf9 },
+ .{ 0x1dc0, 0x1dff },
+ .{ 0x20d0, 0x20dc },
+ .{ 0x20e1, 0x20e1 },
+ .{ 0x20e5, 0x20f0 },
+ .{ 0x2cef, 0x2cf1 },
+ .{ 0x2d7f, 0x2d7f },
+ .{ 0x2de0, 0x2dff },
+ .{ 0x302a, 0x302f },
+ .{ 0x3099, 0x309a },
+ .{ 0xa66f, 0xa66f },
+ .{ 0xa674, 0xa67d },
+ .{ 0xa69e, 0xa69f },
+ .{ 0xa6f0, 0xa6f1 },
+ .{ 0xa806, 0xa806 },
+ .{ 0xa82c, 0xa82c },
+ .{ 0xa8c4, 0xa8c4 },
+ .{ 0xa8e0, 0xa8f1 },
+ .{ 0xa92b, 0xa92d },
+ .{ 0xa953, 0xa953 },
+ .{ 0xa9b3, 0xa9b3 },
+ .{ 0xa9c0, 0xa9c0 },
+ .{ 0xaab0, 0xaab0 },
+ .{ 0xaab2, 0xaab4 },
+ .{ 0xaab7, 0xaab8 },
+ .{ 0xaabe, 0xaabf },
+ .{ 0xaac1, 0xaac1 },
+ .{ 0xaaf6, 0xaaf6 },
+ .{ 0xabed, 0xabed },
+ .{ 0xfb1e, 0xfb1e },
+ .{ 0xfe20, 0xfe2f },
+ .{ 0x101fd, 0x101fd },
+ .{ 0x102e0, 0x102e0 },
+ .{ 0x10376, 0x1037a },
+ .{ 0x10a0d, 0x10a0d },
+ .{ 0x10a0f, 0x10a0f },
+ .{ 0x10a38, 0x10a3a },
+ .{ 0x10a3f, 0x10a3f },
+ .{ 0x10ae5, 0x10ae6 },
+ .{ 0x10d24, 0x10d27 },
+ .{ 0x10d69, 0x10d6d },
+ .{ 0x10eab, 0x10eac },
+ .{ 0x10efd, 0x10eff },
+ .{ 0x10f46, 0x10f50 },
+ .{ 0x10f82, 0x10f85 },
+ .{ 0x11046, 0x11046 },
+ .{ 0x11070, 0x11070 },
+ .{ 0x1107f, 0x1107f },
+ .{ 0x110b9, 0x110ba },
+ .{ 0x11100, 0x11102 },
+ .{ 0x11133, 0x11134 },
+ .{ 0x11173, 0x11173 },
+ .{ 0x111c0, 0x111c0 },
+ .{ 0x111ca, 0x111ca },
+ .{ 0x11235, 0x11236 },
+ .{ 0x112e9, 0x112ea },
+ .{ 0x1133b, 0x1133c },
+ .{ 0x1134d, 0x1134d },
+ .{ 0x11366, 0x1136c },
+ .{ 0x11370, 0x11374 },
+ .{ 0x113ce, 0x113d0 },
+ .{ 0x11442, 0x11442 },
+ .{ 0x11446, 0x11446 },
+ .{ 0x1145e, 0x1145e },
+ .{ 0x114c2, 0x114c3 },
+ .{ 0x115bf, 0x115c0 },
+ .{ 0x1163f, 0x1163f },
+ .{ 0x116b6, 0x116b7 },
+ .{ 0x1172b, 0x1172b },
+ .{ 0x11839, 0x1183a },
+ .{ 0x1193d, 0x1193e },
+ .{ 0x11943, 0x11943 },
+ .{ 0x119e0, 0x119e0 },
+ .{ 0x11a34, 0x11a34 },
+ .{ 0x11a47, 0x11a47 },
+ .{ 0x11a99, 0x11a99 },
+ .{ 0x11c3f, 0x11c3f },
+ .{ 0x11d42, 0x11d42 },
+ .{ 0x11d44, 0x11d45 },
+ .{ 0x11d97, 0x11d97 },
+ .{ 0x11f41, 0x11f42 },
+ .{ 0x1612f, 0x1612f },
+ .{ 0x16af0, 0x16af4 },
+ .{ 0x16b30, 0x16b36 },
+ .{ 0x16ff0, 0x16ff1 },
+ .{ 0x1bc9e, 0x1bc9e },
+ .{ 0x1d165, 0x1d169 },
+ .{ 0x1d16d, 0x1d172 },
+ .{ 0x1d17b, 0x1d182 },
+ .{ 0x1d185, 0x1d18b },
+ .{ 0x1d1aa, 0x1d1ad },
+ .{ 0x1d242, 0x1d244 },
+ .{ 0x1e000, 0x1e006 },
+ .{ 0x1e008, 0x1e018 },
+ .{ 0x1e01b, 0x1e021 },
+ .{ 0x1e023, 0x1e024 },
+ .{ 0x1e026, 0x1e02a },
+ .{ 0x1e08f, 0x1e08f },
+ .{ 0x1e130, 0x1e136 },
+ .{ 0x1e2ae, 0x1e2ae },
+ .{ 0x1e2ec, 0x1e2ef },
+ .{ 0x1e4ec, 0x1e4ef },
+ .{ 0x1e5ee, 0x1e5ef },
+ .{ 0x1e8d0, 0x1e8d6 },
+ .{ 0x1e944, 0x1e94a },
+};
diff --git a/src/ui/layout.zig b/src/ui/layout.zig
index c29e2d0..cfa47d2 100644
--- a/src/ui/layout.zig
+++ b/src/ui/layout.zig
@@ -119,6 +119,8 @@ pub const IconId = enum {
trash,
/// Filled bin used by the desktop's built-in Trash icon.
trash_can,
+ play,
+ pause,
view_grid,
view_list,
sort,
diff --git a/src/ui/mod.zig b/src/ui/mod.zig
index a605918..11ef9fc 100644
--- a/src/ui/mod.zig
+++ b/src/ui/mod.zig
@@ -34,6 +34,7 @@ pub const client_cursor = @import("client_cursor.zig");
pub const compose = @import("compose.zig");
pub const context_menu = @import("context_menu.zig");
pub const font_fallback = @import("font_fallback.zig");
+pub const fold = @import("fold.zig");
pub const hover_glide = @import("hover_glide.zig");
pub const key_repeat = @import("key_repeat.zig");
pub const sdf = @import("sdf.zig");
diff --git a/src/ui/paint.zig b/src/ui/paint.zig
index f6ff4e9..cdc187b 100644
--- a/src/ui/paint.zig
+++ b/src/ui/paint.zig
@@ -294,11 +294,14 @@ pub const Renderer = struct {
const line_h = @min(h, metrics.ascent + metrics.descent);
var words = std.mem.tokenizeAny(u8, style.highlight_query, " \t\r\n");
while (words.next()) |word| {
- if (word.len > style.content.len) continue;
- for (0..style.content.len - word.len + 1) |i| {
- if (!std.ascii.eqlIgnoreCase(style.content[i..][0..word.len], word)) continue;
- const left = text_mod.measureWidthF(style.content[0..i], font, style.font_size, r.scale) catch continue;
- const right = text_mod.measureWidthF(style.content[0 .. i + word.len], font, style.font_size, r.scale) catch continue;
+ var offset: usize = 0;
+ while (@import("fold.zig").indexOf(style.content[offset..], word, .{ .turkish = @import("i18n").isTurkish() })) |match| {
+ const start = offset + match.start;
+ const end = offset + match.end;
+ if (end <= offset) break;
+ offset = end;
+ const left = text_mod.measureWidthF(style.content[0..start], font, style.font_size, r.scale) catch continue;
+ const right = text_mod.measureWidthF(style.content[0..end], font, style.font_size, r.scale) catch continue;
const clipped_right = @min(right, w - ellipsis);
if (clipped_right > left) r.fillRect(@as(f32, @floatFromInt(rect.x)) + left, y + (h - line_h) / 2, clipped_right - left, line_h, .{
.color = .{ pal.accent[0], pal.accent[1], pal.accent[2], 0.25 },
diff --git a/src/ui/paint_icons.zig b/src/ui/paint_icons.zig
index abd6745..a5a2956 100644
--- a/src/ui/paint_icons.zig
+++ b/src/ui/paint_icons.zig
@@ -45,6 +45,8 @@ pub fn iconDistance(id: IconId, px: f32, py: f32, cx: f32, cy: f32, half: f32, t
sdSegment(px, py, cx - half, cy + half * 0.3, cx, cy - half * 0.5, t),
sdSegment(px, py, cx, cy - half * 0.5, cx + half, cy + half * 0.3, t),
),
+ .play => sdf.sdQuad(px, py, cx - half * 0.65, cy - half, cx + half, cy, cx - half * 0.65, cy + half, cx - half * 0.65, cy),
+ .pause => @min(sdBox(px, py, cx - half * 0.45, cy, half * 0.22, half), sdBox(px, py, cx + half * 0.45, cy, half * 0.22, half)),
.minimize => sdSegment(px, py, cx - half, cy, cx + half, cy, t),
.drag_handle => @min(
sdSegment(px, py, cx - half, cy - half * 0.7, cx + half, cy - half * 0.7, t),
diff --git a/src/ui/paint_tests.zig b/src/ui/paint_tests.zig
index c246063..4c8c17d 100644
--- a/src/ui/paint_tests.zig
+++ b/src/ui/paint_tests.zig
@@ -268,11 +268,12 @@ test "secret input widget never retains hidden or echo-on responses in run cache
// A partially scrolled row must retain the same glyph positions as the full row.
test "text clipping preserves layout at scroll edges" {
+ // The accented query expands/folds to original UTF-8 boundaries.
for ([_]f32{ 1, 1.5 }) |scale| {
var full: [240 * 90]u32 = @splat(0);
var clipped: [240 * 90]u32 = @splat(0);
var r = Renderer.init(&full, 240, 90, scale);
- const style: TextStyle = .{ .content = "Transmission label", .highlight_query = "TRANS label", .font_size = 16, .color = .{ 1, 1, 1, 1 } };
+ const style: TextStyle = .{ .content = "Cámara Straße", .highlight_query = "CAMARA STRASSE", .font_size = 16, .color = .{ 1, 1, 1, 1 } };
r.drawText(4, 4, 140, 34, style);
r.pixels = &clipped;
r.clip = .{ .x = 18, .y = 20, .w = 90, .h = 12 };
diff --git a/src/ui/widgets/field.zig b/src/ui/widgets/field.zig
index ea9a904..f22338f 100644
--- a/src/ui/widgets/field.zig
+++ b/src/ui/widgets/field.zig
@@ -16,8 +16,9 @@ pub const Rect = struct { x: f32, y: f32, w: f32, h: f32 };
pub const Size = enum { md, lg };
/// `.reveal` is a password's show/hide eye. Its click is the caller's to
-/// handle: hit test `Layout.trailing`.
-pub const Trailing = enum { none, reveal };
+/// handle: hit test `Layout.trailing`. `.accessory` reserves the same slot
+/// for a caller-provided child widget, such as a search field's clear button.
+pub const Trailing = enum { none, reveal, accessory };
pub const Options = struct {
size: Size = .md,
@@ -121,7 +122,7 @@ pub fn paintFrame(r: *Renderer, box: Rect, opts: Options, state: State) Layout {
.color = if (state.disabled) t.faint else opts.leading_icon_color orelse t.dim,
});
if (out.trailing) |slot| switch (opts.trailing) {
- .none => {},
+ .none, .accessory => {},
.reveal => {
if (state.trailing_focused) r.fillRect(slot.x, slot.y, slot.w, slot.h, .{
.color = t.surface_hover,
@@ -175,6 +176,9 @@ test "the leading icon and trailing accessory take their room from the text" {
try std.testing.expectEqual(box.x + box.w - 6, eye.x + eye.w);
try std.testing.expectEqual(box.y + 6, eye.y);
try std.testing.expect(secret.text.x + secret.text.w <= eye.x);
+
+ const accessory = arrange(box, .{ .trailing = .accessory }, t);
+ try std.testing.expectEqualDeep(secret, accessory);
}
test "natural size adds the frame's chrome to the text" {
diff --git a/src/ui/widgets/select.zig b/src/ui/widgets/select.zig
index 537e816..7a39be7 100644
--- a/src/ui/widgets/select.zig
+++ b/src/ui/widgets/select.zig
@@ -3,6 +3,78 @@
const std = @import("std");
const layout = @import("../layout.zig");
const Widget = layout.Widget;
+
+/// A page can refresh while its dropdown is open. Keep only a named control's
+/// interaction, without retaining strings from the tree being destroyed.
+pub const Saved = struct {
+ name: [512]u8 = undefined,
+ name_len: usize = 0,
+ selected: ?usize = null,
+ highlighted: usize = 0,
+ first_visible: usize = 0,
+ options: u64 = 0,
+ owner: ?*anyopaque = null,
+ id: usize = 0,
+};
+
+fn optionKey(labels: []const []const u8, disabled: []const usize) u64 {
+ var hash = std.hash.Wyhash.init(0);
+ for (labels) |label| {
+ const len = label.len;
+ hash.update(std.mem.asBytes(&len));
+ hash.update(label);
+ }
+ const count = labels.len;
+ hash.update(std.mem.asBytes(&count));
+ hash.update(std.mem.sliceAsBytes(disabled));
+ return hash.final();
+}
+
+pub fn capture(root: *const Widget, saved: *Saved, focused: ?*const Widget) void {
+ saved.* = .{};
+ const widget = focused orelse return;
+ if (widget.kind != .select or !widget.kind.select.open or widget.kind.select.disabled) return;
+ // Focus must belong to this host's current tree.
+ var top = widget;
+ while (top.parent) |parent| top = parent;
+ if (top != root) return;
+ const name = widget.name orelse return;
+ if (name.len == 0 or name.len > saved.name.len) return;
+ @memcpy(saved.name[0..name.len], name);
+ saved.name_len = name.len;
+ const data = widget.kind.select;
+ saved.selected = data.selected;
+ saved.highlighted = data.highlighted;
+ saved.first_visible = data.first_visible;
+ saved.options = optionKey(data.labels, data.disabled_options);
+ saved.owner = data.owner;
+ saved.id = data.id;
+}
+
+/// Restore after rebuilding the same page. Changed backend values or choices
+/// invalidate the old menu; an unchanged menu can keep its uncommitted choice.
+/// The host focuses the returned widget after resetting its input dispatcher.
+pub fn restore(root: *Widget, saved: *const Saved) ?*Widget {
+ if (saved.name_len == 0) return null;
+ if (root.kind == .select) if (root.name) |name| {
+ const data = &root.kind.select;
+ if (std.mem.eql(u8, name, saved.name[0..saved.name_len]) and
+ !data.disabled and data.selected == saved.selected and
+ data.owner == saved.owner and data.id == saved.id and
+ data.labels.len > saved.highlighted and
+ optionKey(data.labels, data.disabled_options) == saved.options)
+ {
+ data.open = true;
+ data.highlighted = saved.highlighted;
+ data.first_visible = @min(saved.first_visible, data.labels.len - 1);
+ root.markPaintDirty();
+ return root;
+ }
+ };
+ for (root.children) |*child| if (restore(child, saved)) |widget| return widget;
+ return null;
+}
+
pub const padding: f32 = 5;
pub fn rowHeight() f32 {
return @max(32, @import("../theme.zig").global.font_size * 1.2 + 14);
@@ -86,3 +158,75 @@ pub fn scroll(w: *Widget, delta: f32) void {
d.highlighted = std.math.clamp(d.highlighted, first, @min(d.labels.len, first + count) -| 1);
w.markPaintDirty();
}
+
+test "an open dropdown survives destruction of its old page and commits its highlighted choice" {
+ const input = @import("../input.zig");
+ const Fixture = struct {
+ selected: ?usize = null,
+ calls: usize = 0,
+ fn changed(raw: ?*anyopaque, _: usize, index: usize) void {
+ const self: *@This() = @ptrCast(@alignCast(raw.?));
+ self.selected = index;
+ self.calls += 1;
+ }
+ };
+ var fixture: Fixture = .{};
+ var saved: Saved = .{};
+ {
+ var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
+ defer arena.deinit();
+ const a = arena.allocator();
+ const children = try a.alloc(Widget, 1);
+ children[0] = .{ .name = try a.dupe(u8, "notify:alpha.service"), .kind = .{ .select = .{
+ .labels = &.{ "simple", "notify", "oneshot", "idle" },
+ .selected = 2,
+ .highlighted = 1,
+ .first_visible = 1,
+ .open = true,
+ .owner = &fixture,
+ .on_change = Fixture.changed,
+ } } };
+ var old: Widget = .{ .kind = .container, .children = children };
+ old.linkParents();
+ capture(&old, &saved, &children[0]);
+ }
+ var children = [_]Widget{.{ .name = "notify:alpha.service", .kind = .{ .select = .{
+ .labels = &.{ "simple", "notify", "oneshot", "idle" },
+ .selected = 2,
+ .owner = &fixture,
+ .on_change = Fixture.changed,
+ } } }};
+ var rebuilt: Widget = .{ .kind = .container, .children = &children };
+ rebuilt.linkParents();
+ const restored = restore(&rebuilt, &saved).?;
+ try std.testing.expect(restored.kind.select.open);
+ try std.testing.expectEqual(@as(?usize, 2), restored.kind.select.selected);
+ try std.testing.expectEqual(@as(usize, 1), restored.kind.select.first_visible);
+ var dispatcher: input.Dispatcher = .{};
+ dispatcher.focus(&rebuilt, restored);
+ _ = try dispatcher.keyEvent(std.testing.allocator, .enter, .{});
+ try std.testing.expectEqual(@as(?usize, 1), fixture.selected);
+ try std.testing.expectEqual(@as(usize, 1), fixture.calls);
+ try std.testing.expect(!restored.kind.select.open);
+}
+
+test "a refreshed dropdown keeps authoritative values and refuses incompatible saved menus" {
+ var old: Widget = .{ .name = "choice", .kind = .{ .select = .{ .labels = &.{ "A", "B" }, .selected = 0, .highlighted = 1, .open = true } } };
+ var saved: Saved = .{};
+ capture(&old, &saved, &old);
+ var changed: Widget = .{ .name = "choice", .kind = .{ .select = .{ .labels = &.{ "A", "B" }, .selected = 1 } } };
+ try std.testing.expect(restore(&changed, &saved) == null);
+ try std.testing.expectEqual(@as(?usize, 1), changed.kind.select.selected);
+ changed.kind.select.selected = 0;
+ changed.kind.select.labels = &.{ "B", "A" };
+ try std.testing.expect(restore(&changed, &saved) == null);
+ changed.kind.select.labels = &.{ "A", "B" };
+ changed.kind.select.disabled_options = &.{1};
+ try std.testing.expect(restore(&changed, &saved) == null);
+ changed.kind.select.disabled_options = &.{};
+ changed.kind.select.disabled = true;
+ try std.testing.expect(restore(&changed, &saved) == null);
+ changed.kind.select.disabled = false;
+ changed.name = "other";
+ try std.testing.expect(restore(&changed, &saved) == null);
+}
diff --git a/src/ui_tests.zig b/src/ui_tests.zig
index 289dc71..779136d 100644
--- a/src/ui_tests.zig
+++ b/src/ui_tests.zig
@@ -63,6 +63,7 @@ test {
_ = @import("ui").shell_icons;
_ = @import("icon_theme.zig");
_ = @import("icon_service.zig");
+ _ = @import("server/icons.zig");
_ = @import("chrome.zig");
_ = @import("color.zig");
_ = @import("ipc/stats.zig");
diff --git a/tests/battery_popup.py b/tests/battery_popup.py
index d86779f..b3e7f4c 100644
--- a/tests/battery_popup.py
+++ b/tests/battery_popup.py
@@ -98,6 +98,10 @@ def run(scale, gold=False, top=False):
# Disabled choices cannot submit a request after service restart.
stop_fake(fake)
wait_for(lambda: "service left the bus" in log_text(tmp), "service loss")
+ rows_box = tuple(round(v * pixelscale) for v in (
+ origin[0] + 20 * factor, origin[1] + 366 * factor,
+ origin[0] + 348 * factor, origin[1] + 462 * factor))
+ assert ImageChops.difference(initial.crop(rows_box), capture("lost").crop(rows_box)).getbbox(), "no notice when the service is gone"
fake = start_fake(offered="power-saver,balanced")
wait_for(lambda: log_text(tmp).count("active profile balanced") == 2, "restarted service")
ipc.click_at(*row(2))
diff --git a/tests/calendar_popup.py b/tests/calendar_popup.py
index e7ab33c..350e706 100644
--- a/tests/calendar_popup.py
+++ b/tests/calendar_popup.py
@@ -4,6 +4,7 @@ import argparse
import json
import locale
import os
+import subprocess
import sys
from hardware_keys import wait
from pathlib import Path
@@ -15,6 +16,69 @@ from PIL import Image, ImageChops
from ipc_client import IPCClient, spawn_compositor, stop_process
+def regional_names(scale):
+ """Private German LC_TIME data exercises formats independently of UI language."""
+ with tempfile.TemporaryDirectory(prefix="rediwm-calendar-locale-") as directory:
+ tmp = Path(directory)
+ locales = tmp / "locales"
+ locales.mkdir()
+ subprocess.run(["localedef", "--no-archive", "-i", "de_DE", "-f", "UTF-8",
+ str(locales / "de_DE.UTF-8")], check=True, capture_output=True)
+ config = ('[compositor]\nxwayland = false\n[animations]\nenabled = false\n'
+ '[region]\nlanguage = "C"\nformats = "C"\n')
+ process, log = spawn_compositor(tmp, scale=scale, config_content=config,
+ env_extra={"DBUS_SESSION_BUS_ADDRESS": "", "LOCPATH": str(locales),
+ "LC_ALL": "C", "LANGUAGE": "en", "TZ": "UTC"})
+ try:
+ with IPCClient(tmp, timeout=15) as ipc:
+ ipc.wait_for("wallpaper_presented", timeout_ms=10000)
+ bar = ipc.get_shell_state()["taskbars"][0]
+ clock = next(i["box"] for i in bar["right_items"] if i["name"] == "clock")
+ ipc.click_at(clock["x"] + clock["width"] // 2, clock["y"] + clock["height"] // 2)
+ ipc.wait_for_frame()
+ # Some months have identical names in English and German.
+ # February/Februar makes the name assertion independent of date.
+ for _ in range((2 - time.gmtime().tm_mon) % 12):
+ ipc.key_down_up(106)
+ ipc.wait_for_frame()
+
+ def capture_regions():
+ taskbar = ipc.get_shell_state()["taskbars"][0]
+ clock = next(i["box"] for i in taskbar["right_items"] if i["name"] == "clock")
+ probe = (clock["x"] + clock["width"] // 2, taskbar["box"]["y"] - 50)
+ hit = ipc.hit_test(*probe)
+ assert hit["target_type"] == "calendar", hit
+ left, top = probe[0] - hit["local_x"], probe[1] - hit["local_y"]
+ path = tmp / f"regional-{time.monotonic_ns()}.png"
+ ipc.wait_for_frame()
+ ipc.screenshot(str(path))
+ with Image.open(path) as image:
+ return [image.convert("RGB").crop(tuple(round(v * float(scale)) for v in
+ (left + x, top + y, left + x + width, top + y + height)))
+ for x, y, width, height in ((24, 65, 320, 25), (24, 116, 238, 32),
+ (20, 158, 329, 30), (20, 190, 329, 180))]
+
+ english = capture_regions()
+ cfg_path = tmp / "rediwm-config.toml"
+ cfg_path.write_text(config.replace('formats = "C"', 'formats = "de_DE.UTF-8"'))
+ ipc.reload_config()
+ german = capture_regions()
+ for label, before, after in zip(("long date", "month title", "weekday names"), english, german):
+ assert ImageChops.difference(before, after).getbbox(), f"calendar {label} ignored German formats"
+ assert not ImageChops.difference(english[3], german[3]).getbbox(), "regional names changed the date grid"
+ cfg_path.write_text(config)
+ ipc.reload_config()
+ for before, after in zip(english, capture_regions()):
+ assert not ImageChops.difference(before, after).getbbox(), "calendar did not restore C formats"
+ print(f"PASS: private German calendar names and live formats reload at scale {scale}")
+ except Exception:
+ print((tmp / "compositor.log").read_text()[-5000:])
+ raise
+ finally:
+ stop_process(process)
+ log.close()
+
+
def run(scale, gold=False, top=False, popup_only=False):
with tempfile.TemporaryDirectory(prefix="rediwm-calendar-") as directory:
tmp = Path(directory)
@@ -181,13 +245,21 @@ def run(scale, gold=False, top=False, popup_only=False):
assert any(w["label"] == "3:24 PM" for w in ui.widgets())
assert any("session only; system defaults are unchanged" in (w["label"] or "") for w in ui.widgets())
wait(lambda: not ui.find("language")["is_disabled"], "installed locales")
+ language_choice = None
for name in ("language", "formats"):
ui.click(ui.scroll_into_view(name), panel="control_center")
ipc.key_press("Home")
ipc.key_press("Down")
ipc.key_press("Return")
ui.wait_settled("control_center")
- assert tomllib.loads(cfg_path.read_text())["region"][name] == "C"
+ selected = tomllib.loads(cfg_path.read_text())["region"][name]
+ if name == "language":
+ # Catalog languages are offered before installed glibc
+ # locales, including drafts with English fallback.
+ assert selected in {"de_DE.UTF-8", "es_ES.UTF-8", "fr_FR.UTF-8", "pt_BR.UTF-8", "ru_RU.UTF-8"}, selected
+ language_choice = selected
+ else:
+ assert selected == "C"
# UTC is the last sorted zone. Changing it must refresh the
# existing clock without modifying the host's timezone files.
before_zone = capture()
@@ -207,7 +279,7 @@ def run(scale, gold=False, top=False, popup_only=False):
wait(marker.exists, "new app environment")
child_env = json.loads(marker.read_text())
assert child_env["TZ"] == "UTC", child_env
- assert child_env["LANG"] == child_env["LC_MESSAGES"] == "C"
+ assert child_env["LANG"] == child_env["LC_MESSAGES"] == language_choice
assert child_env["LC_TIME"] == child_env["LC_NUMERIC"] == child_env["LC_MONETARY"] == "C"
assert "LC_ALL" not in child_env and "LANGUAGE" not in child_env
# Reopen Settings to prove that choices survive its arenas.
@@ -312,5 +384,8 @@ if __name__ == "__main__":
parser.add_argument("--gold", action="store_true")
parser.add_argument("--top", action="store_true")
parser.add_argument("--popup-only", action="store_true")
+ parser.add_argument("--locale-only", action="store_true")
args = parser.parse_args()
- run(args.scale, args.gold, args.top, args.popup_only)
+ if not args.locale_only:
+ run(args.scale, args.gold, args.top, args.popup_only)
+ regional_names(args.scale)
diff --git a/tests/control_center.py b/tests/control_center.py
index b943ba8..167da78 100644
--- a/tests/control_center.py
+++ b/tests/control_center.py
@@ -98,48 +98,100 @@ print(f'fixture,backlight,{value},{value}%,100')
# It is an ordinary, focused window with an opaque body.
window = settings_window()
assert window is not None and window["is_focused"], ipc.get_windows()
- # Global search updates on each keystroke, keeps field focus,
- # searches aliases, and opens the control without changing it.
+ # Search navigates as you type, filters categories and keeps
+ # focus in the field. It never activates the matching control.
+ def categories():
+ nav = named('nav')['path'] + '/'
+ return [w['name'] for w in widgets() if w['role'] == 'row' and (w['path'] or '').startswith(nav)]
+
+ def search(value):
+ ipc.key(29, True)
+ ipc.key_press('f')
+ ipc.key(29, False)
+ ipc.type_text(value)
+ ui.wait_settled('control_center')
+
click('settings_search')
ipc.type_text('natura')
ui.wait_settled('control_center')
assert named('settings_search')['text_length'] == 6
- assert named('natural_scroll')['role'] == 'row'
+ assert ipc.get_shell_state()['control_center']['category'] == 'input'
+ assert categories() == ['input']
+ target = named('natural_scroll')
+ assert target['role'] == 'toggle' and target['visible'] and not target['clipped']
+ initial_toggle = target['checked']
ipc.type_text('l scroll')
ui.wait_settled('control_center')
assert named('settings_search')['text_length'] == 14
- capture('search-results')
- ipc.key_press('Tab')
ipc.key_press('Down')
ipc.key_press('Up')
ipc.key_press('Return')
ui.wait_settled('control_center')
- assert ipc.get_shell_state()['control_center']['category'] == 'input'
- target = named('natural_scroll')
- assert target['role'] == 'toggle' and target['visible'] and not target['clipped']
- assert named('settings_search')['text_length'] == 14
- # Ctrl+F reopens results and selects the retained query.
- ipc.key(29, True)
- ipc.key_press('f')
- ipc.key(29, False)
+ assert named('natural_scroll')['checked'] == initial_toggle
+ assert not any(w['label'] == 'Search results' for w in widgets())
+ highlighted = capture('search-section')
+ tree = widgets()
+ target = next(w for w in tree if w['name'] == 'natural_scroll')
+ row = tree[target['parent_index']]['global_box']
+ crop = tuple(round(v * float(scale)) for v in (row['x'] + 2, row['y'] + 2, row['x'] + 65, row['y'] + row['height'] - 2))
+ click('Natural scroll')
ui.wait_settled('control_center')
- ipc.type_text('background')
+ unmarked = capture('search-section-dismissed')
+ assert ImageChops.difference(highlighted.crop(crop), unmarked.crop(crop)).getbbox(), 'matching section is highlighted'
+ assert named('natural_scroll')['checked'] == initial_toggle
+ # Multiple matching categories remain selectable in the sidebar
+ # without clearing the query, each revealing its first match.
+ search('volume')
+ ipc.key_press('Tab')
+ ipc.key_press('Return')
ui.wait_settled('control_center')
- assert named('settings_search')['text_length'] == 10
- assert named('@Wallpaper')['role'] == 'row'
- click('@Wallpaper')
+ assert named('settings_search')['text_length'] == 0
+ assert len(categories()) >= 12
+ search('volume')
+ assert categories() == ['audio', 'shortcuts']
+ assert ipc.get_shell_state()['control_center']['category'] == 'audio'
+ ipc.key_press('Down')
ui.wait_settled('control_center')
+ assert ipc.get_shell_state()['control_center']['category'] == 'shortcuts'
+ ipc.key_press('Up')
+ ui.wait_settled('control_center')
+ assert ipc.get_shell_state()['control_center']['category'] == 'audio'
+ click('shortcuts')
+ ui.wait_settled('control_center')
+ assert ipc.get_shell_state()['control_center']['category'] == 'shortcuts'
+ assert named('settings_search')['text_length'] == 6
+ click('audio')
+ ui.wait_settled('control_center')
+ assert named('output_volume')['role'] == 'slider'
+ search('background')
+ assert named('settings_search')['text_length'] == 10
+ assert categories() == ['appearance']
assert ipc.get_shell_state()['control_center']['category'] == 'appearance'
wallpaper = next(w for w in widgets() if w['role'] == 'text' and w['label'] == 'Wallpaper')
assert wallpaper['visible'] and not wallpaper['clipped']
- ipc.key_press('Escape')
+ # A distant control is scrolled into view automatically.
+ search('scrollbar width')
+ assert ipc.get_shell_state()['control_center']['category'] == 'appearance'
+ target = next(w for w in widgets() if w['role'] == 'text' and w['label'] == 'Scrollbar width')
+ assert target['visible'] and not target['clipped']
+ assert next(w['scroll_offset'] for w in widgets() if w['role'] == 'scroll_container') > 0
+ capture('search-scrolled')
+ field_box = named('settings_search')['global_box']
+ clear_box = named('settings_search_clear')['global_box']
+ assert field_box['x'] < clear_box['x']
+ assert clear_box['x'] + clear_box['width'] < field_box['x'] + field_box['width']
+ assert field_box['y'] <= clear_box['y'] and clear_box['y'] + clear_box['height'] <= field_box['y'] + field_box['height']
+ click('settings_search_clear')
ui.wait_settled('control_center')
assert named('settings_search')['text_length'] == 0
+ assert ipc.get_shell_state()['control_center']['category'] == 'appearance'
+ assert len(categories()) >= 12
scroll_before = next(w['scroll_offset'] for w in widgets() if w['role'] == 'scroll_container')
click('settings_search')
- ipc.type_text('zzzznosuchsetting')
+ ipc.type_text('#nosuchsetting')
ui.wait_settled('control_center')
assert any(w['label'] == 'No settings found' for w in widgets())
+ assert categories() == []
ipc.key_press('Escape')
ui.wait_settled('control_center')
assert named('settings_search')['text_length'] == 0
@@ -152,8 +204,6 @@ print(f'fixture,backlight,{value},{value}%,100')
click('settings_search')
ipc.type_text('floating apps')
ui.wait_settled('control_center')
- click('@Floating apps')
- ui.wait_settled('control_center')
assert ipc.get_shell_state()['control_center']['category'] == 'desktop'
assert any(w['label'] == 'This setting is unavailable on this device or in the current mode.' for w in widgets())
ipc.key_press('Escape')
@@ -161,7 +211,7 @@ print(f'fixture,backlight,{value},{value}%,100')
page('General')
ui.wait_settled('control_center')
# The compact sidebar opens a full-width field above the
- # content. Escape clears results before hiding the field.
+ # content. Escape clears the filter before hiding the field.
edge_x, edge_y = box['x'] + box['width'], box['y'] + box['height'] // 2
ipc.move_cursor(edge_x, edge_y)
ipc.pointer_button(272, True)
@@ -176,14 +226,15 @@ print(f'fixture,backlight,{value},{value}%,100')
assert field_box['y'] < named('nav')['global_box']['y']
ipc.type_text('volume')
ui.wait_settled('control_center')
- assert named('output_volume')['role'] == 'row'
+ assert named('output_volume')['role'] == 'slider'
capture('search-compact')
ipc.action('set_window_size', {'id': window['id'], 'width': 600, 'height': 360})
ipc.wait_for('window_geometry_settled', window_id=window['id'])
ui.wait_settled('control_center')
assert named('nav')['role'] == 'scroll_container'
assert named('settings_search')['text_length'] == 6
- assert ui.scroll_into_view('printers')['visible']
+ assert categories() == ['audio', 'shortcuts']
+ assert ui.scroll_into_view('shortcuts')['visible']
ipc.action('set_window_size', {'id': window['id'], 'width': 600, 'height': box['height']})
ipc.wait_for('window_geometry_settled', window_id=window['id'])
ui.wait_settled('control_center')
@@ -681,6 +732,9 @@ def stdin_ready(*_):
# Names only, as systemd does for properties it does not push the value of.
units['alpha.service'][1:3] = ['failed', 'failed']
conn.emit_signal(None, paths['alpha.service'], 'org.freedesktop.DBus.Properties', 'PropertiesChanged', GLib.Variant('(sa{sv}as)', (UNIT, {}, ['ActiveState', 'SubState'])))
+ elif cmd == 'description':
+ units['alpha.service'][0] = 'Updated alpha server'
+ changed('alpha.service', Description=units['alpha.service'][0])
elif cmd == 'flood':
# What systemd does while something loads units in bulk: thousands of signals
# a second, mostly for mounts and targets, many of them names only.
@@ -928,6 +982,13 @@ def systemd_services(scale):
assert action == 'org.freedesktop.systemd1.manage-unit-files' and flags == 1, checks()[0]
assert not any(r['method'] in ('EnableUnitFiles', 'DisableUnitFiles', 'StartUnit', 'StopUnit', 'RestartUnit', 'Reload', 'EditType') for r in records())
assert not ui.find('notify:slow.service')['is_disabled']
+ click('notify:alpha.service')
+ # A live metadata update rebuilds this page without changing
+ # the menu's backend value or its available choices.
+ fake.stdin.write('description\n'); fake.stdin.flush()
+ wait(lambda: 'Updated alpha server' in labels(), 'description update with Notify open')
+ assert ui.find('notify:alpha.service')['open'], 'a live update must preserve the open Notify menu'
+ ipc.key_press('Escape')
click('Notify')
rows = [w['name'] for w in ui.widgets() if w['role'] == 'row' and (w['name'] or '').endswith('.service')]
# A service systemd has not loaded has no Type to sort by and none to edit.
@@ -1039,20 +1100,23 @@ def systemd_services(scale):
fake.stdin.write('reload-type\n'); fake.stdin.flush()
wait(lambda: ui.find('notify:alpha.service')['selected_index'] == 2, 'type update after external daemon reload')
assert count('ListUnits') == lists + 3 and count('Property:Type') == types + 1 + 45, 'a daemon reload re-reads the list and every detail'
- # Global search covers the selected category: it must release
- # the Services subscription until results are cleared.
+ # Search navigation away from Services releases its subscription.
+ # Clearing the query keeps the newly selected page visible.
before = count('Unsubscribe')
click('settings_search')
ipc.type_text('volume')
ui.wait_settled('control_center')
wait(lambda: count('Unsubscribe') == before + 1, 'unsubscribed while global search covers Services')
- assert ui.find('output_volume')['role'] == 'row'
+ assert ipc.get_shell_state()['control_center']['category'] == 'audio'
+ assert not any(label == 'Search results' for label in labels())
lists, nreads = count('ListUnits'), len(reads())
fake.stdin.write('change\n'); fake.stdin.flush()
time.sleep(.3)
assert count('ListUnits') == lists and len(reads()) == nreads
ipc.key_press('Escape')
- wait(lambda: any('46 services' in label for label in labels()), 'Services resumes after global search')
+ assert ipc.get_shell_state()['control_center']['category'] == 'audio'
+ click('services')
+ wait(lambda: any('46 services' in label for label in labels()), 'Services resumes when selected again')
# Leaving the page lets go: matches dropped, Unsubscribe sent, later
# signals unheard, and coming back loads afresh.
subscribes, lists, before = count('Subscribe'), count('ListUnits'), count('Unsubscribe')
diff --git a/tests/dead_keys.py b/tests/dead_keys.py
index b7940a5..4c7fdb8 100644
--- a/tests/dead_keys.py
+++ b/tests/dead_keys.py
@@ -31,12 +31,12 @@ def compile_client(tmp):
class Keyboard:
- def __init__(self, tmp, layout):
+ def __init__(self, tmp, layout, variant=""):
env = dict(os.environ, XDG_RUNTIME_DIR=str(tmp), WAYLAND_DISPLAY=wayland_display_name(tmp))
env.pop("DISPLAY", None)
self.log = tmp / "keyboard.log"
with self.log.open("w") as out:
- self.process = subprocess.Popen([str(tmp / "virtual-keyboard-client"), layout], env=env,
+ self.process = subprocess.Popen([str(tmp / "virtual-keyboard-client"), layout, variant], env=env,
stdin=subprocess.PIPE, stdout=out, stderr=out, text=True)
wait_for(lambda: "ready\n" in self.log.read_text(), lambda: f"keyboard did not start: {self.log.read_text()}")
@@ -170,6 +170,29 @@ def files_rename(tmp, language, accented_c):
assert "panic:" not in (tmp / "compositor.log").read_text()
+def direct_text(tmp, language, layout, variant, keys, expected):
+ """Real layout keysyms and composed text survive the shell input path."""
+ config = f'[compositor]\nxwayland = false\n[region]\nlanguage = "{language}"\n'
+ process, log = spawn_compositor(tmp, config_content=config, env_extra={"DBUS_SESSION_BUS_ADDRESS": ""})
+ keyboard = None
+ try:
+ with IPCClient(tmp, timeout=15) as ipc:
+ ipc.wait_for("wallpaper_presented", timeout_ms=10000)
+ ipc.action("open_start_menu")
+ wait_for(lambda: ipc.get_shell_state()["start_menu"]["state"] == "open", "start menu did not open")
+ keyboard = Keyboard(tmp, layout, variant)
+ for key in keys:
+ keyboard.press(key)
+ wait_for(lambda: search_text(ipc) == expected,
+ lambda: f"{layout}/{variant}: expected {expected!r}, got {search_text(ipc)!r}")
+ finally:
+ if keyboard:
+ keyboard.close()
+ stop_process(process)
+ log.close()
+ assert "panic:" not in (tmp / "compositor.log").read_text()
+
+
def run():
with tempfile.TemporaryDirectory(prefix="rediwm-dead-keys-") as directory:
tmp = Path(directory)
@@ -186,6 +209,15 @@ def run():
(app / "virtual-keyboard-client").symlink_to(tmp / "virtual-keyboard-client")
files_rename(app, language, accented_c)
print(f"PASS: Files rename composes under {language}")
+ for language, layout, variant, keys, expected in (
+ ("de_DE.UTF-8", "de", "nodeadkeys", (40, 39, 26, 12), "äöüß"),
+ ("fr_FR.UTF-8", "fr", "", (26, 18, 3), "êé"),
+ ("ru_RU.UTF-8", "ru", "", (49, 20, 35, 47), "терм")):
+ sub = tmp / layout
+ sub.mkdir(mode=0o700)
+ (sub / "virtual-keyboard-client").symlink_to(tmp / "virtual-keyboard-client")
+ direct_text(sub, language, layout, variant, keys, expected)
+ print(f"PASS: {layout} keyboard text {expected!r}")
if __name__ == "__main__":
diff --git a/tests/dock.py b/tests/dock.py
index 7cae403..4bb08a3 100644
--- a/tests/dock.py
+++ b/tests/dock.py
@@ -15,6 +15,19 @@ from ipc_client import IPCClient, spawn_compositor, stop_process
from ui_driver import UIDriver
+def count_badge(ipc, ui, name, scale, path):
+ """The icon's top-right corner, clear of its running/focus pill."""
+ ipc.move_cursor(5, 5)
+ ipc.wait_for_frame()
+ box = next(w['global_box'] for w in ui.widgets('dock') if w['name'] == name)
+ path.unlink(missing_ok=True)
+ ipc.screenshot(str(path))
+ with Image.open(path) as image:
+ return image.convert('RGB').crop(tuple(round(v * scale) for v in
+ (box['x'] + box['width'] / 2, box['y'] + box['height'] / 8,
+ box['x'] + box['width'] * 7 / 8, box['y'] + box['height'] / 2)))
+
+
def run():
scale = float(os.environ.get('REDIWM_TEST_SCALE', '1'))
with tempfile.TemporaryDirectory(prefix='rediwm-dock-') as directory:
@@ -293,17 +306,74 @@ enabled = false
assert len(ipc.get_windows()) == 1
assert ipc.get_focused_window()['id'] == wid
if desktop_id:
+ single = count_badge(ipc, ui, shortcut, scale, tmp / 'badge-single.png')
ipc.action('launch_app', {'desktop_id': desktop_id})
second = wait_for(lambda: next((w for w in ipc.get_windows() if w['id'] != wid), None), 'second instance')
wait_for(shortcuts_only, 'multiple windows share one shortcut')
- ipc.action('close_window', {'id': second['id']})
+ double = count_badge(ipc, ui, shortcut, scale, tmp / 'badge-double.png')
+ assert ImageChops.difference(single, double).getbbox(), 'two windows have no count badge'
+ click(button(shortcut))
+ wait_for(lambda: len([w for w in ui.widgets('window_picker') if w['role'] == 'row']) == 2, 'two-window picker')
+ picker = ui.widgets('window_picker')
+ rows = [w for w in picker if w['role'] == 'row']
+ assert {w['name'] for w in rows} == {f'window_{wid}', f'window_{second["id"]}'}
+ assert all(w['global_box']['height'] == 40 for w in rows), 'window rows should be compact'
+ assert len([w for w in picker if w['role'] == 'text' and w['label']]) == 2, 'window titles missing'
+ assert {w['name'] for w in picker if w['role'] == 'button'} == {f'close_window_{wid}', f'close_window_{second["id"]}'}, 'window close buttons missing'
+ ipc.key(1, True)
+ ipc.key(1, False)
+ wait_for(lambda: not ui.widgets('window_picker'), 'Escape closes window picker')
+ ipc.action('minimize_window', {'id': second['id']})
+ minimized = count_badge(ipc, ui, shortcut, scale, tmp / 'badge-minimized.png')
+ assert not ImageChops.difference(double, minimized).getbbox(), 'minimized window missing from count'
+ click(button(shortcut))
+ wait_for(lambda: bool(ui.widgets('window_picker')), 'picker includes minimized window')
+ click(ui.find(f'window_{second["id"]}', panel='window_picker'))
+ wait_for(lambda: not next(w for w in ipc.get_windows() if w['id'] == second['id'])['is_minimized'], 'picker restores chosen window')
+ assert ipc.get_focused_window()['id'] == second['id']
+ assert not ui.widgets('window_picker'), 'selection left picker open'
+ click(button(shortcut))
+ ipc.click_at(5, 5)
+ wait_for(lambda: not ui.widgets('window_picker'), 'outside click closes picker')
+ click(button(shortcut))
+ ipc.key(108, True) # Down selects the first window.
+ ipc.key(108, False)
+ ipc.key(28, True)
+ ipc.key(28, False)
+ wait_for(lambda: not ui.widgets('window_picker'), 'keyboard selection closes picker')
+ assert ipc.get_focused_window()['id'] == wid, 'keyboard chose the wrong window'
+ ipc.action('launch_app', {'desktop_id': desktop_id})
+ third = wait_for(lambda: next((w for w in ipc.get_windows() if w['id'] not in (wid, second['id'])), None), 'third instance')
+ triple = count_badge(ipc, ui, shortcut, scale, tmp / 'badge-triple.png')
+ assert ImageChops.difference(double, triple).getbbox(), 'count did not change from two to three'
+ click(button(shortcut))
+ close = ui.find(f'close_window_{third["id"]}', panel='window_picker')
+ ipc.move_cursor(*center(ui.find(f'window_{third["id"]}', panel='window_picker')))
+ ipc.wait_for_frame()
+ box = close['global_box']
+ close_box = tuple(round(v * scale) for v in (box['x'], box['y'], box['x'] + box['width'], box['y'] + box['height']))
+ resting = shot(f'{shortcut}-close-rest').crop(close_box)
+ ipc.move_cursor(*center(close))
+ ipc.wait_for_frame()
+ assert ImageChops.difference(resting, shot(f'{shortcut}-close-hover').crop(close_box)).getbbox(), 'close button has no hover feedback'
+ click(close)
+ wait_for(lambda: len(ipc.get_windows()) == 2, 'third window closed')
+ assert not ui.widgets('window_picker'), 'close button left picker open'
+ assert not ImageChops.difference(double, count_badge(ipc, ui, shortcut, scale, tmp / 'badge-two-left.png')).getbbox(), 'count did not return to two'
+ ipc.action('focus_window', {'id': wid})
+ ipc.action('minimize_window', {'id': second['id']})
+ click(button(shortcut))
+ click(ui.find(f'close_window_{second["id"]}', panel='window_picker'))
wait_for(lambda: len(ipc.get_windows()) == 1, 'second window closed')
+ assert ipc.get_focused_window()['id'] == wid, 'closing a minimized window changed focus'
+ assert not ImageChops.difference(single, count_badge(ipc, ui, shortcut, scale, tmp / 'badge-one-left.png')).getbbox(), 'badge survived with one window left'
assert ImageChops.difference(idle, pill(shortcut, f'{app_id}-one-left')).getbbox(), 'pill disappeared with a window left'
if shortcut == 'files':
before_removal = cfg.read_text()
ipc.move_cursor(*center(button(shortcut)))
ipc.pointer_button(273, True)
ipc.pointer_button(273, False)
+ assert not ui.widgets('window_picker'), 'right click opened a window picker'
for code in (103, 28): # Up selects Remove from dock.
ipc.key(code, True)
ipc.key(code, False)
@@ -333,6 +403,21 @@ enabled = false
click(button(name))
wait_for(lambda: not next(w for w in ipc.get_windows() if w['id'] == wid)['is_minimized'], 'dock restore')
assert ipc.get_focused_window()['id'] == wid
+ single = count_badge(ipc, ui, name, scale, tmp / 'window-badge-single.png')
+ clients.append(subprocess.Popen([str(tmp / 'client'), '--app-id', 'dock.test'],
+ env=dict(os.environ, XDG_RUNTIME_DIR=str(tmp), WAYLAND_DISPLAY=display),
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL))
+ second = wait_for(lambda: next((w for w in ipc.get_windows() if w['id'] != wid), None), 'second unpinned window')
+ double = count_badge(ipc, ui, name, scale, tmp / 'window-badge-double.png')
+ assert ImageChops.difference(single, double).getbbox(), 'unpinned app has no window count'
+ click(button(name))
+ wait_for(lambda: len([w for w in ui.widgets('window_picker') if w['role'] == 'row']) == 2, 'unpinned window picker')
+ ipc.action('close_window', {'id': second['id']})
+ wait_for(lambda: len(ipc.get_windows()) == 1, 'second unpinned window closed')
+ assert not ui.widgets('window_picker'), 'closing a listed window left a stale picker'
+ assert not ImageChops.difference(single, count_badge(ipc, ui, name, scale, tmp / 'window-badge-one-left.png')).getbbox(), 'unpinned count survived with one window'
+ ipc.action('focus_window', {'id': wid})
+ ipc.wait_for_frame()
# The focused app's rectangle is off by default; the setting draws it.
# A strip beside the icon, inside the button, shows it.
ipc.move_cursor(5, 5)
@@ -703,6 +788,8 @@ def pill_animation():
ipc.reload_config()
advance(1000)
+ # Include a count badge in the retained/whole repaint comparison.
+ zoom_windows = [launch('foot'), launch('foot')]
ipc.move_cursor(5, 5)
advance(1000)
repaint_whole()
@@ -715,6 +802,10 @@ def pill_animation():
assert ImageChops.difference(at_rest, animated).getbbox(), 'hover did not repaint'
repaint_whole()
assert ImageChops.difference(animated, dock_image('whole')).getbbox() is None, 'animated repaint differs from a whole one'
+ for window_id in zoom_windows:
+ ipc.action('close_window', {'id': window_id})
+ wait_for(lambda: not ipc.get_windows(), 'hover badge windows closed')
+ advance(1000)
cfg.write_text(cfg.read_text().replace('dock_hover_zoom = 1.5', 'dock_hover_zoom = 1.0'))
ipc.reload_config()
ipc.wait_for_frame(output=primary)
@@ -1025,8 +1116,16 @@ def pinning():
ipc.click_at(*centre(box('pin_pin-one.desktop')))
wait_for(lambda: len(ipc.get_windows()) == 1, 'pinned app launched')
assert not any(n.startswith('window_') for n in names()), 'a pinned app also got a window button'
+ single = count_badge(ipc, ui, 'pin_pin-one.desktop', scale, tmp / 'pin-badge-single.png')
second, second_id = launch('dock.pin.one')
assert not any(n.startswith('window_') for n in names())
+ double = count_badge(ipc, ui, 'pin_pin-one.desktop', scale, tmp / 'pin-badge-double.png')
+ assert ImageChops.difference(single, double).getbbox(), 'pinned app has no window count'
+ ipc.click_at(*centre(box('pin_pin-one.desktop')))
+ wait_for(lambda: len([w for w in ui.widgets('window_picker') if w['role'] == 'row']) == 2, 'pinned window picker')
+ ipc.key(1, True)
+ ipc.key(1, False)
+ wait_for(lambda: not ui.widgets('window_picker'), 'pinned picker dismissed')
other, other_id = launch('dock.pin.free')
wait_for(lambda: f'window_{other_id}' in names(), 'unpinned app window')
@@ -1073,6 +1172,12 @@ def positions():
(theme / 'index.theme').write_text('[Icon Theme]\nName=DockAnchorTest\nDirectories=64x64/apps\n'
'[64x64/apps]\nSize=64\nType=Fixed\nContext=Applications\n')
Image.new('RGBA', (64, 64), (248, 16, 128, 255)).save(icons / 'rediwm-settings.png')
+ Image.new('RGBA', (64, 64), (16, 224, 248, 255)).save(icons / 'transmission-artwork.png')
+ applications = tmp / 'data/applications'
+ applications.mkdir(parents=True)
+ (applications / 'transmission-gtk.desktop').write_text(
+ '[Desktop Entry]\nType=Application\nName=Transmission\n'
+ 'Exec=transmission-gtk %U\nIcon=transmission-artwork\n')
env_extra = {'DBUS_SESSION_BUS_ADDRESS': '', 'DBUS_SYSTEM_BUS_ADDRESS': 'unix:path=/nonexistent',
'XDG_CONFIG_HOME': str(tmp / 'config'), 'XDG_DATA_HOME': str(tmp / 'data'),
'XDG_CACHE_HOME': str(tmp / 'cache'), 'REDIWM_ICON_THEME': 'DockAnchorTest'}
@@ -1090,10 +1195,13 @@ def positions():
ui = UIDriver(ipc)
display = wait_for(lambda: next((p.name for p in tmp.glob('wayland-*')
if not p.name.endswith('.lock')), None), 'display')
- client = subprocess.Popen([str(tmp / 'client'), '--app-id', 'dock.position'],
+ # Transmission uses a per-instance GTK ID, unlike its desktop
+ # file and Icon= name. The dock must still show that artwork.
+ app_id = 'com.transmissionbt.transmission_1000_12345'
+ client = subprocess.Popen([str(tmp / 'client'), '--app-id', app_id],
env=dict(os.environ, XDG_RUNTIME_DIR=str(tmp), WAYLAND_DISPLAY=display),
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
- wid = wait_for(lambda: next((w['id'] for w in ipc.get_windows() if w['app_id'] == 'dock.position'), None), 'position client')
+ wid = wait_for(lambda: next((w['id'] for w in ipc.get_windows() if w['app_id'] == app_id), None), 'position client')
ipc.wait_for('window_geometry_settled', window_id=wid)
cfg = tmp / 'rediwm-config.toml'
def root():
@@ -1110,6 +1218,13 @@ def positions():
return image.convert('RGB')
def crop(image, box):
return image.crop(tuple(round(v * scale) for v in box))
+ def running_icon_ready():
+ box = item(f'window_{wid}')
+ image = crop(shot('running-icon'), (box['x'], box['y'],
+ box['x'] + box['width'], box['y'] + box['height']))
+ return sum(count for count, (r, g, b) in image.getcolors(image.width * image.height)
+ if r < 32 and g > 200 and b > 224) > 200 * scale * scale
+ wait_for(running_icon_ready, 'running Transmission icon did not use desktop artwork')
def icon_bounds(image, region):
icon = crop(image, region)
red, green, blue = icon.split()
diff --git a/tests/editor.py b/tests/editor.py
index 4c925a4..31d4ad7 100644
--- a/tests/editor.py
+++ b/tests/editor.py
@@ -281,6 +281,108 @@ def run():
key(17, ctrl=True)
wait_for(lambda: not windows("rediwm-editor"), "large file tab closes")
print("files beyond 16 MiB open, jump to the end and save exactly", flush=True)
+ # Real held-key delivery, Unicode word selection and drag extension.
+ inputs = docs / "input.txt"
+ inputs.write_text("alpha café omega")
+ start("rediwm-editor", inputs)
+ win = title("input.txt")
+ ipc.focus_window(win["id"])
+ ipc.wait_for("window_geometry_settled", window_id=win["id"])
+ ipc.wait_for_frame()
+ time.sleep(.15)
+ header = 46 if csd else 0
+
+ def save_input():
+ key(31, ctrl=True)
+ title("input.txt")
+ return inputs.read_text()
+
+ def hold(code, duration=.85, ctrl=False):
+ if ctrl: ipc.key(29, True)
+ ipc.key(code, True)
+ time.sleep(duration)
+ ipc.key(code, False)
+ if ctrl: ipc.key(29, False)
+ time.sleep(.1)
+
+ # A click near the centre of café must select only that word.
+ # Use the rendered glyphs to find its extent across fonts/scales.
+ from PIL import Image
+ preview = tmp / "word-selection.png"
+ ipc.screenshot(path=str(preview))
+ image = Image.open(preview).convert("RGB")
+ factor = image.width / ipc.get_outputs()[0]["logical_width"]
+ box = ipc.get_window_debug(win["id"])["client_box"]
+ y0 = round((box["y"] + header + 40) * factor)
+ y1 = round((box["y"] + header + 64) * factor)
+ columns = []
+ for x in range(round((box["x"]+16)*factor), round((box["x"]+220)*factor)):
+ if any(min(image.getpixel((x, y))) > 155 for y in range(y0, y1)):
+ if not columns or x > columns[-1][-1] + 1: columns.append([x])
+ else: columns[-1].append(x)
+ # Derive the monospace cell width from the first five glyphs.
+ assert len(columns) >= 9, (columns, box)
+ cell = (columns[4][0] - columns[0][0]) / 4 / factor
+ x = 16 + cell * 8
+ y = header + 50
+ click(win, x, y)
+ click(win, x+1, y)
+ key(45) # replace selected café with x
+ assert save_input() == "alpha x omega", inputs.read_text()
+ key(44, ctrl=True)
+ assert save_input() == "alpha café omega"
+ for end_cell, expected in ((13, "alpha x"), (2, "x omega")):
+ click(win, x, y)
+ box = ipc.get_window_debug(win["id"])["client_box"]
+ ipc.move_cursor(round(box["x"]+x+1), round(box["y"]+y))
+ ipc.action('pointer_button', {"button": 272, "pressed": True})
+ ipc.move_cursor(round(box["x"]+16+cell*end_cell), round(box["y"]+y))
+ ipc.action('pointer_button', {"button": 272, "pressed": False})
+ key(45)
+ assert save_input() == expected
+ key(44, ctrl=True)
+ assert save_input() == "alpha café omega"
+ print("double-click selects a Unicode word and drags by whole words", flush=True)
+
+ key(107, ctrl=True)
+ hold(28) # Return
+ value = save_input()
+ assert value.startswith("alpha café omega") and value.count("\n") >= 3, repr(value)
+ time.sleep(.5)
+ assert save_input() == value, "key repeat continued after release"
+ hold(15) # Tab
+ value = save_input()
+ assert value.count("\t") >= 3, repr(value)
+ hold(30) # a
+ value = save_input()
+ assert value.endswith("aaa"), repr(value)
+ hold(14) # Backspace
+ assert len(save_input()) < len(value)-2
+ key(30, ctrl=True)
+ ipc.type_text("one two three four five")
+ key(107, ctrl=True)
+ hold(105, ctrl=True) # Ctrl+Left reaches the first word
+ key(45)
+ assert save_input() == "xone two three four five"
+ key(107, ctrl=True)
+ hold(14, ctrl=True) # Ctrl+Backspace removes words repeatedly
+ assert len(save_input()) < 10
+ # Changing focus cancels a held key even when its release is
+ # delivered to the newly focused client.
+ key(30, ctrl=True)
+ key(14)
+ ipc.key(30, True)
+ time.sleep(.5)
+ start("rediwm-files", docs)
+ other = wait_for(lambda: next(iter(windows("rediwm-files")), None), "repeat focus target")
+ ipc.focus_window(other["id"])
+ time.sleep(.2)
+ ipc.key(30, False)
+ ipc.focus_window(win["id"])
+ stopped = save_input()
+ time.sleep(.5)
+ assert save_input() == stopped, "held key survived focus loss"
+ print("held Enter, Tab, text, deletion and word navigation; release and focus cancellation", flush=True)
if env["WLR_RENDERER"] == "gles2":
lines = (tmp / "rediwm-0.log").read_text().splitlines()
for line in lines:
diff --git a/tests/editor_visuals.py b/tests/editor_visuals.py
index 9196389..457cb1b 100644
--- a/tests/editor_visuals.py
+++ b/tests/editor_visuals.py
@@ -15,7 +15,7 @@ def run():
with tempfile.TemporaryDirectory(prefix="editor-visuals-") as directory:
tmp = Path(directory)
config = tmp / "config.toml"
- config.write_text('[compositor]\nxwayland = false\n')
+ config.write_text('[compositor]\nxwayland = false\n[input]\ncaret_motion_ms = 400\n')
env = dict(os.environ, HOME=directory, XDG_RUNTIME_DIR=directory,
XDG_CONFIG_HOME=str(tmp / 'config'), XDG_DATA_HOME=str(tmp / 'data'),
XDG_STATE_HOME=str(tmp / 'state'), XDG_CACHE_HOME=str(tmp / 'cache'),
@@ -183,6 +183,30 @@ def run():
time.sleep(.7)
assert switches()==before, 'caret timer keeps waking the idle editor'
print('caret becomes solid and makes no idle wakeups',flush=True)
+ # A longer configured glide makes intermediate rendered
+ # positions observable without relying on screenshot latency.
+ ipc.type_text('m')
+ time.sleep(.45)
+ def caret_x():
+ shot=capture()
+ factor=shot.width/ipc.get_outputs()[0]['logical_width']
+ text_top=box['y']+40+(46 if csd else 0)
+ y=round((text_top+1)*factor)
+ pixels=[x for x in range(round((box['x']+13)*factor), round((box['x']+45)*factor))
+ if min(shot.getpixel((x,y))) > 155]
+ assert pixels, 'moving caret disappeared'
+ assert max(pixels)-min(pixels) <= 3*factor, f'caret left a trail: {pixels}'
+ return sum(pixels)/len(pixels)
+ right=caret_x()
+ ipc.key_down_up(105) # Left by one character.
+ time.sleep(.05)
+ middle=caret_x()
+ time.sleep(.4)
+ ipc.key_down_up(105) # Stay at the start and restart blinking.
+ left=caret_x()
+ assert left < middle < right, (left,middle,right)
+ ipc.key_down_up(111) # Delete the probe character.
+ print('caret glides through intermediate pixels without trails',flush=True)
# A selection between the middle rows must leave the rows
# above and below it untouched, whichever way it is dragged.
for row in range(5):
diff --git a/tests/files_associations.py b/tests/files_associations.py
index 4ab72d7..2c05a22 100644
--- a/tests/files_associations.py
+++ b/tests/files_associations.py
@@ -1,21 +1,124 @@
#!/usr/bin/env python3
"""MIME icons, app-icon fallback and real GIO opening with private associations."""
import os
+import json
from pathlib import Path
import subprocess
+import sys
import tempfile
import time
from PIL import Image, ImageChops
from files_browser import wait_for
-from ipc_client import IPCClient, spawn_compositor, stop_process
+from ipc_client import IPCClient, IPCError, spawn_compositor, stop_process
ROOT = Path(__file__).resolve().parents[1]
+def appimage_fixture(tmp):
+ """A real ELF with an appended SquashFS, never executed during registration."""
+ folder = tmp / 'portable'
+ folder.mkdir()
+ appdir = tmp / 'appdir'
+ appdir.mkdir()
+ (appdir / 'portable.desktop').write_text(
+ '[Desktop Entry]\nType=Application\nName=Portable Hub\nName[en_NZ]=Portable Hub NZ\n'
+ 'Exec="AppRun" --fixture %U\nIcon=portable\nTerminal=false\n'
+ 'Categories=Development;\nMimeType=x-scheme-handler/rediwm-appimage-test;x-scheme-handler/rediwm-existing-test;application/x-rediwm-specific;\n'
+ 'TryExec=/nonexistent/appimage\nPath=/nonexistent/appdir\nDBusActivatable=true\n'
+ 'Actions=unsafe;\n[Desktop Action unsafe]\nName=Unsafe\nExec=/bin/false\n')
+ icon = appdir / 'usr/share/icons/portable.png'
+ icon.parent.mkdir(parents=True)
+ Image.new('RGBA', (32, 32), (36, 120, 220, 255)).save(icon)
+ (appdir / '.DirIcon').symlink_to('usr/share/icons/portable.png')
+ squash = tmp / 'appimage.squashfs'
+ subprocess.run(['mksquashfs', str(appdir), str(squash), '-noappend', '-no-progress',
+ '-processors', '1'], check=True, capture_output=True)
+ marker = tmp / 'appimage-opened'
+ source = tmp / 'appimage.c'
+ source.write_text('#include <stdio.h>\nint main(int argc, char **argv) {\n'
+ f'FILE *f = fopen({json.dumps(str(marker))}, "w"); if (!f) return 1;\n'
+ 'for (int i = 1; i < argc; ++i) fprintf(f, "%s\\n", argv[i]); fclose(f); return 0; }\n')
+ # Exercise both Desktop Entry escaping layers, field-code escaping, and
+ # argv passing without letting shell punctuation become a shell command.
+ image = folder / 'Hub $`"\\100%.AppImage'
+ subprocess.run(['cc', str(source), '-o', str(image)], check=True, capture_output=True)
+ elf = bytearray(image.read_bytes())
+ elf[8:11] = b'AI\x02'
+ image.write_bytes(elf + squash.read_bytes())
+ image.chmod(0o600)
+ return folder, image, marker, icon.read_bytes()
+
+
+def check_appimage(ipc, key, click, portable, appimage, appimage_marker, appimage_icon, apps, data, config, env):
+ # The AppImage's third context action integrates it without
+ # executing it. All registrations remain in the private XDG dirs.
+ ipc.action('key', {"keycode": 29, "pressed": True})
+ key(38) # Ctrl+L
+ ipc.action('key', {"keycode": 29, "pressed": False})
+ ipc.type_text(str(portable))
+ key(28)
+ wait_for(lambda: any(w['title'] == 'portable — RediWM Files' for w in ipc.get_windows()),
+ 'AppImage folder did not open')
+ time.sleep(.3)
+
+ def add_appimage():
+ click(260, 160, 273)
+ key(108)
+ key(108)
+ key(28)
+
+ add_appimage()
+ registered = lambda: list(apps.glob('rediwm-appimage-*.desktop'))
+ wait_for(lambda: len(registered()) == 1, 'Add to applications did not create a launcher')
+ entry = registered()[0]
+ text = entry.read_text()
+ assert 'Name=Portable Hub\n' in text and 'Name[en_NZ]=Portable Hub NZ\n' in text, text
+ for unsafe in ('TryExec=', 'Path=', 'DBusActivatable=', 'Actions=', '[Desktop Action'):
+ assert unsafe not in text, text
+ assert not appimage_marker.exists(), 'registration executed the AppImage'
+ assert appimage.stat().st_mode & 0o777 == 0o700
+ installed_icon = next((data / 'icons').rglob('rediwm-appimage-*.png'))
+ assert installed_icon.read_bytes() == appimage_icon
+ uri = 'rediwm-appimage-test://login?code=private%20callback&state=a-b'
+ def callback_registered():
+ result = subprocess.run(['gio', 'mime', 'x-scheme-handler/rediwm-appimage-test'],
+ env=env, capture_output=True, text=True)
+ return entry.name in result.stdout
+ wait_for(callback_registered, 'AppImage URL handler was not registered')
+ subprocess.run(['gio', 'open', uri], env=env, check=True, capture_output=True)
+ wait_for(appimage_marker.exists, 'browser callback did not launch the registered AppImage')
+ assert appimage_marker.read_text() == '--fixture\n' + uri + '\n'
+ assert 'application/x-rediwm-specific=openscad.desktop;' in (config / 'mimeapps.list').read_text()
+ existing = subprocess.run(['gio', 'mime', 'x-scheme-handler/rediwm-existing-test'], env=env,
+ check=True, capture_output=True, text=True)
+ assert 'Default application for' in existing.stdout and 'existing-link.desktop' in existing.stdout.splitlines()[0], existing.stdout
+ appimage_marker.unlink()
+ time.sleep(.3)
+ add_appimage()
+ time.sleep(.5)
+ assert len(registered()) == 1 and entry.read_text() == text, 'repeated Add duplicated the launcher'
+ assert not appimage_marker.exists()
+ # The start menu's live catalogue and its own Exec parser must see the
+ # new launcher too, including the same punctuation-heavy image path.
+ def launch_from_catalogue():
+ try:
+ ipc.launch(entry.name)
+ except IPCError as error:
+ if 'UnknownDesktopId' in str(error):
+ return False
+ raise
+ return True
+ wait_for(launch_from_catalogue, 'the application catalogue did not discover the AppImage')
+ wait_for(appimage_marker.exists, 'the start menu launcher did not run the AppImage')
+ assert appimage_marker.read_text() == '--fixture\n'
+ appimage_marker.unlink()
+
+
def run():
with tempfile.TemporaryDirectory(prefix="rediwm-files-associations-") as directory:
tmp = Path(directory)
+ portable, appimage, appimage_marker, appimage_icon = appimage_fixture(tmp)
data, config, home = tmp / "data", tmp / "config", tmp / "home"
apps = data / "applications"
mime = data / "mime"
@@ -58,10 +161,12 @@ def run():
for i in range(12):
(apps / f"extra-{i}.desktop").write_text('[Desktop Entry]\nType=Application\n'
f'Name=Z Extra {i:02d}\nExec={launcher} extra-{i} %f\nTerminal=false\n')
+ (apps / 'existing-link.desktop').write_text('[Desktop Entry]\nType=Application\n'
+ 'Name=Existing link handler\nExec=/bin/true %U\nMimeType=x-scheme-handler/rediwm-existing-test;\n')
defaults = ["openscad", "openscad", "override", "missing", "", "celluloid"]
(config / "mimeapps.list").write_text('[Default Applications]\n' + ''.join(
f'{t[0]}={app}.desktop;\n' for t, app in zip(types, defaults) if app) +
- 'x-scheme-handler/file=thunar.desktop;\n')
+ 'x-scheme-handler/file=thunar.desktop;\nx-scheme-handler/rediwm-existing-test=existing-link.desktop;\n')
for name in ("a model #.scad", "b.specific", "c.override", "d.noicon"):
(home / name).write_text('cube([1, 2, 3]);\n')
env = dict(os.environ, HOME=str(home), XDG_DATA_HOME=str(data), XDG_DATA_DIRS=str(data),
@@ -88,8 +193,21 @@ def run():
ipc.action('set_window_size', {"id": win["id"], "width": 960, "height": 540})
ipc.action('move_window_to', {"id": win["id"], "x": 10, "y": 10})
ipc.focus_window(win["id"])
- time.sleep(.6)
+ ipc.wait_for('window_geometry_settled', window_id=win['id'])
box = ipc.get_window_debug(win["id"])["client_box"]
+ def key(code):
+ for pressed in (True, False):
+ ipc.action('key', {"keycode": code, "pressed": pressed})
+
+ def click(x, y, button=272):
+ ipc.move_cursor(int(box["x"] + x), int(box["y"] + y))
+ for pressed in (True, False):
+ ipc.action('pointer_button', {"button": button, "pressed": pressed})
+
+ if "--appimage-only" in sys.argv:
+ check_appimage(ipc, key, click, portable, appimage, appimage_marker, appimage_icon, apps, data, config, env)
+ print("PASS: AppImage context action, metadata, defaults, idempotence, browser callback and catalogue launch")
+ return
screenshot = tmp / "icons.png"
expected = [(255, 0, 0), (0, 0, 255), (255, 0, 255), (0, 255, 0)]
def correct_icons():
@@ -109,15 +227,6 @@ def run():
ipc.action('key', {"keycode": 28, "pressed": pressed})
wait_for(lambda: marker.exists(), "associated application was not launched")
assert marker.read_text() == app + '\n' + str(home / name), marker.read_text()
- def key(code):
- for pressed in (True, False):
- ipc.action('key', {"keycode": code, "pressed": pressed})
-
- def click(x, y, button=272):
- ipc.move_cursor(int(box["x"] + x), int(box["y"] + y))
- for pressed in (True, False):
- ipc.action('pointer_button', {"button": button, "pressed": pressed})
-
def drag_title(x, y, dx, dy):
path = tmp / "dialog-drag.png"
path.unlink(missing_ok=True)
@@ -325,8 +434,9 @@ def run():
key(28) # Open the selected folder; a modal would intercept this.
wait_for(lambda: any(w['title'] == '0-folder — RediWM Files' for w in ipc.get_windows()),
"folder context menu unexpectedly opened an app picker")
+ check_appimage(ipc, key, click, portable, appimage, appimage_marker, appimage_icon, apps, data, config, env)
assert client.poll() is None
- print("PASS: MIME icons, Properties permissions and compact layout, Open With, video default on double-click, default persistence, cancellation and folder exclusion")
+ print("PASS: MIME icons, Properties, Open With, default persistence, AppImage registration and URL callbacks")
except Exception:
if (tmp / "compositor.log").exists():
print((tmp / "compositor.log").read_text()[-5000:])
diff --git a/tests/files_terminal.py b/tests/files_terminal.py
index d1f704f..e957cfe 100644
--- a/tests/files_terminal.py
+++ b/tests/files_terminal.py
@@ -472,6 +472,86 @@ def ui_tests(tmp, home, env):
log.close()
+def terminal_drop_test(tmp, home, env, list_view=False):
+ source = home / ('drop-list' if list_view else 'drop-grid')
+ source.mkdir()
+ folder = source / "folder with ' quotes"
+ folder.mkdir()
+ file = source / 'file 雪 \"$()`;\\.txt'
+ file.write_text('drag payload')
+ output = home / (source.name + '-args')
+ comp, log = spawn_compositor(tmp, binary=BIN / 'rediwm', scale=os.environ.get('REDIWM_TEST_SCALE', '1'), env_extra=env,
+ config_content='[compositor]\nxwayland = false\ndodge_file_drags = false\n')
+ proc = None
+ try:
+ with IPCClient(tmp).connect() as ipc:
+ display = next(p.name for p in tmp.glob('wayland-*') if not p.name.endswith('.lock'))
+ with (tmp / 'files.log').open('w') as files_log:
+ proc = subprocess.Popen([str(BIN / 'rediwm-files'), str(source)],
+ env=dict(env, WAYLAND_DISPLAY=display), stdout=files_log, stderr=files_log)
+ window = wait_for(lambda: next((w for w in ipc.get_windows() if w['app_id'] == 'rediwm-files'), None), 'drop Files window')
+ ident = window['id']
+ ipc.focus_window(ident)
+ ipc.wait_for('window_geometry_settled', window_id=ident)
+ def key(code, modifiers=()):
+ for modifier in modifiers:
+ ipc.key(modifier, True)
+ ipc.key_down_up(code)
+ for modifier in reversed(modifiers):
+ ipc.key(modifier, False)
+ def move(x, y):
+ box = ipc.get_window_debug(ident)['client_box']
+ ipc.move_cursor(round(box['x'] + x), round(box['y'] + y))
+ def click(x, y):
+ move(x, y)
+ ipc.pointer_button(272, True)
+ ipc.pointer_button(272, False)
+ if list_view:
+ width = ipc.get_window_debug(ident)['client_box']['width']
+ click(width - 232, 80)
+ key(62)
+ ready = home / (source.name + '-ready')
+ ipc.type_text('printf ready > ' + shlex.quote(str(ready)))
+ key(28)
+ wait_for(lambda: ready.exists(), 'drop terminal ready')
+ # Build a command before giving focus to the list. The drop must
+ # insert arguments, preserve that command and return keyboard focus.
+ ipc.type_text("printf '%s\\0' > " + shlex.quote(str(output)) + ' ')
+ sx, sy = 250, (178 if list_view else 158)
+ click(500, 300) # Focus empty space so single-click opening cannot navigate.
+ key(30, (29,))
+ move(sx, sy)
+ ipc.pointer_button(272, True)
+ height = ipc.get_window_debug(ident)['client_box']['height']
+ for step in range(1, 17):
+ move(sx + 80 * step / 16, sy + (height - 55 - sy) * step / 16)
+ time.sleep(.04)
+ ipc.pointer_button(272, False)
+ ipc.wait_for_frame()
+ time.sleep(.2) # Allow the asynchronous Wayland URI pipe to finish.
+ assert not output.exists(), 'drop executed the command'
+ key(28)
+ expected = [os.fsencode(folder), os.fsencode(file)]
+ wait_for(lambda: output.exists() and output.read_bytes().split(b'\0') == expected + [b''], 'quoted drop arguments and terminal focus')
+ assert file.read_text() == 'drag payload' and folder.is_dir(), 'terminal drop changed source files'
+ assert sorted(p.name for p in source.iterdir()) == sorted([file.name, folder.name])
+ assert proc.poll() is None
+ print(f'Files: multi-file/folder terminal drop, quoting, focus and preserved sources ({"list" if list_view else "grid"})', flush=True)
+ except Exception:
+ for path in tmp.glob('*.log'):
+ print(path.name, path.read_text()[-6000:])
+ print('Dropped arguments:', output.read_bytes() if output.exists() else None, flush=True)
+ if proc is not None and comp.poll() is None:
+ with IPCClient(tmp).connect() as ipc:
+ ipc.screenshot(path=f'/tmp/rediwm-files-terminal-drop-failure-{os.getpid()}.png')
+ raise
+ finally:
+ if proc is not None:
+ stop_process(proc)
+ stop_process(comp)
+ log.close()
+
+
def run():
os.umask(0o077)
with tempfile.TemporaryDirectory(prefix='rediwm-files-terminal-') as directory:
@@ -497,6 +577,12 @@ def run():
# Use one configuration for the compositor and Files.
env['REDIWM_CONFIG'] = str(tmp / 'rediwm-config.toml')
ui_tests(tmp, home, env)
+ for list_view in (False, True):
+ drop_tmp = tmp / ('drop-list' if list_view else 'drop-grid')
+ drop_tmp.mkdir(mode=0o700)
+ drop_env = dict(env, XDG_RUNTIME_DIR=str(drop_tmp), XDG_STATE_HOME=str(drop_tmp / 'state'),
+ REDIWM_CONFIG=str(drop_tmp / 'rediwm-config.toml'))
+ terminal_drop_test(drop_tmp, home, drop_env, list_view)
finally:
os.environ.clear()
os.environ.update(original)
diff --git a/tests/files_torrents.py b/tests/files_torrents.py
new file mode 100644
index 0000000..da65a09
--- /dev/null
+++ b/tests/files_torrents.py
@@ -0,0 +1,206 @@
+#!/usr/bin/env python3
+"""Real libtorrent transfers, private D-Bus/state and loopback-only networking."""
+import hashlib
+import http.server
+import json
+import os
+from pathlib import Path
+import socket
+import struct
+import subprocess
+import sys
+import tempfile
+import threading
+import time
+import urllib.parse
+import libtorrent as lt
+
+ROOT = Path(__file__).resolve().parents[1]
+
+def wait(predicate, label, timeout=25):
+ until = time.monotonic() + timeout
+ while time.monotonic() < until:
+ result = predicate()
+ if result:
+ return result
+ time.sleep(.05)
+ raise AssertionError(label)
+
+class Client:
+ def __init__(self, runtime):
+ self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET)
+ self.socket.connect(str(runtime / 'files-transfers.sock'))
+ self.socket.settimeout(.2)
+ self.rows = []
+ self.error = ''
+ def send(self, **args):
+ self.socket.send(json.dumps(args).encode())
+ def read(self):
+ try:
+ data = self.socket.recv(192 * 1024)
+ except socket.timeout:
+ return self.rows
+ assert data, 'helper disconnected'
+ value = json.loads(data)
+ if 'error' in value:
+ self.error = value['error']
+ else:
+ self.rows = value['transfers']
+ return self.rows
+ def until(self, predicate, label, timeout=25):
+ return wait(lambda: predicate(self.read()), label, timeout)
+ def close(self):
+ self.socket.close()
+
+def run():
+ with tempfile.TemporaryDirectory(prefix='rediwm-torrents-') as temporary:
+ tmp = Path(temporary)
+ runtime = tmp / 'runtime'; runtime.mkdir(mode=0o700)
+ seed_dir = tmp / 'seed'; seed_dir.mkdir()
+ dest = tmp / 'downloads'; dest.mkdir()
+ payload = os.urandom(512 * 1024)
+ (seed_dir / 'bundle').mkdir()
+ (seed_dir / 'bundle' / 'wanted.bin').write_bytes(payload)
+ (seed_dir / 'bundle' / 'skip.bin').write_bytes(os.urandom(512 * 1024))
+ seed = lt.session({'listen_interfaces': '127.0.0.1:0', 'enable_dht': False,
+ 'enable_lsd': False, 'enable_upnp': False, 'enable_natpmp': False,
+ 'enable_outgoing_utp': False, 'enable_incoming_utp': False,
+ 'upload_rate_limit': 65536, 'alert_mask': 0x7fffffff, 'allow_multiple_connections_per_ip': True})
+ class Tracker(http.server.BaseHTTPRequestHandler):
+ def do_GET(self):
+ port = int(urllib.parse.parse_qs(urllib.parse.urlparse(self.path).query).get('port', ['0'])[0])
+ if port and port != seed.listen_port():
+ seeding.connect_peer(('127.0.0.1', port))
+ peers = b'' if port == seed.listen_port() else socket.inet_aton('127.0.0.1') + struct.pack('!H', seed.listen_port())
+ reply = lt.bencode({'interval': 1, 'peers': peers})
+ try:
+ self.send_response(200); self.end_headers(); self.wfile.write(reply)
+ except (BrokenPipeError, ConnectionResetError): pass
+ def log_message(self, *_): pass
+ tracker = http.server.ThreadingHTTPServer(('127.0.0.1', 0), Tracker)
+ threading.Thread(target=tracker.serve_forever, daemon=True).start()
+ files = lt.file_storage()
+ files.add_file('bundle/wanted.bin', len(payload))
+ files.add_file('bundle/skip.bin', len(payload))
+ torrent = lt.create_torrent(files, 16384)
+ torrent.add_tracker(f'http://127.0.0.1:{tracker.server_port}/announce')
+ lt.set_piece_hashes(torrent, str(seed_dir))
+ torrent_path = tmp / 'bundle.torrent'
+ torrent_path.write_bytes(lt.bencode(torrent.generate()))
+ seeding = seed.add_torrent({'ti': lt.torrent_info(str(torrent_path)), 'save_path': str(seed_dir)})
+ wait(lambda: seeding.status().is_seeding, 'seed ready')
+ shim = tmp / 'network.so'
+ subprocess.run(['cc', '-shared', '-fPIC', str(ROOT / 'tests/torrent_network.c'), '-o', str(shim), '-ldl'], check=True)
+ env = dict(os.environ, XDG_RUNTIME_DIR=str(runtime), XDG_STATE_HOME=str(tmp/'state'),
+ XDG_DATA_HOME=str(tmp/'data'), HOME=str(tmp), LD_PRELOAD=str(shim))
+ binary = Path(os.environ.get('REDIWM_TEST_BIN_DIR', ROOT/'zig-out/bin'))/'rediwm-transfers'
+ log = open(tmp/'helper.log', 'w+')
+ helper = None
+ def launch():
+ process = subprocess.Popen([str(binary)], env=env, stdout=log, stderr=log)
+ def ready():
+ if process.poll() is not None: return True
+ try:
+ probe=Client(runtime); probe.close(); return True
+ except (OSError,ConnectionError): return False
+ wait(ready, 'helper startup')
+ assert process.poll() is None, 'helper exited'
+ return process
+ try:
+ helper = launch(); client = Client(runtime)
+ client.send(op='add', source=str(torrent_path), destination=str(dest))
+ rows = client.until(lambda r: r if r else None, 'metadata')
+ row = rows[0]; tid = row['id']
+ assert row['pending'] and row['metadata'] and row['paused'], row
+ assert row['source'] == str(torrent_path) and row['download_directory'] == str(dest)
+ assert all(isinstance(row[k], int) and row[k] >= 0 for k in ('peers', 'known_peers', 'seeds'))
+ wanted = next(f['index'] for f in row['files'] if f['path'].endswith('wanted.bin'))
+ skipped = next(f['path'] for f in row['files'] if f['path'].endswith('skip.bin'))
+ client.send(op='add', source=str(torrent_path), destination=str(dest))
+ client.until(lambda _: 'already' in client.error, 'duplicate rejected')
+ client.send(op='start', id=tid, files=[wanted], ratio=1, limit=131072)
+ client.until(lambda r: r and not r[0]['pending'] and not r[0]['paused'], 'download starts')
+ client.close() # Files exit must not own the session's lifetime.
+ time.sleep(2)
+ assert helper.poll() is None, 'closing Files stopped the torrent'
+ # Recovery of an active transfer after abrupt process death.
+ resume = tmp/'state/rediwm/transfers'/f'{tid}.resume'
+ def saved_selection():
+ if not resume.exists(): return False
+ params = lt.read_resume_data(resume.read_bytes())
+ return not (params.flags & lt.torrent_flags.paused) and params.file_priorities[wanted] > 0 and sum(p > 0 for p in params.file_priorities) == 1
+ wait(saved_selection, 'running selected-file checkpoint')
+ helper.kill(); helper.wait(timeout=5)
+ helper = launch()
+ client = Client(runtime)
+ rows = client.until(lambda r: r if r and r[0]['published'] else None, 'selected download finishes', 50)
+ completed = rows[0]
+ assert (Path(completed['destination'])/'bundle/wanted.bin').read_bytes() == payload
+ assert not (Path(completed['destination'])/skipped).exists(), 'unselected file downloaded'
+ assert not completed['paused'], 'seeding should continue'
+ client.send(op='list')
+ client.send(op='pause', id=tid)
+ client.close() # A queued command must survive an immediate window close.
+ client = Client(runtime)
+ client.until(lambda r: r and r[0]['paused'], 'pause before disconnect')
+ # Once saves and the final active timer drain, every surviving
+ # helper thread sleeps; a visible idle Files window needs no ticks.
+ time.sleep(2.5)
+ def switches():
+ result={}
+ for task in Path(f'/proc/{helper.pid}/task').iterdir():
+ try:
+ values=[int(line.split(':')[1]) for line in (task/'status').read_text().splitlines() if line.startswith(('voluntary_ctxt_switches:', 'nonvoluntary_ctxt_switches:'))]
+ result[task.name]=sum(values)
+ except FileNotFoundError: pass
+ return result
+ before=switches(); time.sleep(1.2); after=switches()
+ deltas={tid:after[tid]-count for tid,count in before.items() if tid in after}
+ assert all(delta==0 for delta in deltas.values()), f'idle thread wakeups: {deltas}'
+ print(f'PASS: idle per-thread context-switch deltas {deltas}')
+ client.close()
+ helper.wait(timeout=12)
+ helper = launch(); client = Client(runtime)
+ rows = client.until(lambda r: r if r else None, 'saved session restored')
+ assert rows[0]['paused'] and rows[0]['published'] and not rows[0]['pending'], rows
+ client.send(op='resume', id=tid)
+ client.until(lambda r: r and not r[0]['paused'], 'resume')
+ client.send(op='stop_seeding')
+ client.until(lambda r: r and r[0]['paused'], 'stop seeding')
+ client.send(op='remove', id=tid)
+ client.until(lambda r: not r, 'remove transfer')
+ assert (Path(completed['destination'])/'bundle/wanted.bin').read_bytes() == payload, 'remove deleted data'
+ # Existing publication folder is never replaced.
+ client.send(op='add', source=str(torrent_path), destination=str(dest))
+ rows = client.until(lambda r: r if r else None, 're-add')
+ storage = Path(rows[0]['storage']); (storage/'bundle').mkdir(exist_ok=True)
+ (storage/'bundle/wanted.bin').write_bytes(payload)
+ client.send(op='start', id=tid, files=[wanted], ratio=0, limit=131072)
+ rows = client.until(lambda r: r if r and 'Destination' in r[0]['error'] else None, 'collision rejected', 50)
+ assert (Path(completed['destination'])/'bundle/wanted.bin').read_bytes() == payload
+ assert rows[0]['paused']
+ client.send(op='remove', id=tid)
+ client.until(lambda r: not r, 'remove second transfer')
+ magnet_dest=tmp/'magnet'; magnet_dest.mkdir()
+ client.send(op='add',source=lt.make_magnet_uri(lt.torrent_info(str(torrent_path))),destination=str(magnet_dest))
+ rows=client.until(lambda r:r if r and r[0]['metadata'] else None,'magnet metadata',30)
+ assert rows[0]['pending'] and rows[0]['done']==0, rows
+ client.send(op='remove',id=rows[0]['id']); client.until(lambda r:not r,'remove magnet')
+ client.close()
+ helper.wait(timeout=12)
+ print('PASS: file selection, real transfer, background lifetime, crash recovery, magnet metadata, seeding, persistence, pause/resume, removal and no-clobber publication')
+ except Exception:
+ log.flush(); log.seek(0); print(log.read(), file=sys.stderr)
+ print('\n'.join(a.message() for a in seed.pop_alerts() if 'peer' in a.what()), file=sys.stderr)
+ raise
+ finally:
+ if helper and helper.poll() is None:
+ helper.terminate()
+ try: helper.wait(timeout=8)
+ except subprocess.TimeoutExpired: helper.kill(); helper.wait()
+ tracker.shutdown(); log.close()
+
+if __name__ == '__main__':
+ if '--private-bus' not in sys.argv:
+ raise SystemExit(subprocess.call(['dbus-run-session', '--', sys.executable, __file__, '--private-bus']))
+ run()
diff --git a/tests/files_transfers_ui.py b/tests/files_transfers_ui.py
new file mode 100644
index 0000000..92b53bb
--- /dev/null
+++ b/tests/files_transfers_ui.py
@@ -0,0 +1,169 @@
+#!/usr/bin/env python3
+"""Files add flow and background tray, on a private headless desktop."""
+import hashlib
+import os
+from pathlib import Path
+import subprocess
+import sys
+import tempfile
+import time
+import libtorrent as lt
+from files_torrents import Client, wait, ROOT
+from ipc_client import IPCClient, spawn_compositor, stop_process
+
+def run():
+ with tempfile.TemporaryDirectory(prefix='rediwm-transfer-ui-') as directory:
+ tmp = Path(directory)
+ home = tmp/'Home'; home.mkdir()
+ torrent = tmp/'example.torrent'
+ torrent.write_bytes(lt.bencode({'info': {'name': 'example.txt', 'length': 5, 'piece length': 16384, 'pieces': hashlib.sha1(b'hello').digest()}}))
+ shim = tmp/'network.so'
+ subprocess.run(['cc','-shared','-fPIC',str(ROOT/'tests/torrent_network.c'),'-o',str(shim),'-ldl'],check=True)
+ env = dict(os.environ, XDG_RUNTIME_DIR=str(tmp), XDG_STATE_HOME=str(tmp/'state'),
+ XDG_DATA_HOME=str(tmp/'data'), XDG_CONFIG_HOME=str(tmp/'config'), HOME=str(home),
+ GIO_USE_VFS='local', REDIWM_FILES_DEVICES='0', REDIWM_APP_SCOPES='0', LD_PRELOAD=str(shim),
+ DBUS_SYSTEM_BUS_ADDRESS='unix:path=/nonexistent-rediwm-test-bus')
+ for key in ('REDIWM_SOCKET', 'WAYLAND_DISPLAY', 'DISPLAY'):
+ env.pop(key, None)
+ binary_dir = Path(os.environ.get('REDIWM_TEST_BIN_DIR', ROOT/'zig-out/bin'))
+ proc, log = spawn_compositor(tmp, binary=binary_dir/'rediwm', env_extra=dict({k:v for k,v in env.items() if k != "LD_PRELOAD"}, REDIWM_FORCE_DBUS='1', WLR_RENDERER_ALLOW_SOFTWARE='1',
+ PULSE_SERVER='unix:/nonexistent-rediwm-test-audio'))
+ files = None; client = None
+ try:
+ # This socket pattern deliberately excludes the transfer service.
+ ipc_path = wait(lambda: next(iter(tmp.glob('rediwm-*.sock')),None),'compositor socket')
+ with IPCClient(ipc_path) as ipc:
+ ipc.wait_for('wallpaper_presented',timeout_ms=10000)
+ display = wait(lambda: next((p.name for p in tmp.glob('wayland-*') if not p.name.endswith('.lock')),None),'Wayland')
+ env['WAYLAND_DISPLAY'] = display
+ files = subprocess.Popen([str(binary_dir/'rediwm-files'),'--torrent',str(torrent)],env=env,stdout=log,stderr=log)
+ def windows(): return [w for w in ipc.get_windows() if w['app_id']=='rediwm-files']
+ win = wait(lambda: next(iter(windows()),None),'Files window')
+ ipc.focus_window(win['id']); ipc.wait_for('window_geometry_settled',window_id=win['id'])
+ wait(lambda: (tmp/'files-transfers.sock').exists(),'helper socket')
+ client = Client(tmp)
+ time.sleep(.3)
+ ipc.key_down_up(28) # Confirm the displayed destination folder.
+ rows = client.until(lambda r: r if r else None,'UI adds torrent')
+ assert rows[0]['pending'] and rows[0]['metadata']
+ rect = ipc.get_window_debug(win['id'])['client_box']
+ width,height = rect['width'],rect['height']
+ bx=(width-min(720,width-24))/2; by=(height-min(560,height-24))/2
+ def pane_click(x,y): ipc.click_at(round(rect['x']+x),round(rect['y']+y)); time.sleep(.15)
+ def click(x,y): pane_click(bx+x,by+y)
+ def title(): return next(w['title'] for w in windows() if w['id'] == win['id'])
+ wait(lambda: title().startswith('Transfers —'),'Transfers uses the main pane')
+ Path('/tmp/rediwm-transfers-list.png').unlink(missing_ok=True)
+ ipc.screenshot(path='/tmp/rediwm-transfers-list.png',window_id=win['id'])
+ pane_click(60,82) # Add torrent is in the ordinary Files toolbar.
+ ipc.key_down_up(1) # Cancel returns to the list.
+ assert title().startswith('Transfers —')
+ pane_click(283,180) # first list row opens its file selection
+ Path('/tmp/rediwm-transfers-files.png').unlink(missing_ok=True)
+ ipc.screenshot(path='/tmp/rediwm-transfers-files.png',window_id=win['id'])
+ click(min(720,width-24)-75,min(560,height-24)-42) # Start download
+ client.until(lambda r: r and not r[0]['pending'] and not r[0]['paused'],'UI starts torrent')
+ ipc.key_down_up(1) # Close details, leaving the transfer list visible.
+ pane_click(290,82) # Stop seeding must preserve an active download.
+ client.until(lambda r: r and not r[0]['paused'],'Stop seeding preserves downloads')
+ pane_click(180,82) # Pause all in the main toolbar.
+ client.until(lambda r: r and r[0]['paused'],'toolbar Pause all')
+ pane_click(283,180)
+ click(76,164) # Resume from transfer details.
+ client.until(lambda r: r and not r[0]['paused'],'resume after toolbar pause')
+ ipc.key_down_up(1)
+ ipc.action('set_window_size', {'id': win['id'], 'width': 360, 'height': 540})
+ ipc.wait_for('window_geometry_settled',window_id=win['id'])
+ rect = ipc.get_window_debug(win['id'])['client_box']
+ pane_click(170,128) # Narrow windows wrap the torrent actions below the view icons.
+ client.until(lambda r: r and r[0]['paused'],'narrow toolbar Pause all')
+ Path('/tmp/rediwm-transfers-narrow.png').unlink(missing_ok=True)
+ ipc.screenshot(path='/tmp/rediwm-transfers-narrow.png',window_id=win['id'])
+ client.send(op='resume',id=rows[0]['id'])
+ client.until(lambda r: r and not r[0]['paused'],'resume after narrow toolbar pause')
+ ipc.action('set_window_size', {'id': win['id'], 'width': width, 'height': height})
+ ipc.wait_for('window_geometry_settled',window_id=win['id'])
+ rect = ipc.get_window_debug(win['id'])['client_box']
+ pane_click(27,28) # Back returns to the previous folder.
+ wait(lambda: not title().startswith('Transfers —'),'Back leaves Transfers')
+ # Grid cards have the same inline controls on their detail line.
+ pane_click(425,227)
+ client.until(lambda r: r and r[0]['paused'],'grid card Pause')
+ pane_click(425,227)
+ client.until(lambda r: r and not r[0]['paused'],'grid card Resume')
+ # Download controls are also available in the destination folder.
+ pane_click(width-233,82) # ordinary Files list view
+ time.sleep(.3)
+ name_right = 228 + (width-208-40-14)*.5 - 4
+ toggle_x, ring_x = name_right-14, name_right-46
+ pane_click(toggle_x,180)
+ client.until(lambda r: r and r[0]['paused'],'folder row Pause')
+ pane_click(toggle_x,180)
+ client.until(lambda r: r and not r[0]['paused'],'folder row Resume')
+ ipc.action('move_cursor', {'x': round(rect['x']+ring_x), 'y': round(rect['y']+180)})
+ time.sleep(.2)
+ Path('/tmp/rediwm-transfers-folder.png').unlink(missing_ok=True)
+ ipc.screenshot(path='/tmp/rediwm-transfers-folder.png',window_id=win['id'])
+ # Keyboard activation on a staging entry opens transfer details.
+ pane_click(280,180)
+ ipc.key_down_up(57)
+ client.until(lambda r: r and r[0]['paused'],'keyboard row Pause')
+ ipc.key_down_up(57)
+ client.until(lambda r: r and not r[0]['paused'],'keyboard row Resume')
+ ipc.key_down_up(28)
+ ipc.key_down_up(1)
+ # The actual .torrent file has the same controls, independent of its destination.
+ ipc.key(29,True); ipc.key_down_up(38); ipc.key(29,False)
+ ipc.type_text(str(tmp)); ipc.key_down_up(28)
+ wait(lambda: title().startswith(tmp.name+' —'),'source folder')
+ ipc.key(29,True); ipc.key_down_up(33); ipc.key(29,False)
+ ipc.type_text('example.torrent'); time.sleep(.3)
+ pane_click(toggle_x,180)
+ client.until(lambda r: r and r[0]['paused'],'source .torrent row Pause')
+ pane_click(toggle_x,180)
+ client.until(lambda r: r and not r[0]['paused'],'source .torrent row Resume')
+ ipc.key(29,True); ipc.key_down_up(38); ipc.key(29,False)
+ ipc.type_text(str(home)); ipc.key_down_up(28)
+ wait(lambda: title().startswith('Home —'),'return to download folder')
+ # The sidebar remains usable while viewing Transfers.
+ # Ten places and a 40px block gap precede Transfers at this height.
+ pane_click(80,532)
+ wait(lambda: title().startswith('Transfers —'),'sidebar reopens Transfers')
+ Path('/tmp/rediwm-transfers-list.png').unlink(missing_ok=True)
+ ipc.screenshot(path='/tmp/rediwm-transfers-list.png',window_id=win['id'])
+ def icons(): return ipc.get_shell_state()['taskbars'][0]['app_tray']
+ wait(lambda: len(icons())==1,'active transfer tray icon')
+ ipc.close_window(win['id']); files.wait(timeout=8)
+ client.until(lambda r: r and not r[0]['paused'],'transfer survives Files closing')
+ icon=icons()[0]['box']
+ ipc.click_at(icon['x']+icon['width']//2,icon['y']+icon['height']//2)
+ reopened = wait(lambda: next(iter(windows()),None),'tray reopens Files')
+ ipc.wait_for('window_geometry_settled',window_id=reopened['id'])
+ icon=icons()[0]['box']
+ ipc.click_at(icon['x']+icon['width']//2,icon['y']+icon['height']//2,0x111)
+ menu=wait(lambda: ipc.get_shell_state()['taskbars'][0]['tray_menu'],'tray menu')
+ ipc.click_at(menu['x']+80,menu['y']+8+30+15) # Pause all
+ client.until(lambda r: r and r[0]['paused'],'tray Pause all')
+ wait(lambda: not icons(),'paused transfers hide tray icon')
+ client.send(op='remove',id=rows[0]['id']); client.until(lambda r:not r,'cleanup transfer')
+ ipc.close_window(reopened['id']); wait(lambda:not windows(),'reopened Files closes')
+ print('PASS: main-pane Transfers, folder and source row pause/resume, hover details, narrow layout, file selection, start and background tray')
+ except Exception:
+ print((tmp/"compositor.log").read_text(), file=sys.stderr)
+ raise
+ finally:
+ if client:
+ try:
+ client.send(op='pause_all')
+ client.until(lambda r:all(t['paused'] for t in r),'cleanup pauses work',5)
+ except (OSError,AssertionError): pass
+ client.close()
+ if files: stop_process(files)
+ stop_process(proc); log.close()
+ # Helper exits after its final subscriber leaves, with no active work.
+ wait(lambda:not (tmp/'files-transfers.sock').exists(),'helper exits',12)
+
+if __name__=='__main__':
+ if '--private-bus' not in sys.argv:
+ raise SystemExit(subprocess.call(['dbus-run-session','--',sys.executable,__file__,'--private-bus']))
+ run()
diff --git a/tests/i18n.py b/tests/i18n.py
new file mode 100755
index 0000000..30d524a
--- /dev/null
+++ b/tests/i18n.py
@@ -0,0 +1,140 @@
+#!/usr/bin/env python3
+"""Language reloads, desktop-entry names and pseudo-locale widget bounds."""
+import json
+import os
+from pathlib import Path
+import tempfile
+import time
+
+from ipc_client import IPCClient, spawn_compositor, stop_process
+from ui_driver import UIDriver
+
+
+def isolated_environment(tmp):
+ """Keep catalogs, launch history, app settings and services off the host."""
+ result = {"DBUS_SESSION_BUS_ADDRESS": "", "REDIWM_FILES_DEVICES": "0"}
+ for name, key in (("home", "HOME"), ("data", "XDG_DATA_HOME"),
+ ("config", "XDG_CONFIG_HOME"), ("cache", "XDG_CACHE_HOME"),
+ ("state", "XDG_STATE_HOME")):
+ (tmp / name).mkdir(exist_ok=True)
+ result[key] = str(tmp / name)
+ result["XDG_DATA_DIRS"] = str(tmp / "data")
+ result["XDG_CONFIG_DIRS"] = str(tmp / "config")
+ return result
+
+
+def overflow_issues(widgets):
+ """Return labelled, visible widgets whose measured text exceeds their box."""
+ issues = []
+ for widget in widgets:
+ if not widget.get("label") or not widget.get("visible"):
+ continue
+ width = widget.get("text_width")
+ box_width = widget.get("box", {}).get("width", 0)
+ # Synthetic hit targets carry accessibility labels rather than painted
+ # text. Their width is null; measured retained labels are the gate.
+ if width is not None and width > box_width + 0.5:
+ issues.append({"path": widget.get("path"), "name": widget.get("name"),
+ "label": widget["label"], "text_width": width,
+ "box_width": box_width, "clipped": widget.get("clipped", False),
+ "reason": "text exceeds widget"})
+ return issues
+
+
+def run():
+ with tempfile.TemporaryDirectory(prefix="rediwm-i18n-") as directory:
+ tmp = Path(directory)
+ env = isolated_environment(tmp)
+ # Explicit region language must win over every inherited locale hint.
+ env.update(LANG="de_DE.UTF-8", LC_MESSAGES="fr_FR.UTF-8", LC_ALL="C", LANGUAGE="es")
+ applications = tmp / "data/applications"
+ applications.mkdir()
+ (applications / "rediwm-i18n-fixture.desktop").write_text(
+ "[Desktop Entry]\nType=Application\nName=Language fixture\n"
+ "Name[de]=Prüfprogramm\nName[pt_BR]=Aplicativo de teste\n"
+ "Exec=/bin/true\nIcon=application-x-executable\n", encoding="utf-8")
+
+ def config(language):
+ return ('[compositor]\nxwayland = false\n[animations]\nenabled = false\n'
+ '[polkit]\nenable = false\n[region]\n'
+ f'language = {json.dumps(language)}\nformats = "C"\n')
+
+ process, log = spawn_compositor(tmp, config_content=config("C"), env_extra=env)
+ try:
+ with IPCClient(tmp, timeout=15) as ipc:
+ ipc.wait_for("wallpaper_presented", timeout_ms=10000)
+ ipc.wait_for("catalog_published", timeout_ms=10000)
+ ui = UIDriver(ipc)
+
+ def labels(panel):
+ return [w["label"] for w in ui.widgets(panel) if w.get("label")]
+
+ def reload(language):
+ (tmp / "rediwm-config.toml").write_text(config(language))
+ ipc.reload_config()
+ ipc.wait_for_frame()
+
+ def application_name(expected):
+ ipc.action("open_start_menu")
+ deadline = time.monotonic() + 10
+ while expected not in labels("start_menu"):
+ if time.monotonic() >= deadline:
+ raise AssertionError((expected, labels("start_menu")))
+ ipc.wait_for_frame()
+ time.sleep(.05)
+ ui.wait_settled("start_menu")
+ ipc.key_down_up(1)
+ ui.wait_absent("start_menu")
+
+ application_name("Language fixture")
+ reload("de_DE.UTF-8")
+ application_name("Prüfprogramm")
+ reload("pt_BR.UTF-8")
+ application_name("Aplicativo de teste")
+ reload("C")
+ application_name("Language fixture")
+
+ ipc.action("open_power_menu")
+ ui.wait_settled("power_menu")
+ assert "Lock" in labels("power_menu")
+ english_paths = {w["name"]: w["path"] for w in ui.widgets("power_menu") if w.get("name")}
+ reload("qps")
+ ui.wait_settled("power_menu")
+ pseudo = ui.widgets("power_menu")
+ assert any(w.get("text_width", 0) for w in pseudo), "widget text measurements unavailable"
+ assert "Lock" not in labels("power_menu"), "open menu kept the old language"
+ assert english_paths == {w["name"]: w["path"] for w in pseudo if w.get("name")}, "language changed stable widget names"
+ issues = overflow_issues(pseudo)
+ assert not issues, json.dumps(issues, ensure_ascii=False, indent=2)
+ reload("C")
+ ui.wait_settled("power_menu")
+ assert "Lock" in labels("power_menu"), "English did not return after pseudo-locale"
+ ipc.key_down_up(1)
+ ui.wait_absent("power_menu")
+
+ ipc.action("open_control_center")
+ ui.wait_settled("control_center")
+ settings = next(w for w in ipc.get_windows() if w.get("app_id") == "rediwm-settings")
+ assert settings["title"] == "RediWM Settings"
+ reload("qps")
+ ui.wait_settled("control_center")
+ updated = next(w for w in ipc.get_windows() if w["id"] == settings["id"])
+ assert updated["title"] != settings["title"], "shell title kept the old language"
+ assert ui.find("settings_search", panel="control_center")["label"] != "Search settings…", "retained field kept the old placeholder"
+ reload("C")
+ ui.wait_settled("control_center")
+ updated = next(w for w in ipc.get_windows() if w["id"] == settings["id"])
+ assert updated["title"] == "RediWM Settings"
+ ipc.close_window(settings["id"])
+ ui.wait_absent("control_center")
+ print("PASS: explicit language precedence, desktop-name/cache reloads, live shell titles/placeholders, qps labels and measured bounds")
+ except Exception:
+ print((tmp / "compositor.log").read_text()[-5000:])
+ raise
+ finally:
+ stop_process(process)
+ log.close()
+
+
+if __name__ == "__main__":
+ run()
diff --git a/tests/input_protocols.py b/tests/input_protocols.py
index c728954..97efabe 100644
--- a/tests/input_protocols.py
+++ b/tests/input_protocols.py
@@ -294,6 +294,17 @@ def run():
assert app.text().count("app-key 20 1\n") == before, "Russian layout lost Super+t"
ime.send("layout-text"); app.expect("app-sym Cyrillic_ie\n")
original_config = (tmp / "config.toml").read_text()
+ # A single Cyrillic layout has no Latin group. Compositor bindings
+ # still use Latin letters while ordinary client text stays Cyrillic.
+ for layout in ("ru", "ua"):
+ (tmp / "config.toml").write_text(original_config + f'[input]\nxkb_layout = "{layout}"\n')
+ action('reload_config')
+ before = app.text().count("app-key 20 1\n")
+ ime.send("layout-shortcut"); app.send("sync")
+ assert app.text().count("app-key 20 1\n") == before, f"{layout}-only layout lost Super+t"
+ before_text = app.text().count("app-sym Cyrillic_ie\n")
+ ime.send("layout-text"); app.send("sync")
+ assert app.text().count("app-sym Cyrillic_ie\n") > before_text, f"{layout}-only shortcut fallback changed client text"
(tmp / "config.toml").write_text(original_config + '[input]\nxkb_layout = "us"\n')
action('reload_config')
ime.send("layout-us"); app.send("sync")
diff --git a/tests/polkit.py b/tests/polkit.py
index 6f4bdb9..4afb3b6 100644
--- a/tests/polkit.py
+++ b/tests/polkit.py
@@ -530,14 +530,20 @@ def config_conversations(authority):
begin('A'); status(child, 'prompt'); begin('B')
call(authority.conn, name, AGENT_PATH, AGENT_IFACE, 'CancelAuthentication', '(s)', ('unknown',))
child.stdin.write(b't'); status(child, 'configured')
+ language_mark = len(events)
+ child.stdin.write(b'l'); status(child, 'locale')
+ assert not any(e['method'] == 'UnregisterAuthenticationAgent' and e['sender'] == name for e in events[language_mark:])
child.stdin.write(b'a'); status(child, 'error-message'); status(child, 'prompt')
child.stdin.write(b'a'); done('A'); status(child, 'success'); status(child, 'prompt')
child.stdin.write(b'a'); done('B'); status(child, 'success')
old.finish()
+ assert wait_event('RegisterAuthenticationAgent', language_mark)['args'][1] == 'de_DE.UTF-8'
+ status(child, 'registered')
begin('C'); status(child, 'prompt')
+ disable_mark = len(events)
child.stdin.write(b'x'); status(child, 'configured')
expect_error(authority.conn, name, 'BeginAuthentication', BEGIN_SIGNATURE, begin_args(), AUTH + '.Error.Cancelled')
- assert not any(e['method'] == 'UnregisterAuthenticationAgent' and e['sender'] == name for e in events[start:])
+ assert not any(e['method'] == 'UnregisterAuthenticationAgent' and e['sender'] == name for e in events[disable_mark:])
mark = len(events)
child.stdin.write(b'a'); done('C'); status(child, 'success'); new.finish()
assert wait_event('UnregisterAuthenticationAgent', mark)['sender'] == name
@@ -566,6 +572,15 @@ def main():
assert registration['args'] == (('unix-session', {'session-id': 'test-session'}), 'C', AGENT_PATH)
status(child, 'registered')
name = registration['sender']
+ # A language change re-registers this same unprivileged connection.
+ mark = len(events)
+ child.stdin.write(b'l')
+ status(child, 'locale')
+ assert wait_event('UnregisterAuthenticationAgent', mark)['sender'] == name
+ changed = wait_event('RegisterAuthenticationAgent', mark)
+ assert changed['sender'] == name
+ assert changed['args'][1] == 'de_DE.UTF-8'
+ status(child, 'registered')
names = call(observer, BUS, BUS_PATH, BUS, 'ListNames').unpack()[0]
for owned in names:
if owned.startswith(':') or owned == BUS:
diff --git a/tests/power_menu.py b/tests/power_menu.py
index 4a852fb..121aa6b 100644
--- a/tests/power_menu.py
+++ b/tests/power_menu.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Power-menu selection motion and cancellation in an isolated headless session.
+"""Power-menu blur dismissal, selection motion and cancellation in isolation.
Only Log Out is exercised: completing it terminates this test's compositor.
No host lock, restart or shutdown actions are invoked.
@@ -13,11 +13,77 @@ from PIL import Image, ImageChops
from ipc_client import IPCClient, spawn_compositor, stop_process
+def closing_blur(scale):
+ with tempfile.TemporaryDirectory(prefix="rediwm-power-blur-") as directory:
+ tmp = Path(directory)
+ wallpaper = tmp / "checker.png"
+ image = Image.new("RGB", (256, 256))
+ image.putdata([(220,) * 3 if (x // 4 + y // 4) % 2 else (40,) * 3
+ for y in range(256) for x in range(256)])
+ image.save(wallpaper)
+ process, log = spawn_compositor(tmp, scale=scale,
+ config_content=f'[compositor]\nwallpaper = "{wallpaper}"\n',
+ env_extra={"DBUS_SESSION_BUS_ADDRESS": "", "XDG_CACHE_HOME": directory})
+ try:
+ with IPCClient(tmp, timeout=15) as ipc:
+ ipc.wait_for("wallpaper_presented", timeout_ms=10000)
+ ipc.move_cursor(2, 2)
+
+ def at(ms):
+ ipc.action('set_anim_time', {"ms": ms})
+ ipc.wait_for_frame()
+
+ def capture(name):
+ path = tmp / f"{name}.png"
+ ipc.screenshot(str(path))
+ with Image.open(path) as image:
+ return image.convert("RGB")
+
+ at(1000)
+ closed = capture("closed")
+ ipc.action('open_power_menu')
+ at(2000)
+ box = ipc.get_shell_state()["power_menu"]["box"]
+ s = float(scale)
+ patch = tuple(round(v * s) for v in (
+ box["x"] + box["width"] / 2 - 50,
+ box["y"] + box["height"] / 2 - 30,
+ box["x"] + box["width"] / 2 + 50,
+ box["y"] + box["height"] / 2 + 30))
+ reference = closed.crop(patch)
+ assert ImageChops.difference(reference, capture("open").crop(patch)).getbbox()
+ ipc.key_down_up(1)
+ # The panel spring is nearly transparent after 300 ms, but
+ # still alive. Its blur must fade too, rather than remaining
+ # solid until the menu is destroyed at the spring's endpoint.
+ at(2300)
+ assert ipc.get_shell_state()["power_menu"] is not None
+ diff = ImageChops.difference(reference, capture("closing").crop(patch))
+ assert max(hi for lo, hi in diff.getextrema()) <= 3, "blur outlived panel fade"
+ at(3000)
+ assert ipc.get_shell_state()["power_menu"] is None
+ diff = ImageChops.difference(reference, capture("dismissed").crop(patch))
+ assert max(hi for lo, hi in diff.getextrema()) <= 1, "dismissal left stale pixels"
+ print(f"PASS: power-menu blur fades with the panel at scale {scale}")
+ except Exception:
+ log.flush()
+ print(Path(log.name).read_text()[-3000:])
+ raise
+ finally:
+ stop_process(process)
+ log.close()
+
+
def run(scale):
with tempfile.TemporaryDirectory(prefix="rediwm-power-test-") as directory:
tmp = Path(directory)
+ # A neutral backdrop keeps the tint checks independent of blur and
+ # saturation changing the default wallpaper's colors.
+ wallpaper = tmp / "wallpaper.png"
+ Image.new("RGB", (64, 64), (128, 128, 128)).save(wallpaper)
process, log = spawn_compositor(tmp, scale=scale,
- config_content='[theme]\nwindow_bg = "rgba(24,30,40,0.70)"\n', env_extra={
+ config_content=f'[compositor]\nwallpaper = "{wallpaper}"\n'
+ '[theme]\nwindow_bg = "rgba(24,30,40,0.70)"\n', env_extra={
"DBUS_SESSION_BUS_ADDRESS": "", "XDG_CACHE_HOME": directory,
})
try:
@@ -154,4 +220,6 @@ def run(scale):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--scale", default="1")
- run(parser.parse_args().scale)
+ scale = parser.parse_args().scale
+ closing_blur(scale)
+ run(scale)
diff --git a/tests/printers.py b/tests/printers.py
index 1414906..ace2aaa 100644
--- a/tests/printers.py
+++ b/tests/printers.py
@@ -449,8 +449,8 @@ def run(scale):
scheduler.release.set()
refresh()
- # Global search replaces the body while Printers stays selected.
- # Its worker and CUPS activity must stop until results are cleared.
+ # Global search navigates to Audio. Clearing it keeps that page;
+ # the printer worker stays stopped until Printers is selected again.
click('settings_search')
ipc.type_text('volume')
ui.wait_settled('control_center')
@@ -460,8 +460,11 @@ def run(scale):
assert len(scheduler.calls()) == count, 'global search must not retain CUPS activity'
ipc.key_press('Escape')
ui.wait_settled('control_center')
+ assert named('audio')['selected'], 'clearing search must keep the current page'
+ assert not printer_workers(process), 'clearing search must not restart a hidden printer worker'
+ click('printers')
ready()
- wait_for(lambda: len(printer_workers(process)) == 1, 'printer worker after clearing search')
+ wait_for(lambda: len(printer_workers(process)) == 1, 'printer worker after returning to Printers')
# Leaving the page must cancel an outstanding socket deadline.
scheduler.release.clear()
diff --git a/tests/torrent_network.c b/tests/torrent_network.c
new file mode 100644
index 0000000..c0aa04b
--- /dev/null
+++ b/tests/torrent_network.c
@@ -0,0 +1,89 @@
+/* Noninstalled fixture: prevent the real torrent engine from contacting any
+ * non-loopback peer, tracker or discovery service during integration tests. */
+#define _GNU_SOURCE
+#include <dlfcn.h>
+#include <errno.h>
+#include <netinet/in.h>
+#include <string.h>
+#include <sys/socket.h>
+static int local(const struct sockaddr *a) {
+ if (!a || a->sa_family == AF_UNIX)
+ return 1;
+ if (a->sa_family == AF_INET)
+ return (ntohl(((const struct sockaddr_in *)a)->sin_addr.s_addr) >> 24) ==
+ 127;
+ if (a->sa_family == AF_INET6)
+ return IN6_IS_ADDR_LOOPBACK(&((const struct sockaddr_in6 *)a)->sin6_addr);
+ return 0;
+}
+int connect(int fd, const struct sockaddr *a, socklen_t n) {
+ if (!local(a)) {
+ errno = ENETUNREACH;
+ return -1;
+ }
+ int (*real)(int, const struct sockaddr *, socklen_t) =
+ dlsym(RTLD_NEXT, "connect");
+ return real(fd, a, n);
+}
+int bind(int fd, const struct sockaddr *a, socklen_t n) {
+ struct sockaddr_storage copy;
+ if (n > sizeof copy) {
+ errno = EINVAL;
+ return -1;
+ }
+ memcpy(&copy, a, n);
+ if (a->sa_family == AF_INET)
+ ((struct sockaddr_in *)&copy)->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
+ if (a->sa_family == AF_INET6)
+ ((struct sockaddr_in6 *)&copy)->sin6_addr = in6addr_loopback;
+ int (*real)(int, const struct sockaddr *, socklen_t) =
+ dlsym(RTLD_NEXT, "bind");
+ return real(fd, (const struct sockaddr *)&copy, n);
+}
+ssize_t sendto(int fd, const void *p, size_t n, int f, const struct sockaddr *a,
+ socklen_t l) {
+ if (!local(a)) {
+ errno = ENETUNREACH;
+ return -1;
+ }
+ ssize_t (*real)(int, const void *, size_t, int, const struct sockaddr *,
+ socklen_t) = dlsym(RTLD_NEXT, "sendto");
+ return real(fd, p, n, f, a, l);
+}
+ssize_t sendmsg(int fd, const struct msghdr *m, int f) {
+ if (!local(m->msg_name)) {
+ errno = ENETUNREACH;
+ return -1;
+ }
+ ssize_t (*real)(int, const struct msghdr *, int) =
+ dlsym(RTLD_NEXT, "sendmsg");
+ return real(fd, m, f);
+}
+int sendmmsg(int fd, struct mmsghdr *m, unsigned int n, int f) {
+ for (unsigned int i = 0; i < n; i++)
+ if (!local(m[i].msg_hdr.msg_name)) {
+ errno = ENETUNREACH;
+ return -1;
+ }
+ int (*real)(int, struct mmsghdr *, unsigned int, int) =
+ dlsym(RTLD_NEXT, "sendmmsg");
+ return real(fd, m, n, f);
+}
+int setsockopt(int fd, int level, int option, const void *value,
+ socklen_t size) {
+ int (*real)(int, int, int, const void *, socklen_t) =
+ dlsym(RTLD_NEXT, "setsockopt");
+ if (level == SOL_SOCKET && option == SO_BINDTODEVICE)
+ return real(fd, level, option, "lo", 3);
+ return real(fd, level, option, value, size);
+}
+#include <netdb.h>
+int getaddrinfo(const char *name, const char *service,
+ const struct addrinfo *hints, struct addrinfo **result) {
+ if (name && strcmp(name, "localhost") && strcmp(name, "::1") &&
+ strncmp(name, "127.", 4))
+ return EAI_NONAME;
+ int (*real)(const char *, const char *, const struct addrinfo *,
+ struct addrinfo **) = dlsym(RTLD_NEXT, "getaddrinfo");
+ return real(name, service, hints, result);
+}
diff --git a/tools/generate_fold.py b/tools/generate_fold.py
new file mode 100644
index 0000000..e5ef4dc
--- /dev/null
+++ b/tools/generate_fold.py
@@ -0,0 +1,106 @@
+#!/usr/bin/env python3
+"""Regenerate the checked-in, offline search-fold table (Unicode 16.0.0).
+
+ python3 tools/generate_fold.py > src/ui/fold_data.zig
+
+Python's bundled Unicode database is the default input. To use downloaded UCD
+files instead, pass --unicode-data UnicodeData.txt --case-folding CaseFolding.txt
+--version VERSION. Ordinary builds only read the checked-in Zig file.
+"""
+
+import argparse
+from pathlib import Path
+import unicodedata as ucd
+
+
+SCRIPT_RANGES = (
+ (0x0041, 0x024F), (0x0370, 0x052F), (0x1D00, 0x1DBF),
+ (0x1E00, 0x1FFF), (0x2C60, 0x2C7F), (0xA640, 0xA69F),
+ (0xA720, 0xA7FF), (0xAB30, 0xAB6F),
+)
+EXTRAS = {ord(a): b for a, b in (
+ ("ł", "l"), ("ø", "o"), ("ß", "ss"), ("æ", "ae"), ("œ", "oe"),
+)}
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--unicode-data", type=Path)
+ parser.add_argument("--case-folding", type=Path)
+ parser.add_argument("--version", default=ucd.unidata_version)
+ args = parser.parse_args()
+ if bool(args.unicode_data) != bool(args.case_folding):
+ parser.error("supply both UnicodeData.txt and CaseFolding.txt")
+
+ records = {}
+ folds = {}
+ if args.unicode_data:
+ for line in args.unicode_data.read_text().splitlines():
+ row = line.split(";")
+ records[int(row[0], 16)] = row
+ for line in args.case_folding.read_text().splitlines():
+ row = line.split("#", 1)[0].split(";")
+ if len(row) >= 3 and row[1].strip() in ("C", "S"):
+ folds[int(row[0], 16)] = int(row[2].strip(), 16)
+
+ def combining(cp):
+ return int(records.get(cp, ["", "", "", "0"])[3]) if records else ucd.combining(chr(cp))
+
+ def simple_fold(cp):
+ if records:
+ return folds.get(cp, cp)
+ folded = chr(cp).casefold()
+ if len(folded) == 1:
+ return ord(folded)
+ lower = chr(cp).lower()
+ return ord(lower) if len(lower) == 1 else cp
+
+ def decompose(cp):
+ if not records:
+ return map(ord, ucd.normalize("NFD", chr(cp)))
+ row = records.get(cp)
+ decomposition = row[5] if row else ""
+ if not decomposition or decomposition.startswith("<"):
+ return [cp]
+ return [child for part in decomposition.split() for child in decompose(int(part, 16))]
+
+ table = []
+ for start, end in SCRIPT_RANGES:
+ for cp in range(start, end + 1):
+ # Only the named scripts are folded; punctuation and other scripts
+ # sharing a block pass through unchanged.
+ name = records.get(cp, ["", ""])[1] if records else ucd.name(chr(cp), "")
+ if not name.startswith(("LATIN ", "GREEK ", "CYRILLIC ")):
+ continue
+ folded = simple_fold(cp)
+ result = EXTRAS.get(folded)
+ if result is None:
+ result = "".join(chr(simple_fold(c)) for c in decompose(folded) if not combining(c))
+ if result != chr(cp):
+ assert 1 <= len(result) <= 2, (hex(cp), result)
+ table.append((cp, [ord(c) for c in result]))
+
+ marks = []
+ for cp in range(0x110000):
+ if combining(cp):
+ if marks and cp == marks[-1][1] + 1:
+ marks[-1][1] = cp
+ else:
+ marks.append([cp, cp])
+
+ print("// Generated by tools/generate_fold.py; do not edit.")
+ print(f'pub const unicode_version = "{args.version}";')
+ print("pub const Mapping = packed struct(u64) { from: u21, first: u21, second: u21 = 0, padding: u1 = 0 };")
+ print("pub const mappings = [_]Mapping{")
+ for cp, result in table:
+ second = f", .second = 0x{result[1]:x}" if len(result) == 2 else ""
+ print(f" .{{ .from = 0x{cp:x}, .first = 0x{result[0]:x}{second} }},")
+ print("};")
+ print("pub const combining = [_][2]u21{")
+ for start, end in marks:
+ print(f" .{{ 0x{start:x}, 0x{end:x} }},")
+ print("};")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tools/i18n.zig b/tools/i18n.zig
new file mode 100644
index 0000000..49aceab
--- /dev/null
+++ b/tools/i18n.zig
@@ -0,0 +1,623 @@
+//! Offline PO extraction, validation and compilation. English sources stay in Zig.
+const std = @import("std");
+const A = std.heap.page_allocator;
+const Entry = struct {
+ context: []const u8 = "",
+ id: []const u8 = "",
+ plural: []const u8 = "",
+ forms: [3][]const u8 = .{ "", "", "" },
+ count: usize = 0,
+ seen_forms: u8 = 0,
+ fuzzy: bool = false,
+ note: []const u8 = "",
+};
+const List = std.ArrayList(Entry);
+var io: std.Io = undefined;
+
+pub fn main(init: std.process.Init) !void {
+ io = init.io;
+ const args = init.minimal.args.vector;
+ if (args.len < 2) return error.ExpectedCommand;
+ const command = std.mem.span(args[1]);
+ if (std.mem.eql(u8, command, "compile")) {
+ if (args.len < 3) return error.ExpectedOutput;
+ try compile(std.mem.span(args[2]));
+ return;
+ }
+ if (std.mem.eql(u8, command, "data")) {
+ if (args.len < 4) return error.ExpectedDataPaths;
+ try generateData(try catalogs(), std.mem.span(args[2]), std.mem.span(args[3]));
+ return;
+ }
+ var source: List = .empty;
+ try scan("src", &source);
+ try dataEntries(&source);
+ std.mem.sort(Entry, source.items, {}, less);
+ if (std.mem.eql(u8, command, "extract")) {
+ try writePot(source.items);
+ } else if (std.mem.eql(u8, command, "check")) {
+ const pot = try readPo("po/rediwm.pot");
+ if (!sameSources(source.items, pot.items)) return error.StaleTemplateRunI18nExtract;
+ try checkCatalogs(source.items);
+ } else if (std.mem.eql(u8, command, "lint")) {
+ // Converted files opt in individually; protocol/id literals are deliberately excluded.
+ const paths = read("po/lint-files") catch "";
+ var lines = std.mem.tokenizeAny(u8, paths, "\n\r");
+ while (lines.next()) |path| try lint(path);
+ } else return error.UnknownCommand;
+}
+
+fn read(path: []const u8) ![]const u8 {
+ return std.Io.Dir.cwd().readFileAlloc(io, path, A, .limited(16 * 1024 * 1024));
+}
+fn write(path: []const u8, bytes: []const u8) !void {
+ try std.Io.Dir.cwd().writeFile(io, .{ .sub_path = path, .data = bytes });
+}
+fn quoted(bytes: []const u8) ![]const u8 {
+ var w = std.Io.Writer.Allocating.init(A);
+ try w.writer.writeByte('"');
+ for (bytes) |ch| switch (ch) {
+ '\\' => try w.writer.writeAll("\\\\"),
+ '"' => try w.writer.writeAll("\\\""),
+ '\n' => try w.writer.writeAll("\\n"),
+ '\r' => try w.writer.writeAll("\\r"),
+ '\t' => try w.writer.writeAll("\\t"),
+ else => try w.writer.writeByte(ch),
+ };
+ try w.writer.writeByte('"');
+ return w.toOwnedSlice();
+}
+fn unquote(value: []const u8) ![]const u8 {
+ const trimmed = std.mem.trim(u8, value, " \t\r");
+ if (trimmed.len < 2 or trimmed[0] != '"' or trimmed[trimmed.len - 1] != '"') return error.InvalidPoString;
+ // PO and Zig have the same escapes for the strings accepted here.
+ return std.zig.string_literal.parseAlloc(A, trimmed);
+}
+fn same(a: Entry, b: Entry) bool {
+ return std.mem.eql(u8, a.id, b.id) and std.mem.eql(u8, a.context, b.context);
+}
+fn less(_: void, a: Entry, b: Entry) bool {
+ const order = std.mem.order(u8, a.context, b.context);
+ return if (order == .eq) std.mem.lessThan(u8, a.id, b.id) else order == .lt;
+}
+fn add(list: *List, entry: Entry) !void {
+ if (entry.id.len == 0) return;
+ for (list.items) |*old| if (same(old.*, entry)) {
+ if (!std.mem.eql(u8, old.plural, entry.plural)) return error.ConflictingPlural;
+ return;
+ };
+ try list.append(A, entry);
+}
+
+fn scan(path: []const u8, list: *List) anyerror!void {
+ var dir = try std.Io.Dir.cwd().openDir(io, path, .{ .iterate = true });
+ defer dir.close(io);
+ var names: std.ArrayList(struct { name: []const u8, directory: bool }) = .empty;
+ var it = dir.iterate();
+ while (try it.next(io)) |entry| {
+ if (entry.kind == .directory or (entry.kind == .file and std.mem.endsWith(u8, entry.name, ".zig") and !std.mem.endsWith(u8, entry.name, "tests.zig"))) try names.append(A, .{ .name = try A.dupe(u8, entry.name), .directory = entry.kind == .directory });
+ }
+ std.mem.sort(@TypeOf(names.items[0]), names.items, {}, struct {
+ fn lt(_: void, left: @TypeOf(names.items[0]), right: @TypeOf(names.items[0])) bool {
+ return std.mem.lessThan(u8, left.name, right.name);
+ }
+ }.lt);
+ for (names.items) |entry| {
+ const next = try std.fmt.allocPrint(A, "{s}/{s}", .{ path, entry.name });
+ if (std.mem.eql(u8, next, "src/i18n")) continue;
+ if (entry.directory) try scan(next, list) else try extract(next, list);
+ }
+}
+
+fn extract(path: []const u8, list: *List) !void {
+ const source = try A.dupeZ(u8, try read(path));
+ var tree = try std.zig.Ast.parse(A, source, .zig);
+ defer tree.deinit(A);
+ const tags = tree.tokens.items(.tag);
+ var i: u32 = 0;
+ var test_depth: usize = 0;
+ var pending_test = false;
+ while (i + 3 < tags.len) : (i += 1) {
+ if (tags[i] == .keyword_test) pending_test = true;
+ if (tags[i] == .l_brace) {
+ if (pending_test or test_depth != 0) test_depth += 1;
+ pending_test = false;
+ }
+ if (tags[i] == .r_brace and test_depth != 0) {
+ test_depth -= 1;
+ continue;
+ }
+ if (test_depth != 0 or tags[i] != .identifier or tags[i + 1] != .l_paren or (i > 0 and tags[i - 1] == .keyword_fn)) continue;
+ const name = tree.tokenSlice(i);
+ const context = std.mem.eql(u8, name, "trc") or std.mem.eql(u8, name, "trnc");
+ const plural = std.mem.eql(u8, name, "trn") or std.mem.eql(u8, name, "trnc");
+ if (!context and !plural and !std.mem.eql(u8, name, "tr") and !std.mem.eql(u8, name, "trZ") and !std.mem.eql(u8, name, "msg")) continue;
+ if (tags[i + 2] != .string_literal) {
+ std.debug.print("{s}: {s} requires an extractable string literal\n", .{ path, name });
+ return error.ExpectedLiteral;
+ }
+ var e: Entry = .{ .note = path };
+ var token = i + 2;
+ if (context) {
+ e.context = try unquote(tree.tokenSlice(token));
+ token += 2;
+ if (token >= tags.len or tags[token] != .string_literal) return error.ExpectedLiteral;
+ }
+ e.id = try unquote(tree.tokenSlice(token));
+ if (plural) {
+ token += 2;
+ if (token >= tags.len or tags[token] != .string_literal) return error.ExpectedLiteral;
+ e.plural = try unquote(tree.tokenSlice(token));
+ }
+ // Nearby translator comments travel with the template.
+ const start = tree.tokens.items(.start)[i];
+ const before = source[start -| 350..start];
+ if (std.mem.lastIndexOf(u8, before, "// i18n:")) |note| {
+ const text = before[note + 8 ..];
+ e.note = try std.fmt.allocPrint(A, "{s}\n#. {s}", .{ path, text[0 .. std.mem.indexOfScalar(u8, text, '\n') orelse text.len] });
+ }
+ try add(list, e);
+ }
+}
+
+fn dataEntries(list: *List) !void {
+ var dir = try std.Io.Dir.cwd().openDir(io, "data", .{ .iterate = true });
+ defer dir.close(io);
+ var it = dir.iterate();
+ while (try it.next(io)) |file| {
+ if (file.kind != .file or !std.mem.endsWith(u8, file.name, ".desktop")) continue;
+ const path = try std.fmt.allocPrint(A, "data/{s}", .{file.name});
+ var lines = std.mem.splitScalar(u8, try read(path), '\n');
+ while (lines.next()) |line| {
+ const eq = std.mem.indexOfScalar(u8, line, '=') orelse continue;
+ const key = line[0..eq];
+ for ([_][]const u8{ "Name", "GenericName", "Comment", "Keywords" }) |field| if (std.mem.eql(u8, key, field)) {
+ try add(list, .{ .context = try std.fmt.allocPrint(A, "desktop:{s}", .{key}), .id = line[eq + 1 ..], .note = path });
+ };
+ }
+ }
+ const policy = try read("data/org.rediwm.accounts.policy");
+ var pos: usize = 0;
+ while (std.mem.indexOfPos(u8, policy, pos, "<message>")) |start| {
+ const end = std.mem.indexOfPos(u8, policy, start, "</message>") orelse return error.InvalidPolicy;
+ try add(list, .{ .context = "polkit", .id = policy[start + 9 .. end], .note = "data/org.rediwm.accounts.policy" });
+ pos = end + 10;
+ }
+}
+
+fn writePot(entries: []const Entry) !void {
+ var w = std.Io.Writer.Allocating.init(A);
+ try w.writer.writeAll("# RediWM UI messages. Generated by zig build i18n-extract.\nmsgid \"\"\nmsgstr \"\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\n");
+ for (entries) |e| {
+ try w.writer.print("#: {s}\n", .{e.note});
+ if (e.context.len != 0) try w.writer.print("msgctxt {s}\n", .{try quoted(e.context)});
+ try w.writer.print("msgid {s}\n", .{try quoted(e.id)});
+ if (e.plural.len != 0) try w.writer.print("msgid_plural {s}\nmsgstr[0] \"\"\nmsgstr[1] \"\"\n\n", .{try quoted(e.plural)}) else try w.writer.writeAll("msgstr \"\"\n\n");
+ }
+ try write("po/rediwm.pot", w.written());
+}
+
+fn readPo(path: []const u8) !List {
+ return parsePo(try read(path));
+}
+fn parsePo(bytes: []const u8) !List {
+ var entries: List = .empty;
+ var e: Entry = .{};
+ var field: ?*[]const u8 = null;
+ var started = false;
+ var lines = std.mem.splitScalar(u8, bytes, '\n');
+ while (lines.next()) |raw| {
+ const line = std.mem.trim(u8, raw, " \t\r");
+ if (line.len == 0) {
+ if (started) try entries.append(A, e);
+ e = .{};
+ field = null;
+ started = false;
+ continue;
+ }
+ if (std.mem.startsWith(u8, line, "#~")) return error.ObsoletePoEntry;
+ if (line[0] == '#') {
+ if (std.mem.startsWith(u8, line, "#,") and std.mem.indexOf(u8, line, "fuzzy") != null) e.fuzzy = true;
+ continue;
+ }
+ if (std.mem.startsWith(u8, line, "msgctxt ")) {
+ field = &e.context;
+ field.?.* = try unquote(line[8..]);
+ started = true;
+ } else if (std.mem.startsWith(u8, line, "msgid_plural ")) {
+ field = &e.plural;
+ field.?.* = try unquote(line[13..]);
+ } else if (std.mem.startsWith(u8, line, "msgid ")) {
+ field = &e.id;
+ field.?.* = try unquote(line[6..]);
+ started = true;
+ } else if (std.mem.startsWith(u8, line, "msgstr[")) {
+ if (line.len < 11 or line[8] != ']') return error.InvalidPoPlural;
+ const index = std.fmt.parseInt(usize, line[7..8], 10) catch return error.InvalidPoPlural;
+ if (index >= e.forms.len) return error.InvalidPoPlural;
+ if (e.seen_forms & (@as(u8, 1) << @intCast(index)) != 0) return error.DuplicatePoForm;
+ e.seen_forms |= @as(u8, 1) << @intCast(index);
+ e.count = @max(e.count, index + 1);
+ field = &e.forms[index];
+ field.?.* = try unquote(line[10..]);
+ } else if (std.mem.startsWith(u8, line, "msgstr ")) {
+ if (e.seen_forms != 0) return error.DuplicatePoForm;
+ e.seen_forms = 1;
+ e.count = 1;
+ field = &e.forms[0];
+ field.?.* = try unquote(line[7..]);
+ } else if (line[0] == '"') {
+ const target = field orelse return error.InvalidPoContinuation;
+ target.* = try std.mem.concat(A, u8, &.{ target.*, try unquote(line) });
+ } else return error.InvalidPoLine;
+ }
+ if (started) try entries.append(A, e);
+ for (entries.items, 0..) |item, i| for (entries.items[0..i]) |other| if (same(item, other)) return error.DuplicatePoEntry;
+ return entries;
+}
+fn sameSources(source: []const Entry, pot: []const Entry) bool {
+ var count: usize = 0;
+ for (pot) |entry| {
+ if (entry.id.len == 0) continue;
+ count += 1;
+ var found = false;
+ for (source) |candidate| if (same(entry, candidate) and std.mem.eql(u8, entry.plural, candidate.plural)) {
+ found = true;
+ break;
+ };
+ if (!found) return false;
+ }
+ return count == source.len;
+}
+fn countPlural(tag: []const u8) usize {
+ return if (std.mem.eql(u8, tag, "ru")) 3 else 2;
+}
+fn placeholders(text: []const u8) ![]const []const u8 {
+ var out: std.ArrayList([]const u8) = .empty;
+ var i: usize = 0;
+ while (i < text.len) : (i += 1) {
+ if (text[i] == '{' or text[i] == '}') {
+ if (i + 1 < text.len and text[i + 1] == text[i]) {
+ i += 1;
+ continue;
+ }
+ if (text[i] == '}') return error.InvalidPlaceholder;
+ const end = std.mem.indexOfScalarPos(u8, text, i + 1, '}') orelse return error.InvalidPlaceholder;
+ const name = text[i + 1 .. end];
+ if (name.len == 0) return error.InvalidPlaceholder;
+ for (name) |ch| if (!std.ascii.isAlphanumeric(ch) and ch != '_') return error.InvalidPlaceholder;
+ var found = false;
+ for (out.items) |old| if (std.mem.eql(u8, old, name)) {
+ found = true;
+ break;
+ };
+ if (!found) try out.append(A, name);
+ i = end;
+ }
+ }
+ return out.toOwnedSlice(A);
+}
+fn samePlaceholders(a: []const u8, b: []const u8) !bool {
+ const left = try placeholders(a);
+ const right = try placeholders(b);
+ if (left.len != right.len) return false;
+ for (left) |name| {
+ var found = false;
+ for (right) |other| if (std.mem.eql(u8, name, other)) {
+ found = true;
+ break;
+ };
+ if (!found) return false;
+ }
+ return true;
+}
+fn dateFields(text: []const u8) [128]u16 {
+ var counts: [128]u16 = @splat(0);
+ var i: usize = 0;
+ while (i < text.len) : (i += 1) {
+ if (text[i] != '%') continue;
+ i += 1;
+ while (i < text.len and !std.ascii.isAlphabetic(text[i]) and text[i] != '%') : (i += 1) {}
+ if (i < text.len and text[i] < 128) counts[text[i]] +|= 1;
+ }
+ return counts;
+}
+fn sameDateFields(original: []const u8, translated_text: []const u8) bool {
+ return std.meta.eql(dateFields(original), dateFields(translated_text));
+}
+
+fn validate(tag: []const u8, entries: []const Entry, source: []const Entry) !void {
+ for (entries) |e| {
+ if (e.id.len == 0) continue;
+ var found = false;
+ for (source) |s| if (same(e, s) and std.mem.eql(u8, e.plural, s.plural)) {
+ found = true;
+ break;
+ };
+ if (!found) {
+ std.debug.print("{s}: stale message: {s}\n", .{ tag, e.id });
+ return error.StaleTranslation;
+ }
+ if (e.seen_forms != 0 and e.seen_forms != (@as(u8, 1) << @intCast(e.count)) - 1) return error.WrongPluralCount;
+ if (e.plural.len != 0 and e.count != countPlural(tag)) return error.WrongPluralCount;
+ if (e.plural.len == 0 and e.count != 1) return error.WrongPluralCount;
+ for (e.forms[0..e.count]) |form| {
+ if (form.len == 0) continue;
+ if (!std.unicode.utf8ValidateSlice(form)) return error.InvalidUtf8;
+ if (std.mem.indexOfScalar(u8, form, 0) != null) return error.InvalidNull;
+ if (std.mem.eql(u8, e.context, "date") and !sameDateFields(e.id, form)) return error.DateFieldMismatch;
+ if (!try samePlaceholders(e.id, form)) {
+ std.debug.print("{s}: placeholders: {s}\n", .{ tag, e.id });
+ return error.PlaceholderMismatch;
+ }
+ if (std.mem.eql(u8, tag, "fr") and std.mem.indexOf(u8, form, "\xe2\x80\xaf") != null) return error.UseNoBreakSpaceU00A0;
+ }
+ }
+}
+fn catalogs() ![]const []const u8 {
+ var out: std.ArrayList([]const u8) = .empty;
+ var dir = try std.Io.Dir.cwd().openDir(io, "po", .{ .iterate = true });
+ defer dir.close(io);
+ var it = dir.iterate();
+ while (try it.next(io)) |file| if (file.kind == .file and std.mem.endsWith(u8, file.name, ".po")) try out.append(A, try A.dupe(u8, file.name[0 .. file.name.len - 3]));
+ std.mem.sort([]const u8, out.items, {}, struct {
+ fn lt(_: void, a: []const u8, b: []const u8) bool {
+ return std.mem.lessThan(u8, a, b);
+ }
+ }.lt);
+ return out.toOwnedSlice(A);
+}
+fn checkCatalogs(source: []const Entry) !void {
+ for (try catalogs()) |tag| {
+ const po = try readPo(try std.fmt.allocPrint(A, "po/{s}.po", .{tag}));
+ try validate(tag, po.items, source);
+ var translated_count: usize = 0;
+ var fuzzy: usize = 0;
+ for (po.items) |e| if (e.id.len != 0) {
+ if (e.fuzzy) fuzzy += 1 else if (e.forms[0].len != 0) {
+ translated_count += 1;
+ }
+ };
+ std.debug.print("{s}: {d}/{d} translated, {d} fuzzy (excluded at runtime)\n", .{ tag, translated_count, source.len, fuzzy });
+ }
+}
+fn hash(context: []const u8, id: []const u8) u64 {
+ var h: u64 = 14695981039346656037;
+ for (context) |ch| h = (h ^ ch) *% 1099511628211;
+ h = (h ^ 4) *% 1099511628211;
+ for (id) |ch| h = (h ^ ch) *% 1099511628211;
+ return h;
+}
+fn pseudo(text: []const u8) ![]const u8 {
+ var out = std.Io.Writer.Allocating.init(A);
+ try out.writer.writeAll("[ ");
+ var i: usize = 0;
+ while (i < text.len) {
+ if (text[i] == '{') {
+ const end = std.mem.indexOfScalarPos(u8, text, i, '}') orelse return error.InvalidPlaceholder;
+ try out.writer.writeAll(text[i .. end + 1]);
+ i = end + 1;
+ continue;
+ }
+ if (text[i] == '%' and i + 1 < text.len) {
+ var end = i + 1;
+ while (end < text.len and !std.ascii.isAlphabetic(text[end]) and text[end] != '%') : (end += 1) {}
+ end = @min(end + 1, text.len);
+ try out.writer.writeAll(text[i..end]);
+ i = end;
+ continue;
+ }
+ switch (text[i]) {
+ 'a' => try out.writer.writeAll("à"),
+ 'e' => try out.writer.writeAll("é"),
+ 'i' => try out.writer.writeAll("ï"),
+ 'o' => try out.writer.writeAll("ô"),
+ 'u' => try out.writer.writeAll("ü"),
+ else => try out.writer.writeByte(text[i]),
+ }
+ i += 1;
+ }
+ for (0..text.len * 2 / 5) |_| try out.writer.writeByte('!');
+ try out.writer.writeAll(" ]");
+ return out.toOwnedSlice();
+}
+
+fn header(entries: []const Entry, key: []const u8) []const u8 {
+ for (entries) |entry| if (entry.id.len == 0) {
+ var lines = std.mem.splitScalar(u8, entry.forms[0], '\n');
+ while (lines.next()) |line| if (std.mem.startsWith(u8, line, key) and line.len > key.len and line[key.len] == ':') return std.mem.trim(u8, line[key.len + 1 ..], " \t");
+ };
+ return "";
+}
+fn metadataDefault(tag: []const u8, native: bool) []const u8 {
+ const tags = [_][]const u8{ "es", "pt_BR", "de", "fr", "ru" };
+ const names = [_][]const u8{ "Español", "Português (Brasil)", "Deutsch", "Français", "Русский" };
+ const locales = [_][]const u8{ "es_ES.UTF-8", "pt_BR.UTF-8", "de_DE.UTF-8", "fr_FR.UTF-8", "ru_RU.UTF-8" };
+ for (tags, 0..) |t, i| if (std.mem.eql(u8, tag, t)) return if (native) names[i] else locales[i];
+ return tag;
+}
+
+fn compile(path: []const u8) !void {
+ const pot = try readPo("po/rediwm.pot");
+ var tags: std.ArrayList([]const u8) = .empty;
+ try tags.appendSlice(A, try catalogs());
+ try tags.append(A, "qps");
+ var w = std.Io.Writer.Allocating.init(A);
+ try w.writer.writeAll("// Generated by tools/i18n.zig; do not edit.\npub const Entry = struct { hash: u64, context: []const u8, msgid: []const u8, forms: []const [:0]const u8 };\npub const Catalog = struct { tag: []const u8, slots: []const ?Entry };\npub const catalogs = [_]Catalog{\n");
+ for (tags.items) |tag| {
+ const po = if (std.mem.eql(u8, tag, "qps")) pot else try readPo(try std.fmt.allocPrint(A, "po/{s}.po", .{tag}));
+ const qps = std.mem.eql(u8, tag, "qps");
+ if (!qps) try validate(tag, po.items, pot.items);
+ var kept: List = .empty;
+ for (po.items) |entry| {
+ var e = entry;
+ if (e.id.len == 0 or e.fuzzy or (!qps and e.forms[0].len == 0)) continue;
+ if (qps) {
+ e.count = if (e.plural.len == 0) 1 else 2;
+ e.forms[0] = try pseudo(e.id);
+ if (e.count == 2) e.forms[1] = try pseudo(e.plural);
+ }
+ var complete = true;
+ for (e.forms[0..e.count]) |form| if (form.len == 0) {
+ complete = false;
+ };
+ if (complete) try kept.append(A, e);
+ }
+ const n = kept.items.len * 2 + 1;
+ const slots = try A.alloc(?Entry, n);
+ @memset(slots, null);
+ for (kept.items) |e| {
+ var index: usize = @intCast(hash(e.context, e.id) % n);
+ while (slots[index] != null) index = (index + 1) % n;
+ slots[index] = e;
+ }
+ try w.writer.print(".{{ .tag = {s}, .slots = &.{{\n", .{try quoted(tag)});
+ for (slots) |maybe| {
+ if (maybe) |e| {
+ try w.writer.print(".{{ .hash = {d}, .context = {s}, .msgid = {s}, .forms = &.{{", .{ hash(e.context, e.id), try quoted(e.context), try quoted(e.id) });
+ for (e.forms[0..e.count]) |form| try w.writer.print("{s},", .{try quoted(form)});
+ try w.writer.writeAll("} },\n");
+ } else try w.writer.writeAll("null,\n");
+ }
+ try w.writer.writeAll("} },\n");
+ }
+ try w.writer.writeAll("};\npub const Language = struct { tag: []const u8, native_name: []const u8, locale: []const u8, translated: usize, total: usize, reviewed: bool };\npub const languages = [_]Language{\n");
+ for (tags.items) |tag| {
+ if (std.mem.eql(u8, tag, "qps")) continue;
+ const po = try readPo(try std.fmt.allocPrint(A, "po/{s}.po", .{tag}));
+ const native = header(po.items, "X-RediWM-Native-Name");
+ const locale = header(po.items, "X-RediWM-Locale");
+ var reviewed_count: usize = 0;
+ for (po.items) |e| {
+ if (e.id.len == 0 or e.fuzzy or e.forms[0].len == 0) continue;
+ var complete = true;
+ for (e.forms[0..e.count]) |form| if (form.len == 0) {
+ complete = false;
+ };
+ if (complete) reviewed_count += 1;
+ }
+ try w.writer.print(".{{ .tag = {s}, .native_name = {s}, .locale = {s}, .translated = {d}, .total = {d}, .reviewed = {} }},\n", .{
+ try quoted(tag), try quoted(if (native.len > 0) native else metadataDefault(tag, true)),
+ try quoted(if (locale.len > 0) locale else metadataDefault(tag, false)), reviewed_count,
+ pot.items.len - 1, std.mem.eql(u8, header(po.items, "X-RediWM-Reviewed"), "yes"),
+ });
+ }
+ try w.writer.writeAll("};\n");
+ try write(path, w.written());
+}
+
+fn translated(tag: []const u8, context: []const u8, id: []const u8) !?[]const u8 {
+ const po = try readPo(try std.fmt.allocPrint(A, "po/{s}.po", .{tag}));
+ for (po.items) |e| if (!e.fuzzy and std.mem.eql(u8, e.context, context) and std.mem.eql(u8, e.id, id) and e.forms[0].len != 0) return e.forms[0];
+ return null;
+}
+fn xmlEscaped(text: []const u8) ![]const u8 {
+ var out = std.Io.Writer.Allocating.init(A);
+ for (text) |ch| switch (ch) {
+ '&' => try out.writer.writeAll("&amp;"),
+ '<' => try out.writer.writeAll("&lt;"),
+ '>' => try out.writer.writeAll("&gt;"),
+ '"' => try out.writer.writeAll("&quot;"),
+ else => try out.writer.writeByte(ch),
+ };
+ return out.toOwnedSlice();
+}
+fn generateData(tags: []const []const u8, source: []const u8, output: []const u8) !void {
+ const bytes = try read(source);
+ var out = std.Io.Writer.Allocating.init(A);
+ var lines = std.mem.splitScalar(u8, bytes, '\n');
+ while (lines.next()) |line| {
+ try out.writer.writeAll(line);
+ if (lines.index != null) try out.writer.writeByte('\n');
+ if (std.mem.endsWith(u8, source, ".desktop")) {
+ const eq = std.mem.indexOfScalar(u8, line, '=') orelse continue;
+ const key = line[0..eq];
+ for ([_][]const u8{ "Name", "GenericName", "Comment", "Keywords" }) |field| if (std.mem.eql(u8, key, field)) {
+ const context = try std.fmt.allocPrint(A, "desktop:{s}", .{key});
+ for (tags) |tag| if (try translated(tag, context, line[eq + 1 ..])) |value| {
+ if (std.mem.indexOfAny(u8, value, "\r\n") != null) return error.InvalidDesktopValue;
+ try out.writer.print("{s}[{s}]={s}\n", .{ key, tag, value });
+ };
+ };
+ } else if (std.mem.indexOf(u8, line, "<message>")) |start| {
+ const end = std.mem.indexOf(u8, line, "</message>") orelse return error.InvalidPolicy;
+ for (tags) |tag| if (try translated(tag, "polkit", line[start + 9 .. end])) |value| {
+ try out.writer.print("{s}<message xml:lang=\"{s}\">{s}</message>\n", .{ line[0..start], tag, try xmlEscaped(value) });
+ };
+ }
+ }
+ try write(output, out.written());
+}
+fn lint(path: []const u8) !void {
+ const source = try A.dupeZ(u8, try read(path));
+ var tree = try std.zig.Ast.parse(A, source, .zig);
+ defer tree.deinit(A);
+ const tags = tree.tokens.items(.tag);
+ var test_depth: usize = 0;
+ var pending_test = false;
+ var i: u32 = 0;
+ while (i + 3 < tags.len) : (i += 1) {
+ if (tags[i] == .keyword_test) pending_test = true;
+ if (tags[i] == .l_brace) {
+ if (pending_test or test_depth != 0) test_depth += 1;
+ pending_test = false;
+ }
+ if (tags[i] == .r_brace and test_depth != 0) {
+ test_depth -= 1;
+ continue;
+ }
+ if (test_depth != 0 or tags[i] != .period or tags[i + 1] != .identifier or tags[i + 2] != .equal or tags[i + 3] != .string_literal) continue;
+ const field = tree.tokenSlice(i + 1);
+ var sink = false;
+ for ([_][]const u8{ "label", "placeholder", "title", "subtitle", "content" }) |known| if (std.mem.eql(u8, field, known)) {
+ sink = true;
+ break;
+ };
+ if (!sink) continue;
+ const literal = tree.tokenSlice(i + 3);
+ if (literal.len == 2) continue;
+ const start = tree.tokens.items(.start)[i];
+ const line_start = if (std.mem.lastIndexOfScalar(u8, source[0..start], '\n')) |at| at + 1 else 0;
+ const previous_start = if (line_start > 0) if (std.mem.lastIndexOfScalar(u8, source[0 .. line_start - 1], '\n')) |at| at + 1 else 0 else 0;
+ const line_end = std.mem.indexOfScalarPos(u8, source, start, '\n') orelse source.len;
+ if (std.mem.indexOf(u8, source[previous_start..line_end], "i18n: raw") != null) continue;
+ std.debug.print("{s}: untranslated {s}: {s}\n", .{ path, field, literal });
+ return error.UntranslatedLiteral;
+ }
+}
+
+test "PO parser and formatter invariants" {
+ try std.testing.expect(try samePlaceholders("{n} for {name}", "{name}: {n}"));
+ try std.testing.expect(!try samePlaceholders("{name}", "{other}"));
+ try std.testing.expectError(error.InvalidPlaceholder, placeholders("{bad"));
+}
+
+test "PO continuation, context, plurals, fuzzy and duplicate rejection" {
+ const po = try parsePo("msgid \"\"\nmsgstr \"\"\n\"Language: ru\\n\"\n\n" ++
+ "#, fuzzy\nmsgctxt \"files\"\nmsgid \"{n} file\"\nmsgid_plural \"{n} files\"\n" ++
+ "msgstr[0] \"{n} файл\"\nmsgstr[1] \"{n} файла\"\nmsgstr[2] \"{n} файлов\"\n");
+ try std.testing.expectEqual(@as(usize, 2), po.items.len);
+ try std.testing.expectEqualStrings("ru", header(po.items, "Language"));
+ try std.testing.expect(po.items[1].fuzzy);
+ try std.testing.expectEqual(@as(usize, 3), po.items[1].count);
+ try std.testing.expectEqualStrings("files", po.items[1].context);
+ try std.testing.expectError(error.DuplicatePoEntry, parsePo("msgid \"A\"\nmsgstr \"B\"\n\nmsgid \"A\"\nmsgstr \"C\"\n"));
+}
+
+test "pseudo locale preserves named placeholders and strftime directives" {
+ const value = try pseudo("{first_name}: %-d %B %Y");
+ try std.testing.expect(try samePlaceholders("{first_name}: %-d %B %Y", value));
+ try std.testing.expect(std.mem.indexOf(u8, value, "%-d %B %Y") != null);
+}
+
+test "validation rejects stale ids, placeholders, plural families and unsupported French spaces" {
+ const source = [_]Entry{ .{ .id = "{n} file", .plural = "{n} files" }, .{ .id = "Open" } };
+ const plural = [_]Entry{.{ .id = "{n} file", .plural = "{n} files", .count = 2, .forms = .{ "{n} файл", "{n} файлов", "" } }};
+ try std.testing.expectError(error.WrongPluralCount, validate("ru", &plural, &source));
+ const stale = [_]Entry{.{ .id = "Missing", .count = 1 }};
+ try std.testing.expectError(error.StaleTranslation, validate("de", &stale, &source));
+ const bad = [_]Entry{.{ .id = "Open", .count = 1, .forms = .{ "{name}", "", "" } }};
+ try std.testing.expectError(error.PlaceholderMismatch, validate("de", &bad, &source));
+ const space = [_]Entry{.{ .id = "Open", .count = 1, .forms = .{ "Ouvrir\xe2\x80\xaf!", "", "" } }};
+ try std.testing.expectError(error.UseNoBreakSpaceU00A0, validate("fr", &space, &source));
+}