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

@@ -78,6 +78,7 @@ parts:
- libxml2-utils
- git
- patchelf
- gettext
override-build: |
craftctl set version=$(git describe --abbrev=8)
$CRAFT_PART_SRC/../../zig/src/zig build -Dpatch-rpath=\$ORIGIN/../usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/core24/current/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR -Doptimize=ReleaseFast