NickRimer wrote:Hi for all!
The question is about:
I have a personal wiki-site. I have an application stored on that site. This app supplies 2 different languages (also like a site).
How can I run my application with parameter (or any another way) that will have an information about page language? If I will run app from english page, it must be in english, if I'll run it from russian page, it must be in russian.
For now I can make it just with WebStorage. But it saves data user must to input by himself when he will start this app for the first time (if an english-speaking user will run it first time he'll see default-russian text first, then he have to switch into english mode, just after that language option will be saved for the next time).
I want user to avoid switching. If he will start app from english page - he must take an english version of program.
How to make this? How to run application with some language parameter?
You can do it with php... how the language is detected? just add one variable $language=
I suggest you to use php, when you have your variable in php, just set:
$_SESSION['language'] = $languageinwebsite;
after this, just make a new page php who call the echo of the "echo $_SESSION['language'];"
in construct2, make a call AJAX of the page where you put the echo SESSION