📜  使用 i18n 的翻译网站 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:38.826000             🧑  作者: Mango

代码示例1
1) the first is to use the Database with a column for each language example: language (id, fr, en, ar, de; it) and compare each word with a translate function ($ wordfrancais, $ ln)

2) the second method use a JSON file for each language or fr.php en.php file
$ lang = array (
      "Would you like to overwrite or duplicate the following:" => "Would you like to replace or duplicate:",
    "Prefix" => "Prefix", ......);

3) use Website Internationalization plugins for example I18n