mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-05-22 01:53:47 -04:00
fix Chinese Simplified/Traditional in web ui for now #7026
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
fa7f194ed1
commit
001cdd1aab
@ -9478,6 +9478,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
var fileOptions = obj.renderPages[domain.id][obj.path.basename(filename)];
|
||||
if (fileOptions != null) {
|
||||
for (var i in acceptLanguages) {
|
||||
if (acceptLanguages[i] == 'zh-tw') { acceptLanguages[i] = 'zh-chs'; } // Change newer "zh-tw" to legacy "zh-chs" for now
|
||||
if (acceptLanguages[i] == 'zh-cn') { acceptLanguages[i] = 'zh-cht'; } // Change newer "zh-ch" to legacy "zh-cht" for now
|
||||
if ((acceptLanguages[i] == 'en') || (acceptLanguages[i].startsWith('en-'))) {
|
||||
// English requested
|
||||
args.lang = 'en';
|
||||
|
Loading…
x
Reference in New Issue
Block a user