public function tearDown() { Multibyte::reset(); Multibyte::config($this->_backup['multibyteConfig']); }
* @link https://github.com/UnionOfRAD/li3_cldr */ Catalog::config(array('runtime' => array('adapter' => 'Memory'), 'lithium' => array('adapter' => 'Php', 'path' => LITHIUM_LIBRARY_PATH . '/lithium/g11n/resources/php')) + Catalog::config()); /** * Multibyte Strings * * Configuration for the `Multibyte` class which allows to work with UTF-8 * encoded strings. At least one configuration named `'default'` must be * present. Available adapters are `Intl`, `Mbstring` and `Iconv`. Please keep * in mind that each adapter may act differently upon input containing bad * UTF-8 sequences. These differences aren't currently equalized or abstracted * away. * * @see lithium\g11n\Multibyte */ Multibyte::config(array('default' => array('adapter' => 'Mbstring'))); /** * Transliteration * * Load locale specific transliteration rules through the `Catalog` class or * specify them manually to make `Inflector::slug()` work better with * characters specific to a locale. * * @see lithium\g11n\Catalog * @see lithium\util\Inflector::slug() */ // Inflector::rules('transliteration', Catalog::read(true, 'inflection.transliteration', 'en')); // Inflector::rules('transliteration', array('/É|Ê/' => 'E')); /** * Grammar *
<?php /** * Lithium: the most rad php framework * * @copyright Copyright 2011, Union of RAD (http://union-of-rad.org) * @license http://opensource.org/licenses/bsd-license.php The BSD License */ use lithium\core\Libraries; use lithium\g11n\Multibyte; Libraries::paths(array('rules' => array('{:library}\\extensions\\qa\\rules\\{:class}\\{:name}', '{:library}\\qa\\rules\\{:class}\\{:name}' => array('libraries' => 'li3_quality')))); Multibyte::config(array('li3_quality' => array('adapter' => 'Mbstring')));