Support » Plugin: CSSable Countdown » Language isn't set – override?

  • Resolved julesibulesi

    (@julesibulesi)


    Hey there.
    Thanks for this great plugin, I really like it! Only thing is, it doesn’t seem to switch to the blog’s language. WPLANG is set to de_DE, but the shortcode and widget still render 10days 8hours, instead of 10Tage 8Stunden. (The rest of the blog DOES show up in German, and it’s a new installation.) Is there something I can do to fix this? Or simply to override the language setting?
    Thank you!

    https://wordpress.org/plugins/cssable-countdown/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author dmonnier

    (@dmonnier)

    Thanks for bringing this bug to my attention. Sorry, I didn’t realize that the jQuery plugin’s author didn’t localize the language files correctly. I’m working on a permanent fix for this, but in the meantime I think you can get it working by renaming and editing the following file:

    /path/to/plugins/cssable-countdown/langs/jquery.countdown-de.js
    to
    /path/to/plugins/cssable-countdown/langs/jquery.countdown-de_DE.js

    Open it and change:

    $.countdown.regionalOptions['de']
    to
    $.countdown.regionalOptions['de_DE']

    If the underscores don’t work, try a hyphen (de-DE), and if that still doesn’t work, I’ll fix it soon, no worries.

    Hey, thanks for the quick help! I’d skimmed through the language files and found it odd that it only said ‘de’, but then again, I’m a bloody rookie and couldn’t believe it could have anything to do with that. 🙂
    That said, no combination of underscores and hyphens seemed to help, unfortunately. I guess I’ll wait for your fix, then. 🙂 Don’t rush it on my account, though, I’m in no hurry.
    Thank you!

    german language isn’t working here, too! please fix it soon, since i need this awesome and easy styling plugin for a project to launch. thx in advance and keep up good work!

    Plugin Author dmonnier

    (@dmonnier)

    Well, that was an exercise in foreign languages. Everyone needing the languages, please download version 1.5. The language should be set correctly, that is, it should match your blog’s language.

    9 Monate 2 Wochen 4 Tage 😛

    thank you! it works now. as a workaround, i edited the javascript code but now it’s perfect. only have to wait for the two digit update now 🙂

    Yay! Thank you a lot!

    Is there a way to set the language in the shortcode?

    The reason is a multilang site (using polylang), and with the current implementation it shows the countdown only in the language set in wp-config.

    Any workaround? 🙂

    Hi we have the same problem, with Russian language, i tried all the above workaround(ru-RU,ru_RU), but nothing changes.
    Here my page http://www.aavt.ru/ you can see countdwon below the youtube video.
    Please can you tell me what is wrong ?

    best regards

    Good day I would like to report a mistake…
    Your code (does not recognize the language):
    // portuguese
    case ‘pt’:
    case ‘pt-br’:
    case ‘pt-pt’: return ‘pt-br’;

    My code (now recognizes):
    // portuguese
    case ‘pt’:
    case ‘pt-br’:
    case ‘pt-pt’: return ‘pt-BR’;

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Language isn't set – override?’ is closed to new replies.