]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #803 from nupplaphil/config_refact
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 6 Feb 2019 15:52:02 +0000 (10:52 -0500)
committerGitHub <noreply@github.com>
Wed, 6 Feb 2019 15:52:02 +0000 (10:52 -0500)
Config Refactoring

62 files changed:
.gitignore
.tx/config
advancedcontentfilter/advancedcontentfilter.php
advancedcontentfilter/lang/fr/messages.po
advancedcontentfilter/lang/fr/strings.php
advancedcontentfilter/lang/nl/messages.po [new file with mode: 0644]
advancedcontentfilter/lang/nl/strings.php [new file with mode: 0644]
advancedcontentfilter/templates/settings.tpl
blackout/blackout.php
blackout/lang/fr/messages.po
blackout/lang/fr/strings.php
blockem/lang/fr/messages.po
blockem/lang/fr/strings.php
buffer/buffer.php
catavatar/lang/fr/messages.po [new file with mode: 0644]
catavatar/lang/fr/strings.php [new file with mode: 0644]
cookienotice/README [new file with mode: 0644]
cookienotice/cookienotice.css [new file with mode: 0644]
cookienotice/cookienotice.js [new file with mode: 0644]
cookienotice/cookienotice.php [new file with mode: 0644]
cookienotice/lang/C/messages.po [new file with mode: 0644]
cookienotice/lang/cs/messages.po [new file with mode: 0644]
cookienotice/lang/cs/strings.php [new file with mode: 0644]
cookienotice/lang/de/messages.po [new file with mode: 0644]
cookienotice/lang/de/strings.php [new file with mode: 0644]
cookienotice/lang/fr/messages.po [new file with mode: 0644]
cookienotice/lang/fr/strings.php [new file with mode: 0644]
cookienotice/lang/nl/messages.po [new file with mode: 0644]
cookienotice/lang/nl/strings.php [new file with mode: 0644]
cookienotice/lang/pl/messages.po [new file with mode: 0644]
cookienotice/lang/pl/strings.php [new file with mode: 0644]
cookienotice/lang/zh-cn/messages.po [new file with mode: 0644]
cookienotice/lang/zh-cn/strings.php [new file with mode: 0644]
cookienotice/templates/cookienotice.tpl [new file with mode: 0644]
cookienotice/templates/settings.tpl [new file with mode: 0644]
curweather/curweather.php
forumdirectory/forumdirectory.php
forumdirectory/templates/forumdirectory_item.tpl
fromgplus/fromgplus.php
ifttt/ifttt.php
impressum/impressum.php
jappixmini/jappixmini.php
langfilter/lang/es/messages.po
langfilter/lang/es/strings.php
leistungsschutzrecht/README.md [new file with mode: 0644]
leistungsschutzrecht/leistungsschutzrecht.php
mailstream/mailstream.php
mailstream/templates/mail.tpl
mathjax/templates/settings.tpl
morechoice/lang/de/messages.po
morechoice/lang/de/strings.php
notifyall/notifyall.php
public_server/public_server.php
pumpio/pumpio.php
securemail/templates/admin.tpl
startpage/startpage.php
statusnet/statusnet.php
testdrive/testdrive.php
twitter/twitter.php
widgets/widget_like.php
widgets/widgets.php
wppost/wppost.php

index 36ccc906e56c08e141dbabf5df1e7b31b120524c..0d32de00b8705dd29d03872a8335281354173e73 100644 (file)
@@ -18,7 +18,7 @@ report/
 #ignore OSX .DS_Store files\r
 .DS_Store\r
 \r
-/nbproject/private/\r
+/nbproject/\r
 \r
 #ignore smarty cache\r
 /view/smarty3/compiled/\r
index 599edaee8adfcc15e767479de26219a4972d28f9..710a560e66d08235f377a59168378f7e267b4fa5 100644 (file)
@@ -1,6 +1,12 @@
 [main]
 host = https://www.transifex.com
 
+[friendica.addon_advancedcontentfilter_messagespo]
+file_filter = advancedcontentfilter/lang/<lang>/messages.po
+source_file = advancedcontentfilter/lang/C/messages.po
+source_lang = en
+type = PO
+
 [friendica.addon_blackout_messagespo]
 file_filter = blackout/lang/<lang>/messages.po
 source_file = blackout/lang/C/messages.po
@@ -31,21 +37,21 @@ source_file = buglink/lang/C/messages.po
 source_lang = en
 type = PO
 
-[friendica.addon_communityhome_messagespo]
-file_filter = communityhome/lang/<lang>/messages.po
-source_file = communityhome/lang/C/messages.po
+[friendica.addon_catavatar_messagespo]
+file_filter = catavatar/lang/<lang>/messages.po
+source_file = catavatar/lang/C/messages.po
 source_lang = en
 type = PO
 
-[friendica.addon_curweather_messagespo]
-file_filter = curweather/lang/<lang>/messages.po
-source_file = curweather/lang/C/messages.po
+[friendica.addon_cookienotice_messagespo]
+file_filter = cookienotice/lang/<lang>/messages.po
+source_file = cookienotice/lang/C/messages.po
 source_lang = en
 type = PO
 
-[friendica.addon_dav_messagespo]
-file_filter = dav/lang/<lang>/messages.po
-source_file = dav/lang/C/messages.po
+[friendica.addon_curweather_messagespo]
+file_filter = curweather/lang/<lang>/messages.po
+source_file = curweather/lang/C/messages.po
 source_lang = en
 type = PO
 
@@ -103,6 +109,12 @@ source_file = group_text/lang/C/messages.po
 source_lang = en
 type = PO
 
+[friendica.addon_ifttt_messagespo]
+file_filter = ifttt/lang/<lang>/messages.po
+source_file = ifttt/lang/C/messages.po
+source_lang = en
+type = PO
+
 [friendica.addon_ijpost_messagespo]
 file_filter = ijpost/lang/<lang>/messages.po
 source_file = ijpost/lang/C/messages.po
@@ -175,6 +187,24 @@ source_file = mailstream/lang/C/messages.po
 source_lang = en
 type = PO
 
+[friendica.addon_mathjax_messagespo]
+file_filter = mathjax/lang/<lang>/messages.po
+source_file = mathjax/lang/C/messages.po
+source_lang = en
+type = PO
+
+[friendica.addon_membersince_messagespo]
+file_filter = membersince/lang/<lang>/messages.po
+source_file = membersince/lang/C/messages.po
+source_lang = en
+type = PO
+
+[friendica.addon_morechoice_messagespo]
+file_filter = morechoice/lang/<lang>/messages.po
+source_file = morechoice/lang/C/messages.po
+source_lang = en
+type = PO
+
 [friendica.addon_morepokes_messagespo]
 file_filter = morepokes/lang/<lang>/messages.po
 source_file = morepokes/lang/C/messages.po
@@ -343,6 +373,12 @@ source_file = webrtc/lang/C/messages.po
 source_lang = en
 type = PO
 
+[friendica.addon_widgets_messagespo]
+file_filter = widgets/lang/<lang>/messages.po
+source_file = widgets/lang/C/messages.po
+source_lang = en
+type = PO
+
 [friendica.addon_windowsphonepush_messagespo]
 file_filter = windowsphonepush/lang/<lang>/messages.po
 source_file = windowsphonepush/lang/C/messages.po
@@ -361,8 +397,3 @@ source_file = xmpp/lang/C/messages.po
 source_lang = en
 type = PO
 
-[friendica.addon_yourls_messagespo]
-file_filter = yourls/lang/<lang>/messages.po
-source_file = yourls/lang/C/messages.po
-source_lang = en
-type = PO
index 8602613044b2502a760a7ac090aaa01320960aac..dbbfb2e2ec67747137fb65e376b7406fb901f945 100644 (file)
@@ -52,10 +52,6 @@ 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(App $a)
index 0d76f672c30ff05c668200daeb26510132f65208..cd1853fdad1a3273b00f495a1d52d4bba9192521 100644 (file)
@@ -5,6 +5,7 @@
 # 
 # Translators:
 # Marie Olive <lacellule101@gmail.com>, 2018
+# vladimir N <lapoubelle111@gmail.com>, 2018
 # 
 #, fuzzy
 msgid ""
@@ -13,7 +14,7 @@ msgstr ""
 "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: Marie Olive <lacellule101@gmail.com>, 2018\n"
+"Last-Translator: vladimir N <lapoubelle111@gmail.com>, 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"
@@ -24,7 +25,7 @@ msgstr ""
 #: advancedcontentfilter.php:134
 #, php-format
 msgid "Filtered by rule: %s"
-msgstr "Filtrer par règle:%s"
+msgstr "Filtré par règle:%s"
 
 #: advancedcontentfilter.php:147 advancedcontentfilter.php:204
 msgid "Advanced Content Filter"
@@ -49,6 +50,10 @@ msgid ""
 "For a complete reference of the available operations and variables, check "
 "the <a href=\"advancedcontentfilter/help\">help page</a>."
 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"
@@ -59,58 +64,60 @@ 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 ""
+msgstr "Désactivé"
 
 #: advancedcontentfilter.php:211
 msgid "Enabled"
-msgstr ""
+msgstr "Activé"
 
 #: advancedcontentfilter.php:212
 msgid "Disable this rule"
-msgstr ""
+msgstr "Désactiver cette règle"
 
 #: advancedcontentfilter.php:213
 msgid "Enable this rule"
-msgstr ""
+msgstr "Activer cette règle"
 
 #: advancedcontentfilter.php:214
 msgid "Edit this rule"
-msgstr ""
+msgstr "Modifier cette règle"
 
 #: advancedcontentfilter.php:215
 msgid "Edit the rule"
-msgstr ""
+msgstr "Modifier la règle"
 
 #: advancedcontentfilter.php:216
 msgid "Save this rule"
-msgstr ""
+msgstr "Enregistrer cette règle"
 
 #: advancedcontentfilter.php:217
 msgid "Delete this rule"
-msgstr ""
+msgstr "Supprimer cette règle"
 
 #: advancedcontentfilter.php:218
 msgid "Rule"
-msgstr ""
+msgstr "Règle"
 
 #: advancedcontentfilter.php:219
 msgid "Close"
-msgstr ""
+msgstr "Fermer"
 
 #: advancedcontentfilter.php:220
 msgid "Add new rule"
-msgstr ""
+msgstr "Ajouter nouvelle règle"
 
 #: advancedcontentfilter.php:221
 msgid "Rule Name"
-msgstr ""
+msgstr "Nommer règle"
 
 #: advancedcontentfilter.php:222
 msgid "Rule Expression"
-msgstr ""
+msgstr "Expression de règle"
 
 #: advancedcontentfilter.php:223
 msgid ""
@@ -120,42 +127,42 @@ msgstr ""
 
 #: advancedcontentfilter.php:224
 msgid "Cancel"
-msgstr ""
+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 ""
+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 ""
+msgstr "Formulaire token de sécurité invalide, rafraîchissez la page"
 
 #: advancedcontentfilter.php:328
 msgid "The rule name and expression are required."
-msgstr ""
+msgstr "Le nom et l'expression de cette règle sont requis"
 
 #: advancedcontentfilter.php:340
 msgid "Rule successfully added"
-msgstr ""
+msgstr "Règle bien ajoutée"
 
 #: advancedcontentfilter.php:354 advancedcontentfilter.php:383
 msgid "Rule doesn't exist or doesn't belong to you."
-msgstr ""
+msgstr "Cette règle n'existe pas ou ne vous appartient pas"
 
 #: advancedcontentfilter.php:369
 msgid "Rule successfully updated"
-msgstr ""
+msgstr "Règle bien mise à jour"
 
 #: advancedcontentfilter.php:390
 msgid "Rule successfully deleted"
-msgstr ""
+msgstr "Règle bien supprimée"
 
 #: advancedcontentfilter.php:400
 msgid "Missing argument: guid."
-msgstr ""
+msgstr "Argument manquant: "
 
 #: advancedcontentfilter.php:406
 #, php-format
@@ -164,4 +171,4 @@ msgstr ""
 
 #: src/middlewares.php:28
 msgid "Method not found"
-msgstr ""
+msgstr "Méthode non trouvée"
index 5ff20251eb9546cf281468abf46bc21461001a12..208a00a91eb150f39d46dc16109f28d060658366 100644 (file)
@@ -6,36 +6,36 @@ function string_plural_select_fr($n){
        return ($n > 1);;
 }}
 ;
-$a->strings["Filtered by rule: %s"] = "Filtrer par règle:%s";
+$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 <a href=\"advancedcontentfilter/help\">help page</a>."] = "";
+$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 <a href=\"advancedcontentfilter/help\">help page</a>."] = "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."] = "";
-$a->strings["Disabled"] = "";
-$a->strings["Enabled"] = "";
-$a->strings["Disable this rule"] = "";
-$a->strings["Enable this rule"] = "";
-$a->strings["Edit this rule"] = "";
-$a->strings["Edit the rule"] = "";
-$a->strings["Save this rule"] = "";
-$a->strings["Delete this rule"] = "";
-$a->strings["Rule"] = "";
-$a->strings["Close"] = "";
-$a->strings["Add new rule"] = "";
-$a->strings["Rule Name"] = "";
-$a->strings["Rule Expression"] = "";
+$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["<p>Examples:</p><ul><li><pre>author_link == 'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>tags</li></ul>"] = "";
-$a->strings["Cancel"] = "";
-$a->strings["You must be logged in to use this method"] = "";
-$a->strings["Invalid form security token, please refresh the page."] = "";
-$a->strings["The rule name and expression are required."] = "";
-$a->strings["Rule successfully added"] = "";
-$a->strings["Rule doesn't exist or doesn't belong to you."] = "";
-$a->strings["Rule successfully updated"] = "";
-$a->strings["Rule successfully deleted"] = "";
-$a->strings["Missing argument: guid."] = "";
+$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"] = "";
+$a->strings["Method not found"] = "Méthode non trouvée";
diff --git a/advancedcontentfilter/lang/nl/messages.po b/advancedcontentfilter/lang/nl/messages.po
new file mode 100644 (file)
index 0000000..eefe52e
--- /dev/null
@@ -0,0 +1,178 @@
+# ADDON advancedcontentfilter
+# Copyright (C)
+# This file is distributed under the same license as the Friendica advancedcontentfilter addon package.
+# 
+# 
+# Translators:
+# Rik 4 <rikviergever@hotmail.com>, 2018
+# AgnesElisa <agneselisa@disroot.org>, 2018
+# Jeroen De Meerleer <me@jeroened.be>, 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: Jeroen De Meerleer <me@jeroened.be>, 2018\n"
+"Language-Team: Dutch (https://www.transifex.com/Friendica/teams/12172/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"
+
+#: advancedcontentfilter.php:134
+#, php-format
+msgid "Filtered by rule: %s"
+msgstr "Gefilterd volgens regel: %s"
+
+#: advancedcontentfilter.php:147 advancedcontentfilter.php:204
+msgid "Advanced Content Filter"
+msgstr "Geavanceerd filter voor berichtsinhoud"
+
+#: advancedcontentfilter.php:203
+msgid "Back to Addon Settings"
+msgstr "Terug naar Addon instellingen"
+
+#: advancedcontentfilter.php:205
+msgid "Add a Rule"
+msgstr "Filterregel toevoegen"
+
+#: advancedcontentfilter.php:206
+msgid "Help"
+msgstr "Help"
+
+#: 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 <a href=\"advancedcontentfilter/help\">help page</a>."
+msgstr ""
+"Beheer de filterregels van je persoonlijke filter voor berichtsinhoud in dit"
+" scherm. Regels hebben een naam en bewoording welke we automatisch "
+"controleren door te vergelijken met de inhoud van elk bericht. Voor een "
+"compleet naslagwerk van de beschikbare bewerkingen en variabelen, zie de  <a"
+" href=\"advancedcontentfilter/help\">help pagina</a>."
+
+#: advancedcontentfilter.php:208
+msgid "Your rules"
+msgstr "Jouw regels"
+
+#: advancedcontentfilter.php:209
+msgid ""
+"You have no rules yet! Start adding one by clicking on the button above next"
+" to the title."
+msgstr ""
+"Je hebt nog geen regels! Klik op de knop bovenin naast de titel om een regel"
+" toe te voegen."
+
+#: advancedcontentfilter.php:210
+msgid "Disabled"
+msgstr "Uitgeschakeld"
+
+#: advancedcontentfilter.php:211
+msgid "Enabled"
+msgstr "Geactiveerd"
+
+#: advancedcontentfilter.php:212
+msgid "Disable this rule"
+msgstr "Deze regel uitschakelen"
+
+#: advancedcontentfilter.php:213
+msgid "Enable this rule"
+msgstr "Deze regel inschakelen"
+
+#: advancedcontentfilter.php:214
+msgid "Edit this rule"
+msgstr "Regel bewerken"
+
+#: advancedcontentfilter.php:215
+msgid "Edit the rule"
+msgstr "Regel bewerken"
+
+#: advancedcontentfilter.php:216
+msgid "Save this rule"
+msgstr "Deze regel opslaan"
+
+#: advancedcontentfilter.php:217
+msgid "Delete this rule"
+msgstr "Deze regel verwijderen"
+
+#: advancedcontentfilter.php:218
+msgid "Rule"
+msgstr "Regel"
+
+#: advancedcontentfilter.php:219
+msgid "Close"
+msgstr "Sluiten"
+
+#: advancedcontentfilter.php:220
+msgid "Add new rule"
+msgstr "Voeg nieuwe regel toe"
+
+#: advancedcontentfilter.php:221
+msgid "Rule Name"
+msgstr "Regel naam"
+
+#: advancedcontentfilter.php:222
+msgid "Rule Expression"
+msgstr "Regel bewoording"
+
+#: advancedcontentfilter.php:223
+msgid ""
+"<p>Examples:</p><ul><li><pre>author_link == "
+"'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>tags</li></ul>"
+msgstr ""
+"<p>Voorbeelden:</p><ul><li><pre>author_link == "
+"'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>label</li></ul>"
+
+#: advancedcontentfilter.php:224
+msgid "Cancel"
+msgstr "Annuleren"
+
+#: 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 "Je moet ingelogd zijn om deze methode te gebruiken"
+
+#: advancedcontentfilter.php:316 advancedcontentfilter.php:350
+#: advancedcontentfilter.php:379
+msgid "Invalid form security token, please refresh the page."
+msgstr "Ongeldige formulier beveiligings token, vernieuw de pagina a.u.b."
+
+#: advancedcontentfilter.php:328
+msgid "The rule name and expression are required."
+msgstr "De regelnaam en bewoording zijn vereist."
+
+#: advancedcontentfilter.php:340
+msgid "Rule successfully added"
+msgstr "Regel succesvol toegevoegd"
+
+#: advancedcontentfilter.php:354 advancedcontentfilter.php:383
+msgid "Rule doesn't exist or doesn't belong to you."
+msgstr "Deze regel bestaat niet, of is niet van jou."
+
+#: advancedcontentfilter.php:369
+msgid "Rule successfully updated"
+msgstr "Regel succesvol opgeslagen"
+
+#: advancedcontentfilter.php:390
+msgid "Rule successfully deleted"
+msgstr "Regel succesvol verwijderd"
+
+#: advancedcontentfilter.php:400
+msgid "Missing argument: guid."
+msgstr "Parameter guid niet aanwezig"
+
+#: advancedcontentfilter.php:406
+#, php-format
+msgid "Unknown post with guid: %s"
+msgstr "Onbekend bericht met guid: %s"
+
+#: src/middlewares.php:28
+msgid "Method not found"
+msgstr "Methode niet gevonden"
diff --git a/advancedcontentfilter/lang/nl/strings.php b/advancedcontentfilter/lang/nl/strings.php
new file mode 100644 (file)
index 0000000..6c40c02
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+
+if(! function_exists("string_plural_select_nl")) {
+function string_plural_select_nl($n){
+       $n = intval($n);
+       return ($n != 1);;
+}}
+;
+$a->strings["Filtered by rule: %s"] = "Gefilterd volgens regel: %s";
+$a->strings["Advanced Content Filter"] = "Geavanceerd filter voor berichtsinhoud";
+$a->strings["Back to Addon Settings"] = "Terug naar Addon instellingen";
+$a->strings["Add a Rule"] = "Filterregel toevoegen";
+$a->strings["Help"] = "Help";
+$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 <a href=\"advancedcontentfilter/help\">help page</a>."] = "Beheer de filterregels van je persoonlijke filter voor berichtsinhoud in dit scherm. Regels hebben een naam en bewoording welke we automatisch controleren door te vergelijken met de inhoud van elk bericht. Voor een compleet naslagwerk van de beschikbare bewerkingen en variabelen, zie de  <a href=\"advancedcontentfilter/help\">help pagina</a>.";
+$a->strings["Your rules"] = "Jouw regels";
+$a->strings["You have no rules yet! Start adding one by clicking on the button above next to the title."] = "Je hebt nog geen regels! Klik op de knop bovenin naast de titel om een regel toe te voegen.";
+$a->strings["Disabled"] = "Uitgeschakeld";
+$a->strings["Enabled"] = "Geactiveerd";
+$a->strings["Disable this rule"] = "Deze regel uitschakelen";
+$a->strings["Enable this rule"] = "Deze regel inschakelen";
+$a->strings["Edit this rule"] = "Regel bewerken";
+$a->strings["Edit the rule"] = "Regel bewerken";
+$a->strings["Save this rule"] = "Deze regel opslaan";
+$a->strings["Delete this rule"] = "Deze regel verwijderen";
+$a->strings["Rule"] = "Regel";
+$a->strings["Close"] = "Sluiten";
+$a->strings["Add new rule"] = "Voeg nieuwe regel toe";
+$a->strings["Rule Name"] = "Regel naam";
+$a->strings["Rule Expression"] = "Regel bewoording";
+$a->strings["<p>Examples:</p><ul><li><pre>author_link == 'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>tags</li></ul>"] = "<p>Voorbeelden:</p><ul><li><pre>author_link == 'https://friendica.mrpetovan.com/profile/hypolite'</pre></li><li>label</li></ul>";
+$a->strings["Cancel"] = "Annuleren";
+$a->strings["You must be logged in to use this method"] = "Je moet ingelogd zijn om deze methode te gebruiken";
+$a->strings["Invalid form security token, please refresh the page."] = "Ongeldige formulier beveiligings token, vernieuw de pagina a.u.b.";
+$a->strings["The rule name and expression are required."] = "De regelnaam en bewoording zijn vereist.";
+$a->strings["Rule successfully added"] = "Regel succesvol toegevoegd";
+$a->strings["Rule doesn't exist or doesn't belong to you."] = "Deze regel bestaat niet, of is niet van jou.";
+$a->strings["Rule successfully updated"] = "Regel succesvol opgeslagen";
+$a->strings["Rule successfully deleted"] = "Regel succesvol verwijderd";
+$a->strings["Missing argument: guid."] = "Parameter guid niet aanwezig";
+$a->strings["Unknown post with guid: %s"] = "Onbekend bericht met guid: %s";
+$a->strings["Method not found"] = "Methode niet gevonden";
index a04baf7de5ee8c157fc126e3029afe0fa13936d8..9ae56c3b4080dbd2256555595e93b09e5a3443e6 100644 (file)
@@ -3,7 +3,7 @@
        <div id="rules"></div>
 
        <script>
-               var existingRules = {{$rules}};
+               var existingRules = {{$rules nofilter}};
 
                var messages = {
        {{foreach $messages as $key => $value}}
index 6885420016a6878a00b97a69548f134d84b73b8e..c857400284c6f71a93dd0beaf1f5730e0c4ceea5 100644 (file)
@@ -54,6 +54,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
+use Friendica\Core\System;
 
 function blackout_install() {
     Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
index 8f241a715918a44b5165d4717651edf66fff1e86..823c378213417d9e10ca0921ab85504543ef9357 100644 (file)
@@ -6,13 +6,14 @@
 # Translators:
 # Damien Goutte-Gattat <damien+transifex@incenp.org>, 2015
 # Hypolite Petovan <hypolite@mrpetovan.com>, 2016
+# vladimir N <lapoubelle111@gmail.com>, 2018
 msgid ""
 msgstr ""
 "Project-Id-Version: friendica\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2014-06-22 13:18+0200\n"
-"PO-Revision-Date: 2016-09-24 02:13+0000\n"
-"Last-Translator: Hypolite Petovan <hypolite@mrpetovan.com>\n"
+"PO-Revision-Date: 2018-12-30 12:31+0000\n"
+"Last-Translator: vladimir N <lapoubelle111@gmail.com>\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"
@@ -26,7 +27,7 @@ msgstr "Sauvegarder les paramètres"
 
 #: blackout.php:100
 msgid "Redirect URL"
-msgstr "Adresse de redirection"
+msgstr "Adresse URL de redirection"
 
 #: blackout.php:100
 msgid "all your visitors from the web will be redirected to this URL"
index ce1840381d8ad7d02df23edc1329d49db3bc0fea..ac1890f32483d2f89f81e9242e28249d3e078983 100644 (file)
@@ -2,11 +2,12 @@
 
 if(! function_exists("string_plural_select_fr")) {
 function string_plural_select_fr($n){
+       $n = intval($n);
        return ($n > 1);;
 }}
 ;
 $a->strings["Save Settings"] = "Sauvegarder les paramètres";
-$a->strings["Redirect URL"] = "Adresse de redirection";
+$a->strings["Redirect URL"] = "Adresse URL de redirection";
 $a->strings["all your visitors from the web will be redirected to this URL"] = "Tous vos visiteurs venant du web seront redirigés vers cette URL.";
 $a->strings["Begin of the Blackout"] = "Début du blackout";
 $a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "Le format est <em>YYYY</em> année, <em>MM</em> mois, <em>DD</em> jour, <em>hh</em> heure and <em>mm</em> minute";
index a089b0393b6e67c525276cbbad5733dd1dba8b37..527f1c737ee1b1d34e804a09c6157d5b359772fb 100644 (file)
@@ -7,13 +7,14 @@
 # Hypolite Petovan <hypolite@mrpetovan.com>, 2016
 # Marie Olive <lacellule101@gmail.com>, 2018
 # StefOfficiel <pichard.stephane@free.fr>, 2015
+# vladimir N <lapoubelle111@gmail.com>, 2018
 msgid ""
 msgstr ""
 "Project-Id-Version: friendica\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2018-08-17 10:23+0200\n"
-"PO-Revision-Date: 2018-11-13 12:55+0000\n"
-"Last-Translator: Marie Olive <lacellule101@gmail.com>\n"
+"PO-Revision-Date: 2018-12-30 12:33+0000\n"
+"Last-Translator: vladimir N <lapoubelle111@gmail.com>\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"
@@ -23,7 +24,7 @@ msgstr ""
 
 #: blockem.php:54 blockem.php:58
 msgid "Blockem"
-msgstr "Blockem"
+msgstr "Bloquez-les"
 
 #: blockem.php:62
 msgid ""
@@ -41,7 +42,7 @@ msgstr "Sauvegarder les paramètres"
 
 #: blockem.php:81
 msgid "BLOCKEM Settings saved."
-msgstr "Paramètres Blockem sauvegardés."
+msgstr "Paramètres Bloquez-les sauvegardés."
 
 #: blockem.php:143
 #, php-format
index a4abe2dafcb3fabac023b6d4630c24fed41379c0..cc2d366f3659233219e436fcd7554295225f9b13 100644 (file)
@@ -1,2 +1,17 @@
 <?php
 
+if(! function_exists("string_plural_select_fr")) {
+function string_plural_select_fr($n){
+       $n = intval($n);
+       return ($n > 1);;
+}}
+;
+$a->strings["Blockem"] = "Bloquez-les";
+$a->strings["Hides user's content by collapsing posts. Also replaces their avatar with generic image."] = "Cache le contenu de l'utilisateur en contractant les publications. Remplace aussi leur avatar par une image générique.";
+$a->strings["Comma separated profile URLS:"] = "URLs de profil séparées par des virgules:";
+$a->strings["Save Settings"] = "Sauvegarder les paramètres";
+$a->strings["BLOCKEM Settings saved."] = "Paramètres Bloquez-les sauvegardés.";
+$a->strings["Filtered user: %s"] = "Utilisateur filtré:%s";
+$a->strings["Unblock Author"] = "Débloquer l'Auteur";
+$a->strings["Block Author"] = "Bloquer l'Auteur";
+$a->strings["blockem settings updated"] = "Réglages Blockem mis à jour.";
index 78e695a37b1b7b2e08e6f319db1feac66364f521..869260d3613aec8ae6426434eac2beb9ab9e37e1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * Name: Buffer Post Connector
- * Description: Post to Buffer (Facebook, Google+, LinkedIn, Twitter)
+ * Description: Post to Buffer (Facebook Pages, LinkedIn, Twitter)
  * Version: 0.2
  * Author: Michael Vogel <http://pirati.ca/profile/heluecht>
  */
diff --git a/catavatar/lang/fr/messages.po b/catavatar/lang/fr/messages.po
new file mode 100644 (file)
index 0000000..3c4e03f
--- /dev/null
@@ -0,0 +1,54 @@
+# ADDON catavatar
+# Copyright (C)
+# This file is distributed under the same license as the Friendica catavatar addon package.
+# 
+# 
+# Translators:
+# Vladimir Núñez <lapoubelle111@gmail.com>, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-04-13 09:35+0000\n"
+"PO-Revision-Date: 2018-04-07 05:23+0000\n"
+"Last-Translator: Vladimir Núñez <lapoubelle111@gmail.com>, 2019\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"
+
+#: catavatar.php:60
+msgid "Use Cat as Avatar"
+msgstr "Utiliser Chat comme avatar"
+
+#: catavatar.php:61
+msgid "More Random Cat!"
+msgstr "Autres Chats au hasard"
+
+#: catavatar.php:62
+msgid "Reset to email Cat"
+msgstr "Réinitialiser à Chat courriel"
+
+#: catavatar.php:64
+msgid "Cat Avatar Settings"
+msgstr "Paramètres de Chat avatar"
+
+#: catavatar.php:100
+msgid "The cat hadn't found itself."
+msgstr "Le Chat ne s'y est pas retrouvé"
+
+#: catavatar.php:109
+msgid "There was an error, the cat ran away."
+msgstr "Il y a eu une erreur et le chat s'est enfui"
+
+#: catavatar.php:115
+msgid "Profile Photos"
+msgstr "Photos de profil"
+
+#: catavatar.php:130
+msgid "Meow!"
+msgstr "Miaou !"
diff --git a/catavatar/lang/fr/strings.php b/catavatar/lang/fr/strings.php
new file mode 100644 (file)
index 0000000..78976bf
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+if(! function_exists("string_plural_select_fr")) {
+function string_plural_select_fr($n){
+       $n = intval($n);
+       return ($n > 1);;
+}}
+;
+$a->strings["Use Cat as Avatar"] = "Utiliser Chat comme avatar";
+$a->strings["More Random Cat!"] = "Autres Chats au hasard";
+$a->strings["Reset to email Cat"] = "Réinitialiser à Chat courriel";
+$a->strings["Cat Avatar Settings"] = "Paramètres de Chat avatar";
+$a->strings["The cat hadn't found itself."] = "Le Chat ne s'y est pas retrouvé";
+$a->strings["There was an error, the cat ran away."] = "Il y a eu une erreur et le chat s'est enfui";
+$a->strings["Profile Photos"] = "Photos de profil";
+$a->strings["Meow!"] = "Miaou !";
diff --git a/cookienotice/README b/cookienotice/README
new file mode 100644 (file)
index 0000000..74edd44
--- /dev/null
@@ -0,0 +1,7 @@
+Cookie Notice
+
+For server admins only.
+
+Configure, show and handle a simple cookie usage notice. This absolute annoying but eventually necessary notification about the usage of cookies. This kind of things you klick ok on but don't read.
+
+Author: Peter liebetrau <https://socivitas.com/profile/peerteer>
diff --git a/cookienotice/cookienotice.css b/cookienotice/cookienotice.css
new file mode 100644 (file)
index 0000000..f258143
--- /dev/null
@@ -0,0 +1,49 @@
+/* Admin css */
+#cookienotice-label {
+       float: left;
+       width: 300px;
+       margin-top: 10px;
+}
+
+#cookienotice-text {
+       float: left;
+       margin-top: 10px;
+       width: 400px;
+       height: 150px;
+}
+
+#cookienotice-submit {
+       margin-top: 15px;
+}
+
+.cookienotice {
+       text-align: center;
+       width: 100%;
+       margin-top: 25px;
+       font-size: 20px;
+}
+
+/* Frontend css */
+#cookienotice-box {
+       display: none;
+       position: fixed;
+       z-index: 10000;
+       bottom: 0px;
+       left: 0;
+       width: 100%;
+       background-color: #101010;
+       color: #f0f0f0;
+       padding: 2em 1em;
+       text-align: center;
+}
+#cookienotice-box p {
+       max-width: 100%;
+}
+#cookienotice-ok-button {
+       border: 1px solid darkgoldenrod;
+       background-color: gold;
+       color: #101010;
+       min-width: 80px;
+       padding: .5em .1em;
+}
+
diff --git a/cookienotice/cookienotice.js b/cookienotice/cookienotice.js
new file mode 100644 (file)
index 0000000..0ab06c6
--- /dev/null
@@ -0,0 +1,36 @@
+window.addEventListener("load", function () {
+       var cookiename = 'cncookiesaccepted'
+       var cookie = getCookie(cookiename);
+
+       if (cookie == "") {
+               document.getElementById('cookienotice-box').style.display = 'block';
+               document.getElementById('cookienotice-ok-button').onclick = function () {
+                       setCookie(cookiename, 1, 365);
+                       document.getElementById('cookienotice-box').style.display = 'none';
+               };
+       }
+
+       function setCookie(cname, cvalue, exdays) {
+               var d = new Date();
+               d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
+               var expires = "expires=" + d.toUTCString();
+               document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
+       }
+
+       function getCookie(cname) {
+               var name = cname + "=";
+               var decodedCookie = decodeURIComponent(document.cookie);
+               var ca = decodedCookie.split(';');
+               for (var i = 0; i < ca.length; i++) {
+                       var c = ca[i];
+                       while (c.charAt(0) == ' ') {
+                               c = c.substring(1);
+                       }
+                       if (c.indexOf(name) == 0) {
+                               return c.substring(name.length, c.length);
+                       }
+               }
+               return "";
+       }
+
+});
diff --git a/cookienotice/cookienotice.php b/cookienotice/cookienotice.php
new file mode 100644 (file)
index 0000000..376de1a
--- /dev/null
@@ -0,0 +1,143 @@
+<?php
+
+/**
+ * Name: Cookie Notice
+ * Description: Configure, show and handle a simple cookie notice
+ * Version: 1.0
+ * Author: Peter Liebetrau <https://socivitas/profile/peerteer>
+ * 
+ */
+use Friendica\Core\Hook;
+use Friendica\Core\Config;
+use Friendica\Core\L10n;
+use Friendica\Core\Renderer;
+
+/**
+ * cookienotice_install
+ * registers hooks
+ * 
+ * @return void
+ */
+function cookienotice_install()
+{
+       Hook::register('page_content_top', __FILE__, 'cookienotice_page_content_top');
+       Hook::register('page_end', __FILE__, 'cookienotice_page_end');
+       Hook::register('addon_settings', __FILE__, 'cookienotice_addon_settings');
+       Hook::register('addon_settings_post', __FILE__, 'cookienotice_addon_settings_post');
+}
+
+/**
+ * cookienotice_uninstall
+ * unregisters hooks
+ * 
+ * @return void
+*/
+function cookienotice_uninstall()
+{
+       Hook::unregister('page_content_top', __FILE__, 'cookienotice_page_content_top');
+       Hook::unregister('page_end', __FILE__, 'cookienotice_page_end');
+       Hook::unregister('addon_settings', __FILE__, 'cookienotice_addon_settings');
+       Hook::unregister('addon_settings_post', __FILE__, 'cookienotice_addon_settings_post');
+}
+
+/**
+ * cookienotice_addon_settings
+ * addon_settings hook
+ * creates the admins config panel
+ * 
+ * @param \Friendica\App $a
+ * @param string $s The existing config panel html so far
+ * 
+ * @return void
+ */
+function cookienotice_addon_settings(\Friendica\App $a, &$s)
+{
+       if (!is_site_admin()) {
+               return;
+       }
+
+       /* Add our stylesheet to the page so we can make our settings look nice */
+       $stylesheetPath = 'addon/cookienotice/cookienotice.css';
+       $a->registerStylesheet($stylesheetPath);
+
+       $text = Config::get('cookienotice', 'text', L10n::t('This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.'));
+       $oktext = Config::get('cookienotice', 'oktext', L10n::t('OK'));
+
+       $t = Renderer::getMarkupTemplate("settings.tpl", "addon/cookienotice/");
+       $s .= Renderer::replaceMacros($t, [
+               '$title' => L10n::t('"cookienotice" Settings'),
+               '$description' => L10n::t('<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button.'),
+               '$text' => ['cookienotice-text', L10n::t('Cookie Usage Notice'), $text, L10n::t('The cookie usage notice')],
+               '$oktext' => ['cookienotice-oktext', L10n::t('OK Button Text'), $oktext, L10n::t('The OK Button text')],
+               '$submit' => L10n::t('Save Settings')
+       ]);
+
+       return;
+}
+
+/**
+ * cookienotice_addon_settings_post
+ * addon_settings_post hook
+ * handles the post request from the admin panel
+ * 
+ * @param \Friendica\App $a
+ * @param string $b
+ * 
+ * @return void
+ */
+function cookienotice_addon_settings_post(\Friendica\App $a, &$b)
+{
+       if (!is_site_admin()) {
+               return;
+       }
+
+       if ($_POST['cookienotice-submit']) {
+               Config::set('cookienotice', 'text', trim(strip_tags($_POST['cookienotice-text'])));
+               Config::set('cookienotice', 'oktext', trim(strip_tags($_POST['cookienotice-oktext'])));
+               info(L10n::t('cookienotice Settings saved.') . EOL);
+       }
+}
+
+/**
+ * cookienotice_page_content_top
+ * page_content_top hook
+ * adds css and scripts to the <head> section of the html
+ * 
+ * @param \Friendica\App $a
+ * @param string $b unnused - the header html incl. nav
+ * 
+ * @return void
+ */
+function cookienotice_page_content_top(\Friendica\App $a, &$b)
+{
+       $stylesheetPath = 'addon/cookienotice/cookienotice.css';
+       $footerscriptPath = 'addon/cookienotice/cookienotice.js';
+
+       $a->registerStylesheet($stylesheetPath);
+       $a->registerFooterScript($footerscriptPath);
+}
+
+/**
+ * cookienotice_page_end
+ * page_end hook
+ * ads our cookienotice box to the end of the html
+ * 
+ * @param \Friendica\App $a
+ * @param string $b the page html
+ * 
+ * @return void
+ */
+function cookienotice_page_end(\Friendica\App $a, &$b)
+{
+       $text = (string) Config::get('cookienotice', 'text', L10n::t('This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.'));
+       $oktext = (string) Config::get('cookienotice', 'oktext', L10n::t('OK'));
+
+       $page_end_tpl = Renderer::getMarkupTemplate("cookienotice.tpl", "addon/cookienotice/");
+
+       $page_end = Renderer::replaceMacros($page_end_tpl, [
+               '$text' => $text,
+               '$oktext' => $oktext,
+       ]);
+
+       $b .= $page_end;
+}
diff --git a/cookienotice/lang/C/messages.po b/cookienotice/lang/C/messages.po
new file mode 100644 (file)
index 0000000..7d198f8
--- /dev/null
@@ -0,0 +1,69 @@
+# ADDON cookienotice
+# Copyright (C) 
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-30 10:48+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: cookienotice.php:63
+msgid ""
+"This website uses cookies. If you continue browsing this website, you agree "
+"to the usage of cookies."
+msgstr ""
+
+#: cookienotice.php:64 cookienotice.php:133
+msgid "OK"
+msgstr ""
+
+#: cookienotice.php:68
+msgid "\"cookienotice\" Settings"
+msgstr ""
+
+#: cookienotice.php:69
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr ""
+
+#: cookienotice.php:70
+msgid "Cookie Usage Notice"
+msgstr ""
+
+#: cookienotice.php:70
+msgid "The cookie usage notice"
+msgstr ""
+
+#: cookienotice.php:71
+msgid "OK Button Text"
+msgstr ""
+
+#: cookienotice.php:71
+msgid "The OK Button text"
+msgstr ""
+
+#: cookienotice.php:72
+msgid "Save Settings"
+msgstr ""
+
+#: cookienotice.php:97
+msgid "cookienotice Settings saved."
+msgstr ""
+
+#: cookienotice.php:132
+msgid ""
+"This website uses cookies to recognize revisiting and logged in users. You "
+"accept the usage of these cookies by continue browsing this website."
+msgstr ""
diff --git a/cookienotice/lang/cs/messages.po b/cookienotice/lang/cs/messages.po
new file mode 100644 (file)
index 0000000..cae6e88
--- /dev/null
@@ -0,0 +1,81 @@
+# ADDON cookienotice
+# Copyright (C)
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+# 
+# Translators:
+# Aditoo, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-30 10:48+0100\n"
+"PO-Revision-Date: 2019-01-23 16:01+0000\n"
+"Last-Translator: Aditoo, 2019\n"
+"Language-Team: Czech (https://www.transifex.com/Friendica/teams/12172/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"
+
+#: cookienotice.php:63
+msgid ""
+"This website uses cookies. If you continue browsing this website, you agree "
+"to the usage of cookies."
+msgstr ""
+"Tato stránka používá cookies. Pokud budete pokračovat v používání této "
+"stránky, souhlasíte s používáním cookies."
+
+#: cookienotice.php:64 cookienotice.php:133
+msgid "OK"
+msgstr "OK"
+
+#: cookienotice.php:68
+msgid "\"cookienotice\" Settings"
+msgstr "Nastavení „cookienotice“"
+
+#: cookienotice.php:69
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr ""
+"<b>Nastavte si vaše oznámení o používání cookies.</b> Mělo by to být pouze "
+"oznámení říkající, že stránka používá cookies. Zobrazí se, dokud uživatel "
+"neklikne na tlačítko OK."
+
+#: cookienotice.php:70
+msgid "Cookie Usage Notice"
+msgstr "Oznámení o používání cookies"
+
+#: cookienotice.php:70
+msgid "The cookie usage notice"
+msgstr "Oznámení o používání cookies"
+
+#: cookienotice.php:71
+msgid "OK Button Text"
+msgstr "Text tlačítka OK"
+
+#: cookienotice.php:71
+msgid "The OK Button text"
+msgstr "Text tlačítka OK"
+
+#: cookienotice.php:72
+msgid "Save Settings"
+msgstr "Uložit nastavení"
+
+#: cookienotice.php:97
+msgid "cookienotice Settings saved."
+msgstr "Nastavení cookienotice uložena."
+
+#: cookienotice.php:132
+msgid ""
+"This website uses cookies to recognize revisiting and logged in users. You "
+"accept the usage of these cookies by continue browsing this website."
+msgstr ""
+"Tato stránka používá cookies pro rozpoznávání znovu navštěvujících a "
+"přihlášených uživatelů. Pokud budete pokračovat v používání této stránky, "
+"souhlasíte s používáním cookies."
diff --git a/cookienotice/lang/cs/strings.php b/cookienotice/lang/cs/strings.php
new file mode 100644 (file)
index 0000000..3a759f0
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+if(! function_exists("string_plural_select_cs")) {
+function string_plural_select_cs($n){
+       $n = intval($n);
+       return ($n == 1 && $n % 1 == 0) ? 0 : ($n >= 2 && $n <= 4 && $n % 1 == 0) ? 1: ($n % 1 != 0 ) ? 2 : 3;;
+}}
+;
+$a->strings["This website uses cookies. If you continue browsing this website, you agree to the usage of cookies."] = "Tato stránka používá cookies. Pokud budete pokračovat v používání této stránky, souhlasíte s používáním cookies.";
+$a->strings["OK"] = "OK";
+$a->strings["\"cookienotice\" Settings"] = "Nastavení „cookienotice“";
+$a->strings["<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "<b>Nastavte si vaše oznámení o používání cookies.</b> Mělo by to být pouze oznámení říkající, že stránka používá cookies. Zobrazí se, dokud uživatel neklikne na tlačítko OK.";
+$a->strings["Cookie Usage Notice"] = "Oznámení o používání cookies";
+$a->strings["The cookie usage notice"] = "Oznámení o používání cookies";
+$a->strings["OK Button Text"] = "Text tlačítka OK";
+$a->strings["The OK Button text"] = "Text tlačítka OK";
+$a->strings["Save Settings"] = "Uložit nastavení";
+$a->strings["cookienotice Settings saved."] = "Nastavení cookienotice uložena.";
+$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "Tato stránka používá cookies pro rozpoznávání znovu navštěvujících a přihlášených uživatelů. Pokud budete pokračovat v používání této stránky, souhlasíte s používáním cookies.";
diff --git a/cookienotice/lang/de/messages.po b/cookienotice/lang/de/messages.po
new file mode 100644 (file)
index 0000000..d7ddf17
--- /dev/null
@@ -0,0 +1,81 @@
+# ADDON cookienotice
+# Copyright (C)
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+# 
+# Translators:
+# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-30 10:48+0100\n"
+"PO-Revision-Date: 2019-01-23 16:01+0000\n"
+"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2019\n"
+"Language-Team: German (https://www.transifex.com/Friendica/teams/12172/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"
+
+#: cookienotice.php:63
+msgid ""
+"This website uses cookies. If you continue browsing this website, you agree "
+"to the usage of cookies."
+msgstr ""
+"Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite "
+"stimmen Sie dieser Verwendung zu."
+
+#: cookienotice.php:64 cookienotice.php:133
+msgid "OK"
+msgstr "OK"
+
+#: cookienotice.php:68
+msgid "\"cookienotice\" Settings"
+msgstr "\"cookienotice\" Einstellungen"
+
+#: cookienotice.php:69
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr ""
+"<b>Konfiguriere deinen Cookie Nutzungshinweis.</b> Es sollte ein Hinweis "
+"sein, der sagt dass die Webseite Cookies benutzt. Er wird solange angezeigt,"
+" bis der User den Hinweis mit klicken des OK Buttons bestätigt."
+
+#: cookienotice.php:70
+msgid "Cookie Usage Notice"
+msgstr "Cookie Nutzungshinweis"
+
+#: cookienotice.php:70
+msgid "The cookie usage notice"
+msgstr "Der Hinweis zur Nutzung von Cookies"
+
+#: cookienotice.php:71
+msgid "OK Button Text"
+msgstr "OK Button Text"
+
+#: cookienotice.php:71
+msgid "The OK Button text"
+msgstr "Der für den Ok Button verwendete Text"
+
+#: cookienotice.php:72
+msgid "Save Settings"
+msgstr "Einstellungen speichern"
+
+#: cookienotice.php:97
+msgid "cookienotice Settings saved."
+msgstr "cookienotice Einstellungen wurden gespeichert"
+
+#: cookienotice.php:132
+msgid ""
+"This website uses cookies to recognize revisiting and logged in users. You "
+"accept the usage of these cookies by continue browsing this website."
+msgstr ""
+"Diese Webseite verwendet Cookies zur Erkennung von wiederkehrenden Besuchern"
+" und eingeloggten Nutzern. Durch die weitere Benutzung der Webseite "
+"akzeptieren sie die Verwendung der Cookies."
diff --git a/cookienotice/lang/de/strings.php b/cookienotice/lang/de/strings.php
new file mode 100644 (file)
index 0000000..531809b
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+if(! function_exists("string_plural_select_de")) {
+function string_plural_select_de($n){
+       $n = intval($n);
+       return ($n != 1);;
+}}
+;
+$a->strings["This website uses cookies. If you continue browsing this website, you agree to the usage of cookies."] = "Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite stimmen Sie dieser Verwendung zu.";
+$a->strings["OK"] = "OK";
+$a->strings["\"cookienotice\" Settings"] = "\"cookienotice\" Einstellungen";
+$a->strings["<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "<b>Konfiguriere deinen Cookie Nutzungshinweis.</b> Es sollte ein Hinweis sein, der sagt dass die Webseite Cookies benutzt. Er wird solange angezeigt, bis der User den Hinweis mit klicken des OK Buttons bestätigt.";
+$a->strings["Cookie Usage Notice"] = "Cookie Nutzungshinweis";
+$a->strings["The cookie usage notice"] = "Der Hinweis zur Nutzung von Cookies";
+$a->strings["OK Button Text"] = "OK Button Text";
+$a->strings["The OK Button text"] = "Der für den Ok Button verwendete Text";
+$a->strings["Save Settings"] = "Einstellungen speichern";
+$a->strings["cookienotice Settings saved."] = "cookienotice Einstellungen wurden gespeichert";
+$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "Diese Webseite verwendet Cookies zur Erkennung von wiederkehrenden Besuchern und eingeloggten Nutzern. Durch die weitere Benutzung der Webseite akzeptieren sie die Verwendung der Cookies.";
diff --git a/cookienotice/lang/fr/messages.po b/cookienotice/lang/fr/messages.po
new file mode 100644 (file)
index 0000000..65ed0d2
--- /dev/null
@@ -0,0 +1,57 @@
+# ADDON cookienotice
+# Copyright (C)
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+# 
+# Translators:
+# Vladimir Núñez <lapoubelle111@gmail.com>, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-20 14:51+0100\n"
+"PO-Revision-Date: 2019-01-23 16:01+0000\n"
+"Last-Translator: Vladimir Núñez <lapoubelle111@gmail.com>, 2019\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"
+
+#: cookienotice.php:53
+msgid "\"cookienotice\" Settings"
+msgstr ""
+
+#: cookienotice.php:54
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr ""
+
+#: cookienotice.php:55
+msgid "Cookie Usage Notice"
+msgstr ""
+
+#: cookienotice.php:55
+msgid "The cookie usage notice"
+msgstr ""
+
+#: cookienotice.php:56
+msgid "OK Button Text"
+msgstr "Bouton OK Texte "
+
+#: cookienotice.php:56
+msgid "The OK Button text"
+msgstr ""
+
+#: cookienotice.php:57
+msgid "Save Settings"
+msgstr ""
+
+#: cookienotice.php:72
+msgid "cookienotice Settings saved."
+msgstr ""
diff --git a/cookienotice/lang/fr/strings.php b/cookienotice/lang/fr/strings.php
new file mode 100644 (file)
index 0000000..f975f49
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+if(! function_exists("string_plural_select_fr")) {
+function string_plural_select_fr($n){
+       $n = intval($n);
+       return ($n > 1);;
+}}
+;
+$a->strings["\"cookienotice\" Settings"] = "";
+$a->strings["<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "";
+$a->strings["Cookie Usage Notice"] = "";
+$a->strings["The cookie usage notice"] = "";
+$a->strings["OK Button Text"] = "Bouton OK Texte ";
+$a->strings["The OK Button text"] = "";
+$a->strings["Save Settings"] = "";
+$a->strings["cookienotice Settings saved."] = "";
diff --git a/cookienotice/lang/nl/messages.po b/cookienotice/lang/nl/messages.po
new file mode 100644 (file)
index 0000000..a074533
--- /dev/null
@@ -0,0 +1,73 @@
+# ADDON cookienotice
+# Copyright (C)
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+# 
+# Translators:
+# Rik 4 <rikviergever@hotmail.com>, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-30 10:48+0100\n"
+"PO-Revision-Date: 2019-01-23 16:01+0000\n"
+"Last-Translator: Rik 4 <rikviergever@hotmail.com>, 2019\n"
+"Language-Team: Dutch (https://www.transifex.com/Friendica/teams/12172/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"
+
+#: cookienotice.php:63
+msgid ""
+"This website uses cookies. If you continue browsing this website, you agree "
+"to the usage of cookies."
+msgstr ""
+
+#: cookienotice.php:64 cookienotice.php:133
+msgid "OK"
+msgstr ""
+
+#: cookienotice.php:68
+msgid "\"cookienotice\" Settings"
+msgstr ""
+
+#: cookienotice.php:69
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr ""
+
+#: cookienotice.php:70
+msgid "Cookie Usage Notice"
+msgstr ""
+
+#: cookienotice.php:70
+msgid "The cookie usage notice"
+msgstr ""
+
+#: cookienotice.php:71
+msgid "OK Button Text"
+msgstr "OK knop tekst"
+
+#: cookienotice.php:71
+msgid "The OK Button text"
+msgstr ""
+
+#: cookienotice.php:72
+msgid "Save Settings"
+msgstr ""
+
+#: cookienotice.php:97
+msgid "cookienotice Settings saved."
+msgstr ""
+
+#: cookienotice.php:132
+msgid ""
+"This website uses cookies to recognize revisiting and logged in users. You "
+"accept the usage of these cookies by continue browsing this website."
+msgstr ""
diff --git a/cookienotice/lang/nl/strings.php b/cookienotice/lang/nl/strings.php
new file mode 100644 (file)
index 0000000..fe82406
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+if(! function_exists("string_plural_select_nl")) {
+function string_plural_select_nl($n){
+       $n = intval($n);
+       return ($n != 1);;
+}}
+;
+$a->strings["This website uses cookies. If you continue browsing this website, you agree to the usage of cookies."] = "";
+$a->strings["OK"] = "";
+$a->strings["\"cookienotice\" Settings"] = "";
+$a->strings["<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "";
+$a->strings["Cookie Usage Notice"] = "";
+$a->strings["The cookie usage notice"] = "";
+$a->strings["OK Button Text"] = "OK knop tekst";
+$a->strings["The OK Button text"] = "";
+$a->strings["Save Settings"] = "";
+$a->strings["cookienotice Settings saved."] = "";
+$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "";
diff --git a/cookienotice/lang/pl/messages.po b/cookienotice/lang/pl/messages.po
new file mode 100644 (file)
index 0000000..be47f83
--- /dev/null
@@ -0,0 +1,81 @@
+# ADDON cookienotice
+# Copyright (C)
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+# 
+# Translators:
+# Waldemar Stoczkowski, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-30 10:48+0100\n"
+"PO-Revision-Date: 2019-01-23 16:01+0000\n"
+"Last-Translator: Waldemar Stoczkowski, 2019\n"
+"Language-Team: Polish (https://www.transifex.com/Friendica/teams/12172/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"
+
+#: cookienotice.php:63
+msgid ""
+"This website uses cookies. If you continue browsing this website, you agree "
+"to the usage of cookies."
+msgstr ""
+"Ta strona używa plików cookie. Jeśli będziesz kontynuować przeglądanie tej "
+"strony, zgadzasz się na użycie plików cookie."
+
+#: cookienotice.php:64 cookienotice.php:133
+msgid "OK"
+msgstr "OK"
+
+#: cookienotice.php:68
+msgid "\"cookienotice\" Settings"
+msgstr "Ustawienia \"plików cookie\""
+
+#: cookienotice.php:69
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr ""
+"<b>Skonfiguruj zawiadomienie o użyciu plików cookie.</b> Powinien to być po "
+"prostu komunikat, że strona korzysta z plików cookie. Jest wyświetlany, o "
+"ile użytkownik nie potwierdził, klikając przycisk OK."
+
+#: cookienotice.php:70
+msgid "Cookie Usage Notice"
+msgstr "Użyciu plików cookie"
+
+#: cookienotice.php:70
+msgid "The cookie usage notice"
+msgstr "Powiadomienie o użyciu plików cookie"
+
+#: cookienotice.php:71
+msgid "OK Button Text"
+msgstr "Tekst przycisku OK"
+
+#: cookienotice.php:71
+msgid "The OK Button text"
+msgstr "Tekst przycisku OK"
+
+#: cookienotice.php:72
+msgid "Save Settings"
+msgstr "Zapisz ustawienia"
+
+#: cookienotice.php:97
+msgid "cookienotice Settings saved."
+msgstr "Zapisano stawienia plików cookie."
+
+#: cookienotice.php:132
+msgid ""
+"This website uses cookies to recognize revisiting and logged in users. You "
+"accept the usage of these cookies by continue browsing this website."
+msgstr ""
+"Ta strona używa plików cookie do rozpoznawania ponownych odwiedzin i "
+"zalogowanych użytkowników. Akceptujesz użycie tych plików cookie, "
+"kontynuując przeglądanie tej witryny."
diff --git a/cookienotice/lang/pl/strings.php b/cookienotice/lang/pl/strings.php
new file mode 100644 (file)
index 0000000..3643e5a
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+if(! function_exists("string_plural_select_pl")) {
+function string_plural_select_pl($n){
+       $n = intval($n);
+       return ($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);;
+}}
+;
+$a->strings["This website uses cookies. If you continue browsing this website, you agree to the usage of cookies."] = "Ta strona używa plików cookie. Jeśli będziesz kontynuować przeglądanie tej strony, zgadzasz się na użycie plików cookie.";
+$a->strings["OK"] = "OK";
+$a->strings["\"cookienotice\" Settings"] = "Ustawienia \"plików cookie\"";
+$a->strings["<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "<b>Skonfiguruj zawiadomienie o użyciu plików cookie.</b> Powinien to być po prostu komunikat, że strona korzysta z plików cookie. Jest wyświetlany, o ile użytkownik nie potwierdził, klikając przycisk OK.";
+$a->strings["Cookie Usage Notice"] = "Użyciu plików cookie";
+$a->strings["The cookie usage notice"] = "Powiadomienie o użyciu plików cookie";
+$a->strings["OK Button Text"] = "Tekst przycisku OK";
+$a->strings["The OK Button text"] = "Tekst przycisku OK";
+$a->strings["Save Settings"] = "Zapisz ustawienia";
+$a->strings["cookienotice Settings saved."] = "Zapisano stawienia plików cookie.";
+$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "Ta strona używa plików cookie do rozpoznawania ponownych odwiedzin i zalogowanych użytkowników. Akceptujesz użycie tych plików cookie, kontynuując przeglądanie tej witryny.";
diff --git a/cookienotice/lang/zh-cn/messages.po b/cookienotice/lang/zh-cn/messages.po
new file mode 100644 (file)
index 0000000..5b04791
--- /dev/null
@@ -0,0 +1,73 @@
+# ADDON cookienotice
+# Copyright (C)
+# This file is distributed under the same license as the Friendica cookienotice addon package.
+# 
+# 
+# Translators:
+# 朱陈锬 <tangenters@outlook.com>, 2019
+# 
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-01-30 10:48+0100\n"
+"PO-Revision-Date: 2019-01-23 16:01+0000\n"
+"Last-Translator: 朱陈锬 <tangenters@outlook.com>, 2019\n"
+"Language-Team: Chinese (China) (https://www.transifex.com/Friendica/teams/12172/zh_CN/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: zh_CN\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: cookienotice.php:63
+msgid ""
+"This website uses cookies. If you continue browsing this website, you agree "
+"to the usage of cookies."
+msgstr "本网站将使用 cookies。如果您继续浏览本网站,即表示您同意使用 cookies。"
+
+#: cookienotice.php:64 cookienotice.php:133
+msgid "OK"
+msgstr "好的"
+
+#: cookienotice.php:68
+msgid "\"cookienotice\" Settings"
+msgstr "“cookie 布告”设置"
+
+#: cookienotice.php:69
+msgid ""
+"<b>Configure your cookie usage notice.</b> It should just be a notice, "
+"saying that the website uses cookies. It is shown as long as a user didnt "
+"confirm clicking the OK button."
+msgstr "<b>配置您的 cookie 使用布告。</b> 它将会显示一条布告称此网站使用 cookies 。它将会一直显示直到用户点击确定按钮。"
+
+#: cookienotice.php:70
+msgid "Cookie Usage Notice"
+msgstr "Cookie 使用布告"
+
+#: cookienotice.php:70
+msgid "The cookie usage notice"
+msgstr "cookie 使用布告"
+
+#: cookienotice.php:71
+msgid "OK Button Text"
+msgstr "确认按钮文本"
+
+#: cookienotice.php:71
+msgid "The OK Button text"
+msgstr "确认按钮文本"
+
+#: cookienotice.php:72
+msgid "Save Settings"
+msgstr "保存设置"
+
+#: cookienotice.php:97
+msgid "cookienotice Settings saved."
+msgstr "cookies 布告设置已保存"
+
+#: cookienotice.php:132
+msgid ""
+"This website uses cookies to recognize revisiting and logged in users. You "
+"accept the usage of these cookies by continue browsing this website."
+msgstr "本网站使用 cookies 来识别登录和重访的用户。如果您继续浏览本网站即表示您接受使用上述 cookies。"
diff --git a/cookienotice/lang/zh-cn/strings.php b/cookienotice/lang/zh-cn/strings.php
new file mode 100644 (file)
index 0000000..3036b5b
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+if(! function_exists("string_plural_select_zh_cn")) {
+function string_plural_select_zh_cn($n){
+       $n = intval($n);
+       return 0;;
+}}
+;
+$a->strings["This website uses cookies. If you continue browsing this website, you agree to the usage of cookies."] = "本网站将使用 cookies。如果您继续浏览本网站,即表示您同意使用 cookies。";
+$a->strings["OK"] = "好的";
+$a->strings["\"cookienotice\" Settings"] = "“cookie 布告”设置";
+$a->strings["<b>Configure your cookie usage notice.</b> It should just be a notice, saying that the website uses cookies. It is shown as long as a user didnt confirm clicking the OK button."] = "<b>配置您的 cookie 使用布告。</b> 它将会显示一条布告称此网站使用 cookies 。它将会一直显示直到用户点击确定按钮。";
+$a->strings["Cookie Usage Notice"] = "Cookie 使用布告";
+$a->strings["The cookie usage notice"] = "cookie 使用布告";
+$a->strings["OK Button Text"] = "确认按钮文本";
+$a->strings["The OK Button text"] = "确认按钮文本";
+$a->strings["Save Settings"] = "保存设置";
+$a->strings["cookienotice Settings saved."] = "cookies 布告设置已保存";
+$a->strings["This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website."] = "本网站使用 cookies 来识别登录和重访的用户。如果您继续浏览本网站即表示您接受使用上述 cookies。";
diff --git a/cookienotice/templates/cookienotice.tpl b/cookienotice/templates/cookienotice.tpl
new file mode 100644 (file)
index 0000000..71e88c0
--- /dev/null
@@ -0,0 +1,2 @@
+<div id="cookienotice-box"><p>{{$text}}</p><button id="cookienotice-ok-button">{{$oktext}}</button></div>
+
diff --git a/cookienotice/templates/settings.tpl b/cookienotice/templates/settings.tpl
new file mode 100644 (file)
index 0000000..99489b9
--- /dev/null
@@ -0,0 +1,15 @@
+<span id="settings_cookienotice_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose('settings_cookienotice_expanded'); openClose('settings_cookienotice_inflated');">
+       <h3>{{$title}}</h3>
+</span>
+<div id="settings_cookienotice_expanded" class="settings-block" style="display: none;">
+       <span class="fakelink" onclick="openClose('settings_cookienotice_expanded'); openClose('settings_cookienotice_inflated');">
+               <h3>{{$title}}</h3>
+       </span>
+       <p>{{$description nofilter}}</p>
+       {{include file="field_textarea.tpl" field=$text}}
+       {{include file="field_input.tpl" field=$oktext}}
+       <div class="settings-submit-wrapper" >
+               <input type="submit" id="cookienotice-submit" name="cookienotice-submit" class="settings-submit" value="{{$submit}}" />
+       </div>
+</div>
+<div class="clear"></div>
index 4c24007caffb05dc7b19034d398c6dc11f8409f6..6d7edc06b3dea3d1d1944ab79bf1751c95aa2555 100644 (file)
@@ -9,8 +9,6 @@
  *
  */
 
-require_once 'include/text.php';
-
 use Friendica\App;
 use Friendica\Core\Cache;
 use Friendica\Core\Config;
index c07f072cc17069b2f1bf1176d09030b9e461d014..a96ba422fa3d3ca738f3686e81e6bbcaa593471f 100644 (file)
@@ -15,15 +15,11 @@ use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
-use Friendica\Model\Contact;
 use Friendica\Model\Profile;
+use Friendica\Model\User;
 use Friendica\Util\Strings;
 use Friendica\Util\Temporal;
 
-require_once 'boot.php';
-require_once 'include/dba.php';
-require_once 'include/text.php';
-
 function forumdirectory_install()
 {
        Hook::register('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu');
@@ -165,11 +161,11 @@ function forumdirectory_content(App $a)
                        }
 
                        switch ($rr['page-flags']) {
-                               case Contact::PAGE_NORMAL   : $page_type = "Personal Profile"; break;
-                               case Contact::PAGE_SOAPBOX  : $page_type = "Fan Page"        ; break;
-                               case Contact::PAGE_COMMUNITY: $page_type = "Community Forum" ; break;
-                               case Contact::PAGE_FREELOVE : $page_type = "Open Forum"      ; break;
-                               case Contact::PAGE_PRVGROUP : $page_type = "Private Group"   ; break;
+                               case User::PAGE_FLAGS_NORMAL   : $page_type = "Personal Profile"; break;
+                               case User::PAGE_FLAGS_SOAPBOX  : $page_type = "Fan Page"        ; break;
+                               case User::PAGE_FLAGS_COMMUNITY: $page_type = "Community Forum" ; break;
+                               case User::PAGE_FLAGS_FREELOVE : $page_type = "Open Forum"      ; break;
+                               case User::PAGE_FLAGS_PRVGROUP : $page_type = "Private Group"   ; break;
                        }
 
                        $profile = $rr;
index 61b165d71cf695e8992fe341c6d82d50700e3360..5ffa6405b8906eac53e58c7c54f51fb3489076db 100644 (file)
@@ -36,7 +36,7 @@
                        </div>
                </div>
                <div class="forumdirectory-copy-wrapper" id="forumdirectory-copy-wrapper-{{$id}}" >
-                       {{if $about}}<dl class="forumdirectory-copy"><dt class="forumdirectory-copy-label">{{$about}}</dt><dd class="forumdirectory-copy-data">{{$profile.about}}</dd></dl>{{/if}}
+                       {{if $about}}<dl class="forumdirectory-copy"><dt class="forumdirectory-copy-label">{{$about}}</dt><dd class="forumdirectory-copy-data">{{$profile.about nofilter}}</dd></dl>{{/if}}
                </div>
        </div>
 </div>
index 28cb76022f735b988ff356873b983a8c40c205e5..245766ddd6f796b152f35c6d55c454adbfa0484e 100644 (file)
@@ -4,7 +4,7 @@
  * Description: Imports posts from a Google+ account and repeats them
  * Version: 0.1
  * Author: Michael Vogel <ike@piratenpartei.de>
- *
+ * Status: unsupported
  */
 
 define('FROMGPLUS_DEFAULT_POLL_INTERVAL', 30); // given in minutes
@@ -23,8 +23,6 @@ use Friendica\Model\Item;
 
 require_once 'mod/share.php';
 require_once 'mod/parse_url.php';
-require_once 'include/text.php';
-
 function fromgplus_install() {
        Hook::register('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
        Hook::register('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
@@ -320,8 +318,6 @@ function fromgplus_cleantext($text) {
 }
 
 function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
-       require_once 'include/items.php';
-
        $post = "";
        $quote = "";
        $pagedata = [];
index a18914994a0b705307b14c77104ccdd127a48856..3bb55f3568b99362a5585442e92da12f88ed4b71 100644 (file)
@@ -7,9 +7,6 @@
  * Author: Michael Vogel <https://pirati.ca/profile/heluecht>
  */
 require_once 'mod/item.php';
-require_once 'include/items.php';
-require_once 'include/text.php';
-
 use Friendica\App;
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
@@ -168,7 +165,7 @@ function ifttt_post(App $a)
 
 function ifttt_message($uid, $item)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $_SESSION['authenticated'] = true;
        $_SESSION['uid'] = $uid;
index 07a0e073de23ddfcef8ec2f1ecabcace923a493a..c4f45a0d642bfea021cb8d1a56d3bd8d3f8fbc65 100644 (file)
@@ -33,7 +33,7 @@ function impressum_uninstall() {
 function impressum_module() {
 }
 function impressum_content() {
-    $a = get_app();
+    $a = \get_app();
     $a->internalRedirect('friendica/');
 }
 
index 13e0cf42edb51f1affebdd921bc42fe2dfc46446..f11e9b1195643314ac21f698a7c2977524dd8be3 100644 (file)
@@ -203,8 +203,8 @@ function jappixmini_init()
                        exit();
                }
 
-               $encrypt_func = openssl_public_encrypt;
-               $decrypt_func = openssl_public_decrypt;
+               $encrypt_func = 'openssl_public_encrypt';
+               $decrypt_func = 'openssl_public_decrypt';
                $key = $r[0]["pubkey"];
        } else if ($role == "prv") {
                $r = q("SELECT * FROM `contact` WHERE LENGTH(`prvkey`) AND `issued-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
@@ -212,8 +212,8 @@ function jappixmini_init()
                        exit();
                }
 
-               $encrypt_func = openssl_private_encrypt;
-               $decrypt_func = openssl_private_decrypt;
+               $encrypt_func = 'openssl_private_encrypt';
+               $decrypt_func = 'openssl_private_decrypt';
                $key = $r[0]["prvkey"];
        } else {
                exit();
@@ -606,14 +606,14 @@ function jappixmini_cron(App $a, $d)
                        $dfrn_id = $contact_row["dfrn-id"];
                        if ($dfrn_id) {
                                $key = $contact_row["pubkey"];
-                               $encrypt_func = openssl_public_encrypt;
-                               $decrypt_func = openssl_public_decrypt;
+                               $encrypt_func = 'openssl_public_encrypt';
+                               $decrypt_func = 'openssl_public_decrypt';
                                $role = "prv";
                        } else {
                                $dfrn_id = $contact_row["issued-id"];
                                $key = $contact_row["prvkey"];
-                               $encrypt_func = openssl_private_encrypt;
-                               $decrypt_func = openssl_private_decrypt;
+                               $encrypt_func = 'openssl_private_encrypt';
+                               $decrypt_func = 'openssl_private_decrypt';
                                $role = "pub";
                        }
 
@@ -666,7 +666,7 @@ function jappixmini_cron(App $a, $d)
 
                                // parse answer
                                $answer = json_decode($answer_json);
-                               if ($answer->status != "ok") {
+                               if (empty($answer->status) || ($answer->status != "ok")) {
                                        throw new Exception();
                                }
 
index e690e762ff6ede59ec5b56c10e321d50347a500a..4b1725e8ccdabd7d3cf98d66f2e28a3a008e348f 100644 (file)
@@ -4,14 +4,15 @@
 # 
 # 
 # Translators:
+# Abraham Pérez Hernández <abrahamph@nauta.cu>, 2019
 # Albert, 2016,2018
 msgid ""
 msgstr ""
 "Project-Id-Version: friendica\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2018-04-01 11:11-0400\n"
-"PO-Revision-Date: 2018-05-19 20:47+0000\n"
-"Last-Translator: Albert\n"
+"PO-Revision-Date: 2019-01-22 18:31+0000\n"
+"Last-Translator: Abraham Pérez Hernández <abrahamph@nauta.cu>\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"
@@ -46,14 +47,14 @@ msgstr "Lista de abreviaciones (códigos iso2) para los idiomas que habla, separ
 
 #: langfilter.php:62
 msgid "Minimum confidence in language detection"
-msgstr "Mínima confianza en la detección de idioma"
+msgstr "Confianza mínima en la detección de idioma"
 
 #: langfilter.php:62
 msgid ""
 "Minimum confidence in language detection being correct, from 0 to 100. Posts"
 " will not be filtered when the confidence of language detection is below "
 "this percent value."
-msgstr "Mínima confianza en que la detección de idioma sea correcta, de 0 a 100. Las entradas no se filtrarán cuando la confianza de la detección del idioma es inferior a su valor de porcentaje."
+msgstr "Confianza mínima en que la detección de idioma sea correcta, de 0 a 100. Las entradas no se filtrarán cuando la confianza de la detección del idioma es inferior a su valor de porcentaje."
 
 #: langfilter.php:63
 msgid "Minimum length of message body"
index ca137deb9fe1c1091cbfc31c59f3fa4118237d1b..b3ff9333ce59d07f622f250215fac3c0b27bfebe 100644 (file)
@@ -11,8 +11,8 @@ $a->strings["This addon tries to identify the language posts are writen in. If i
 $a->strings["Use the language filter"] = "Usar el filtro de idioma";
 $a->strings["Able to read"] = "Capaz de leer";
 $a->strings["List of abbreviations (iso2 codes) for languages you speak, comma separated. For example \"de,it\"."] = "Lista de abreviaciones (códigos iso2) para los idiomas que habla, separadas por comas. Por ejemplo \"de,it\".";
-$a->strings["Minimum confidence in language detection"] = "Mínima confianza en la detección de idioma";
-$a->strings["Minimum confidence in language detection being correct, from 0 to 100. Posts will not be filtered when the confidence of language detection is below this percent value."] = "Mínima confianza en que la detección de idioma sea correcta, de 0 a 100. Las entradas no se filtrarán cuando la confianza de la detección del idioma es inferior a su valor de porcentaje.";
+$a->strings["Minimum confidence in language detection"] = "Confianza mínima en la detección de idioma";
+$a->strings["Minimum confidence in language detection being correct, from 0 to 100. Posts will not be filtered when the confidence of language detection is below this percent value."] = "Confianza mínima en que la detección de idioma sea correcta, de 0 a 100. Las entradas no se filtrarán cuando la confianza de la detección del idioma es inferior a su valor de porcentaje.";
 $a->strings["Minimum length of message body"] = "Longitud mínima del cuerpo del mensaje";
 $a->strings["Minimum number of characters in message body for filter to be used. Posts shorter than this will not be filtered. Note: Language detection is unreliable for short content (<200 characters)."] = "Número mínimo de caracteres en el cuerpo del mensaje para que se use el filtro. Las publicaciones más cortas que esto no serán filtradas. Nota: La detección de idioma no es fiable para contenido corto (<200 caracteres).";
 $a->strings["Save Settings"] = "Guardar Ajustes";
diff --git a/leistungsschutzrecht/README.md b/leistungsschutzrecht/README.md
new file mode 100644 (file)
index 0000000..7026af5
--- /dev/null
@@ -0,0 +1,16 @@
+Leistungsschutzrecht Addon
+==========================
+
+Main author Michael Vogel
+
+This addon handles legal problems with the German link tax, named "Leistungsschutzrecht" by shortening preview texts.
+Additionally it is possibly to suppress preview pictures completely to avoid any legal problems.
+
+## configuration
+
+If you want to suppress pictures in previews, add this to your global `config/addon.config.php`:
+
+       'leistungsschutzrecht' => [
+               'suppress_photos' => true,
+       ],
+
index b4c9488f6da1754da295224aa1826fbb750a1a4c..5d47bade90901b9bf00482f2148479bea94fa669 100644 (file)
@@ -24,22 +24,24 @@ function leistungsschutzrecht_uninstall() {
 }
 
 function leistungsschutzrecht_getsiteinfo($a, &$siteinfo) {
-       if (!isset($siteinfo["url"])) {
+       if (!isset($siteinfo["url"]) || empty($siteinfo['type'])) {
                return;
        }
 
+       // Avoid any third party pictures, to avoid copyright issues
+       if (!in_array($siteinfo['type'], ['photo', 'video']) && Config::get('leistungsschutzrecht', 'suppress_photos', false)) {
+               unset($siteinfo["image"]);
+               unset($siteinfo["images"]);
+       }
+
        if (!leistungsschutzrecht_is_member_site($siteinfo["url"])) {
                return;
        }
 
-       //$siteinfo["title"] = $siteinfo["url"];
-
        if (!empty($siteinfo["text"])) {
                $siteinfo["text"] = leistungsschutzrecht_cuttext($siteinfo["text"]);
        }
 
-       unset($siteinfo["image"]);
-       unset($siteinfo["images"]);
        unset($siteinfo["keywords"]);
 }
 
index b00c72ed677ce771251a5c150938b553ade109fc..4f86e7045bbc84c4d8c741d8b743333df981711a 100644 (file)
@@ -154,17 +154,19 @@ function mailstream_do_images($a, &$item, &$attachments) {
                return;
        }
        $attachments = [];
-       $baseurl = $a->getBaseURL();
        preg_match_all("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", $item["body"], $matches1);
        preg_match_all("/\[img\](.*?)\[\/img\]/ism", $item["body"], $matches2);
        foreach (array_merge($matches1[3], $matches2[1]) as $url) {
-               $redirects;
+               $redirects = 0;
                $cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-');
+               $curlResult = Network::fetchUrlFull($url, true, $redirects, 0, null, $cookiejar);
                $attachments[$url] = [
-                       'data' => Network::fetchUrl($url, true, $redirects, 0, null, $cookiejar),
+                       'data' => $curlResult->getBody(),
                        'guid' => hash("crc32", $url),
                        'filename' => basename($url),
-                       'type' => $a->get_curl_content_type()];
+                       'type' => $curlResult->getContentType()
+               ];
+
                if (strlen($attachments[$url]['data'])) {
                        $item['body'] = str_replace($url, 'cid:' . $attachments[$url]['guid'], $item['body']);
                        continue;
index a36729cef92e4f81d8e5f7007b89dbea60ea37ed..526ca4ef5267080531e4f7729fefb1e99b91a219 100644 (file)
@@ -3,7 +3,7 @@
  *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
  *
  *}}
-<div class="mailstream-item-body">{{$item.body}}</div>
+<div class="mailstream-item-body">{{$item.body nofilter}}</div>
 {{if $item.plink}}
 <div>{{$upstream}}: <a class="mailstream-item-plink" href="{{$item.plink}}">{{$item.plink}}</a><div>
 <div>{{$local}}: <a class="mailstream-item-url" href="{{$item.url}}">{{$item.url}}</a></div>
index 98bdb85eddb47a335bf041503ad849138399b89e..e26e5a2b9db8a1085665fa1df2e82d04b0b3fc6a 100644 (file)
@@ -6,7 +6,7 @@
        <span class="fakelink" onclick="openClose('settings_mathjax_expanded'); openClose('settings_mathjax_inflated');">
                <h3>{{$title}}</h3>
        </span>
-       <p>{{$description}}</p>
+       <p>{{$description nofilter}}</p>
        {{include file="field_checkbox.tpl" field=$mathjax_use}}
        <div class="clear"></div>
 
index d8615315faa105f8ea5e7e31d3157828dc675ad4..85a4457a1b68758ff18cf2ea7543bb94c1ca3d7c 100644 (file)
@@ -6,6 +6,7 @@
 # Translators:
 # Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018
 # Vinzenz Vietzke <vinz@vinzv.de>, 2018
+# Copiis Praeesse <richard@zsemberi.de>, 2019
 # 
 #, fuzzy
 msgid ""
@@ -14,7 +15,7 @@ msgstr ""
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2018-08-07 15:04+0200\n"
 "PO-Revision-Date: 2018-08-07 18:18+0000\n"
-"Last-Translator: Vinzenz Vietzke <vinz@vinzv.de>, 2018\n"
+"Last-Translator: Copiis Praeesse <richard@zsemberi.de>, 2019\n"
 "Language-Team: German (https://www.transifex.com/Friendica/teams/12172/de/)\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -80,11 +81,11 @@ msgstr "Nonne"
 
 #: morechoice.php:48
 msgid "Soft butch"
-msgstr ""
+msgstr "zarter Butch"
 
 #: morechoice.php:49
 msgid "Stone femme"
-msgstr ""
+msgstr "steinerne Femme"
 
 #: morechoice.php:50
 msgid "Tomboy"
index c1ea3ba67ef26967491dccb6875a56ad165becd7..cf64f1f9a8aa187e6338f7d338d04b38bace2367 100644 (file)
@@ -20,8 +20,8 @@ $a->strings["Lipstick lesbian"] = "Lippenstift Lesbe";
 $a->strings["Metrosexual"] = "Metrosexuell";
 $a->strings["Monk"] = "Mönch";
 $a->strings["Nun"] = "Nonne";
-$a->strings["Soft butch"] = "";
-$a->strings["Stone femme"] = "";
+$a->strings["Soft butch"] = "zarter Butch";
+$a->strings["Stone femme"] = "steinerne Femme";
 $a->strings["Tomboy"] = "Tomboy";
 $a->strings["Transman"] = "Transmann";
 $a->strings["Transwoman"] = "Transfrau";
index 51c426cc5d9e7558856796fafef254b3560f1a9f..58e54908c87c887b5c9175887574ea12837aebfd 100644 (file)
@@ -14,6 +14,7 @@ use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
+use Friendica\Core\System;
 use Friendica\Util\Emailer;
 
 function notifyall_install()
index ec46e27141d23152625fd3863e39b583e0a362f2..2dcefe8531fd7bf6c591d7577e3e92ecb3c1c0d7 100644 (file)
@@ -58,7 +58,6 @@ function public_server_cron($a, $b)
 {
        Logger::log("public_server: cron start");
 
-       require_once('include/enotify.php');
        $r = q("SELECT * FROM `user` WHERE `account_expires_on` < UTC_TIMESTAMP() + INTERVAL 5 DAY AND
                `account_expires_on` > '%s' AND
                `expire_notification_sent` <= '%s'",
index e289256821084ff016bffced681553d58d154387..d8a2c546f1fe0d69501cffd999c2495a087774b5 100644 (file)
@@ -30,7 +30,6 @@ use Friendica\Util\XML;
 
 require 'addon/pumpio/oauth/http.php';
 require 'addon/pumpio/oauth/oauth_client.php';
-require_once 'include/enotify.php';
 require_once "mod/share.php";
 
 define('PUMPIO_DEFAULT_POLL_INTERVAL', 5); // given in minutes
index 9a3c2f32e81a6411f3ceb399ccf57568d533a8dc..c23ff2cdabecb691de067c58e607194904c75b49 100644 (file)
@@ -16,8 +16,8 @@
                 {{include file="field_textarea.tpl" field=$publickey}}
 
                 <div class="form-group pull-right settings-submit-wrapper" >
-                    <button type="submit" name="securemail-submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
-                    <button type="submit" name="securemail-submit" class="btn btn-default" value="{{$test|escape:'html'}}">{{$test}}</button>
+                    <button type="submit" name="securemail-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
+                    <button type="submit" name="securemail-submit" class="btn btn-default" value="{{$test}}">{{$test}}</button>
                 </div>
                 <div class="clear"></div>
             </div>
index 82ae1eb04db6f7dd0ea1722b415d82b9dc5c4157..0971818f35d5faa47dc6d221b509e3bdfe5eb583 100644 (file)
@@ -9,6 +9,7 @@
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
+use Friendica\Core\System;
 
 function startpage_install() {
        Hook::register('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
index 9b50111a636bd07c3c92e0f76151b25e79edad3c..aba503a42bf63880842eb3030af8f4a2d09c3049 100644 (file)
@@ -36,8 +36,6 @@
 define('STATUSNET_DEFAULT_POLL_INTERVAL', 5); // given in minutes
 
 require_once __DIR__ . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'statusnetoauth.php';
-require_once 'include/enotify.php';
-
 use CodebirdSN\CodebirdSN;
 use Friendica\App;
 use Friendica\Content\OEmbed;
@@ -50,6 +48,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
+use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Model\GContact;
@@ -827,8 +826,6 @@ function statusnet_fetchtimeline(App $a, $uid)
        $lastid  = PConfig::get($uid, 'statusnet', 'lastid');
 
        require_once 'mod/item.php';
-       require_once 'include/items.php';
-
        //  get the application name for the SN app
        //  1st try personal config, then system config and fallback to the
        //  hostname of the node if neither one is set.
@@ -1254,8 +1251,6 @@ function statusnet_fetchhometimeline(App $a, $uid, $mode = 1)
 
        Logger::log("statusnet_fetchhometimeline: Fetching for user " . $uid, Logger::DEBUG);
 
-       require_once 'include/items.php';
-
        $connection = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
 
        $own_contact = statusnet_fetch_own_contact($a, $uid);
@@ -1441,8 +1436,6 @@ function statusnet_complete_conversation(App $a, $uid, $self, $create_user, $nic
 
 function statusnet_convertmsg(App $a, $body, $no_tags = false)
 {
-       require_once "include/items.php";
-
        $body = preg_replace("=\[url\=https?://([0-9]*).([0-9]*).([0-9]*).([0-9]*)/([0-9]*)\](.*?)\[\/url\]=ism", "$1.$2.$3.$4/$5", $body);
 
        $URLSearchString = "^\[\]";
index 9fc04201cff7bd0690674c60bde802ea7d2f9759..dea5026ba5ad3d66100cfe41dd9b422bb7f2540b 100644 (file)
@@ -61,8 +61,6 @@ function testdrive_register_account($a,$b) {
 
 
 function testdrive_cron($a,$b) {
-       require_once('include/enotify.php');
-
        $r = q("select * from user where account_expires_on < UTC_TIMESTAMP() + INTERVAL 5 DAY and
                expire_notification_sent = '0000-00-00 00:00:00' ");
 
index 811d62ef9bd5c7a2ba9fc9380cf9403040b94a89..f5c7de0dfc456564751dfb41b689ca585c86063e 100644 (file)
@@ -75,6 +75,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
+use Friendica\Core\System;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
@@ -90,11 +91,6 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Network;
 use Friendica\Util\Strings;
 
-require_once 'boot.php';
-require_once 'include/dba.php';
-require_once 'include/enotify.php';
-require_once 'include/text.php';
-
 require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
 
 define('TWITTER_DEFAULT_POLL_INTERVAL', 5); // given in minutes
@@ -804,8 +800,6 @@ function twitter_expire(App $a)
        }
        DBA::close($r);
 
-       require_once "include/items.php";
-
        Logger::log('twitter_expire: expire_start');
 
        $r = q("SELECT * FROM `pconfig` WHERE `cat` = 'twitter' AND `k` = 'import' AND `v` = '1' ORDER BY RAND()");
@@ -935,7 +929,6 @@ function twitter_fetchtimeline(App $a, $uid)
        $has_picture = false;
 
        require_once 'mod/item.php';
-       require_once 'include/items.php';
        require_once 'mod/share.php';
 
        $connection = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
@@ -1229,9 +1222,11 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
                                        continue;
                                }
 
-                               $expanded_url = Network::finalUrl($url->expanded_url);
+                               $expanded_url = $url->expanded_url;
 
-                               $oembed_data = OEmbed::fetchURL($expanded_url);
+                               $final_url = Network::finalUrl($url->expanded_url);
+
+                               $oembed_data = OEmbed::fetchURL($final_url);
 
                                if (empty($oembed_data) || empty($oembed_data->type)) {
                                        continue;
@@ -1257,7 +1252,7 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
                                } elseif ($oembed_data->type != 'link') {
                                        $body = str_replace($url->url, '[url=' . $expanded_url . ']' . $url->display_url . '[/url]', $body);
                                } else {
-                                       $img_str = Network::fetchUrl($expanded_url, true, $redirects, 4);
+                                       $img_str = Network::fetchUrl($final_url, true, $redirects, 4);
 
                                        $tempfile = tempnam(get_temppath(), 'cache');
                                        file_put_contents($tempfile, $img_str);
@@ -1273,7 +1268,7 @@ function twitter_expand_entities(App $a, $body, $item, $picture)
 
                                        if (substr($mime, 0, 6) == 'image/') {
                                                $type = 'photo';
-                                               $body = str_replace($url->url, '[img]' . $expanded_url . '[/img]', $body);
+                                               $body = str_replace($url->url, '[img]' . $final_url . '[/img]', $body);
                                        } else {
                                                $type = $oembed_data->type;
                                                $footerurl = $expanded_url;
@@ -1663,8 +1658,6 @@ function twitter_fetchhometimeline(App $a, $uid)
                $application_name = $a->getHostName();
        }
 
-       require_once 'include/items.php';
-
        $connection = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
 
        try {
index 9693d2549794d34da9f6039c5a85cb18c2da16c0..56ad1e5b35abbda726541899d9de8e593e52955d 100644 (file)
@@ -52,8 +52,6 @@ function like_widget_content(&$a, $conf){
        $dislikes = $r[0]['c'];
 
 
-       require_once("include/conversation.php");
-
        $o = "";
 
 #      $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
index 4cb28cd7c554a0cb78a08e2c3527551bbf1f03e1..31bd030844fba1649ce543b6c08f187a38d5306b 100644 (file)
@@ -77,7 +77,7 @@ function widgets_module() {
 }
 
 function _abs_url($s){
-       $a = get_app();
+       $a = \get_app();
        return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1".$a->getBaseURL()."/\$2", $s);
 }
 
index 0e95fcdd2d5689996e5158f8f3ff5b1631458705..4e4ae7138e59e708e7e2dc73db499cafaa5d0110 100644 (file)
@@ -147,19 +147,17 @@ function wppost_settings(&$a,&$s) {
 function wppost_settings_post(&$a,&$b) {
 
        if(!empty($_POST['wppost-submit'])) {
-
                PConfig::set(local_user(),'wppost','post',intval($_POST['wppost']));
-               PConfig::set(local_user(),'wppost','post_by_default',intval($_POST['wp_bydefault']));
+               PConfig::set(local_user(),'wppost','post_by_default',intval(defaults($_POST, 'wp_bydefault', false)));
                PConfig::set(local_user(),'wppost','wp_username',trim($_POST['wp_username']));
                PConfig::set(local_user(),'wppost','wp_password',trim($_POST['wp_password']));
                PConfig::set(local_user(),'wppost','wp_blog',trim($_POST['wp_blog']));
-               PConfig::set(local_user(),'wppost','backlink',trim($_POST['wp_backlink']));
+               PConfig::set(local_user(),'wppost','backlink',trim(defaults($_POST, 'wp_backlink', '')));
                PConfig::set(local_user(),'wppost','shortcheck',trim($_POST['wp_shortcheck']));
                $wp_backlink_text = Strings::escapeTags(trim($_POST['wp_backlink_text']));
                $wp_backlink_text = BBCode::convert($wp_backlink_text, false, 8);
                $wp_backlink_text = HTML::toPlaintext($wp_backlink_text, 0, true);
                PConfig::set(local_user(),'wppost','wp_backlink_text', $wp_backlink_text);
-
        }
 
 }