I have a web page with Turkish language default. I would like to switch it to English when user clicks button. For translation parts, I wrote in Turkish as follows:
<p lang="tr">ÇOK YAKINDA</p>
But when I click the English button, it does NOT translate.
<script type="text/javascript">
window.lang = new Lang('tokens', 'tr');
</script>
And my nonDynamic.js:
Lang.prototype.pack.en = {
"token": {
"İLETİŞİM": "CONTACT",
"TAGLINE": "We Provide <br><span>Connected Intelligence</span> <br>For A <span>Smart World.</span>",
"BİZ": "We are ",
"NESNELERİN İNTERNETİ (IOT)": "IOTERM",
"ÇÖZÜMLERİ": "INTERNET OF THINGS (IOT)",
"ŞİRKETİYİZ,": "Solutions",
"BİZ IOTERM'ÜZ": "Company",
"DAHA İYİ": "We Provide",
"BİR DÜNYA İÇİN": "Connected Intelligence",
"BÜTÜNLEŞİK BİLGİ": "For A",
"SAĞLIYORUZ.": "Smart World",
"ÇOK YAKINDA": "We are Coming",
"GELİYORUZ": "Really Soon",
"BİZE E-POSTA GÖNDEREBİLİR VEYA AŞAĞIDAKİ FORMU DOLDURABİLSİNİZ. SİZE EN KISA SÜREDE GERİ DÖNÜŞ YAPACAĞIZ.": "Just want to say hello? Send us an email or fill out the form below and we will get back to you ASAP.",
"Türkiye": "Turkey",
"ABD": "USA",
"Adınız": "Your name",
"E-posta adresiniz": "Email address",
"Telefon numaranız": "Phone",
"Sorunuz": "Your question",
"GÖNDER": "Send"
}
};
Hi,
I have a web page with Turkish language default. I would like to switch it to English when user clicks button. For translation parts, I wrote in Turkish as follows:
But when I click the English button, it does NOT translate.
Here is my token:
And my nonDynamic.js:
Why it is NOT switching?