Where are the PVE English Strings?

apmuthu

Renowned Member
Feb 26, 2009
871
11
83
Chennai - India & Singapore
github.com
In the file /usr/bin/pveproxy we have:

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?
 
Actually the English strings are strewn all over as the argument to the gettext() function and there seems to be no pve English translation file unless one customises it like the other language ones or takes it from the .pot file. Many strings are in the various .pm files taken from diverse sources or cocatenated from various .js files into pvemanager.js.