Countdown module: translate texts Days, Hours, Minutes, Seconds

Started by: Lia Liali October 31, 2017 - 07:13

How can I make translatable the texts: Days, Hours, Minutes, Seconds ?

I use WPML, I've set it to treat all texts in php code as translatable.
I am not a php expert, still I've checked the file jquery.countdown.js and these texts ARE NOT in a <?php _e('My text', 'stm_domain'); ?> command which I think makes it translatable as other texts in other php files.

I need this, can something be done?

Thank you for your help in advance.

Rerards



Replies:

  • #5548 Reply

    Lia Liali
    I forgot to say I use MasterStudy 1.6.2
    Author Team
    #5554 Reply

    Felix
    Hi,
    Please follow this tutorial in order to change static strings through theme language files.
    https://stylemixthemes.com/forums/topic/change-static-strings/

    regards

    #5578 Reply

    Lia Liali
    Thank you for replying Felix, I definately followed your Change Static Strings link. I had already tried it out actually. I use Poedit, these strings don't show up in the en_GB.po file, that's why I said they are not translatable.

    Any other suggestions for a modification I can apply in the jquery.countdown.js file (or elsewhere), in order to achieve my goal, would be appreciated.

    Thank you.

    Regards

    Author Team
    #5582 Reply

    Felix
    Hi,
    Please try to change these strings in a ”../masterstudy/assets/js/jquery.countdown.js” file (line: 80).

    regards

    #5586 Reply

    Lia Liali
    Thanks.
    Author Team
    #5589 Reply

    Axel
    You are welcome!
You must be logged in to reply to this topic.