开发者

How to cope with an multi language system with pulldowns?

开发者 https://www.devze.com 2023-03-09 07:40 出处:网络
I have builded an system with php an MySQL. This has been set as multi language, so each user can choose it\'s own language. How do I work with pulldowns?

I have builded an system with php an MySQL. This has been set as multi language, so each user can choose it's own language. How do I work with pulldowns?

Most of these menus are generated from the database. How would you make this work for an multi language开发者_StackOverflow system?


The database generated string would simply be used as a parameter to gettext, which would then chose a translated string if one was available for the selected language. If one isn't available, it would default to the provided string.

0

精彩评论

暂无评论...
验证码 换一张
取 消