mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Fix floodfill abbreviation translation showing on fortify key tooltips (#6909)
* Fix floodfill abbreviation translation showing on fortify key tooltips * Fix floodfill abbreviation translation - fix case * Fix floodfill abbreviation translation - existing and comment
This commit is contained in:
parent
392a8d5de9
commit
e1b76e776d
@ -881,9 +881,8 @@ Land or water only =
|
||||
# Requires translation!
|
||||
Brush ([size]): =
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
# Requires translation!
|
||||
F =
|
||||
# Requires translation!
|
||||
Floodfill_Abbreviation = F
|
||||
# Requires translation!
|
||||
Error loading map! =
|
||||
# Requires translation!
|
||||
Map saved successfully! =
|
||||
|
@ -485,7 +485,7 @@ Land or water only = Terre ou eau seulement
|
||||
## Labels/messages
|
||||
Brush ([size]): = Pinceau ([size]) :
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
F = R
|
||||
Floodfill_Abbreviation = R
|
||||
Error loading map! = Erreur de chargement de la carte !
|
||||
Map saved successfully! = Carte sauvegardée avec succès !
|
||||
Current map RNG seed: [amount] = Graine RNG de la carte actuelle : [amount]
|
||||
|
@ -485,7 +485,7 @@ Land or water only = Nur Land/Wasser
|
||||
## Labels/messages
|
||||
Brush ([size]): = Pinsel ([size]):
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
F = A
|
||||
Floodfill_Abbreviation = A
|
||||
Error loading map! = Fehler beim Laden der Karte
|
||||
Map saved successfully! = Karte erfolgreich gespeichert!
|
||||
Current map RNG seed: [amount] = Seed der aktuellen Karte: [amount]
|
||||
|
@ -485,7 +485,7 @@ Land or water only = Darat atau air saja
|
||||
## Labels/messages
|
||||
Brush ([size]): = Kuas ([size]):
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
F = I
|
||||
Floodfill_Abbreviation = I
|
||||
Error loading map! = Pemuatan peta tidak berhasil!
|
||||
Map saved successfully! = Peta berhasil tersimpan!
|
||||
Current map RNG seed: [amount] = RNG benih peta ini: [amount]
|
||||
|
@ -486,7 +486,7 @@ Land or water only = Doar pământ sau apă
|
||||
## Labels/messages
|
||||
Brush ([size]): = Pensulă ([size]):
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
F = U
|
||||
Floodfill_Abbreviation = U
|
||||
Error loading map! = Eroare la încarcarea harții!
|
||||
Map saved successfully! = Harta salvata cu succes!
|
||||
Current map RNG seed: [amount] = Harta curentă RNG seed:[amount]
|
||||
|
@ -486,7 +486,7 @@ Land or water only = Solo tierra y agua
|
||||
## Labels/messages
|
||||
Brush ([size]): = Pincel ([size]):
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
F = C
|
||||
Floodfill_Abbreviation = C
|
||||
Error loading map! = ¡Error al cargar mapa!
|
||||
Map saved successfully! = ¡Mapa guardado exitosamente!
|
||||
Current map RNG seed: [amount] = Semilla aleatoria actuál del mapa: [amount]
|
||||
|
@ -486,8 +486,9 @@ Land or water only =
|
||||
|
||||
## Labels/messages
|
||||
Brush ([size]): =
|
||||
# The letter shown in the [size] parameter above for setting "Floodfill"
|
||||
F =
|
||||
# The single letter shown in the [size] parameter above for setting "Floodfill".
|
||||
# Please do not make this longer, the associated slider will not handle well.
|
||||
Floodfill_Abbreviation =
|
||||
Error loading map! =
|
||||
Map saved successfully! =
|
||||
It looks like your map can't be saved! =
|
||||
|
@ -75,7 +75,7 @@ class MapEditorEditTab(
|
||||
brushCell = add().padLeft(0f)
|
||||
brushSlider = UncivSlider(1f,6f,1f, initial = 1f, getTipText = { getBrushTip(it).tr() }) {
|
||||
brushSize = if (it > 5f) -1 else it.toInt()
|
||||
brushLabel.setText("Brush ([${getBrushTip(it).take(1)}]):".tr())
|
||||
brushLabel.setText("Brush ([${getBrushTip(it, true)}]):".tr())
|
||||
}
|
||||
add(brushSlider).padLeft(0f)
|
||||
}
|
||||
@ -320,6 +320,10 @@ class MapEditorEditTab(
|
||||
}
|
||||
|
||||
companion object {
|
||||
private fun getBrushTip(value: Float) = if (value > 5f) "Floodfill" else value.toInt().toString()
|
||||
private fun getBrushTip(value: Float, abbreviate: Boolean = false) = when {
|
||||
value <= 5f -> value.toInt().toString()
|
||||
abbreviate -> "Floodfill_Abbreviation"
|
||||
else -> "Floodfill"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user