• Hi!

    I’ve tried to translate with poedit the labels in the countdown:

    ‘Years’,’Months’,’Weeks’,’Days’,’Hours’,’Minutes’,’Seconds’

    (this from rpt-wc-public.js, but not work with .po/.mo files).

    I’ve tested it in the plugin directly modifying the original pot file and putting the po/mo files in languages/plugins folder of the wordpress and it didn’t work either (T_T)

    It’s a question that @prcpl did months ago and I need them too.

    I hope you get what I’m saying

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Igor Benic

    (@ibenic)

    Hi @syccylinderseurope, currently, this plugin uses a Countdown jQuery plugin which has its own localisation technique.

    I do intend to change that so it can be easily changed through .po/.mo files or translation plugins.

    You can find the localisation files https://keith-wood.name/countdown.html, find the language you need and then copy that in the footer (there are plugins that allow you to add scripts to footer and such).

    Thread Starter syccylinderseurope

    (@syccylinderseurope)

    Hi Igor, I’ve tried to implement the localisation but it’s not working, It’s strange, I don’t know what it can be.

    I’ve put in the head section the file “jquery.countdown-es.js” and it’s not working too. I’ve tried to put directly the localisation script… T_T

    Thread Starter syccylinderseurope

    (@syccylinderseurope)

    I’ve have testing and now the language is good but the time is 0… (-.-)U

    with this code:

    
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script type="text/javascript" src="https://myurl.com/wp-content/themes/customizr/inc/assets/js/jquery.plugin.js"></script> 
    <script type="text/javascript" src="https://myurl.com/wp-content/themes/customizr/inc/assets/js/jquery.countdown.js"></script>
    <script type="text/javascript" src="https://myurl.com/wp-content/themes/customizr/inc/assets/js/jquery.countdown-es.js"></script>
    <script type="text/javascript" src="https://myurl.com/wp-content/themes/customizr/inc/assets/js/jquery.countdown-fr.js"></script>
    
    <script>
    
    jQuery(function ($) {
    $('.rpt-countdown').countdown($.countdown.regionalOptions['es']); 
    });
    
    </script>
    
    Plugin Author Igor Benic

    (@ibenic)

    Hi @syccylinderseurope just putting the script directly or linking the script should be enough. the ‘rpt-countdown’ part should not be needed.

    I’ll need to take a closer look but that’s how I how it worked last time I tried it.

    Thread Starter syccylinderseurope

    (@syccylinderseurope)

    But if I let only the script it should be like this:

    <script>
    jQuery(function ($) {
    $.countdown($.countdown.regionalOptions['es']); 
    });
    </script>

    And it doesn’t works

    or like this:

    <script>
    jQuery(function ($) {
    $.countdown.regionalOptions['es']; 
    });
    </script>

    Anyway in my case I need a solution with multiple languages. Because I have 4 languages in my site.

    Product link website

    It worked for me. I put this code in the end of footer.php of my wordpress theme:

    <script type=”text/javascript” src=”https://mysitesample.com.br/wp-content/plugins/change-prices-with-time-for-woocommerce/jquery.countdown-pt-BR.js”></script&gt;

    But you need to download and send the file of your language to your site.

    You can download the correct file here:
    https://keith-wood.name/countdown.html

    1 – Click on tab Localisation
    2 – Go to section Localisations
    3 – Click on Show All button
    4 – Search your language
    5 – Click on link of your language with right button of mouse
    6 – Click on Save link as
    7 – Save the file in your computer and send to your site.

    Thread Starter syccylinderseurope

    (@syccylinderseurope)

    Thanks a lot @williama5 it has worked. The problem is that we have multiple languages, so the code only read the first script but not the others.. I suppose that it would need a code to identify the chosen languages ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translating countdown’ is closed to new replies.