I18n hints for namespaces models #862

Closed
robotex82 opened this Issue Jun 22, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@robotex82

I'm trying to translate hints and titles for namespaces models like this:

  de:
    formtastic:
      hints:
        ecm/cms_core/template:
          basename: "Wählen Sie einen eindeutigen Namen für ihre Seite." 
      titles:    
        ecm/cms_core/template:
          advanced: "Erweiterte Einstellungen"

titles are working, but hints are not working. What am I missing?

I'm using:

ruby (1.9.3)
formtastic (2.1.1)
rails (3.2.6)

Cheers,

Roberto

@robotex82

This comment has been minimized.

Show comment Hide comment
@robotex82

robotex82 Jun 22, 2012

Forget about it. It works.....but don't ask why! ;)

Forget about it. It works.....but don't ask why! ;)

@robotex82 robotex82 closed this Jun 22, 2012

@gauthier-delacroix

This comment has been minimized.

Show comment Hide comment
@gauthier-delacroix

gauthier-delacroix Dec 4, 2012

It doesn't work for me.

I have a Service::Backup namespaced model (and lots other services).

Here is I18N lookup chain for hints on field "paths" :

I18N keys: [:fr, :simple_form, :hints, :service, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :service, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :paths]
I18N keys: [:fr, :simple_form, :hints, :service, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :service, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :paths]

Don't know why it looks twice for the same chain but it obviously don't look into service/backup, where it works fine for the attribute name :

I18N keys: [:fr, :mongoid, :attributes, :"service/backup", :paths]
I18N keys: [:fr, :mongoid, :attributes, :service, :paths]
I18N keys: [:fr, :attributes, :paths]
  • ruby 1.9.3
  • rails 3.2.8
  • simple_form 2.0.3
  • mongoid 3.0.6

It doesn't work for me.

I have a Service::Backup namespaced model (and lots other services).

Here is I18N lookup chain for hints on field "paths" :

I18N keys: [:fr, :simple_form, :hints, :service, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :service, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :paths]
I18N keys: [:fr, :simple_form, :hints, :service, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :service, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :edit, :paths]
I18N keys: [:fr, :simple_form, :hints, :defaults, :paths]

Don't know why it looks twice for the same chain but it obviously don't look into service/backup, where it works fine for the attribute name :

I18N keys: [:fr, :mongoid, :attributes, :"service/backup", :paths]
I18N keys: [:fr, :mongoid, :attributes, :service, :paths]
I18N keys: [:fr, :attributes, :paths]
  • ruby 1.9.3
  • rails 3.2.8
  • simple_form 2.0.3
  • mongoid 3.0.6
@justinfrench

This comment has been minimized.

Show comment Hide comment
@justinfrench

justinfrench Dec 4, 2012

Owner

@porecreat Why are you asking for simple_form support on Formtastic?

Owner

justinfrench commented Dec 4, 2012

@porecreat Why are you asking for simple_form support on Formtastic?

@gauthier-delacroix

This comment has been minimized.

Show comment Hide comment
@gauthier-delacroix

gauthier-delacroix Dec 4, 2012

Ouch....I've opened 2 different issues about the same kind of problem and I thought it was Rails I18n github...sorry ! ;o)

Ouch....I've opened 2 different issues about the same kind of problem and I thought it was Rails I18n github...sorry ! ;o)

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