what is the best method to build “multilingual” script in php?

后端 未结 7 1511
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 04:13

I am building a website and it need to be in 7 languages? I was wondering if there is a good practice can be applied to get multilingual php script?

  • Easy for m
7条回答
  •  时光取名叫无心
    2020-12-16 04:49

    You may find this article on the topic an interesting read:

    http://cubicspot.blogspot.com/2011/12/cross-platform-multilingual-support-in.html

    The author advocates a "lazy programmer" strategy - do it only if you need multilingual stuff - and seems to recommend the PHP array approach with IANA language codes. The article is kind of vague though.

提交回复
热议问题