[pbs-devel] [PATCH proxmox-backup] ui: running tasks: Use gettext for column labels

Dominic Jäger d.jaeger at proxmox.com
Tue Jan 5 12:34:31 CET 2021


Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
 www/dashboard/RunningTasks.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/dashboard/RunningTasks.js b/www/dashboard/RunningTasks.js
index f990a6e2..4529d0d3 100644
--- a/www/dashboard/RunningTasks.js
+++ b/www/dashboard/RunningTasks.js
@@ -69,13 +69,13 @@ Ext.define('PBS.RunningTasks', {
 
     columns: [
 	{
-	    text: 'Task',
+	    text: gettext('Task'),
 	    dataIndex: 'upid',
 	    renderer: Proxmox.Utils.render_upid,
 	    flex: 2,
 	},
 	{
-	    text: 'Starttime',
+	    text: gettext('Starttime'),
 	    dataIndex: 'starttime',
 	    renderer: function(value) {
 		return Ext.Date.format(value, "Y-m-d H:i:s");
@@ -83,7 +83,7 @@ Ext.define('PBS.RunningTasks', {
 	    flex: 1,
 	},
 	{
-	    text: 'Duration',
+	    text: gettext('Duration'),
 	    dataIndex: 'duration',
 	    renderer: function(value, md, record) {
 		return Proxmox.Utils.format_duration_human((Date.now() - record.data.starttime)/1000);
-- 
2.20.1





More information about the pbs-devel mailing list