counter language

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Oct 08, 2012 8:28 pm
Reply with quote
Report this post
Hi.. where i can change counter( days,hours,minutes) to onother language
User avatar
Senior Boarder

GK User
Mon Oct 08, 2012 9:38 pm
Reply with quote
Report this post
Hi,

You can change it directly in the gk.scripts.js file in this fragment:

Code: Select all
var dtext = this.element.get('data-daystext') || "days";
var htext = this.element.get('data-hourstext') || "hours";
var mtext = this.element.get('data-mintext') || "min.";
var stext = this.element.get('data-sectext') || "sec.";


or you can specify in the counter element the data-* attributes which will override these values (as you can see in the code - data-daystext="YOUR TEXT" will change the "days" text etc.).
User avatar
Administrator

GK User
Mon Oct 08, 2012 10:09 pm
Reply with quote
Report this post
working very good.. thx alot
User avatar
Senior Boarder

GK User
Thu Nov 15, 2012 8:57 am
Reply with quote
Report this post
dziudek wrote:Hi,

You can change it directly in the gk.scripts.js file in this fragment:

Code: Select all
var dtext = this.element.get('data-daystext') || "days";
var htext = this.element.get('data-hourstext') || "hours";
var mtext = this.element.get('data-mintext') || "min.";
var stext = this.element.get('data-sectext') || "sec.";


or you can specify in the counter element the data-* attributes which will override these values (as you can see in the code - data-daystext="YOUR TEXT" will change the "days" text etc.).


Perfect.. but... what happens when there is onnly one day left? will it still display "days" Many languages have that - day and days, hour and hours and i'd love to see that added.. is that possible?

ANd also - what about a multi language site? how will that work.. cuz i'm creating an english russian site..

Thank you so much.
User avatar
Fresh Boarder

GK User
Thu Nov 15, 2012 10:14 pm
Reply with quote
Report this post
Sorry but currently it is not possible to set two different strings for "day" and "days". Regarding the multilanguage - as you can see in the provided code - you can also use in the HTML code of the counter the data-* attributes i.e.:

Code: Select all
data-daystext="days"


then you can create few instances of the module with specific texts and assigned to selected languages.
User avatar
Administrator

GK User
Wed Feb 27, 2013 1:15 am
Reply with quote
Report this post
Hi,

When i change day's in another text in the gs.script.js nothing change in the header.
Is there possible a error with the language module? I installed Dutch.

Do you have another option to change the text nder the counter?
User avatar
Fresh Boarder

GK User
Wed Feb 27, 2013 7:51 am
Reply with quote
Report this post
Do you have attribute data-daystext in your code? Because it will override the value from the gk.scripts.js file.
User avatar
Administrator

GK User
Fri Apr 19, 2013 7:41 pm
Reply with quote
Report this post
Hello,

How do I set the page counter for it to be shown from today's date day:
April 19, 2013 until May 26, 2013.

How do I show that this count?

See the website: http://www.wdcorp.com.br/inscricoesonli ... p/schedule

how is 4054 days? day 19 until day 26 not 4054 days?
User avatar
Gold Boarder

GK User
Sat Apr 20, 2013 3:10 pm
Reply with quote
Report this post
@wdcorp - did you fixed your problem? Because as I see your counter now shows proper value (35 days).
User avatar
Administrator

GK User
Tue Jul 23, 2013 4:26 pm
Reply with quote
Report this post
I read this post very carefully but i can't solve the problem i got.
Aruba don not allow me to modify "gk.scripts.js", in fact, i see it blank (there is no code inside).
I can i change global language setting?
May i change the typing color (orange is terrible on my website).
Thank yoU!!!!!
User avatar
Fresh Boarder

GK User
Thu Jul 25, 2013 9:46 am
Reply with quote
Report this post
If you cannot edit the script, you can put in the custom HTML module the attributes like: data-daystext and define your own translation texts.
User avatar
Administrator


cron