WebSite X5Help Center

 
Hakan S.
Hakan S.
User

Does any support about  en

Autore: Hakan S.
Visite 930, Followers 1, Condiviso 0  

Hi,

I'm using Flip Clock optional objects (https://market.websitex5.com/en/objects/3a217178-142a-4337-a10b-37e16428fd8)

But i cannot find the how can i change Language to Turkish. There no any help, add or suggestion option for the other languages, for edit the day/hour/minutes.

Or how can i add the Turkish language for Days, hour, minutes instead of English...

Postato il
13 RISPOSTE - 3 UTILI
Daniel W.
Daniel W.
User
Utente del mese EN

I just looked at the source code in the demo.

Many languages ​​are included in the javascript file flipclock.min.js, but no Turkish.

So you would have to manually change one of the languages ​​in this javascript file.

Leggi di più
Postato il da Daniel W.
Daniel W.
Daniel W.
User
Utente del mese EN

Here is the relevant code for the English language in the javascript file that needs to be adjusted.

-----

{FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}

-----

However, someone who is familiar with Javascript should do this, since special characters may have to be used for certain letters.

Leggi di più
Postato il da Daniel W.
Daniel W.
Daniel W.
User
Utente del mese EN

I found Arabic, Danish, German, English, Spanish, Finnish, French, Italian, Latvian, Dutch, Norwegian, Polish, Portuguese, Russian, Swedish and Chinese.

Perhaps Incomedia would add a section for the Turkish language.

Leggi di più
Postato il da Daniel W.
Hakan S.
Hakan S.
User
Autore

Thanks Daniel W.

Yes, perhaps Incomedia must add the Turkish Language to the pack. And i expected free text field for not ready languages... 

But i don't know how can i edit the javascript file in websitex5

Leggi di più
Postato il da Hakan S.
John S.
John S.
User

Open the file flipclock.min.js in an editor like notepad++ and edit the text.

But by an upgrade of the flipclock you will have to make the changes again. 

Leggi di più
Postato il da John S.
Hakan S.
Hakan S.
User
Autore

I searched the flipclock.min.js and flipclock*.* file but neither C nor D drive contains this file...
Where is it located?

Leggi di più
Postato il da Hakan S.
Daniel W.
Daniel W.
User
Utente del mese EN

Small instructions for do-it-yourselfers (not tested):

1) The javascript file flipclock.min.js would have to be found on the webspace in the appsresources directory and downloaded to the hard drive.

2) Then in an editor (e.g. https://notepad-plus-plus.org/ (free)) open the javascript file flipclock.min.js and in this section...

-----

{FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}

-----

... search for the capitalized English words "Years", "Months", "Days", "Hours", "Minutes", "Seconds" and change them to Turkish.

3) Then save the changes with the editor and upload this javascript file back to the webspace in the appsresources directory.

Hints:

Downloading and uploading the javascript file can be done with WebSite X5 or with a separate FTP (e.g. FileZilla, free).

In WebSite X5 under "5 Export / Export the website to the Internet" there is an icon to the right of "Target directory" that opens the FTP window. Here at the top of the FTP window there are icons for downloading and uploading files.

It is possible that this modified JavaScript file would have to be uploaded again after each export of the website to the Internet.

Leggi di più
Postato il da Daniel W.
Daniel W.
Daniel W.
User
Utente del mese EN

Since the section for "English" was changed in the JavaScript file in my instructions, "English" must also be selected in the "Flip Clock" object when selecting the language.

Leggi di più
Postato il da Daniel W.
Incomedia
Elisa B.
Incomedia

Hi Hakan, 

thank you for getting in touch. 

I have set this post as Idea so to report the need for the Turkish language added to this Object.

Thanks! Kind regards.

Leggi di più
Postato il da Elisa B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese PT

x Hakan S., ... (It > En)  ...  with one of my EXTRA codes it's very simple with a copy/paste,  customizable, incorporated into the Project, and without altering the functions of the Program...
... if you are interested in my code (for example with style CSS pseudo-class), you have to post me the LINK  of your page, so that I can verify, ...otherwise ignore and unsaid...
Hello, ciao

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪