As there is increasing demand for SliTaz in new languages,
most recently Turkish and Korean, I propose a different approach
for the creation and installation of localised messages:
The localised messages for the packages are (where possible)
split into packages named <package>-lang, whereby for all
languages contained in the source package, the corresponding mo files
are included.
However, to ensure that when installing the <package>-lang package,
no unnecessary storage space is taken up by message files in languages
that no user of the system will ever need, the
system administrator must be given the option
to select the languages for which the files are to be copied
from the package. All others are not copied.
This could be achieved via a variable in /etc/slitaz/tazpkg.conf,
for example
WANTED_MESSAGE_LANGUAGES="de fr"
When installing a <package>-lang package,
tazpkg and spk must then skip mo files in other languages
and copy only the selected ones, if available.
If no message file is available for any of the desired languages,
a warning should be displayed.
The disadvantages of this approach are:
- If the system administrator changes this variable,
the change only takes effect upon the (re)installation of a
<package>-lang package
- For an installed package, the information returned by
tazpkg -lf <package>-lang
does not show the files actually installed,
but rather the files contained within the package.
System:
filature_report=1
date=2026-11-19
release=cooking
flavor=core
arch=x86_64
kernel=6.12.115-slitaz
boot=efi
live=no
cpu=Intel(R) Celeron(R) CPU N3150 @ 1.60GHz
cpu_cores=4
ram_mb=7880
gpu=8086:22b1 i915
packages=520
locale=de_DE.UTF-8
most recently Turkish and Korean, I propose a different approach
for the creation and installation of localised messages:
The localised messages for the packages are (where possible)
split into packages named <package>-lang, whereby for all
languages contained in the source package, the corresponding mo files
are included.
However, to ensure that when installing the <package>-lang package,
no unnecessary storage space is taken up by message files in languages
that no user of the system will ever need, the
system administrator must be given the option
to select the languages for which the files are to be copied
from the package. All others are not copied.
This could be achieved via a variable in /etc/slitaz/tazpkg.conf,
for example
WANTED_MESSAGE_LANGUAGES="de fr"
When installing a <package>-lang package,
tazpkg and spk must then skip mo files in other languages
and copy only the selected ones, if available.
If no message file is available for any of the desired languages,
a warning should be displayed.
The disadvantages of this approach are:
- If the system administrator changes this variable,
the change only takes effect upon the (re)installation of a
<package>-lang package
- For an installed package, the information returned by
tazpkg -lf <package>-lang
does not show the files actually installed,
but rather the files contained within the package.
System:
filature_report=1
date=2026-11-19
release=cooking
flavor=core
arch=x86_64
kernel=6.12.115-slitaz
boot=efi
live=no
cpu=Intel(R) Celeron(R) CPU N3150 @ 1.60GHz
cpu_cores=4
ram_mb=7880
gpu=8086:22b1 i915
packages=520
locale=de_DE.UTF-8