How to customize Yii core messages?

Comparing #1 with #2

Revision #2 was created by qiang qiang on Feb 25, 2009, 12:31:38 PM.

replaced alias with actual directory in basePath property

Content

[...]
return array(
......
'language'=>'de',
'components'=>array(
'coreMessages'=>array(
'basePath'=>
Yii::getPathOfAlias('application.'protected/messages'),
),
......
[...]
```

In the above, we specify that the application is targeted to German users and
 the translated messages are located under the directory aliased as `application.messages`. In a default setting, the path alias would refer to the directory `protected/messages`.

Next, we need to provide our translations. Under the directory `protected/messages`, create a subdirectory named `de` which corresponds to the target language we set in the application configuration. And under the `de` directory, create a new file named `yii.php`. To this end, we should have the following directory structure:

~~~
WebRoot/
[...]