How can I select a drop-down list to display the corresponding language and language problems? I am using gettext to do multiple languages now. I don't know how to solve these problems: I. Select a drop-down list to display the corresponding language. (Select a drop-down list to display the corresponding language. do not click a button or something like that.) 2. Sometimes, after data is queried, you can switch the language. How to select a drop-down list to display the corresponding language
I am currently using gettext for multiple languages. I don't know how to solve these problems:
I. Select a drop-down list to display the corresponding language. (Select a drop-down list to display the corresponding language. do not click a button or the like)
II. Sometimes, after data is queried, you can switch the language. Share:
------ Solution --------------------
------ Solution --------------------
For example, you can write a post query as follows:
Session_start ();
If (isset ($ _ SESSION ['key']) {
$ Key = $ _ SESSION ['key'];
} Else {
$ Key = $ _ POST ['key'];
$ _ SESSION ['key'] =$ _ POST ['key'];
}
.........................