<commit_before><?php
/**
 * Titon: The PHP 5.3 Micro Framework
 *
 * @copyright	Copyright 2009-2010, Titon
 * @link		http://github.com/titon
 * @license		http://opensource.org/licenses/bsd-license.php (The BSD License)
 */

namespace app\config;

use \titon\Titon;

/**
 * INI Settings
 * 
 * Define application specific INI settings here as this file is bootstrapped first in the dispatch cycle.
 */

// Multibyte - http://php.net/manual/book.mbstring.php
ini_set('mbstring.func_overload', 7);

/**
 * Environments
 *
 * From here you can define all types of environmental configurations and host mappings.
 * The specific environment configuration file is loaded based on the current hostname.
 */

use \titon\core\Environment;

Titon::environment()
	->setup('development', Environment::DEVELOPMENT, array('localhost', '127.0.0.1'))
	->fallbackAs('development');

/**
 * Configuration
 *
 * Define configuration values that should be global and persist across all environments.
 * Place environment specific config within the environment specific file.
 */

Titon::config()
	->set('App', array(
		'name' => 'Titon',
		'salt' => '66c63d989368170aff46040ab2353923',
		'seed' => 'nsdASDn7012dn1dsjSa',
		'encoding' => 'UTF-8'
	))
	->set('Debug', array(
		'level' => 2,
		'email' => ''
	));

/**
 * Caching
 *
 * Setup unique storage engines to cache your data throughout your application. 
 * A storage engine implementing the Storage interface can be instantiated using the Titon::cache() system.
 */

/**
 * Globalization
 */

use \titon\libs\translators\core\XmlTranslator;

Titon::g11n()
	->setup('en', array(
		'language' => 'English (United States)',
		'iso2' => 'us',
		'iso3' => 'usa',
		'locale' => 'en_US',
		'timezone' => 'America/New_York'
	))
	->setup('en-gb', array(
		'language' => 'English (Great Britain, United Kingdom)',
		'iso2' => 'gb',
		'iso3' => 'gbr',
		'locale' => 'en_GB',
		'fallback' => 'en',
		'timezone' => 'Europe/London',
	))
	->setup('es', array(
		'language' => 'Espanol (Spain)',
		'iso2' => 'es',
		'iso3' => 'esp',
		'locale' => 'es_ES',
		'timezone' => 'Europe/Madrid'
	))
	->setup('es-mx', array(
		'language' => 'Espanol (Mexico)',
		'iso2' => 'mx',
		'iso3' => 'mex',
		'locale' => 'es_MX',
		'fallback' => 'es',
		'timezone' => 'America/Mexico_City'
	))
	->fallbackAs('en')
	->setTranslator(new XmlTranslator());<commit_msg>Updating for the G11n changes<commit_after><?php
/**
 * Titon: The PHP 5.3 Micro Framework
 *
 * @copyright	Copyright 2009-2010, Titon
 * @link		http://github.com/titon
 * @license		http://opensource.org/licenses/bsd-license.php (The BSD License)
 */

namespace app\config;

use \titon\Titon;

/**
 * INI Settings
 * 
 * Define application specific INI settings here as this file is bootstrapped first in the dispatch cycle.
 */

// Multibyte - http://php.net/manual/book.mbstring.php
ini_set('mbstring.func_overload', 7);

/**
 * Environments
 *
 * From here you can define all types of environmental configurations and host mappings.
 * The specific environment configuration file is loaded based on the current hostname.
 */

use \titon\core\Environment;

Titon::environment()
	->setup('development', Environment::DEVELOPMENT, array('localhost', '127.0.0.1'))
	->fallbackAs('development');

/**
 * Configuration
 *
 * Define configuration values that should be global and persist across all environments.
 * Place environment specific config within the environment specific file.
 */

Titon::config()
	->set('App', array(
		'name' => 'Titon',
		'salt' => '66c63d989368170aff46040ab2353923',
		'seed' => 'nsdASDn7012dn1dsjSa',
		'encoding' => 'UTF-8'
	))
	->set('Debug', array(
		'level' => 2,
		'email' => ''
	));

/**
 * Caching
 *
 * Setup unique storage engines to cache your data throughout your application. 
 * A storage engine implementing the Storage interface can be instantiated using the Titon::cache() system.
 */

/**
 * Globalization
 */

use \titon\libs\translators\core\PhpTranslator;
use \titon\libs\storage\cache\FileSystemStorage;

Titon::g11n()
	->setup(array(
		'en',
		'en-gb' => array(
			'timezone' => 'Europe/London'
		),
		'es',
		'es-mx'
	))
	->fallbackAs('en')
	->setTranslator(new PhpTranslator())
	->setStorage(new FileSystemStorage(array('storage' => 'g11n')));
{'fraction_non_alphanumeric': 0.1680356723773762, 'fraction_numerical': 0.026754283032152076, 'mean_word_length': 4.091995221027479, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 58, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7611596', 'n_tokens_mistral': 1586, 'n_tokens_neox': 1437, 'n_words': 374}