Re: How to set a language's default locale
Albert Astals Cid <[email protected]> Sun, 12 Apr 2026 11:38:09 +0200
| Newsgroups | gmane.comp.kde.devel.internationalization-and-documentation |
|---|---|
| Message-ID | <8707506.NXzvHdEHj5@xps15> |
El diumenge, 12 d=E2=80=99abril del 2026, a les 0:04:14 (Hora d=E2=80=99est= iu d=E2=80=99Europa=20 central), Alexander Becker va escriure: > Good evening, Charlotte! >=20 > > Currently, when trying to load the language "Gaeilge" (ga), KDE is >=20 > trying to use the "ga_IE.UTF-8 at euro" locale by default in > `~/.config/plasma-localerc`, which doesn't exist in glibc. ~/.config/plasma-localerc is set by the Region and Language module of syste= m=20 settings. There seems to be quite some bugs in that module sadly and it is setting th= e=20 wrong locale (i just tested it and it set the wrong locale for me). I will try to have a look at the code and fix it but you may want to report= a=20 bug report. >=20 > 1. Are you sure "Gaeilge" is correct, > https://l10n.kde.org/stats/gui/stable-kf6/team/ga/ says "Irish Gaelic (ga= )". Gaeilge is "Irish" in "Irish" Cheers, Alber >=20 > 2. Why do you think your locale is not supported by glibc? > git clone https://sourceware.org/git/glibc.git > cd glibc > git log | grep ga_IE > =3D> here I could see both ga_IE and ga_IE@euro locales >=20 > > which doesn't exist in glibc. Due to this, a lot of programs don't >=20 > work or produce errors when trying to run a system in the language. >=20 > 3. I have tried locally in konsole: >=20 > LANGUAGE=3Dga gwenview > LANGUAGE=3Dga_IE gwenview > LANGUAGE=3Dga_IE@euro gwenview >=20 > Or for flatpak versions of apps: >=20 > flatpak config --set extra-languages ga > flatpak config --list > flatpak update > LANGUAGE=3Dga flatpak run org.kde.kate > LANGUAGE=3Dga_IE flatpak run org.kde.kate > LANGUAGE=3Dga_IE@euro flatpak run org.kde.kate >=20 > =E2=86=92 In all variants I could see strings in your language and no = errors. > Which errors do you have (locale related)? >=20 > By the way: If you want to test newest translation which is not yet part > of an application (e. g. Dolphin) you could do following: >=20 > msgfmt dolphin.po -o dolphin.mo > mkdir -p ~/.local/share/locale/ga/LC_MESSAGES > cp dolphin.mo ~/.local/share/locale/ga/LC_MESSAGES > # start Dolphin and check new translated strings >=20 > I hope it will help you and your team. >=20 > Best regards > Alexander