[pve-devel] applied: [PATCH manager] gui: tree/SnapshotTree: fix gettext invocation

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Feb 5 20:26:41 CET 2020


On 2/5/20 11:58 AM, Dominik Csapak wrote:
> our gettext extractor cannot handle such statements to extract the
> gettext, so change it to two gettexts
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  www/manager6/tree/SnapshotTree.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/www/manager6/tree/SnapshotTree.js b/www/manager6/tree/SnapshotTree.js
> index e186bea7..0636ef68 100644
> --- a/www/manager6/tree/SnapshotTree.js
> +++ b/www/manager6/tree/SnapshotTree.js
> @@ -22,7 +22,7 @@ Ext.define('PVE.guest.SnapshotTree', {
>  	    canRollback: (get) => get('rollbackAllowed') && get('isSnapshot'),
>  	    canRemove: (get) => get('snapshotAllowed') && get('isSnapshot'),
>  	    isSnapshot: (get) => get('selected') && get('selected') !== 'current',
> -	    buttonText: (get) => gettext(get('snapshotAllowed') ? 'Edit' : 'View'),
> +	    buttonText: (get) => get('snapshotAllowed') ? gettext('Edit') : gettext('View'),
>  	    showMemory: (get) => get('type') === 'qemu',
>  	},
>      },
> 

applied, thanks!



More information about the pve-devel mailing list