Contents Previous Next

5.3 Creating your own language resource file

All error messages are stored in an array with a specific index that cannot be changed. This index is used in the library to reference a specific error message. Since error messages can also have additional parameters the error messages also includes count that specifies how many arguments can be handled.

The arguments are formatted in the error text in the same way as parameters in the printf() family of functions.

To create your own localized error resource file You should copy the "en.inc.php" to a temporary file, rename it for localem and then translate each error message to Your language of choice. Make sure the file is stored under the lang/ catalogue and You are ready to use your new locale.


Contents Previous Next