Use i18n at_least_pattern in issues count helper

This commit is contained in:
Anton Khorev 2023-09-01 08:19:22 +03:00
parent 963b8f43f1
commit 09225bc02d
2 changed files with 3 additions and 1 deletions

View file

@ -28,7 +28,7 @@ module IssuesHelper
def open_issues_count
count = Issue.visible_to(current_user).open.limit(Settings.max_issues_count).size
if count >= Settings.max_issues_count
tag.span("#{Settings.max_issues_count}+", :class => "badge count-number")
tag.span(I18n.t("count.at_least_pattern", :count => Settings.max_issues_count), :class => "badge count-number")
elsif count.positive?
tag.span(count, :class => "badge count-number")
end

View file

@ -5,6 +5,8 @@ en:
formats:
friendly: "%e %B %Y at %H:%M"
blog: "%e %B %Y"
count:
at_least_pattern: "%{count}+"
helpers:
file:
prompt: Choose file