Subversion-Projekte lars-tiefland.ci

Revision

Revision 526 | Revision 544 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

/**
 * @author Lars Tiefland
 * @copyright 2016
 */

/**
 * I18n
 * 
 * Stellt die Text für die Internationalierung des Shops bereit.
 * 
 * @package WebanOS CI
 * @author Lars Tiefland
 * @copyright 2016
 * @version $Id: I18n.php 528 2016-09-15 11:20:18Z lars $
 * @access public
 */
class I18n
{
        /**
         * I18n::__construct()
         * 
         * @return
         */
        public function __construct()
        {
                $CI = &get_instance();
                $res = $CI->db->get_where('i18n_de');
                //$lang_strings = $res->result_array();
                while ($row = $res->unbuffered_row())
                {
                        $lang_strings[$row->page_id][$row->id] = $row->string;
                }
                $CI->smarty->assign('langstrings', $lang_strings);
        }
}

?>