mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-22 17:17:49 +00:00
i18n: mark strings as translatable
Note that N/A is already translatable in other places. Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
502c84b1ee
commit
2834a05d2b
@ -155,7 +155,11 @@ utilities: {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getNoSubKeyHtml: function(url) {
|
getNoSubKeyHtml: function(url) {
|
||||||
return Ext.String.format('You do not have a valid subscription for this server. Please visit <a target="_blank" href="{0}">www.proxmox.com</a> to get a list of available options.', url || 'https://www.proxmox.com');
|
let html_url = Ext.String.format('<a target="_blank" href="{0}">www.proxmox.com</a>', url || 'https://www.proxmox.com');
|
||||||
|
return Ext.String.format(
|
||||||
|
gettext('You do not have a valid subscription for this server. Please visit {0} to get a list of available options.'),
|
||||||
|
html_url,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
format_boolean_with_default: function(value) {
|
format_boolean_with_default: function(value) {
|
||||||
|
@ -26,7 +26,7 @@ Ext.define('Proxmox.node.DNSView', {
|
|||||||
run_editor: run_editor,
|
run_editor: run_editor,
|
||||||
rows: {
|
rows: {
|
||||||
search: {
|
search: {
|
||||||
header: 'Search domain',
|
header: gettext('Search domain'),
|
||||||
required: true,
|
required: true,
|
||||||
renderer: Ext.htmlEncode,
|
renderer: Ext.htmlEncode,
|
||||||
},
|
},
|
||||||
|
@ -325,14 +325,14 @@ Ext.define('Proxmox.DiskList', {
|
|||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Mounted',
|
header: gettext('Mounted'),
|
||||||
width: 60,
|
width: 60,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
renderer: Proxmox.Utils.format_boolean,
|
renderer: Proxmox.Utils.format_boolean,
|
||||||
dataIndex: 'mounted',
|
dataIndex: 'mounted',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Wearout',
|
header: gettext('Wearout'),
|
||||||
width: 90,
|
width: 90,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
@ -341,7 +341,7 @@ Ext.define('Proxmox.DiskList', {
|
|||||||
if (Ext.isNumeric(value)) {
|
if (Ext.isNumeric(value)) {
|
||||||
return (100 - value).toString() + '%';
|
return (100 - value).toString() + '%';
|
||||||
}
|
}
|
||||||
return 'N/A';
|
return gettext('N/A');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1025,7 +1025,7 @@ Ext.define('Proxmox.panel.NotificationMatchRuleSettings', {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldLabel: 'Match Type',
|
fieldLabel: gettext('Match Type'),
|
||||||
xtype: 'proxmoxKVComboBox',
|
xtype: 'proxmoxKVComboBox',
|
||||||
reference: 'type',
|
reference: 'type',
|
||||||
isFormField: false,
|
isFormField: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user