Skip to content

Commit

Permalink
Added translation key for block on blog comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Carbrex committed Feb 23, 2024
1 parent b53de7e commit 1c61ee3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/ForumTopic.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final class ForumTopic(env: Env) extends LilaController(env) with ForumControlle
for
unsub <- ctx.me soUse env.timeline.status(s"forum:${topic.id}")
canRead <- access.isGrantedRead(categ.slug)
topicUserId = topic.pp.userId.getOrElse(UserId(""))
topicUserId = topic.userId.getOrElse(UserId(""))
relation <- ctx.userId.so(
env.relation.api.fetchRelation(topicUserId: UserId, _)
)
Expand Down
2 changes: 1 addition & 1 deletion app/views/forum/topic.scala
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ object topic:
a(href := teamRoutes.show(teamId))(trans.teamNamedX(teamLink(teamId, true)))
.orElse:
if ctx.me.exists(_.isBot) then p("Bots cannot post in the forum.").some
else if replyBlocked then p("You are blocked by the blog author.").some
else if replyBlocked then p(trans.youBlockedByBlogAuthor()).some
else ctx.isAuth option p(trans.youCannotPostYetPlaySomeGames())
,
div(
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 @@ -746,6 +746,7 @@ object I18nKeys:
val `joinTheTeamXToPost` = I18nKey("joinTheTeamXToPost")
val `teamNamedX` = I18nKey("teamNamedX")
val `youCannotPostYetPlaySomeGames` = I18nKey("youCannotPostYetPlaySomeGames")
val `youBlockedByBlogAuthor` = I18nKey("youBlockedByBlogAuthor")
val `subscribe` = I18nKey("subscribe")
val `unsubscribe` = I18nKey("unsubscribe")
val `mentionedYouInX` = I18nKey("mentionedYouInX")
Expand Down
1 change: 1 addition & 0 deletions translation/source/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@
<string name="joinTheTeamXToPost">Join the %1$s, to post in this forum</string>
<string name="teamNamedX">%1$s team</string>
<string name="youCannotPostYetPlaySomeGames">You can't post in the forums yet. Play some games!</string>
<string name="youBlockedByBlogAuthor">You are blocked by the blog author.</string>
<string name="subscribe">Subscribe</string>
<string name="unsubscribe">Unsubscribe</string>
<string name="mentionedYouInX">mentioned you in "%1$s".</string>
Expand Down

0 comments on commit 1c61ee3

Please sign in to comment.