Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #1321043
elated countdown : label bug
Closed

Comments

  • palexposii started the conversation

    Hello, on  the elated countdown : the Month Label don't diplay the personnalised value , it display the default value "month", (it is not the case with hour minutes etc.)

    Ex : if we set the value of "Month Label" to "Mois", it will diplay "Month" instead of "Mois"


    Could you check this please ?
    thanks

  •  1,845
    Elated replied

    Hi,

    You should try to create translation file for your language and to translate theme labels. Use poedit software https://poedit.net/, load translation file from theme folder / languages, translate it, and name it according to WP Codex https://make.wordpress.org/polyglots/teams/

    Helpful reading http://code.tutsplus.com/tutorials/translating-your-theme--wp-25014 - point regarding poedit

    In case that you need to create new translation from scratch, please follow instructions from the following link http://www.gsy-design.com/how-to-generate-a-pot-file-using-poedit/ it is straightforward process.


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.

  • palexposii replied

    Hello, you should try to fix the bug instead of asking your cutomers to install extra plugins to fix it !!!




  •  1,845
    Elated replied

    Hello,

    You can try to change that label for Month, by performing following steps:

    Open modules.js file located in your theme folder/assets/js/modules.js and find function eltdfInitCountdown and in that function find call to countdown method and add labels1 attribute like this: https://www.screencast.com/t/fYOmaP5vCA

    Here is the code below: https://www.screencast.com/t/ZZgonQXZU5MT

    //Initialize countdown
                    if(month-1===0){
                        countdown.countdown({
                            until: new Date( year, month - 1,day, hour, minute, 44),
                            labels: ['Years', 'Months', 'Weeks', dayLabel, hourLabel, minuteLabel, secondLabel],
                            labels1: ['Years', 'Months', 'Weeks', dayLabel, hourLabel, minuteLabel, secondLabel],
                            format: 'DHMS',
                            timezone: timezone,
                            padZeroes: true,
                            onTick: setCountdownStyle
                        });
                    }
                    else {
                        countdown.countdown({
                            until: new Date(year, month - 1, day, hour, minute, 44),
                            labels: ['Years', monthLabel, 'Weeks', dayLabel, hourLabel, minuteLabel, secondLabel],
                            labels1: ['Years', 'Meseci', 'Weeks', dayLabel, hourLabel, minuteLabel, secondLabel],
                            format: 'ODHMS',
                            timezone: timezone,
                            padZeroes: true,
                            onTick: setCountdownStyle
                        });
                    }


    so, adjust labels1 labels and than minify that file using some tool like this: http://jscompress.com/ and name that file as modules.min.js and save it to same folder to overwrite existing file.

    Hope this will help.



    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.