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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php