This project is archived and is in readonly mode.
I18n.translate strange behavior with the << operator
-
Mario
Sorry, the previous post is not correctly formatted.
Repeat code:x = I18n.translate :foo #=> "Foo Text" x << ' plus more text added on the fly' #=> "Foo Text plus more text added on the fly" # OhMy!! The added text is now in the translation cache! I18n.translate :foo #=> "Foo Text plus more text added on the fly"Using the << operator, in each request the same text is appended, and is hard to discover the reason.
-
thedarkone
This commit to the
I18nlibrary probably fixes your problem: http://github.com/svenfuchs/i18n/commit/0ca77036fccec252a546db51d29...