Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n.defaultLocale is not respected in many programs #46569

Open
turion opened this issue Sep 12, 2018 · 10 comments
Open

i18n.defaultLocale is not respected in many programs #46569

turion opened this issue Sep 12, 2018 · 10 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@turion
Copy link
Contributor

turion commented Sep 12, 2018

Issue description

Here is an incomplete list of programs that don't respect the setting i18n.defaultLocale:

  • Thunderbird
  • Firefox
  • konsole

For up-to-date Thunderbird and Firefox there is no easy way to switch the locale, so this is quite a blocker.

Steps to reproduce

  • Set i18n.defaultLocale = "de_DE.UTF-8"; in the main config, switch to that config
  • nix-env -iA nixos.thunderbird
  • thunderbird
  • All time stamps are displayed in AM/PM

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.68, NixOS, 19.03pre151837.ca2ba44cab4 (Koi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.1
  • channels(root): "nixos-19.03pre151837.ca2ba44cab4"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@jappeace
Copy link
Contributor

There is a build flag to build firefox with a locale: https://firefox-source-docs.mozilla.org/build/buildsystem/locales.html

I think it's just a matter of adding it to the configure flags: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/common.nix#L165

Although I don't know which path they refer to in the guide.

@Yarny0
Copy link
Contributor

Yarny0 commented Oct 9, 2018

@turion
I've been wrestling with Mozilla locale settings the last weeks .. maybe my observations can help you:
Firefox and Thunderbird learned a new pref recently (in about:prefs or in prefs.js file, as part of this Quantum initiative I guess): intl.locale.requested. It seems to default to "en-US". If it is changed to an empty string, Firefox/Thunderbird look for the LANG variable and use its value. However, this requires that the appropriate language pack addon is installed.

@turion
Copy link
Contributor Author

turion commented Oct 9, 2018

@Yarny0 that's interesting, especially since most language pack addons are deprecated since those newer Firefox versions! I have no idea how this is supposed to work.

@liff
Copy link
Contributor

liff commented Jan 14, 2019

FWIW, setting intl.locale.requested="" is what Arch and Ubuntu do.

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@turion
Copy link
Contributor Author

turion commented Jun 3, 2020

I think this is still open.

CC Firefox maintainers: @eelco @andir
CC Thunderbird maintainers: @eelco @lovesegfault @pierron
CC Konsole maintainers: @ttuegel (oops, and myself.)

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@stale
Copy link

stale bot commented Dec 1, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 1, 2020
@turion
Copy link
Contributor Author

turion commented Dec 1, 2020

I believe this is still open?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 1, 2020
@stale
Copy link

stale bot commented Jun 2, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2021
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 2, 2021
@aviallon
Copy link
Contributor

Still a bug for me.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

5 participants