Add cyrillic parameter for font selection in json language files

This commit is contained in:
Rockman18
2018-11-15 02:12:36 +01:00
parent bc2446126f
commit 845dcd4bc6
6 changed files with 35 additions and 4 deletions

View File

@@ -84,6 +84,7 @@
if (!isDefined(lang)) {
lang = {
languageCode: langCode,
cyrillicGlyphs: false,
messages: {},
characters: {},
menuDouble : false,
@@ -97,6 +98,13 @@
continue;
}
// Use Cyrillic glyphs
if (startsWith(line, "#define CYRILLIC_GLYPHS")) {
lang.cyrillicGlyphs = true;
entryIndex = 0;
continue;
}
// Menu type
reMenuMode.lastIndex = 0;
match = reMenuMode.exec(line);