mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +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:
@ -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)
|
||||
|
Reference in New Issue
Block a user