What are good tools/frameworks for i18n of a php codebase?

前端 未结 5 1771
走了就别回头了
走了就别回头了 2020-12-19 23:05

I have been looking at a few options for enabling localization and internationalization of a dynamic php application. There appears to be a variety of tools available such a

5条回答
  •  离开以前
    2020-12-19 23:41

    the database driven solution to show the messages is not always the good one, I worked in a site with more than 15 languages and translations were an issue.

    so our design was:

    • translation app in php-mysql (translation access, etc.)
    • then translations are written in php arrrays
    • these arrays are also cached in APC to speed up the site.

    so to localize different languages you only need do an include

    like

    
    

提交回复
热议问题