jdmonin / JSettlers2

Java Settlers project home, downloads, and GPLv3 source code. To download the latest version as a JAR, see https://github.com/jdmonin/JSettlers2/releases/latest .
http://nand.net/jsettlers/
GNU General Public License v3.0
160 stars 63 forks source link

i18n: Scenarios, game options: Specify sorting in localization #100

Closed jdmonin closed 2 years ago

jdmonin commented 2 years ago

Currently when the client shows a list of scenarios and game options (New Game/Game Info dialog), the code does its best to sort them alphabetically.

Some localizations may want to specify a more precise order (see kotc comments in issue #99).

Let them optionally do so by prefixing localized game option names with a numeric [01], [02], ..., and scenario names with 01 -, 02 -, ... (scenario name rules don't allow the brackets). The leading 0s are optional, but older clients will want them in order to alpha-sort correctly when more than 9 items.

When showing any localized scenario or game option name, hide that prefix.

jdmonin commented 2 years ago

Released as part of v2.6.00.