phalcon-orphanage / docs

Phalcon Framework documentation
https://docs.phalcon.io
Other
321 stars 488 forks source link

Gettext example is wrong #3170

Closed noone-silent closed 9 months ago

noone-silent commented 9 months ago

In Phalcon 5 the locale is not a string anymore, it's an array of strings

https://docs.phalcon.io/5.0/en/translate#gettext

In the documentation this is wrong. If you pass locale as string you have an Exception with this message:

TypeError: Phalcon\Translate\Adapter\Gettext::setLocale(): Argument #2 ($localeArray) must be of type array, string given
niden commented 9 months ago

This has been addressed. Thank you @noone-silent