diff --git a/shaargem.php b/shaargem.php index 1b0e382..c73cc44 100644 --- a/shaargem.php +++ b/shaargem.php @@ -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; }