mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-13 11:30:31 +07:00
GAH chinese turned out to be a NIGHTMARE but it looks like it's finally done!
This commit is contained in:
parent
70d6697f16
commit
41df61c92e
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 |
@ -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))
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user