unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Sergiu Ivanov <sivanov@colimite.fr>
To: Fredrik Salomonsson <plattfot@posteo.net>
Cc: help-guix@gnu.org
Subject: Re: Combine locales
Date: Sun, 25 Sep 2022 12:38:38 +0200	[thread overview]
Message-ID: <87h70v91rr.fsf@colimite.fr> (raw)
In-Reply-To: <874jwwny6n.fsf@posteo.net>

Hi Fredrik,

Fredrik Salomonsson <plattfot@posteo.net> [2022-09-25T01:35:12+0200]:
>
> One thing I cannot figure out is how to setup the operating-system to
> use English as the language but use Swedish for the date format. Similar
> to what is described in Locale Names[0] in the libc manual.
>
> I.e. on my foreign distro I have /etc/locale.conf define:
> ---✀----------------------------------------------------------------------------
> LANG=en_US.UTF-8
> LC_TIME=sv_SE.UTF-8
> --------------------------------------------------------------------------------
>
> In my operating-system configuration system I have:
> ---✀----------------------------------------------------------------------------
> (operating-system
>  ;;…
>  (locale "en_US.utf8")
>  (locale-definitions
>   (list
>    (locale-definition (name "en_US.utf8") (source "en_US") (charset "UTF-8"))
>    (locale-definition (name "sv_SE.utf8") (source "sv_SE") (charset "UTF-8"))))
>  ;;…
> )
> --------------------------------------------------------------------------------

I use a similar definition in operating-system, and I set up additional
locale parameters in my Guix Home configuration, using the
environment-variables field in home-bash-configuration [0].

I think it's fine if you launch everything from a shell, but it will
probably not work if you extensively use a graphical
desktop environment.

-
Sergiu

[0] https://guix.gnu.org/manual/devel/en/html_node/Shells-Home-Services.html


  reply	other threads:[~2022-09-25 10:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-24 23:35 Combine locales Fredrik Salomonsson
2022-09-25 10:38 ` Sergiu Ivanov [this message]
2022-09-26  2:38   ` Fredrik Salomonsson
2022-09-26  9:02 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h70v91rr.fsf@colimite.fr \
    --to=sivanov@colimite.fr \
    --cc=help-guix@gnu.org \
    --cc=plattfot@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).