diff options
Diffstat (limited to 'core/SmartyPlugins/function.loadJavascriptTranslations.php')
-rw-r--r-- | core/SmartyPlugins/function.loadJavascriptTranslations.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/SmartyPlugins/function.loadJavascriptTranslations.php b/core/SmartyPlugins/function.loadJavascriptTranslations.php index e3bcd0bb85..8ca1828543 100644 --- a/core/SmartyPlugins/function.loadJavascriptTranslations.php +++ b/core/SmartyPlugins/function.loadJavascriptTranslations.php @@ -11,7 +11,7 @@ */ /** - * Load translation strings suffixed with _js for a given list of modules. + * Load translation strings suffixed with _js for a given list of modules. * This function needs to be called when you want to i18n the user interface. * * How to use the function in smarty templates: @@ -28,6 +28,11 @@ * sprintf(_pk_translate('MyPlugin_numberOfEggs_js'),'ten') * where you would have the following in your translation file plugins/MyPlugin/lang/en.php: * 'MyPlugin_numberOfEggs_js' => 'There are %s eggs.' + * + * @param array $params + * @param $smarty + * @throws Exception + * @return string */ function smarty_function_loadJavascriptTranslations($params, &$smarty) { |