Yii Framework Forum: Ordinal number localization - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ordinal number localization Rate Topic: -----

#1 User is offline   Rutger 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 16-November 11

Posted 16 April 2012 - 06:56 AM

I think an ordinal number function would be a nice addition to the framework.
Perhaps something like this would be possible:

Yii::t('test', '{on} quarter', 1);
Yii::t('test', '{on} quarter', 2);
Yii::t('test', '{on} quarter', 3);
Yii::t('test', '{on} quarter', 4);


which would output

1st quarter
2nd quarter
3th quarter
4th quarter


Thx
0

#2 User is offline   Abdulrhman A 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 12-October 11

Posted 02 May 2012 - 10:54 AM

It would be nice if added ::)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users