Merge pull request #547 from AndyHee/patch-20180315

Patch 20180315
pull/553/head
Hypolite Petovan 2018-03-15 08:57:03 -04:00 committed by GitHub
commit 460b25ed6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 20 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,41 +17,39 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: nsfw.php:78 #: nsfw.php:77 nsfw.php:81
msgid "Not Safe For Work (General Purpose Content Filter) settings" msgid "Content Filter (NSFW and more)"
msgstr "" msgstr ""
#: nsfw.php:80 #: nsfw.php:85
msgid "" msgid ""
"This addon looks in posts for the words/text you specify below, and " "This addon searches for specified words/text in posts and collapses them. It "
"collapses any content containing those keywords so it is not displayed at " "can be used to filter content tagged with for instance #NSFW that may be "
"inappropriate times, such as sexual innuendo that may be improper in a work " "deemed inappropriate at certain times or places, such as being at work. It "
"setting. It is polite and recommended to tag any content containing nudity " "is also useful for hiding irrelevant or annoying content from direct view."
"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 "" msgstr ""
#: nsfw.php:81 #: nsfw.php:86
msgid "Enable Content filter" msgid "Enable Content filter"
msgstr "" msgstr ""
#: nsfw.php:84 #: nsfw.php:89
msgid "Comma separated list of keywords to hide" msgid "Comma separated list of keywords to hide"
msgstr "" msgstr ""
#: nsfw.php:88 #: nsfw.php:93
msgid "Submit" msgid "Save Settings"
msgstr "" msgstr ""
#: nsfw.php:89 #: nsfw.php:94
msgid "Use /expression/ to provide regular expressions" msgid "Use /expression/ to provide regular expressions"
msgstr "" msgstr ""
#: nsfw.php:105 #: nsfw.php:109
msgid "NSFW Settings saved." msgid "NSFW Settings saved."
msgstr "" msgstr ""
#: nsfw.php:157 #: nsfw.php:167
#, php-format #, php-format
msgid "%s - Click to open/close" msgid "%s - Click to open/close"
msgstr "" msgstr ""

View File

@ -74,15 +74,15 @@ function nsfw_addon_settings(&$a, &$s)
} }
$s .= '<span id="settings_nsfw_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_nsfw_expanded\'); openClose(\'settings_nsfw_inflated\');">'; $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('Not Safe For Work (General Purpose Content Filter)') . '</h3>'; $s .= '<h3>' . L10n::t('Content Filter (NSFW and more)') . '</h3>';
$s .= '</span>'; $s .= '</span>';
$s .= '<div id="settings_nsfw_expanded" class="settings-block" style="display: none;">'; $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 .= '<span class="fakelink" onclick="openClose(\'settings_nsfw_expanded\'); openClose(\'settings_nsfw_inflated\');">';
$s .= '<h3>' . L10n::t('Not Safe For Work (General Purpose Content Filter)') . '</h3>'; $s .= '<h3>' . L10n::t('Content Filter (NSFW and more)') . '</h3>';
$s .= '</span>'; $s .= '</span>';
$s .= '<div id="nsfw-wrapper">'; $s .= '<div id="nsfw-wrapper">';
$s .= '<p>' . L10n::t('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.') . '</p>'; $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 .= '<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 .= '<input id="nsfw-enable" type="checkbox" name="nsfw-enable" value="1"' . $enable_checked . ' />';
$s .= '<div class="clear"></div>'; $s .= '<div class="clear"></div>';