From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: Web site i18n with Haunt Date: Fri, 9 Feb 2018 18:47:45 +0100 Message-ID: <20180209174745.nlhk3vv3si7u4vs2@floriannotebook> References: <20171223125116.33r6kjnu2zze7f2o@floriannotebook> <20180208171243.dnligzfvwsxvc4l3@floriannotebook> <87a7wi2tey.fsf@gnu.org> <20180209133949.dvl2dry7oija5ayl@floriannotebook> <87y3k2xfj5.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="llq6t3gn6gobmann" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekCmB-0001T7-9F for guix-devel@gnu.org; Fri, 09 Feb 2018 12:47:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekCmA-00035p-4o for guix-devel@gnu.org; Fri, 09 Feb 2018 12:47:55 -0500 Content-Disposition: inline In-Reply-To: <87y3k2xfj5.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, davet@gnu.org --llq6t3gn6gobmann Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 09, 2018 at 06:02:22PM +0100, Ludovic Court=C3=A8s wrote: > [=E2=80=A6] > Awesome. There were a couple of people interested in internationalizing > our web site during the Guix workshop, so hopefully they can follow your > lead and ping you if they need help! >=20 > Ludo=E2=80=99. Gladly. But perhaps others also have better ideas for how to do it. ;) In particular, independent from Haunt, using XML for translation strings as Ricardo proposed would look more familiar to translators (and my own __ macro=E2=80=99s implementation is buggy for corn= er cases and could certainly be simplified and cleaned up). This must be decided and written before the Guix website can be properly internationalized. How for example would this excerpt from my website better be rendered as XML or is this or another non-XML approach better? (p ,@(__ "Thank you for your interest in my workshop \ =E2=80=9CGUI Programming with GTK+=E2=80=9D. ||register_|To register please= go |here|. ||For \ more information see ||link_|here||." `(("register_" . ,(lambda (before-link link-text after-link) (if enable-registration `(span ,before-link ,(a-href "/gui-prog-anmelden/" link-text) ,after-link) ""))) ("link_" . ,(lambda (text) (a-href (poster-url-for-lingua current-lingua) text)))))) Some people also had preferred automatic extraction of strings instead of marking each one. If this were to be done, it would need support in Haunt itself. However, false positives could not be avoided when automatically looking for what strings to extract. Also Haunt=E2=80=99s design is not complete. I=E2=80=99m not entirely sure= about my patches=E2=80=99 approach regarding Atom feeds, and blog post layouts are definitely a problem =E2=80=93 layouts should take the file name as an argument somehow. Other tooling like what sirgazil proposed here https://lists.gnu.org/archive/html/guile-devel/2017-12/msg00051.html might also be desirable but is not urgent. It probably should not be part of Haunt but an external library just like __. Then this all needs documentation. Regards, Florian --llq6t3gn6gobmann Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwRjGsqAMqXB4uw3y3T6EbElHBVsFAlp93rsACgkQ3T6EbElH BVuOmBAAqF/ntB1x0TdEYSaLMNA1btqMoGCKBpEh3r1EQiehp6OMJZDodF1hYvBt ePRa12IUMLsSYNar3XIM6JqLY/cmcC4lqjGkjJujMjBrK/+yx0sM4lyZP4orn6jY VPt3pbVpFL06WdoalqC6lk4asGYPGGz78r+seIqHegp48ccbKJtw7utG4klTISF3 17Q76vqi3A/KNV8+bHkq+eLwwAhPR5gfqasqKfKfNp01Cle6+Rfxg2n5MbWUOJ9r 29fYBvKjy5YVpu7+EdGrAedUev1oJjglpw9+ObkvFQYD0FXdTLn3gg1X5W2Qvi/a 0PdMLZWYY+ZXT75CnnKKQ/ASre9tIFQwe2VWbrRfe0f+CdcYQUIHgQcNoNNfq6aM 86m4TxpJ5HSP1/1BYQCau/TbNslIz//8Gzc/PAZ0ERDCeN0/FdS3Z3UuQQ9OlH0o 1G+S6ZsJLb4emM8p32XYQpF4dd+mEYHQhOqA5yOvLAU0+kjPvVBw82xoAqULT8QO gEVxd4wQHr6CbkEnx8sEIvedxkv6YseNdO1Fie8TkLzIZUa7+deQ0D951tTQNSKX 20jOWvxvx9lerah8ihEIvwxIK12SsMpCyglhu3Qrm+TO0xSoqwnsB3rwKfgUK5kL aFYfpLuxHpu3ZQjIlRixALZ26Ce044Leb3S/EufkbZxd9nB6yQA= =nPVV -----END PGP SIGNATURE----- --llq6t3gn6gobmann--