More PHPDoc updates
This commit is contained in:
parent
e2286c6598
commit
8951328a87
5 changed files with 10 additions and 9 deletions
|
@ -351,7 +351,7 @@ class OC_L10N implements \OCP\IL10N {
|
|||
/**
|
||||
* @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.
|
||||
|
@ -413,9 +413,9 @@ class OC_L10N implements \OCP\IL10N {
|
|||
* 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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -533,6 +533,7 @@ class OC_L10N implements \OCP\IL10N {
|
|||
|
||||
/**
|
||||
* @param string $lang
|
||||
* @param string $app
|
||||
*/
|
||||
public static function languageExists($app, $lang) {
|
||||
if ($lang == 'en') {//english is always available
|
||||
|
|
|
@ -290,7 +290,7 @@ class Server extends SimpleContainer implements IServerContainer {
|
|||
|
||||
/**
|
||||
* get an L10N instance
|
||||
* @param $app string appid
|
||||
* @param string $app appid
|
||||
* @return \OC_L10N
|
||||
*/
|
||||
function getL10N($app) {
|
||||
|
|
|
@ -52,7 +52,7 @@ interface IL10N {
|
|||
/**
|
||||
* 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.
|
||||
|
|
|
@ -122,7 +122,7 @@ interface IServerContainer {
|
|||
|
||||
/**
|
||||
* get an L10N instance
|
||||
* @param $app string appid
|
||||
* @param string $app appid
|
||||
* @return \OCP\IL10N
|
||||
*/
|
||||
function getL10N($app);
|
||||
|
|
|
@ -76,8 +76,8 @@ class Controller {
|
|||
/**
|
||||
* 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) {
|
||||
|
|
Loading…
Reference in a new issue