From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GELIN7EQMWOKfgAAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 04:38:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +JWtN7EQMWPpggAAauVa8A (envelope-from ) for ; Mon, 26 Sep 2022 04:38:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 89F7F3D54B for ; Mon, 26 Sep 2022 04:38:41 +0200 (CEST) Received: from localhost ([::1]:52168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oce12-0007kX-Mc for larch@yhetil.org; Sun, 25 Sep 2022 22:38:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oce0m-0007kP-2D for help-guix@gnu.org; Sun, 25 Sep 2022 22:38:24 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51485) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oce0j-00073t-SL for help-guix@gnu.org; Sun, 25 Sep 2022 22:38:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A2D43240026 for ; Mon, 26 Sep 2022 04:38:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1664159898; bh=sLA3kNn/SIY0bxf7Y/r6Yo6zI3Q/Y/SuhIR36Da36GE=; h=From:To:Cc:Subject:Date:From; b=orEZ3VafIR+NnPLG2Ie0YyNbEur3oicG2EsPbet90UAW7dlPcnXRLftDACRU/G8/X 7qTGlOgtFKtTrOGl0OPnX+DUS0slXER/4bvUWpclfi3TxJBPGdWcd8tNM0AgaeHaRp e+8pl/uwUCb3a6OS79zeRA2aK0GDTRqWKzpJ4aSASm+XnOcarCyLZCSRV3FgHBB0ly RZag/AZdkQ6tkgsgLsBY3Ng9H+XRG2b8POH0xc48RYaiuyqpN9GhVJn4YgiPCI17LE x52dOc9B8NYLMm9ClmRtoHHvRQTXBjAxUPZlzThFfbXREoaWhmMmii/Gdu2TF2pHN4 Ev8JBh7HEIUIA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MbRkx4hkNz6tmB; Mon, 26 Sep 2022 04:38:17 +0200 (CEST) From: Fredrik Salomonsson To: Sergiu Ivanov Cc: help-guix@gnu.org Subject: Re: Combine locales In-Reply-To: <87h70v91rr.fsf@colimite.fr> References: <874jwwny6n.fsf@posteo.net> <87h70v91rr.fsf@colimite.fr> Date: Mon, 26 Sep 2022 02:38:15 +0000 Message-ID: <87v8paq2qw.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664159921; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vKUbdKEbDTuKqZqikrOeDHzQlf5oYqgZoO1eG0WC99k=; b=QPt4uNG0ProdSGvWk9VaBAyRC74Oa26+pYKxneE3uGrqmXezNckMImWSUqD3jRhyah7hqg pnjfcZ5pb33iHfkTDnbTmQhTMg0Jq4TI1ge7+TtdTXS5XO2hsAp7AR4cD45K1YkOjBceqU CWNCGR812wrthpmjZvCbhcyOl/FCWQusgtm9J9GPMP1ZZne4N7p5Z/NZ9Hiqxci9YTFC5d I8RjxYOTV7Qf+w2AXXzzVHX9tWF+AsDAciHnQIiHwMxHaomxuwynA5rNG/RW9JehODMLQ3 oBi5XixDvL4aO9mSs62sPeyJimfqnHUgZq9GT5kh3fSEiqsj9z0O3GFGckArvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664159921; a=rsa-sha256; cv=none; b=QguygFe4EebYJawjFYZxWWomTGbul11t5CJUCcQY85Q43JCadqHeTpf2t/KMjo17/KB4sr dtVUxenre47zAbSJ1l6OK5XEMZwnYM+uSX7wyvfSJpDbei+LCto/DkJTboPl3mkkN6qSBo 8eTEqVsImt6f0DnTHDx/JAUWIEQBPD7p31vdoYy1kYkfwFQsZZTPPVj7ijwWQlOMES2QvE xGbHHHAlsn+vQNy6l9zmQVQgxlOHugTfAmiusQaoKXibRXcDOyKCv5jWX4VPFQS6URxiJj S+XwuljgIGffozrU29Mfcz8sZYc+3w94BMeNsFw7STLtin0+UmH5ww58RLswdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=orEZ3Vaf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=orEZ3Vaf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 89F7F3D54B X-Spam-Score: -2.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3McQXO99Kq20 Hi Sergiu, Sergiu Ivanov writes: > Hi Fredrik, > > Fredrik Salomonsson [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: >> ---=E2=9C=80------------------------------------------------------------= ---------------- >> LANG=3Den_US.UTF-8 >> LC_TIME=3Dsv_SE.UTF-8 >> ------------------------------------------------------------------------= -------- >> >> In my operating-system configuration system I have: >> ---=E2=9C=80------------------------------------------------------------= ---------------- >> (operating-system >> ;;=E2=80=A6 >> (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")))) >> ;;=E2=80=A6 >> ) >> ------------------------------------------------------------------------= -------- > > 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]. It did not occur to me to put them in my bash configuration, that's clever. > 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. > [0] https://guix.gnu.org/manual/devel/en/html_node/Shells-Home-Services.h= tml Yeah, I'm launching sway from my bash profile so that worked out well. However I couldn't use environment-variables, but instead I needed to put them directly in bash-profile [0]. Otherwise they would be defined below my snippet for launching sway and not be defined for the sway session. It seems to be working now though, e.g. the clock in waybar now shows the date in Swedish. Thank you for the help! [0] https://git.sr.ht/~plattfot/plt/tree/d8ad5f4a41fb607bfd0d890fcaf89990ed= 1a95ef/item/plt/home/bash.scm --=20 s/Fred[re]+i[ck]+/Fredrik/g