Alaxos Acl plugin internationalization issue - cakephp

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.

Related

how recover user profile plugin joomla 3.x

I wanted to edit the plugin in the object adding additional fields. But the guide that I've followed was for an older version of Joomla. Now I want recover the plugin because everything is missed up. How can I do that?

I can't get localization to work in cakephp 2.3

Localization on my website was working until one day, my website went down. The host did some changes and after that, my website is in english.
I set the default language to French but everything is in english.
If I display the language
echo Configure::read('Config.language');
The result is "fre"
I have set Configure::write('Config.language', 'fre'); in bootstrap.php
Thanks
In 2.3 the lang code for french was changed from fre to fra as mentioned in the migration guide.

cakephp and class 'PDO'

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?

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

cakephp bake console acting weird?

I'm pretty new to CakePHP and i'm running through both the Cake Book and the Apress Book CakePHP from novice to professional, but i can't seem to understand what's going on on my bake console.
I've got it installed and seems to work fine. But when i type in cake bake it shows me this
Welcome to CakePHP v2.0.0 Console
--------------------------------------------------------------------
App: htdocs
Path: W:\xampp\htdocs\
--------------------------------------------------------------------
What is the path to the project you want to bake?
[W:\xampp\htdocs\myapp] >
instead of what the books say it should be
---------------------------------------------------------------
App : app
Path: /path-to/project/app
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[T]est case
[Q]uit
What would you like to Bake? (D/M/V/C/P/F/T/Q)
>
if i follow the questions on my cake console, it asks me the path to the directory layout i wish to copy, and then seems to override everything i have with that skel one.
on the other hand, if i follow the book's steps and type cake bake view or cake bake model it seems to understand that i'm talking about projects named view and model and tell me there's no database configuration for those projects, etc. So, if i type the project path first, i don't get to choose what to do. But if i leave it out, it has no way of knowing. See where this is going?
I'm using the regular Windows cmd.exe, not cygwin as i've seen some people recommending, and can provide more detail if needed. There's probably an easy solution for this, so I appreciate your help!
you are in the wrong path.
If you want to bake internal stuff (models, controllers, views, ...) etc
you need to navigate to the app folder and execute cake there
(or define your app path with -app)
details and hot tip for windows:
http://www.dereuromark.de/tag/cake-console-windows/

Resources