Every language upstream translates, and only the ones you want

pankso, 2026-11-22 02:45 UTC

SliTaz used to keep only a handful of translations when it built a package: French, German, Portuguese and Turkish on x86_64. Adding a language, Korean or Turkish lately, meant changing the build tools and cooking everything again. HGT proposed to turn this around (bug #1064), and it is now done for SliTaz 5.1, cooked on both arches and on the mirror.

Packages ship every translation, you keep yours:
- Packages now carry all the translations upstream provides. tazpkg and spk install only the languages listed in WANTED_LANGS, in /etc/slitaz/slitaz.conf, for example WANTED_LANGS="fr de pt_BR".
- Empty or missing means everything, so nothing changes for an existing system until you set it.
- Matching follows gettext: "fr" keeps fr and fr_CA, "pt_BR" keeps pt and pt_BR, "sr" keeps sr@latin.
- Changed your mind? "tazpkg relang" or "spk relang" applies the list again to what is installed: removals are done offline, additions come from the cache or the mirror.
- The installer writes the language you choose, and tazlocale updates it. A language that is not on the ISO is still accepted: its translations come from the network.

On the distribution side:
- About 350 packages on x86_64 and 370 on i486 were cooked again with all their languages, none broken. 22 applications got a new -lang package.
- Korean is now available wherever upstream translates.
- locale-fr, locale-de and the others now pull the -lang packages instead of carrying the translations themselves: installed systems get the fix with their next upgrade.
- The ISOs filter languages too: the core and firefox flavors carry French, Portuguese, German, Spanish and Turkish, and core x86_64 stays at 76.5 MB.

Still to come: the translations of webkit2gtk and vte (long cooks), and the filtering of Qt translations, man pages and .desktop files.

The handbook explains it in English and French on doc.slitaz.org. Thank you HGT for the proposal: a good idea in a report goes a long way.

All news