Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Hmm... feels a bit like a mess. I had a play with localectl. It looks like it will remove LC_ locale settings if they are the same as LANG - but leave them intact if they are not specified on the run. This suggests that the "reliable" way of changing language is something like localectl set-locale LANG=da_DK.UTF-8 LC_NUMERIC=C LC_TIME="da_DK.UTF-8" LC_MONETARY="da_DK.UTF-8" LC_PAPER="da_DK.UTF-8" LC_NAME="da_DK.UTF-8" LC_ADDRESS="da_DK.UTF-8" LC_TELEPHONE="da_DK.UTF-8" LC_MEASUREMENT="da_DK.UTF-8" LC_IDENTIFICATION="da_DK.UTF-8" which isn't that nice. I feel like I should edit by hand! Commented May 27 at 18:06
  • Perhaps update-locale LANG=da_DK.UTF-8 LC_NUMERIC=C LC_TIME LC_MONETARY LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION seems like the way to go... Commented May 27 at 18:10