Check the name of the plugin everywhere!!

CakePrbr or CakePtbr or ???

Enjoy, John

On Wednesday, 23 September 2015 14:06:20 UTC+3, Andre Luis Sa wrote:
>
> Estou usando o cakephp 3.0 e venho tentando utilizar o plugin CakePtbr 
> para corrigir a pluralização e fazer a tradução.
>
> Segui a instrução da documentação do plugin disponivel no github:
> 1.      Adicionar  a seguinte linha no /config/bootstrap.php Plugin::load(
> "CakePtbr");
> 2.    Para traduzir as mensagens do core, copie ou faça um link simbólico 
> do arquivo src/Locale/pt_BR/cake.po 
> <https://github.com/jrbasso/cake_ptbr/blob/master/src/Locale/pt_BR/cake.po> 
> para 
> sua pasta src/Locale/pt_BR.
>
> Mas a pluralização não esta correta, palavras com o plural terminados em 
> "-oes" tem o sigular gerado com o final "-o" sendo que deveriam ser "-ao". 
>
> Acreditando que o plugin não estava sendo carregado, cheguei nessas 
> configurações:
> http://book.cakephp.org/3.0/en/plugins.html#autoloading-plugin-classes
>
> O erro persistiu... Então troquei o trecho do bootstrap.php
> Plugin::load("CakePrbr");
> por
> Plugin::load(array('CakePtbr'=>array('bootstrap'=>true)));
>
> E agora quando tento fazer bin/cake bake model all surge o seguinte erro:
> PHP Fatal error:  Class 'Plugin' not found in 
> ~/plugins/CakePtbr/config/bootstrap.php on line 14
>
> Como solução temporária para corrigir a pluralização estou criando a regra 
> no Inflector, mas também queria utilizar as outras funcionalidades do 
> plugin, então alguém me ajudar?
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to