Menu entries, the SDDM theme and polkit policies are read by programs
that know nothing of the FWS catalogs: every language is written into
them at build time, and each program picks its user's language.
Each text is added to anaconda.mo only when Anaconda has no translation
or a copy of the English text: its own translations always win. One
catalog serves both the Python code and GtkBuilder, so the .mo is
rewritten rather than a second domain added.
Several languages get parts of Anaconda's screens in English (Bulgarian
lacks most of the root account screen). These fill the gaps of the
screens FWS shows.
It loads every text of the given namespaces with a single fws-i18n call
instead of starting Python for each message, and accepts translated
yes/no answers.
The FWS tools of the installed system need the same lookup as the
installer screens, but must not depend on Anaconda's folder: its path
follows Python's version and Anaconda can be removed after installing.
The language now follows gettext's order of variables, and
/etc/locale.conf for the tools started through sudo.
The installed system is a copy of the live: with [fws] declared here, the
FWS packages are updated by pacman like any other. The repository is
unsigned, so it keeps the "Optional TrustAll" level of the build profiles.
Nothing reads the documentation at runtime, and the live never loads the
/boot microcode images; the installed system gets its microcode from
/usr/lib/firmware through mkinitcpio.
The image is built once and booted everywhere: xz over decompressed
modules shares one dictionary across the archive and saves about 9 MiB
over per-module zstd. The installer removes this file from the target.
systemd-boot needed its own copy of the kernel and initramfs in the EFI
partition; GRUB reads them straight from the ISO 9660 file system.
fws-i18n is also made executable in the image.
A locale that is not generated makes Anaconda fall back to English on
every screen. /etc/locale.gen keeps its short list, so the installed
system only gets the chosen language.
locale-gen now always runs: the live ships every UTF-8 locale, and only
locale-gen rebuilds the installed system's archive from its own
/etc/locale.gen instead of keeping about 190 MiB of locales.
The official build still injected the local-repo, so it no longer built
the same image as build.sh. It now takes the FWS packages from [fws],
stops when the profile's repositories cannot be read, and checks the
installer translations first.
A broken translations file only shows once the ISO boots. The checker
makes sure every message has English, that each language keeps the same
placeholders, and that no key used by the code is missing.
t() reads $LANG on every call, where Anaconda stores the language picked
on the first screen: a screen that sets its texts each time it is shown
follows a language changed by going back. A missing key or a broken file
shows the key instead of taking the installer down.
Anaconda translates its own screens through gettext, but the FWS screens,
progress steps and end-of-install dialogs are in none of its catalogs.
They now live in one TOML file, one table per message and one entry per
language, with English required as the fallback.
The build takes these packages from the [fws] repository and no longer
reads this tree. It also carried makepkg output (pkg/ directories,
__pycache__) that should never have been versioned.
A build no longer needs a prior setup-aur.sh run nor a local-repo
directory: mkarchiso resolves the FWS packages through the [fws]
repository declared in the profile, and the build stops early when its
database cannot be read.
The pre-flight check derives what [fws] must provide from what [core] and
[extra] do not, so it no longer depends on a packaging tree. The Broadcom
driver is checked against the SHA-256 of the database, the only integrity
check an unsigned repository gives.
The [fws] repository is shared with other FWS projects (fws-deskmanager,
fws-kitty…): a database rebuilt from local-repo alone would drop their
packages once uploaded. The script starts from the online database, adds
our packages without downgrading a newer published version, and stops
when that database cannot be read. Uploading stays manual.
FWS packages were only reachable through the [fws-local] repository that
build-offi.sh injects after a local setup-aur.sh run. Declaring
repo.laxacube.ch as [fws] in the baseline and releng profiles makes them
available to any build.
The packages are not signed, so [fws] keeps the "Optional TrustAll" level
already used by [fws-local], and RemoteFileSigLevel is lowered so that
"pacman -U <url>" accepts them as well.
The installer progress screen can now tail the FWS logs live, so a
stalled progress bar can be told apart from a slow mirror without
switching to a console.