Tournament mode translation from form page, closes #3958

This commit is contained in:
Greg Finley 2018-04-05 14:00:41 -07:00
parent 922b3afdc6
commit 52b486ae03
2 changed files with 6 additions and 1 deletions

View file

@ -29,6 +29,11 @@ trait SetupHelper { self: I18nHelper =>
(Mode.Rated.id.toString, I18nKeys.rated.txt(), none)
)
def translatedModeChoicesTournament(implicit ctx: Context) = List(
(Mode.Casual.id.toString, I18nKeys.casualTournament.txt(), none),
(Mode.Rated.id.toString, I18nKeys.ratedTournament.txt(), none)
)
def translatedSystemChoices(implicit ctx: Context) = List(
System.Arena.id.toString -> "Arena"
)

View file

@ -52,7 +52,7 @@ moreJs = moreJs) {
<tr>
<th><label for="@form("mode").id">@trans.mode()</label></th>
<td>
@base.form.select(form("mode"), translatedModeChoices.map(x => x._1 -> x._2))
@base.form.select(form("mode"), translatedModeChoicesTournament.map(x => x._1 -> x._2))
</td>
</tr>
<tr class="time">