From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Website translation Date: Mon, 15 Jul 2019 14:59:42 +0200 Message-ID: <87h87nihc1.fsf@elephly.net> References: <82379e4b458703ebd2a0b000b2acc46c@autoproduzioni.net> <87sgri9b90.fsf@gnu.org> <20190707165722.we3q5jne7a3wnvq4@pelzflorian.localdomain> <878st932e4.fsf@dustycloud.org> <877e8owqkg.fsf@gnu.org> <20190712053539.htszj5w2b2sxws64@pelzflorian.localdomain> <875zo43dt2.fsf@gnu.org> 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]:42521) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn0aC-0008Li-2N for guix-devel@gnu.org; Mon, 15 Jul 2019 08:59:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn0aB-000736-53 for guix-devel@gnu.org; Mon, 15 Jul 2019 08:59:56 -0400 In-reply-to: <875zo43dt2.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, matias_jose_seco@autoproduzioni.net Ludovic Court=C3=A8s writes: > As long as we use xgettext, we have to stick to a format-string-like > approach like what sirgazil proposes. > > Writing a custom xgettext kind of tool wouldn=E2=80=99t help much because > gettext is fundamentally text oriented: you give it a string and it > returns a string. > > So I think the alternative is: > > =E2=80=A2 use gettext, and in that case stick to a format-string-like > mechanism, or: > > =E2=80=A2 use a completely new tool that would be able to consume and p= roduce > sexps (trees). > > The latter doesn=E2=80=99t seem reasonable to me. :-) I=E2=80=99m not sure I understand the problem well enough, but there seems = to be a middle way: using itstool with XML. When you squint really hard XML is close to S-exprs. -- Ricardo