WordPress.org

Ready to get started?Download WordPress

Forums

BUG: date_i18n() (2 posts)

  1. Thox
    Member
    Posted 9 years ago #

    Two small "bugs" I've noticed - nothing particularly wrong with the code though.
    1) Some languages have the first three letters the same in 2 or more months. For example in French: Juin and Juillet would both become just "Jui" after being trimmed to three letters by date_i18n(). The French often use "Jul" for Juillet instead.
    2) It's a little more difficult to translate (due to special rules in some languages) but date("S") returns "English ordinal suffix for the day of the month, 2 characters" (i.e. st, nd, rd, th). In Norwegian at least, they should all just be "e". It's a lot less common to use, but is there any reason why date("S") was left out?

  2. anatman
    Member
    Posted 9 years ago #

    One suggestion: translate strings in the file locale.php yourself; erase the translated strings for the applicable strings in the .po file, compile it, and your calendar will be fine. I'm doing this (in portuguese).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.