mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-10-16 11:41:57 +00:00
Merge branch '3.6-rc'
This commit is contained in:
commit
39dd3dffe0
733 changed files with 10943 additions and 8237 deletions
89
nsfw/README
89
nsfw/README
|
@ -6,3 +6,92 @@ Scans the message content for the string 'nsfw'
|
|||
(case insensitive) and if found replaces the content
|
||||
with a "click to open/close" link, default is closed.
|
||||
|
||||
If you click on the 'Not safe for work' addon under
|
||||
/settings/addon a text field appears, where you can
|
||||
extend the list of search terms. The terms must be
|
||||
seperated by commas.
|
||||
|
||||
It is also possible to enter profile URLs as values.
|
||||
This is quite useful for the case, that you perhaps
|
||||
don't want to see postings by person_A, but person_B
|
||||
is one of your contacts and person_B used to reshare
|
||||
postings by person_A.
|
||||
|
||||
You can also make use of regular expressions.
|
||||
They also have to be seperated by commas and the
|
||||
regex itself has to be enclosed with slashes:
|
||||
|
||||
... nsfw, /<REGEX>/, politics,...
|
||||
|
||||
---------------
|
||||
A few examples:
|
||||
---------------
|
||||
|
||||
1)
|
||||
Let's say you don't want to see postings which contain
|
||||
the term 'fake news'
|
||||
|
||||
The term could appear in several ways:
|
||||
|
||||
fakenews, fake news, fake_news, fake-news, f@ke news,
|
||||
f4ke news, f4k3 n3ws, and so on and so on and so on.
|
||||
|
||||
You could write every possible version of it as single
|
||||
item into your NSFW-filter list, but this can also be
|
||||
done with a single regex, which matches all of them:
|
||||
|
||||
/f[@4a]k[3e][-_ ]n[3e]w[sz]/
|
||||
|
||||
|
||||
2)
|
||||
Another use case could be, that you are simply not
|
||||
interested in postings about christmas.
|
||||
|
||||
/christmas(?:[-_ ]?(?:tree|time|eve|pudding))?/
|
||||
|
||||
|
||||
ATTENTION:
|
||||
|
||||
It is absolutely important, that you use grouping
|
||||
parentheses instead of capturing parentheses!!
|
||||
|
||||
Grouping parentheses are:
|
||||
|
||||
(?: )
|
||||
|
||||
If you use capturing parentheses, which are
|
||||
|
||||
( )
|
||||
|
||||
it will produce errors and the regex won't work and
|
||||
at least your targets will not get collapsed.
|
||||
|
||||
|
||||
|
||||
3)
|
||||
Another possibility is the usage of a so called
|
||||
'lookbehind' construct. I'll give an example followed
|
||||
by a descripton:
|
||||
|
||||
/(?<!the )\badvent\b/
|
||||
|
||||
The \b is a word boundary, what matches the beginning
|
||||
and the end of a word. The simple pattern of 'advent'
|
||||
would match advent iteself, but also adventure.
|
||||
This can be prevented by
|
||||
|
||||
/\badvent\b/
|
||||
|
||||
The first part of the regex above
|
||||
|
||||
(?<!the )
|
||||
|
||||
is a negative lookbehind. It makes \badvent\b only
|
||||
match, if there is no 'the ' before \badvent\b or in
|
||||
words:
|
||||
|
||||
It looks for 'advent', but doesn't match 'the advent'.
|
||||
|
||||
|
||||
For more informations take a look at the PCRE regex
|
||||
dialect.
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"POT-Creation-Date: 2018-03-15 17:54+0700\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"
|
||||
|
@ -17,41 +17,39 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: nsfw.php:78
|
||||
msgid "Not Safe For Work (General Purpose Content Filter) settings"
|
||||
#: nsfw.php:77 nsfw.php:81
|
||||
msgid "Content Filter (NSFW and more)"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:80
|
||||
#: nsfw.php:85
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
"with #NSFW. This filter can also match any other word/text you specify, and "
|
||||
"can thereby be used as a general purpose content filter."
|
||||
"This addon searches for specified words/text in posts and collapses them. It "
|
||||
"can be used to filter content tagged with for instance #NSFW that may be "
|
||||
"deemed inappropriate at certain times or places, such as being at work. It "
|
||||
"is also useful for hiding irrelevant or annoying content from direct view."
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:81
|
||||
#: nsfw.php:86
|
||||
msgid "Enable Content filter"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:84
|
||||
#: nsfw.php:89
|
||||
msgid "Comma separated list of keywords to hide"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:88
|
||||
msgid "Submit"
|
||||
#: nsfw.php:93
|
||||
msgid "Save Settings"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:89
|
||||
#: nsfw.php:94
|
||||
msgid "Use /expression/ to provide regular expressions"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:105
|
||||
#: nsfw.php:109
|
||||
msgid "NSFW Settings saved."
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:157
|
||||
#: nsfw.php:167
|
||||
#, php-format
|
||||
msgid "%s - Click to open/close"
|
||||
msgstr ""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Ajustos, Not Safe For Work (Filtre de Contingut de Propòsit General)";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Aquest plugin es veu en enviaments amb les paraules/text que s'especifiquen a continuació , i amagarà qualsevol contingut que contingui les paraules clau de manera que no apareguin en moments inapropiats, com ara insinuacions sexuals que poden ser inadequades en un entorn de treball. És de bona educació i es recomana etiquetar qualsevol contingut que contingui nus amb #NSFW. Aquest filtre també es pot fer coincidir amb qualsevol paraula/text que especifiqueu, i per tant pot ser utilitzat com un filtre general de contingut.";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Aquest addon es veu en enviaments amb les paraules/text que s'especifiquen a continuació , i amagarà qualsevol contingut que contingui les paraules clau de manera que no apareguin en moments inapropiats, com ara insinuacions sexuals que poden ser inadequades en un entorn de treball. És de bona educació i es recomana etiquetar qualsevol contingut que contingui nus amb #NSFW. Aquest filtre també es pot fer coincidir amb qualsevol paraula/text que especifiqueu, i per tant pot ser utilitzat com un filtre general de contingut.";
|
||||
$a->strings["Enable Content filter"] = "Activat el filtre de Contingut";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Llista separada per comes de paraules clau per ocultar";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
|
|
|
@ -25,13 +25,13 @@ msgstr "Not Safe For Work (General Purpose Content Filter) nastavení"
|
|||
|
||||
#: nsfw.php:80
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"This addon looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
"with #NSFW. This filter can also match any other word/text you specify, and"
|
||||
" can thereby be used as a general purpose content filter."
|
||||
msgstr "Tento plugin hledá v příspěvcích slova zadáná níže a skryje jakýkoliv obsah, který tyto slova obsahuje v prostředích, kde to není vhodné. Je slušné a doporučené jakékoliv příspěvky s mahotou označit s #NSFW. Tento filtr může také vyhledávat jakékoliv Vámi specifikované slovní spojení, takže může být využit jako obecný kontextový filtr."
|
||||
msgstr "Tento addon hledá v příspěvcích slova zadáná níže a skryje jakýkoliv obsah, který tyto slova obsahuje v prostředích, kde to není vhodné. Je slušné a doporučené jakékoliv příspěvky s mahotou označit s #NSFW. Tento filtr může také vyhledávat jakékoliv Vámi specifikované slovní spojení, takže může být využit jako obecný kontextový filtr."
|
||||
|
||||
#: nsfw.php:81
|
||||
msgid "Enable Content filter"
|
||||
|
|
|
@ -6,7 +6,7 @@ function string_plural_select_cs($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Not Safe For Work (General Purpose Content Filter) nastavení";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Tento plugin hledá v příspěvcích slova zadáná níže a skryje jakýkoliv obsah, který tyto slova obsahuje v prostředích, kde to není vhodné. Je slušné a doporučené jakékoliv příspěvky s mahotou označit s #NSFW. Tento filtr může také vyhledávat jakékoliv Vámi specifikované slovní spojení, takže může být využit jako obecný kontextový filtr.";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Tento addon hledá v příspěvcích slova zadáná níže a skryje jakýkoliv obsah, který tyto slova obsahuje v prostředích, kde to není vhodné. Je slušné a doporučené jakékoliv příspěvky s mahotou označit s #NSFW. Tento filtr může také vyhledávat jakékoliv Vámi specifikované slovní spojení, takže může být využit jako obecný kontextový filtr.";
|
||||
$a->strings["Enable Content filter"] = "Povolit Kontextový filtr";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Čárkou oddělený seznam klíčových slov ke skrytí";
|
||||
$a->strings["Submit"] = "Odeslat";
|
||||
|
|
|
@ -4,57 +4,56 @@
|
|||
#
|
||||
#
|
||||
# Translators:
|
||||
# Abrax <webmaster@a-zwenkau.de>, 2014
|
||||
# bavatar <tobias.diekershoff@gmx.net>, 2014
|
||||
# Andreas H., 2014
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2014
|
||||
# Tobias Diekershoff <tobias.diekershoff@gmx.net>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2014-10-15 12:32+0000\n"
|
||||
"Last-Translator: Abrax <webmaster@a-zwenkau.de>\n"
|
||||
"Language-Team: German (http://www.transifex.com/projects/p/friendica/language/de/)\n"
|
||||
"POT-Creation-Date: 2018-03-15 17:54+0700\n"
|
||||
"PO-Revision-Date: 2018-03-16 19:59+0000\n"
|
||||
"Last-Translator: Tobias Diekershoff <tobias.diekershoff@gmx.net>\n"
|
||||
"Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: nsfw.php:78
|
||||
msgid "Not Safe For Work (General Purpose Content Filter) settings"
|
||||
msgstr "Not Safe for Work (Filter für ungewollte Inhalte) Einstellungen:"
|
||||
#: nsfw.php:77 nsfw.php:81
|
||||
msgid "Content Filter (NSFW and more)"
|
||||
msgstr "Inhaltsfilter (NSFW und mehr)"
|
||||
|
||||
#: nsfw.php:80
|
||||
#: nsfw.php:85
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
"with #NSFW. This filter can also match any other word/text you specify, and"
|
||||
" can thereby be used as a general purpose content filter."
|
||||
msgstr "Dieses Plugin sucht in Beiträgen nach Wörtern oder Textbauteilen die du weiter unten eingibst, findet es diese Bausteine, dann wird der entsprechende Beitrag zusammengefaltet dargestellt. Auf diese Weise wird verhindert, dass Inhalte, wie z.B. sexuelle Anspielungen, in unpassenden Momenten angezeigt werden. Du solltest den #NSFW Tag für Beiträge verwenden von denen du ausgehen kannst, dass andere sie anstößig finden könnten. Su kannst beliebige Wörter in der Filterliste angeben und ihn so als allgemeinen Filter verwenden."
|
||||
"This addon searches for specified words/text in posts and collapses them. It"
|
||||
" can be used to filter content tagged with for instance #NSFW that may be "
|
||||
"deemed inappropriate at certain times or places, such as being at work. It "
|
||||
"is also useful for hiding irrelevant or annoying content from direct view."
|
||||
msgstr "Dieses Addon sucht nach von dir definierten Wörtern bzw. Texten in Beiträgen und kollabiert diese wenn die Wörter gefunden werden. Damit können z.B. Inhalte gefiltert werden, die mit #NSFW (nicht für die Arbeit geeignet) gekennzeichnet sind. Außerdem ist es nützlich um irrelevante oder lästige Inhalte zu verbergen."
|
||||
|
||||
#: nsfw.php:81
|
||||
#: nsfw.php:86
|
||||
msgid "Enable Content filter"
|
||||
msgstr "Aktiviere den Inhaltsfilter"
|
||||
|
||||
#: nsfw.php:84
|
||||
#: nsfw.php:89
|
||||
msgid "Comma separated list of keywords to hide"
|
||||
msgstr "Durch Kommata getrennte Liste von Schlüsselwörtern die verborgen werden sollen"
|
||||
|
||||
#: nsfw.php:88
|
||||
msgid "Submit"
|
||||
msgstr "Senden"
|
||||
#: nsfw.php:93
|
||||
msgid "Save Settings"
|
||||
msgstr "Einstellungen speichern"
|
||||
|
||||
#: nsfw.php:89
|
||||
#: nsfw.php:94
|
||||
msgid "Use /expression/ to provide regular expressions"
|
||||
msgstr "Verwende /expression/ um Reguläre Ausdrücke zu verwenden"
|
||||
|
||||
#: nsfw.php:105
|
||||
#: nsfw.php:109
|
||||
msgid "NSFW Settings saved."
|
||||
msgstr "NSFW-Einstellungen gespeichert"
|
||||
|
||||
#: nsfw.php:157
|
||||
#: nsfw.php:167
|
||||
#, php-format
|
||||
msgid "%s - Click to open/close"
|
||||
msgstr "%s – Zum Öffnen/Schließen klicken"
|
||||
|
|
|
@ -5,11 +5,11 @@ function string_plural_select_de($n){
|
|||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Not Safe for Work (Filter für ungewollte Inhalte) Einstellungen:";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Dieses Plugin sucht in Beiträgen nach Wörtern oder Textbauteilen die du weiter unten eingibst, findet es diese Bausteine, dann wird der entsprechende Beitrag zusammengefaltet dargestellt. Auf diese Weise wird verhindert, dass Inhalte, wie z.B. sexuelle Anspielungen, in unpassenden Momenten angezeigt werden. Du solltest den #NSFW Tag für Beiträge verwenden von denen du ausgehen kannst, dass andere sie anstößig finden könnten. Su kannst beliebige Wörter in der Filterliste angeben und ihn so als allgemeinen Filter verwenden.";
|
||||
$a->strings["Content Filter (NSFW and more)"] = "Inhaltsfilter (NSFW und mehr)";
|
||||
$a->strings["This addon searches for specified words/text in posts and collapses them. It can be used to filter content tagged with for instance #NSFW that may be deemed inappropriate at certain times or places, such as being at work. It is also useful for hiding irrelevant or annoying content from direct view."] = "Dieses Addon sucht nach von dir definierten Wörtern bzw. Texten in Beiträgen und kollabiert diese wenn die Wörter gefunden werden. Damit können z.B. Inhalte gefiltert werden, die mit #NSFW (nicht für die Arbeit geeignet) gekennzeichnet sind. Außerdem ist es nützlich um irrelevante oder lästige Inhalte zu verbergen.";
|
||||
$a->strings["Enable Content filter"] = "Aktiviere den Inhaltsfilter";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Durch Kommata getrennte Liste von Schlüsselwörtern die verborgen werden sollen";
|
||||
$a->strings["Submit"] = "Senden";
|
||||
$a->strings["Save Settings"] = "Einstellungen speichern";
|
||||
$a->strings["Use /expression/ to provide regular expressions"] = "Verwende /expression/ um Reguläre Ausdrücke zu verwenden";
|
||||
$a->strings["NSFW Settings saved."] = "NSFW-Einstellungen gespeichert";
|
||||
$a->strings["%s - Click to open/close"] = "%s – Zum Öffnen/Schließen klicken";
|
||||
|
|
57
nsfw/lang/en-gb/messages.po
Normal file
57
nsfw/lang/en-gb/messages.po
Normal file
|
@ -0,0 +1,57 @@
|
|||
# ADDON nsfw
|
||||
# Copyright (C)
|
||||
# This file is distributed under the same license as the Friendica nsfw addon package.
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Andy H3 <andy@hubup.pro>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-03-15 17:54+0700\n"
|
||||
"PO-Revision-Date: 2018-03-16 16:07+0000\n"
|
||||
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
|
||||
"Language-Team: English (United Kingdom) (http://www.transifex.com/Friendica/friendica/language/en_GB/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: nsfw.php:77 nsfw.php:81
|
||||
msgid "Content Filter (NSFW and more)"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:85
|
||||
msgid ""
|
||||
"This addon searches for specified words/text in posts and collapses them. It"
|
||||
" can be used to filter content tagged with for instance #NSFW that may be "
|
||||
"deemed inappropriate at certain times or places, such as being at work. It "
|
||||
"is also useful for hiding irrelevant or annoying content from direct view."
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:86
|
||||
msgid "Enable Content filter"
|
||||
msgstr "Enable content filter"
|
||||
|
||||
#: nsfw.php:89
|
||||
msgid "Comma separated list of keywords to hide"
|
||||
msgstr "Comma separated list of keywords"
|
||||
|
||||
#: nsfw.php:93
|
||||
msgid "Save Settings"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:94
|
||||
msgid "Use /expression/ to provide regular expressions"
|
||||
msgstr "Use /expression/ for regular expressions."
|
||||
|
||||
#: nsfw.php:109
|
||||
msgid "NSFW Settings saved."
|
||||
msgstr "NSFW settings saved."
|
||||
|
||||
#: nsfw.php:167
|
||||
#, php-format
|
||||
msgid "%s - Click to open/close"
|
||||
msgstr "%s - Reveal/hide"
|
15
nsfw/lang/en-gb/strings.php
Normal file
15
nsfw/lang/en-gb/strings.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_en_gb")) {
|
||||
function string_plural_select_en_gb($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Content Filter (NSFW and more)"] = "";
|
||||
$a->strings["This addon searches for specified words/text in posts and collapses them. It can be used to filter content tagged with for instance #NSFW that may be deemed inappropriate at certain times or places, such as being at work. It is also useful for hiding irrelevant or annoying content from direct view."] = "";
|
||||
$a->strings["Enable Content filter"] = "Enable content filter";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Comma separated list of keywords";
|
||||
$a->strings["Save Settings"] = "";
|
||||
$a->strings["Use /expression/ to provide regular expressions"] = "Use /expression/ for regular expressions.";
|
||||
$a->strings["NSFW Settings saved."] = "NSFW settings saved.";
|
||||
$a->strings["%s - Click to open/close"] = "%s - Reveal/hide";
|
57
nsfw/lang/en-us/messages.po
Normal file
57
nsfw/lang/en-us/messages.po
Normal file
|
@ -0,0 +1,57 @@
|
|||
# ADDON nsfw
|
||||
# Copyright (C)
|
||||
# This file is distributed under the same license as the Friendica nsfw addon package.
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# Andy H3 <andy@hubup.pro>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-03-15 17:54+0700\n"
|
||||
"PO-Revision-Date: 2018-03-16 16:07+0000\n"
|
||||
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
|
||||
"Language-Team: English (United States) (http://www.transifex.com/Friendica/friendica/language/en_US/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_US\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: nsfw.php:77 nsfw.php:81
|
||||
msgid "Content Filter (NSFW and more)"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:85
|
||||
msgid ""
|
||||
"This addon searches for specified words/text in posts and collapses them. It"
|
||||
" can be used to filter content tagged with for instance #NSFW that may be "
|
||||
"deemed inappropriate at certain times or places, such as being at work. It "
|
||||
"is also useful for hiding irrelevant or annoying content from direct view."
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:86
|
||||
msgid "Enable Content filter"
|
||||
msgstr "Enable content filter"
|
||||
|
||||
#: nsfw.php:89
|
||||
msgid "Comma separated list of keywords to hide"
|
||||
msgstr "Comma separated list of keywords"
|
||||
|
||||
#: nsfw.php:93
|
||||
msgid "Save Settings"
|
||||
msgstr ""
|
||||
|
||||
#: nsfw.php:94
|
||||
msgid "Use /expression/ to provide regular expressions"
|
||||
msgstr "Use /expression/ for regular expressions."
|
||||
|
||||
#: nsfw.php:109
|
||||
msgid "NSFW Settings saved."
|
||||
msgstr "NSFW settings saved."
|
||||
|
||||
#: nsfw.php:167
|
||||
#, php-format
|
||||
msgid "%s - Click to open/close"
|
||||
msgstr "%s - Reveal/hide"
|
15
nsfw/lang/en-us/strings.php
Normal file
15
nsfw/lang/en-us/strings.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_en_us")) {
|
||||
function string_plural_select_en_us($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Content Filter (NSFW and more)"] = "";
|
||||
$a->strings["This addon searches for specified words/text in posts and collapses them. It can be used to filter content tagged with for instance #NSFW that may be deemed inappropriate at certain times or places, such as being at work. It is also useful for hiding irrelevant or annoying content from direct view."] = "";
|
||||
$a->strings["Enable Content filter"] = "Enable content filter";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Comma separated list of keywords";
|
||||
$a->strings["Save Settings"] = "";
|
||||
$a->strings["Use /expression/ to provide regular expressions"] = "Use /expression/ for regular expressions.";
|
||||
$a->strings["NSFW Settings saved."] = "NSFW settings saved.";
|
||||
$a->strings["%s - Click to open/close"] = "%s - Reveal/hide";
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Not Safe For Work (ĝenerala filtrilo por enhavoj) agordoj";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Tiu kromprogramo serĉas la malsupre agordatajn vortojn en afiŝoj kaj malvidebligis ilin se ili enhavas iun vorton. Tiel, afiŝoj ne montriĝis kiuj enhavas maladekvatan enhavon, ekzemple seksumaj aferoj, kiuj ne estas adekvata, ekzemple en la laborejo. En la reto, oni kutime markas tiajn afiŝojn #NSFW - Not Safe For Work - ne adekvata por la laborejo. La filtrilo ankaŭ serĉas ĉiujn vortojn kiujn vi agordas kaj tial funkcias kiel ĝenerala filtrilo.";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Tiu kromprogramo serĉas la malsupre agordatajn vortojn en afiŝoj kaj malvidebligis ilin se ili enhavas iun vorton. Tiel, afiŝoj ne montriĝis kiuj enhavas maladekvatan enhavon, ekzemple seksumaj aferoj, kiuj ne estas adekvata, ekzemple en la laborejo. En la reto, oni kutime markas tiajn afiŝojn #NSFW - Not Safe For Work - ne adekvata por la laborejo. La filtrilo ankaŭ serĉas ĉiujn vortojn kiujn vi agordas kaj tial funkcias kiel ĝenerala filtrilo.";
|
||||
$a->strings["Enable Content filter"] = "Ŝalti la filtrilo por la enhavo";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Perkome disigita listo da kaŝontaj ŝlosilvortoj";
|
||||
$a->strings["Submit"] = "Sendi";
|
||||
|
|
|
@ -25,13 +25,13 @@ msgstr "Configuración \"No apto para trabajar\" (Filtro genérico de contenido)
|
|||
|
||||
#: nsfw.php:80
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"This addon looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
"with #NSFW. This filter can also match any other word/text you specify, and"
|
||||
" can thereby be used as a general purpose content filter."
|
||||
msgstr "Este plugin se fija por el contenido del texto y colapsa todo tema o respuesta que contiene las palabras establecidas. Como tales pueden ser contenido sexual o de otra índole que no conviene desplegar en el trabajo o ambientes correspondientes. Es de buena educación y recomendado de identificar todo tipo de contenido explicito con #NSFW. Este filtro además puede ser usado con cualquier palabra a especificar y por lo tanto ser usado como un filtro generico de contenido."
|
||||
msgstr "Este addon se fija por el contenido del texto y colapsa todo tema o respuesta que contiene las palabras establecidas. Como tales pueden ser contenido sexual o de otra índole que no conviene desplegar en el trabajo o ambientes correspondientes. Es de buena educación y recomendado de identificar todo tipo de contenido explicito con #NSFW. Este filtro además puede ser usado con cualquier palabra a especificar y por lo tanto ser usado como un filtro generico de contenido."
|
||||
|
||||
#: nsfw.php:81
|
||||
msgid "Enable Content filter"
|
||||
|
|
|
@ -6,7 +6,7 @@ function string_plural_select_es($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Configuración \"No apto para trabajar\" (Filtro genérico de contenido)";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Este plugin se fija por el contenido del texto y colapsa todo tema o respuesta que contiene las palabras establecidas. Como tales pueden ser contenido sexual o de otra índole que no conviene desplegar en el trabajo o ambientes correspondientes. Es de buena educación y recomendado de identificar todo tipo de contenido explicito con #NSFW. Este filtro además puede ser usado con cualquier palabra a especificar y por lo tanto ser usado como un filtro generico de contenido.";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Este addon se fija por el contenido del texto y colapsa todo tema o respuesta que contiene las palabras establecidas. Como tales pueden ser contenido sexual o de otra índole que no conviene desplegar en el trabajo o ambientes correspondientes. Es de buena educación y recomendado de identificar todo tipo de contenido explicito con #NSFW. Este filtro además puede ser usado con cualquier palabra a especificar y por lo tanto ser usado como un filtro generico de contenido.";
|
||||
$a->strings["Enable Content filter"] = "Habilitar filtro de contenido";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Lista de palabras claves separadas por coma para colapsar el contenido correspondiente.";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Réglages de \"NSFW\" (filtrage de contenu)";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Cette extension va parcourir les publications à la recherche des mots (ou phrases) que vous spécifierez ci-dessous, et repliera automatiquement tout contenu qui les contiendrait, afin de ne pas risquer de les afficher à un moment inopportun. Comme par exemple des messages à caractère sexuel dans un contexte professionnel. Il est globalement considéré comme correct et poli de \"tagguer\" toute publication contenant de la nudité avec #NSFW (Not Safe For Work - pas pour le boulot). Ce filtre peut également fonctionner pour tout autre texte que vous spécifierez, et pourra ainsi être utilisé comme filtre de contenu générique.";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Cette extension va parcourir les publications à la recherche des mots (ou phrases) que vous spécifierez ci-dessous, et repliera automatiquement tout contenu qui les contiendrait, afin de ne pas risquer de les afficher à un moment inopportun. Comme par exemple des messages à caractère sexuel dans un contexte professionnel. Il est globalement considéré comme correct et poli de \"tagguer\" toute publication contenant de la nudité avec #NSFW (Not Safe For Work - pas pour le boulot). Ce filtre peut également fonctionner pour tout autre texte que vous spécifierez, et pourra ainsi être utilisé comme filtre de contenu générique.";
|
||||
$a->strings["Enable Content filter"] = "Activer le filtrage de contenu";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Liste de mots-clés - séparés par des virgules - à cacher";
|
||||
$a->strings["Submit"] = "Envoyer";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["Enable Content filter"] = "";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "";
|
||||
$a->strings["Submit"] = "Senda inn";
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
#
|
||||
#
|
||||
# Translators:
|
||||
# fabrixxm <fabrix.xm@gmail.com>, 2014-2015
|
||||
# fabrixxm <fabrix.xm@gmail.com>, 2014-2015,2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: friendica\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-02-27 05:01-0500\n"
|
||||
"PO-Revision-Date: 2015-08-31 10:21+0000\n"
|
||||
"POT-Creation-Date: 2018-03-15 17:54+0700\n"
|
||||
"PO-Revision-Date: 2018-03-19 13:18+0000\n"
|
||||
"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/Friendica/friendica/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -19,41 +19,39 @@ msgstr ""
|
|||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: nsfw.php:78
|
||||
msgid "Not Safe For Work (General Purpose Content Filter) settings"
|
||||
msgstr "Impostazioni per NSWF (Filtro Contenuti Generico)"
|
||||
#: nsfw.php:77 nsfw.php:81
|
||||
msgid "Content Filter (NSFW and more)"
|
||||
msgstr "Filtro Contenuto (NSFW e altro)"
|
||||
|
||||
#: nsfw.php:80
|
||||
#: nsfw.php:85
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
"with #NSFW. This filter can also match any other word/text you specify, and"
|
||||
" can thereby be used as a general purpose content filter."
|
||||
msgstr "Questo plugin cerca nei messagi le parole/testo che inserisci qui sotto, e collassa i messaggi che li contengono, per non mostrare contenuto inappropriato nel momento sbagliato, come contenuto a sfondo sessuale che può essere inappropriato in un ambiente di lavoro. E' educato (e consigliato) taggare i messaggi che contengono nudità con #NSFW (Not Safe For Work: Non Sicuro Per il Lavoro). Questo filtro può cercare anche qualsiasi parola che inserisci, quindi può essere usato come filtro di contenuti generico."
|
||||
"This addon searches for specified words/text in posts and collapses them. It"
|
||||
" can be used to filter content tagged with for instance #NSFW that may be "
|
||||
"deemed inappropriate at certain times or places, such as being at work. It "
|
||||
"is also useful for hiding irrelevant or annoying content from direct view."
|
||||
msgstr "Questo componente aggiuntivo cerca per le parole specificate nei messaggi e li collassa. Può essere usato per filtrare contenuto taggato, per esempio, #NSFW (non sicuro per il lavoro), che puo' risultare inappropriato in certi orari o in certi luoghi, come appunto al lavoro. È anche utile per nascondere contenuto irrilevante o fastidioso."
|
||||
|
||||
#: nsfw.php:81
|
||||
#: nsfw.php:86
|
||||
msgid "Enable Content filter"
|
||||
msgstr "Abilita il Filtro Contenuti"
|
||||
|
||||
#: nsfw.php:84
|
||||
#: nsfw.php:89
|
||||
msgid "Comma separated list of keywords to hide"
|
||||
msgstr "Elenco separato da virgole di parole da nascondere"
|
||||
|
||||
#: nsfw.php:88
|
||||
msgid "Submit"
|
||||
msgstr "Invia"
|
||||
#: nsfw.php:93
|
||||
msgid "Save Settings"
|
||||
msgstr "Salva Impostazioni"
|
||||
|
||||
#: nsfw.php:89
|
||||
#: nsfw.php:94
|
||||
msgid "Use /expression/ to provide regular expressions"
|
||||
msgstr "Utilizza /espressione/ per inserire espressioni regolari"
|
||||
|
||||
#: nsfw.php:105
|
||||
#: nsfw.php:109
|
||||
msgid "NSFW Settings saved."
|
||||
msgstr "Impostazioni NSFW salvate."
|
||||
|
||||
#: nsfw.php:157
|
||||
#: nsfw.php:167
|
||||
#, php-format
|
||||
msgid "%s - Click to open/close"
|
||||
msgstr "%s - Clicca per aprire / chiudere"
|
||||
|
|
|
@ -5,11 +5,11 @@ function string_plural_select_it($n){
|
|||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Impostazioni per NSWF (Filtro Contenuti Generico)";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Questo plugin cerca nei messagi le parole/testo che inserisci qui sotto, e collassa i messaggi che li contengono, per non mostrare contenuto inappropriato nel momento sbagliato, come contenuto a sfondo sessuale che può essere inappropriato in un ambiente di lavoro. E' educato (e consigliato) taggare i messaggi che contengono nudità con #NSFW (Not Safe For Work: Non Sicuro Per il Lavoro). Questo filtro può cercare anche qualsiasi parola che inserisci, quindi può essere usato come filtro di contenuti generico.";
|
||||
$a->strings["Content Filter (NSFW and more)"] = "Filtro Contenuto (NSFW e altro)";
|
||||
$a->strings["This addon searches for specified words/text in posts and collapses them. It can be used to filter content tagged with for instance #NSFW that may be deemed inappropriate at certain times or places, such as being at work. It is also useful for hiding irrelevant or annoying content from direct view."] = "Questo componente aggiuntivo cerca per le parole specificate nei messaggi e li collassa. Può essere usato per filtrare contenuto taggato, per esempio, #NSFW (non sicuro per il lavoro), che puo' risultare inappropriato in certi orari o in certi luoghi, come appunto al lavoro. È anche utile per nascondere contenuto irrilevante o fastidioso.";
|
||||
$a->strings["Enable Content filter"] = "Abilita il Filtro Contenuti";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Elenco separato da virgole di parole da nascondere";
|
||||
$a->strings["Submit"] = "Invia";
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
$a->strings["Use /expression/ to provide regular expressions"] = "Utilizza /espressione/ per inserire espressioni regolari";
|
||||
$a->strings["NSFW Settings saved."] = "Impostazioni NSFW salvate.";
|
||||
$a->strings["%s - Click to open/close"] = "%s - Clicca per aprire / chiudere";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["Enable Content filter"] = "";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "";
|
||||
$a->strings["Submit"] = "Lagre";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["Enable Content filter"] = "";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "";
|
||||
$a->strings["Submit"] = "Potwierdź";
|
||||
|
|
|
@ -25,7 +25,7 @@ msgstr ""
|
|||
|
||||
#: nsfw.php:80
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"This addon looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
|
|
|
@ -6,7 +6,7 @@ function string_plural_select_pt_br($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["Enable Content filter"] = "Habilitar filtro de conteúdo";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
|
|
|
@ -25,7 +25,7 @@ msgstr "Nesigur Pentru Lucru (Filtrare de Conținut pentru Uz General )"
|
|||
|
||||
#: nsfw.php:80
|
||||
msgid ""
|
||||
"This plugin looks in posts for the words/text you specify below, and "
|
||||
"This addon looks in posts for the words/text you specify below, and "
|
||||
"collapses any content containing those keywords so it is not displayed at "
|
||||
"inappropriate times, such as sexual innuendo that may be improper in a work "
|
||||
"setting. It is polite and recommended to tag any content containing nudity "
|
||||
|
|
|
@ -6,7 +6,7 @@ function string_plural_select_ro($n){
|
|||
}}
|
||||
;
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "Nesigur Pentru Lucru (Filtrare de Conținut pentru Uz General )";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Acest modul verifică în postări, cuvintele/textele pe care le specificați mai jos, și cenzurează orice conținut cu aceste cuvinte cheie, astfel încât să nu se afișeze în momentele necorespunzătoare, precum aluziile sexuale ce pot fi necorespunzătoare într-un mediu de lucru. Este politicos și recomandat să etichetați orice conținut cu nuditate, folosind eticheta #NSFW. Acest filtru poate de asemenea, potrivi orice alt cuvânt/text specificat, şi poate fi folosit astfel și ca filtru de conținut cu scop general.";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "Acest modul verifică în postări, cuvintele/textele pe care le specificați mai jos, și cenzurează orice conținut cu aceste cuvinte cheie, astfel încât să nu se afișeze în momentele necorespunzătoare, precum aluziile sexuale ce pot fi necorespunzătoare într-un mediu de lucru. Este politicos și recomandat să etichetați orice conținut cu nuditate, folosind eticheta #NSFW. Acest filtru poate de asemenea, potrivi orice alt cuvânt/text specificat, şi poate fi folosit astfel și ca filtru de conținut cu scop general.";
|
||||
$a->strings["Enable Content filter"] = "Activare filtru de Conținut";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "Lista cu separator prin virgulă a cuvintelor cheie, ce vor declanșa ascunderea";
|
||||
$a->strings["Submit"] = "Trimite";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "";
|
||||
$a->strings["Enable Content filter"] = "Включить фильтр содержимого";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "ключевые слова, которые скрыть (список через запятую)";
|
||||
$a->strings["Submit"] = "Подтвердить";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Not Safe For Work (General Purpose Content Filter) settings"] = "工作不安全(通用内容过滤)设置";
|
||||
$a->strings["This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "这个插件找您下面输入的词在所有的文章里,和把包括那些词的内容隐藏,省得不妥当的时候表示,比如性的影射在办公室里。是礼貌和建议的把什么包括裸体的内容跟#NSFW标签。这个过滤也会符合设么别的您输入的词,从而能当通用内容过滤有用的。";
|
||||
$a->strings["This addon looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter."] = "这个插件找您下面输入的词在所有的文章里,和把包括那些词的内容隐藏,省得不妥当的时候表示,比如性的影射在办公室里。是礼貌和建议的把什么包括裸体的内容跟#NSFW标签。这个过滤也会符合设么别的您输入的词,从而能当通用内容过滤有用的。";
|
||||
$a->strings["Enable Content filter"] = "使内容过滤可用";
|
||||
$a->strings["Comma separated list of keywords to hide"] = "逗号分隔单词要隐藏";
|
||||
$a->strings["Submit"] = "提交";
|
||||
|
|
177
nsfw/nsfw.php
177
nsfw/nsfw.php
|
@ -1,6 +1,4 @@
|
|||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Name: NSFW
|
||||
* Description: Collapse posts with inappropriate content
|
||||
|
@ -8,151 +6,153 @@
|
|||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function nsfw_install() {
|
||||
register_hook('prepare_body', 'addon/nsfw/nsfw.php', 'nsfw_prepare_body', 10);
|
||||
register_hook('plugin_settings', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings');
|
||||
register_hook('plugin_settings_post', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings_post');
|
||||
|
||||
function nsfw_install()
|
||||
{
|
||||
Addon::registerHook('prepare_body', 'addon/nsfw/nsfw.php', 'nsfw_prepare_body', 10);
|
||||
Addon::registerHook('addon_settings', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings_post');
|
||||
}
|
||||
|
||||
|
||||
function nsfw_uninstall() {
|
||||
unregister_hook('prepare_body', 'addon/nsfw/nsfw.php', 'nsfw_prepare_body');
|
||||
unregister_hook('plugin_settings', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings');
|
||||
unregister_hook('plugin_settings_post', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings_post');
|
||||
|
||||
function nsfw_uninstall()
|
||||
{
|
||||
Addon::unregisterHook('prepare_body', 'addon/nsfw/nsfw.php', 'nsfw_prepare_body');
|
||||
Addon::unregisterHook('addon_settings', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/nsfw/nsfw.php', 'nsfw_addon_settings_post');
|
||||
}
|
||||
|
||||
// This function isn't perfect and isn't trying to preserve the html structure - it's just a
|
||||
// quick and dirty filter to pull out embedded photo blobs because 'nsfw' seems to come up
|
||||
// inside them quite often. We don't need anything fancy, just pull out the data blob so we can
|
||||
// check against the rest of the body.
|
||||
|
||||
function nsfw_extract_photos($body) {
|
||||
// check against the rest of the body.
|
||||
|
||||
function nsfw_extract_photos($body)
|
||||
{
|
||||
$new_body = '';
|
||||
|
||||
$img_start = strpos($body,'src="data:');
|
||||
$img_end = (($img_start !== false) ? strpos(substr($body,$img_start),'>') : false);
|
||||
|
||||
$img_start = strpos($body, 'src="data:');
|
||||
$img_end = (($img_start !== false) ? strpos(substr($body, $img_start), '>') : false);
|
||||
|
||||
$cnt = 0;
|
||||
|
||||
while($img_end !== false) {
|
||||
$img_end += $img_start;
|
||||
$new_body = $new_body . substr($body,0,$img_start);
|
||||
|
||||
$cnt ++;
|
||||
$body = substr($body,0,$img_end);
|
||||
$new_body = $new_body . substr($body, 0, $img_start);
|
||||
|
||||
$img_start = strpos($body,'src="data:');
|
||||
$img_end = (($img_start !== false) ? strpos(substr($body,$img_start),'>') : false);
|
||||
$cnt ++;
|
||||
$body = substr($body, 0, $img_end);
|
||||
|
||||
$img_start = strpos($body, 'src="data:');
|
||||
$img_end = (($img_start !== false) ? strpos(substr($body, $img_start), '>') : false);
|
||||
|
||||
}
|
||||
|
||||
if(! $cnt)
|
||||
if (!$cnt) {
|
||||
return $body;
|
||||
|
||||
}
|
||||
return $new_body;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function nsfw_addon_settings(&$a,&$s) {
|
||||
|
||||
|
||||
if(! local_user())
|
||||
function nsfw_addon_settings(&$a, &$s)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/nsfw/nsfw.css' . '" media="all" />' . "\r\n";
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/nsfw/nsfw.css' . '" media="all" />' . "\r\n";
|
||||
|
||||
$enable_checked = (intval(get_pconfig(local_user(),'nsfw','disable')) ? '' : ' checked="checked" ');
|
||||
$words = get_pconfig(local_user(),'nsfw','words');
|
||||
if(! $words)
|
||||
$enable_checked = (intval(PConfig::get(local_user(), 'nsfw', 'disable')) ? '' : ' checked="checked" ');
|
||||
$words = PConfig::get(local_user(), 'nsfw', 'words');
|
||||
if (!$words) {
|
||||
$words = 'nsfw,';
|
||||
}
|
||||
|
||||
$s .= '<span id="settings_nsfw_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_nsfw_expanded\'); openClose(\'settings_nsfw_inflated\');">';
|
||||
$s .= '<h3>' . t('Not Safe For Work (General Purpose Content Filter)') . '</h3>';
|
||||
$s .= '</span>';
|
||||
$s .= '<div id="settings_nsfw_expanded" class="settings-block" style="display: none;">';
|
||||
$s .= '<span class="fakelink" onclick="openClose(\'settings_nsfw_expanded\'); openClose(\'settings_nsfw_inflated\');">';
|
||||
$s .= '<h3>' . t('Not Safe For Work (General Purpose Content Filter)') . '</h3>';
|
||||
$s .= '</span>';
|
||||
$s .= '<span id="settings_nsfw_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_nsfw_expanded\'); openClose(\'settings_nsfw_inflated\');">';
|
||||
$s .= '<h3>' . L10n::t('Content Filter (NSFW and more)') . '</h3>';
|
||||
$s .= '</span>';
|
||||
$s .= '<div id="settings_nsfw_expanded" class="settings-block" style="display: none;">';
|
||||
$s .= '<span class="fakelink" onclick="openClose(\'settings_nsfw_expanded\'); openClose(\'settings_nsfw_inflated\');">';
|
||||
$s .= '<h3>' . L10n::t('Content Filter (NSFW and more)') . '</h3>';
|
||||
$s .= '</span>';
|
||||
|
||||
$s .= '<div id="nsfw-wrapper">';
|
||||
$s .= '<p>' . t ('This plugin looks in posts for the words/text you specify below, and collapses any content containing those keywords so it is not displayed at inappropriate times, such as sexual innuendo that may be improper in a work setting. It is polite and recommended to tag any content containing nudity with #NSFW. This filter can also match any other word/text you specify, and can thereby be used as a general purpose content filter.') . '</p>';
|
||||
$s .= '<label id="nsfw-enable-label" for="nsfw-enable">' . t('Enable Content filter') . ' </label>';
|
||||
$s .= '<input id="nsfw-enable" type="checkbox" name="nsfw-enable" value="1"' . $enable_checked . ' />';
|
||||
$s .= '<div id="nsfw-wrapper">';
|
||||
$s .= '<p>' . L10n::t('This addon searches for specified words/text in posts and collapses them. It can be used to filter content tagged with for instance #NSFW that may be deemed inappropriate at certain times or places, such as being at work. It is also useful for hiding irrelevant or annoying content from direct view.') . '</p>';
|
||||
$s .= '<label id="nsfw-enable-label" for="nsfw-enable">' . L10n::t('Enable Content filter') . ' </label>';
|
||||
$s .= '<input id="nsfw-enable" type="checkbox" name="nsfw-enable" value="1"' . $enable_checked . ' />';
|
||||
$s .= '<div class="clear"></div>';
|
||||
$s .= '<label id="nsfw-label" for="nsfw-words">' . t('Comma separated list of keywords to hide') . ' </label>';
|
||||
$s .= '<textarea id="nsfw-words" type="text" name="nsfw-words">' . $words .'</textarea>';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="nsfw-submit" name="nsfw-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div>';
|
||||
$s .= '<div class="nsfw-desc">' . t('Use /expression/ to provide regular expressions') . '</div></div>';
|
||||
$s .= '<label id="nsfw-label" for="nsfw-words">' . L10n::t('Comma separated list of keywords to hide') . ' </label>';
|
||||
$s .= '<textarea id="nsfw-words" type="text" name="nsfw-words">' . $words .'</textarea>';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="nsfw-submit" name="nsfw-submit" class="settings-submit" value="' . L10n::t('Save Settings') . '" /></div>';
|
||||
$s .= '<div class="nsfw-desc">' . L10n::t('Use /expression/ to provide regular expressions') . '</div></div>';
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
function nsfw_addon_settings_post(&$a,&$b) {
|
||||
|
||||
if(! local_user())
|
||||
function nsfw_addon_settings_post(&$a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($_POST['nsfw-submit']) {
|
||||
set_pconfig(local_user(),'nsfw','words',trim($_POST['nsfw-words']));
|
||||
$enable = ((x($_POST,'nsfw-enable')) ? intval($_POST['nsfw-enable']) : 0);
|
||||
if ($_POST['nsfw-submit']) {
|
||||
PConfig::set(local_user(), 'nsfw', 'words', trim($_POST['nsfw-words']));
|
||||
$enable = (x($_POST,'nsfw-enable') ? intval($_POST['nsfw-enable']) : 0);
|
||||
$disable = 1-$enable;
|
||||
set_pconfig(local_user(),'nsfw','disable', $disable);
|
||||
info( t('NSFW Settings saved.') . EOL);
|
||||
PConfig::set(local_user(), 'nsfw', 'disable', $disable);
|
||||
info(L10n::t('NSFW Settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
|
||||
function nsfw_prepare_body(&$a,&$b) {
|
||||
|
||||
function nsfw_prepare_body(&$a, &$b)
|
||||
{
|
||||
// Don't do the check when there is a content warning
|
||||
if (!empty($b['item']['content-warning'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$words = null;
|
||||
if(get_pconfig(local_user(),'nsfw','disable'))
|
||||
if (PConfig::get(local_user(), 'nsfw', 'disable')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(local_user()) {
|
||||
$words = get_pconfig(local_user(),'nsfw','words');
|
||||
if (local_user()) {
|
||||
$words = PConfig::get(local_user(), 'nsfw', 'words');
|
||||
}
|
||||
if($words) {
|
||||
$arr = explode(',',$words);
|
||||
}
|
||||
else {
|
||||
$arr = array('nsfw');
|
||||
if ($words) {
|
||||
$arr = explode(',', $words);
|
||||
} else {
|
||||
$arr = ['nsfw'];
|
||||
}
|
||||
|
||||
$found = false;
|
||||
if(count($arr)) {
|
||||
|
||||
if (count($arr)) {
|
||||
$body = $b['item']['title'] . "\n" . nsfw_extract_photos($b['html']);
|
||||
|
||||
foreach($arr as $word) {
|
||||
foreach ($arr as $word) {
|
||||
$word = trim($word);
|
||||
if(! strlen($word)) {
|
||||
if (!strlen($word)) {
|
||||
continue;
|
||||
}
|
||||
if(strpos($word,'/') === 0) {
|
||||
if(preg_match($word,$body)) {
|
||||
if (strpos($word,'/') === 0) {
|
||||
if (preg_match($word, $body)) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(stristr($body,$word)) {
|
||||
} else {
|
||||
if (stristr($body, $word)) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
if(is_array($b['item']['tags']) && count($b['item']['tags'])) {
|
||||
foreach($b['item']['tags'] as $t) {
|
||||
if(stristr($t, '>' . $word . '<' )) {
|
||||
if (is_array($b['item']['tags']) && count($b['item']['tags'])) {
|
||||
foreach ($b['item']['tags'] as $t) {
|
||||
if (stristr($t, '>' . $word . '<')) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
|
@ -161,8 +161,9 @@ function nsfw_prepare_body(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if($found) {
|
||||
|
||||
if ($found) {
|
||||
$rnd = random_string(8);
|
||||
$b['html'] = '<div id="nsfw-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'nsfw-' . $rnd . '\'); >' . sprintf( t('%s - Click to open/close'),$word ) . '</div><div id="nsfw-' . $rnd . '" style="display: none; " >' . $b['html'] . '</div>';
|
||||
$b['html'] = '<div id="nsfw-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'nsfw-' . $rnd . '\'); >' . L10n::t('%s - Click to open/close', $word) . '</div><div id="nsfw-' . $rnd . '" style="display: none; " >' . $b['html'] . '</div>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue