In the file /usr/bin/pveproxy we have:
In many places we see gettext('string') type constructs, there is no /usr/share/pve-manager/root/pve-lang-en.js file and expect the gettext string to be passed as is from the above code.
Some data are taken to fill the combo boxes - how do we change such strings?
Code:
_EOJS
my $langfile = "/usr/share/pve-manager/ext4/locale/ext-lang-${lang}.js";
$jssrc .= PVE::Tools::file_get_contents($langfile) if -f $langfile;
my $i18nsrc;
$langfile = "/usr/share/pve-manager/root/pve-lang-${lang}.js";
if (-f $langfile) {
$i18nsrc = PVE::Tools::file_get_contents($langfile);
} else {
$i18nsrc = 'function gettext(buf) { return buf; }';
}
$jssrc .= <<_EOJS;
In many places we see gettext('string') type constructs, there is no /usr/share/pve-manager/root/pve-lang-en.js file and expect the gettext string to be passed as is from the above code.
Some data are taken to fill the combo boxes - how do we change such strings?