spree-contrib / spree_i18n

I18n translation files for Spree Commerce.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
348 stars 762 forks source link

Missing translation #587

Open mmintel opened 9 years ago

mmintel commented 9 years ago

Hi there!

I got a missing translation on checkout/address and tried to fix it without success.

This is the message on the frontend:

<span class="translation_missing" title="translation missing: de.spree.adjustment_labels.tax_rates.excluding_tax">Excluding Tax</span>

And this is how my de.yml looks like:

de:
  hello: "Hello world"
  spree:
    adjustment_labels:
      tax_rates:
        excluding_tax: "Exklusive Steuer"

But this doesn't fix the error message.. other translations in that de.yml are working..

What's wrong with my fix?

tvdeyen commented 9 years ago

@mamhoff do you have any clue?

mamhoff commented 9 years ago

Can you post your Gemfile.lock so we know which Spree version you're at? Also, that particular label is actually one that should display the actual rate using I18ns string interpolation:

en:
  spree:
    adjustment_labels:
      tax_rates:
        including_tax: '%{name}%{amount} (Included in Price)'
        excluding_tax: '%{name}%{amount}'

Might it be that it's actually some kind of NameError?

mmintel commented 9 years ago

This is my Gemfile

GIT
  remote: git://github.com/joneslee85/spree-heroku.git
  revision: 3a3aa2165202f55acf689dcccc4d44648262c6a7
  specs:
    spree_heroku (1.0)
      aws-sdk (~> 1.3.4)
      spree_core (>= 0.70.0)

GIT
  remote: git://github.com/spree-contrib/spree_i18n.git
  revision: 
  branch: ~> 3.1.0.beta
  specs:
    spree_i18n (3.0.0)
      friendly_id-globalize
      globalize (~> 5.0.1)
      i18n_data (~> 0.5.1)
      kaminari-i18n (~> 0.3.2)
      rails-i18n (~> 4.0.1)
      routing-filter (~> 0.5.0)
      spree_core (~> 3.1.0.beta)

GIT
  remote: git://github.com/spree-contrib/spree_mail_settings.git
  revision: 5c5a28435f4962b38b1e8ad3df0db2eebec6c4cf
  branch: master
  specs:
    spree_mail_settings (2.2.0)
      spree_backend (~> 3.1.0.beta)

GIT
  remote: git://github.com/spree-contrib/spree_static_content.git
  revision: 75ca1a069a096fdb25836a868e3ae4002926237e
  branch: master
  specs:
    spree_static_content (3.0.0.beta)
      spree_core (~> 3.1.0.beta)

GIT
  remote: git://github.com/spree/spree_auth_devise.git
  revision: 
  branch: ~> 3.1.0.beta
  specs:
    spree_auth_devise (3.0.0)
      devise (~> 3.4.1)
      devise-encryptable (= 0.1.2)
      json
      multi_json
      spree_core (~> 3.1.0.beta)

GIT
  remote: git://github.com/spree/spree_gateway.git
  revision: 
  branch: ~> 3.1.0.beta
  specs:
    spree_gateway (3.0.0.beta)
      spree_core (~> 3.1.0.beta)

GIT
  remote: https://github.com/spree/spree.git
  revision: 
  branch: ~> 3.1.0.beta
  specs:
    spree (3.1.0.beta)
      spree_api (= 3.1.0.beta)
      spree_backend (= 3.1.0.beta)
      spree_cmd (= 3.1.0.beta)
      spree_core (= 3.1.0.beta)
      spree_frontend (= 3.1.0.beta)
      spree_sample (= 3.1.0.beta)
    spree_api (3.1.0.beta)
      rabl (~> 0.9.4.pre1)
      spree_core (= 3.1.0.beta)
      versioncake (~> 2.3.1)
    spree_backend (3.1.0.beta)
      bootstrap-sass (~> 3.3.1)
      jquery-rails (~> 4.0.3)
      jquery-ui-rails (~> 5.0.0)
      select2-rails (= 3.5.9.1)
      spree_api (= 3.1.0.beta)
      spree_core (= 3.1.0.beta)
      sprockets-rails (~> 2.2)
    spree_cmd (3.1.0.beta)
      thor (~> 0.14)
    spree_core (3.1.0.beta)
      activemerchant (~> 1.47.0)
      acts_as_list (~> 0.6)
      awesome_nested_set (~> 3.0.1)
      cancancan (~> 1.10.1)
      carmen (~> 1.0.0)
      deface (~> 1.0.0)
      ffaker (~> 2.0.0)
      font-awesome-rails (~> 4.0)
      friendly_id (~> 5.1.0)
      highline (~> 1.6.18)
      httparty (~> 0.11)
      json (~> 1.7)
      kaminari (~> 0.15, >= 0.15.1)
      monetize (~> 1.1)
      paperclip (~> 4.2.0)
      paranoia (~> 2.1.0)
      premailer-rails
      rails (~> 4.2.0)
      ransack (~> 1.4.1)
      responders
      state_machines-activerecord (~> 0.2)
      stringex
      truncate_html (= 0.9.2)
      twitter_cldr (~> 3.0)
    spree_frontend (3.1.0.beta)
      bootstrap-sass (~> 3.3.1)
      canonical-rails (~> 0.0.4)
      jquery-rails (~> 4.0.3)
      spree_api (= 3.1.0.beta)
      spree_core (= 3.1.0.beta)
      sprockets-rails (~> 2.2)
    spree_sample (3.1.0.beta)
      spree_core (= 3.1.0.beta)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.2.1)
      actionpack (= 4.2.1)
      actionview (= 4.2.1)
      activejob (= 4.2.1)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 1.0, >= 1.0.5)
    actionpack (4.2.1)
      actionview (= 4.2.1)
      activesupport (= 4.2.1)
      rack (~> 1.6)
      rack-test (~> 0.6.2)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    actionview (4.2.1)
      activesupport (= 4.2.1)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    activejob (4.2.1)
      activesupport (= 4.2.1)
      globalid (>= 0.3.0)
    activemerchant (1.47.0)
      activesupport (>= 3.2.14, < 5.0.0)
      builder (>= 2.1.2, < 4.0.0)
      i18n (>= 0.6.9)
      nokogiri (~> 1.4)
    activemodel (4.2.1)
      activesupport (= 4.2.1)
      builder (~> 3.1)
    activerecord (4.2.1)
      activemodel (= 4.2.1)
      activesupport (= 4.2.1)
      arel (~> 6.0)
    activesupport (4.2.1)
      i18n (~> 0.7)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    acts_as_list (0.7.2)
      activerecord (>= 3.0)
    addressable (2.3.8)
    arel (6.0.0)
    autoprefixer-rails (5.2.0)
      execjs
      json
    awesome_nested_set (3.0.2)
      activerecord (>= 4.0.0, < 5)
    aws-sdk (1.3.9)
      httparty (~> 0.7)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
      uuidtools (~> 2.1)
    aws-sdk-v1 (1.64.0)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
    bcrypt (3.1.10)
    binding_of_caller (0.7.2)
      debug_inspector (>= 0.0.1)
    bootstrap-sass (3.3.4.1)
      autoprefixer-rails (>= 5.0.0.1)
      sass (>= 3.2.19)
    bower (0.0.5)
      multi_json
    builder (3.2.2)
    byebug (5.0.0)
      columnize (= 0.9.0)
    camertron-eprun (1.1.0)
    cancancan (1.10.1)
    canonical-rails (0.0.9)
      rails (>= 3.1, < 5.0)
    carmen (1.0.2)
      activesupport (>= 3.0.0)
    cldr-plurals-runtime-rb (1.0.0)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.7)
      climate_control (>= 0.0.3, < 1.0)
    coffee-rails (4.1.0)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.9.1.1)
    colorize (0.7.7)
    columnize (0.9.0)
    css_parser (1.3.6)
      addressable
    debug_inspector (0.0.2)
    deface (1.0.1)
      colorize (>= 0.5.8)
      nokogiri (~> 1.6.0)
      polyglot
      rails (>= 3.1)
    devise (3.4.1)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      responders
      thread_safe (~> 0.1)
      warden (~> 1.2.3)
    devise-encryptable (0.1.2)
      devise (>= 2.1.0)
    erubis (2.7.0)
    excon (0.45.3)
    execjs (2.5.2)
    ffaker (2.0.0)
    figaro (1.1.1)
      thor (~> 0.14)
    font-awesome-rails (4.3.0.0)
      railties (>= 3.2, < 5.0)
    friendly_id (5.1.0)
      activerecord (>= 4.0.0)
    friendly_id-globalize (1.0.0.alpha1)
      friendly_id (>= 5.0.0.beta4, < 6.0)
    globalid (0.3.5)
      activesupport (>= 4.1.0)
    globalize (5.0.1)
      activemodel (>= 4.2.0, < 4.3)
      activerecord (>= 4.2.0, < 4.3)
    highline (1.6.21)
    htmlentities (4.3.3)
    httparty (0.13.5)
      json (~> 1.8)
      multi_xml (>= 0.5.2)
    i18n (0.7.0)
    i18n_data (0.5.1)
    jbuilder (2.2.16)
      activesupport (>= 3.0.0, < 5)
      multi_json (~> 1.2)
    jquery-rails (4.0.3)
      rails-dom-testing (~> 1.0)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    jquery-ui-rails (5.0.5)
      railties (>= 3.2.16)
    json (1.8.2)
    kaminari (0.16.3)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    kaminari-i18n (0.3.2)
      kaminari
      rails
    loofah (2.0.2)
      nokogiri (>= 1.5.9)
    mail (2.6.3)
      mime-types (>= 1.16, < 3)
    mandrill-api (1.0.53)
      excon (>= 0.16.0, < 1.0)
      json (>= 1.7.7, < 2.0)
    mime-types (2.6.1)
    mini_portile (0.6.2)
    minitest (5.7.0)
    monetize (1.3.0)
      money (~> 6.5.0)
    money (6.5.1)
      i18n (>= 0.6.4, <= 0.7.0)
    multi_json (1.11.0)
    multi_xml (0.5.5)
    mysql2 (0.3.18)
    nokogiri (1.6.6.2)
      mini_portile (~> 0.6.0)
    orm_adapter (0.5.0)
    paperclip (4.2.1)
      activemodel (>= 3.0.0)
      activesupport (>= 3.0.0)
      cocaine (~> 0.5.3)
      mime-types
    paranoia (2.1.2)
      activerecord (~> 4.0)
    pg (0.18.2)
    polyamorous (1.2.0)
      activerecord (>= 3.0)
    polyglot (0.3.5)
    premailer (1.8.4)
      css_parser (>= 1.3.6)
      htmlentities (>= 4.0.0)
    premailer-rails (1.8.2)
      actionmailer (>= 3, < 5)
      premailer (~> 1.7, >= 1.7.9)
    rabl (0.9.4.pre1)
      activesupport (>= 2.3.14)
    rack (1.6.1)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (4.2.1)
      actionmailer (= 4.2.1)
      actionpack (= 4.2.1)
      actionview (= 4.2.1)
      activejob (= 4.2.1)
      activemodel (= 4.2.1)
      activerecord (= 4.2.1)
      activesupport (= 4.2.1)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.2.1)
      sprockets-rails
    rails-deprecated_sanitizer (1.0.3)
      activesupport (>= 4.2.0.alpha)
    rails-dom-testing (1.0.6)
      activesupport (>= 4.2.0.beta, < 5.0)
      nokogiri (~> 1.6.0)
      rails-deprecated_sanitizer (>= 1.0.1)
    rails-html-sanitizer (1.0.2)
      loofah (~> 2.0)
    rails-i18n (4.0.4)
      i18n (~> 0.6)
      railties (~> 4.0)
    rails_12factor (0.0.3)
      rails_serve_static_assets
      rails_stdout_logging
    rails_serve_static_assets (0.0.4)
    rails_stdout_logging (0.0.3)
    railties (4.2.1)
      actionpack (= 4.2.1)
      activesupport (= 4.2.1)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.4.2)
    ransack (1.4.1)
      actionpack (>= 3.0)
      activerecord (>= 3.0)
      activesupport (>= 3.0)
      i18n
      polyamorous (~> 1.1)
    rdoc (4.2.0)
      json (~> 1.4)
    responders (2.1.0)
      railties (>= 4.2.0, < 5)
    routing-filter (0.5.0)
      actionpack (~> 4.2)
      activesupport (~> 4.2)
    sass (3.4.14)
    sass-rails (5.0.3)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (~> 1.1)
    sdoc (0.4.1)
      json (~> 1.7, >= 1.7.7)
      rdoc (~> 4.0)
    select2-rails (3.5.9.1)
      thor (~> 0.14)
    spring (1.3.6)
    sprockets (3.1.0)
      rack (~> 1.0)
    sprockets-rails (2.3.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (>= 2.8, < 4.0)
    state_machines (0.2.2)
    state_machines-activemodel (0.1.2)
      activemodel (~> 4.1)
      state_machines (~> 0.2.0)
    state_machines-activerecord (0.2.0)
      activerecord (~> 4.1)
      state_machines-activemodel (~> 0.1.0)
    stringex (2.5.2)
    thor (0.19.1)
    thread_safe (0.3.5)
    tilt (1.4.1)
    truncate_html (0.9.2)
    turbolinks (2.5.3)
      coffee-rails
    twitter_cldr (3.1.2)
      camertron-eprun
      cldr-plurals-runtime-rb (~> 1.0.0)
      json
      tzinfo
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (2.7.1)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    uuidtools (2.1.5)
    versioncake (2.3.1)
      actionpack (>= 3.2)
      activesupport (>= 3.2)
      railties (>= 3.2)
      tzinfo
    warden (1.2.3)
      rack (>= 1.0)
    web-console (2.1.2)
      activemodel (>= 4.0)
      binding_of_caller (>= 0.7.2)
      railties (>= 4.0)
      sprockets-rails (>= 2.0, < 4.0)

PLATFORMS
  ruby

DEPENDENCIES
  aws-sdk-v1
  bower
  byebug
  coffee-rails
  figaro
  jbuilder
  jquery-rails
  mandrill-api
  mysql2
  pg
  rails (= 4.2.1)
  rails_12factor
  ransack
  sass-rails
  sdoc
  spree!
  spree_auth_devise!
  spree_gateway!
  spree_heroku!
  spree_i18n!
  spree_mail_settings!
  spree_static_content!
  spring
  turbolinks
  uglifier
  web-console
NickNissen commented 7 years ago

Did you ever figure it out? I'm having the same issue and it's driving me crazy!

mmintel commented 7 years ago

No sorry I didn't solve it but I am not working on this project anymore

tuukkak commented 7 years ago

Does anyone have solution for this?

mrz944 commented 5 years ago

I was struggling with this for a few minutes. You need to clear your cart after setting this translation. After adding products to a new cart everything is ok.

vivek2007 commented 4 years ago

There is no solution better need to remove this topic from here