Merge pull request #5997 from greg-finley-ck/studies

Translate studies on user profile page
pull/5998/head
Thibault Duplessis 2020-02-07 17:08:54 -06:00 committed by GitHub
commit ad83296d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -62,7 +62,7 @@ object header {
splitNumber(trans.nbTournamentPoints.pluralSame(u.toints))
),
a(href := routes.Study.byOwnerDefault(u.username), cls := "nm-item")(
splitNumber(s"${info.nbStudies} studies")
splitNumber(trans.`nbStudies`.pluralSame(info.nbStudies))
),
a(
cls := "nm-item",

View File

@ -775,6 +775,7 @@ val `nbDraws` = new Translated("nbDraws", Site)
val `nbPlaying` = new Translated("nbPlaying", Site)
val `giveNbSeconds` = new Translated("giveNbSeconds", Site)
val `nbTournamentPoints` = new Translated("nbTournamentPoints", Site)
val `nbStudies` = new Translated("nbStudies", Site)
val `moreThanNbRatedGames` = new Translated("moreThanNbRatedGames", Site)
val `moreThanNbPerfRatedGames` = new Translated("moreThanNbPerfRatedGames", Site)
val `needNbMorePerfGames` = new Translated("needNbMorePerfGames", Site)

View File

@ -295,6 +295,10 @@
<item quantity="one">%s tournament point</item>
<item quantity="other">%s tournament points</item>
</plurals>
<plurals name="nbStudies">
<item quantity="one">%s study</item>
<item quantity="other">%s studies</item>
</plurals>
<string name="viewTournament">View tournament</string>
<string name="backToTournament">Back to tournament</string>
<string name="thematic">Thematic</string>