Version 1.93 released! | Peter's Date Countdown | Forum
Back to the date countdown plugin page
The big feature enhancement is some fine-grained language control. Therefore, not only can you change the word to display for "sleeps" / "days" but you can also change the words to suit different languages.
Here's an event in French, for example:
Here are some language settings:
// ------------------------------------------------------
// Language settings
$pdc_text = array(); // do not edit this line
// Set this to the text that should appear before the time remaining. Add a space after it, such as "Only "
$pdc_text['before'] = "Seulement ";
// Set this to the text that should display after the time remaining but before the unit (typically "more " as in "10 more minutes"). Add a space after it.
$pdc_text['more'] = "";
// Set this to the text that should display after the time when the event has not yet occurred (typically "until" as in "10 more minutes until"). Typically add a space after it.
$pdc_text['until'] = "de plus jusqu'";
// Set this to the text that should display after the time when the event has occurred (typically "since" as in "10 more minutes since"). Typically add a space after it.
$pdc_text['since'] = "depuis ";
// Set this to the singular and plural form of days (for both non-JavaScript and JavaScript countdowns)
$pdc_text['day'] = "jour";
$pdc_text['days'] = "jours";
// Set this to the singular and plural form of hours (for non-JavaScript countdown)
$pdc_text['hour'] = "heure";
$pdc_text['hours'] = "heures";
// Set this to the singular and plural form of hours (for JavaScript countdown)
$pdc_text['java_hour'] = "h";
// Set this to the singular and plural form of minutes (for non-JavaScript countdown)
$pdc_text['minute'] = "minute";
$pdc_text['minutes'] = "minutes";
// Set this to the singular and plural form of minutes (for JavaScript countdown)
$pdc_text['java_minute'] = "m";
// Set this to the singular and plural form of seconds (for JavaScript countdown only) "s" is recommended for space reasons
$pdc_text['java_second'] = "s";
Here's how it would display:
Download the latest version on the plugin page, as always: