This project is archived and is in readonly mode.
Localized templates does not work with "pt-BR" or "en-US" as locale
-
José Valim
- Assigned user set to josh
-
josh
- State changed from new to open
- Milestone cleared.
Just want to make sure, I18n supports dashed locales? If so, we should support this.
Can you make a failing test case to go along with this and I'll get it in 2.3
-
José Valim
Yes, I18n supports dashed locales. Remember that at first, the default locale would even be "en-US"?
I will make a failing test case and a patch. :)
-
Sven Fuchs
Yup, it does. Just for the record that's RFC4646 (http://tools.ietf.org/html/rfc46....1). Picked that one because it seemed like the best match.
José, thanks for taking care of this!
-
José Valim
Patch attached!
Josh, we are calling I18n.reload! to add locales in both rescue_test.rb and render_test.rb. This is not needed, because we are already adding the locales in abstract_unit.rb.
I just didn't want to remove it, since it's not the scope of this patch, but I'm going to attach other soon.
@Sven, glad to help! :)
-
José Valim
Josh, attached another patch "simplifying_rescue_tests.diff" and it should be applied after the first I sent.
I removed such lines and everything still passes over here, but I would recommend you to check if it also passes on your machine.
Regards!
-
Repository
- State changed from open to resolved
(from [24f2e676f700b8a387c6f4c27acf172658cd7863]) Added support to dashed locales in templates localization [#1888 Localized templates does not work with "pt-BR" or "en-US" as locale state:resolved] Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
