From: Anton Khorev Date: Fri, 1 Sep 2023 05:19:22 +0000 (+0300) Subject: Use i18n at_least_pattern in issues count helper X-Git-Tag: live~1430^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/09225bc02df4eedd0f90376f1b86cb059de38d31?hp=-c Use i18n at_least_pattern in issues count helper --- 09225bc02df4eedd0f90376f1b86cb059de38d31 diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 453886334..55bd0952f 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index 7b415f6b7..98ecbe8a7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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