Skip to content
Browse files

i18n for page menu, fixes failing feature

  • Loading branch information...
1 parent 2548f6f commit 0bc1359794dc0a98114b3cddc666bdbcc3e2b94f @joshfrench joshfrench committed Aug 5, 2010
Showing with 4 additions and 1 deletion.
  1. +1 −1 app/helpers/page_types_helper.rb
  2. +3 −0 config/locales/en.yml
View
2 app/helpers/page_types_helper.rb
@@ -18,7 +18,7 @@ def child_menu_for(page)
children = children_for(page)
return nil if children.size < 2
children.unshift(children.delete(page.default_child), :separator) if children.include?(page.default_child)
- name_for = proc { |p| (name = p.name.to_name('Page')).blank? ? 'Page' : name }
+ name_for = proc { |p| (name = p.name.to_name('Page')).blank? ? t('normal_page') : name }
content_tag :ul, :class => 'menu', :id => "allowed_children_#{page.id}" do
children.map do |child|
if child == :separator
View
3 config/locales/en.yml
@@ -0,0 +1,3 @@
+---
+en:
+ normal_page: 'Normal Page'

0 comments on commit 0bc1359

Please sign in to comment.
Something went wrong with that request. Please try again.