[pve-devel] [PATCH widget-toolkit v3 1/2] add context to translatable strings
Maximiliano Sandoval
m.sandoval at proxmox.com
Wed Jul 30 15:35:06 CEST 2025
These will be displayed in translator editors and provide context for
translators.
Signed-off-by: Maximiliano Sandoval <m.sandoval at 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
More information about the pve-devel
mailing list