Skip to content

Commit

Permalink
Locales in admin tab
Browse files Browse the repository at this point in the history
  • Loading branch information
hazg committed Jun 11, 2011
1 parent 79ea10f commit de82787
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
en:
multi_sites:
sites: Sites
4 changes: 4 additions & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
ru:
multi_sites:
sites: Сайты
4 changes: 2 additions & 2 deletions multi_site_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def activate
Admin::PagesController.send :include, MultiSite::PagesControllerExtensions
admin.pages.index.add :bottom, "site_subnav"
tab 'Settings' do |tab|
tab.add_item t('sites'), '/admin/sites'
tab.add_item I18n.t('multi_sites.sites'), '/admin/sites'
end
load_default_regions
end
Expand All @@ -38,6 +38,6 @@ def load_default_regions
end
sites.new = sites.edit
end
end

end
end

0 comments on commit de82787

Please sign in to comment.