Two localized templates bug on Edge Rails

The first one is related with locales like "en-US" and "pt-BR" (having
files as index.pt-BR.html.erb and show.en-US.html.erb). Files with
such locales are not inserted in the views path.

I've created a ticket with the exact line that is causing the error
and how to fix it:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1888-localized-templates-does-not-work-with-pt-br-or-en-us-as-locale

The other is related with XML HTTP Requests using localized templates.
When we have such requests, we usually fallback to html, but that
fallback does not happen in localized templates.

Again, I've created a ticket and pointed out the solution:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1886-html-fallback-when-format-is-js-should-be-also-localized

Cheers,