all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#63836] [PATCH guix-artwork] website: data: Discard translations in help blurbs.
@ 2023-06-02 10:20 Florian Pelz
  2023-06-05 12:08 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Pelz @ 2023-06-02 10:20 UTC (permalink / raw)
  To: 63836; +Cc: Florian Pelz

We no longer need the blurbs, now that the website has
gettext translations that are reasonably complete, except
Hungarian, which we lose.

* website/apps/base/data.scm (contact-media)["Help Mailing List"]:
Drop legacy blurbs.
---
 website/apps/base/data.scm | 68 ++------------------------------------
 1 file changed, 3 insertions(+), 65 deletions(-)

diff --git a/website/apps/base/data.scm b/website/apps/base/data.scm
index ad44a10..bd2c7ab 100644
--- a/website/apps/base/data.scm
+++ b/website/apps/base/data.scm
@@ -44,73 +44,11 @@ English)."))
    (contact
     #:name (G_ "Help Mailing List")
     #:description
-    ;; Compute an association list from language code to blurb.
-    ;; If possible, look up translated blurbs from the PO file.
-    ;; Fall back to old hard-coded translations.
-    (let ((original '(G_
-                      "Subscribe to the Help mailing list to get support
+    (G_
+     `(p
+       "Subscribe to the Help mailing list to get support
 from the GNU Guix community via email.  You can post messages in English
 though we also accept other languages."))
-          (lang-code '(C_ "unique lingua code like en or zh-cn" "en")))
-      (sort
-       (delete-duplicates
-        (append
-         (delete ;delete untranslated blurbs other than "en"
-          (cons original lang-code)
-          (map-in-order
-           (lambda (lingua)
-             (begin
-               (setlocale LC_ALL (string-append lingua ".utf8"))
-               (let ((out (list (gettext (string-append
-                                          (cadr lang-code) ;msgctxt
-                                          (string #\eot) ;separates msgctxt
-                                          (caddr lang-code))) ;msgid
-                                (gettext (cadr original)))))
-                 (setlocale LC_ALL "")
-                 (if (string-index (car out) #\eot) ;if untranslated
-                     (list (caddr lang-code) (cadr original)) ;use original
-                     out)))) ;else use what has been looked up via gettext
-           %linguas)
-          (lambda (to-delete b) (and ;delete where text is equal to original
-                                 (string=? (cadar to-delete) (cadr b))
-                                 ;; but language code is different
-                                 (not (string=? (cadddr to-delete) (car b))))))
-         `(("eo"
-            "Subskribu al la retmesaĝolisto \"Help\" por demandi helpon pri
-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 GNU Guix par courrier électronique.  Vous
-pouvez envoyer des messages en français.")
-           ("hu"
-            "Iratkozzon fel a „Help“ levelezőlistára, hogy segítséget kaphasson
-e-mailben a Guix System és a GNU Guix közösségtől. Magyarul is küldhet
-üzeneteket.")
-           ("it"
-            "Iscrivetevi alla mailing list 'Help' per essere aiutati da altri
-utenti di Guix e Guix System.  Potete scrivere sulla mailing list anche in
-italiano.")
-           ("ja"
-            "メールでGNU GuixとGuix Systemのコミュニティからサポートを受けるには、
-「Help」のメーリングリストに登録してください。
-メッセージ内容は日本語でも問題ございませんが、多言語でも受け付けております。")
-           ("nb"
-            "Meld deg på diskusjonslisten «Help» for å få råd og tips fra
-andre Guix System- og GNU Guix-brukere via e-post.  Du kan legge inn
-meldinger på norsk.")
-           ("nl"
-            "Abonneer je op de discussielijst \"Help\" om hulp te vragen
-van de Guix System- en GNU Guix-gemeenschap.  Je kunt berichten sturen in
-het Nederlands.")
-           ("ru"
-            "Подпишитесь на список рассылки «Help», чтобы получить помощь от
-сообщества Guix System и GNU Guix по электронной почте.  Вы можете писать на русском
-языке.")
-           ("zh-Hant"
-            "訂閱「Help」郵件群組以電郵從Guix System及GNU Guix社群取得支援。你可以使用
-正體、繁體中文發送訊息。")))
-        (lambda (a b) (string=? (car a) (car b))))
-       (lambda (a b) (string<? (car a) (car b)))))
     #:url "https://lists.gnu.org/mailman/listinfo/help-guix"
     #:log "https://lists.gnu.org/archive/html/help-guix")
 

base-commit: dbc448b94a25564a7bb5d139243a5ea7845529dd
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#63836] [PATCH guix-artwork] website: data: Discard translations in help blurbs.
  2023-06-02 10:20 [bug#63836] [PATCH guix-artwork] website: data: Discard translations in help blurbs Florian Pelz
@ 2023-06-05 12:08 ` Ludovic Courtès
  2023-06-06  6:32   ` bug#63836: " pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2023-06-05 12:08 UTC (permalink / raw)
  To: Florian Pelz; +Cc: 63836

Hallo,

Florian Pelz <pelzflorian@pelzflorian.de> skribis:

> We no longer need the blurbs, now that the website has
> gettext translations that are reasonably complete, except
> Hungarian, which we lose.
>
> * website/apps/base/data.scm (contact-media)["Help Mailing List"]:
> Drop legacy blurbs.

LGTM, thank you!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#63836: [PATCH guix-artwork] website: data: Discard translations in help blurbs.
  2023-06-05 12:08 ` Ludovic Courtès
@ 2023-06-06  6:32   ` pelzflorian (Florian Pelz)
  0 siblings, 0 replies; 3+ messages in thread
From: pelzflorian (Florian Pelz) @ 2023-06-06  6:32 UTC (permalink / raw)
  To: 63836-done; +Cc: Ludovic Courtès

Pushed as 42bfae16b7f09c4ec3765c3177d5d976f618ff21, thank you!

Regards,
Florian




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-06  6:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-02 10:20 [bug#63836] [PATCH guix-artwork] website: data: Discard translations in help blurbs Florian Pelz
2023-06-05 12:08 ` Ludovic Courtès
2023-06-06  6:32   ` bug#63836: " pelzflorian (Florian Pelz)

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.