Changes to Cts_Translate::translate

1 view
Skip to first unread message

jay...@gmail.com

unread,
Feb 22, 2009, 2:14:58 PM2/22/09
to Communit.as Development
I made a pretty substantial modification to the translate method. It
doesn't affect anything that calls it.

Basically, the way it was originally parsed the arguments (vsprintf,
sprintf, etc) *before* the key got looked up, meaning that it was
looking for "Password must be between 6 and 32 chars" instead of
"Password must be between %d and %d chars"

I have modified it so it does the parse *after* it looks for a
translation, and it uses the unparsed string as the key.
Reply all
Reply to author
Forward
0 new messages