Wednesday, October 26, 2011

Re: How to extract the pots files?

So.. again:

Why did you create your own translation function? The i18n defaults aren't enough?


--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil

+55 (21) 8865.9250
thiagobelem.net
contato@thiagobelem.net

Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
Assando Sites
, curso de CakePHP » assando-sites.com.br


On Wed, Oct 26, 2011 at 11:53, santos <dos.santos.charles@gmail.com> wrote:
Hi

I had to make my own function __d and put in bootstrap file, like this:

function __myd($domain, $msg, $return = false) {
       $str = __d($domain, $msg, true);
       $var = array('translation' => $str, 'md5'=> md5($str));
       $count = count(Configure::read('var')) + 1;
       Configure::write("speaklike.$count", $var);
       return __d($domain, $msg, $return);
}

In the views I use:
__myd('public', 'Hello world');



I tried to extract the pots files using 'cake i18n extract' in terminal, but
didnt work... because I created my own function to translate. How can i
extract the pots files?


--
View this message in context: http://cakephp.1045679.n5.nabble.com/How-to-extract-the-pots-files-tp4939833p4939833.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: