From 6d3602f9c65b8aa4b7044ea3071c7ad369039063 Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Tue, 13 Dec 2022 15:41:53 +0000 Subject: [PATCH 1/4] Update nitter.php Changed protocol of example URL to secure to avoid confusion as all Nitter servers operate in secure mode only. --- nitter/nitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitter/nitter.php b/nitter/nitter.php index 013d8fd2..f2463b96 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -49,7 +49,7 @@ function nitter_addon_admin(App $a, string &$o) $t = Renderer::getMarkupTemplate('admin.tpl', 'addon/nitter/'); $o = Renderer::replaceMacros($t, [ '$settingdescription' => DI::l10n()->t('Which nitter server shall be used for the replacements in the post bodies? Use the URL with servername and protocol. See %s for a list of available public Nitter servers.', 'https://github.com/zedeus/nitter/wiki/Instances'), - '$nitterserver' => ['nitterserver', DI::l10n()->t('Nitter server'), $nitterserver, 'http://example.com'], + '$nitterserver' => ['nitterserver', DI::l10n()->t('Nitter server'), $nitterserver, 'https://example.com'], '$submit' => DI::l10n()->t('Save Settings'), ]); } From f9661af3f706d728e13797a6d2a0d3df520959cf Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Tue, 13 Dec 2022 15:43:29 +0000 Subject: [PATCH 2/4] Update nitter.php Replaced verbose sentence with succinct notice and reduced its font size. --- nitter/nitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitter/nitter.php b/nitter/nitter.php index f2463b96..c815ccd7 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -71,6 +71,6 @@ function nitter_render(App $a, array &$b) $replaced = true; } if ($replaced) { - $b['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) . '

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

' . DI::l10n()->t('(Nitter addon enabled: Twitter links via %s)', $nitter) . '

'; } } From 139e4384b18fd75ea510a18d846e7c8677898cb3 Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Tue, 13 Dec 2022 15:47:30 +0000 Subject: [PATCH 3/4] Update nitter.php [Now really] Reduced font size of notice --- nitter/nitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitter/nitter.php b/nitter/nitter.php index c815ccd7..440f199f 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -71,6 +71,6 @@ function nitter_render(App $a, array &$b) $replaced = true; } if ($replaced) { - $b['html'] .= '

' . DI::l10n()->t('(Nitter addon enabled: Twitter links via %s)', $nitter) . '

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

' . DI::l10n()->t('(Nitter addon enabled: Twitter links via %s)', $nitter) . '

'; } } From 8878d7c9d41507cccc0dd229ce86c974221c936f Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 13 Dec 2022 17:27:40 +0000 Subject: [PATCH 4/4] modified: nitter/lang/C/messages.po --- nitter/lang/C/messages.po | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nitter/lang/C/messages.po b/nitter/lang/C/messages.po index 984707cc..34bd12a9 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-10-01 16:10+0200\n" +"POT-Creation-Date: 2022-12-13 17:26+0000\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:52 +#: nitter.php:51 #, php-format msgid "" "Which nitter server shall be used for the replacements in the post bodies? " @@ -25,17 +25,15 @@ msgid "" "public Nitter servers." msgstr "" -#: nitter.php:53 +#: nitter.php:52 msgid "Nitter server" msgstr "" -#: nitter.php:54 +#: nitter.php:53 msgid "Save Settings" msgstr "" -#: nitter.php:99 +#: nitter.php:74 #, php-format -msgid "" -"In an attempt to protect your privacy, links to Twitter in this posting were " -"replaced by links to the Nitter instance at %s" +msgid "(Nitter addon enabled: Twitter links via %s)" msgstr ""