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 ""
"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 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."
"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 ""

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 .= '<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 .= '<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('Not Safe For Work (General Purpose Content Filter)') . '</h3>';
$s .= '<h3>' . L10n::t('Content Filter (NSFW and more)') . '</h3>';
$s .= '</span>';
$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 .= '<input id="nsfw-enable" type="checkbox" name="nsfw-enable" value="1"' . $enable_checked . ' />';
$s .= '<div class="clear"></div>';