PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/administrator/components/com_zoo/framework/helpers/language.php

https://gitlab.com/vnsoftdev/amms
PHP | 30 lines | 6 code | 3 blank | 21 comment | 0 complexity | ca0870407f1eb73c1c240e52f5403a6d MD5 | raw file
 1<?php
 2/**
 3 * @package   com_zoo
 4 * @author    YOOtheme http://www.yootheme.com
 5 * @copyright Copyright (C) YOOtheme GmbH
 6 * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
 7 */
 8
 9/**
10 * Language helper. Wrapper for JText and JLanguage
11 * 
12 * @package Framework.Helpers
13 */
14class LanguageHelper extends AppHelper {
15
16	/**
17	 * Translate a string into the current language
18	 * 
19	 * @param string $string The string to translate
20	 * @param booolean $js_safe If the string should be made js safe (default: true)
21	 * 
22	 * @return string The translated string
23	 * 
24	 * @since 1.0.0
25	 */
26	public function l($string, $js_safe = false) {
27		return $this->app->system->language->_($string, $js_safe);
28	}
29	
30}