diff --git a/README.md b/README.md index 08451b6d..deffa2a5 100644 --- a/README.md +++ b/README.md @@ -2,26 +2,33 @@ Addons for Friendica ==================== This repository is a collection of addons for the [Friendica Social Communications Server](https://github.com/friendica/friendica). -You can add these addons to the /addon directory of your Friendica installation do extend the functionality of your node. +You can add these addons to the /addon directory of your Friendica installation +do extend the functionality of your node. -After uploading the addons to your server, you need to activate the desired addons in the Admin panel. Addons not activated have no effect on your node. +After uploading the addons to your server, you need to activate the desired addons +in the Admin panel. Addons not activated have no effect on your node. -You can find more addons in the [Friendica Addon listing](https://addons.friendo.ca) in cases the addon developers have choosen not to include them here. +You can find more addons in the [Friendica Addon listing](https://addons.friendo.ca) +in cases the addon developers have choosen not to include them here. -## Connectors +Connectors +---------- -Among these addons there are also the [connectors](https://github.com/friendica/friendica/blob/master/doc/Connectors.md) for various other networks (e.g. Twitter, pump.io, Google+) that are needed for communication when the protocol is not supported by Friendica core (DFRN, OStatus and Diaspora). +Among these addons there are also the [connectors](https://github.com/friendica/friendica/blob/master/doc/Connectors.md) for various other networks +(e.g. Twitter, pump.io, Google+) that are needed for communication when the +protocoll is not supported by Friendica core (DFRN, OStatus and Diaspora). -For communication with contacts in networks supporting those (e.g. GNU social, Diaspora and red#matrix) you just need to access the page configuration in the Admin panel and enable them. For networks where communication is only possible the API access to a remote account, you need to activate the fitting connectors. +For communication with contacts in networks supporting those (e.g. GNU social, +Diaspora and red#matrix) you just need to access the page configuration in the +Admin panel and enable them. For networks where communication is only possible +the API access to a remote account, you need to activate the fitting connectors. -## Development +Development +----------- -The addon interface of Friendica is very flexible and powerful, so if you are missing functionality, your chances are high it may be added with an addon. -See the [documentation](https://github.com/friendica/friendica/blob/master/doc/Addons.md) for more information on the addon development. +The addon interface of Friendica is very flexible and powerful, so if you are +missing functionality, your chances are high it may be added with an addon. +See the [documentation](https://github.com/friendica/friendica/blob/master/doc/Addons.md) for more informations on the addon development. -## Translation - -Addons can be translated like any other part of Friendica. -Translation for addons is done at [the Transifex Friendica page](https://www.transifex.com/Friendica/friendica/dashboard/). - -Read more about the workflow in the [Friendica translation documentation](https://github.com/friendica/friendica/blob/master/doc/translations.md#addon). +Addons can be translated like any other part of Friendica. Translations for the +addons included in this repository are done at the [Transifex project](https://www.transifex.com/projects/p/friendica/) for Friendica. diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php index d06dab51..a00f2f07 100644 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@ -52,6 +52,10 @@ use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Symfony\Component\ExpressionLanguage; +require_once 'boot.php'; +require_once 'include/conversation.php'; +require_once 'include/dba.php'; + require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; function advancedcontentfilter_install() diff --git a/advancedcontentfilter/lang/fr/messages.po b/advancedcontentfilter/lang/fr/messages.po deleted file mode 100644 index cd1853fd..00000000 --- a/advancedcontentfilter/lang/fr/messages.po +++ /dev/null @@ -1,174 +0,0 @@ -# ADDON advancedcontentfilter -# Copyright (C) -# This file is distributed under the same license as the Friendica advancedcontentfilter addon package. -# -# -# Translators: -# Marie Olive , 2018 -# vladimir N , 2018 -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-04-17 04:04+0200\n" -"PO-Revision-Date: 2018-05-24 06:41+0000\n" -"Last-Translator: vladimir N , 2018\n" -"Language-Team: French (https://www.transifex.com/Friendica/teams/12172/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=2; plural=(n > 1);\n" - -#: advancedcontentfilter.php:134 -#, php-format -msgid "Filtered by rule: %s" -msgstr "Filtré par règle:%s" - -#: advancedcontentfilter.php:147 advancedcontentfilter.php:204 -msgid "Advanced Content Filter" -msgstr "Filtre avancé de contenu" - -#: advancedcontentfilter.php:203 -msgid "Back to Addon Settings" -msgstr "Retour aux paramètres de l'extension" - -#: advancedcontentfilter.php:205 -msgid "Add a Rule" -msgstr "Ajouter une règle" - -#: advancedcontentfilter.php:206 -msgid "Help" -msgstr "Aide" - -#: advancedcontentfilter.php:207 -msgid "" -"Add and manage your personal content filter rules in this screen. Rules have" -" a name and an arbitrary expression that will be matched against post data. " -"For a complete reference of the available operations and variables, check " -"the help page." -msgstr "" -"Dans cet écran, ajoutez et gérez votre règle personnelle de filtre de " -"contenu. Les règles portent un nom et contiennent une expression arbitraire " -"qui sera appliquée aux données du post. Pour une liste complète des " -"opérations disponibles, voyez la page d'aide" - -#: advancedcontentfilter.php:208 -msgid "Your rules" -msgstr "Vos règles" - -#: advancedcontentfilter.php:209 -msgid "" -"You have no rules yet! Start adding one by clicking on the button above next" -" to the title." -msgstr "" -"Vous n'avez encore aucune règle! Ajoutez-en une en cliquant le bouton au-" -"dessus près du titre" - -#: advancedcontentfilter.php:210 -msgid "Disabled" -msgstr "Désactivé" - -#: advancedcontentfilter.php:211 -msgid "Enabled" -msgstr "Activé" - -#: advancedcontentfilter.php:212 -msgid "Disable this rule" -msgstr "Désactiver cette règle" - -#: advancedcontentfilter.php:213 -msgid "Enable this rule" -msgstr "Activer cette règle" - -#: advancedcontentfilter.php:214 -msgid "Edit this rule" -msgstr "Modifier cette règle" - -#: advancedcontentfilter.php:215 -msgid "Edit the rule" -msgstr "Modifier la règle" - -#: advancedcontentfilter.php:216 -msgid "Save this rule" -msgstr "Enregistrer cette règle" - -#: advancedcontentfilter.php:217 -msgid "Delete this rule" -msgstr "Supprimer cette règle" - -#: advancedcontentfilter.php:218 -msgid "Rule" -msgstr "Règle" - -#: advancedcontentfilter.php:219 -msgid "Close" -msgstr "Fermer" - -#: advancedcontentfilter.php:220 -msgid "Add new rule" -msgstr "Ajouter nouvelle règle" - -#: advancedcontentfilter.php:221 -msgid "Rule Name" -msgstr "Nommer règle" - -#: advancedcontentfilter.php:222 -msgid "Rule Expression" -msgstr "Expression de règle" - -#: advancedcontentfilter.php:223 -msgid "" -"

Examples:

  • author_link == "
    -"'https://friendica.mrpetovan.com/profile/hypolite'
  • tags
" -msgstr "" - -#: advancedcontentfilter.php:224 -msgid "Cancel" -msgstr "Annuler" - -#: advancedcontentfilter.php:290 advancedcontentfilter.php:301 -#: advancedcontentfilter.php:312 advancedcontentfilter.php:346 -#: advancedcontentfilter.php:375 advancedcontentfilter.php:396 -msgid "You must be logged in to use this method" -msgstr "Vous devez être connecté pour utiliser cette méthode" - -#: advancedcontentfilter.php:316 advancedcontentfilter.php:350 -#: advancedcontentfilter.php:379 -msgid "Invalid form security token, please refresh the page." -msgstr "Formulaire token de sécurité invalide, rafraîchissez la page" - -#: advancedcontentfilter.php:328 -msgid "The rule name and expression are required." -msgstr "Le nom et l'expression de cette règle sont requis" - -#: advancedcontentfilter.php:340 -msgid "Rule successfully added" -msgstr "Règle bien ajoutée" - -#: advancedcontentfilter.php:354 advancedcontentfilter.php:383 -msgid "Rule doesn't exist or doesn't belong to you." -msgstr "Cette règle n'existe pas ou ne vous appartient pas" - -#: advancedcontentfilter.php:369 -msgid "Rule successfully updated" -msgstr "Règle bien mise à jour" - -#: advancedcontentfilter.php:390 -msgid "Rule successfully deleted" -msgstr "Règle bien supprimée" - -#: advancedcontentfilter.php:400 -msgid "Missing argument: guid." -msgstr "Argument manquant: " - -#: advancedcontentfilter.php:406 -#, php-format -msgid "Unknown post with guid: %s" -msgstr "" - -#: src/middlewares.php:28 -msgid "Method not found" -msgstr "Méthode non trouvée" diff --git a/advancedcontentfilter/lang/fr/strings.php b/advancedcontentfilter/lang/fr/strings.php deleted file mode 100644 index 208a00a9..00000000 --- a/advancedcontentfilter/lang/fr/strings.php +++ /dev/null @@ -1,41 +0,0 @@ - 1);; -}} -; -$a->strings["Filtered by rule: %s"] = "Filtré par règle:%s"; -$a->strings["Advanced Content Filter"] = "Filtre avancé de contenu"; -$a->strings["Back to Addon Settings"] = "Retour aux paramètres de l'extension"; -$a->strings["Add a Rule"] = "Ajouter une règle"; -$a->strings["Help"] = "Aide"; -$a->strings["Add and manage your personal content filter rules in this screen. Rules have a name and an arbitrary expression that will be matched against post data. For a complete reference of the available operations and variables, check the help page."] = "Dans cet écran, ajoutez et gérez votre règle personnelle de filtre de contenu. Les règles portent un nom et contiennent une expression arbitraire qui sera appliquée aux données du post. Pour une liste complète des opérations disponibles, voyez la page d'aide"; -$a->strings["Your rules"] = "Vos règles"; -$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "Vous n'avez encore aucune règle! Ajoutez-en une en cliquant le bouton au-dessus près du titre"; -$a->strings["Disabled"] = "Désactivé"; -$a->strings["Enabled"] = "Activé"; -$a->strings["Disable this rule"] = "Désactiver cette règle"; -$a->strings["Enable this rule"] = "Activer cette règle"; -$a->strings["Edit this rule"] = "Modifier cette règle"; -$a->strings["Edit the rule"] = "Modifier la règle"; -$a->strings["Save this rule"] = "Enregistrer cette règle"; -$a->strings["Delete this rule"] = "Supprimer cette règle"; -$a->strings["Rule"] = "Règle"; -$a->strings["Close"] = "Fermer"; -$a->strings["Add new rule"] = "Ajouter nouvelle règle"; -$a->strings["Rule Name"] = "Nommer règle"; -$a->strings["Rule Expression"] = "Expression de règle"; -$a->strings["

Examples:

  • author_link == 'https://friendica.mrpetovan.com/profile/hypolite'
  • tags
"] = ""; -$a->strings["Cancel"] = "Annuler"; -$a->strings["You must be logged in to use this method"] = "Vous devez être connecté pour utiliser cette méthode"; -$a->strings["Invalid form security token, please refresh the page."] = "Formulaire token de sécurité invalide, rafraîchissez la page"; -$a->strings["The rule name and expression are required."] = "Le nom et l'expression de cette règle sont requis"; -$a->strings["Rule successfully added"] = "Règle bien ajoutée"; -$a->strings["Rule doesn't exist or doesn't belong to you."] = "Cette règle n'existe pas ou ne vous appartient pas"; -$a->strings["Rule successfully updated"] = "Règle bien mise à jour"; -$a->strings["Rule successfully deleted"] = "Règle bien supprimée"; -$a->strings["Missing argument: guid."] = "Argument manquant: "; -$a->strings["Unknown post with guid: %s"] = ""; -$a->strings["Method not found"] = "Méthode non trouvée"; diff --git a/advancedcontentfilter/templates/settings.tpl b/advancedcontentfilter/templates/settings.tpl index 9ae56c3b..a04baf7d 100644 --- a/advancedcontentfilter/templates/settings.tpl +++ b/advancedcontentfilter/templates/settings.tpl @@ -3,7 +3,7 @@