Hi Matt
If you are using 1.0.x I can give you an example of enum_string
translate working ...
1) set up a hobofield type for your enum_string in your model...
2) change the field type to your hobofield type.
in your model (in this case, your User model):
----
class User < ActiveRecord::Base
hobo_user_model # Don't put anything above this
Language = HoboFields::EnumString.for(:es_AR,:en_US)
fields do
name :string
language User::Language, :required, :default => "es_AR"
end
end
----
in your language.yml file:
(check your spaces, it should have only 2 left spaces for user/
languages)
---
user/languages:
en_US: "English - United States"
es_AR: "Español - Argentina"
----
Best regards
eddie
On 9 mayo, 15:25, Matt <[email protected]> wrote:
> I turned on config.hobo.show_translation_keys = true
> to correctly see what I should put in my app.en.yml file for text
> translation. This has worked great except for a particular select
> box:
>
> [En.Event/Event Request Types.Employee]Employee
>
> So, when I try to put
> En:
> Event/Event Request Types:
> Employee: "Internal People"
>
> it fails. I make sure there are two additional spaces for each line,
> and I've tried endless combinations. I'm not sure why the translation
> wants to to include spaces (yes, those are spaces before and after
> 'Request'....... why it wants En instead of en, and why it wants a
> slash character /.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.