Fix language detection for gettext

This commit is contained in:
Eike Foken
2011-08-11 05:05:00 +02:00
parent a7fd06cb72
commit 5074362e16
5 changed files with 107 additions and 177 deletions

View 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';