mirror of
https://git.proxmox.com/git/proxmox-i18n
synced 2025-10-04 16:13:44 +00:00
Do not add catalog to Proxmox namespace
Because that is initialized/reset later.
This commit is contained in:
parent
ded3002ec3
commit
4a189d3c16
4
po2js.pl
4
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user