How PHP web pages turn English web pages into French. I want to press a button. change all pages on a website from English to French. I want to ask if this can be implemented? If not, how can I change a single page from English to French? You can customize multiple languages, such as en_lang.php and fr_lang.php, and write all the variables into the language pack in two cases. How to convert an English webpage into a French webpage through the sess PHP webpage
For example, I want to change all the pages on a website from English to French by clicking a button.
I want to ask if this can be implemented? If not, how can I change a single page from English to French?
Please.
------ Solution --------------------
You can customize multiple languages, such as en_lang.php and fr_lang.php. multiple variables are written into the language pack in two cases.
Determine which file to call through session.
------ Solution --------------------
Static on the second floor is acceptable. call google APIs dynamically.
------ Solution --------------------
Use GG translation.
Add the following code to your webpage.
There are dozens of languages.
HTML code
Script function googleTranslateElementInit () {new google. translate. TranslateElement ({pageLanguage: 'en'}, 'Google _ translate_element ');} script