Fix implementation of translation short cut
This commit is contained in:
parent
ff84384513
commit
fb4f993336
1 changed files with 2 additions and 9 deletions
|
@ -58,17 +58,10 @@ function style($app, $file) {
|
||||||
/**
|
/**
|
||||||
* Shortcut for adding translations to a page
|
* Shortcut for adding translations to a page
|
||||||
* @param string $app the appname
|
* @param string $app the appname
|
||||||
* @param string|string[] $file the filename,
|
|
||||||
* if an array is given it will add all styles
|
* if an array is given it will add all styles
|
||||||
*/
|
*/
|
||||||
function translation($app, $file) {
|
function translation($app) {
|
||||||
if(is_array($file)) {
|
OC_Util::addTranslations($app);
|
||||||
foreach($file as $f) {
|
|
||||||
OC_Util::addStyle($app, $f);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
OC_Util::addStyle($app, $file);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue