GAH chinese turned out to be a NIGHTMARE but it looks like it's finally done!

This commit is contained in:
Yair Morgenstern 2018-12-10 11:19:35 +02:00
parent 70d6697f16
commit 41df61c92e
5 changed files with 380 additions and 368 deletions

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 808 KiB

After

Width:  |  Height:  |  Size: 814 KiB

View File

@ -29,7 +29,9 @@ class LanguageTable(val language:String,skin: Skin):Table(skin){
if(language=="English") percentComplete = 100
else percentComplete = (availableTranslations.size*100 / GameBasics.Translations.size) - 5
add("$language ($percentComplete%)")
val spaceSplitLang = language.replace("_"," ")
add("$spaceSplitLang ($percentComplete%)")
update("")
touchable = Touchable.enabled // so click listener is activated when any part is clicked, not only children
pack()
@ -78,8 +80,9 @@ class LanguagePickerScreen: PickerScreen(){
if (Fonts().containsFont(Fonts().getFontForLanguage(chosenLanguage)))
pickLanguage()
else {
val spaceSplitLang = chosenLanguage.replace("_"," ")
YesNoPopupTable("This language requires you to download fonts.\n" +
"Do you want to download fonts for $chosenLanguage?",
"Do you want to download fonts for $spaceSplitLang?",
{
val downloading = PopupTable()
downloading.add(Label("Downloading...",skin))

View File

@ -21,7 +21,8 @@ class Language(val language:String){
else percentComplete = (availableTranslations.size*100 / GameBasics.Translations.size)
}
override fun toString(): String {
return "$language - $percentComplete%"
val spaceSplitLang = language.replace("_"," ")
return "$spaceSplitLang- $percentComplete%"
}
}
@ -60,8 +61,9 @@ class WorldScreenDisplayOptionsTable : PopupTable(){
if (Fonts().containsFont(Fonts().getFontForLanguage(selectedLanguage)))
selectLanguage()
else {
val spaceSplitLang = selectedLanguage.replace("_"," ")
YesNoPopupTable("This language requires you to download fonts.\n" +
"Do you want to download fonts for $selectedLanguage?",
"Do you want to download fonts for $spaceSplitLang?",
{
val downloading = PopupTable()