Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed specific locale definitions for en-AU and en-GB as fallbacks …

…are smarter (existing locales were out of date anyway). Updated readme with instructions for setting up i18n fallback.
  • Loading branch information...
commit 59f10f959bf876cac50be0e9e491be111fdfd79d 1 parent a455fbe
@tgmcclen authored
Showing with 8 additions and 51 deletions.
  1. +6 −0 README.rdoc
  2. +1 −30 config/locales/en-AU.yml
  3. +1 −21 config/locales/en-GB.yml
View
6 README.rdoc
@@ -32,3 +32,9 @@ extension to change the layout of the static pages.
1. Run `rails g spree_static_content:install`
1. Run `rake db:migrate`
1. Run `rake spree_editor:install`
+
+== I18N
+There's a good chance that you've got Spree running in a particular locale, like en-GB. This extension does not provide specific locale support for English as it is just duplicated across regions (GB, AU, CA, etc). Therefore you should set i18n fallbacks to true in your application.rb file to pick up the default en locale:
+
+config.i18n.default_locale = 'en-GB'
+config.i18n.fallbacks = true
View
31 config/locales/en-AU.yml
@@ -1,32 +1,3 @@
---
en-AU:
- activerecord:
- attributes:
- page:
- title: Title
- slug: Slug
- body: Body
- foreign_link: Foreign link (URL)
- show_in_sidebar: Show in sidebar
- show_in_header: Show in header
- show_in_footer: Show in footer
- position: Position
- visible: Visible
- meta_keywords: Meta Keywords
- meta_description: Meta Description
- layout: Layout
- models:
- page:
- one: Page
- many: Pages
-
- page: Page
- pages: Pages
- static_content:
- static_pages: Static pages
- static_pages_desc: Manage static page with WYSIWYG editor.
- new_page: New page
- editing_page: Editing page
- confirm_delete: Are you sure ?
- link: Link
- meta_title: Meta Title
+# Placeholder to not break existing installations, see README for i18n considerations
View
22 config/locales/en-GB.yml
@@ -1,23 +1,3 @@
---
en-GB:
- pages: Pages
- static_content:
- static_pages: Static pages
- static_pages_desc: Manage static page with WYSIWYG editor.
- title: Title
- slug: Slug
- body: Body
- new_page: New page
- editing_page: Editing page
- foreign_link: Foreign link (URL)
- show_in_sidebar: Show in sidebar
- show_in_header: Show in header
- show_in_footer: Show in footer
- position: Position
- visible: Visible
- confirm_delete: Are you sure?
- link: Link
- meta_title: Meta Title
- meta_keywords: Meta Keywords
- meta_description: Meta Description
- layout: Layout
+# Placeholder to not break existing installations, see README for i18n considerations
Please sign in to comment.
Something went wrong with that request. Please try again.