mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-28 13:48:49 +07:00
Translation (#1951)
* Update Polish.properties (#1931) * Update Russian.properties (#1932) * Update Italian.properties (#1933) Also added Research Agreement * Update Japanese.properties (#1942) * Update Japanese.properties * Update Japanese.properties * Update Japanese.properties * Translations update (#1943) * Translations update * Render some missing characters in the Ukrainian translations * More translations * Fixed typo: Otto von Bismark -> Otto von Bismarck (#1954) * Translation updates, added test to assure that translations in template file end with a space * Disabled Maven - hopefully Travis check will not take 10 minutes and will pass Co-authored-by: Freshy <60152907+GreenFreshy@users.noreply.github.com> Co-authored-by: IraqLobster34 <56483230+IraqLobster34@users.noreply.github.com> Co-authored-by: Smashfanful <41149920+Smashfanful@users.noreply.github.com> Co-authored-by: paontv <57051667+paontv@users.noreply.github.com> Co-authored-by: JackRainy <JackRainy@users.noreply.github.com> Co-authored-by: schnippl0r <58435847+schnippl0r@users.noreply.github.com>
This commit is contained in:
@ -7,6 +7,7 @@ import kotlin.collections.set
|
||||
class TranslationFileReader{
|
||||
|
||||
private val percentagesFileLocation = "jsons/translationsByLanguage/completionPercentages.properties"
|
||||
val templateFileLocation = "jsons/translationsByLanguage/template.properties"
|
||||
private val charset = Charset.forName("UTF-8").name()
|
||||
|
||||
fun read(translationFile: String): LinkedHashMap<String, String> {
|
||||
@ -25,7 +26,7 @@ class TranslationFileReader{
|
||||
}
|
||||
|
||||
private fun writeByTemplate(language:String, translations: HashMap<String, String>){
|
||||
val templateFile = Gdx.files.internal("jsons/translationsByLanguage/template.properties")
|
||||
val templateFile = Gdx.files.internal(templateFileLocation)
|
||||
val stringBuilder = StringBuilder()
|
||||
for(line in templateFile.reader().readLines()){
|
||||
if(!line.contains(" = ")){ // copy as-is
|
||||
|
@ -25,7 +25,7 @@ class Fonts {
|
||||
"กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛" + // Thai
|
||||
"İıÇŞşĞğ"+ /// turkish
|
||||
"1234567890" +
|
||||
"‘?’'“!”(%)[#]{@}/&\\<-+÷×=>®©\$€£¥¢:;,.¡*|«»—∞✘✔"
|
||||
"‘?ʼ’'“!”(%)[#]{@}/&\\<-+÷×=>®©\$€£¥¢:;,.…¡*|«»—∞✘✔"
|
||||
val charSet = HashSet<Char>()
|
||||
charSet.addAll(defaultText.asIterable())
|
||||
|
||||
|
Reference in New Issue
Block a user