Tournament mode translation from form page, closes #3958
This commit is contained in:
parent
922b3afdc6
commit
52b486ae03
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue