Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:PeterBerkenbosch/spree-static…
Browse files Browse the repository at this point in the history
…-content
  • Loading branch information
Peter Berkenbosch committed Aug 14, 2009
2 parents 9f8179a + 3e3fe73 commit 2bd21b5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
18 changes: 11 additions & 7 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ extension to change the layout of the static pages.
<% end %>
</ul>

== INSTALLATION:
Suggest you load this extension before all other extensions as it
specifies a filter in Spree::BaseController that may not get inherited by its
controller subclasses if other extensions modify these controller subclasses
first.
== Installation and filter chain workaround:
Suggest you load this extension after the localization extension (you get the localization extension for free in spree core)
and before your remaining extensions as the static content extension specifies a filter in Spree::BaseController that may not get inherited by its
controller subclasses if other extensions modify these controller subclasses first.

To load this extension first, add this to your environment.rb inside the
We load the localization extension first to prevent its filter from being omitted from the filter chain.

Hope to resolve this workaround in the near future, see bug here for more info:
http://railsdog.lighthouseapp.com/projects/31096-spree/tickets/653-specifying-filters-in-extensions-can-create-filter-chains-missing-filters

Add this to your environment.rb inside the

"Spree::Initializer.run do |config|" block:

===
config.extensions = [:static_content, :all]
config.extensions = [:localization, :static_content, :all]
3 changes: 2 additions & 1 deletion config/locales/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ pl:
ext_static_content_slug: Skrót
ext_static_content_body: Zawartość
ext_static_content_new_page: Nowa strona
ext_static_content_editing_page: Edycja strony
ext_static_content_editing_page: Edycja strony
ext_static_content_visible: Widoczna na stronie głównej
13 changes: 13 additions & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
pt-BR:
ext_static_content_static_pages: Páginas estáticas
ext_static_content_static_pages_desc: Administrar página estática com editor visual (WYSIWYG).
ext_static_content_title: Título
ext_static_content_slug: Slug
ext_static_content_body: Corpo
ext_static_content_new_page: Nova página
ext_static_content_editing_page: Editando página
ext_static_content_foreign_link: Link externo (URL)
ext_static_content_show_in_header: Mostrar no cabeçalho
ext_static_content_show_in_footer: Mostrar no rodapé
ext_static_content_position: Posição

0 comments on commit 2bd21b5

Please sign in to comment.