init and translation fixes
This commit is contained in:
parent
c081a993cb
commit
4459a95b40
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
* 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);
|
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).
|
* @return array List of errors (optional).
|
||||||
*/
|
*/
|
||||||
function shaargem_plugin_init($conf)
|
function shaargem_init($conf)
|
||||||
{
|
{
|
||||||
if (! $conf->exists('translation.extensions.shaargem')) {
|
if (! $conf->exists('translation.extensions.shaargem')) {
|
||||||
// Custom translation with the domain 'shaargem'
|
// Custom translation with the domain 'shaargem'
|
||||||
|
@ -44,7 +44,7 @@ function shaargem_plugin_init($conf)
|
||||||
$conf->write(true);
|
$conf->write(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$errors[] = 'This a shaargem init error.';
|
//$errors[] = 'This a shaargem init error.';
|
||||||
return $errors;
|
return $errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue