gtk: add localization support, take 3 (#6004)

This is my third (!) attempt at implementing localization support. By
leveraging GTK builder to do most of the `gettext` calls, I can avoid
the whole mess about missing symbols on non-glibc platforms.

Added some documentation too for contributors and translators, just for
good measure.

Supersedes #5214, resolves the GTK half of #2357
This commit is contained in:
Leah Amelia Chen
2025-03-05 20:12:52 +01:00
committed by GitHub
18 changed files with 925 additions and 15 deletions

View File

@@ -35,6 +35,7 @@
gobject-introspection,
libadwaita,
blueprint-compiler,
gettext,
adwaita-icon-theme,
hicolor-icon-theme,
harfbuzz,
@@ -129,6 +130,9 @@ in
# wasm
wabt
wasmtime
# Localization
gettext
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# My nix shell environment installs the non-interactive version

View File

@@ -18,6 +18,7 @@
libadwaita,
blueprint-compiler,
libxml2,
gettext,
wrapGAppsHook4,
gsettings-desktop-schemas,
git,
@@ -64,6 +65,7 @@ in
../dist/linux
../images
../include
../po
../pkg
../src
../vendor
@@ -87,6 +89,7 @@ in
wrapGAppsHook4
blueprint-compiler
libxml2 # for xmllint
gettext
]
++ lib.optionals enableWayland [
wayland-scanner