Feature #6145: Factor out stuff into a shell library
Factor out $LANG parsing
Factor out extracting long and short language codes from $LANG into a shell library:
- also see fix locales form wrong assumption (#6001)
#6 Updated by intrigeri almost 2 years ago
We now have a
language_code_from_locale shell function that can be used to do this correctly. It's used in a few places, which is good. But in some other places we do something similar by hand e.g.
config/chroot_local-includes/usr/local/lib/tails-configure-keyboard which should instead use the factored out function so we can close this ticket.
Similar bugs live in non-shell programs, but that's off-topic here → #6001#note-4.