init and translation fixes

This commit is contained in:
n 2021-02-27 18:53:45 +01:00
parent c081a993cb
commit 4459a95b40
Signed by: n
GPG Key ID: E96086FC951DAE30
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ const EXT_TRANSLATION_DOMAIN = 'shaargem';
/*
* This is not necessary, but it's easier if you don't want Poedit to mix up your translations.
*/
function shaargem_plugin_t($text, $nText = '', $nb = 1)
function shaargem_t($text, $nText = '', $nb = 1)
{
return t($text, $nText, $nb, EXT_TRANSLATION_DOMAIN);
}
@ -36,7 +36,7 @@ function shaargem_plugin_t($text, $nText = '', $nb = 1)
*
* @return array List of errors (optional).
*/
function shaargem_plugin_init($conf)
function shaargem_init($conf)
{
if (! $conf->exists('translation.extensions.shaargem')) {
// Custom translation with the domain 'shaargem'
@ -44,7 +44,7 @@ function shaargem_plugin_init($conf)
$conf->write(true);
}
$errors[] = 'This a shaargem init error.';
//$errors[] = 'This a shaargem init error.';
return $errors;
}