mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:50:12 +00:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
af88c2daa3
commit
5dfee31108
175 changed files with 2841 additions and 2841 deletions
|
@ -24,7 +24,7 @@ class Bookmarklet extends BaseModule
|
|||
$config = DI::config();
|
||||
|
||||
if (!local_user()) {
|
||||
$output = '<h2>' . L10n::t('Login') . '</h2>';
|
||||
$output = '<h2>' . DI::l10n()->t('Login') . '</h2>';
|
||||
$output .= Login::form(DI::args()->getQueryString(), intval($config->get('config', 'register_policy')) === Register::CLOSED ? false : true);
|
||||
return $output;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class Bookmarklet extends BaseModule
|
|||
|
||||
if (!strstr($referer, $page)) {
|
||||
if (empty($_REQUEST["url"])) {
|
||||
throw new HTTPException\BadRequestException(L10n::t('This page is missing a url parameter.'));
|
||||
throw new HTTPException\BadRequestException(DI::l10n()->t('This page is missing a url parameter.'));
|
||||
}
|
||||
|
||||
$content = add_page_info($_REQUEST["url"]);
|
||||
|
@ -56,7 +56,7 @@ class Bookmarklet extends BaseModule
|
|||
$output = status_editor($app, $x, 0, false);
|
||||
$output .= "<script>window.resizeTo(800,550);</script>";
|
||||
} else {
|
||||
$output = '<h2>' . L10n::t('The post was created') . '</h2>';
|
||||
$output = '<h2>' . DI::l10n()->t('The post was created') . '</h2>';
|
||||
$output .= "<script>window.close()</script>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue