convert i18n to new ext

This commit is contained in:
Thomas Reynolds 2013-04-20 14:58:06 -07:00
parent 01e85b8bf7
commit 2500e4d35d
4 changed files with 148 additions and 177 deletions

View file

@ -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

View file

@ -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