Hi
I want to translate an application to 2 other languages.
1- Should I:
- Extract and put all terms in controllers (i.e. error messages etc.) and templates, and put them in language files? or
- Have separate sets of templates for each language and then just extract terms in controllers and put them in separate language files?
Which approach is better? Why?
2- I find i18n support of phalcon a bit difficult to use (https://docs.phalcon.io/3.4/en/i18n) because it pollutes the code too much.
In my pure-php project I used to do this: I would build an associative array called "_L" (created inside a language file for each language). I would then use the array inside language file like this:
echo _L["user-account-created"];
can I use my own method? or i18n support of phalcon is better?
Thank you