Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
755 lars 1
<?php
2
 
3
/**
4
 * @author Lars Tiefland
5
 * @copyright 2016
6
 */
7
 
8
/**
9
 * I18n
10
 *
11
 * Stellt die Text für die Internationalierung des Shops bereit.
12
 *
13
 * @package WebanOS CI
14
 * @author Lars Tiefland
15
 * @copyright 2016
16
 * @version $Id: I18n.php 544 2016-09-15 13:31:01Z lars $
17
 * @access public
18
 */
19
class I18n
20
{
21
	/**
22
	 * I18n::__construct()
23
	 *
24
	 * @return
25
	 */
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
		}
35
		$GLOBALS['langstrings'] = $lang_strings;
36
		$CI->smarty->assign('langstrings', $lang_strings);
37
	}
38
}
39
 
40
?>