Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/user/show/header.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object header:
a(
href := routes.Plan.index(),
cls := "trophy award patron icon3d",
ariaTitle(s"Patron since ${showDate(u.plan.sinceDate)}")
ariaTitle(trans.patron.patronSince.txt(showDate(u.plan.sinceDate)))
)(patronIconChar)
)
),
Expand Down Expand Up @@ -82,7 +82,7 @@ object header:
cls := "nm-item",
href := routes.Ublog.index(u.username)
)(
splitNumber(s"${info.ublog.so(_.nbPosts)} blog posts")
splitNumber(trans.ublog.blogPosts.pluralSame(info.ublog.so(_.nbPosts)))
)
),
(ctx.isAuth && ctx.isnt(u))
Expand Down
2 changes: 2 additions & 0 deletions modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ object I18nKey:
val `donate`: I18nKey = "patron:donate"
val `donateAsX`: I18nKey = "patron:donateAsX"
val `lichessPatron`: I18nKey = "patron:lichessPatron"
val `patronSince`: I18nKey = "patron:patronSince"
val `freeAccount`: I18nKey = "patron:freeAccount"
val `becomePatron`: I18nKey = "patron:becomePatron"
val `xBecamePatron`: I18nKey = "patron:xBecamePatron"
Expand Down Expand Up @@ -2783,6 +2784,7 @@ object I18nKey:
val `blogTips`: I18nKey = "ublog:blogTips"
val `discussThisBlogPostInTheForum`: I18nKey = "ublog:discussThisBlogPostInTheForum"
val `youBlockedByBlogAuthor`: I18nKey = "ublog:youBlockedByBlogAuthor"
val `blogPosts`: I18nKey = "ublog:blogPosts"
val `publishedNbBlogPosts`: I18nKey = "ublog:publishedNbBlogPosts"
val `nbViews`: I18nKey = "ublog:nbViews"
val `viewAllNbPosts`: I18nKey = "ublog:viewAllNbPosts"
Expand Down
1 change: 1 addition & 0 deletions translation/source/patron.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<string name="donate">Donate</string>
<string name="donateAsX">Donate as %s</string>
<string name="lichessPatron">Lichess Patron</string>
<string name="patronSince" comment="string is a date">Patron since %s</string>
<string name="freeAccount">Free account</string>
<string name="becomePatron">Become a Lichess Patron</string>
<string name="xBecamePatron">%s became a Lichess Patron</string>
Expand Down
4 changes: 4 additions & 0 deletions translation/source/ublog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<string name="friendBlogs">Friends blogs</string>
<string name="likedBlogs">Liked blog posts</string>
<string name="blogTopics">Blog topics</string>
<plurals name="blogPosts">
<item quantity="one">%s blog post</item>
<item quantity="other">%s blog posts</item>
</plurals>
<string name="lichessOfficialBlog">Lichess Official Blog</string>
<string name="continueReadingPost">Continue reading this post</string>
<string name="lichessBlogPostsFromXYear">Lichess blog posts in %s</string>
Expand Down
4 changes: 4 additions & 0 deletions ui/@types/lichess/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1949,6 +1949,8 @@ interface I18n {
patronFeatures: string;
/** Lichess Patron for %s months */
patronForMonths: I18nPlural;
/** Patron since %s */
patronSince: I18nFormat;
/** You have a Patron account until %s. */
patronUntil: I18nFormat;
/** Pay %s once. Be a Lichess Patron forever! */
Expand Down Expand Up @@ -5385,6 +5387,8 @@ interface I18n {
yearlyXArena: I18nFormat;
};
ublog: {
/** %s blog posts */
blogPosts: I18nPlural;
/** Our simple tips to write great blog posts */
blogTips: string;
/** Blog topics */
Expand Down
Loading