Subversion-Projekte lars-tiefland.ci

Revision

Revision 544 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
516 lars 1
<?php
2
 
3
/**
4
 * @author Lars Tiefland
5
 * @copyright 2016
6
 */
7
 
518 lars 8
/**
9
 * I18n
10
 *
11
 * Stellt die Text für die Internationalierung des Shops bereit.
12
 *
526 lars 13
 * @package WebanOS CI
14
 * @author Lars Tiefland
15
 * @copyright 2016
16
 * @version $Id: I18n.php 544 2016-09-15 13:31:01Z lars $
518 lars 17
 * @access public
18
 */
516 lars 19
class I18n
20
{
518 lars 21
	/**
22
	 * I18n::__construct()
23
	 *
24
	 * @return
25
	 */
516 lars 26
	public function __construct()
27
	{
28
		$CI = &get_instance();
29
		$res = $CI->db->get_where('i18n_de');
30
		//$lang_strings = $res->result_array();
31
		while ($row = $res->unbuffered_row())
32
		{
33
			$lang_strings[$row->page_id][$row->id] = $row->string;
34
		}
544 lars 35
		$GLOBALS['langstrings'] = $lang_strings;
516 lars 36
		$CI->smarty->assign('langstrings', $lang_strings);
37
	}
38
}
39
 
228 lars 40
?>