From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6AgYKQrail/eQQAA0tVLHw (envelope-from ) for ; Sat, 17 Oct 2020 11:48:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WEfrJArail9kOwAAbx9fmQ (envelope-from ) for ; Sat, 17 Oct 2020 11:48:26 +0000 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 C13289401E3 for ; Sat, 17 Oct 2020 11:48:25 +0000 (UTC) Received: from localhost ([::1]:40532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTkhE-0006Z8-Ga for larch@yhetil.org; Sat, 17 Oct 2020 07:48:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTkh4-0006Xp-A0 for guix-devel@gnu.org; Sat, 17 Oct 2020 07:48:14 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:45148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTkh2-0005Yy-JR; Sat, 17 Oct 2020 07:48:13 -0400 Received: by mail-wr1-x429.google.com with SMTP id e17so6305766wru.12; Sat, 17 Oct 2020 04:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=a2JXKWAXrEgSoUGzQXH44lgV8jN7Mykx+0caPPH99QE=; b=NdWxh/Yw31hTMEwA1oVdaiXMtgdHakpbSBkdas04/PydrT8IJuOxmNbCdd87REHrUv 7YKs9A3hY+HBUAjjXEGV4qO2klqZkib16ySvnfp/yaHkmdDSTzP/4Vh6/4F9hufxyU3P IN8gIbNTJpN2uta3K1S1UnSKzr+h7iNiWf5hHnEcgDvwBQ8j9/fkq6u8IhAGDRUkZq9Q plIpdFNh3vaxEGdtFk23SPXYbKf3WfhfGWGTNAmsmQJzPS2rq939VxftPcCV3wMGJdo5 V7T36zGojtOPFfmOXg+zVu5neEJFLxryHXcV5YI/ELE7uRhm2ewBBCpXe9Cn0cUl+jPG dTXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=a2JXKWAXrEgSoUGzQXH44lgV8jN7Mykx+0caPPH99QE=; b=qA0uHsS73+4I8BLoJUWfzbmhQbwElmxL0HNX/U7xgALDdTr73h+qcTXK2Z5YL+6lDR zoibu422Bv0iyk08stddLyoV7rV2UfJazJnF+nVNndV3lCIjSs4WCwQU/K5V5Gt+4+k2 nZlHB/Zhp1SbrWFXg/93kXCKdQbwudfA2cKJ0ee3zHr8AWVa1J5Add20mTV4RICNaEIL rrX96x/lD9Rkj2R19UfXoxx6h5MHGOPCtrC9jxbc4/G8fiV2qyAWAfDbPNWrv8YcnIqg 6sy1qgBGOcR5mOZ64HYD654QAkFLQ4i3mb0yvUgB6tpLVDGmEEHjMejRTt1mhVs/0P6i xMZQ== X-Gm-Message-State: AOAM532g0g6AppfSBd8ROyUEAUKUOTnJ/pUGaFmo5xSFjJrT80fStt/3 xzRf5m3s2yyIDbjEf9q2cX3rqDumJNUfVA== X-Google-Smtp-Source: ABdhPJxffP/bMpoN6nxqoELLML8fbjRtgCwPHWIBGrqe2eX8jT6iqufc8q+ZblwZaBpxZc+O1opHrQ== X-Received: by 2002:adf:fa05:: with SMTP id m5mr10582417wrr.57.1602935289666; Sat, 17 Oct 2020 04:48:09 -0700 (PDT) Received: from unfall (218.139.134.37.dynamic.jazztel.es. [37.134.139.218]) by smtp.gmail.com with ESMTPSA id k6sm3605154wmk.16.2020.10.17.04.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Oct 2020 04:48:08 -0700 (PDT) From: =?utf-8?Q?Miguel_=C3=81ngel_Arruga_Vivas?= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Localization of language names References: <10d0d175-3849-4b28-1136-2ce1e7bf45b2@brendan.scot> <874kmzr4u7.fsf@gnu.org> Date: Sat, 17 Oct 2020 13:46:35 +0200 In-Reply-To: <874kmzr4u7.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 12 Oct 2020 14:44:48 +0200") Message-ID: <87zh4lqdlw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=rosen644835@gmail.com; helo=mail-wr1-x429.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , Mathieu Othacehe , Brendan Tildesley Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=NdWxh/Yw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -2.01 X-TUID: 7VHcvOwE4v0j --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Ludovic Court=C3=A8s writes: > Brendan Tildesley skribis: > >> Languages listed in the language selection are sometimes in English, >> Rarely in the native language. > > We take language names and their translations from the =E2=80=98iso-codes= =E2=80=99 > package, specifically the =E2=80=9Ciso_639-3=E2=80=9D message catalog. Q= uoth > (gnu installer newt locale): > > (lambda (language) > (let ((english (language-code->language-name iso639-languages > language))) > (setenv "LANGUAGE" language) > (let ((native (gettext english "iso_639-3"))) > (unsetenv "LANGUAGE") > native))) Yesterday I took a look at this issue and the problem was that the installed locale during these calls to gettext was the default one: C. I've attached a patch that fixes this and now the installer shows language names in the language itself. Nonetheless, it didn't work when I removed the call from installer to installer-real, as the there comment says, and set the locale directly in the line added by the patch. Therefore I need to take a deeper look into libc code to really understand what's happening there, and check if it is possible to remove that extra call in the future, or find a satisfactory explanation at least. Happy hacking! Miguel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-installer-Call-setlocale-after-init-gettext.patch Content-Transfer-Encoding: quoted-printable Content-Description: 0001-installer-Call-setlocale-after-init-gettext.patch From=2069b8d919a802d72fca218b7dfd9e7719c4711544 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Miguel=3D20=3DC3=3D81ngel=3D20Arruga=3D20Vivas?=3D Date: Fri, 16 Oct 2020 15:02:00 +0200 Subject: [PATCH] installer: Call setlocale after init gettext. * gnu/installer.scm (installer-program)[init-gettext]: Change locale from C, installed at the program start. =2D-- gnu/installer.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/installer.scm b/gnu/installer.scm index c582a46c14..f401b242f8 100644 =2D-- a/gnu/installer.scm +++ b/gnu/installer.scm @@ -308,7 +308,8 @@ selected keymap." ;; translated. #~(begin (bindtextdomain "guix" (string-append #$guix "/share/locale")) =2D (textdomain "guix"))) + (textdomain "guix") + (setlocale LC_ALL ""))) =20 (define set-installer-path ;; Add the specified binary to PATH for later use by the installer. =2D-=20 2.28.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEiIeExBRZrMuD5+hMY0xuiXn6vsIFAl+K2ZsACgkQY0xuiXn6 vsJ4TgwAoHlEpCQMjP1DnmiC53n4NShRlsNTTGY9/zbZcQXB+Uz0hQ886K4AhOiH 7lAkceE8csxxC5PYkjxnOau/V/OHMd7wq0hxKuilnZb6ULE9YujI4GJSgEauIKKf 0tiNoblD+WjK6a/lf+tmiPhArYnFEktnWCQhNcnM/m3883SzH5weolmc7vR0k9GK zRmsfY9d5neyooygeNftF2TxyJPIXYVKzQdkEM2S4KUoe2e6GAFsU8fnjxjBaqte 3d6XY+u/MN7zu21sg+op9TXuvazfLDETslRqHON1ZrsqVASehtMoWHtLRX7IZlBl CKNEv7qVJCwvSdUz5lleLPb7KVxT/VVCesfa0NALDTuzyz277xS+X5gofga7mrFh ysOHg+0Wb4qwtTZ/WFVHaljnW5WzqJiJg+T4TyST45MvsPYKvNVIP3cusMzGA91V Ti/PlZ3vndQaJcbsdM0S54vxTyyRIwZeoupMGqYWmF0Fgoxv47Iushr3NGFBBVdk iVLJsrqY =Tfuz -----END PGP SIGNATURE----- --==-=-=--