mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +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:
parent
470558cf19
commit
2d5b773711
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user