From 55345f9efd53b48d5f8e3234eb5ead328295e689 Mon Sep 17 00:00:00 2001 From: oliver Date: Fri, 14 Aug 2009 06:24:11 +0800 Subject: [PATCH 1/3] adding Brazilian Portuguese localization Signed-off-by: Peter Berkenbosch --- config/locales/pt-BR.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/locales/pt-BR.yml diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml new file mode 100644 index 00000000..30b7590c --- /dev/null +++ b/config/locales/pt-BR.yml @@ -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 \ No newline at end of file From 0afe5412e3a87c9bc0abb03a3ec54541ecfb0f52 Mon Sep 17 00:00:00 2001 From: Marcin Raczkowski Date: Fri, 14 Aug 2009 19:36:49 +0800 Subject: [PATCH 2/3] Polish translation Signed-off-by: Peter Berkenbosch --- config/locales/pl.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 435576b1..4474718f 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -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 \ No newline at end of file + ext_static_content_editing_page: Edycja strony + ext_static_content_visible: Widoczna na stronie głównej From 3e3fe73e89545adf6c62e40683529eefa32deb05 Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Fri, 14 Aug 2009 21:21:23 +0800 Subject: [PATCH 3/3] Added docs on workaround for avoiding issue with localization filter Signed-off-by: Peter Berkenbosch --- README.rdoc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.rdoc b/README.rdoc index ee4ebe29..1b546398 100644 --- a/README.rdoc +++ b/README.rdoc @@ -25,15 +25,19 @@ extension to change the layout of the static pages. <% end %> -== 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] \ No newline at end of file + config.extensions = [:localization, :static_content, :all] \ No newline at end of file