From 2d5b7737110e08812f91cd7d3e0220726a796626 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 22 Nov 2020 13:43:51 +0000 Subject: remove spaces inside {} of lib/redmine/i18n.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20481 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/i18n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine/i18n.rb') 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 -- cgit v1.2.3