mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-28 21:58:54 +07:00
all chinese font will show well (#739)
* update some diplomacy words in chinese * all chinese font can be show well * Update Fonts.kt * update chinese language
This commit is contained in:

committed by
Yair Morgenstern

parent
7c146f4aea
commit
20d05aa8e0
@ -31,12 +31,14 @@ class Fonts {
|
||||
if (font == chineseFont) {
|
||||
val charSet = HashSet<Char>()
|
||||
charSet.addAll(defaultText.asIterable())
|
||||
var BasicHelpString=Gdx.files.internal("jsons/BasicHelp/BasicHelp_Simplified_Chinese.json").readString()
|
||||
BasicHelpString.forEach {charSet.add(it)}
|
||||
var NationsString=Gdx.files.internal("jsons/Nations_Simplified_Chinese.json").readString()
|
||||
NationsString.forEach {charSet.add(it)}
|
||||
var TutorialsString=Gdx.files.internal("jsons/Tutorials/Tutorials_Simplified_Chinese.json").readString()
|
||||
TutorialsString.forEach {charSet.add(it)}
|
||||
|
||||
if(Gdx.files.internal("BasicHelp/BasicHelp_Simplified_Chinese.json").exists())
|
||||
charSet.addAll(Gdx.files.internal("BasicHelp/BasicHelp_Simplified_Chinese.json").readString().asIterable())
|
||||
if (Gdx.files.internal("jsons/Nations_Simplified_Chinese.json").exists())
|
||||
charSet.addAll(Gdx.files.internal("jsons/Nations_Simplified_Chinese.json").readString().asIterable())
|
||||
if (Gdx.files.internal("jsons/Tutorials/Tutorials_Simplified_Chinese.json").exists())
|
||||
charSet.addAll(Gdx.files.internal("jsons/Tutorials/Tutorials_Simplified_Chinese.json").readString().asIterable())
|
||||
|
||||
for (entry in GameBasics.Translations.entries) {
|
||||
for (lang in entry.value) {
|
||||
if (lang.key.contains("Chinese")) charSet.addAll(lang.value.asIterable())
|
||||
|
Reference in New Issue
Block a user