unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Miguel Ángel Arruga Vivas" <rosen644835@gmail.com>
To: 44455@debbugs.gnu.org
Subject: bug#44455: [ARTWORK] website: Not enough context for translation of None
Date: Thu, 05 Nov 2020 18:51:20 +0100	[thread overview]
Message-ID: <87pn4r7kvb.fsf@gmail.com> (raw)
In-Reply-To: <87y2jg7n0u.fsf@gmail.com> ("Miguel Ángel Arruga Vivas"'s message of "Wed, 04 Nov 2020 23:52:33 +0100")


[-- Attachment #1.1: Type: text/plain, Size: 200 bytes --]

Hi!

The first patch changes "None" usages, but it invalidates the current
translations.  Feel free to push these three together with the one for
German when you have it ready.

Happy hacking!
Miguel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: add-context-to-none.patch --]
[-- Type: text/x-patch, Size: 1548 bytes --]

From 4a9cb613b45432de3d5ec9711c95dec1ea18cf25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?=
 <rosen644835@gmail.com>
Date: Thu, 5 Nov 2020 18:31:18 +0100
Subject: [PATCH 1/3] website: Add context to None translation.

* website/apps/packages/templates/components.scm (patches->shtml): Add
context "patches" for the translation of "None".
(supported-systems->shtml): Add context "systems" for the translation
of "None".
---
 website/apps/packages/templates/components.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/website/apps/packages/templates/components.scm b/website/apps/packages/templates/components.scm
index 59b4857..2695f73 100644
--- a/website/apps/packages/templates/components.scm
+++ b/website/apps/packages/templates/components.scm
@@ -201,7 +201,7 @@
      If the list of patches is empty, return the string 'None'.
      Otherwise, return a list of links to patches."
   (if (null? patches)
-      (G_ "None")
+      (C_ "patches" "None")
       (separate
        (map (lambda (patch)
 	      (link-subtle #:label (ilink-name patch)
@@ -267,7 +267,7 @@
                   %hydra-supported-systems
                   (package-transitive-supported-systems package))))
     (if (null? systems)
-        (G_ "None")
+        (C_ "systems" "None")
         ;; TODO: There's currently no way to refer to a job like
         ;; 'coreutils-8.32' in the Cuirass web UI.  Add such a link once it's
         ;; become available.
-- 
2.28.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: update-pot.patch --]
[-- Type: text/x-patch, Size: 1341 bytes --]

From c499bf4afbb3221d9e9e8fbe69063eac6efab880 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?=
 <rosen644835@gmail.com>
Date: Thu, 5 Nov 2020 18:42:03 +0100
Subject: [PATCH 2/3] website: nls: Update guix-website.pot.

---
 website/po/guix-website.pot | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/website/po/guix-website.pot b/website/po/guix-website.pot
index 4f37532..7e44756 100644
--- a/website/po/guix-website.pot
+++ b/website/po/guix-website.pot
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: guix-website 20201105\n"
+"Project-Id-Version: guix-website 20201105-2\n"
 "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
-"POT-Creation-Date: 2020-11-05 18:12+0100\n"
+"POT-Creation-Date: 2020-11-05 18:38+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1374,7 +1374,13 @@ msgstr ""
 msgid "Browse alphabetically"
 msgstr ""
 
-#: apps/packages/templates/components.scm:204 apps/packages/templates/components.scm:270
+#: apps/packages/templates/components.scm:204
+msgctxt "patches"
+msgid "None"
+msgstr ""
+
+#: apps/packages/templates/components.scm:270
+msgctxt "systems"
 msgid "None"
 msgstr ""
 
-- 
2.28.0


[-- Attachment #1.4: update-es.patch --]
[-- Type: text/x-patch, Size: 1617 bytes --]

From 71202be1b9e4e54a5c9cb741b77887914eab534d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?=
 <rosen644835@gmail.com>
Date: Thu, 5 Nov 2020 18:48:37 +0100
Subject: [PATCH 3/3] website: nls: Update Spanish translation.

---
 website/po/es.po | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/website/po/es.po b/website/po/es.po
index b845aa2..2658eae 100644
--- a/website/po/es.po
+++ b/website/po/es.po
@@ -7,10 +7,10 @@
 # * Feed se traduce como tablón [de anuncios] cuando es posible.
 msgid ""
 msgstr ""
-"Project-Id-Version: guix-website 20201005\n"
+"Project-Id-Version: guix-website 20201005-2\n"
 "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
-"POT-Creation-Date: 2020-11-05 18:12+0100\n"
-"PO-Revision-Date: 2020-11-05 18:43+0100\n"
+"POT-Creation-Date: 2020-11-05 18:38+0100\n"
+"PO-Revision-Date: 2020-11-05 18:48+0100\n"
 "Last-Translator: Miguel Ángel Arruga Vivas <rosen644835@gmail.com>\n"
 "Language-Team: Spanish <es@tp.org.es>\n"
 "Language: es\n"
@@ -2152,12 +2152,16 @@ msgstr "Menú de paquetes: "
 msgid "Browse alphabetically"
 msgstr "Navegar alfabéticamente"
 
-# FUZZY
 #: apps/packages/templates/components.scm:204
-#: apps/packages/templates/components.scm:270
+msgctxt "patches"
 msgid "None"
 msgstr "No hay"
 
+#: apps/packages/templates/components.scm:270
+msgctxt "systems"
+msgid "None"
+msgstr "Ninguno"
+
 #: apps/packages/templates/detailed-index.scm:22
 #: apps/packages/templates/detailed-package-list.scm:25
 #: apps/packages/templates/index.scm:22
-- 
2.28.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]

  reply	other threads:[~2020-11-05 17:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-04 22:52 bug#44455: [ARTWORK] website: Not enough context for translation of None Miguel Ángel Arruga Vivas
2020-11-05 17:51 ` Miguel Ángel Arruga Vivas [this message]
2020-11-06 10:42   ` pelzflorian (Florian Pelz)

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn4r7kvb.fsf@gmail.com \
    --to=rosen644835@gmail.com \
    --cc=44455@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).