SwatI18N/SwatI18NLocale.php
public function set($category = LC_ALL)
    {
        $this->old_locale_by_category[$category] = self::setlocale(
            $category,
            '0'
        );

        self::setlocale($category, $this->locale);
    }
public function set($category = LC_ALL)
    {
        $this->old_locale_by_category[$category] = self::setlocale(
            $category,
            '0'
        );

        self::setlocale($category, $this->locale);
    }
public function set ( $ category = LC_ALL ) { $ this -> old_locale_by_category [ $ category ] = self :: setlocale ( $ category , '0' ) ; self :: setlocale ( $ category , $ this -> locale ) ; }
Sets the system locale to this locale

@param integer $category optional. The lc-type constant specifying the
category of functions affected by setting the
system locale. If not specified, defaults to
LC_ALL.
Sets the system locale to this locale