1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

remove spaces inside {} of lib/redmine/i18n.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20481 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-22 13:43:51 +00:00
parent 470558cf19
commit 2d5b773711

View File

@ -56,7 +56,7 @@ module Redmine
def ll(lang, str, arg=nil) def ll(lang, str, arg=nil)
options = arg.is_a?(Hash) ? arg : {:value => arg} options = arg.is_a?(Hash) ? arg : {:value => arg}
locale = lang.to_s.gsub(%r{(.+)\-(.+)$}) { "#{$1}-#{$2.upcase}" } locale = lang.to_s.gsub(%r{(.+)\-(.+)$}) {"#{$1}-#{$2.upcase}"}
::I18n.t(str.to_s, **options, locale: locale) ::I18n.t(str.to_s, **options, locale: locale)
end end