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: [PATCH manager 1/5] ui: mark some strings as translatable
Date: Thu, 26 Nov 2026 14:16:11 +0100	[thread overview]
Message-ID: <20261126131617.229829-2-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20261126131617.229829-1-m.sandoval@proxmox.com>

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 www/manager6/ceph/CephInstallWizard.js        | 8 ++++----
 www/manager6/ceph/FS.js                       | 2 +-
 www/manager6/ceph/Pool.js                     | 4 ++--
 www/manager6/form/AgentFeatureSelector.js     | 2 +-
 www/manager6/form/SpiceEnhancementSelector.js | 4 ++--
 www/manager6/form/TFASelector.js              | 6 +++---
 www/manager6/qemu/Options.js                  | 2 +-
 www/manager6/storage/PBSEdit.js               | 2 +-
 8 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js
index 372a5d368..f151deda4 100644
--- a/www/manager6/ceph/CephInstallWizard.js
+++ b/www/manager6/ceph/CephInstallWizard.js
@@ -557,7 +557,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
                     xtype: 'proxmoxNetworkSelector',
                     name: 'network',
                     value: '',
-                    fieldLabel: 'Public Network IP/CIDR',
+                    fieldLabel: gettext('Public Network IP/CIDR'),
                     autoSelect: false,
                     type: 'include_sdn',
                     bind: {
@@ -570,7 +570,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
                 {
                     xtype: 'proxmoxNetworkSelector',
                     name: 'cluster-network',
-                    fieldLabel: 'Cluster Network IP/CIDR',
+                    fieldLabel: gettext('Cluster Network IP/CIDR'),
                     allowBlank: true,
                     autoSelect: false,
                     type: 'include_sdn',
@@ -605,7 +605,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
                 {
                     xtype: 'numberfield',
                     name: 'size',
-                    fieldLabel: 'Number of replicas',
+                    fieldLabel: gettext('Number of replicas'),
                     bind: {
                         value: '{replicas}',
                     },
@@ -616,7 +616,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
                 {
                     xtype: 'numberfield',
                     name: 'min_size',
-                    fieldLabel: 'Minimum replicas',
+                    fieldLabel: gettext('Minimum replicas'),
                     bind: {
                         maxValue: '{replicas}',
                         value: '{minreplicas}',
diff --git a/www/manager6/ceph/FS.js b/www/manager6/ceph/FS.js
index 5f0492555..b416c708b 100644
--- a/www/manager6/ceph/FS.js
+++ b/www/manager6/ceph/FS.js
@@ -35,7 +35,7 @@ Ext.define('PVE.CephCreateFS', {
         },
         {
             xtype: 'proxmoxintegerfield',
-            fieldLabel: 'Placement Groups',
+            fieldLabel: gettext('Placement Groups'),
             name: 'pg_num',
             value: 128,
             emptyText: 128,
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index c23e2a478..65080e87c 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -172,7 +172,7 @@ Ext.define('PVE.CephPoolInputPanel', {
         },
         {
             xtype: 'proxmoxintegerfield',
-            fieldLabel: '# of PGs',
+            fieldLabel: gettext('# of PGs'),
             name: 'pg_num',
             value: 128,
             minValue: 1,
@@ -221,7 +221,7 @@ Ext.define('PVE.CephPoolInputPanel', {
         },
         {
             xtype: 'proxmoxintegerfield',
-            fieldLabel: 'Min. # of PGs',
+            fieldLabel: gettext('Min. # of PGs'),
             name: 'pg_num_min',
             minValue: 0,
             allowBlank: true,
diff --git a/www/manager6/form/AgentFeatureSelector.js b/www/manager6/form/AgentFeatureSelector.js
index 5230e7d1d..8c6c49654 100644
--- a/www/manager6/form/AgentFeatureSelector.js
+++ b/www/manager6/form/AgentFeatureSelector.js
@@ -75,7 +75,7 @@ Ext.define('PVE.form.AgentFeatureSelector', {
             name: 'type',
             value: '__default__',
             deleteEmpty: false,
-            fieldLabel: 'Type',
+            fieldLabel: gettext('Type'),
             comboItems: [
                 ['__default__', Proxmox.Utils.defaultText + ' (VirtIO)'],
                 ['virtio', 'VirtIO'],
diff --git a/www/manager6/form/SpiceEnhancementSelector.js b/www/manager6/form/SpiceEnhancementSelector.js
index 569fd9522..48c235b10 100644
--- a/www/manager6/form/SpiceEnhancementSelector.js
+++ b/www/manager6/form/SpiceEnhancementSelector.js
@@ -10,7 +10,7 @@ Ext.define('PVE.form.SpiceEnhancementSelector', {
             itemId: 'foldersharing',
             name: 'foldersharing',
             reference: 'foldersharing',
-            fieldLabel: 'Folder Sharing',
+            fieldLabel: gettext('Folder Sharing'),
             uncheckedValue: 0,
         },
         {
@@ -18,7 +18,7 @@ Ext.define('PVE.form.SpiceEnhancementSelector', {
             itemId: 'videostreaming',
             name: 'videostreaming',
             value: 'off',
-            fieldLabel: 'Video Streaming',
+            fieldLabel: gettext('Video Streaming'),
             comboItems: [
                 ['off', 'off'],
                 ['all', 'all'],
diff --git a/www/manager6/form/TFASelector.js b/www/manager6/form/TFASelector.js
index ddd79ce5e..383d39a6a 100644
--- a/www/manager6/form/TFASelector.js
+++ b/www/manager6/form/TFASelector.js
@@ -123,7 +123,7 @@ Ext.define('PVE.form.TFASelector', {
             hidden: true,
             submitValue: false,
             allowBlank: false,
-            fieldLabel: 'Yubico API Id',
+            fieldLabel: gettext('Yubico API ID'),
             bind: {
                 value: '{id}',
                 hidden: '{!isYubico}',
@@ -135,7 +135,7 @@ Ext.define('PVE.form.TFASelector', {
             hidden: true,
             submitValue: false,
             allowBlank: false,
-            fieldLabel: 'Yubico API Key',
+            fieldLabel: gettext('Yubico API Key'),
             bind: {
                 value: '{key}',
                 hidden: '{!isYubico}',
@@ -146,7 +146,7 @@ Ext.define('PVE.form.TFASelector', {
             xtype: 'textfield',
             hidden: true,
             submitValue: false,
-            fieldLabel: 'Yubico URL',
+            fieldLabel: gettext('Yubico URL'),
             bind: {
                 value: '{url}',
                 hidden: '{!isYubico}',
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index fa0dac3a7..8e5dee710 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -295,7 +295,7 @@ Ext.define('PVE.qemu.Options', {
                 editor: caps.vms['VM.Config.HWType'] ? 'PVE.qemu.Smbios1Edit' : undefined,
             },
             agent: {
-                header: 'QEMU Guest Agent',
+                header: gettext('QEMU Guest Agent'),
                 defaultValue: false,
                 renderer: PVE.Utils.render_qga_features,
                 editor: caps.vms['VM.Config.Options']
diff --git a/www/manager6/storage/PBSEdit.js b/www/manager6/storage/PBSEdit.js
index 71a72916f..b79d0e35a 100644
--- a/www/manager6/storage/PBSEdit.js
+++ b/www/manager6/storage/PBSEdit.js
@@ -573,7 +573,7 @@ Ext.define('PVE.storage.PBSInputPanel', {
                 xtype: me.isCreate ? 'textfield' : 'displayfield',
                 name: 'datastore',
                 value: '',
-                fieldLabel: 'Datastore',
+                fieldLabel: gettext('Datastore'),
                 allowBlank: false,
             },
             {
-- 
2.47.3





  reply	other threads:[~2026-11-26 13:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 13:16 [PATCH manager 0/5] ui: improvements on translatable strings post 9.3 Maximiliano Sandoval
2026-11-26 13:16 ` Maximiliano Sandoval [this message]
2026-11-26 13:16 ` [PATCH manager 2/5] ui: prefer starting actions with verbs Maximiliano Sandoval
2026-11-26 13:16 ` [PATCH manager 3/5] ui: s/Bluestore/BlueStore/ on translatable string Maximiliano Sandoval
2026-11-26 13:16 ` [PATCH manager 4/5] ui: Use qga's full name in translatable strings Maximiliano Sandoval
2026-11-26 13:16 ` [PATCH manager 5/5] ui: add context to nouns which match a verb 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=20261126131617.229829-2-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