Talk:Locale
Create custom locale
- [Moved from the main article. -- Alad (talk) 23:15, 24 February 2016 (UTC)]
Modified locales will not survive the upgrade of glibc because the relevant file is not in the backup field in the PKGBUILD. Custom locales should be created instead. -- User:Lahwaacz 08:59, 22 December 2014
Customizing locales
Locales are defined in text files located in /usr/share/i18n/locales/ and can be edited to adapt to particular needs.
After editing a locale file, do not forget to re-generate the locales for the changes to take effect after reboot.
Setting the first day of the week
In many countries the first day of the week is Monday. To adjust this, change or add the following lines:
/usr/share/i18n/locales/chosen_locale
LC_TIME [...] week 7;19971130;5 first_weekday 2 first_workday 2
Login manager missing
This article does not cover the login manager. I have my system in *German*, but my login manager is still using the *English* keyboard layout, and I don't know how to change it. Locale does not cover it, and I couldn't find anything in Display manager neither - albeit there is a comment that it is missing and *should* be linked here.
So How do I change the locale in the display manager?
--Nerdoc (talk) 04:33, 10 March 2016 (UTC)
- "The" display manager, there's a few dozen of them. So which do you use? -- Alad (talk) 14:37, 10 March 2016 (UTC)
- Should Xorg/Keyboard configuration consulted? Despite the name, does locale, as described in this article, meant to be a solution for any issue concerning non English usage? Regid (talk) 12:05, 28 December 2018 (UTC)
Brackets
Regarding [1], this is mentioned in man-pages(7), but I don't see it in Help:Reading or Help:Style/Formatting and punctuation. If not present, it could be a good addition, or at least, mention the meaning of the brackets in this article. -- Alad (talk) 17:54, 26 August 2016 (UTC)
- It's not exactly wiki style as covered by Help:Reading, but a de facto standard (sometimes more than that). It's needed only rarely so it should be handled case by case. Feel free to explain it on this page. -- Lahwaacz (talk) 18:11, 26 August 2016 (UTC)
- Help:Style/Formatting and punctuation#Pseudo-variables in file/command line contents was designed to be Simple, but of course it can hardly be applied to complex syntaxes. I agree that in these cases we should rely on the upstream syntax and possibly explain what may not be immediately clear for readers. – Kynikos (talk) 03:44, 27 August 2016 (UTC)
Errors in CHROOT under ANOTHER OS (solution)
While installing, I used a chroot under Ubuntu (My 3G Modem is not yet working in Arch).
I set up everything right, but the following error message would not go away:
root@cursor/sda8:~ # cat /etc/locale.conf LANG=en_US.UTF-8 LC_MESSAGES=C root@cursor/sda8:~ # locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=de_AT.UTF-8 ...
Simply rebooting into Arch made the message disappear. Perhaps this hint saves other people some headache.
Hmw (talk) 17:30, 19 May 2018 (UTC)
Mention uncommenting and regenerating
Several areas suggest editing /etc/locale.conf, such as to change the date or time format. I think it would be helpful to add a link with text like "Uncomment the new locale and re-generate locales" which would be a link to Locale#Generating locales. This would duplicate the link several places in the article, so wanted to open it up for discussion. A similar duplication of links happens reminding users to enable and start systemd services. Alternatively, something could be added either in Locale#Generating locales itself that says this has to be done when later making changes, but some users will undoubtedly miss that. Jamespharvey20 (talk) 03:33, 24 August 2019 (UTC)
use localectl from systemd?
Maybe we should suggest to use localectl from systemd for setting the AND generating the locales
* systemd-localed may now call locale-gen to generate missing locales
on-demand (UTF-8-only). This improves integration with Debian-based
distributions (Debian/Ubuntu/PureOS/Tanglu/...) and Arch Linux.
https://github.com/systemd/systemd/blob/v248/NEWS#L325-L327
—This unsigned comment is by Gdamjan (talk) 2023-08-11T18:49:10. Please sign your posts with ~~~~!
systemd-localed doesn't change the-- nl6720 (talk) 08:45, 12 August 2023 (UTC)/etc/locale.genfile, so won't this cause issues after a glibc update wherelocale-genis run, but the locale set in/etc/locale.confis not uncommented in/etc/locale.gen?
- Never mind. systemd-localed actually does update the
/etc/locale.genfile. -- nl6720 (talk) 08:51, 12 August 2023 (UTC)
- Never mind. systemd-localed actually does update the
clarify adding .UTF-8 for system locals
Ive started this discussion based on the issues on archinstall and tmux.
currently, this text: "To set the system locale, write the LANG variable to /etc/locale.conf, where en_US.UTF-8 belongs to the first column of an uncommented entry in /etc/locale.gen:".
however, for many regional locales (e.g. en.IL) does not include the .UTF-8 suffix (instead reads as en_IL UTF-8).
which is fine for many applications, but not all like tmux and they fail to recognize the UTF-8 environment.
archinstall has submitted a PR to use full qualified locale names.
maybe, it is a good idea to
update "Settings the system locale" section to explicitly instruct users to append this suffix to the LANG variable.
would love thoughts on this. ScopeLoyal (talk) 18:29, 19 July 2026 (UTC)
- My first thought was to add Special:diff/881912. How about that? There is more fineprint, as many locales double down which can be misleading (e.g.
#be_BY.UTF-8 UTF-8). So, not sure it suffices. --Indigo (talk) 19:21, 19 July 2026 (UTC)- Seems like a good start, and maybe also note regional locals.
- However your concise version is good, thanks. ScopeLoyal (talk) 07:16, 20 July 2026 (UTC)
- Worked in 'regional' and your example locale correctly with Special:diff/881998. It's a bothersome issue to hunt down. Maybe adding a Locale#Troubleshooting section for it is useful. --Indigo (talk) 19:09, 20 July 2026 (UTC)
- I agree,
- On another note a new detailed comment from the archinstall is offering a different solution.
- I tend to agree with it and I'd appereciate if you take a look at it. ScopeLoyal (talk) 04:49, 21 July 2026 (UTC)
- Well, the new comment rehashes what we already write, starting from the
language[_territory][.codeset][@modifier]format at the beginning, the.UTF-8we just added to the recommendation (while not mentioning a reason, it implies for compatibility, e.g. your tmux), to the first sentence Locale#Setting the system locale with bold. We also don't have a single lowercaseutf8in the article. I don't get what they consider wrong, anyone welcome to point me to it. I do understand the article can be misread, if one starts the doing with Locale#Setting the locale, but at that point locale-gen was already instructed to be run. As said, no problem if you or someone wants to add a troubleshooting item to help users fix it. My take is the installer should filter the locales sufficient to generate the configuration prior to setting one. --Indigo (talk) 19:51, 22 July 2026 (UTC)
- Well, the new comment rehashes what we already write, starting from the
- Worked in 'regional' and your example locale correctly with Special:diff/881998. It's a bothersome issue to hunt down. Maybe adding a Locale#Troubleshooting section for it is useful. --Indigo (talk) 19:09, 20 July 2026 (UTC)