From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: Translating to Chinese, Spanish and Japanese (and more) Date: Mon, 5 Feb 2018 11:49:44 +0100 Message-ID: <20180205104944.otr5qzr3etwrjonw@floriannotebook> References: <20180205090716.GB10165@thebird.nl> <30df6bb24a385c945d261feb5f2f99d2@lepiller.eu> <87d11jivqo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k6kflekeafjq3bkn" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eieLL-00031F-Te for guix-devel@gnu.org; Mon, 05 Feb 2018 05:49:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eieLI-0000oJ-QI for guix-devel@gnu.org; Mon, 05 Feb 2018 05:49:47 -0500 Content-Disposition: inline In-Reply-To: <87d11jivqo.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 =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org --k6kflekeafjq3bkn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 05, 2018 at 11:19:59AM +0100, Ludovic Court=C3=A8s wrote: > Heya! >=20 > For those who where not at FOSDEM: this is a topic we discussed, and the > main stumbling block currently is that it=E2=80=99s not clear how to add = i18n > support in Haunt and/or the web site itself. >=20 > julien lepiller skribis: >=20 > > as I said during FOSDEM, I'm willing to translate the website, blog > > posts, and manual into French. My only concern is that the translations > > may fall out of sync without anyone noticing. With gettext, it's easy > > to know when strings are not translated, but what about the solution > > that would be used by haunt? >=20 > The latest discussions I=E2=80=99m aware of on this topic are at: >=20 > https://lists.gnu.org/archive/html/guile-user/2017-12/msg00024.html >=20 > Florian proposed introducing a =E2=80=9Cstringly-typed=E2=80=9D markup la= nguage to allow > the translation of strings that contain markup (which sxml would > prevent): >=20 > https://lists.gnu.org/archive/html/guile-user/2017-12/msg00040.html >=20 > At FOSDEM I thought we could maybe use XML-in-strings directly and have > a macro that does =E2=80=98xml->sxml=E2=80=99 at expansion time, pretty m= uch like what > Florian wrote above. >=20 > Anyway there are ideas floating around, so I=E2=80=99m sure you and Flori= an and > others will find out! :-) >=20 > Ludo=E2=80=99. I don=E2=80=99t think translators should need to know XML or anything beside common sense and human languages. Either way, I=E2=80=99m happy with __ an= d _ functions I have at https://pelzflorian.de/git/pelzfloriande-website/tree/haunt.scm Of course other solutions are possible. I=E2=80=99m not happy with my using ffi-help for calling libgettext. Simply calling setlocale for each piece of SHTML is better because it is easier to understand. Using a custom Guile MO file reader would likely be faster but is not strictly necessary. So far I did not prioritize sending a patch for Haunt because I do not need it urgently. I would be thankful if others took a look. Otherwise I=E2=80=99ll try to implement what I described in this here e-mail thread. --k6kflekeafjq3bkn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwRjGsqAMqXB4uw3y3T6EbElHBVsFAlp4NsIACgkQ3T6EbElH BVv4cg/+JcgIOhkf6oyl/CrE+mJjNtaQuCcMF/xBTrIwflDssvFR6creqAw8UZUF BaIHvt5zbfFkmiDhZtCeuhBbfkxRvp+5+nUaspi1Yc9LxxmsTT1xaqqmQ0l7PEKy Rpz4T0KBgjLGJ7jgwtmJAIdvbMT91gKwdzB7V0taVDlvSPJw8iXUl1OtLfciZHm9 35flBLFqpVCsBxaROu3BF0fArXZWVVO/WzADfUdP+O1nFFM89gxgvzIFP8RnT3oG zgtcJpWz/VxVBWVsk/4TawCaecEeZ6nor6u6lqoBQ0ABZnpwvJRcVNbHpst0ulIR TF8TY3U71ntAatEEa79zdoySW2QLaRBbjleH6h0ZhHXAKw2H1cw5pCs2gepx/XDx Ga7U+EZQkWA2bL3WETmsMyW7MaUcZbc1YX9Fhq8OnqVtYZZhRYiZpPe8cPBfKf9K j7OMRx3PYQk9nKu+45X3j/Yi4YUE4nFn6R8hTRYOseg08ditHHAIPR5UCLjT7HRW NxiQRj3UyVKMrT4eI61xCkuybV6/6Qf3dwLzDa3yZvOnMUlAcy5NYszXnaBSaEuq jf0WjU6NJKYI0RUyqvMbdMkl+b1hjrGEIslHD8+W0AjNZ8CVWAGPp3t3rbcFCW2G B3l7xyzo+BX92HAqbyG6pUkMLnPLJj3EeA+woebqgR04qcjsonM= =JwvA -----END PGP SIGNATURE----- --k6kflekeafjq3bkn--