Switch to i18n version 0.5.0 but keep old style interpolation
It's impossible to stop rails 2 loading a newer i18n gem if it is installed, so go with the flow and use the latest one but override the interpolation pattern for now.
This commit is contained in:
parent
b77c6fe8ae
commit
10033fded1
2 changed files with 6 additions and 1 deletions
|
@ -25,7 +25,7 @@ Rails::Initializer.run do |config|
|
||||||
config.gem 'httpclient'
|
config.gem 'httpclient'
|
||||||
config.gem 'SystemTimer', :version => '>= 1.1.3', :lib => 'system_timer'
|
config.gem 'SystemTimer', :version => '>= 1.1.3', :lib => 'system_timer'
|
||||||
config.gem 'sanitize'
|
config.gem 'sanitize'
|
||||||
config.gem 'i18n', :version => '= 0.4.1'
|
config.gem 'i18n', :version => '>= 0.5.0'
|
||||||
|
|
||||||
# Only load the plugins named here, in the order given (default is alphabetical).
|
# Only load the plugins named here, in the order given (default is alphabetical).
|
||||||
# :all can be used as a placeholder for all plugins not explicitly named
|
# :all can be used as a placeholder for all plugins not explicitly named
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
module I18n
|
module I18n
|
||||||
|
original_verbosity = $VERBOSE
|
||||||
|
$VERBOSE = nil
|
||||||
|
INTERPOLATION_PATTERN = /\{\{(\w+)\}\}/
|
||||||
|
$VERBOSE = original_verbosity
|
||||||
|
|
||||||
module Backend
|
module Backend
|
||||||
class Simple
|
class Simple
|
||||||
module Implementation
|
module Implementation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue