From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/libraries/language.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/libraries/language.html') diff --git a/user_guide/libraries/language.html b/user_guide/libraries/language.html index 107865318..c40700147 100644 --- a/user_guide/libraries/language.html +++ b/user_guide/libraries/language.html @@ -12,7 +12,7 @@ @@ -70,7 +70,7 @@ your own language files as needed in order to display error and other messages i

Language files are typically stored in your system/language directory. Alternately you can create a folder called language inside your application folder and store them there. Code Igniter will look first in your system/application/language -directory. If the directory does not exist or the specified language is not located there CI will instead look in your global +directory. If the directory does not exist or the specified language is not located there CI will instead look in your global system/language folder.

Note:  Each language should be stored in its own folder. For example, the English files are located at: @@ -87,7 +87,7 @@ containing error messages. You might name it: error_lang.php

$lang['language_key'] = "The actual message to be shown"; -

Note: It's a good practice to use a common prefix for all messages in a given file to avoid collisions with +

Note: It's a good practice to use a common prefix for all messages in a given file to avoid collisions with similarly named items in other files. For example, if you are creating error messages you might prefix them with error_

$lang['error_email_missing'] = "You must submit an email address";
-- cgit v1.2.3-24-g4f1b