Do not add catalog to Proxmox namespace

Because that is initialized/reset later.
This commit is contained in:
Dietmar Maurer 2017-10-04 12:10:40 +02:00
parent ded3002ec3
commit 4a189d3c16

View File

@ -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;
}