Simplify locale configuration
jdebp opened this issue · 3 comments
Per https://unix.stackexchange.com/a/578832/5132 there's no need for --locale
or a HELPCOVID_LOCALE
environment variable, and these are just superfluous knobs. Just call setlocale()
with ""
to set the locale from the standard LC_*
and LANG
environment variables. Users can set locale with those standard environment variables, on the command line or in service definitions for systemd and otherwise, in the ways that they already expect.
That doesn't need the HELPCOVID_LOCALE
or --locale
mechanisms, that this issue addresses, and they help not one whit with that. Setting the standard environment variables is entirely adequate for the task of specifying the initial locale.
Usually a webapp would permit an http get parameter to set the locale e.g. https://covidhelp.space/index.html?hl=en