/**
* @brief Localization
* @param string $type Type of localization
- * @param array $params parameters for this localization
+ * @param array $data parameters for this localization
* @returns String or false
*
* Returns the localized data.
* This function is useful to avoid loading thousands of files if only one
* simple string is needed, for example in appinfo.php
*/
- public static function selectLanguage($text) {
- $lang = self::findLanguage(array_keys($text));
- return $text[$lang];
+ public static function selectLanguage($texts) {
+ $lang = self::findLanguage(array_keys($texts));
+ return $texts[$lang];
}
/**
/**
* @param string $lang
+ * @param string $app
*/
public static function languageExists($app, $lang) {
if ($lang == 'en') {//english is always available
/**
* Localization
* @param string $type Type of localization
- * @param array $params parameters for this localization
+ * @param array $data parameters for this localization
* @return String or false
*
* Returns the localized data.
/**
* Get the field name to use it in error messages
*
- * @param $setting string
- * @param $l \OC_L10N
+ * @param string $setting
+ * @param \OC_L10N $l
* @return string
*/
public static function getFieldname($setting, $l) {