2

Is there anyway that i can use locale on ruby's Time.strftime ? How can i use different languages? German, Turkish anyother language rather than English? Thanks

vigo
  • 298
  • 3
  • 8

1 Answers1

4

The R18n internationalization gem has locale-aware pretty printers that can print dates and times in various languages and formats.

gioele
  • 9,748
  • 5
  • 55
  • 80
  • hmmm ruby doesn't support locale then? need extra gem to make this happen. strange. thanks gioele. – vigo Dec 17 '11 at 20:59
  • 1
    The classes in the standard Ruby library completely ignore locales because that is a problem that is very hard to solve correctly for everybody. Go for that gem, it is solid and widely used. – gioele Dec 18 '11 at 01:01