Last modified: 2013-04-22 16:15:16 UTC
$lang->formatDuration() does not convert to user language. For above URL I get: شماره ویرایشهای اخیر (در 30 روز گذشته) (English: Recent number of edits (within past 30 days))
Should we add a new parameter $2 for formatted number (which makes reuse of these messages difficult, like my Gerrit change #22699), or just use {{formatnum:$1}} in them?
(In reply to comment #1) > Should we add a new parameter $2 for formatted number No. $1 should always be a formatted number.
(In reply to comment #2) > No. $1 should always be a formatted number. Then {{PLURAL:$1| will fail.
It wont fail. It is more likely to fail if the number is not formatted properly.
(In reply to comment #4) > It wont fail. It is more likely to fail if the number is not formatted > properly. Ah really. I read its source just now. In the past I thought it accept ascii digits only.
It has been this way for a quite while now :)
commited Gerrit change #37254
Change merged.