Comments (5)
Sounds like this can be solved with a shorter translation for min/max number of civilizations - any suggestions?
from unciv.
Sounds like this can be solved with a shorter translation for min/max number of civilizations - any suggestions?
I am grateful to you for consulting with me :) I am more used to relying on developers, they better understand how to fix the flaw. I think that a shorter translation of some settings would be the best solution to this problem
from unciv.
Translators often do not really search for the context, so in a way they're not to blame.
Possibilities:
- Comment these in templates, telling the xlator "prease keep as sholt as possibre" 1
- Additionally: Give the label a separately templated tooltip. Now it's possible to have "Max # Civs" on the label and "Upper limit to\nthe number of civilizations that\nwill be randomly chosen" as tooltip... Yesiknowmobile...
Footnotes
-
No disrespect meant. Got reminded of a chinese food chain having a bilingual menu - engrish on one side, rocar on the other. There were "spling lolls" on one side and - bingo - "loureaux plintemps" on the other. Bouffe excellente pour le bas prix. ↩
from unciv.
Translators often do not really search for the context, so in a way they're not to blame.
Possibilities:
- Comment these in templates, telling the xlator "prease keep as sholt as possibre" 1
- Additionally: Give the label a separately templated tooltip. Now it's possible to have "Max # Civs" on the label and "Upper limit to\nthe number of civilizations that\nwill be randomly chosen" as tooltip... Yesiknowmobile...
Footnotes
- No disrespect meant. Got reminded of a chinese food chain having a bilingual menu - engrish on one side, rocar on the other. There were "spling lolls" on one side and - bingo - "loureaux plintemps" on the other. Bouffe excellente pour le bas prix. ↩
If this shortcoming cannot be corrected in any way, then it’s not scary :)
from unciv.
Index: core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt b/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt
--- a/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt (revision 2193e24364612b177ae61db889dacea5946f2939)
+++ b/core/src/com/unciv/ui/screens/newgamescreen/GameOptionsTable.kt (date 1713520566927)
@@ -30,6 +30,7 @@
import com.unciv.ui.components.widgets.ExpanderTab
import com.unciv.ui.components.widgets.TranslatedSelectBox
import com.unciv.ui.components.widgets.UncivSlider
+import com.unciv.ui.components.widgets.WrappableLabel
import com.unciv.ui.images.ImageGetter
import com.unciv.ui.popups.Popup
import com.unciv.ui.screens.basescreen.BaseScreen
@@ -273,6 +274,8 @@
update() // To see the changed sliders
}
+ private fun getColumnWidth() = previousScreen.stage.width * (if (isPortrait) 1f else 0.333f)
+
private fun Table.addLinkedMinMaxSliders(
minValue: Int, maxValue: Int,
minText: String, maxText: String,
@@ -304,9 +307,15 @@
}
maxSlider.isDisabled = locked
- add(minText.toLabel()).left().expandX()
+ val wrapWidth = getColumnWidth() * 0.6f
+ fun addWrappedLabel(text: String) {
+ val label = WrappableLabel(text, wrapWidth)
+ add(label).maxWidth(wrapWidth).left().expandX()
+ label.wrap = true
+ }
+ addWrappedLabel(minText)
add(minSlider).padTop(10f).row()
- add(maxText.toLabel()).left().expandX()
+ addWrappedLabel(maxText)
add(maxSlider).padTop(10f).row()
}
... the usual Label in Table and wrap will report prefWidth 0 which in turn ... That old kludge class just happened to work. Should try calling its optimizePrefWidth though, that's not automatic. Also maybe try a cleverer wrap width, with 60% column the sliders are still incomplete, haven't looked for what determines their min width...
Opinions?
from unciv.
Related Issues (20)
- Feature request: the City-state "Manila" be renamed to "Maynila" HOT 1
- Warrior vanished from map HOT 5
- Cannot Build HOT 4
- Feature request: Button to disband units in overview HOT 9
- FPS cap HOT 7
- Window mode issues HOT 3
- "Hidden from users" not hiding triggerable effect on event notification HOT 4
- When i tap to chek how mi relationship with a country is going, give me an error HOT 3
- Function to disable mods HOT 2
- Promotion crash HOT 3
- Wrong city-state shown in notification log after being destroyed HOT 11
- Automated units and actions HOT 12
- Start new game issues - e.g. Map Type selection sometimes fails HOT 1
- Technology cost discrepancy HOT 5
- 進めない
- RFC: Telling stories - Ideas and related observations HOT 3
- Units without vision cannot be seen when moved into the fog HOT 2
- Game crash on starting new game after deleting mod HOT 20
- Feature request: Put resource point value for worker tile improvement priority in the settings. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unciv.