From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Posts in languages other than English on help-guix? Date: Fri, 2 Mar 2018 16:47:45 +0000 Message-ID: <20180302164745.kzbsg5ir35h6oxe4@abyayala> References: <87a7vqea8v.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gmodh4iyigusiuxf" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ernqj-0001n0-Rh for guix-devel@gnu.org; Fri, 02 Mar 2018 11:48:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ernqi-0000oQ-Ed for guix-devel@gnu.org; Fri, 02 Mar 2018 11:48:01 -0500 Content-Disposition: inline In-Reply-To: <87a7vqea8v.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 , help-guix --gmodh4iyigusiuxf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 4.8K bytes: > Hello Guix! >=20 > What about allowing posts on help-guix in one of the languages that > regular contributors know, in addition to English? >=20 > The alternative would be to create separate language-specific lists, but > some (rightfully) think there=E2=80=99s a risk of a disconnect with actual > developers. >=20 > Of course it=E2=80=99s hard to tell what a multilingual mailing list will= be > like, but I think it=E2=80=99s worth experimenting (and I don=E2=80=99t e= xpect a > significant change overnight). If we are to reach out to more people, > allowing them to use the language they know best is the minimum we can > do IMO. >=20 > WDYT? >=20 > To experiment with this on help-guix, I propose the patch below for the > web site. If you=E2=80=99re a committer, please provide a translation fo= r the > language(s) you know! Oh... does this mean the translation function for the website is now in pla= ce? It looks like it is from the patch content, or am I wrong? On topic: I think it's too much to suggest to include something that indica= tes the language of the post in the subject? > Ludo=E2=80=99. >=20 > diff --git a/website/apps/base/data.scm b/website/apps/base/data.scm > index 0abcc7a..4ccca9a 100644 > --- a/website/apps/base/data.scm > +++ b/website/apps/base/data.scm > @@ -13,7 +13,6 @@ > ;;; Data. > ;;; > =20 > - > (define contact-media > (list > ;; The first three will be featured in the home page. > @@ -30,12 +29,18 @@ > (contact > #:name "Help Mailing List" > #:description > - '(p > - "Subscribe to the Help mailing list to get support from the > - GuixSD and GNU Guix community via email. " > - (a (@ (href "https://lists.gnu.org/archive/html/guix-devel/2015-12= /msg00584.html")) > - "Until December 2015") > - ", the Guix-devel mailing list filled that role.") > + `(("en" > + "Subscribe to the Help mailing list to get support from the GuixSD > +and GNU=C2=A0Guix community via email. You can post messages in English= though we > +also accept other languages.") > + ("eo" > + "Subskribu al la retmesa=C4=9Dolisto \"Help\" por demandi helpon = pri > +GuixSD kaj GNU=C2=A0Guix al la grupo. Vi povas skribi esperantlingve.") > + ("fr" > + "Abonnez-vous =C3=A0 la liste de diffusion =C2=AB=C2=A0Help=C2=A0= =C2=BB pour obtenir l'aide > +de la communaut=C3=A9 sur GuixSD et GNU=C2=A0Guix par courrier =C3=A9lec= tronique. Vous > +pouvez envoyer des messages en Fran=C3=A7ais.")) > + > #:url "https://lists.gnu.org/mailman/listinfo/help-guix" > #:log "https://lists.gnu.org/archive/html/help-guix") > =20 > diff --git a/website/apps/base/templates/components.scm b/website/apps/ba= se/templates/components.scm > index b329c71..04d3a08 100644 > --- a/website/apps/base/templates/components.scm > +++ b/website/apps/base/templates/components.scm > @@ -13,6 +13,7 @@ > #:use-module (apps base types) > #:use-module (apps base utils) > #:use-module (srfi srfi-1) > + #:use-module (ice-9 match) > #:export (breadcrumbs > button-big > button-little > @@ -121,6 +122,11 @@ > "=E2=80=A6"))) > =20 > =20 > +(define (language-tag lang) > + `(span (@ (class "button-little button-little-active") > + (style "float: left; text-align: center; width: 20px; vertic= al-align: middle")) > + ,lang)) > + > (define (contact->shtml contact) > "Return an SHTML representation of the given contact object. > =20 > @@ -133,7 +139,18 @@ > "" > `(small > " (" (a (@ (href ,(contact-log contact))) "archive") ") ")) > - ,(contact-description contact))) > + > + ;; The description can be a list of language/blurb pairs. > + ,(match (contact-description contact) > + ((((? string? languages) blurbs) ...) > + `(p ,@(map (lambda (language blurb) > + `(div (@ (style "margin: 0 10px 10px 0")) > + ,(language-tag language) > + (div ,blurb))) > + languages > + blurbs))) > + (blurb > + blurb)))) > =20 > =20 > (define* (horizontal-separator #:key (light #false)) > diff --git a/website/apps/base/templates/contact.scm b/website/apps/base/= templates/contact.scm > index 16e4b4e..c246d4b 100644 > --- a/website/apps/base/templates/contact.scm > +++ b/website/apps/base/templates/contact.scm > @@ -23,7 +23,8 @@ > "Community" "Mailing lists" "IRC channels" "Bug reports" "Help") > #:active-menu-item "About" > #:css (list > - (guix-url "static/base/css/page.css")) > + (guix-url "static/base/css/page.css") > + (guix-url "static/base/css/buttons.css")) > #:crumbs (list (crumb "Contact" "./")) > #:content > `(main > diff --git a/website/static/base/css/buttons.css b/website/static/base/cs= s/buttons.css > index 9e45190..feabcea 100644 > --- a/website/static/base/css/buttons.css > +++ b/website/static/base/css/buttons.css > @@ -37,6 +37,7 @@ > } > =20 > =20 > +.button-little, > .button-little:link, > .button-little:visited { > border-color: #C0C0C0; > @@ -58,4 +59,4 @@ > .button-little:hover { > background-color: #FFCC00; > border-color: #D4AA00; > -} > \ No newline at end of file > +} --=20 A88C8ADD129828D7EAC02E52E22F9BBFEE348588 https://n0.is --gmodh4iyigusiuxf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlqZgDEACgkQ4i+bv+40 hYjrAhAAskQZ0CMb38JFUNiF0ozOO6biJ9vlKzOXEJzfvq1VLNKguy130q2u+h7x xkrwt3koSa1rCzdiw4sXEv/iywmSX44U/cCpuRMtrITfDgSxTv8UKGdKf/hcqzZG HDkAnX/fJSRRN/l/CFAlUahnU9hwwiZg2dBcW80H31jb/uUAiLAayhM5PJxY9LW6 h4e4Udk8uj17rSsFm+FsXIDOHaAqCgSxzOGKZ9qdvq07u/foqiYbCKA1J5TwZWD2 BqERRZXW5+PkR0/mX51vv5XkC+EXcjWW7n9ToyIke/52rZTZSzPc5Fn/51aR/H6w W/pa2jz4hT6TKLyaE3J4g1yBHzrHXc/aGq9mJmWxGCsKmYFX00KILbIsx9wxclSE 1VzCC1CL6JFvCBhzNjUdQVoDx0TSlzPChNrd1IYTT3otmxg/IWiIjGinSjC0rNOc hhPGahOEXkuhGfYb79N+shItFIhkUjr17hb1+4x3SuRXzn6uaLOerkose5aiB5vv f1/SH4fQRwkFMiQI4WDkn6NoDxd0OGoDW7XYNAmOSoIXVIIL9IZqsnIHsaPuQIzJ 4TOu6oCqzicsqM+RCxfZU0kW86auAnxHzP8mUsV/UHr2uBEZ47RG7Q6VV7nIlLim ZfndPhhPTNmpSJh3pLAIOG224tyers4msZ4W9JlrMYxi0iIO7dI= =5P0v -----END PGP SIGNATURE----- --gmodh4iyigusiuxf--