mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
"Fixed" Rusyn language (#10561)
* Rusyn.properties Translation on Rusyn language (ISO-code "rue") * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Update Rusyn.properties * Add a flag for Rusyn * LocaleCode for Rusyn to use Ukrainian Collator but still write separate fastlane files * Update Rusyn language files * Redo atlas --------- Co-authored-by: KotDivuar <148721627+KotDivuar@users.noreply.github.com>
This commit is contained in:
@ -246,7 +246,7 @@ class GameSettings {
|
||||
|
||||
enum class NationPickerListMode { Icons, List }
|
||||
|
||||
enum class LocaleCode(var language: String, var country: String) {
|
||||
enum class LocaleCode(val language: String, val country: String, val trueLanguage: String? = null) {
|
||||
Arabic("ar", "IQ"),
|
||||
Belarusian("be", "BY"),
|
||||
Bosnian("bs", "BA"),
|
||||
@ -280,6 +280,7 @@ class GameSettings {
|
||||
Portuguese("pt", "PT"),
|
||||
Romanian("ro", "RO"),
|
||||
Russian("ru", "RU"),
|
||||
Rusyn("uk", "UA", "rus"), // No specific locale for rus exists, so use closest for collator
|
||||
Serbian("sr", "RS"),
|
||||
SimplifiedChinese("zh", "CN"),
|
||||
Slovak("sk", "SK"),
|
||||
|
@ -545,7 +545,7 @@ object TranslationFileWriter {
|
||||
else -> translated
|
||||
}
|
||||
val localeCode = LocaleCode.valueOf(language.replace("_",""))
|
||||
val path = fastlanePath + localeCode.language
|
||||
val path = fastlanePath + (localeCode.trueLanguage ?: localeCode.language)
|
||||
File(path).mkdirs()
|
||||
File(path + File.separator + fileName).writeText(fileContent)
|
||||
}
|
||||
|
Reference in New Issue
Block a user