From a38b07fa341a156cabb0b5ed0b1f4b1f71e1d058 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 8 Dec 2022 18:01:18 +0100 Subject: [PATCH 01/11] Twitter addon translation update THX kalon33 --- twitter/lang/fr/messages.po | 67 +++++++++++++++++++++++-------------- twitter/lang/fr/strings.php | 3 ++ 2 files changed, 44 insertions(+), 26 deletions(-) diff --git a/twitter/lang/fr/messages.po b/twitter/lang/fr/messages.po index 18a4f190..f6afa0a6 100644 --- a/twitter/lang/fr/messages.po +++ b/twitter/lang/fr/messages.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-27 10:25-0500\n" +"POT-Creation-Date: 2022-11-13 10:15+0000\n" "PO-Revision-Date: 2014-06-23 12:58+0000\n" "Last-Translator: Nicolas Derive, 2022\n" "Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n" @@ -21,23 +21,23 @@ msgstr "" "Language: fr\n" "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" -#: twitter.php:213 +#: twitter.php:216 msgid "Post to Twitter" msgstr "Publier sur Twitter" -#: twitter.php:258 +#: twitter.php:263 msgid "" "You submitted an empty PIN, please Sign In with Twitter again to get a new " "one." msgstr "Vous avez envoyé un PIN vide, veuillez vous connecter à Twitter à nouveau pour en avoir un autre." -#: twitter.php:321 +#: twitter.php:330 msgid "" "No consumer key pair for Twitter found. Please contact your site " "administrator." msgstr "Aucune clé d'application pour Twitter n'a été trouvée. Merci de contacter l'administrateur de votre site." -#: twitter.php:334 +#: twitter.php:343 msgid "" "At this Friendica instance the Twitter addon was enabled but you have not " "yet connected your account to your Twitter account. To do so click the " @@ -46,26 +46,26 @@ msgid "" " be posted to Twitter." msgstr "Sur cette instance de Friendica, le connecteur Twitter a été activé, mais vous n'avez pas encore connecté votre compte local à votre compte Twitter. Pour ce faire, cliquer sur le bouton ci-dessous. Vous obtiendrez alors un 'PIN' de Twitter, que vous devrez copier dans le champ ci-dessous, puis soumettre le formulaire. Seules vos publications publiques seront transmises à Twitter." -#: twitter.php:335 +#: twitter.php:344 msgid "Log in with Twitter" msgstr "Se connecter avec Twitter" -#: twitter.php:337 +#: twitter.php:346 msgid "Copy the PIN from Twitter here" msgstr "Copier le PIN de Twitter ici" -#: twitter.php:345 twitter.php:388 +#: twitter.php:354 twitter.php:399 msgid "An error occured: " msgstr "Une erreur est survenue :" -#: twitter.php:359 +#: twitter.php:368 #, php-format msgid "" "Currently connected to: %1$s" msgstr "Actuellement connecté à : %1$s" -#: twitter.php:365 +#: twitter.php:374 msgid "" "Note: Due to your privacy settings (Hide your profile " "details from unknown viewers?) the link potentially included in public " @@ -73,42 +73,46 @@ msgid "" "the visitor that the access to your profile has been restricted." msgstr "Note: Du fait de vos paramètres de vie privée (Cacher les détails de votre profil des visiteurs inconnus?), le lien potentiellement inclus dans les publications publiques relayées vers Twitter conduira les visiteurs vers une page blanche les informant que leur accès à votre profil a été restreint." -#: twitter.php:372 +#: twitter.php:381 msgid "Invalid Twitter info" msgstr "Informations Twitter invalides" -#: twitter.php:373 +#: twitter.php:382 msgid "Disconnect" msgstr "Se déconnecter" -#: twitter.php:378 +#: twitter.php:387 msgid "Allow posting to Twitter" msgstr "Autoriser la publication sur Twitter" -#: twitter.php:378 +#: twitter.php:387 msgid "" "If enabled all your public postings can be posted to the " "associated Twitter account. You can choose to do so by default (here) or for" " every posting separately in the posting options when writing the entry." msgstr "En cas d'activation, toutes vos publications publiques seront transmises au compte Twitter associé. Vous pourrez choisir de le faire par défaut (ici), ou bien pour chaque publication séparément lors de sa rédaction." -#: twitter.php:379 +#: twitter.php:388 msgid "Send public postings to Twitter by default" msgstr "Envoyer par défaut les publications publiques sur Twitter" -#: twitter.php:380 +#: twitter.php:389 +msgid "Use threads instead of truncating the content" +msgstr "Utiliser des fils de discussion (threads) au lieu de tronquer le contenu" + +#: twitter.php:390 msgid "Mirror all posts from twitter that are no replies" msgstr "Synchroniser toutes les publications de Twitter qui ne sont pas des réponses" -#: twitter.php:381 +#: twitter.php:391 msgid "Import the remote timeline" msgstr "Importer la Timeline distante" -#: twitter.php:382 +#: twitter.php:392 msgid "Automatically create contacts" msgstr "Créer automatiquement les contacts" -#: twitter.php:382 +#: twitter.php:392 msgid "" "This will automatically create a contact in Friendica as soon as you receive" " a message from an existing contact via the Twitter network. If you do not " @@ -116,33 +120,44 @@ msgid "" "from whom you would like to see posts here." msgstr "Cela va automatiquement créer un contact dans Friendica dès qu'une publication d'un contact existant est reçue de Twitter. Si vous n'activez pas ceci, vous devrez ajouter manuellement ces contacts dans Friendica afin d'y voir leurs publications." -#: twitter.php:395 +#: twitter.php:393 +msgid "Follow in fediverse" +msgstr "Suivre dans le fediverse" + +#: twitter.php:393 +msgid "" +"Automatically subscribe to the contact in the fediverse, when a fediverse " +"account is mentioned in name or description and we are following the Twitter" +" contact." +msgstr "Suivre automatiquement le contact dans le fediverse, quand un compte fediverse est mentionné dans le nom ou la description et que le contact Twitter est suivi." + +#: twitter.php:406 msgid "Twitter Import/Export/Mirror" msgstr "Importation/Exportation/Synchronisation avec Twitter" -#: twitter.php:547 +#: twitter.php:558 msgid "" "Please connect a Twitter account in your Social Network settings to import " "Twitter posts." msgstr "Merci de connecter un compte Twitter depuis vos Paramètres de réseaux sociaux afin d'importer les publications Twitter." -#: twitter.php:554 +#: twitter.php:565 msgid "Twitter post not found." msgstr "Publication Twitter non trouvée." -#: twitter.php:914 +#: twitter.php:965 msgid "Save Settings" msgstr "Sauvegarder les paramètres" -#: twitter.php:916 +#: twitter.php:967 msgid "Consumer key" msgstr "Consumer key" -#: twitter.php:917 +#: twitter.php:968 msgid "Consumer secret" msgstr "Consumer secret" -#: twitter.php:1113 +#: twitter.php:1167 #, php-format msgid "%s on Twitter" msgstr "%s sur Twitter" diff --git a/twitter/lang/fr/strings.php b/twitter/lang/fr/strings.php index 9b7363f3..ff46a386 100644 --- a/twitter/lang/fr/strings.php +++ b/twitter/lang/fr/strings.php @@ -19,10 +19,13 @@ $a->strings['Disconnect'] = 'Se déconnecter'; $a->strings['Allow posting to Twitter'] = 'Autoriser la publication sur Twitter'; $a->strings['If enabled all your public postings can be posted to the associated Twitter account. You can choose to do so by default (here) or for every posting separately in the posting options when writing the entry.'] = 'En cas d\'activation, toutes vos publications publiques seront transmises au compte Twitter associé. Vous pourrez choisir de le faire par défaut (ici), ou bien pour chaque publication séparément lors de sa rédaction.'; $a->strings['Send public postings to Twitter by default'] = 'Envoyer par défaut les publications publiques sur Twitter'; +$a->strings['Use threads instead of truncating the content'] = 'Utiliser des fils de discussion (threads) au lieu de tronquer le contenu'; $a->strings['Mirror all posts from twitter that are no replies'] = 'Synchroniser toutes les publications de Twitter qui ne sont pas des réponses'; $a->strings['Import the remote timeline'] = 'Importer la Timeline distante'; $a->strings['Automatically create contacts'] = 'Créer automatiquement les contacts'; $a->strings['This will automatically create a contact in Friendica as soon as you receive a message from an existing contact via the Twitter network. If you do not enable this, you need to manually add those Twitter contacts in Friendica from whom you would like to see posts here.'] = 'Cela va automatiquement créer un contact dans Friendica dès qu\'une publication d\'un contact existant est reçue de Twitter. Si vous n\'activez pas ceci, vous devrez ajouter manuellement ces contacts dans Friendica afin d\'y voir leurs publications.'; +$a->strings['Follow in fediverse'] = 'Suivre dans le fediverse'; +$a->strings['Automatically subscribe to the contact in the fediverse, when a fediverse account is mentioned in name or description and we are following the Twitter contact.'] = 'Suivre automatiquement le contact dans le fediverse, quand un compte fediverse est mentionné dans le nom ou la description et que le contact Twitter est suivi.'; $a->strings['Twitter Import/Export/Mirror'] = 'Importation/Exportation/Synchronisation avec Twitter'; $a->strings['Please connect a Twitter account in your Social Network settings to import Twitter posts.'] = 'Merci de connecter un compte Twitter depuis vos Paramètres de réseaux sociaux afin d\'importer les publications Twitter.'; $a->strings['Twitter post not found.'] = 'Publication Twitter non trouvée.'; -- 2.43.0 From 5da3cf67cedfa7fed74a4101a2fcf9911d54732f Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 10 Dec 2022 19:09:36 +0000 Subject: [PATCH 02/11] Twitter: Improve uploading of images --- twitter/twitter.php | 76 ++++++++++++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 25 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 62b1b6a9..973d0a9a 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -88,6 +88,7 @@ use Friendica\Model\User; use Friendica\Protocol\Activity; use Friendica\Core\Config\Util\ConfigFileLoader; use Friendica\Core\System; +use Friendica\Model\Photo; use Friendica\Util\DateTimeFormat; use Friendica\Util\Images; use Friendica\Util\Strings; @@ -781,37 +782,29 @@ function twitter_post_hook(App $a, array &$b) // and now tweet it :-) $post = []; - if (!empty($msgarr['images'])) { - Logger::info('Got images', ['id' => $b['id'], 'images' => $msgarr['images']]); + if (!empty($msgarr['images']) || !empty($msgarr['remote_images'])) { + Logger::info('Got images', ['id' => $b['id'], 'images' => $msgarr['images'], 'remote_images' => $msgarr['remote_images']]); try { $media_ids = []; - foreach ($msgarr['images'] as $image) { + foreach ($msgarr['images'] ?? [] as $image) { if (count($media_ids) == 4) { continue; } + try { + $media_ids[] = twitter_upload_image($connection, $cb, $image, $b); + } catch (\Throwable $th) { + Logger::warning('Error while uploading image', ['code' => $th->getCode(), 'message' => $th->getMessage()]); + } + } - $img_str = DI::httpClient()->fetch($image['url']); - - $tempfile = tempnam(System::getTempPath(), 'cache'); - file_put_contents($tempfile, $img_str); - - Logger::info('Uploading', ['id' => $b['id'], 'image' => $image['url']]); - $media = $connection->upload('media/upload', ['media' => $tempfile]); - - unlink($tempfile); - - if (isset($media->media_id_string)) { - $media_ids[] = $media->media_id_string; - - if (!empty($image['description'])) { - $data = ['media_id' => $media->media_id_string, - 'alt_text' => ['text' => substr($image['description'], 0, 420)]]; - $ret = $cb->media_metadata_create($data); - Logger::info('Metadata create', ['id' => $b['id'], 'data' => $data, 'return' => $ret]); - } - } else { - Logger::error('Failed upload', ['id' => $b['id'], 'image' => $image['url'], 'return' => $media]); - throw new Exception('Failed upload of ' . $image['url']); + foreach ($msgarr['remote_images'] ?? [] as $image) { + if (count($media_ids) == 4) { + continue; + } + try { + $media_ids[] = twitter_upload_image($connection, $cb, $image, $b); + } catch (\Throwable $th) { + Logger::warning('Error while uploading image', ['code' => $th->getCode(), 'message' => $th->getMessage()]); } } $post['media_ids'] = implode(',', $media_ids); @@ -888,6 +881,39 @@ function twitter_post_hook(App $a, array &$b) } } +function twitter_upload_image($connection, $cb, array $image, array $item) +{ + if (!empty($image['id'])) { + $photo = Photo::selectFirst([], ['id' => $image['id']]); + } else { + $photo = Photo::createPhotoForExternalResource($image['url']); + } + + $tempfile = tempnam(System::getTempPath(), 'cache'); + file_put_contents($tempfile, Photo::getImageForPhoto($photo)); + + Logger::info('Uploading', ['id' => $item['id'], 'image' => $image]); + $media = $connection->upload('media/upload', ['media' => $tempfile]); + + unlink($tempfile); + + if (isset($media->media_id_string)) { + $media_id = $media->media_id_string; + + if (!empty($image['description'])) { + $data = ['media_id' => $media->media_id_string, + 'alt_text' => ['text' => substr($image['description'], 0, 420)]]; + $ret = $cb->media_metadata_create($data); + Logger::info('Metadata create', ['id' => $item['id'], 'data' => $data, 'return' => $ret]); + } + } else { + Logger::error('Failed upload', ['id' => $item['id'], 'image' => $image['url'], 'return' => $media]); + throw new Exception('Failed upload of ' . $image['url']); + } + + return $media_id; +} + function twitter_delete_item(array $item) { if (!$item['deleted']) { -- 2.43.0 From b1442ebfd1a215d2fc44934c599dca38509476c9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Dec 2022 14:43:30 -0500 Subject: [PATCH 03/11] [nsfw] Suppress warnings about failed regexp compilation - Add failed regexp compilation system messages on addon settings submit - Address https://github.com/friendica/friendica/issues/11992#issuecomment-1336418781 --- nsfw/lang/C/messages.po | 11 ++++++++--- nsfw/nsfw.php | 20 +++++++++++++++++--- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/nsfw/lang/C/messages.po b/nsfw/lang/C/messages.po index 150b77d3..241143e8 100644 --- a/nsfw/lang/C/messages.po +++ b/nsfw/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-18 11:57-0500\n" +"POT-Creation-Date: 2022-12-10 14:42-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -43,12 +43,17 @@ msgstr "" msgid "Content Filter (NSFW and more)" msgstr "" -#: nsfw.php:140 +#: nsfw.php:96 +#, php-format +msgid "Regular expression \"%s\" fails to compile" +msgstr "" + +#: nsfw.php:154 #, php-format msgid "Filtered tag: %s" msgstr "" -#: nsfw.php:142 +#: nsfw.php:156 #, php-format msgid "Filtered word: %s" msgstr "" diff --git a/nsfw/nsfw.php b/nsfw/nsfw.php index 31d17f74..340cae27 100644 --- a/nsfw/nsfw.php +++ b/nsfw/nsfw.php @@ -81,9 +81,23 @@ function nsfw_addon_settings_post(App $a, array &$b) } if (!empty($_POST['nsfw-submit'])) { - DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'nsfw', 'words', trim($_POST['nsfw-words'])); - $enable = (!empty($_POST['nsfw-enable']) ? intval($_POST['nsfw-enable']) : 0); + $enable = !empty($_POST['nsfw-enable']) ? intval($_POST['nsfw-enable']) : 0; $disable = 1 - $enable; + + $words = trim($_POST['nsfw-words']); + $word_list = explode(',', $words); + foreach ($word_list as $word) { + $word = trim($word); + if (!$words || $word[0] != '/') { + continue; + } + + if (@preg_match($word, '') === false) { + DI::sysmsg()->addNotice(DI::l10n()->t('Regular expression "%s" fails to compile', $word)); + }; + } + + DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'nsfw', 'words', $words); DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'nsfw', 'disable', $disable); } } @@ -118,7 +132,7 @@ function nsfw_prepare_body_content_filter(App $a, &$hook_data) $tag_search = false; switch ($word[0]) { case '/'; // Regular expression - $found = preg_match($word, $body); + $found = @preg_match($word, $body); break; case '#': // Hashtag-only search $tag_search = true; -- 2.43.0 From cab20de6d1b264fd66dc186a9267a9e85cfe7db2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Dec 2022 17:22:25 -0500 Subject: [PATCH 04/11] [twitter] Ward against missing remote_images array key - Address https://github.com/friendica/friendica/issues/11993#issuecomment-1345387060 --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 973d0a9a..04145d0a 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -783,7 +783,7 @@ function twitter_post_hook(App $a, array &$b) $post = []; if (!empty($msgarr['images']) || !empty($msgarr['remote_images'])) { - Logger::info('Got images', ['id' => $b['id'], 'images' => $msgarr['images'], 'remote_images' => $msgarr['remote_images']]); + Logger::info('Got images', ['id' => $b['id'], 'images' => $msgarr['images'] ?? [], 'remote_images' => $msgarr['remote_images'] ?? []]); try { $media_ids = []; foreach ($msgarr['images'] ?? [] as $image) { -- 2.43.0 From 6d3602f9c65b8aa4b7044ea3071c7ad369039063 Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Tue, 13 Dec 2022 15:41:53 +0000 Subject: [PATCH 05/11] 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'), ]); } -- 2.43.0 From f9661af3f706d728e13797a6d2a0d3df520959cf Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Tue, 13 Dec 2022 15:43:29 +0000 Subject: [PATCH 06/11] 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) . '

'; } } -- 2.43.0 From 139e4384b18fd75ea510a18d846e7c8677898cb3 Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Tue, 13 Dec 2022 15:47:30 +0000 Subject: [PATCH 07/11] 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) . '

'; } } -- 2.43.0 From 8878d7c9d41507cccc0dd229ce86c974221c936f Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 13 Dec 2022 17:27:40 +0000 Subject: [PATCH 08/11] 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 "" -- 2.43.0 From 802c5ca87f5d851a9be776bfc6245c1606ff6c6e Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 14 Dec 2022 07:28:16 +0000 Subject: [PATCH 09/11] deleted: superblock/lang/C/messages.po deleted: superblock/lang/ar/messages.po deleted: superblock/lang/ar/strings.php deleted: superblock/lang/ca/strings.php deleted: superblock/lang/cs/messages.po deleted: superblock/lang/cs/strings.php deleted: superblock/lang/da-dk/messages.po deleted: superblock/lang/da-dk/strings.php deleted: superblock/lang/de/messages.po deleted: superblock/lang/de/strings.php deleted: superblock/lang/en-gb/messages.po deleted: superblock/lang/en-gb/strings.php deleted: superblock/lang/en-us/messages.po deleted: superblock/lang/en-us/strings.php deleted: superblock/lang/eo/strings.php deleted: superblock/lang/es/messages.po deleted: superblock/lang/es/strings.php deleted: superblock/lang/fi-fi/messages.po deleted: superblock/lang/fi-fi/strings.php deleted: superblock/lang/fr/messages.po deleted: superblock/lang/fr/strings.php deleted: superblock/lang/hu/messages.po deleted: superblock/lang/hu/strings.php deleted: superblock/lang/is/strings.php deleted: superblock/lang/it/messages.po deleted: superblock/lang/it/strings.php deleted: superblock/lang/nb-no/strings.php deleted: superblock/lang/nl/messages.po deleted: superblock/lang/nl/strings.php deleted: superblock/lang/pl/messages.po deleted: superblock/lang/pl/strings.php deleted: superblock/lang/pt-br/messages.po deleted: superblock/lang/pt-br/strings.php deleted: superblock/lang/ro/messages.po deleted: superblock/lang/ro/strings.php deleted: superblock/lang/ru/messages.po deleted: superblock/lang/ru/strings.php deleted: superblock/lang/sv/messages.po deleted: superblock/lang/sv/strings.php deleted: superblock/lang/zh-cn/strings.php deleted: superblock/superblock.php deleted: superblock/templates/settings.tpl --- superblock/lang/C/messages.po | 30 ------ superblock/lang/ar/messages.po | 36 ------- superblock/lang/ar/strings.php | 11 --- superblock/lang/ca/strings.php | 10 -- superblock/lang/cs/messages.po | 46 --------- superblock/lang/cs/strings.php | 13 --- superblock/lang/da-dk/messages.po | 32 ------ superblock/lang/da-dk/strings.php | 10 -- superblock/lang/de/messages.po | 35 ------- superblock/lang/de/strings.php | 10 -- superblock/lang/en-gb/messages.po | 45 --------- superblock/lang/en-gb/strings.php | 13 --- superblock/lang/en-us/messages.po | 44 --------- superblock/lang/en-us/strings.php | 8 -- superblock/lang/eo/strings.php | 10 -- superblock/lang/es/messages.po | 38 -------- superblock/lang/es/strings.php | 11 --- superblock/lang/fi-fi/messages.po | 45 --------- superblock/lang/fi-fi/strings.php | 13 --- superblock/lang/fr/messages.po | 33 ------- superblock/lang/fr/strings.php | 9 -- superblock/lang/hu/messages.po | 32 ------ superblock/lang/hu/strings.php | 10 -- superblock/lang/is/strings.php | 10 -- superblock/lang/it/messages.po | 44 --------- superblock/lang/it/strings.php | 13 --- superblock/lang/nb-no/strings.php | 10 -- superblock/lang/nl/messages.po | 44 --------- superblock/lang/nl/strings.php | 11 --- superblock/lang/pl/messages.po | 33 ------- superblock/lang/pl/strings.php | 10 -- superblock/lang/pt-br/messages.po | 53 ---------- superblock/lang/pt-br/strings.php | 15 --- superblock/lang/ro/messages.po | 43 -------- superblock/lang/ro/strings.php | 13 --- superblock/lang/ru/messages.po | 44 --------- superblock/lang/ru/strings.php | 13 --- superblock/lang/sv/messages.po | 31 ------ superblock/lang/sv/strings.php | 7 -- superblock/lang/zh-cn/strings.php | 10 -- superblock/superblock.php | 156 ------------------------------ superblock/templates/settings.tpl | 1 - 42 files changed, 1105 deletions(-) delete mode 100644 superblock/lang/C/messages.po delete mode 100644 superblock/lang/ar/messages.po delete mode 100644 superblock/lang/ar/strings.php delete mode 100644 superblock/lang/ca/strings.php delete mode 100644 superblock/lang/cs/messages.po delete mode 100644 superblock/lang/cs/strings.php delete mode 100644 superblock/lang/da-dk/messages.po delete mode 100644 superblock/lang/da-dk/strings.php delete mode 100644 superblock/lang/de/messages.po delete mode 100644 superblock/lang/de/strings.php delete mode 100644 superblock/lang/en-gb/messages.po delete mode 100644 superblock/lang/en-gb/strings.php delete mode 100644 superblock/lang/en-us/messages.po delete mode 100644 superblock/lang/en-us/strings.php delete mode 100644 superblock/lang/eo/strings.php delete mode 100644 superblock/lang/es/messages.po delete mode 100644 superblock/lang/es/strings.php delete mode 100644 superblock/lang/fi-fi/messages.po delete mode 100644 superblock/lang/fi-fi/strings.php delete mode 100644 superblock/lang/fr/messages.po delete mode 100644 superblock/lang/fr/strings.php delete mode 100644 superblock/lang/hu/messages.po delete mode 100644 superblock/lang/hu/strings.php delete mode 100644 superblock/lang/is/strings.php delete mode 100644 superblock/lang/it/messages.po delete mode 100644 superblock/lang/it/strings.php delete mode 100644 superblock/lang/nb-no/strings.php delete mode 100644 superblock/lang/nl/messages.po delete mode 100644 superblock/lang/nl/strings.php delete mode 100644 superblock/lang/pl/messages.po delete mode 100644 superblock/lang/pl/strings.php delete mode 100644 superblock/lang/pt-br/messages.po delete mode 100644 superblock/lang/pt-br/strings.php delete mode 100644 superblock/lang/ro/messages.po delete mode 100644 superblock/lang/ro/strings.php delete mode 100644 superblock/lang/ru/messages.po delete mode 100644 superblock/lang/ru/strings.php delete mode 100644 superblock/lang/sv/messages.po delete mode 100644 superblock/lang/sv/strings.php delete mode 100644 superblock/lang/zh-cn/strings.php delete mode 100644 superblock/superblock.php delete mode 100644 superblock/templates/settings.tpl diff --git a/superblock/lang/C/messages.po b/superblock/lang/C/messages.po deleted file mode 100644 index 6c09db62..00000000 --- a/superblock/lang/C/messages.po +++ /dev/null @@ -1,30 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "" - -#: superblock.php:40 -msgid "Superblock" -msgstr "" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "" diff --git a/superblock/lang/ar/messages.po b/superblock/lang/ar/messages.po deleted file mode 100644 index cdc8dccd..00000000 --- a/superblock/lang/ar/messages.po +++ /dev/null @@ -1,36 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Farida Khalaf , 2021 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-01 18:15+0100\n" -"PO-Revision-Date: 2021-02-20 05:33+0000\n" -"Last-Translator: Farida Khalaf \n" -"Language-Team: Arabic (http://www.transifex.com/Friendica/friendica/language/ar/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: ar\n" -"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" - -#: superblock.php:38 superblock.php:42 -msgid "Superblock" -msgstr "حظر تام" - -#: superblock.php:45 -msgid "Comma separated profile URLS to block" -msgstr "عناوين URL للملف الشخصي مفصولة بفاصلة للحظر" - -#: superblock.php:49 -msgid "Save Settings" -msgstr "حفظ الإعدادات" - -#: superblock.php:138 -msgid "Block Completely" -msgstr "حظر كامل" diff --git a/superblock/lang/ar/strings.php b/superblock/lang/ar/strings.php deleted file mode 100644 index e960610d..00000000 --- a/superblock/lang/ar/strings.php +++ /dev/null @@ -1,11 +0,0 @@ -=3 && $n%100<=10) { return 3; } else if ($n%100>=11 && $n%100<=99) { return 4; } else { return 5; } -}} -$a->strings['Superblock'] = 'حظر تام'; -$a->strings['Comma separated profile URLS to block'] = 'عناوين URL للملف الشخصي مفصولة بفاصلة للحظر'; -$a->strings['Save Settings'] = 'حفظ الإعدادات'; -$a->strings['Block Completely'] = 'حظر كامل'; diff --git a/superblock/lang/ca/strings.php b/superblock/lang/ca/strings.php deleted file mode 100644 index 5587acd2..00000000 --- a/superblock/lang/ca/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["\"Blockem\" Settings"] = "Configuració de \"Bloqueig\""; -$a->strings["Comma separated profile URLS to block"] = "URLS dels perfils a bloquejar, separats per comes"; -$a->strings["Submit"] = "Enviar"; -$a->strings["BLOCKEM Settings saved."] = "Guardada la configuració de BLOQUEIG."; -$a->strings["Blocked %s - Click to open/close"] = "Bloquejar %s - Clica per obrir/tancar"; -$a->strings["Unblock Author"] = "Desbloquejar Autor"; -$a->strings["Block Author"] = "Bloquejar Autor"; -$a->strings["blockem settings updated"] = "Actualitzar la Configuració de bloqueig"; diff --git a/superblock/lang/cs/messages.po b/superblock/lang/cs/messages.po deleted file mode 100644 index da74f389..00000000 --- a/superblock/lang/cs/messages.po +++ /dev/null @@ -1,46 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Aditoo, 2018 -# Aditoo, 2018 -# michal_s , 2014 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-17 10:25+0200\n" -"PO-Revision-Date: 2018-08-18 12:27+0000\n" -"Last-Translator: Aditoo\n" -"Language-Team: Czech (http://www.transifex.com/Friendica/friendica/language/cs/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: cs\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" - -#: superblock.php:47 superblock.php:51 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:54 -msgid "Comma separated profile URLS to block" -msgstr "Čárkou oddělené URL adresy profilů určených k ignorování" - -#: superblock.php:58 -msgid "Save Settings" -msgstr "Uložit nastavení" - -#: superblock.php:71 -msgid "SUPERBLOCK Settings saved." -msgstr "Nastavení SUPERBLOCK uložena" - -#: superblock.php:144 -msgid "Block Completely" -msgstr "Zablokovat úplně" - -#: superblock.php:165 -msgid "superblock settings updated" -msgstr "nastavení superblock aktualizována" diff --git a/superblock/lang/cs/strings.php b/superblock/lang/cs/strings.php deleted file mode 100644 index 2d19a3c1..00000000 --- a/superblock/lang/cs/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; } -}} -$a->strings['Superblock'] = 'Superblock'; -$a->strings['Comma separated profile URLS to block'] = 'Čárkou oddělené URL adresy profilů určených k ignorování'; -$a->strings['Save Settings'] = 'Uložit nastavení'; -$a->strings['SUPERBLOCK Settings saved.'] = 'Nastavení SUPERBLOCK uložena'; -$a->strings['Block Completely'] = 'Zablokovat úplně'; -$a->strings['superblock settings updated'] = 'nastavení superblock aktualizována'; diff --git a/superblock/lang/da-dk/messages.po b/superblock/lang/da-dk/messages.po deleted file mode 100644 index ecfa5b6c..00000000 --- a/superblock/lang/da-dk/messages.po +++ /dev/null @@ -1,32 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Anton , 2022 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: 2014-06-23 12:55+0000\n" -"Last-Translator: Anton , 2022\n" -"Language-Team: Danish (Denmark) (http://www.transifex.com/Friendica/friendica/language/da_DK/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: da_DK\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "Kommasepareret liste over profil-URL'er som skal blokeres" - -#: superblock.php:40 -msgid "Superblock" -msgstr "Superblokér" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "Blokér fuldstændigt" diff --git a/superblock/lang/da-dk/strings.php b/superblock/lang/da-dk/strings.php deleted file mode 100644 index 6db2e7c4..00000000 --- a/superblock/lang/da-dk/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings['Comma separated profile URLs to block'] = 'Kommasepareret liste over profil-URL\'er som skal blokeres'; -$a->strings['Superblock'] = 'Superblokér'; -$a->strings['Block Completely'] = 'Blokér fuldstændigt'; diff --git a/superblock/lang/de/messages.po b/superblock/lang/de/messages.po deleted file mode 100644 index 66c25056..00000000 --- a/superblock/lang/de/messages.po +++ /dev/null @@ -1,35 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Andreas H., 2018 -# Tobias Diekershoff , 2014-2015 -# Tobias Diekershoff , 2017-2018,2022 -# Ulf Rompe , 2019 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: 2022-01-22 17:42+0000\n" -"Last-Translator: Tobias Diekershoff \n" -"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: de\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "Profil-URLs, die geblockt werden sollen (durch Kommas getrennt)" - -#: superblock.php:40 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "Vollständig blockieren" diff --git a/superblock/lang/de/strings.php b/superblock/lang/de/strings.php deleted file mode 100644 index 13e7b9c0..00000000 --- a/superblock/lang/de/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings['Comma separated profile URLs to block'] = 'Profil-URLs, die geblockt werden sollen (durch Kommas getrennt)'; -$a->strings['Superblock'] = 'Superblock'; -$a->strings['Block Completely'] = 'Vollständig blockieren'; diff --git a/superblock/lang/en-gb/messages.po b/superblock/lang/en-gb/messages.po deleted file mode 100644 index 473eea86..00000000 --- a/superblock/lang/en-gb/messages.po +++ /dev/null @@ -1,45 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Andy H3 , 2019 -# Kris, 2018 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-17 10:25+0200\n" -"PO-Revision-Date: 2019-06-05 14:43+0000\n" -"Last-Translator: Andy H3 \n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/Friendica/friendica/language/en_GB/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: en_GB\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:47 superblock.php:51 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:54 -msgid "Comma separated profile URLS to block" -msgstr "Profile URLs to block (separated by commas)" - -#: superblock.php:58 -msgid "Save Settings" -msgstr "Save settings" - -#: superblock.php:71 -msgid "SUPERBLOCK Settings saved." -msgstr "Superblock settings saved." - -#: superblock.php:144 -msgid "Block Completely" -msgstr "Block completely" - -#: superblock.php:165 -msgid "superblock settings updated" -msgstr "Superblock settings updated" diff --git a/superblock/lang/en-gb/strings.php b/superblock/lang/en-gb/strings.php deleted file mode 100644 index 2d8d25de..00000000 --- a/superblock/lang/en-gb/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -strings['Superblock'] = 'Superblock'; -$a->strings['Comma separated profile URLS to block'] = 'Profile URLs to block (separated by commas)'; -$a->strings['Save Settings'] = 'Save settings'; -$a->strings['SUPERBLOCK Settings saved.'] = 'Superblock settings saved.'; -$a->strings['Block Completely'] = 'Block completely'; -$a->strings['superblock settings updated'] = 'Superblock settings updated'; diff --git a/superblock/lang/en-us/messages.po b/superblock/lang/en-us/messages.po deleted file mode 100644 index c184cba8..00000000 --- a/superblock/lang/en-us/messages.po +++ /dev/null @@ -1,44 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# R C , 2018 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-21 08:45+0200\n" -"PO-Revision-Date: 2018-06-13 02:39+0000\n" -"Last-Translator: R C \n" -"Language-Team: English (United States) (http://www.transifex.com/Friendica/friendica/language/en_US/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: en_US\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:53 superblock.php:57 -msgid "\"Superblock\"" -msgstr "" - -#: superblock.php:60 -msgid "Comma separated profile URLS to block" -msgstr "Comma-separated profile URLs to block" - -#: superblock.php:64 -msgid "Save Settings" -msgstr "" - -#: superblock.php:76 -msgid "SUPERBLOCK Settings saved." -msgstr "" - -#: superblock.php:148 -msgid "Block Completely" -msgstr "" - -#: superblock.php:168 -msgid "superblock settings updated" -msgstr "" diff --git a/superblock/lang/en-us/strings.php b/superblock/lang/en-us/strings.php deleted file mode 100644 index a4d22d85..00000000 --- a/superblock/lang/en-us/strings.php +++ /dev/null @@ -1,8 +0,0 @@ -strings['Comma separated profile URLS to block'] = 'Comma-separated profile URLs to block'; diff --git a/superblock/lang/eo/strings.php b/superblock/lang/eo/strings.php deleted file mode 100644 index b6116507..00000000 --- a/superblock/lang/eo/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["\"Blockem\" Settings"] = "\"Blockem\" Agordoj"; -$a->strings["Comma separated profile URLS to block"] = "Blokotaj URL adresoj, disigita per komo"; -$a->strings["Submit"] = "Sendi"; -$a->strings["BLOCKEM Settings saved."] = "Konservis Agordojn de BLOCKEM."; -$a->strings["Blocked %s - Click to open/close"] = "%s blokita - Klaku por malfermi/fermi"; -$a->strings["Unblock Author"] = "Malbloki Aŭtoron"; -$a->strings["Block Author"] = "Bloki Aŭtoron"; -$a->strings["blockem settings updated"] = "Ĝisdatigis la blockem agordojn"; diff --git a/superblock/lang/es/messages.po b/superblock/lang/es/messages.po deleted file mode 100644 index 555a945f..00000000 --- a/superblock/lang/es/messages.po +++ /dev/null @@ -1,38 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Albert, 2016-2017 -# juanman , 2017 -# Senex Petrovic , 2021 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-02-01 18:15+0100\n" -"PO-Revision-Date: 2021-04-06 02:09+0000\n" -"Last-Translator: Senex Petrovic \n" -"Language-Team: Spanish (http://www.transifex.com/Friendica/friendica/language/es/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: es\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:38 superblock.php:42 -msgid "Superblock" -msgstr "Soperbloquéo" - -#: superblock.php:45 -msgid "Comma separated profile URLS to block" -msgstr "Perfil de URLS a bloque separado por comas" - -#: superblock.php:49 -msgid "Save Settings" -msgstr "Guardar configuración" - -#: superblock.php:138 -msgid "Block Completely" -msgstr "Bloquear completamente" diff --git a/superblock/lang/es/strings.php b/superblock/lang/es/strings.php deleted file mode 100644 index 63c63e33..00000000 --- a/superblock/lang/es/strings.php +++ /dev/null @@ -1,11 +0,0 @@ -strings['Superblock'] = 'Soperbloquéo'; -$a->strings['Comma separated profile URLS to block'] = 'Perfil de URLS a bloque separado por comas'; -$a->strings['Save Settings'] = 'Guardar configuración'; -$a->strings['Block Completely'] = 'Bloquear completamente'; diff --git a/superblock/lang/fi-fi/messages.po b/superblock/lang/fi-fi/messages.po deleted file mode 100644 index 6b673e09..00000000 --- a/superblock/lang/fi-fi/messages.po +++ /dev/null @@ -1,45 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Kris, 2018 -# Kris, 2018 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-21 08:45+0200\n" -"PO-Revision-Date: 2018-04-16 16:00+0000\n" -"Last-Translator: Kris\n" -"Language-Team: Finnish (Finland) (http://www.transifex.com/Friendica/friendica/language/fi_FI/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: fi_FI\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:53 superblock.php:57 -msgid "\"Superblock\"" -msgstr "\"Superblock\"" - -#: superblock.php:60 -msgid "Comma separated profile URLS to block" -msgstr "Estettävien profiilien URL-osoitteet pilkulla erotettuina" - -#: superblock.php:64 -msgid "Save Settings" -msgstr "Tallenna asetukset" - -#: superblock.php:76 -msgid "SUPERBLOCK Settings saved." -msgstr "Superblock -asetukset tallennettu." - -#: superblock.php:148 -msgid "Block Completely" -msgstr "Estä kokonaan" - -#: superblock.php:168 -msgid "superblock settings updated" -msgstr "superblock -asetukset päivitetty" diff --git a/superblock/lang/fi-fi/strings.php b/superblock/lang/fi-fi/strings.php deleted file mode 100644 index 289f33b0..00000000 --- a/superblock/lang/fi-fi/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -strings['"Superblock"'] = '"Superblock"'; -$a->strings['Comma separated profile URLS to block'] = 'Estettävien profiilien URL-osoitteet pilkulla erotettuina'; -$a->strings['Save Settings'] = 'Tallenna asetukset'; -$a->strings['SUPERBLOCK Settings saved.'] = 'Superblock -asetukset tallennettu.'; -$a->strings['Block Completely'] = 'Estä kokonaan'; -$a->strings['superblock settings updated'] = 'superblock -asetukset päivitetty'; diff --git a/superblock/lang/fr/messages.po b/superblock/lang/fr/messages.po deleted file mode 100644 index 0c15b587..00000000 --- a/superblock/lang/fr/messages.po +++ /dev/null @@ -1,33 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# ButterflyOfFire, 2020 -# Hypolite Petovan , 2022 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: 2014-06-23 12:55+0000\n" -"Last-Translator: Hypolite Petovan , 2022\n" -"Language-Team: French (http://www.transifex.com/Friendica/friendica/language/fr/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: fr\n" -"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "Liste d'URLs de profils à bloquer séparées par des virgules" - -#: superblock.php:40 -msgid "Superblock" -msgstr "" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "Bloquer complètement" diff --git a/superblock/lang/fr/strings.php b/superblock/lang/fr/strings.php deleted file mode 100644 index 8360d3ab..00000000 --- a/superblock/lang/fr/strings.php +++ /dev/null @@ -1,9 +0,0 @@ -strings['Comma separated profile URLs to block'] = 'Liste d\'URLs de profils à bloquer séparées par des virgules'; -$a->strings['Block Completely'] = 'Bloquer complètement'; diff --git a/superblock/lang/hu/messages.po b/superblock/lang/hu/messages.po deleted file mode 100644 index 239bb76e..00000000 --- a/superblock/lang/hu/messages.po +++ /dev/null @@ -1,32 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Balázs Úr, 2020-2021 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: 2021-12-23 19:29+0000\n" -"Last-Translator: Balázs Úr\n" -"Language-Team: Hungarian (http://www.transifex.com/Friendica/friendica/language/hu/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: hu\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "Tiltandó profil URL-ek vesszővel elválasztott listája" - -#: superblock.php:40 -msgid "Superblock" -msgstr "Szuper tiltás" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "Tiltás teljesen" diff --git a/superblock/lang/hu/strings.php b/superblock/lang/hu/strings.php deleted file mode 100644 index 19e364f4..00000000 --- a/superblock/lang/hu/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings['Comma separated profile URLs to block'] = 'Tiltandó profil URL-ek vesszővel elválasztott listája'; -$a->strings['Superblock'] = 'Szuper tiltás'; -$a->strings['Block Completely'] = 'Tiltás teljesen'; diff --git a/superblock/lang/is/strings.php b/superblock/lang/is/strings.php deleted file mode 100644 index 3075c457..00000000 --- a/superblock/lang/is/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["\"Blockem\" Settings"] = "\"Blockem\" stillingar"; -$a->strings["Comma separated profile URLS to block"] = "Banna lista af forsíðum (komma á milli)"; -$a->strings["Submit"] = "Senda inn"; -$a->strings["BLOCKEM Settings saved."] = "BLOCKEM stillingar vistaðar."; -$a->strings["Blocked %s - Click to open/close"] = "%s sett í straff - Smella til að taka úr/setja á"; -$a->strings["Unblock Author"] = "Leyfa notanda"; -$a->strings["Block Author"] = "Banna notanda"; -$a->strings["blockem settings updated"] = ""; diff --git a/superblock/lang/it/messages.po b/superblock/lang/it/messages.po deleted file mode 100644 index 7ae6de27..00000000 --- a/superblock/lang/it/messages.po +++ /dev/null @@ -1,44 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# fabrixxm , 2014-2015,2017,2019 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-17 10:25+0200\n" -"PO-Revision-Date: 2019-03-11 14:21+0000\n" -"Last-Translator: fabrixxm \n" -"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: it\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:47 superblock.php:51 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:54 -msgid "Comma separated profile URLS to block" -msgstr "Lista, separata da virgola, di indirizzi di profili da bloccare" - -#: superblock.php:58 -msgid "Save Settings" -msgstr "Salva Impostazioni" - -#: superblock.php:71 -msgid "SUPERBLOCK Settings saved." -msgstr "Impostazioni \"Superblocco\" salvate." - -#: superblock.php:144 -msgid "Block Completely" -msgstr "Blocca Completamente" - -#: superblock.php:165 -msgid "superblock settings updated" -msgstr "impostazioni \"superblocco\" aggiornate." diff --git a/superblock/lang/it/strings.php b/superblock/lang/it/strings.php deleted file mode 100644 index bd886d74..00000000 --- a/superblock/lang/it/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -strings['Superblock'] = 'Superblock'; -$a->strings['Comma separated profile URLS to block'] = 'Lista, separata da virgola, di indirizzi di profili da bloccare'; -$a->strings['Save Settings'] = 'Salva Impostazioni'; -$a->strings['SUPERBLOCK Settings saved.'] = 'Impostazioni "Superblocco" salvate.'; -$a->strings['Block Completely'] = 'Blocca Completamente'; -$a->strings['superblock settings updated'] = 'impostazioni "superblocco" aggiornate.'; diff --git a/superblock/lang/nb-no/strings.php b/superblock/lang/nb-no/strings.php deleted file mode 100644 index 0dd6660d..00000000 --- a/superblock/lang/nb-no/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -strings["\"Blockem\" Settings"] = ""; -$a->strings["Comma separated profile URLS to block"] = ""; -$a->strings["Submit"] = "Lagre"; -$a->strings["BLOCKEM Settings saved."] = ""; -$a->strings["Blocked %s - Click to open/close"] = ""; -$a->strings["Unblock Author"] = ""; -$a->strings["Block Author"] = ""; -$a->strings["blockem settings updated"] = ""; diff --git a/superblock/lang/nl/messages.po b/superblock/lang/nl/messages.po deleted file mode 100644 index 4f19d88d..00000000 --- a/superblock/lang/nl/messages.po +++ /dev/null @@ -1,44 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Jeroen De Meerleer , 2018 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-17 10:25+0200\n" -"PO-Revision-Date: 2018-08-24 13:51+0000\n" -"Last-Translator: Jeroen De Meerleer \n" -"Language-Team: Dutch (http://www.transifex.com/Friendica/friendica/language/nl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: nl\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:47 superblock.php:51 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:54 -msgid "Comma separated profile URLS to block" -msgstr "" - -#: superblock.php:58 -msgid "Save Settings" -msgstr "Instellingen opslaan" - -#: superblock.php:71 -msgid "SUPERBLOCK Settings saved." -msgstr "SUPERBLOCK instellingen opgeslagen" - -#: superblock.php:144 -msgid "Block Completely" -msgstr "" - -#: superblock.php:165 -msgid "superblock settings updated" -msgstr "Superblock instellingen opgeslagen" diff --git a/superblock/lang/nl/strings.php b/superblock/lang/nl/strings.php deleted file mode 100644 index fa857a92..00000000 --- a/superblock/lang/nl/strings.php +++ /dev/null @@ -1,11 +0,0 @@ -strings['Superblock'] = 'Superblock'; -$a->strings['Save Settings'] = 'Instellingen opslaan'; -$a->strings['SUPERBLOCK Settings saved.'] = 'SUPERBLOCK instellingen opgeslagen'; -$a->strings['superblock settings updated'] = 'Superblock instellingen opgeslagen'; diff --git a/superblock/lang/pl/messages.po b/superblock/lang/pl/messages.po deleted file mode 100644 index 5c85c986..00000000 --- a/superblock/lang/pl/messages.po +++ /dev/null @@ -1,33 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Piotr Strębski , 2022 -# Waldemar Stoczkowski, 2018 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: 2014-06-23 12:55+0000\n" -"Last-Translator: Piotr Strębski , 2022\n" -"Language-Team: Polish (http://www.transifex.com/Friendica/friendica/language/pl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "Oddzielone przecinkami adresy URL profilów do zablokowania" - -#: superblock.php:40 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "Całkowicie zablokuj" diff --git a/superblock/lang/pl/strings.php b/superblock/lang/pl/strings.php deleted file mode 100644 index 2a463bd8..00000000 --- a/superblock/lang/pl/strings.php +++ /dev/null @@ -1,10 +0,0 @@ -=2 && $n%10<=4) && ($n%100<12 || $n%100>14)) { return 1; } else if ($n!=1 && ($n%10>=0 && $n%10<=1) || ($n%10>=5 && $n%10<=9) || ($n%100>=12 && $n%100<=14)) { return 2; } else { return 3; } -}} -$a->strings['Comma separated profile URLs to block'] = 'Oddzielone przecinkami adresy URL profilów do zablokowania'; -$a->strings['Superblock'] = 'Superblock'; -$a->strings['Block Completely'] = 'Całkowicie zablokuj'; diff --git a/superblock/lang/pt-br/messages.po b/superblock/lang/pt-br/messages.po deleted file mode 100644 index 578f62b3..00000000 --- a/superblock/lang/pt-br/messages.po +++ /dev/null @@ -1,53 +0,0 @@ -# ADDON blockem -# Copyright (C) -# This file is distributed under the same license as the Friendica blockem addon package. -# -# -# Translators: -# Beatriz Vital , 2016 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-02-27 05:01-0500\n" -"PO-Revision-Date: 2016-08-16 12:51+0000\n" -"Last-Translator: Beatriz Vital \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/Friendica/friendica/language/pt_BR/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: blockem.php:51 -msgid "\"Blockem\" Settings" -msgstr "Configurações do \"Blockem\"" - -#: blockem.php:53 -msgid "Comma separated profile URLS to block" -msgstr "URLs de perfis a serem bloqueados, separados por vírgulas" - -#: blockem.php:57 -msgid "Submit" -msgstr "Enviar" - -#: blockem.php:70 -msgid "BLOCKEM Settings saved." -msgstr "As configurações do Blockem foram salvas." - -#: blockem.php:105 -#, php-format -msgid "Blocked %s - Click to open/close" -msgstr "Bloqueou %s - Clique para abrir/fechar" - -#: blockem.php:160 -msgid "Unblock Author" -msgstr "Desbloquear autor" - -#: blockem.php:162 -msgid "Block Author" -msgstr "Bloquear autor" - -#: blockem.php:194 -msgid "blockem settings updated" -msgstr "As configurações do Blockem foram atualizadas." diff --git a/superblock/lang/pt-br/strings.php b/superblock/lang/pt-br/strings.php deleted file mode 100644 index 71cfc762..00000000 --- a/superblock/lang/pt-br/strings.php +++ /dev/null @@ -1,15 +0,0 @@ - 1); -}} -$a->strings['"Blockem" Settings'] = 'Configurações do "Blockem"'; -$a->strings['Comma separated profile URLS to block'] = 'URLs de perfis a serem bloqueados, separados por vírgulas'; -$a->strings['Submit'] = 'Enviar'; -$a->strings['BLOCKEM Settings saved.'] = 'As configurações do Blockem foram salvas.'; -$a->strings['Blocked %s - Click to open/close'] = 'Bloqueou %s - Clique para abrir/fechar'; -$a->strings['Unblock Author'] = 'Desbloquear autor'; -$a->strings['Block Author'] = 'Bloquear autor'; -$a->strings['blockem settings updated'] = 'As configurações do Blockem foram atualizadas.'; diff --git a/superblock/lang/ro/messages.po b/superblock/lang/ro/messages.po deleted file mode 100644 index 1959c7d0..00000000 --- a/superblock/lang/ro/messages.po +++ /dev/null @@ -1,43 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-06-23 14:45+0200\n" -"PO-Revision-Date: 2014-07-08 12:08+0000\n" -"Last-Translator: Arian - Cazare Muncitori \n" -"Language-Team: Romanian (Romania) (http://www.transifex.com/projects/p/friendica/language/ro_RO/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: ro_RO\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" - -#: superblock.php:52 -msgid "\"Superblock\" Settings" -msgstr "Configurări \"Superblock\"" - -#: superblock.php:54 -msgid "Comma separated profile URLS to block" -msgstr "Adresele URL de profil, de blocat, separate prin virgulă" - -#: superblock.php:58 -msgid "Save Settings" -msgstr "Salvare Configurări" - -#: superblock.php:71 -msgid "SUPERBLOCK Settings saved." -msgstr "Configurările SUPERBLOCK au fost salvate." - -#: superblock.php:143 -msgid "Block Completely" -msgstr "Blocare Completă" - -#: superblock.php:163 -msgid "superblock settings updated" -msgstr "Configurările superblock au fost actualizate" diff --git a/superblock/lang/ro/strings.php b/superblock/lang/ro/strings.php deleted file mode 100644 index d6c22234..00000000 --- a/superblock/lang/ro/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -19)||(($n%100==0)&&($n!=0)))) { return 2; } else { return 1; } -}} -$a->strings['"Superblock" Settings'] = 'Configurări "Superblock"'; -$a->strings['Comma separated profile URLS to block'] = 'Adresele URL de profil, de blocat, separate prin virgulă'; -$a->strings['Save Settings'] = 'Salvare Configurări'; -$a->strings['SUPERBLOCK Settings saved.'] = 'Configurările SUPERBLOCK au fost salvate.'; -$a->strings['Block Completely'] = 'Blocare Completă'; -$a->strings['superblock settings updated'] = 'Configurările superblock au fost actualizate'; diff --git a/superblock/lang/ru/messages.po b/superblock/lang/ru/messages.po deleted file mode 100644 index c57686bc..00000000 --- a/superblock/lang/ru/messages.po +++ /dev/null @@ -1,44 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -# Alexander An , 2020 -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-08-17 10:25+0200\n" -"PO-Revision-Date: 2020-04-23 14:10+0000\n" -"Last-Translator: Alexander An \n" -"Language-Team: Russian (http://www.transifex.com/Friendica/friendica/language/ru/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: ru\n" -"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" - -#: superblock.php:47 superblock.php:51 -msgid "Superblock" -msgstr "Superblock" - -#: superblock.php:54 -msgid "Comma separated profile URLS to block" -msgstr "Ссылки на блокируемые профили через запятую" - -#: superblock.php:58 -msgid "Save Settings" -msgstr "Сохранить настройки" - -#: superblock.php:71 -msgid "SUPERBLOCK Settings saved." -msgstr "Настройки Superblock сохранены" - -#: superblock.php:144 -msgid "Block Completely" -msgstr "Заблокировать совсем" - -#: superblock.php:165 -msgid "superblock settings updated" -msgstr "настройки superblock обновлены" diff --git a/superblock/lang/ru/strings.php b/superblock/lang/ru/strings.php deleted file mode 100644 index 03b9a651..00000000 --- a/superblock/lang/ru/strings.php +++ /dev/null @@ -1,13 +0,0 @@ -=2 && $n%10<=4 && ($n%100<12 || $n%100>14)) { return 1; } else if ($n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)) { return 2; } else { return 3; } -}} -$a->strings['Superblock'] = 'Superblock'; -$a->strings['Comma separated profile URLS to block'] = 'Ссылки на блокируемые профили через запятую'; -$a->strings['Save Settings'] = 'Сохранить настройки'; -$a->strings['SUPERBLOCK Settings saved.'] = 'Настройки Superblock сохранены'; -$a->strings['Block Completely'] = 'Заблокировать совсем'; -$a->strings['superblock settings updated'] = 'настройки superblock обновлены'; diff --git a/superblock/lang/sv/messages.po b/superblock/lang/sv/messages.po deleted file mode 100644 index 68e81842..00000000 --- a/superblock/lang/sv/messages.po +++ /dev/null @@ -1,31 +0,0 @@ -# ADDON superblock -# Copyright (C) -# This file is distributed under the same license as the Friendica superblock addon package. -# -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: friendica\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 19:16-0500\n" -"PO-Revision-Date: 2021-12-22 16:24+0000\n" -"Last-Translator: Transifex Bot <>\n" -"Language-Team: Swedish (http://www.transifex.com/Friendica/friendica/language/sv/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: sv\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: superblock.php:35 -msgid "Comma separated profile URLs to block" -msgstr "" - -#: superblock.php:40 -msgid "Superblock" -msgstr "" - -#: superblock.php:129 -msgid "Block Completely" -msgstr "" diff --git a/superblock/lang/sv/strings.php b/superblock/lang/sv/strings.php deleted file mode 100644 index 72e9772f..00000000 --- a/superblock/lang/sv/strings.php +++ /dev/null @@ -1,7 +0,0 @@ -strings["\"Blockem\" Settings"] = "「Blockem」配置"; -$a->strings["Comma separated profile URLS to block"] = "逗号分简介URL为栏"; -$a->strings["Submit"] = "提交"; -$a->strings["BLOCKEM Settings saved."] = "「Blockem」配置保存了。"; -$a->strings["Blocked %s - Click to open/close"] = "%s拦了-点击为开关"; -$a->strings["Unblock Author"] = "不拦作家"; -$a->strings["Block Author"] = "拦作家"; -$a->strings["blockem settings updated"] = "blockem设置更新了"; diff --git a/superblock/superblock.php b/superblock/superblock.php deleted file mode 100644 index c1a14111..00000000 --- a/superblock/superblock.php +++ /dev/null @@ -1,156 +0,0 @@ - - * - */ - -use Friendica\App; -use Friendica\Core\Hook; -use Friendica\Core\Renderer; -use Friendica\DI; -use Friendica\Util\Strings; - -function superblock_install() -{ - Hook::register('addon_settings', 'addon/superblock/superblock.php', 'superblock_addon_settings'); - Hook::register('addon_settings_post', 'addon/superblock/superblock.php', 'superblock_addon_settings_post'); - Hook::register('conversation_start', 'addon/superblock/superblock.php', 'superblock_conversation_start'); - Hook::register('item_photo_menu', 'addon/superblock/superblock.php', 'superblock_item_photo_menu'); - Hook::register('enotify_store', 'addon/superblock/superblock.php', 'superblock_enotify_store'); -} - -function superblock_addon_settings(App &$a, array &$data) -{ - if (!DI::userSession()->getLocalUserId()) { - return; - } - - $blocked = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'blocked', ''); - - $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/superblock/'); - $html = Renderer::replaceMacros($t, [ - '$urls' => ['superblock-words', DI::l10n()->t('Comma separated profile URLs to block'), $blocked], - ]); - - $data = [ - 'addon' => 'superblock', - 'title' => DI::l10n()->t('Superblock'), - 'html' => $html, - ]; -} - -function superblock_addon_settings_post(App $a, array &$b) -{ - if (!DI::userSession()->getLocalUserId()) { - return; - } - - if (!empty($_POST['superblock-submit'])) { - DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'system', 'blocked',trim($_POST['superblock-words'])); - } -} - -function superblock_enotify_store(App $a, array &$b) -{ - if (empty($b['uid'])) { - return; - } - - $words = DI::pConfig()->get($b['uid'], 'system', 'blocked'); - if ($words) { - $arr = explode(',', $words); - } else { - return; - } - - $found = false; - if (count($arr)) { - foreach ($arr as $word) { - if (!strlen(trim($word))) { - continue; - } - - if (Strings::compareLink($b['url'], $word)) { - $found = true; - break; - } - } - } - - if ($found) { - // Empty out the fields - $b = []; - } -} - - -function superblock_conversation_start(App $a, array &$b) -{ - if (!DI::userSession()->getLocalUserId()) { - return; - } - - $words = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'blocked'); - if ($words) { - $a->data['superblock'] = explode(',', $words); - } - - DI::page()['htmlhead'] .= <<< EOT - -EOT; - -} - -function superblock_item_photo_menu(App $a, array &$b) -{ - if (!DI::userSession()->getLocalUserId() || $b['item']['self']) { - return; - } - - $blocked = false; - $author = $b['item']['author-link']; - if (!empty($a->data['superblock'])) { - foreach ($a->data['superblock'] as $bloke) { - if (Strings::compareLink($bloke, $author)) { - $blocked = true; - break; - } - } - } - - $b['menu'][DI::l10n()->t('Block Completely')] = 'javascript:superblockBlock(\'' . $author . '\'); return false;'; -} - -/** - * This is a statement rather than an actual function definition. The simple - * existence of this method is checked to figure out if the addon offers a - * module. - */ -function superblock_module() {} - -function superblock_init(App $a) -{ - if (!DI::userSession()->getLocalUserId()) { - return; - } - - $words = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'blocked'); - - if (array_key_exists('block', $_GET) && $_GET['block']) { - if (strlen($words)) - $words .= ','; - $words .= trim($_GET['block']); - } - - DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'system', 'blocked', $words); - exit(); -} diff --git a/superblock/templates/settings.tpl b/superblock/templates/settings.tpl deleted file mode 100644 index 113588e3..00000000 --- a/superblock/templates/settings.tpl +++ /dev/null @@ -1 +0,0 @@ -{{include file="field_textarea.tpl" field=$urls}} -- 2.43.0 From b6a384ce0b2c66c32896be33a7a20369530c7b33 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 14 Dec 2022 13:38:47 +0000 Subject: [PATCH 10/11] deleted: namethingy/namethingy.php deleted: windowsphonepush/lang/C/messages.po deleted: windowsphonepush/lang/ar/messages.po deleted: windowsphonepush/lang/ar/strings.php deleted: windowsphonepush/lang/cs/messages.po deleted: windowsphonepush/lang/cs/strings.php deleted: windowsphonepush/lang/da-dk/messages.po deleted: windowsphonepush/lang/da-dk/strings.php deleted: windowsphonepush/lang/de/messages.po deleted: windowsphonepush/lang/de/strings.php deleted: windowsphonepush/lang/es/messages.po deleted: windowsphonepush/lang/es/strings.php deleted: windowsphonepush/lang/fi-fi/messages.po deleted: windowsphonepush/lang/fi-fi/strings.php deleted: windowsphonepush/lang/fr/messages.po deleted: windowsphonepush/lang/fr/strings.php deleted: windowsphonepush/lang/hu/messages.po deleted: windowsphonepush/lang/hu/strings.php deleted: windowsphonepush/lang/it/messages.po deleted: windowsphonepush/lang/it/strings.php deleted: windowsphonepush/lang/nl/messages.po deleted: windowsphonepush/lang/nl/strings.php deleted: windowsphonepush/lang/pl/messages.po deleted: windowsphonepush/lang/pl/strings.php deleted: windowsphonepush/lang/ro/messages.po deleted: windowsphonepush/lang/ro/strings.php deleted: windowsphonepush/lang/sv/messages.po deleted: windowsphonepush/lang/sv/strings.php deleted: windowsphonepush/lang/zh-cn/messages.po deleted: windowsphonepush/lang/zh-cn/strings.php deleted: windowsphonepush/templates/settings.tpl deleted: windowsphonepush/windowsphonepush.php --- namethingy/namethingy.php | 42 --- windowsphonepush/lang/C/messages.po | 34 -- windowsphonepush/lang/ar/messages.po | 36 -- windowsphonepush/lang/ar/strings.php | 11 - windowsphonepush/lang/cs/messages.po | 40 --- windowsphonepush/lang/cs/strings.php | 12 - windowsphonepush/lang/da-dk/messages.po | 36 -- windowsphonepush/lang/da-dk/strings.php | 11 - windowsphonepush/lang/de/messages.po | 38 -- windowsphonepush/lang/de/strings.php | 11 - windowsphonepush/lang/es/messages.po | 37 -- windowsphonepush/lang/es/strings.php | 11 - windowsphonepush/lang/fi-fi/messages.po | 41 --- windowsphonepush/lang/fi-fi/strings.php | 12 - windowsphonepush/lang/fr/messages.po | 38 -- windowsphonepush/lang/fr/strings.php | 11 - windowsphonepush/lang/hu/messages.po | 36 -- windowsphonepush/lang/hu/strings.php | 11 - windowsphonepush/lang/it/messages.po | 40 --- windowsphonepush/lang/it/strings.php | 12 - windowsphonepush/lang/nl/messages.po | 40 --- windowsphonepush/lang/nl/strings.php | 11 - windowsphonepush/lang/pl/messages.po | 37 -- windowsphonepush/lang/pl/strings.php | 11 - windowsphonepush/lang/ro/messages.po | 40 --- windowsphonepush/lang/ro/strings.php | 12 - windowsphonepush/lang/sv/messages.po | 35 -- windowsphonepush/lang/sv/strings.php | 7 - windowsphonepush/lang/zh-cn/messages.po | 40 --- windowsphonepush/lang/zh-cn/strings.php | 12 - windowsphonepush/templates/settings.tpl | 3 - windowsphonepush/windowsphonepush.php | 438 ------------------------ 32 files changed, 1206 deletions(-) delete mode 100644 namethingy/namethingy.php delete mode 100644 windowsphonepush/lang/C/messages.po delete mode 100644 windowsphonepush/lang/ar/messages.po delete mode 100644 windowsphonepush/lang/ar/strings.php delete mode 100644 windowsphonepush/lang/cs/messages.po delete mode 100644 windowsphonepush/lang/cs/strings.php delete mode 100644 windowsphonepush/lang/da-dk/messages.po delete mode 100644 windowsphonepush/lang/da-dk/strings.php delete mode 100644 windowsphonepush/lang/de/messages.po delete mode 100644 windowsphonepush/lang/de/strings.php delete mode 100644 windowsphonepush/lang/es/messages.po delete mode 100644 windowsphonepush/lang/es/strings.php delete mode 100644 windowsphonepush/lang/fi-fi/messages.po delete mode 100644 windowsphonepush/lang/fi-fi/strings.php delete mode 100644 windowsphonepush/lang/fr/messages.po delete mode 100644 windowsphonepush/lang/fr/strings.php delete mode 100644 windowsphonepush/lang/hu/messages.po delete mode 100644 windowsphonepush/lang/hu/strings.php delete mode 100644 windowsphonepush/lang/it/messages.po delete mode 100644 windowsphonepush/lang/it/strings.php delete mode 100644 windowsphonepush/lang/nl/messages.po delete mode 100644 windowsphonepush/lang/nl/strings.php delete mode 100644 windowsphonepush/lang/pl/messages.po delete mode 100644 windowsphonepush/lang/pl/strings.php delete mode 100644 windowsphonepush/lang/ro/messages.po delete mode 100644 windowsphonepush/lang/ro/strings.php delete mode 100644 windowsphonepush/lang/sv/messages.po delete mode 100644 windowsphonepush/lang/sv/strings.php delete mode 100644 windowsphonepush/lang/zh-cn/messages.po delete mode 100644 windowsphonepush/lang/zh-cn/strings.php delete mode 100644 windowsphonepush/templates/settings.tpl delete mode 100644 windowsphonepush/windowsphonepush.php diff --git a/namethingy/namethingy.php b/namethingy/namethingy.php deleted file mode 100644 index 8e5b3cea..00000000 --- a/namethingy/namethingy.php +++ /dev/null @@ -1,42 +0,0 @@ - - * Status: Unsupported - */ - -use Friendica\App; -use Friendica\Core\Hook; -use Friendica\DI; - -function namethingy_install() -{ - Hook::register('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu'); -} - -function namethingy_app_menu(App $a, array &$b) -{ - $b['app_menu'][] = ''; -} - - -/** - * This is a statement rather than an actual function definition. The simple - * existence of this method is checked to figure out if the addon offers a - * module. - */ -function namethingy_module() {} - -function namethingy_content(App $a) -{ - $baseurl = DI::baseUrl()->get() . '/addon/namethingy'; - - $o .= <<< EOT -