Refine product copy and native Korean menu with lossless character previews
This commit is contained in:
1 parent
5e3303cba8
commit
dbe2c1f41f
30 files changed
+342
-282
No files matched your search
@@ -14,7 +14,7 @@ for(const [k,v] of Object.entries({...T.de,...T.en})){
|
||||
if(vars(v)!==vars(ko[k]))throw Error('Placeholders: '+k);
|
||||
}
|
||||
s=s.replace(/\/\* ITOSM_KO_BEGIN \*\/[\s\S]*?\/\* ITOSM_KO_END \*\/\n?/,'');
|
||||
s=s.replace("let lang = 'de';",'/* ITOSM_KO_BEGIN */\nT.ko = '+JSON.stringify(ko,null,2)+';\nT.en.menuKo="Korean A+C device menu";\nT.en.menuKoHint="Experimental Korean device menu: PC preview and build checks only; hardware, save and restore are not yet verified. Back up your ROM and saves before applying. Original game, emulator settings and names read from your ROM remain unchanged.";\nT.de.menuKo=T.en.menuKo;T.de.menuKoHint=T.en.menuKoHint;\n/* ITOSM_KO_END */\nlet lang = \'de\';');
|
||||
s=s.replace("let lang = 'de';",'/* ITOSM_KO_BEGIN */\nT.ko = '+JSON.stringify(ko,null,2)+';\nT.en.menuKo="Create A+C cheat menu";\nT.de.menuKo="A+C-Cheatmenü erstellen";\n/* ITOSM_KO_END */\nlet lang = \'de\';');
|
||||
s=s.replace("localStorage.getItem('paramix-lang') || (navigator.language || 'de').slice(0, 2)","localStorage.getItem('paramix-lang') || 'ko'");
|
||||
if(!s.includes("if (lang === 'ko')"))s=s.replace("if (lang === 'en') return s;","if (lang === 'en') return s;\n if (lang === 'ko') { for (const [re, ko] of MSG_KO) if(re.test(s)) return s.replace(re,ko); return s; }");
|
||||
// Korean module errors are separate from the upstream German dictionary.
|
||||
|
||||
Reference in new issue
Block a user