From: ng0 <ng0@n0.is>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>, help-guix <help-guix@gnu.org>
Subject: Re: Posts in languages other than English on help-guix?
Date: Fri, 2 Mar 2018 16:47:45 +0000 [thread overview]
Message-ID: <20180302164745.kzbsg5ir35h6oxe4@abyayala> (raw)
In-Reply-To: <87a7vqea8v.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 5365 bytes --]
Ludovic Courtès transcribed 4.8K bytes:
> Hello Guix!
>
> What about allowing posts on help-guix in one of the languages that
> regular contributors know, in addition to English?
>
> The alternative would be to create separate language-specific lists, but
> some (rightfully) think there’s a risk of a disconnect with actual
> developers.
>
> Of course it’s hard to tell what a multilingual mailing list will be
> like, but I think it’s worth experimenting (and I don’t expect 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.
>
> WDYT?
>
> To experiment with this on help-guix, I propose the patch below for the
> web site. If you’re a committer, please provide a translation for the
> language(s) you know!
Oh... does this mean the translation function for the website is now in place?
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 indicates
the language of the post in the subject?
> Ludo’.
>
> 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.
> ;;;
>
> -
> (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 Guix community via email. You can post messages in English though we
> +also accept other languages.")
> + ("eo"
> + "Subskribu al la retmesaĝolisto \"Help\" por demandi helpon pri
> +GuixSD kaj GNU Guix al la grupo. Vi povas skribi esperantlingve.")
> + ("fr"
> + "Abonnez-vous à la liste de diffusion « Help » pour obtenir l'aide
> +de la communauté sur GuixSD et GNU Guix par courrier électronique. Vous
> +pouvez envoyer des messages en Français."))
> +
> #:url "https://lists.gnu.org/mailman/listinfo/help-guix"
> #:log "https://lists.gnu.org/archive/html/help-guix")
>
> diff --git a/website/apps/base/templates/components.scm b/website/apps/base/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 @@
> "…")))
>
>
> +(define (language-tag lang)
> + `(span (@ (class "button-little button-little-active")
> + (style "float: left; text-align: center; width: 20px; vertical-align: middle"))
> + ,lang))
> +
> (define (contact->shtml contact)
> "Return an SHTML representation of the given contact object.
>
> @@ -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))))
>
>
> (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/css/buttons.css
> index 9e45190..feabcea 100644
> --- a/website/static/base/css/buttons.css
> +++ b/website/static/base/css/buttons.css
> @@ -37,6 +37,7 @@
> }
>
>
> +.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
> +}
--
A88C8ADD129828D7EAC02E52E22F9BBFEE348588
https://n0.is
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-03-02 16:48 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-02 16:02 Posts in languages other than English on help-guix? Ludovic Courtès
2018-03-02 16:47 ` ng0 [this message]
2018-03-02 20:07 ` Andreas Enge
2018-03-02 20:23 ` Catonano
2018-03-03 11:00 ` Catonano
2018-03-02 20:03 ` Andreas Enge
2018-03-02 20:31 ` ng0
2018-03-03 10:00 ` Andreas Enge
2018-03-03 10:37 ` ng0
2018-03-03 15:25 ` Ricardo Wurmus
2018-03-05 8:57 ` Ludovic Courtès
2018-03-05 9:42 ` julien lepiller
2018-03-05 14:14 ` Ludovic Courtès
2018-03-05 15:22 ` julien lepiller
2018-03-10 15:19 ` Ludovic Courtès
2018-03-19 15:20 ` julien lepiller
2018-03-19 16:43 ` Ludovic Courtès
2018-03-03 10:45 ` Hartmut Goebel
2018-03-03 10:52 ` Hartmut Goebel
2018-03-03 11:48 ` Konrad Hinsen
2018-03-02 20:32 ` Gábor Boskovits
2018-03-02 22:18 ` Ludovic Courtès
2018-03-02 22:17 ` Ludovic Courtès
2018-03-03 10:27 ` Clément Lassieur
2018-03-03 14:50 ` Marco van Hulten
2018-03-03 20:06 ` Marius Bakke
2018-03-04 8:39 ` Marco van Hulten
2018-03-03 18:35 ` Leo Famulari
2018-03-03 20:24 ` Alex Vong
2018-03-05 8:45 ` Ludovic Courtès
2018-03-05 15:05 ` Language tag for traditional Chinese (was: Posts in languages other than English on help-guix?) Tobias Geerinckx-Rice
2018-03-06 12:35 ` Language tag for traditional Chinese Alex Vong
2018-03-07 21:34 ` Andreas Enge
2018-03-07 22:39 ` Ludovic Courtès
2018-12-07 9:04 ` Alex Vong
2018-03-05 0:17 ` Posts in languages other than English on help-guix? Eric Bavier
2018-03-07 9:46 ` Oleg Pykhalov
2018-03-08 20:56 ` Alex Kost
2018-03-10 10:39 ` Oleg Pykhalov
2018-03-10 15:11 ` Ludovic Courtès
2018-03-10 15:15 ` Ludovic Courtès
2018-03-17 18:48 ` Chris Marusich
2018-03-17 20:19 ` Chris Marusich
2018-03-19 16:44 ` Ludovic Courtès
2018-03-22 3:22 ` Chris Marusich
2018-03-26 12:49 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180302164745.kzbsg5ir35h6oxe4@abyayala \
--to=ng0@n0.is \
--cc=guix-devel@gnu.org \
--cc=help-guix@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.