Hi all,

consider the case you have more than one dynamic value for a text.
You can write:

<%= There are %d horses / 3 %>

but, what if:

<%= There are %d horses on the %s / [3, "moon"] %>

The following idea won't work:

<%= (There are %d horses on the %s / 3) / "moon" %>

since Globalize would insert the two strings

"There are %d horses on the %s"
"There are 3 horses on the %s"

in the database and one more for each new value :).

My idea is to patch Globalize to accept an array of value.

Does anyone had the same problem?
Just wanna know what you think.

Thanx in advance.
Thomas

---
Thomas Baustert - Freiberuflicher Softwarecoach
fon: +49(40)411 622 35 mobil: +49(173)23 911 43
fax: +49(40)411 622 36
thomas.baustert(at)b-simple.de





_______________________________________________
Railsi18n-discussion mailing list
Railsi18n-discussion@rubyforge.org
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to