Telegram_2023-09-29T19

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2023 > 09 > 29 >

Telegram_2023-09-29T19

Telegram link

 

2023-09-29T19:22:32

 

Browsers send a header field named Accept-Language which contains the ISO code of the language of the end user browser.

 

By default, IW will always try to load a localized version of the template, if it exists. Otherwise will try to load the default template file.

 

So, if the user language is en-US (English/United States), and the default template file is mytemplate.html, it will first try to load the file named mytemplate.en.html

 

If not found, mytemplate.html will be used.

 

Please notice that only the 2 first chars (the language) of the ISO language-country code will be used.

 

If you want to have, for instance, english, french and spanish versions of your site, create:

 

mytemplate.en.html, mytemplate.fr.html and mytemplate.es.html

 

It will work without any changes to your application