We are struggling with a l10n problem in cakePHP. It seems that the default language is picked up from what is sent by the browser's user agent. Is there a way to override this option, using a setting in core.php ?
Thanks
Regards
Gabriel
Your problem is about localization (l10n).
I think that the cookbook can help you : http://book.cakephp.org/view/1230/Localization-in-CakePHP
Regards
Related
is there any way to show basic filter (with Sonata Admin Bundle and Symfony 4) just below title in table list view?
Something like in this picture? here
Thanks!
There is no standard way to achieve this via configuration. You will have to make extension for this thing, but we cant do this for you. If your question is if there is a default way of doing this? Then answer is NO there isnt, but I think it is possible with extension.
Im using alaxos Acl plugin for managing user roles and groups in my cakephp 2.6 project,the plugin use english as the default language, the problem i want to change it to the french language in my cakephp project, but i don't know how.
i added
Configure::write('Config.language', 'fre'); to the bootstrap.php of the plugin or the bootstrap.php of my main application but it didn't work.
Thanks in advance
You just made me realize that I always see my own plugin in English as well...
The point is that at some point (Internationalizing Your Application) the french code has changed from fre to fra but I've never updated the plugin.
Rename the folder plugins/Acl/Locale/fre to plugins/Acl/Locale/fra, and use Configure::write('Config.language', 'fr') and it should work.
I have done with my first project in Cakephp, and i have uploaded the files to but get error with class 'PDO', i think this error because those extensions:
extension="pdo.so"
extension="pdo_mysql.so"
so i have to ask my hosting company to enable this extensions , my question is :
1- is the extensions are safe or not ?
2- just the extensions i have to enable or there are another thing i have to do to make Cakephp work on my server ?
3- is something i have to do with my project before upload the files .
thanks
I think you can find all answers at book.cakephp.org
Does the Cakephp Media plugin work with Cakephp 2.0 ?
I have just downloaded the Media plugin and I don't know whether it works or not with Cakephp 2.0
You could try this fork on cake2 :
https://github.com/bmcclure/CakePHP-Media-Plugin
Which Cakephp Media plugin are you referring to? If it is this one: https://github.com/davidpersson/media then the answer would be no as stated in the readme. If you are referring to a different one, then please add the link.
UPDATE
Here is a behavior that may be what you are looking for:
https://github.com/jrbasso/MeioUpload
Well as I have posted earlier too...I have created a site in two languages.One with URL www.mainDomain.com(English) and other with www.fr.subDomain.com(French).Both are done in CakePHP,in french I have just changed the views of it to French.But the problem is,when anybody login's in English version and then switches to the French version,the session does'nt recognizes it and ask for login again.It has become to be the biggest bug in the Web application which I have done till far.How can manage this thing? Is there any way so that I can manage session on the same time?Please suggest me some thing,so that I can resolve this thing...!!!
Thanks in advance
Perhaps this may help you: http://www.cake-toppings.com/tag/subdomains/