Locale settings of app.yml

Just relax, my forum is up and running. But I would like to learn.

Quite many is using something like this:

LANGUAGE = "en_US.UTF-8",
LC_ALL = "en_US.UTF-8",
LANG = "en_US.UTF-8"

Wouldn’t just LC_ALL be enough? That includes all other options, right?

Mine is Finnish and I’ve used only LANGUAGE = "fi_FI.UTF-8" and LANG = "fi". Everything worked smoothly. But after recently happened failed upgrades I realized that small difference between mine and what others are using. So I changed app.yml and used all three variants in UTF-8 form.

I upgraided and that failed. Sure, I was told that LANG = "fi_FI.UTF-8" is not allowed, so I changed it back to fi, I deleted LC_ALL and everything was fixed.

Now I`m wondering why

  • LANG affected when there was LC_ALL included
  • LANG = "fi_FI.UTF-8" wasn’t allowed, but majority global forums apparently can use LANG = "en_US.UTF-8"
2 Likes