mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-06 09:08:17 +07:00
Fixed Bosnian (#10559)
* Rescue Bosnian.properties * Rename and revert * Let's minimize diff size for completionPercentages.properties from now on * One generate translations run on Bosnian * Add the Flag * Add the LocaleCode * Fix illegally tranzlahtedd placeholders
This commit is contained in:
parent
b8b5b71395
commit
c4b5925394
BIN
android/Images.Flags/FlagIcons/Bosnian.png
Normal file
BIN
android/Images.Flags/FlagIcons/Bosnian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
@ -18,234 +18,241 @@ FlagIcons/Belarusian
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Brazilian_Portuguese
|
||||
FlagIcons/Bosnian
|
||||
rotate: false
|
||||
xy: 140, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Bulgarian
|
||||
FlagIcons/Brazilian_Portuguese
|
||||
rotate: false
|
||||
xy: 4, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Catalan
|
||||
FlagIcons/Bulgarian
|
||||
rotate: false
|
||||
xy: 140, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Czech
|
||||
FlagIcons/Catalan
|
||||
rotate: false
|
||||
xy: 276, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Dutch
|
||||
FlagIcons/Czech
|
||||
rotate: false
|
||||
xy: 140, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/English
|
||||
FlagIcons/Dutch
|
||||
rotate: false
|
||||
xy: 276, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Filipino
|
||||
FlagIcons/English
|
||||
rotate: false
|
||||
xy: 412, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Finnish
|
||||
FlagIcons/Filipino
|
||||
rotate: false
|
||||
xy: 276, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/French
|
||||
FlagIcons/Finnish
|
||||
rotate: false
|
||||
xy: 412, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/German
|
||||
FlagIcons/French
|
||||
rotate: false
|
||||
xy: 548, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Greek
|
||||
FlagIcons/German
|
||||
rotate: false
|
||||
xy: 412, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Hungarian
|
||||
FlagIcons/Greek
|
||||
rotate: false
|
||||
xy: 548, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Indonesian
|
||||
FlagIcons/Hungarian
|
||||
rotate: false
|
||||
xy: 684, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Italian
|
||||
FlagIcons/Indonesian
|
||||
rotate: false
|
||||
xy: 548, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Japanese
|
||||
FlagIcons/Italian
|
||||
rotate: false
|
||||
xy: 684, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Korean
|
||||
FlagIcons/Japanese
|
||||
rotate: false
|
||||
xy: 820, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Lithuanian
|
||||
FlagIcons/Korean
|
||||
rotate: false
|
||||
xy: 684, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Macedonian
|
||||
FlagIcons/Lithuanian
|
||||
rotate: false
|
||||
xy: 820, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Malay
|
||||
FlagIcons/Macedonian
|
||||
rotate: false
|
||||
xy: 956, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Malay
|
||||
rotate: false
|
||||
xy: 820, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Persian_(Pinglish-DIN)
|
||||
rotate: false
|
||||
xy: 820, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Persian_(Pinglish-UN)
|
||||
rotate: false
|
||||
xy: 820, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Polish
|
||||
rotate: false
|
||||
xy: 956, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Portuguese
|
||||
FlagIcons/Persian_(Pinglish-UN)
|
||||
rotate: false
|
||||
xy: 956, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Polish
|
||||
rotate: false
|
||||
xy: 1092, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Romanian
|
||||
FlagIcons/Portuguese
|
||||
rotate: false
|
||||
xy: 956, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Russian
|
||||
FlagIcons/Romanian
|
||||
rotate: false
|
||||
xy: 1092, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Simplified_Chinese
|
||||
FlagIcons/Russian
|
||||
rotate: false
|
||||
xy: 1228, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Spanish
|
||||
FlagIcons/Simplified_Chinese
|
||||
rotate: false
|
||||
xy: 1092, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Swedish
|
||||
FlagIcons/Spanish
|
||||
rotate: false
|
||||
xy: 1228, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Thai
|
||||
FlagIcons/Swedish
|
||||
rotate: false
|
||||
xy: 1364, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Traditional_Chinese
|
||||
FlagIcons/Thai
|
||||
rotate: false
|
||||
xy: 1228, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Turkish
|
||||
FlagIcons/Traditional_Chinese
|
||||
rotate: false
|
||||
xy: 1364, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Ukrainian
|
||||
FlagIcons/Turkish
|
||||
rotate: false
|
||||
xy: 1500, 276
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Vietnamese
|
||||
FlagIcons/Ukrainian
|
||||
rotate: false
|
||||
xy: 1364, 4
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
FlagIcons/Vietnamese
|
||||
rotate: false
|
||||
xy: 1500, 140
|
||||
size: 128, 128
|
||||
orig: 128, 128
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 196 KiB |
11740
android/assets/jsons/translations/Bosnian.properties
Normal file
11740
android/assets/jsons/translations/Bosnian.properties
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,33 +1,34 @@
|
||||
Persian_(Pinglish-UN) = 27
|
||||
Italian = 99
|
||||
Russian = 99
|
||||
Belarusian = 2
|
||||
Afrikaans = 7
|
||||
Belarusian = 2
|
||||
Bosnian = 3
|
||||
Brazilian_Portuguese = 99
|
||||
Bulgarian = 44
|
||||
Catalan = 99
|
||||
Czech = 81
|
||||
Dutch = 99
|
||||
English = 0
|
||||
Filipino = 92
|
||||
Finnish = 36
|
||||
French = 99
|
||||
German = 99
|
||||
Greek = 14
|
||||
Hungarian = 77
|
||||
Indonesian = 99
|
||||
Italian = 99
|
||||
Japanese = 87
|
||||
Korean = 96
|
||||
Lithuanian = 91
|
||||
Malay = 24
|
||||
Persian_(Pinglish-DIN) = 13
|
||||
Persian_(Pinglish-UN) = 27
|
||||
Polish = 99
|
||||
Portuguese = 61
|
||||
Romanian = 79
|
||||
Russian = 99
|
||||
Simplified_Chinese = 99
|
||||
Spanish = 99
|
||||
Swedish = 84
|
||||
Traditional_Chinese = 97
|
||||
Turkish = 81
|
||||
Ukrainian = 99
|
||||
Filipino = 92
|
||||
French = 99
|
||||
Portuguese = 61
|
||||
Indonesian = 99
|
||||
Catalan = 99
|
||||
Finnish = 36
|
||||
Spanish = 99
|
||||
Malay = 24
|
||||
Brazilian_Portuguese = 99
|
||||
Traditional_Chinese = 97
|
||||
Polish = 99
|
||||
Lithuanian = 91
|
||||
Romanian = 79
|
||||
Simplified_Chinese = 99
|
||||
Bulgarian = 44
|
||||
Korean = 96
|
||||
Persian_(Pinglish-DIN) = 13
|
||||
Japanese = 87
|
||||
English = 0
|
||||
Vietnamese = 91
|
||||
Czech = 81
|
||||
Hungarian = 77
|
||||
Dutch = 99
|
||||
Greek = 14
|
||||
|
@ -47,10 +47,10 @@ import com.unciv.utils.debug
|
||||
import com.unciv.utils.launchOnGLThread
|
||||
import com.unciv.utils.withGLContext
|
||||
import com.unciv.utils.withThreadPoolContext
|
||||
import kotlinx.coroutines.CancellationException
|
||||
import java.io.PrintWriter
|
||||
import java.util.EnumSet
|
||||
import java.util.UUID
|
||||
import kotlinx.coroutines.CancellationException
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpecific {
|
||||
|
@ -249,6 +249,7 @@ class GameSettings {
|
||||
enum class LocaleCode(var language: String, var country: String) {
|
||||
Arabic("ar", "IQ"),
|
||||
Belarusian("be", "BY"),
|
||||
Bosnian("bs", "BA"),
|
||||
BrazilianPortuguese("pt", "BR"),
|
||||
Bulgarian("bg", "BG"),
|
||||
Catalan("ca", "ES"),
|
||||
|
@ -255,6 +255,7 @@ object TranslationFileWriter {
|
||||
|
||||
private fun writeLanguagePercentages(percentages: HashMap<String, Int>, modFolder: FileHandle? = null) {
|
||||
val output = percentages.asSequence()
|
||||
.sortedBy { it.key }
|
||||
.joinToString("\n", postfix = "\n") { "${it.key} = ${it.value}" }
|
||||
getFileHandle(modFolder, TranslationFileReader.percentagesFileLocation)
|
||||
.writeString(output, false)
|
||||
|
Loading…
Reference in New Issue
Block a user