<?php
/**
 * patI18n Module
 *
 * $Id: Internal.php 5 2007-06-17 20:15:53Z gerd $
 *
 * Modular translation interface
 *
 * @version     0.1.0
 * @package     patI18n
 * @author      gERD Schaufelberger <gerd@php-tools.net>
 * @license     LGPL
 * @link        http://www.php-tools.net
 */
 
/**
 * patI18n Module Internal
 *
 * This module does not translate anything at all, it simply sets 
 * up the locale settings
 *
 * @version     0.1.0
 * @package     patI18n
 * @author      gERD Schaufelberger <gerd@php-tools.net>
 * @license     LGPL
 * @link        http://www.php-tools.net
 */
class patI18n_Module_Internal extends patI18n_Module
{
   /**
    * current config
    * @var array
    */
    protected $_conf    =   array(
                                'category'  =>  LC_ALL
                            );

   /**
    * Switch to language
    * 
    * @param string $string
    * @return booll true on success
    */
    public function setLocale( $locale )
    {
        setlocale( $this->_conf['category'], $locale );
        return true;
    }
}
?>