Joost,

I was checking Rails source code and this seems like a bug.

Looking at rails/actionpack/lib/action_view/template.rb:

http://github.com/rails/rails/blob/aa6c7185ff9add35733ed723b7d0f9296b8270f3/actionpack/lib/action_view/template.rb

On line 239 we see the regexp that process your view path:

    m = extensions.match(/^(\w+)?\.?(\w+)?\.?(\w+)?\.?/)

The second parenthesis was suppose to match the locale, but it does
not accept hifen (-).
That's way it's not working.

I'm going to submit a patch to Lighthouse (this is the third
today :/).

Cheers

On Feb 5, 12:44 pm, Joost <[email protected]> wrote:
> I've checked and 'nl-NL' is also in the I18n.available_locales..
> however.. even on a fresh Rails 2.3 project it does NOT render the
> index.nl-NL.html.erb file.
>
> Loading development environment (Rails 2.3.0)>> I18n.locale
> => "nl-NL"
> >> I18n.available_locales.include?(I18n.locale.to_sym)
>
> => true
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rails-i18n" 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/rails-i18n?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to