Browse Source

cleanup namespace usages for L10n

pull/947/head
nupplaPhil 2 years ago
parent
commit
f2fc22227a
No known key found for this signature in database GPG Key ID: D8365C3D36B77D90
  1. 1
      advancedcontentfilter/advancedcontentfilter.php
  2. 3
      advancedcontentfilter/src/middlewares.php
  3. 2
      blackout/blackout.php
  4. 2
      blockbot/blockbot.php
  5. 1
      blockem/blockem.php
  6. 1
      blogger/blogger.php
  7. 1
      buffer/buffer.php
  8. 2
      buglink/buglink.php
  9. 1
      catavatar/catavatar.php
  10. 1
      cookienotice/cookienotice.php
  11. 1
      curweather/curweather.php
  12. 1
      diaspora/diaspora.php
  13. 1
      discourse/discourse.php
  14. 1
      dwpost/dwpost.php
  15. 1
      forumdirectory/forumdirectory.php
  16. 1
      fromapp/fromapp.php
  17. 4
      geocoordinates/geocoordinates.php
  18. 1
      geonames/geonames.php
  19. 1
      gnot/gnot.php
  20. 2
      gravatar/gravatar.php
  21. 1
      group_text/group_text.php
  22. 1
      ifttt/ifttt.php
  23. 1
      ijpost/ijpost.php
  24. 1
      impressum/impressum.php
  25. 1
      infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
  26. 1
      irc/irc.php
  27. 1
      jappixmini/jappixmini.php
  28. 1
      js_upload/js_upload.php
  29. 1
      krynn/krynn.php
  30. 1
      langfilter/langfilter.php
  31. 1
      libertree/libertree.php
  32. 1
      libravatar/libravatar.php
  33. 1
      ljpost/ljpost.php
  34. 1
      mailstream/mailstream.php
  35. 1
      markdown/markdown.php
  36. 1
      mathjax/mathjax.php
  37. 2
      membersince/membersince.php
  38. 2
      morechoice/morechoice.php
  39. 2
      morepokes/morepokes.php
  40. 1
      newmemberwidget/newmemberwidget.php
  41. 2
      notifyall/notifyall.php
  42. 1
      notimeline/notimeline.php
  43. 1
      nsfw/nsfw.php
  44. 1
      numfriends/numfriends.php
  45. 1
      openstreetmap/openstreetmap.php
  46. 1
      pageheader/pageheader.php
  47. 1
      piwik/piwik.php
  48. 1
      planets/planets.php
  49. 1
      public_server/public_server.php
  50. 1
      pumpio/pumpio.php
  51. 1
      qcomment/qcomment.php
  52. 1
      randplace/randplace.php
  53. 1
      remote_permissions/remote_permissions.php
  54. 1
      rendertime/rendertime.php
  55. 1
      securemail/securemail.php
  56. 1
      showmore/showmore.php
  57. 1
      startpage/startpage.php
  58. 1
      statusnet/statusnet.php
  59. 1
      superblock/superblock.php
  60. 1
      testdrive/testdrive.php
  61. 3
      tictac/tictac.php
  62. 1
      tumblr/tumblr.php
  63. 1
      twitter/twitter.php
  64. 1
      viewsrc/viewsrc.php
  65. 2
      webrtc/webrtc.php
  66. 1
      widgets/widget_friendheader.php
  67. 1
      windowsphonepush/windowsphonepush.php
  68. 1
      wppost/wppost.php
  69. 1
      xmpp/xmpp.php

1
advancedcontentfilter/advancedcontentfilter.php

@ -37,7 +37,6 @@ use Friendica\App;
use Friendica\BaseModule;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

3
advancedcontentfilter/src/middlewares.php

@ -1,5 +1,6 @@
<?php
use Friendica\Core\L10n;
use Friendica\DI;
$container = $slim->getContainer();

2
blackout/blackout.php

@ -46,10 +46,10 @@
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\DI;
function blackout_install() {
Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');

2
blockbot/blockbot.php

@ -12,10 +12,10 @@ use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\System;
use Friendica\DI;
use Jaybizzle\CrawlerDetect\CrawlerDetect;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\L10n;
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

1
blockem/blockem.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Util\Strings;

1
blogger/blogger.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Util\Network;

1
buffer/buffer.php

@ -11,7 +11,6 @@ require 'addon/buffer/bufferapp.php';
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

2
buglink/buglink.php

@ -8,7 +8,7 @@
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function buglink_install()
{

1
catavatar/catavatar.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;

1
cookienotice/cookienotice.php

@ -10,7 +10,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;

1
curweather/curweather.php

@ -12,7 +12,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\DI;

1
diaspora/diaspora.php

@ -12,7 +12,6 @@ require_once 'addon/diaspora/Diaspora_Connection.php';
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\Core\Worker;

1
discourse/discourse.php

@ -9,7 +9,6 @@
*/
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Protocol;

1
dwpost/dwpost.php

@ -11,7 +11,6 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;

1
forumdirectory/forumdirectory.php

@ -12,7 +12,6 @@ use Friendica\Content\Pager;
use Friendica\Content\Widget;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
fromapp/fromapp.php

@ -7,7 +7,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;

4
geocoordinates/geocoordinates.php

@ -8,9 +8,9 @@
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Network;
use Friendica\Util\Strings;
@ -105,5 +105,5 @@ function geocoordinates_addon_admin_post(&$a)
$language = (!empty($_POST['language']) ? Strings::escapeTags(trim($_POST['language'])) : '');
Config::set('geocoordinates', 'language', $language);
info(DI::l10n()->t('Settings updated.'). EOL);
info(DI::l10n()->t('Settings updated.') . EOL);
}

1
geonames/geonames.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

1
gnot/gnot.php

@ -8,7 +8,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

2
gravatar/gravatar.php

@ -10,10 +10,10 @@ use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\Strings;

1
group_text/group_text.php

@ -6,7 +6,6 @@
* Author: Thomas Willingham <https://kakste.com/profile/beardyunixer>
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;

1
ifttt/ifttt.php

@ -9,7 +9,6 @@
require_once 'mod/item.php';
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

1
ijpost/ijpost.php

@ -10,7 +10,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Util\DateTimeFormat;

1
impressum/impressum.php

@ -10,7 +10,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

1
infiniteimprobabilitydrive/infiniteimprobabilitydrive.php

@ -6,7 +6,6 @@
* Author: Thomas Willingham <https://kakste.com/profile/beardyunixer>
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function infiniteimprobabilitydrive_install()

1
irc/irc.php

@ -9,7 +9,6 @@
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;

1
jappixmini/jappixmini.php

@ -65,7 +65,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

1
js_upload/js_upload.php

@ -10,7 +10,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

1
krynn/krynn.php

@ -10,7 +10,6 @@
*"My body was my sacrifice... for my magic. This damage is permanent." - Raistlin Majere
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;

1
langfilter/langfilter.php

@ -10,7 +10,6 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;

1
libertree/libertree.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;

1
libravatar/libravatar.php

@ -10,7 +10,6 @@ use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

1
ljpost/ljpost.php

@ -10,7 +10,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Util\DateTimeFormat;

1
mailstream/mailstream.php

@ -9,7 +9,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

1
markdown/markdown.php

@ -9,7 +9,6 @@ use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Renderer;
use Friendica\Core\L10n;
use Friendica\DI;
function markdown_install() {

1
mathjax/mathjax.php

@ -10,7 +10,6 @@
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;

2
membersince/membersince.php

@ -8,7 +8,7 @@
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Util\DateTimeFormat;
function membersince_install()

2
morechoice/morechoice.php

@ -9,7 +9,7 @@
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function morechoice_install() {

2
morepokes/morepokes.php

@ -7,7 +7,7 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function morepokes_install()
{

1
newmemberwidget/newmemberwidget.php

@ -9,7 +9,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

2
notifyall/notifyall.php

@ -11,10 +11,8 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Util\Emailer;

1
notimeline/notimeline.php

@ -8,7 +8,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function notimeline_install()

1
nsfw/nsfw.php

@ -8,7 +8,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function nsfw_install()

1
numfriends/numfriends.php

@ -6,7 +6,6 @@
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;

1
openstreetmap/openstreetmap.php

@ -13,7 +13,6 @@ use Friendica\DI;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Util\ConfigFileLoader;

1
pageheader/pageheader.php

@ -11,7 +11,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;

1
piwik/piwik.php

@ -33,7 +33,6 @@
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

1
planets/planets.php

@ -7,7 +7,6 @@
* Author: Tony Baldwin <https://free-haven.org/profile/tony>
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;

1
public_server/public_server.php

@ -10,7 +10,6 @@ use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

1
pumpio/pumpio.php

@ -11,7 +11,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;

1
qcomment/qcomment.php

@ -18,7 +18,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Util\XML;

1
randplace/randplace.php

@ -19,7 +19,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;

1
remote_permissions/remote_permissions.php

@ -9,7 +9,6 @@
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;

1
rendertime/rendertime.php

@ -8,7 +8,6 @@
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function rendertime_install() {

1
securemail/securemail.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

1
showmore/showmore.php

@ -8,7 +8,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Util\Strings;

1
startpage/startpage.php

@ -7,7 +7,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function startpage_install() {

1
statusnet/statusnet.php

@ -44,7 +44,6 @@ use Friendica\Content\Text\HTML;
use Friendica\Content\Text\Plaintext;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

1
superblock/superblock.php

@ -7,7 +7,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Util\Strings;

1
testdrive/testdrive.php

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Search;
use Friendica\Database\DBA;
use Friendica\DI;

3
tictac/tictac.php

@ -5,9 +5,8 @@
* Version: 1.0
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*/
use Friendica\Core\Addon;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
function tictac_install() {
Hook::register('app_menu', 'addon/tictac/tictac.php', 'tictac_app_menu');

1
tumblr/tumblr.php

@ -13,7 +13,6 @@ use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

1
twitter/twitter.php

@ -71,7 +71,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Plaintext;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;

1
viewsrc/viewsrc.php

@ -7,7 +7,6 @@
*
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Database\DBA;

2
webrtc/webrtc.php

@ -8,8 +8,8 @@
*/
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Strings;
function webrtc_install() {

1
widgets/widget_friendheader.php

@ -1,7 +1,6 @@
<?php
use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
use Friendica\DI;
function friendheader_widget_name()

1
windowsphonepush/windowsphonepush.php

@ -30,7 +30,6 @@ use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;

1
wppost/wppost.php

@ -9,7 +9,6 @@
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;

1
xmpp/xmpp.php

@ -10,7 +10,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Strings;

Loading…
Cancel
Save