I can successfully set locale in it:
but programs didn't use it - for example - tried to run date - it tells date in russian, dnf english, midnight commander interface language english and help in russian. If I do the same things in VM and not LXC - it will be all fine and all mesages will be localized. Can't understand what's wrong with LXC and how I can tell programs use localized message output (this is for all Fedora LXC templates. Debian/Ubuntu LXC templates have no issues with locales).
Code:
[root@fedora ~]# localectl set-locale ru_RU.UTF-8
[root@fedora ~]# localectl status
System Locale: LANG=ru_RU.UTF-8
VC Keymap: us
X11 Layout: us
[root@fedora ~]# locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
but programs didn't use it - for example - tried to run date - it tells date in russian, dnf english, midnight commander interface language english and help in russian. If I do the same things in VM and not LXC - it will be all fine and all mesages will be localized. Can't understand what's wrong with LXC and how I can tell programs use localized message output (this is for all Fedora LXC templates. Debian/Ubuntu LXC templates have no issues with locales).
Last edited: