rename King of the Hill
This commit is contained in:
parent
5f13125379
commit
00c47def3a
|
@ -56,14 +56,14 @@ trait GameHelper { self: I18nHelper with UserHelper with AiHelper with StringHel
|
|||
case Variant.Standard => trans.standard.str()
|
||||
case Variant.Chess960 => "Chess960"
|
||||
case Variant.FromPosition => trans.fromPosition.str()
|
||||
case Variant.KingOfTheHill => "King Of The Hill"
|
||||
case Variant.KingOfTheHill => "King of the Hill"
|
||||
}
|
||||
|
||||
def variantNameNoCtx(variant: Variant) = variant match {
|
||||
case Variant.Standard => trans.standard.en()
|
||||
case Variant.Chess960 => "Chess960"
|
||||
case Variant.FromPosition => trans.fromPosition.en()
|
||||
case Variant.KingOfTheHill => "King Of The Hill"
|
||||
case Variant.KingOfTheHill => "King of the Hill"
|
||||
}
|
||||
|
||||
def clockName(clock: Option[Clock])(implicit ctx: UserContext): String =
|
||||
|
|
|
@ -9,7 +9,7 @@ case chess.Variant.Chess960 => {
|
|||
data-hint="@variantDesc.Chess960" class="hint--bottom">@name</a>
|
||||
}
|
||||
case chess.Variant.KingOfTheHill => {
|
||||
<a href="http://www.chessvariants.org/diffobjective.dir/center_of_attention.html" target="_blank"
|
||||
<a href="@routes.Page.kingOfTheHill" target="_blank"
|
||||
data-hint="@variantDesc.KingOfTheHill" class="hint--bottom">@name</a>
|
||||
}
|
||||
case chess.Variant.FromPosition => {
|
||||
|
|
|
@ -49,7 +49,7 @@ case object Perfs {
|
|||
"classical" -> "Classical",
|
||||
"standard" -> "Standard",
|
||||
"chess960" -> "Chess960",
|
||||
"kingOfTheHill" -> "King Of The Hill",
|
||||
"kingOfTheHill" -> "King of the Hill",
|
||||
"puzzle" -> "Training")
|
||||
|
||||
val titles = Map(
|
||||
|
@ -58,7 +58,7 @@ case object Perfs {
|
|||
"classical" -> "Classical games: more than 8 minutes",
|
||||
"standard" -> "Standard rules of chess",
|
||||
"chess960" -> "Chess960 variant",
|
||||
"kingOfTheHill" -> "King Of The Hill variant",
|
||||
"kingOfTheHill" -> "King of the Hill variant",
|
||||
"puzzle" -> "Training puzzles")
|
||||
|
||||
def variantLens(variant: Variant): Option[Perfs => Perf] = variant match {
|
||||
|
|
|
@ -2630,7 +2630,7 @@ var storage = {
|
|||
|
||||
function confirmKotH(hook) {
|
||||
if (hook.variant == "KingOfTheHill" && hook.action == "join" && !storage.get('koth')) {
|
||||
var c = confirm("This is a King Of The Hill game!\n\nThe game can be won by bringing the king to the center.\nRead more: http://www.chessvariants.org/diffobjective.dir/center_of_attention.html");
|
||||
var c = confirm("This is a King of the Hill game!\n\nThe game can be won by bringing the king to the center.\nRead more: http://lichess.org/king-of-the-hill");
|
||||
if (c) storage.set('koth', 1);
|
||||
return c;
|
||||
} else return true;
|
||||
|
|
Loading…
Reference in a new issue