Customize date language
-
Hi @zedlez,
Please open this file in your theme:
https://github.com/FameThemes/together/blob/master/js/custom.js#L10find:
jQuery( '#dt_wedding_day' ).simplyCountdown({ year: wedding_year, month: wedding_month, day: wedding_day });and replace by:
jQuery( '#dt_wedding_day' ).simplyCountdown({ year: wedding_year, month: wedding_month, day: wedding_day, words: { //words displayed into the countdown days: 'day', hours: 'hour', minutes: 'minute', seconds: 'second', pluralLetter: 's' } });then change: day, hour, minute, second in your language.
Thank you very much dear, this solved perfectly!
Now how to change the language of the displayed date?
Yes. Open the header.php:
https://github.com/FameThemes/together/blob/master/header.php#L42replace:
echo date( 'l, F d, Y', strtotime( $dt_countdown_date ));
by:
echo date_i18n( 'l, F d, Y', strtotime( $dt_countdown_date ));then go to Admin => Settings => Site Language and select your country.
Let me know if it works!
Amazing dear! thank you so much for your fast support!
Hey,
thanks for your Support.i have some similar Problems.
when i Change into german, i have different plural letters.
day/dayS is Tag/TagE
Minute/minuteS is Minute/MinuteNHow can i do that=
and…. when i open with Chrome it is still in english. With Edge, IE, Safari it is in german…
Hi…
Can anyone tell me why this isn’t working?
jQuery(document).ready( function() {
// Wedding Countdown
var wedding_year = dt_countdown_date.dt_countdown_year;
var wedding_month = dt_countdown_date.dt_countdown_month;
var wedding_day = dt_countdown_date.dt_countdown_day;jQuery( ‘#dt_wedding_day’ ).simplyCountdown({
year: wedding_year,
month: wedding_month,
day: wedding_day,
words: { //words displayed into the countdown
days: ‘dag’,
hours: ‘time’,
minutes: ‘minut’,
seconds: ‘sekunder’,
pluralLetter: ‘s’
}});
It still writes the text under the countdown in english?
The topic ‘Customize date language’ is closed to new replies.
