diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2008-11-26 11:46:56 +0000 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2008-11-26 11:46:56 +0000 |
| commit | 66f51f3c17e7d44eec399f427dd210a48391ba63 (patch) | |
| tree | 00ff32ddb78e505af0d91c2d090fd29993378f3f /core/config | |
| parent | 59d71baa0852231d658f355741ca1bab79f18ebf (diff) | |
Initial commit of the translation class, I18n_Core and some tests.
- Port of Ruby's I18n gem (http://rails-i18n.org/)
- Added proper plural handling on top of that.
- Using CLDR 1.6's plural form data
- See I18n_Test for example usage.
- Not integrated into G3 templates yet. Probably adding __() as alias for I18n::instance->translate().
- No specific plan yet where localization files should live.
Diffstat (limited to 'core/config')
| -rw-r--r-- | core/config/locale.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/core/config/locale.php b/core/config/locale.php new file mode 100644 index 00000000..f93df409 --- /dev/null +++ b/core/config/locale.php @@ -0,0 +1,35 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * Default language locale name(s). + * First item must be a valid i18n directory name, subsequent items are alternative locales + * for OS's that don't support the first (e.g. Windows). The first valid locale in the array will be used. + * @see http://php.net/setlocale + */ +$config['language'] = array('en_US', 'English_United States'); + +/** + * Locale timezone. Defaults to use the server timezone. + * @see http://php.net/timezones + */ +$config['timezone'] = ''; + +// i18n settings + +/** + * The locale of the built-in localization messages (locale of strings in translate() calls). + * This can't be changed easily, unless all localization strings are replaced in all source files + * as well. + */ +$config['root_locale'] = 'en'; + +/** + * The default locale of this installation. + */ +$config['default_locale'] = 'en_US'; + +/** + * The path to the folder with translation files. + */ +$config['locale_dir'] = VARPATH . 'locale/';
\ No newline at end of file |
