diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-22 13:43:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-22 13:43:51 +0000 |
commit | 2d5b7737110e08812f91cd7d3e0220726a796626 (patch) | |
tree | e49c8a60f626d6b4e3c696826d96945bef5bfd74 /lib/redmine/i18n.rb | |
parent | 470558cf19d529b279b40a505913827cfe4f4626 (diff) | |
download | redmine-2d5b7737110e08812f91cd7d3e0220726a796626.tar.gz redmine-2d5b7737110e08812f91cd7d3e0220726a796626.zip |
remove spaces inside {} of lib/redmine/i18n.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20481 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/i18n.rb')
-rw-r--r-- | lib/redmine/i18n.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb index ef6f04f3f..8599a09f4 100644 --- a/lib/redmine/i18n.rb +++ b/lib/redmine/i18n.rb @@ -56,7 +56,7 @@ module Redmine def ll(lang, str, arg=nil) 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) end |