ResolvedCountdown translation
Tagged: countdown
- This topic has 20 replies, 2 voices, and was last updated 3 years, 1 month ago by
gacesai.
- AuthorPosts
- January 11, 2020 at 3:51 pm #20663
gacesai
ParticipantHi,
I didn’t find option to translate offer countdown timer – Days, Hours, Minutes… in Loco translate, where can I find it?
https://prnt.sc/qm91pmThanks in advance
January 13, 2020 at 3:25 pm #20701Althemist
KeymasterHello 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,
DimitarJanuary 13, 2020 at 5:03 pm #20711gacesai
ParticipantThis reply has been marked as private.January 15, 2020 at 5:45 pm #20737Althemist
KeymasterHello 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.
January 16, 2020 at 3:43 pm #20748gacesai
ParticipantThis reply has been marked as private.January 20, 2020 at 5:57 pm #20788gacesai
ParticipantThis reply has been marked as private.January 21, 2020 at 1:14 pm #20740gacesai
ParticipantHello 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
January 22, 2020 at 4:29 pm #20816Althemist
KeymasterHello 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,
DimitarJanuary 22, 2020 at 5:17 pm #20821gacesai
ParticipantThis reply has been marked as private.January 22, 2020 at 5:22 pm #20820gacesai
ParticipantThis reply has been marked as private.January 22, 2020 at 5:38 pm #20824gacesai
ParticipantThis reply has been marked as private.January 27, 2020 at 5:07 pm #20904Althemist
KeymasterHello Ivan,
Did you make a copy of the file or just renamed the original one?
January 28, 2020 at 12:56 pm #20922gacesai
ParticipantHello 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?
January 28, 2020 at 4:55 pm #20920gacesai
ParticipantHello 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?February 1, 2020 at 12:55 pm #21042Althemist
KeymasterHello 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 - AuthorPosts
You must be logged in and have valid license to reply to this topic.