Skip to:

How to localize timestamp/date?

  • Daniel Juhl


    I’ve localized bbPress to Danish, but how can I be able to localize timestamp/date?

Viewing 3 replies - 1 through 3 (of 3 total)

  • ChristopherM


    The following lines are probably missing in the danish .po-file (these are in Swedish, you have to change them to Danish):

    #: bb-includes/
    #, php-format
    msgid "%d year"
    msgid_plural "%d years"
    msgstr[0] "%d år"
    msgstr[1] "%d år"

    #: bb-includes/
    #, php-format
    msgid "%d month"
    msgid_plural "%d months"
    msgstr[0] "%d månad"
    msgstr[1] "%d månader"

    #: bb-includes/
    #, php-format
    msgid "%d week"
    msgid_plural "%d weeks"
    msgstr[0] "%d vecka"
    msgstr[1] "%d veckor"

    #: bb-includes/
    #, php-format
    msgid "%d day"
    msgid_plural "%d days"
    msgstr[0] "%d dag"
    msgstr[1] "%d dagar"

    #: bb-includes/
    #, php-format
    msgid "%d hour"
    msgid_plural "%d hours"
    msgstr[0] "%d timme"
    msgstr[1] "%d timmar"

    #: bb-includes/
    #, php-format
    msgid "%d minute"
    msgid_plural "%d minutes"
    msgstr[0] "%d minut"
    msgstr[1] "%d minuter"

    #: bb-includes/
    #, php-format
    msgid "%d second"
    msgid_plural "%d seconds"
    msgstr[0] "%d sekund"
    msgstr[1] "%d sekunder"

    I had the same problem with spanish translation, which is quite incomplete. This did the trick! Thanks!

    Hi, I have the same problem – how do I add those lines to po-file. I have POedit, but I have no clue how to add lines that are not in the POT file!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar