Hi Folks
One piece of push back we got with our user acceptance testing was the use of "whitelist" and "blacklist". It was a fairly simple fix of creating /usr/share/pmg-i18n/pmg-lang-en.js to override the defaults. In case anyone else has need:
What I don't know yet is how this will survive an update/upgrade, ie will the message IDs change ...?
Cheers
Toby
One piece of push back we got with our user acceptance testing was the use of "whitelist" and "blacklist". It was a fairly simple fix of creating /usr/share/pmg-i18n/pmg-lang-en.js to override the defaults. In case anyone else has need:
JavaScript:
__proxmox_i18n_msgcat__ = {
"1336346898": ["Allowlist"],
"314166508" : ["Blocklist"],
"646797339" : ["User Allowlist"],
"926364573" : ["User Blocklist"],
"966201948" : ["Use Auto-Allowlists"]
};
function fnv31a(text) {
var len = text.length;
var hval = 0x811c9dc5;
for (var i = 0; i < len; i++) {
var c = text.charCodeAt(i);
hval ^= c;
hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24);
}
hval &= 0x7fffffff;
return hval;
}
function gettext(buf) {
var digest = fnv31a(buf);
var data = __proxmox_i18n_msgcat__[digest];
if (!data) {
return buf;
}
return data[0] || buf;
}
What I don't know yet is how this will survive an update/upgrade, ie will the message IDs change ...?
Cheers
Toby