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

@@ -48,6 +48,9 @@
} else if (id == "current-lang-file") {
if (checkTranslationFile(file.name)) {
app.current = json;
if (!app.current.cyrillicGlyphs){
app.current.cyrillicGlyphs = false;
}
app.meta.currentLoaded = true;
}
}
@@ -238,6 +241,15 @@
<td class="label">Local Language Name</td>
<td class="value"><input type="text" v-model="current.languageLocalName" class="short"></td>
</tr>
<tr v-if="meta.currentLoaded">
<td class="label">Font table to use</td>
<td class="value">
<select v-model="current.cyrillicGlyphs" v-on:change="current.cyrillicGlyphs = current.cyrillicGlyphs=='true'">
<option value="false">Latin Extended</option>
<option value="true">Cyrillic Glyphs</option>
</select>
</td>
</tr>
</table>
<div v-if="def.messages && referent.messages && current.messages">