Page MenuHomeWildfire Games

Fix trigger difficulty level (rP20760) for translation
ClosedPublic

Authored by mimo on Jan 7 2018, 5:59 PM.

Details

Summary

As noted by fabio in #4931, the trigger difficulty selection dropdown does not appears with language other than english. This is because the test to check if a level is supported by the map is done on Name which has been translated before. That patch also add a level Ident which is not translated and used for tests.

Test Plan

check that the panel now works in any language when adding
"SupportedTriggerDifficulties": { "Values": ["Easy", "Medium", "Hard"], "Default": "Medium" }
in the map json file

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mimo created this revision.Jan 7 2018, 5:59 PM
Owners added a subscriber: Restricted Owners Package.Jan 7 2018, 5:59 PM
elexis added a subscriber: elexis.Jan 7 2018, 6:05 PM

Might be less ambiguous to use Title for the label (like biomes.json, so only -1 +1 line in messages.json to accomplish that), and Name for the identification.
Other than that ok for me if it works.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 7 2018, 6:37 PM
This revision was automatically updated to reflect the committed changes.
Vulcan added a subscriber: Vulcan.Jan 7 2018, 7:47 PM
Executing section Default...
Executing section Source...
Executing section JS...
Vulcan added a comment.Jan 7 2018, 8:52 PM

Successful build - Chance fights ever on the side of the prudent.

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...