Why does CakePHP config file have a field named "language"

Well, I was going through the application where to find the variable named as "language" in the configuration file of the Cake application. Then I also found the same thing in Bootstrap where it called the same thing from a config file. Can anyone explain to me what this thing is doing from the config file. There's some rule of thumb behind this Globalization ... ??? Explain, please...!!!

+2


source to share


1 answer


The docs explain it pretty well:

http://book.cakephp.org/view/162/Internationalizing-Your-Application



Basically you set up your language files, then the config parameter in the core.php file determines which language you are going to display.

The best thing about cake localization is that all you have to do is wrap all your content in __ (''), which will automatically localize your content.

+2


source







All Articles