mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
add notransval to fix select options translate issues
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
de685556c8
commit
31f2224a93
4 changed files with 106 additions and 321 deletions
|
@ -783,10 +783,12 @@ function getStringsHtml(name, node) {
|
|||
|
||||
// Check if the "value" attribute exists and needs to be translated
|
||||
var subnodeignore = false;
|
||||
var subnodevalueignore = false;
|
||||
if ((subnode.attributes != null) && (subnode.attributes.length > 0)) {
|
||||
var subnodevalue = null, subnodeplaceholder = null, subnodetitle = null;
|
||||
for (var j in subnode.attributes) {
|
||||
if ((subnode.attributes[j].name == 'notrans') && (subnode.attributes[j].value == '1')) { subnodeignore = true; }
|
||||
if ((subnode.attributes[j].name == 'notransval') && (subnode.attributes[j].value == '1')) { subnodevalueignore = true; }
|
||||
if ((subnode.attributes[j].name == 'type') && (subnode.attributes[j].value == 'hidden')) { subnodeignore = true; }
|
||||
if (subnode.attributes[j].name == 'value') { subnodevalue = subnode.attributes[j].value; }
|
||||
if (subnode.attributes[j].name == 'placeholder') { subnodeplaceholder = subnode.attributes[j].value; }
|
||||
|
@ -795,7 +797,7 @@ function getStringsHtml(name, node) {
|
|||
if ((subnodevalue != null) && isNumber(subnodevalue) == true) { subnodevalue = null; }
|
||||
if ((subnodeplaceholder != null) && isNumber(subnodeplaceholder) == true) { subnodeplaceholder = null; }
|
||||
if ((subnodetitle != null) && isNumber(subnodetitle) == true) { subnodetitle = null; }
|
||||
if ((subnodeignore == false) && (subnodevalue != null)) {
|
||||
if ((subnodeignore == false) && (subnodevalueignore == false) && (subnodevalue != null)) {
|
||||
// Add a new string to the list (value)
|
||||
if (sourceStrings[subnodevalue] == null) { sourceStrings[subnodevalue] = { en: subnodevalue, xloc: [name] }; } else { if (sourceStrings[subnodevalue].xloc == null) { sourceStrings[subnodevalue].xloc = []; } sourceStrings[subnodevalue].xloc.push(name); }
|
||||
}
|
||||
|
|
|
@ -1,38 +1,5 @@
|
|||
{
|
||||
"strings": [
|
||||
{
|
||||
"cs": "",
|
||||
"da": "",
|
||||
"de": "",
|
||||
"en": "",
|
||||
"es": " ",
|
||||
"fi": "",
|
||||
"fr": "",
|
||||
"hi": "",
|
||||
"it": "",
|
||||
"ja": "",
|
||||
"ko": "",
|
||||
"nl": "",
|
||||
"pt": "",
|
||||
"ru": "",
|
||||
"sv": "",
|
||||
"tr": "",
|
||||
"zh-chs": "",
|
||||
"zh-cht": "",
|
||||
"uk": "",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3limitdropdown",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31limitdropdown",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3limitdropdown",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31limitdropdown"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ca": " (",
|
||||
"en": " (",
|
||||
|
@ -3217,9 +3184,7 @@
|
|||
"zh-chs": "1024x768",
|
||||
"zh-cht": "1024x768",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->9",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->9"
|
||||
]
|
||||
},
|
||||
|
@ -3365,9 +3330,7 @@
|
|||
"zh-chs": "1280x800",
|
||||
"zh-cht": "1280x800",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->11",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->11"
|
||||
]
|
||||
},
|
||||
|
@ -3396,9 +3359,7 @@
|
|||
"zh-chs": "1440x900",
|
||||
"zh-cht": "1440x900",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->13",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->13"
|
||||
]
|
||||
},
|
||||
|
@ -3491,9 +3452,7 @@
|
|||
"zh-chs": "1600x900",
|
||||
"zh-cht": "1600x900",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->15",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->15"
|
||||
]
|
||||
},
|
||||
|
@ -3522,9 +3481,7 @@
|
|||
"zh-chs": "1680x1050",
|
||||
"zh-cht": "1680x1050",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->17",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->17"
|
||||
]
|
||||
},
|
||||
|
@ -3553,9 +3510,7 @@
|
|||
"zh-chs": "1920x1080",
|
||||
"zh-cht": "1920x1080",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->19",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->19"
|
||||
]
|
||||
},
|
||||
|
@ -4907,9 +4862,7 @@
|
|||
"zh-chs": "640x480",
|
||||
"zh-cht": "640x480",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize->7",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize->7"
|
||||
]
|
||||
},
|
||||
|
@ -94201,18 +94154,6 @@
|
|||
"default3.handlebars->35->507"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "agentlog",
|
||||
"nl": "agentlog",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "amt:",
|
||||
"ca": "amt:",
|
||||
|
@ -94400,48 +94341,6 @@
|
|||
"default3.handlebars->35->830"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "batchupload",
|
||||
"nL": "batch upload",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "browser",
|
||||
"ca": "browser",
|
||||
"cs": "browser",
|
||||
"da": "browser",
|
||||
"de": "browser",
|
||||
"en": "browser",
|
||||
"es": "browser",
|
||||
"fi": "browser",
|
||||
"fr": "browser",
|
||||
"hi": "browser",
|
||||
"hu": "browser",
|
||||
"it": "browser",
|
||||
"ja": "browser",
|
||||
"ko": "browser",
|
||||
"nl": "browser",
|
||||
"pl": "browser",
|
||||
"pt": "browser",
|
||||
"pt-br": "browser",
|
||||
"ru": "browser",
|
||||
"sv": "browser",
|
||||
"tr": "browser",
|
||||
"zh-chs": "browser",
|
||||
"zh-cht": "browser",
|
||||
"uk": "browser",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "bajtova",
|
||||
"ca": "bytes",
|
||||
|
@ -94498,48 +94397,6 @@
|
|||
"zh-cht": "取消幫助",
|
||||
"uk": "скасуватидопомогу"
|
||||
},
|
||||
{
|
||||
"bs": "canvas",
|
||||
"ca": "canvas",
|
||||
"cs": "canvas",
|
||||
"da": "canvas",
|
||||
"de": "canvas",
|
||||
"en": "canvas",
|
||||
"es": "canvas",
|
||||
"fi": "canvas",
|
||||
"fr": "canvas",
|
||||
"hi": "canvas",
|
||||
"hu": "canvas",
|
||||
"it": "canvas",
|
||||
"ja": "canvas",
|
||||
"ko": "canvas",
|
||||
"nl": "canvas",
|
||||
"pl": "canvas",
|
||||
"pt": "canvas",
|
||||
"pt-br": "canvas",
|
||||
"ru": "canvas",
|
||||
"sv": "canvas",
|
||||
"tr": "canvas",
|
||||
"zh-chs": "canvas",
|
||||
"zh-cht": "canvas",
|
||||
"uk": "canvas",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "changenode",
|
||||
"nl": "wissel node",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "hrom",
|
||||
"ca": "cromat",
|
||||
|
@ -96029,17 +95886,6 @@
|
|||
"default3.handlebars->35->631"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "manual",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "meshagent",
|
||||
"ca": "agent de malla",
|
||||
|
@ -96432,39 +96278,6 @@
|
|||
"player.handlebars->3->15"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "relaylog",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "removenode",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"en": "runcommands",
|
||||
"xloc": [
|
||||
"default.handlebars->container->column_l->p16->3->1->0->5->p16filterevents",
|
||||
"default.handlebars->container->column_l->p3->3->1->0->5->p3filterevents",
|
||||
"default.handlebars->container->column_l->p31->3->1->0->5->p31filterevents",
|
||||
"default3.handlebars->container->column_l->p16->3->1->0->1->1->p16filterevents",
|
||||
"default3.handlebars->container->column_l->p3->3->1->0->1->1->p3filterevents",
|
||||
"default3.handlebars->container->column_l->p31->3->1->0->3->1->p31filterevents"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "safari",
|
||||
"ca": "safari",
|
||||
|
@ -96495,36 +96308,6 @@
|
|||
"player.handlebars->3->14"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "screen",
|
||||
"ca": "screen",
|
||||
"cs": "screen",
|
||||
"da": "screen",
|
||||
"de": "screen",
|
||||
"en": "screen",
|
||||
"es": "screen",
|
||||
"fi": "screen",
|
||||
"fr": "screen",
|
||||
"hi": "screen",
|
||||
"hu": "screen",
|
||||
"it": "screen",
|
||||
"ja": "screen",
|
||||
"ko": "screen",
|
||||
"nl": "screen",
|
||||
"pl": "screen",
|
||||
"pt": "screen",
|
||||
"pt-br": "screen",
|
||||
"ru": "screen",
|
||||
"sv": "screen",
|
||||
"tr": "screen",
|
||||
"zh-chs": "screen",
|
||||
"zh-cht": "screen",
|
||||
"uk": "screen",
|
||||
"xloc": [
|
||||
"default.handlebars->container->dialog->dialogBody->dialog7->d7rdpkvm->3->d7rdpsize",
|
||||
"default3.handlebars->container->xxAddAgentModal->xxAddAgentModalConf->1->xxAddAgentBody->dialog7->d7rdpkvm->3->d7rdpsize"
|
||||
]
|
||||
},
|
||||
{
|
||||
"bs": "servererrors.txt",
|
||||
"ca": "servererrors.txt",
|
||||
|
@ -99566,4 +99349,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue