Countdown Timer
Incorrect plural displayed (4 posts)

  1. Prause
    Posted 6 years ago #

    In Czech language we have two plurals:
    2, 3, 4 'days' = 2, 3, 4 'dny'
    5 and more 'days' = 5 and more 'dní'
    Similar for years, months, hours, minutes, seconds.
    All these plurals I set in .po and generated new
    Now when displaying countdown of any event there is always only one of the plurals in disregard of the number.
    What more: when setting Enable JavaScript countdown to Yes then the plural 'dní' is displayed, whereas for No the other plural 'dny' is displayed.
    The same pays for years, months, hours, minutes, seconds.
    I am ready to supply any further information you need to solve the problem.
    Thank you.

  2. fergbrain
    Plugin Author

    Posted 6 years ago #

    Ah yes. Internationalization has been a bit tricky to get right.

    The biggest help would be if you could share your updated PO file.

    There is a JavaScript specific issue that I am aware of, although I made a ticket to formally track it: http://plugins.trac.wordpress.org/ticket/1187

    The issue is that there are not any native JavaScript functions that easily allow the complex type of pluralization that is required.

  3. Prause
    Posted 6 years ago #

    I sent an e-mail to you with the .po file attached.

  4. net_runner
    Posted 5 years ago #

    Same problem with polish language.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Countdown Timer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic