commit
5152eb4cd4
|
@ -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: 2015-09-22 15:18+0200\n"
|
"POT-Creation-Date: 2018-03-29 22:43+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,52 +17,62 @@ 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"
|
||||||
|
|
||||||
#: langfilter.php:44
|
#: langfilter.php:57
|
||||||
msgid "Language Filter"
|
msgid "Language Filter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:45
|
#: langfilter.php:58
|
||||||
msgid ""
|
msgid ""
|
||||||
"This addon tries to identify the language of a postings. If it does not "
|
"This addon tries to identify the language posts are writen in. If it does "
|
||||||
"match any language spoken by you (see below) the posting will be collapsed. "
|
"not match any language specifed below, posts will be hidden by collapsing "
|
||||||
"Remember detecting the language is not perfect, especially with short "
|
"them."
|
||||||
"postings."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:46
|
#: langfilter.php:59
|
||||||
msgid "Use the language filter"
|
msgid "Use the language filter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:47
|
#: langfilter.php:60
|
||||||
msgid "I speak"
|
msgid "Able to read"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:47
|
#: langfilter.php:60
|
||||||
msgid ""
|
msgid ""
|
||||||
"List of abbreviations (iso2 codes) for languages you speak, comma separated. "
|
"List of abbreviations (iso2 codes) for languages you speak, comma separated. "
|
||||||
"For example \"de,it\"."
|
"For example \"de,it\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:48
|
#: langfilter.php:61
|
||||||
msgid "Minimum confidence in language detection"
|
msgid "Minimum confidence in language detection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:48
|
#: langfilter.php:61
|
||||||
msgid ""
|
msgid ""
|
||||||
"Minimum confidence in language detection being correct, from 0 to 100. Posts "
|
"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 "
|
"will not be filtered when the confidence of language detection is below this "
|
||||||
"percent value."
|
"percent value."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:49
|
#: langfilter.php:62
|
||||||
|
msgid "Minimum length of message body"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: langfilter.php:62
|
||||||
|
msgid ""
|
||||||
|
"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)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: langfilter.php:63
|
||||||
msgid "Save Settings"
|
msgid "Save Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:73
|
#: langfilter.php:104
|
||||||
msgid "Language Filter Settings saved."
|
msgid "Language Filter Settings saved."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: langfilter.php:123
|
#: langfilter.php:181
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "unspoken language %s - Click to open/close"
|
msgid "Hidden content in %s - Click to open/close"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -55,11 +55,11 @@ function langfilter_addon_settings(App $a, &$s)
|
||||||
$t = get_markup_template("settings.tpl", "addon/langfilter/");
|
$t = get_markup_template("settings.tpl", "addon/langfilter/");
|
||||||
$s .= replace_macros($t, [
|
$s .= replace_macros($t, [
|
||||||
'$title' => L10n::t("Language Filter"),
|
'$title' => L10n::t("Language Filter"),
|
||||||
'$intro' => L10n::t('This addon tries to identify the language of a postings. If it does not match any language spoken by you (see below) the posting will be collapsed. Remember detecting the language is not perfect, especially with short postings.'),
|
'$intro' => L10n::t('This addon tries to identify the language posts are writen in. If it does not match any language specifed below, posts will be hidden by collapsing them.'),
|
||||||
'$enabled' => ['langfilter_enable', L10n::t('Use the language filter'), $enable_checked, ''],
|
'$enabled' => ['langfilter_enable', L10n::t('Use the language filter'), $enable_checked, ''],
|
||||||
'$languages' => ['langfilter_languages', L10n::t('I speak'), $languages, L10n::t('List of abbreviations (iso2 codes) for languages you speak, comma separated. For example "de,it".')],
|
'$languages' => ['langfilter_languages', L10n::t('Able to read'), $languages, L10n::t('List of abbreviations (iso2 codes) for languages you speak, comma separated. For example "de,it".')],
|
||||||
'$minconfidence' => ['langfilter_minconfidence', L10n::t('Minimum confidence in language detection'), $minconfidence, L10n::t('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.')],
|
'$minconfidence' => ['langfilter_minconfidence', L10n::t('Minimum confidence in language detection'), $minconfidence, L10n::t('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.')],
|
||||||
'$minlength' => ['langfilter_minlength', L10n::t('Minimum length of message body'), $minlength, L10n::t('Minimum length of message body for language filter to be used. Posts shorter than this number of characters will not be filtered.')],
|
'$minlength' => ['langfilter_minlength', L10n::t('Minimum length of message body'), $minlength, L10n::t('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).')],
|
||||||
'$submit' => L10n::t('Save Settings'),
|
'$submit' => L10n::t('Save Settings'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -178,6 +178,6 @@ function langfilter_prepare_body(App $a, &$b)
|
||||||
|
|
||||||
if (!$spoken) {
|
if (!$spoken) {
|
||||||
$rnd = random_string(8);
|
$rnd = random_string(8);
|
||||||
$b['html'] = '<div id="langfilter-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'langfilter-' . $rnd . '\'); >' . L10n::t('unspoken language %s - Click to open/close', $lang) . '</div><div id="langfilter-' . $rnd . '" style="display: none; " >' . $b['html'] . '</div>';
|
$b['html'] = '<div id="langfilter-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'langfilter-' . $rnd . '\'); >' . L10n::t('Hidden content in %s - Click to open/close', $lang) . '</div><div id="langfilter-' . $rnd . '" style="display: none; " >' . $b['html'] . '</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue