somebody?
On 19 mar, 22:09, Daniel Lopes
<danielvlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello,
>
> My project have strange behavior diferent than I expected.
>
> If I place a line like below after the Rails::Initializer block from
> my enviroment file it will work fine:
>
> PROJECT_NAME = I18n.t("settings.name")
>
> But If I move this to a initializer file it will get the translation
> error:
>
> "translation missing: xxx, xxx xxxx"
>
> I''m sure this is happening because the order of Rails load the
> framework, initializers and then locale.
>
> But somebody know if is possible to puts this in initializer and make
> that kind of constant assignments after Rails load the locale?
>
> I''m thinking in include a module after Rails::Initializer.run but
for
> that kind of thing need to be in a initializer file.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---