From c9e2b10f08a3c718e52e287e2dd14b880e4e3057 Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Thu, 12 Jul 2007 12:14:45 +0000
Subject: added language files to autoload
---
user_guide/changelog.html | 15 ++++++++-------
user_guide/general/autoloader.html | 1 +
user_guide/libraries/language.html | 9 +++------
3 files changed, 12 insertions(+), 13 deletions(-)
(limited to 'user_guide')
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index d8ffd8b19..0456be34e 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -65,11 +65,12 @@ Change Log
Version 1.5.4
Release Date: -- Still under development
- - Added stripslashes() to the _clean_input_data() function in the Input class when magic quotes is on so that data will always be un-slashed within the framework.
- - Added array to string into the profiler
- - Added some additional mime types in application/config/mimes.php
- - Added filename_security() method to Input library
- - Added some additional arguments to the Inflection helper singular() to compensate for words ending in "s". Also added a force parameter to pluralize()
+ - Added custom Language files to the autoload options.
+ - Added stripslashes() to the _clean_input_data() function in the Input class when magic quotes is on so that data will always be un-slashed within the framework.
+ - Added array to string into the profiler.
+ - Added some additional mime types in application/config/mimes.php.
+ - Added filename_security() method to Input library.
+ - Added some additional arguments to the Inflection helper singular() to compensate for words ending in "s". Also added a force parameter to pluralize().
- Fixed MSSQL insert_id().
- Fixed a logic error in the DB trans_status() function. It was incorrectly returning TRUE on failure and FALSE on success.
- Fixed a bug that was allowing multiple load attempts on extended classes.
@@ -80,7 +81,7 @@ Change Log
- Fixed a bug in the Zip library, providing PC Zip file compatibility with Mac OS X
- Fixed a bug in router that was ignoring the scaffolding route for optimization
- Fixed an IP validation bug.
- - Fixed a bug in display of POST keys in the Profiler output
+ - Fixed a bug in display of POST keys in the Profiler output
- Fixed a bug in display of queries with characters that would be interpreted as HTML in the Profiler output
- Fixed a bug in display of Email class print debugger with characters that would be interpreted as HTML in the debugging output
- Fixed a bug in the Content-Transfer-Encoding of HTML emails with the quoted-printable MIME type
@@ -91,7 +92,7 @@ Change Log
- Modified the Router so that when Query Strings are Enabled, the controller trigger and function trigger values are sanitized for filename include security.
- Modified the is_image() method in the Upload library to take into account Windows IE 6/7 eccentricities when dealing with MIMEs
- Modified XSS Cleaning routine to be more performance friendly and compatible with PHP 5.2's new PCRE backtrack and recursion limits.
- - Modified the URL Helper to type cast the $title as a string in case a numeric value is supplied
+ - Modified the URL Helper to type cast the $title as a string in case a numeric value is supplied
- Modified Form Helper form_dropdown() to type cast the keys and values of the options array as strings, allowing numeric values to be properly set as 'selected'
- Deprecated the use if is_numeric() in various places since it allows periods. Due to compatibility problems with ctype_digit(), making it unreliable in some installations, the following regular expression was used instead: preg_match("/[^0-9]/", $n)
- Deprecated: APPVER has been deprecated and replaced with CI_VERSION for clarity.
diff --git a/user_guide/general/autoloader.html b/user_guide/general/autoloader.html
index 39a0ce657..5ee58dacf 100644
--- a/user_guide/general/autoloader.html
+++ b/user_guide/general/autoloader.html
@@ -73,6 +73,7 @@ consider auto-loading them for convenience.
Helper files found in the "helpers" folder
Plugins found in the "plugins" folder
Custom config files found in the "config" folder
+Language files found in the "system/language" folder
To autoload resources, open the application/config/autoload.php file and add the item you want
diff --git a/user_guide/libraries/language.html b/user_guide/libraries/language.html
index 6a74cc963..7cc74b61d 100644
--- a/user_guide/libraries/language.html
+++ b/user_guide/libraries/language.html
@@ -115,12 +115,9 @@ is the language set containing it (ie, english). If the second parameter is mis
Where language_key is the array key corresponding to the line you wish to show.
Note: This function simply returns the line. It does not echo it for you.
-
-
-
-
-
-
+Auto-loading Languages
+If you find that you need a particular language globally throughout your application, you can tell CodeIgniter to auto-load it during system initialization. This is done by opening the application/config/autoload.php file and adding the language(s) to the autoload array.
+
--
cgit v1.2.3-24-g4f1b