Skip to content

Commit

Permalink
add and use fideHandbook without article reference (fixes #13594)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Sep 16, 2023
1 parent 6cb732a commit 7e7d7cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/site/faq.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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())
)
),
Expand All @@ -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()),
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/main/I18nKeys.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions translation/source/faq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The computer analysis on Lichess is powered by Stockfish.</string>
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.</string>
<string name="fideHandbook">FIDE handbook</string>
<string name="fideHandbookX">FIDE handbook %s</string>
<string name="discoveringEnPassant">Why can a pawn capture another pawn when it is already passed? (en passant)</string>
<string name="explainingEnPassant">This is a legal move known as "en passant". The Wikipedia article gives a %1$s.
Expand Down

0 comments on commit 7e7d7cc

Please sign in to comment.