]> git.proxmox.com Git - proxmox-i18n.git/commitdiff
Do not add catalog to Proxmox namespace
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Oct 2017 10:10:40 +0000 (12:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Oct 2017 10:10:40 +0000 (12:10 +0200)
Because that is initialized/reset later.

po2js.pl

index 067b3fcc3af28fd393357c868f2092efb90d627d..8a00e6c2c871993c4e55712f56f140888ca4888c 100755 (executable)
--- a/po2js.pl
+++ b/po2js.pl
@@ -88,7 +88,7 @@ my $outfile = $options->{o};
 $content .= "// Proxmox Message Catalog: $outfile\n" if $outfile;
 
 $content .= <<__EOD;
-Proxmox = { i18n_msgcat: $json }
+__proxmox_i18n_msgcat__ = $json;
 
 function fnv31a(text) {
     var len = text.length;
@@ -104,7 +104,7 @@ function fnv31a(text) {
 
 function gettext(buf) {
     var digest = fnv31a(buf);
-    var data = Proxmox.i18n_msgcat[digest];
+    var data = __proxmox_i18n_msgcat__[digest];
     if (!data) {
        return buf;
     }