ResolvedCountdown translation

Tagged: 

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #20663
    gacesai
    Participant

    Hi,

    I didn’t find option to translate offer countdown timer – Days, Hours, Minutes… in Loco translate, where can I find it?
    https://prnt.sc/qm91pm

    Thanks in advance

    #20701
    Althemist
    Keymaster

    Hello gacesai,

    You can’t translate this with a Plugin. The Countdown automatically gets the selected site language set for the WordPress site. Could you, please give us a link to that products, so we can check?

    Regards,
    Dimitar

    #20711
    gacesai
    Participant
    This reply has been marked as private.
    #20737
    Althemist
    Keymaster

    Hello Ivan,

    Yes, no problem with Serbian 😉

    The problem is in your system locale. It’s set to sr-RS instead of sr-SR and the countdown can’t detect the language. I don’t know if you’re using the official Serbian translation of WordPress or a custom one, but the official Serbian system locale must be sr-SR. In your system the last two characters are somehow reversed.

    Hope this helps or at least gives you some direction.

    #20748
    gacesai
    Participant
    This reply has been marked as private.
    #20788
    gacesai
    Participant
    This reply has been marked as private.
    #20740
    gacesai
    Participant

    Hello Dimitar,

    Yes, it’s official translation, all other things have been translated.

    Please look at https://prnt.sc/qo489e and https://prnt.sc/qo48yi (all other plugins I also translated with Loco Translate).

    Is it any option to set sr-SR only for countdown timer and these 5 words?

    Thanks

    #20816
    Althemist
    Keymaster

    Hello Ivan,

    Realy sorry about the delayed support these days. We had some major problems.

    May be your replies were marked as spam, but I don’t see them blocked in our system. I can see them posted yesterday.

    As I already explained, you can’t translate them via Loco Translate or any other plugin. These are automatically translated based on the system locale. (system locale is the system language code).

    Your system locale is set to sr-RS instead of sr-SR and the countdown can’t detect the language. I don’t know if you’re using the official Serbian translation of WordPress or a custom one, but the official Serbian system locale must be sr-SR. In your system the last two characters are somehow reversed.

    I don’t know why it’s like that, so I can’t really tell how to fix it.

    You can try the followng “fix”.

    Navigate to the theme folder – zass/js/count and make a copy of the file jquery.countdown-sr-SR.js

    Than, rename that file to jquery.countdown-sr-RS.js

    Open the file with code editor (or Notepad) and you’d see the following code:

    (function($) {
    	$.countdown.regionalOptions['sr-SR'] = {
    		labels: ['Godina', 'Meseci', 'Nedelja', 'Dana', 'Časova', 'Minuta', 'Sekundi'],
    		labels1: ['Godina', 'Mesec', 'Nedelja', 'Dan', 'Čas', 'Minut', 'Sekunda'],
    		labels2: ['Godine', 'Meseca', 'Nedelje', 'Dana', 'Časa', 'Minuta', 'Sekunde'],
    		compactLabels: ['g', 'm', 'n', 'd'],
    		whichLabels: function(amount) {
    			return (amount == 1 ? 1 : (amount >= 2 && amount <= 4 ? 2 : 0));
    		},
    		digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
    		timeSeparator: ':', isRTL: false};
    	$.countdown.setDefaults($.countdown.regionalOptions['sr-SR']);
    })(jQuery);

    Change the locale there from sr-SR to sr-RS, so it would match your system locale. Using this approach, it’d work with future updates even if the system locale changes to the correct one.

    Hope this helps.

    Regards,
    Dimitar

    #20821
    gacesai
    Participant
    This reply has been marked as private.
    #20820
    gacesai
    Participant
    This reply has been marked as private.
    #20824
    gacesai
    Participant
    This reply has been marked as private.
    #20904
    Althemist
    Keymaster

    Hello Ivan,

    Did you make a copy of the file or just renamed the original one?

    #20922
    gacesai
    Participant

    Hello Dimitar,

    I posted answer a few minutes ago, maybe marked as spam? Whenever I tried to insert the link with screenshot, post is marked as spam. Could you find it?

    #20920
    gacesai
    Participant

    Hello Dimitar,

    I tried to make a copy and rename the file (with replaced [‘sr-SR’]).
    Modified file https://prnt.sc/qtxpli and list of files in folder https://prnt.sc/qtxqln What is necessary to change?

    #21042
    Althemist
    Keymaster

    Hello Ivan,

    There are no spam comments held for moderation.

    Could you please give us temporary admin access and also FTP account, so we can try to solve this for you?

    Regards,
    Dimitar

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in and have valid license to reply to this topic.

License required for any item belonging to this account
AlThemist

AlThemist

sales 14107, followers 704
Login and Registration Log in · Register