diff options
Diffstat (limited to 'lib/private/template/functions.php')
-rw-r--r-- | lib/private/template/functions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php index cbe751e59b5..dede604c01d 100644 --- a/lib/private/template/functions.php +++ b/lib/private/template/functions.php @@ -56,6 +56,15 @@ function style($app, $file) { } /** + * Shortcut for adding translations to a page + * @param string $app the appname + * if an array is given it will add all styles + */ +function translation($app) { + OC_Util::addTranslations($app); +} + +/** * Shortcut for HTML imports * @param string $app the appname * @param string|string[] $file the path relative to the app's component folder, |