How do I handle a PHP page that turns English pages into French?

Source: Internet
Author: User
about how PHP pages turn English pages into French
Title. I was trying to press a button. Convert all pages in a website from original English to French.
I'd like to ask if this is possible. How can I change a single page from English to French?
Seek the Great God.

------Solution--------------------
Customize multiple languages, such as en_lang.php,fr_lang.php, to write all variables in 2 different cases in the language pack.

Determine which file to invoke by session.
------Solution--------------------
Static 2 floor can, dynamic or call Google's API bar.
------Solution--------------------
Use GG to translate it.

Add the following code to your Web page.

Available in dozens of languages.

HTML Code

------Solution--------------------
First you need to separate the language parts of the interface, such as storing information in various languages with an XML file, and then using XSLT technology to dynamically switch the interface language. I have an example, is the Sino-British switch, you can refer to: http://www.bacysoft.cn/MyApp/SubnettingTool/

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.