sproutcore/sproutcore — pull request #960 by joegaudet (2013-03-13 23:15:17+00:00)
Title: Added support for localized number ordinals / ordinals in DateTime#toFormattedString

Added support for taking any number and calling ordinal on it (5 => 5th, 3=>3rd). It Looks first in Locale for a i8n version of the ordinal function (stored in a map on the Locale mixin) which by default will fall through to english. If the Locale doesn't yet exist (in testing) it uses an onboard version.

Additionally added support to SC.DateTime to hand %o to the ordinal function.

Also with tests!