Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locales in Admin interface? #13

Open
themel opened this issue Nov 5, 2010 · 1 comment
Open

Locales in Admin interface? #13

themel opened this issue Nov 5, 2010 · 1 comment

Comments

@themel
Copy link

themel commented Nov 5, 2010

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants