Skip to content

Commit

Permalink
Превод на външна част и от не-регистрирани потребители
Browse files Browse the repository at this point in the history
  • Loading branch information
milengg committed May 28, 2016
1 parent 5617650 commit c10e922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/Lg.class.php
Expand Up @@ -301,7 +301,7 @@ function translate($kstring, $key = FALSE, $lg = NULL)
$rec->lg = $lg;

// Само потребители с определена роля могат да добавят (автоматично) в превода
if (haveRole('translate')) {
if (haveRole('translate') || !haveRole('powerUser')) {
$this->save($rec);
}

Expand Down
4 changes: 2 additions & 2 deletions plg/UserReg.class.php
Expand Up @@ -92,13 +92,13 @@ function on_AfterAction(&$invoker, &$tpl, $act)

$tpl->append("<p>&nbsp;<A HREF='" .
toUrl(array($invoker, 'resetPassForm')) .
"' {$className}>»&nbsp;" . tr('Забравена парола') . "?</A>", 'FORM');
"' {$className}>»&nbsp;" . tr('Забравена парола||Forgot Password') . "?</A>", 'FORM');
}

if ($invoker->haveRightFor('registernewuserout')) {
$tpl->append("<p>&nbsp;<A HREF='" .
toUrl(array($invoker, 'registerNewUser')) .
"' {$className}>»&nbsp;" . tr('Нова регистрация') . "</A>", 'FORM');
"' {$className}>»&nbsp;" . tr('Нова регистрация||Create account') . "</A>", 'FORM');
}
}
}
Expand Down

0 comments on commit c10e922

Please sign in to comment.