Feature #29946 » 0001-Updates-i18n-gem-to-1.1.1.patch
| Gemfile | ||
|---|---|---|
| 16 | 16 |
gem "csv", "~> 1.0.2" if RUBY_VERSION >= "2.3" |
| 17 | 17 | |
| 18 | 18 |
gem "nokogiri", "~> 1.8.0" |
| 19 |
gem "i18n", "~> 0.7.0"
|
|
| 19 |
gem "i18n", "~> 1.1.1"
|
|
| 20 | 20 | |
| 21 | 21 |
# Request at least rails-html-sanitizer 1.0.3 because of security advisories |
| 22 | 22 |
gem "rails-html-sanitizer", ">= 1.0.3" |
| test/unit/lib/redmine/i18n_test.rb | ||
|---|---|---|
| 68 | 68 |
end |
| 69 | 69 |
assert l('date.day_names').is_a?(Array)
|
| 70 | 70 |
assert_equal 7, l('date.day_names').size
|
| 71 |
|
|
| 71 | ||
| 72 | 72 |
assert l('date.month_names').is_a?(Array)
|
| 73 | 73 |
assert_equal 13, l('date.month_names').size
|
| 74 | 74 |
end |
| ... | ... | |
| 230 | 230 |
::I18n.locale = 'en' |
| 231 | 231 |
assert_equal "Untranslated string", l(:untranslated) |
| 232 | 232 |
::I18n.locale = 'fr' |
| 233 |
assert_equal "Untranslated string", l(:untranslated)
|
|
| 233 |
assert_equal "translation missing: fr.untranslated", l(:untranslated)
|
|
| 234 | 234 | |
| 235 | 235 |
::I18n.backend.store_translations(:fr, {:untranslated => "Pas de traduction"})
|
| 236 | 236 |
::I18n.locale = 'en' |