Am I breaking any “php good practice” in the following php array which deals with 3 (human) languages?

后端 未结 6 1653
执笔经年
执笔经年 2021-01-03 10:47

This is the most optimal way of dealing with a multilingual website I can think of, right now (not sure) which doesn\'t involve gettext, zend_translate or any php plugin or

6条回答
  •  醉梦人生
    2021-01-03 11:20

    Wouldn't it have been better to post code and briefly explain this issue to us?

    Anyway, putting each language in its own file and loading it through some sort of language component seems okay. I'd prefer using some sort of gettext, but this is okay too, I guess.

    You should make a function for calling the language keys rather than relying on an array, something like

提交回复
热议问题