public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager 0/5] ui: improvements on translatable strings post 9.3
@ 2026-11-26 13:16 Maximiliano Sandoval
  2026-11-26 13:16 ` [PATCH manager 1/5] ui: mark some strings as translatable Maximiliano Sandoval
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2026-11-26 13:16 UTC (permalink / raw)
  To: pve-devel

I found these while translating the new strings introduced for 9.3. There are
still some other low hanging fruits like, e.g. differenciating between "Backup"
as a noun or as a verb, but it also requires to verify all the 21 times this
particular string is used.

Maximiliano Sandoval (5):
  ui: mark some strings as translatable
  ui: prefer starting actions with verbs
  ui: s/Bluestore/BlueStore/ on translatable string
  ui: Use qga's full name in translatable strings
  ui: add context to nouns which match a verb

 www/manager6/Utils.js                         | 2 +-
 www/manager6/ceph/CephInstallWizard.js        | 8 ++++----
 www/manager6/ceph/FS.js                       | 2 +-
 www/manager6/ceph/OSD.js                      | 2 +-
 www/manager6/ceph/Pool.js                     | 4 ++--
 www/manager6/dc/SAN.js                        | 2 +-
 www/manager6/dc/StorageView.js                | 2 +-
 www/manager6/form/AgentFeatureSelector.js     | 2 +-
 www/manager6/form/SpiceEnhancementSelector.js | 4 ++--
 www/manager6/form/TFASelector.js              | 6 +++---
 www/manager6/qemu/Options.js                  | 4 ++--
 www/manager6/qemu/SystemEdit.js               | 2 +-
 www/manager6/storage/NFSEdit.js               | 2 +-
 www/manager6/storage/PBSEdit.js               | 2 +-
 www/manager6/window/Migrate.js                | 2 +-
 15 files changed, 23 insertions(+), 23 deletions(-)

-- 
2.47.3





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

* [PATCH manager 1/5] ui: mark some strings as translatable
  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
  2026-11-26 13:16 ` [PATCH manager 2/5] ui: prefer starting actions with verbs Maximiliano Sandoval
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2026-11-26 13:16 UTC (permalink / raw)
  To: pve-devel

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





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

* [PATCH manager 2/5] ui: prefer starting actions with verbs
  2026-11-26 13:16 [PATCH manager 0/5] ui: improvements on translatable strings post 9.3 Maximiliano Sandoval
  2026-11-26 13:16 ` [PATCH manager 1/5] ui: mark some strings as translatable Maximiliano Sandoval
@ 2026-11-26 13:16 ` Maximiliano Sandoval
  2026-11-26 13:16 ` [PATCH manager 3/5] ui: s/Bluestore/BlueStore/ on translatable string Maximiliano Sandoval
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2026-11-26 13:16 UTC (permalink / raw)
  To: pve-devel

On buttons that perform actions or open a dialog that helps perform such
an action, it is preferable to start the label of the button with a verb
for such action.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 www/manager6/dc/SAN.js         | 2 +-
 www/manager6/window/Migrate.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/dc/SAN.js b/www/manager6/dc/SAN.js
index 550cbfc08..b9ce93745 100644
--- a/www/manager6/dc/SAN.js
+++ b/www/manager6/dc/SAN.js
@@ -29,7 +29,7 @@ Ext.define('pve-san-status', {
 
 Ext.define('PVE.dc.MultipathOverridesEdit', {
     extend: 'Proxmox.window.Edit',
-    subject: gettext('Multipath Overrides'),
+    subject: gettext('Override Multipath Configuration'),
     onlineHelp: 'storage_multipath',
     width: 600,
     autoLoad: true,
diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index 3dd2b9ee5..3035ee14b 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -681,7 +681,7 @@ Ext.define('PVE.window.Migrate', {
                         {
                             xtype: 'proxmoxcheckbox',
                             name: 'configCheck',
-                            fieldLabel: gettext('Config Check'),
+                            fieldLabel: gettext('Check Config'),
                             // match bound default to avoid a spurious change event on open
                             checked: true,
                             autoEl: {
-- 
2.47.3





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

* [PATCH manager 3/5] ui: s/Bluestore/BlueStore/ on translatable string
  2026-11-26 13:16 [PATCH manager 0/5] ui: improvements on translatable strings post 9.3 Maximiliano Sandoval
  2026-11-26 13:16 ` [PATCH manager 1/5] ui: mark some strings as translatable Maximiliano Sandoval
  2026-11-26 13:16 ` [PATCH manager 2/5] ui: prefer starting actions with verbs Maximiliano Sandoval
@ 2026-11-26 13:16 ` 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
  4 siblings, 0 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2026-11-26 13:16 UTC (permalink / raw)
  To: pve-devel

This is the proper spelling. See https://docs.ceph.com/en/reef/rados/configuration/storage-devices/#bluestore.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 www/manager6/ceph/OSD.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index e169bc880..b700d2dd7 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -1260,7 +1260,7 @@ Ext.define('PVE.node.CephOsdTree', {
             width: 100,
         },
         {
-            text: gettext('Bluestore Device'),
+            text: gettext('BlueStore Device'),
             dataIndex: 'blfsdev',
             align: 'right',
             width: 75,
-- 
2.47.3





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

* [PATCH manager 4/5] ui: Use qga's full name in translatable strings
  2026-11-26 13:16 [PATCH manager 0/5] ui: improvements on translatable strings post 9.3 Maximiliano Sandoval
                   ` (2 preceding siblings ...)
  2026-11-26 13:16 ` [PATCH manager 3/5] ui: s/Bluestore/BlueStore/ on translatable string Maximiliano Sandoval
@ 2026-11-26 13:16 ` Maximiliano Sandoval
  2026-11-26 13:16 ` [PATCH manager 5/5] ui: add context to nouns which match a verb Maximiliano Sandoval
  4 siblings, 0 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2026-11-26 13:16 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 www/manager6/qemu/Options.js    | 2 +-
 www/manager6/qemu/SystemEdit.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index 8e5dee710..182dc71c3 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -301,7 +301,7 @@ Ext.define('PVE.qemu.Options', {
                 editor: caps.vms['VM.Config.Options']
                     ? {
                           xtype: 'proxmoxWindowEdit',
-                          subject: gettext('Qemu Agent'),
+                          subject: gettext('QEMU Guest Agent'),
                           width: 350,
                           onlineHelp: 'qm_qemu_agent',
                           items: {
diff --git a/www/manager6/qemu/SystemEdit.js b/www/manager6/qemu/SystemEdit.js
index 8d01c0c47..39a3924ec 100644
--- a/www/manager6/qemu/SystemEdit.js
+++ b/www/manager6/qemu/SystemEdit.js
@@ -158,7 +158,7 @@ Ext.define('PVE.qemu.SystemInputPanel', {
             uncheckedValue: 0,
             defaultValue: 0,
             deleteDefaultValue: true,
-            fieldLabel: gettext('Qemu Agent'),
+            fieldLabel: gettext('QEMU Guest Agent'),
         },
         {
             // fake for spacing
-- 
2.47.3





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

* [PATCH manager 5/5] ui: add context to nouns which match a verb
  2026-11-26 13:16 [PATCH manager 0/5] ui: improvements on translatable strings post 9.3 Maximiliano Sandoval
                   ` (3 preceding siblings ...)
  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 ` Maximiliano Sandoval
  4 siblings, 0 replies; 6+ messages in thread
From: Maximiliano Sandoval @ 2026-11-26 13:16 UTC (permalink / raw)
  To: pve-devel

Otherwise it is not clear if these refer to, e.g. the "import" action or
"import" as a noun.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 www/manager6/Utils.js           | 2 +-
 www/manager6/dc/StorageView.js  | 2 +-
 www/manager6/storage/NFSEdit.js | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index fc3667f51..a7feace96 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -760,7 +760,7 @@ Ext.define('PVE.Utils', {
             iso: gettext('ISO image'),
             rootdir: gettext('Container'),
             snippets: gettext('Snippets'),
-            import: gettext('Import'),
+            import: pgettext('This is a noun', 'Import'),
             'vm-vol': gettext('VM Disk'),
             'vm-state': gettext('VM State'),
             'ct-vol': gettext('Container Volume'),
diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js
index 7f7d8bd0b..9c4f1fd9f 100644
--- a/www/manager6/dc/StorageView.js
+++ b/www/manager6/dc/StorageView.js
@@ -159,7 +159,7 @@ Ext.define(
             { id: 'network', text: gettext('Network') },
             { id: 'san', text: gettext('SAN') },
             { id: 'backup', text: gettext('Backup') },
-            { id: 'import', text: gettext('Import') },
+            { id: 'import', text: pgettext('This is a noun', 'Import') },
             { id: 'custom', text: gettext('Custom Plugins') },
             {
                 id: 'local',
diff --git a/www/manager6/storage/NFSEdit.js b/www/manager6/storage/NFSEdit.js
index 08aa04a2a..c803885b2 100644
--- a/www/manager6/storage/NFSEdit.js
+++ b/www/manager6/storage/NFSEdit.js
@@ -90,7 +90,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
                     xtype: isCreate ? 'pveNFSScan' : 'displayfield',
                     name: 'export',
                     value: '',
-                    fieldLabel: 'Export',
+                    fieldLabel: pgettext('This is a noun', 'Export'),
                     allowBlank: false,
                 },
                 version: {
-- 
2.47.3





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

end of thread, other threads:[~2026-11-26 13:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 13:16 [PATCH manager 0/5] ui: improvements on translatable strings post 9.3 Maximiliano Sandoval
2026-11-26 13:16 ` [PATCH manager 1/5] ui: mark some strings as translatable Maximiliano Sandoval
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

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