Looks like you have a file named Model/User.php - which doesn't contain a 
class named User

AD

On Tuesday, 6 November 2012 11:44:32 UTC+1, Tommaso wrote:
>
> Hello, 
>
> I'm trying to use the "cake i18n extract" shell in cakephp 2.2.2 and 
> 2.2.3 but I've got a problem. 
>
> After answered the questions the process starts with the message: 
>
> ===== 
> Extracting... 
> --------------------------------------------------------------- 
> Paths: 
>    /Users/tom/wwwroot/cakephp/app/ 
> Output Directory: /Users/tom/wwwroot/cakephp/app/Locale/ 
> --------------------------------------------------------------- 
> Processing /Users/tom/wwwroot/cakephp/app/index.php... 
> .... (Processing many files) ... 
> Processing /Users/max/wwwroot/cakephp/app/webroot/test.php... 
> Error: Class User does not exist 
> #0 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Command/Task/ 
> ExtractTask.php(446): ReflectionClass->__construct('User') 
> #1 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Command/Task/ 
> ExtractTask.php(281): ExtractTask->_extractValidationMessages() 
> #2 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Command/Task/ 
> ExtractTask.php(232): ExtractTask->_extract() 
> #3 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Shell.php(390): 
> ExtractTask->execute() 
> #4 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Shell.php(387): Shell- 
> >runCommand('execute', Array) 
> #5 /Users/tom/wwwroot/cakephp/lib/Cake/Console/ 
> ShellDispatcher.php(201): Shell->runCommand('extract', Array) 
> #6 /Users/tom/wwwroot/cakephp/lib/Cake/Console/ 
> ShellDispatcher.php(69): ShellDispatcher->dispatch() 
> #7 /Users/tom/wwwroot/cakephp/app/Console/cake.php(33): 
> ShellDispatcher::run(Array) 
> #8 {main} 
> ===== 
>
> So the process ends without extraction because of the "Error: Class 
> User does not exist" error. 
>
> If I try to use the tool in this form: 
>
> cake i18n extract --plugin Users 
> (so extracting strings from Users plugin) 
> it works perfectly 
>
> Any hint? 
>
> Thanks in advance 
> Tom 
>
>
>
>
>
>
>

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to