Revision #5 has been created by rAWTAZ on Aug 26, 2011, 12:19:00 PM with the memo:
Updated with elaborate instructions to make this work even when the protected folder is not in the webroot.
« previous (#4) next (#6) »
How to customize Yii core messages?
In the above, we specify that the application is targeted to German users and
the translated messages are
located under 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: