2

Later i worked with symfony framework. In this framework we can easily build a multi language project by using FOSUserBundle. But i do'nt know what to do in phalcon! In the Phalcon documentation (multi-lingual-support) explained a way for it! But if i have many languages this way is too difficult!

Do yo know about any provided library for multi language projects?

4

2 回答 2

3

您可以使用Phalcon\Translate来翻译相应数组中的所有字符串 - 每种语言一个文件。您正确发布的文档中的参考是here,它指的是本机阵列适配器。

孵化器仓库中有额外的适配器,用于 PO 文件或数据库驱动。

您可能还想查看文档中的国际化区域。

于 2013-06-25T13:12:46.170 回答
0

看看这段代码 https://bitbucket.org/moderndeveloperllc/phalconlocale/src

于 2014-01-22T11:02:17.837 回答