]> git.proxmox.com Git - pmg-gui.git/commitdiff
add default gettext definition in case of no langfile
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 6 Mar 2018 08:06:27 +0000 (09:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 8 Mar 2018 10:42:21 +0000 (11:42 +0100)
this is needed, because the gettext funciton is defined in the langfile

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
pmg-index.html.tt

index 1e2354a2c36580aa5da9c6a76e2a9b340d757eff..1f3bc65e8639fe39dc82aa9cdbf1c1143f5a59da 100644 (file)
@@ -14,6 +14,8 @@
     <link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pmg.css" />
     [% IF langfile %]
     <script type='text/javascript' src='/pve2/locale/pmg-lang-[% lang %].js'></script>
+    [% ELSE %]
+    <script type='text/javascript'> function gettext(buf) { return buf; } </script>
     [%- END %]
     [% IF debug %]
     <script type="text/javascript" src="/pve2/ext6/ext-all-debug.js"></script>