Use i18n at_least_pattern in issues count helper
This commit is contained in:
parent
963b8f43f1
commit
09225bc02d
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue