mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
1eb23e3667
commit
48fecb9a40
71 changed files with 721 additions and 721 deletions
|
@ -111,7 +111,7 @@ function geonames_addon_settings_post(App $a, array $post)
|
|||
|
||||
DI::pConfig()->set(local_user(), 'geonames', 'enable', intval($_POST['geonames-enable']));
|
||||
|
||||
info(L10n::t('Geonames settings updated.'));
|
||||
info(DI::l10n()->t('Geonames settings updated.'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -143,9 +143,9 @@ function geonames_addon_settings(App $a, &$s)
|
|||
|
||||
$t = Renderer::getMarkupTemplate('settings.tpl', __DIR__);
|
||||
$s .= Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('Geonames Settings'),
|
||||
'$description' => L10n::t('Replace numerical coordinates by the nearest populated location name in your posts.'),
|
||||
'$enable' => ['geonames-enable', L10n::t('Enable Geonames Addon'), $enabled],
|
||||
'$submit' => L10n::t('Save Settings')
|
||||
'$title' => DI::l10n()->t('Geonames Settings'),
|
||||
'$description' => DI::l10n()->t('Replace numerical coordinates by the nearest populated location name in your posts.'),
|
||||
'$enable' => ['geonames-enable', DI::l10n()->t('Enable Geonames Addon'), $enabled],
|
||||
'$submit' => DI::l10n()->t('Save Settings')
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue