Well, the larger goal is to have hundreds if not thousands of
internationalized strings. Your version is good for a small amount of
strings but not applicable for me.
What would you guys prefer t("hello.#{rand(3)}") or Translation.first(1,
:order => 'RAND()')?
The model would be easy to internationalize with globalize for example
which is the same for the I18n version but rand() not variable and I'd
need to adjust the number whenever I add another string that wouldn't be
the case for the translation model.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en.