Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

coverage summary use I18n for first/latest. I18n gotta start somewhere

  • Loading branch information...
commit b8bbcba7d12f0af84c8457ed83b812298e8e67d6 1 parent 39f4e13
@jrochkind jrochkind authored
Showing with 7 additions and 2 deletions.
  1. +2 −2 app/helpers/resolve_helper.rb
  2. +5 −0 config/locales/en.yml
View
4 app/helpers/resolve_helper.rb
@@ -257,8 +257,8 @@ def coverage_summary(response)
return nil
end
- start = response[:coverage_begin_date].try(:year) || "first"
- finish = response[:coverage_end_date].try(:year) || "latest"
+ start = response[:coverage_begin_date].try(:year) || I18n.t("umlaut.coverage_summary.open_start", :default => "first")
+ finish = response[:coverage_end_date].try(:year) || I18n.t("umlaut.coverage_summary.open_end", :default => "latest")
content_tag("span", :class=>"coverage_summary") do
"#{start}#{finish}:"
View
5 config/locales/en.yml
@@ -0,0 +1,5 @@
+en:
+ umlaut:
+ coverage_summary:
+ open_start: "first"
+ open_end: "latest"
Please sign in to comment.
Something went wrong with that request. Please try again.