Fix language detection for gettext
This commit is contained in:
32
application/config/language.php
Normal file
32
application/config/language.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php defined('BASEPATH') || exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Supported Languages
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| Contains all languages your site will store data in. Other
|
||||
| languages can still be displayed via language files, that's totally
|
||||
| different.
|
||||
|
|
||||
| Check for HTML equivalents for characters such as <20> with the URL
|
||||
| below:
|
||||
|
|
||||
| http://htmlhelp.com/reference/html40/entities/latin1.html
|
||||
|
|
||||
*/
|
||||
$config['supported_languages'] = array(
|
||||
'en'=> array('name' => 'English', 'locale' => 'en_US'),
|
||||
'de'=> array('name' => 'Deutsch', 'locale' => 'de_DE')
|
||||
);
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Default Language
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| If no language is detected, which one to use? Must be in the
|
||||
| array above.
|
||||
|
|
||||
*/
|
||||
$config['default_language'] = 'en';
|
||||
Reference in New Issue
Block a user