tags:

views:

197

answers:

1

Yii does not provide a translation message file for the en_us language. Instead, we are expected to rely on the core messages to be correct.

If I was successful in finding where the core messages are held, I still wouldn't want to mess with the core file because, A. it is ill-advised and B. future version revisions would overwrite my changes.

Is my only alternative to copy any other language message file and hand edit every single message so that the translated message is the same as the english message (with my correction(s) in place? It seems like a lot of work for the sake of one word that needs correcting.

The reason I bring this up is this...

If you navigate to a non-existent page, their error message is: 'The requested view "{name}" is not found.' I think it should say: 'The requested view "{name}" was not found.'

I argue that they are mixing tenses in this statement ('requested' = past tense and 'is' = present tense).

Rightly or wrongly, I am 'uncomfortable' with their grammar.

+1  A: 

Yii is open source. Why not submit your patch?

The messages can be found in yii-read-only/framework/messages/, you may want to have a look at yii-read-only/framework/messages/config.php too.

Also, you could use the message command for yiic.

As for the actual problem, you can find any message with fgrep:

fgrep -rn "The requested view" *

And the result:

framework/web/actions/CViewAction.php:110:              throw new CHttpException(404,Yii::t('yii','The requested view "{name}" is not found.', 

So go out there, check out the SVN trunk, modify, then "svn diff", and submit your patch on google code.

Flavius
Thank you for your very thorough answer!!!
Steve
The best way to thank for an answer is to accept it, with an eventual upvote.
Flavius