We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Multi-Language: best way?

HI

Which tool/way is the best for creating a multi-lang project in phalcon? (gettext, PO, NativeArray, CSV, ...)

I consider performance at all

If you want native Phalcon multi-lingual functionality, there is Phalcon\Translate available: https://docs.phalcon.io/en/latest/reference/translate.html

and there's extra adapters on Incubator https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Translate/Adapter for more logical usage.

edited Jul '15

thanks for your response.

sorry, I edited my question.

  • which is better?

If you want native Phalcon multi-lingual functionality, there is Phalcon\Translate available: https://docs.phalcon.io/en/latest/reference/translate.html

and there's extra adapters on Incubator https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Translate/Adapter for more logical usage.