Unable to use specific locale file #7

Closed
guillaumebesse opened this Issue Jun 8, 2011 · 4 comments

Projects

None yet

2 participants

@guillaumebesse

In my fr.yml file, I have

fr:
  activerecord:   
    enums:
      recipe:
        course_type:
          unkown: "Inconnu"
          amuse_bouche: "Amuse-bouche"
          entree: "Entrée"
          accompagnement: "Accompagnement"
          plat_principal: "Plat principal"
          dessert: "Dessert"
          sauce: "Sauce"
          boisson: "Boisson"
          base: "Base"

I want to use these translations with
<%= select(:recipe, "course_type_enum", Recipe.course_types_for_select(:value)) %>

Is it supported ?
Any help or advice welcome.

@lwe
Owner
lwe commented Jun 8, 2011

Hi Guillaume

Honesty my examples with didum & dadam are kinda missing the link to reality, gonna change that :) You got it almost correctly there, just course_type must be pluralized: course_types:.

@lwe
Owner
lwe commented Jun 8, 2011

okay, I've added an example to the README about how to add translations, hope this explains it correctly ;)

@guillaumebesse

Hi Iwe,

Everything is ok now.
Thank you for your answer and your work !

@lwe
Owner
lwe commented Jun 8, 2011

Awesome, glad you were able to resolve it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment