FAQ
Hello,

I installed spree-i18n for translations but when I configure it, nothing
change or I've got a route error.

My *Gemfile.rb* :
source 'https://rubygems.org'

gem 'rails', '3.2.13'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
   gem 'sass-rails', '~> 3.2.3'
   gem 'coffee-rails', '~> 3.2.1'

   # See https://github.com/sstephenson/execjs#readme for more supported
runtimes
   # gem 'therubyracer', :platforms => :ruby

   gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'
gem 'rails-i18n'

gem 'spree', github: 'spree/spree', branch: '2-0-stable'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git',
:branch => '2-0-stable'
gem 'spree_auth_devise', :git =>
'https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch
=> '2-0-stable'



The error come when I set default locale in *application.rb* :
config.i18n.default_locale = :fr

Here is the error :

No route matches {:controller=>"spree/taxons", :action=>"show", :id=>nil}


I correctly created a Yaml file called 'fr' who content
(https://github.com/spree/spree_i18n/blob/master/config/locales/fr.yml).


Thanks for your help.

Search Discussions

  • Washington L Braga Jr at Jun 24, 2013 at 6:16 pm
    I think I fixed this issue on the weekend. Try running "bundle update
    spree_i18n" and let us know if that fixes the issue for you.
    On 24-06-2013 08:50, thomas deconinck wrote:
    Hello,

    I installed spree-i18n for translations but when I configure it,
    nothing change or I've got a route error.

    My *Gemfile.rb* :
    source 'https://rubygems.org'

    gem 'rails', '3.2.13'

    # Bundle edge Rails instead:
    # gem 'rails', :git => 'git://github.com/rails/rails.git'

    gem 'sqlite3'


    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
    gem 'sass-rails', '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'

    # See https://github.com/sstephenson/execjs#readme for more
    supported runtimes
    # gem 'therubyracer', :platforms => :ruby

    gem 'uglifier', '>= 1.0.3'
    end

    gem 'jquery-rails'

    # To use ActiveModel has_secure_password
    # gem 'bcrypt-ruby', '~> 3.0.0'

    # To use Jbuilder templates for JSON
    # gem 'jbuilder'

    # Use unicorn as the app server
    # gem 'unicorn'

    # Deploy with Capistrano
    # gem 'capistrano'

    # To use debugger
    # gem 'debugger'
    gem 'rails-i18n'

    gem 'spree', github: 'spree/spree', branch: '2-0-stable'
    gem 'spree_gateway', :git =>
    'https://github.com/spree/spree_gateway.git', :branch => '2-0-stable'
    gem 'spree_auth_devise', :git =>
    'https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
    gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git',
    :branch => '2-0-stable'

    The error come when I set default locale in *application.rb* :

    config.i18n.default_locale =:fr
    Here is the error :
    No route matches {:controller=>"spree/taxons", :action=>"show", :id=>nil}

    I correctly created a Yaml file called 'fr' who content
    (https://github.com/spree/spree_i18n/blob/master/config/locales/fr.yml).


    Thanks for your help.
    --
    Washington L Braga Jr
    Developer
    Spree Commerce, Inc.
  • Thomas deconinck at Jun 26, 2013 at 8:37 am
    Now it works perfectly ! Thank you so much :)

    Le lundi 24 juin 2013 20:16:12 UTC+2, Washington L Braga Jr a écrit :
    I think I fixed this issue on the weekend. Try running "bundle update
    spree_i18n" and let us know if that fixes the issue for you.

    On 24-06-2013 08:50, thomas deconinck wrote:

    Hello,

    I installed spree-i18n for translations but when I configure it, nothing
    change or I've got a route error.

    My *Gemfile.rb* :
    source 'https://rubygems.org'

    gem 'rails', '3.2.13'

    # Bundle edge Rails instead:
    # gem 'rails', :git => 'git://github.com/rails/rails.git'

    gem 'sqlite3'


    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
    gem 'sass-rails', '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'

    # See https://github.com/sstephenson/execjs#readme for more supported
    runtimes
    # gem 'therubyracer', :platforms => :ruby

    gem 'uglifier', '>= 1.0.3'
    end

    gem 'jquery-rails'

    # To use ActiveModel has_secure_password
    # gem 'bcrypt-ruby', '~> 3.0.0'

    # To use Jbuilder templates for JSON
    # gem 'jbuilder'

    # Use unicorn as the app server
    # gem 'unicorn'

    # Deploy with Capistrano
    # gem 'capistrano'

    # To use debugger
    # gem 'debugger'
    gem 'rails-i18n'

    gem 'spree', github: 'spree/spree', branch: '2-0-stable'
    gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git',
    :branch => '2-0-stable'
    gem 'spree_auth_devise', :git => '
    https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
    gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git',
    :branch => '2-0-stable'



    The error come when I set default locale in *application.rb* :
    config.i18n.default_locale = :fr

    Here is the error :

    No route matches {:controller=>"spree/taxons", :action=>"show", :id=>nil}


    I correctly created a Yaml file called 'fr' who content (
    https://github.com/spree/spree_i18n/blob/master/config/locales/fr.yml).


    Thanks for your help.



    --
    Washington L Braga Jr
    Developer
    Spree Commerce, Inc.
  • Long Nguyen Thanh at Jul 29, 2013 at 7:37 am
    I do have this error when I am trying to set default locale in
    application.rb: config.i18n.default_locale = :vi and I did run "bundle
    update spree_i18n"

    This is my gem file
    source 'https://rubygems.org'
    gem 'rails', '3.2.14'
    gem 'sqlite3'
    group :assets do
       gem 'sass-rails', '~> 3.2.3'
       gem 'coffee-rails', '~> 3.2.1'
       gem 'uglifier', '>= 1.0.3'
    end

    gem 'jquery-rails'
    gem 'spree', github: 'spree/spree', branch: '2-0-stable'
    gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch:
    '2-0-stable'
    gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch
    => '2-0-stable'

    Thanks,
    On Wednesday, June 26, 2013 3:37:11 PM UTC+7, thomas deconinck wrote:

    Now it works perfectly ! Thank you so much :)

    Le lundi 24 juin 2013 20:16:12 UTC+2, Washington L Braga Jr a écrit :
    I think I fixed this issue on the weekend. Try running "bundle update
    spree_i18n" and let us know if that fixes the issue for you.

    On 24-06-2013 08:50, thomas deconinck wrote:

    Hello,

    I installed spree-i18n for translations but when I configure it,
    nothing change or I've got a route error.

    My *Gemfile.rb* :
    source 'https://rubygems.org'

    gem 'rails', '3.2.13'

    # Bundle edge Rails instead:
    # gem 'rails', :git => 'git://github.com/rails/rails.git'

    gem 'sqlite3'


    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
    gem 'sass-rails', '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'

    # See https://github.com/sstephenson/execjs#readme for more supported
    runtimes
    # gem 'therubyracer', :platforms => :ruby

    gem 'uglifier', '>= 1.0.3'
    end

    gem 'jquery-rails'

    # To use ActiveModel has_secure_password
    # gem 'bcrypt-ruby', '~> 3.0.0'

    # To use Jbuilder templates for JSON
    # gem 'jbuilder'

    # Use unicorn as the app server
    # gem 'unicorn'

    # Deploy with Capistrano
    # gem 'capistrano'

    # To use debugger
    # gem 'debugger'
    gem 'rails-i18n'

    gem 'spree', github: 'spree/spree', branch: '2-0-stable'
    gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git',
    :branch => '2-0-stable'
    gem 'spree_auth_devise', :git => '
    https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
    gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git',
    :branch => '2-0-stable'



    The error come when I set default locale in *application.rb* :
    config.i18n.default_locale = :fr

    Here is the error :

    No route matches {:controller=>"spree/taxons", :action=>"show", :id=>nil}


    I correctly created a Yaml file called 'fr' who content (
    https://github.com/spree/spree_i18n/blob/master/config/locales/fr.yml).


    Thanks for your help.



    --
    Washington L Braga Jr
    Developer
    Spree Commerce, Inc.
  • Long Nguyen Thanh at Jul 29, 2013 at 7:37 am
    Never mind, I forgot to add vi to available_locales and supported_locales
    in initializer
    On Monday, June 24, 2013 6:50:37 PM UTC+7, thomas deconinck wrote:

    Hello,

    I installed spree-i18n for translations but when I configure it, nothing
    change or I've got a route error.

    My *Gemfile.rb* :
    source 'https://rubygems.org'

    gem 'rails', '3.2.13'

    # Bundle edge Rails instead:
    # gem 'rails', :git => 'git://github.com/rails/rails.git'

    gem 'sqlite3'


    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
    gem 'sass-rails', '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'

    # See https://github.com/sstephenson/execjs#readme for more supported
    runtimes
    # gem 'therubyracer', :platforms => :ruby

    gem 'uglifier', '>= 1.0.3'
    end

    gem 'jquery-rails'

    # To use ActiveModel has_secure_password
    # gem 'bcrypt-ruby', '~> 3.0.0'

    # To use Jbuilder templates for JSON
    # gem 'jbuilder'

    # Use unicorn as the app server
    # gem 'unicorn'

    # Deploy with Capistrano
    # gem 'capistrano'

    # To use debugger
    # gem 'debugger'
    gem 'rails-i18n'

    gem 'spree', github: 'spree/spree', branch: '2-0-stable'
    gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git',
    :branch => '2-0-stable'
    gem 'spree_auth_devise', :git => '
    https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
    gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git',
    :branch => '2-0-stable'



    The error come when I set default locale in *application.rb* :
    config.i18n.default_locale = :fr

    Here is the error :

    No route matches {:controller=>"spree/taxons", :action=>"show", :id=>nil}


    I correctly created a Yaml file called 'fr' who content (
    https://github.com/spree/spree_i18n/blob/master/config/locales/fr.yml).


    Thanks for your help.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJun 24, '13 at 11:51a
activeJul 29, '13 at 7:37a
posts5
users3
websitespreecommerce.com
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase