WebSite X5Help Center

 
Hakan S.
Hakan S.
User

Does any support about  en

Autor: Hakan S.
Visited 1399, Followers 1, Udostępniony 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...

Posted on the
13 ODPOWIEDZI - 3 USEFUL
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca 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.

Czytaj więcej
Posted on the from Daniel W.
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca 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.

Czytaj więcej
Posted on the from Daniel W.
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca 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.

Czytaj więcej
Posted on the from Daniel W.
Hakan S.
Hakan S.
User
Autor

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

Czytaj więcej
Posted on the from 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. 

Czytaj więcej
Posted on the from John S.
Hakan S.
Hakan S.
User
Autor

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

Czytaj więcej
Posted on the from Hakan S.
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca 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.

Czytaj więcej
Posted on the from Daniel W.
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca 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.

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from Elisa B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

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

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪