Skip to content

Commit

Permalink
also translate "40 games per day" in /features
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jul 15, 2024
1 parent bf7d2be commit 0eaa368
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 1 addition & 3 deletions modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ object I18nKey:
val `whatIsIheMatter`: I18nKey = "whatIsIheMatter"
val `cheat`: I18nKey = "cheat"
val `troll`: I18nKey = "troll"
val `ratingManipulation`: I18nKey = "ratingManipulation"
val `other`: I18nKey = "other"
val `reportDescriptionHelp`: I18nKey = "reportDescriptionHelp"
val `error.provideOneCheatedGameLink`: I18nKey = "error.provideOneCheatedGameLink"
Expand Down Expand Up @@ -1500,9 +1499,7 @@ object I18nKey:
val `botRatingAbuse`: I18nKey = "contact:botRatingAbuse"
val `errorPage`: I18nKey = "contact:errorPage"
val `reportErrorPage`: I18nKey = "contact:reportErrorPage"
val `wantBroadcastTournament`: I18nKey = "contact:wantBroadcastTournament"
val `learnHowToMakeBroadcasts`: I18nKey = "contact:learnHowToMakeBroadcasts"
val `contactAboutOfficialBroadcasts`: I18nKey = "contact:contactAboutOfficialBroadcasts"
val `banAppeal`: I18nKey = "contact:banAppeal"
val `engineAppeal`: I18nKey = "contact:engineAppeal"
val `sendAppealTo`: I18nKey = "contact:sendAppealTo"
Expand Down Expand Up @@ -2767,5 +2764,6 @@ object I18nKey:
val `weBelieveEveryChessPlayerDeservesTheBest`: I18nKey = "features:weBelieveEveryChessPlayerDeservesTheBest"
val `ultraBulletBulletBlitzRapidClassicalAndCorrespondenceChess`: I18nKey = "features:ultraBulletBulletBlitzRapidClassicalAndCorrespondenceChess"
val `everybodyGetsAllFeaturesForFree`: I18nKey = "features:everybodyGetsAllFeaturesForFree"
val `gamesPerDay`: I18nKey = "features:gamesPerDay"
val `globalOpeningExplorerInNbGames`: I18nKey = "features:globalOpeningExplorerInNbGames"

6 changes: 3 additions & 3 deletions modules/plan/src/main/ui/PlanPages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ final class PlanPages(helpers: Helpers)(fishnetPerDay: Int):
)
val unlimited =
span(dataIcon := Icon.Checkmark, cls := "is is-green text unlimited")(trans.site.unlimited())
val check = span(dataIcon := Icon.Checkmark, cls := "is is-green text check")(trans.site.yes())
def custom(str: String) = span(dataIcon := Icon.Checkmark, cls := "is is-green text check")(str)
val custom = span(dataIcon := Icon.Checkmark, cls := "is is-green text check")
val check = custom(trans.site.yes())
def all(content: Frag) = frag(td(content), td(content))
def tr(value: Frag)(text: Frag*) = st.tr(th(text), all(value))
val title = "Lichess features"
Expand Down Expand Up @@ -48,7 +48,7 @@ final class PlanPages(helpers: Helpers)(fishnetPerDay: Int):
tr(check)(
trans.features.standardChessAndX(a(href := routes.Cms.variantHome)(trans.faq.eightVariants()))
),
tr(custom(s"$fishnetPerDay per day"))(
tr(custom(trans.features.gamesPerDay.pluralSame(fishnetPerDay)))(
trans.features.deepXServerAnalysis(lila.ui.bits.engineFullName)
),
tr(unlimited)(
Expand Down
4 changes: 4 additions & 0 deletions translation/source/features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<string name="correspondenceWithConditionalPremoves">Correspondence chess with conditional premoves</string>
<string name="standardChessAndX" comment="%s is 8 variants">Standard chess and %s</string>
<string name="deepXServerAnalysis" comment="%s is the engine name">Deep %s server analysis</string>
<plurals name="gamesPerDay">
<item quantity="one">%s game per day</item>
<item quantity="other">%s games per day</item>
</plurals>
<string name="boardEditorAndAnalysisBoardWithEngine" comment="%s is the engine name (Stockfish, Fairy-Stockfish)">Board editor and analysis board with %s</string>
<string name="cloudEngineAnalysis">Cloud engine analysis</string>
<string name="studies">Studies (shared and persistent analysis)</string>
Expand Down

0 comments on commit 0eaa368

Please sign in to comment.