From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Website translation Date: Sun, 14 Jul 2019 16:12:41 +0200 Message-ID: <875zo43dt2.fsf@gnu.org> References: <82379e4b458703ebd2a0b000b2acc46c@autoproduzioni.net> <87sgri9b90.fsf@gnu.org> <20190707165722.we3q5jne7a3wnvq4@pelzflorian.localdomain> <878st932e4.fsf@dustycloud.org> <877e8owqkg.fsf@gnu.org> <20190712053539.htszj5w2b2sxws64@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]:46194) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmfF9-0001L5-32 for guix-devel@gnu.org; Sun, 14 Jul 2019 10:12:48 -0400 In-Reply-To: <20190712053539.htszj5w2b2sxws64@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Fri, 12 Jul 2019 07:35:39 +0200") 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@gnu.org, matias_jose_seco@autoproduzioni.net Hi, "pelzflorian (Florian Pelz)" skribis: > 3) We could write our own PO file writer and MO file reader and use it > with either Christopher=E2=80=99s lego translation and sirgazil=E2=80=99s= format > strings to use whatever format we want for developers and translators. Note that =E2=80=9Clego translation=E2=80=9D is what we should _not_ do bec= ause it gives translators fragments of sentences, which does not allow them to correctly translate text. 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 pro= duce sexps (trees). The latter doesn=E2=80=99t seem reasonable to me. :-) BTW, there might also be ideas to borrow from GNUN: https://www.gnu.org/software/gnun/ Thanks, Ludo=E2=80=99.