diff --git a/nitter/lang/C/messages.po b/nitter/lang/C/messages.po index a9e2428a..984707cc 100644 --- a/nitter/lang/C/messages.po +++ b/nitter/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-08 07:44+0100\n" +"POT-Creation-Date: 2021-10-01 16:10+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: nitter.php:51 +#: nitter.php:52 #, php-format msgid "" "Which nitter server shall be used for the replacements in the post bodies? " @@ -25,17 +25,17 @@ msgid "" "public Nitter servers." msgstr "" -#: nitter.php:52 +#: nitter.php:53 msgid "Nitter server" msgstr "" -#: nitter.php:53 +#: nitter.php:54 msgid "Save Settings" msgstr "" -#: nitter.php:65 +#: nitter.php:99 #, php-format msgid "" -"Links to Twitter in this posting were replaced by links to the Nitter " -"instance at %s" +"In an attempt to protect your privacy, links to Twitter in this posting were " +"replaced by links to the Nitter instance at %s" msgstr "" diff --git a/nitter/nitter.php b/nitter/nitter.php index 28bd9857..49808a12 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -2,7 +2,7 @@ /* * Name: nitter * Description: Replaces links to twitter.com to a nitter server in all displays of postings on a node. - * Version: 1.1 + * Version: 2.0 * Author: Tobias Diekershoff * * Copyright (c) 2020 Tobias Diekershoff @@ -30,7 +30,7 @@ use Friendica\DI; function nitter_install() { - Addon::registerHook ('prepare_body', 'addon/nitter/nitter.php', 'nitter_render'); + Addon::registerHook ('prepare_body_final', 'addon/nitter/nitter.php', 'nitter_render'); } /* Handle the send data from the admin settings @@ -72,6 +72,6 @@ function nitter_render(&$a, &$o) $replaced = true; } if ($replaced) { - $o['html'] .= '

' . DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '

'; + $o['html'] .= '

' . DI::l10n()->t('In an attempt to protect your privacy, links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '

'; } }