mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04: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
|
if(language=="English") percentComplete = 100
|
||||||
else percentComplete = (availableTranslations.size*100 / GameBasics.Translations.size) - 5
|
else percentComplete = (availableTranslations.size*100 / GameBasics.Translations.size) - 5
|
||||||
add("$language ($percentComplete%)")
|
|
||||||
|
val spaceSplitLang = language.replace("_"," ")
|
||||||
|
add("$spaceSplitLang ($percentComplete%)")
|
||||||
update("")
|
update("")
|
||||||
touchable = Touchable.enabled // so click listener is activated when any part is clicked, not only children
|
touchable = Touchable.enabled // so click listener is activated when any part is clicked, not only children
|
||||||
pack()
|
pack()
|
||||||
@ -78,8 +80,9 @@ class LanguagePickerScreen: PickerScreen(){
|
|||||||
if (Fonts().containsFont(Fonts().getFontForLanguage(chosenLanguage)))
|
if (Fonts().containsFont(Fonts().getFontForLanguage(chosenLanguage)))
|
||||||
pickLanguage()
|
pickLanguage()
|
||||||
else {
|
else {
|
||||||
|
val spaceSplitLang = chosenLanguage.replace("_"," ")
|
||||||
YesNoPopupTable("This language requires you to download fonts.\n" +
|
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()
|
val downloading = PopupTable()
|
||||||
downloading.add(Label("Downloading...",skin))
|
downloading.add(Label("Downloading...",skin))
|
||||||
|
@ -21,7 +21,8 @@ class Language(val language:String){
|
|||||||
else percentComplete = (availableTranslations.size*100 / GameBasics.Translations.size)
|
else percentComplete = (availableTranslations.size*100 / GameBasics.Translations.size)
|
||||||
}
|
}
|
||||||
override fun toString(): String {
|
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)))
|
if (Fonts().containsFont(Fonts().getFontForLanguage(selectedLanguage)))
|
||||||
selectLanguage()
|
selectLanguage()
|
||||||
else {
|
else {
|
||||||
|
val spaceSplitLang = selectedLanguage.replace("_"," ")
|
||||||
YesNoPopupTable("This language requires you to download fonts.\n" +
|
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()
|
val downloading = PopupTable()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user