translate blindfold form options - closes #1499
This commit is contained in:
parent
187daee842
commit
798424fa4c
|
@ -150,4 +150,7 @@ trait SetupHelper { self: I18nHelper =>
|
|||
(Pref.Message.ALWAYS, trans.always.str())
|
||||
)
|
||||
|
||||
def translatedBlindfoldChoices(implicit ctx: Context) = List(
|
||||
Pref.Blindfold.NO -> trans.no.str(),
|
||||
Pref.Blindfold.YES -> trans.yes.str())
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
</li>
|
||||
<li>
|
||||
<h2>@trans.blindfoldChess()</h2>
|
||||
@base.radios(form("blindfold"), Seq(0 -> trans.no.str(), 1 -> trans.yes.str()))
|
||||
@base.radios(form("blindfold"), translatedBlindfoldChoices)
|
||||
</li>
|
||||
</ul>
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<h2>@trans.blindfoldChess()</h2>
|
||||
@base.radios(form("blindfold"), lila.pref.Pref.Blindfold.choices, container = true, prefix = "igp_")
|
||||
@base.radios(form("blindfold"), translatedBlindfoldChoices, container = true, prefix = "igp_")
|
||||
</div>
|
||||
</form>
|
||||
<a target="_blank" class="prefs button text" data-icon="%" href="@routes.Pref.form("game-display")">@trans.preferences()</a>
|
||||
|
|
Loading…
Reference in a new issue