[pve-devel] [PATCH manager] Better Status description for jobs which are about to be run

Emmanuel Kasper e.kasper at proxmox.com
Tue Jun 20 16:42:54 CEST 2017


---
NB: 'pending' has not been translated yet. We have only 'pending changes'.
However new features might need new text to be understood.

 PVE/CLI/pvesr.pm                 | 2 +-
 www/manager6/grid/Replication.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/CLI/pvesr.pm b/PVE/CLI/pvesr.pm
index 61db455e..f5d4db5b 100644
--- a/PVE/CLI/pvesr.pm
+++ b/PVE/CLI/pvesr.pm
@@ -360,7 +360,7 @@ my $print_job_status = sub {
 	    if ($next > $now) {
 		$nextstr = strftime("%Y-%m-%d_%H:%M:%S", localtime($job->{next_sync}));
 	    } else {
-		$nextstr = 'now';
+		$nextstr = 'pending';
 	    }
 	}
 
diff --git a/www/manager6/grid/Replication.js b/www/manager6/grid/Replication.js
index 942c7263..ce8e1c05 100644
--- a/www/manager6/grid/Replication.js
+++ b/www/manager6/grid/Replication.js
@@ -390,7 +390,7 @@ Ext.define('PVE.grid.ReplicaView', {
 			var next = new Date(value*1000);
 
 			if (next < now) {
-			    return gettext('now');
+			    return gettext('pending');
 			}
 
 			return PVE.Utils.render_timestamp(value);
-- 
2.11.0





More information about the pve-devel mailing list