Yes, but did you add your locales directory to the load path as in
init.rb file I linked to?  That part is the missing step.

Using the convention of Rails is not enough, you have to tell Rails to
include files in the directory.

Cheers,
Walter

On Sat, Nov 27, 2010 at 6:27 AM, Paul Schreiber <paulschrei...@gmail.com> wrote:
> On Nov 22, 9:53 pm, Walter McGinnis <walter.mcgin...@gmail.com> wrote:
>
>> Here's some example code from a Rails engine:
>>
>> https://github.com/kete/external_search_sources/blob/master/init.rb
>>
>> You'll note that it follows the Rails convention of having a config
>> and config/locales directory.
>>
>> Hope that helps,
>
> Unfortunately, it does not. I tried this layout:
>
> validates_word_count/
>  init.rb
>  lib/
>    validates_word_count.rb
>  config
>    locales/
>      en.yml
>
> And I still get the "translation missing" error.
>
>
> Paul
>
> --
> 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-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to