Thursday, 15 March 2012

model view controller - PHP: How to add Languages layer to MVC framework? -


I am currently working on my own implementation of an MVC framework. I would like to know how to add language layers to my framework so that it can support many languages ​​other than English. What is the role of Unicode in this case?

Frequently "localization files" (PO files as standard for translation of UI) < / P>

"Hello" echo

you want to

< P> echo MyFramework :: Translation ("Hello")

This translation () function is just right. PO file appears, and "id" returns the desired localized text


No comments:

Post a Comment