Where are the PVE English Strings?

apmuthu

Renowned Member
Feb 26, 2009
808
8
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!