From 7e7d7cc94e9e2ae7d6e58a1b06359826f7ab0da9 Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sat, 16 Sep 2023 12:13:48 +0200 Subject: [PATCH] add and use fideHandbook without article reference (fixes #13594) --- app/views/site/faq.scala | 4 ++-- modules/i18n/src/main/I18nKeys.scala | 1 + translation/source/faq.xml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/site/faq.scala b/app/views/site/faq.scala index 88e2c2423db70..ee8b8607af667 100644 --- a/app/views/site/faq.scala +++ b/app/views/site/faq.scala @@ -161,7 +161,7 @@ object faq: p( explainingEnPassant( a(href := "https://en.wikipedia.org/wiki/En_passant")(goodIntroduction()), - a(href := fideHandbookUrl)(fideHandbookX("§3.7")), + a(href := fideHandbookUrl)(fideHandbook()), a(href := s"${routes.Learn.index}#/15")(lichessTraining()) ) ), @@ -179,7 +179,7 @@ object faq: p( threefoldRepetitionExplanation( a(href := "https://en.wikipedia.org/wiki/Threefold_repetition")(threefoldRepetitionLowerCase()), - a(href := fideHandbookUrl)(fideHandbookX("§9.2")) + a(href := fideHandbookUrl)(fideHandbook()) ) ), h4(notRepeatedMoves()), diff --git a/modules/i18n/src/main/I18nKeys.scala b/modules/i18n/src/main/I18nKeys.scala index e039cc685d676..b8a1b411b2696 100644 --- a/modules/i18n/src/main/I18nKeys.scala +++ b/modules/i18n/src/main/I18nKeys.scala @@ -1926,6 +1926,7 @@ object I18nKeys: val `acplExplanation` = I18nKey("faq:acplExplanation") val `insufficientMaterial` = I18nKey("faq:insufficientMaterial") val `lichessFollowFIDErules` = I18nKey("faq:lichessFollowFIDErules") + val `fideHandbook` = I18nKey("faq:fideHandbook") val `fideHandbookX` = I18nKey("faq:fideHandbookX") val `discoveringEnPassant` = I18nKey("faq:discoveringEnPassant") val `explainingEnPassant` = I18nKey("faq:explainingEnPassant") diff --git a/translation/source/faq.xml b/translation/source/faq.xml index 7ed3beaad8ac2..e8c2f02265c47 100644 --- a/translation/source/faq.xml +++ b/translation/source/faq.xml @@ -53,6 +53,7 @@ The computer analysis on Lichess is powered by Stockfish. In rare cases this can be difficult to decide automatically (forced lines, fortresses). By default we always side with the player who did not run out of time. Note that it can be possible to mate with a single knight or bishop if the opponent has a piece that could block the king. + FIDE handbook FIDE handbook %s Why can a pawn capture another pawn when it is already passed? (en passant) This is a legal move known as "en passant". The Wikipedia article gives a %1$s.