• Resolved zedlez

    (@zedlez)


    Where can I customize the countdown language?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author FameThemes

    (@famethemes)

    Hi @zedlez,

    Please open this file in your theme:
    https://github.com/FameThemes/together/blob/master/js/custom.js#L10

    find:

    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.

    Thread Starter zedlez

    (@zedlez)

    Thank you very much dear, this solved perfectly!

    Now how to change the language of the displayed date?

    Theme Author FameThemes

    (@famethemes)

    Yes. Open the header.php:
    https://github.com/FameThemes/together/blob/master/header.php#L42

    replace:
    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!

    Thread Starter zedlez

    (@zedlez)

    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/MinuteN

    How 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customize date language’ is closed to new replies.