Php multilanguage date: howto?

后端 未结 3 399
隐瞒了意图╮
隐瞒了意图╮ 2020-12-21 06:20

Nota: this is not a duplicate of Translating PHP date() for Multilingual Site . I\'ve read it!

I\'m sorry, I first have to explain how my framework works, so you can

3条回答
  •  礼貌的吻别
    2020-12-21 06:31

    For internationalization tasks, I'd strongly recommend using the PHP intl extension. It contains several classes for common internationalization tasks such as date/time formatting, number formatting, string transliteration and more. Specifically, the IntlDateFormatter class is able to format (and parse) a datetime for any available locale.

提交回复
热议问题