From mboxrd@z Thu Jan 1 00:00:00 1970 From: sirgazil Subject: Re: Website translation Date: Thu, 18 Jul 2019 12:06:10 -0500 Message-ID: <16c060c5fed.e3d39cb136382.1841518778271467208@zoho.com> References: <87sgri9b90.fsf@gnu.org> <20190707165722.we3q5jne7a3wnvq4@pelzflorian.localdomain> <878st932e4.fsf@dustycloud.org> <877e8owqkg.fsf@gnu.org> <20190712053539.htszj5w2b2sxws64@pelzflorian.localdomain> <875zo43dt2.fsf@gnu.org> <20190714142625.my2n7ypimctk3vbd@pelzflorian.localdomain> <87ims3o4tm.fsf@gnu.org> <20190715155414.y6lv45rv55ihvzs5@pelzflorian.localdomain> <87muhc8iqi.fsf@gnu.org> <20190718150836.kzf2tmbtng5l42ta@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48483) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho9rY-0004LB-37 for guix-devel@gnu.org; Thu, 18 Jul 2019 13:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ho9rW-0002sE-QG for guix-devel@gnu.org; Thu, 18 Jul 2019 13:06:36 -0400 In-Reply-To: <20190718150836.kzf2tmbtng5l42ta@pelzflorian.localdomain> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "pelzflorian (Florian Pelz)" Cc: guix-devel , matias_jose_seco ---- On Thu, 18 Jul 2019 10:08:36 -0500 pelzflorian (Florian Pelz) wrote ---- > On Wed, Jul 17, 2019 at 11:16:21PM +0200, Ludovic Court=C3=A8s wrote:=20 > > I think we now have an overview of the possibilities (including maybe= =20 > > =E2=80=98itstool=E2=80=99 that Ricardo mentions.) I=E2=80=99d say tha= t whoever is interested=20 > > should give it a try with what looks like the most promising approach= =20 > > and report back with a prototype. :-)=20 > >=20 > =20 > I tried to make gettext usable (not yet implementing any discussed=20 > approach), but it is a little rough: I tried using msgctxts. Sadly=20 > Guile is missing a pgettext function, I think. Should I use Guile=E2=80= =99s=20 > ffi? I think msgctxts could help with fragmentation, as I would=20 > prefer format strings with msgctxt over HTML-that-is-not-SHTML with=20 > itstool (I may misunderstand itstool though).=20 I faced the same problem. With the current gettext tools in Guile, I could= n't find any way to solve ambiguities. > sirgazil (Cc), long ago at=20 > =20 > you said you had written an interleave function for format strings.=20 > Do you have the code somewhere? I see in the commit log you are still= =20 > actively working on the Guix website.=20 Yes, the function is here: https://gitlab.com/sirgazil/guile-lab/blob/master/glab/i18n.scm I use it for my own websites http://sirgazil.bitbucket.io/ https://sirgazil.gitlab.io/golea/ But I use it to get things done. > Also, I believe this discussion is actually=20 > . Should I reference this=20 > thread there?=20 > =20 > Regards,=20 > Florian