[pbs-devel] [PATCH proxmox-backup 6/6] ui: set also extjs language
Dominik Csapak
d.csapak at proxmox.com
Fri Nov 6 11:03:43 CET 2020
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/index.hbs | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/www/index.hbs b/www/index.hbs
index 93df4fc0..346e000c 100644
--- a/www/index.hbs
+++ b/www/index.hbs
@@ -12,11 +12,6 @@
<link rel="stylesheet" type="text/css" href="/fontawesome/css/font-awesome.css?t={{lookup times "font-awesome.css"}}" />
<link rel="stylesheet" type="text/css" href="/widgettoolkit/css/ext6-pmx.css?t={{lookup times "proxmoxlib.js"}}" />
<link rel="stylesheet" type="text/css" href="/css/ext6-pbs.css?t={{lookup times "proxmox-backup-gui.js"}}" />
- {{#if language}}
- <script type='text/javascript' src='/locale/pbs-lang-{{ language }}.js?t={{lookup times "pbs-lang-de.js"}}'></script>
- {{else}}
- <script type='text/javascript'> function gettext(buf) { return buf; } </script>
- {{/if}}
{{#if debug}}
<script type="text/javascript" src="/extjs/ext-all-debug.js?t={{lookup times "ext-all.js"}}"></script>
<script type="text/javascript" src="/extjs/charts-debug.js?t={{lookup times "ext-all.js"}}"></script>
@@ -24,6 +19,13 @@
<script type="text/javascript" src="/extjs/ext-all.js?t={{lookup times "ext-all.js"}}"></script>
<script type="text/javascript" src="/extjs/charts.js?t={{lookup times "ext-all.js"}}"></script>
{{/if}}
+ {{#if language}}
+ <script type='text/javascript' src='/locale/pbs-lang-{{ language }}.js?t={{lookup times "pbs-lang-de.js"}}'></script>
+ <script type="text/javascript" src="/extjs/locale/locale-{{ language }}.js?t={{lookup times "ext-all.js"}}"></script>
+ {{else}}
+ <script type='text/javascript'> function gettext(buf) { return buf; } </script>
+ <script type="text/javascript" src="/extjs/locale/locale-en.js?t={{lookup times "ext-all.js"}}"></script>
+ {{/if}}
<script type="text/javascript">
Proxmox = {
Setup: { auth_cookie_name: 'PBSAuthCookie' },
@@ -33,7 +35,6 @@
};
</script>
<script type="text/javascript" src="/widgettoolkit/proxmoxlib.js?t={{lookup times "proxmoxlib.js"}}"></script>
- <script type="text/javascript" src="/extjs/locale/locale-en.js?t={{lookup times "ext-all.js"}}"></script>
<script type="text/javascript">
Ext.History.fieldid = 'x-history-field';
</script>
--
2.20.1
More information about the pbs-devel
mailing list