This project is archived and is in readonly mode.
TranslationHelper#translate joins array
-
Santiago Pastorino
- Milestone set to 2.3.7
- Tag changed from 2.3.6, helpers, i18n to 2.3.6, helpers, i18n, patch
- State changed from new to open
-
Santiago Pastorino
- Assigned user changed from Santiago Pastorino to José Valim
Patches for master and 2-3-stable
-
Santiago Pastorino
Some missing things on the tests added
-
Repository
- State changed from open to committed
(from [6b0616d1b8c8a3333020e34b4a160e4ec37a8889]) translation method of TranslationHelper module returns a SafeBuffer Array backport
[#4675 TranslationHelper#translate joins array state:committed]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/6b0616d1b8c8a3333020e34b4a160e... -
Repository
(from [05c95b5c5815c0b3ae55fda7a897922b7f3ec2c7]) translation method for arrays on TranslationHelper module returns an array where values for keys of the form (.|_)html keys are html_safe
[#4675 TranslationHelper#translate joins array]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/05c95b5c5815c0b3ae55fda7a89792... -
The_Lord
Yeah except now it ALWAYS returns an array (I'm on edge rails 3 beta3):
$ rails c Loading development environment (Rails 3.0.0.beta3)
irb(main):001:0> include ActionView::Helpers
=> Object irb(main):002:0> t(:index)
=> ["Home page"]My en.yml file looks like this:
en:
index: Home pageWhen I use it inside a link_to method the rendered link looks like this: ["Home page"]
and for me it really isn't the desired behaviour. -
José Valim
The symbol case is also fixed in my branch. Pushing soon.
