Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
LanguageModule.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
11 class LanguageModule extends CWebModule
12 {
13 
14  /**
15  * @var array array of used languages
16  */
17  public $languages = array();
18 
19  /**
20  * Translates a message to the specified language.
21  *
22  * @param string $str message
23  * @param array $params params
24  * @param string $dic dictionary
25  *
26  * @return string
27  */
28  public static function t($str = '', $params = array(), $dic = 'language')
29  {
30  return Yii::t("LanguageModule." . $dic, $str, $params);
31  }
32 
33 }
34