update padrino i18n hack
This commit is contained in:
parent
96eac33118
commit
4652736cea
2 changed files with 5 additions and 4 deletions
|
@ -191,7 +191,7 @@ end
|
|||
##
|
||||
# Loads our locale configuration files
|
||||
#
|
||||
I18n.load_path += Dir["#{File.dirname(__FILE__)}/locale/*.yml"] if defined?(I18n)
|
||||
### I18n.load_path += Dir["#{File.dirname(__FILE__)}/locale/*.yml"] if defined?(I18n) ### !!! FIXME middleman ###
|
||||
|
||||
##
|
||||
# Used to determine if this file has already been required
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require 'padrino-core/support_lite' unless defined?(SupportLite)
|
||||
require 'middleman-core/vendor/padrino-core-0.10.6/lib/padrino-core/support_lite' unless defined?(SupportLite) ### !!! FIXME middleman ###
|
||||
### require 'padrino-core/support_lite' unless defined?(SupportLite) ### !!! FIXME middleman ###
|
||||
require 'cgi'
|
||||
require 'i18n'
|
||||
### require 'i18n' ### !!! FIXME middleman ###
|
||||
require 'enumerator'
|
||||
require 'active_support/core_ext/string/conversions' # to_date
|
||||
require 'active_support/core_ext/float/rounding' # round
|
||||
|
@ -11,7 +12,7 @@ require 'active_support/inflector' # humanize
|
|||
FileSet.glob_require('padrino-helpers/**/*.rb', __FILE__)
|
||||
|
||||
# Load our locales
|
||||
I18n.load_path += Dir["#{File.dirname(__FILE__)}/padrino-helpers/locale/*.yml"]
|
||||
### I18n.load_path += Dir["#{File.dirname(__FILE__)}/padrino-helpers/locale/*.yml"] ### !!! FIXME middleman ###
|
||||
|
||||
module Padrino
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue