convert i18n to new ext
This commit is contained in:
parent
01e85b8bf7
commit
2500e4d35d
4 changed files with 148 additions and 177 deletions
|
@ -112,10 +112,10 @@ module Middleman
|
|||
extensions[ext][key] = ext_module.new(self.class, options, &block)
|
||||
else
|
||||
if extensions[ext]
|
||||
logger.error "== #{ext} already activated. Overwriting."
|
||||
logger.error "== #{ext} already activated."
|
||||
else
|
||||
extensions[ext] = ext_module.new(self.class, options, &block)
|
||||
end
|
||||
|
||||
extensions[ext] = ext_module.new(self.class, options, &block)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -158,13 +158,13 @@ module Middleman
|
|||
end
|
||||
|
||||
klass.after_configuration do
|
||||
if ext.respond_to?(:manipulate_resource_list)
|
||||
ext.app.sitemap.register_resource_list_manipulator(ext.class.extension_name, ext)
|
||||
end
|
||||
|
||||
if ext.respond_to?(:after_configuration)
|
||||
ext.after_configuration
|
||||
end
|
||||
|
||||
if ext.respond_to?(:manipulate_resource_list)
|
||||
ext.app.sitemap.register_resource_list_manipulator(ext.class.extension_name, ext)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue