pero-ict-solutions / spree-static-content

Extention to manage the static pages for your spree shop
BSD 3-Clause "New" or "Revised" License
89 stars 398 forks source link

Locales in Admin interface? #13

Open themel opened 14 years ago

themel commented 14 years ago

Hi,

I just tried to use the latest version of this extension with a site based on an ancient Git snapshot (somewhere between Spree 0.10 and 0.11) and found that the localization in the Admin interface is broken, even when specifying the load order suggested in README.rdoc.

I get the usual untranslated symbols in my Admin interface (like de, ext_static_content_static_pages), even though the locales seem to work fine in console:

themel@kallisti: ~/src/homemadebuttons-current $ script/console
Loading development environment (Rails 2.3.5)
/home/themel/.gem/ruby/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
>> I18n.t(:ext_static_content_static_pages)
=> "Statische Seiten"

The load order seems to be as intended, since

Spree::ExtensionLoader.load_extension_roots => ["/var/lib/gems/1.8/gems/spree-0.10.99/vendor/extensions/localization", "/home/themel/src/homemadebuttons-current/vendor/extensions/static_content", "/var/lib/gems/1.8/gems/spree-0.10.99/vendor/extensions/api", "/var/lib/gems/1.8/gems/spree-0.10.99/vendor/extensions/calculators", "/var/lib/gems/1.8/gems/spree-0.10.99/vendor/extensions/overview_dashboard", "/var/lib/gems/1.8/gems/spree-0.10.99/vendor/extensions/payment_gateway", "/var/lib/gems/1.8/gems/spree-0.10.99/vendor/extensions/theme_default", "/home/themel/src/homemadebuttons-current/vendor/extensions/site", "/home/themel/src/homemadebuttons-current/vendor/extensions/theme_homemadebuttons_theme"]

Any ideas what could be wrong?

peterberkenbosch commented 14 years ago

Ai, that's a hard one. I really don't have a clue. Perhaps the admin loads the locales differerent. You could try to install the open_gem and do a gem open spree to see what happens in the admin part.