Create a webpage with Multilanguage in PHP

后端 未结 10 2137
醉话见心
醉话见心 2020-12-11 09:37

I would like to develop a multilanguage page in PHP, for exemple english/german/japanese.. so when i click on german the page language will change to german, then i click en

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 09:52

    As the Gregor said; gettext is the proffesional way for me...

    here is a good article link

    But i want to add some important points

    I- With this method u will have to use .po and .mo files if you create a po file under windows, you can't use it under a linux. Or .po file that created under linux can't bwe used under windows.

    II- linux can create .po files itself but in windows i suggest you to use a program such as poedit (which u can get it from its site: http://www.poedit.net/ )

    III- Some locales have character problems. But i don't remember which one are they?:(

提交回复
热议问题