public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH widget-toolkit v3 1/2] add context to translatable strings
Date: Wed, 30 Jul 2025 15:35:06 +0200	[thread overview]
Message-ID: <20250730133516.409663-5-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20250730133516.409663-1-m.sandoval@proxmox.com>

These will be displayed in translator editors and provide context for
translators.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/Utils.js                        | 2 ++
 src/form/MultiDiskSelector.js       | 1 +
 src/panel/NotificationConfigView.js | 1 +
 src/window/ZFSDetail.js             | 1 +
 4 files changed, 5 insertions(+)

diff --git a/src/Utils.js b/src/Utils.js
index 92cbf28..40b27d1 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -786,6 +786,7 @@ Ext.define('Proxmox.Utils', {
 
         format_size: function (size, useSI) {
             let unitsSI = [
+                // TRANSLATORS: This is the Bytes unit (e.g. 1B = 8 bits)
                 gettext('B'),
                 gettext('KB'),
                 gettext('MB'),
@@ -797,6 +798,7 @@ Ext.define('Proxmox.Utils', {
                 gettext('YB'),
             ];
             let unitsIEC = [
+                // TRANSLATORS: This is the Bytes unit (e.g. 1B = 8 bits)
                 gettext('B'),
                 gettext('KiB'),
                 gettext('MiB'),
diff --git a/src/form/MultiDiskSelector.js b/src/form/MultiDiskSelector.js
index 50e819b..51c3858 100644
--- a/src/form/MultiDiskSelector.js
+++ b/src/form/MultiDiskSelector.js
@@ -115,6 +115,7 @@ Ext.define('Proxmox.form.MultiDiskSelector', {
             flex: 1,
         },
         {
+            // TRANSLATORS: This is a noun
             header: gettext('Order'),
             xtype: 'widgetcolumn',
             dataIndex: 'order',
diff --git a/src/panel/NotificationConfigView.js b/src/panel/NotificationConfigView.js
index 92e1f9b..85e45a0 100644
--- a/src/panel/NotificationConfigView.js
+++ b/src/panel/NotificationConfigView.js
@@ -163,6 +163,7 @@ Ext.define('Proxmox.panel.NotificationEndpointView', {
         },
         {
             dataIndex: 'name',
+            // TRANSLATORS: As in "the target's name"
             text: gettext('Target Name'),
             renderer: Ext.String.htmlEncode,
             flex: 2,
diff --git a/src/window/ZFSDetail.js b/src/window/ZFSDetail.js
index 1c63b5a..2617b87 100644
--- a/src/window/ZFSDetail.js
+++ b/src/window/ZFSDetail.js
@@ -83,6 +83,7 @@ Ext.define('Proxmox.window.ZFSDetail', {
                     renderer: Proxmox.Utils.render_zfs_health,
                 },
                 scan: {
+                    // TRANSLATORS: This is a noun
                     header: gettext('Scan'),
                 },
                 status: {
-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  parent reply	other threads:[~2025-07-30 13:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-30 13:35 [pve-devel] [PATCH backup/manager/proxmox-datacenter-manager/widget-toolkit/yew-widget-toolkit v3 00/11] Improve " Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH manager v3 1/3] add context to " Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH manager v3 2/3] improve some " Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH manager v3 3/3] use Unicode not equal sign in " Maximiliano Sandoval
2025-07-30 13:35 ` Maximiliano Sandoval [this message]
2025-07-30 13:35 ` [pve-devel] [PATCH widget-toolkit v3 2/2] use WebAuthn in translatable string Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH backup v3 1/3] add translators comments to some translations Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH backup v3 2/3] improve some translatable strings Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH backup v3 3/3] use WebAuthn in " Maximiliano Sandoval
2025-07-30 13:35 ` [pve-devel] [PATCH proxmox-datacenter-manager v3 1/2] add context to " Maximiliano Sandoval
2025-09-08 13:04   ` [pve-devel] applied: " Thomas Lamprecht
2025-07-30 13:35 ` [pve-devel] [PATCH proxmox-datacenter-manager v3 2/2] improve " Maximiliano Sandoval
2025-09-08 13:04   ` [pve-devel] applied: " Thomas Lamprecht
2025-07-30 13:35 ` [pve-devel] [PATCH yew-widget-toolkit v3 1/1] " Maximiliano Sandoval

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=20250730133516.409663-5-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal