mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-06 08:27:54 -05:00
Not sure if this was removed after download or not. Should it be merged?
git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@67 c3eb156b-1dc0-44e1-88ae-e38439141b53
This commit is contained in:
26
application/libraries/MY_Language.php
Normal file
26
application/libraries/MY_Language.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
class MY_Language extends Lang
|
||||
{
|
||||
function MY_Language()
|
||||
{
|
||||
parent::Lang();
|
||||
}
|
||||
|
||||
function switch_to( $idiom )
|
||||
{
|
||||
$CI =& get_instance();
|
||||
if( is_string( $idiom ) )
|
||||
{
|
||||
$CI->config->set_item( 'language', $idiom );
|
||||
$loaded = $this->is_loaded;
|
||||
$this->is_loaded = array();
|
||||
|
||||
foreach($loaded as $file)
|
||||
{
|
||||
$this->load( str_replace( '_lang.php', '', $file ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user