From 44a966adcfa58f0cf65cb95b4b02e3d4f67e2726 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 2 Apr 2019 10:08:02 +0200 Subject: [PATCH] langfilter ZH CN translation update THX asherpen --- langfilter/lang/zh-cn/messages.po | 68 ++++++++++++++++++------------- langfilter/lang/zh-cn/strings.php | 21 ++++++---- 2 files changed, 52 insertions(+), 37 deletions(-) diff --git a/langfilter/lang/zh-cn/messages.po b/langfilter/lang/zh-cn/messages.po index ce18b535..de4871a3 100644 --- a/langfilter/lang/zh-cn/messages.po +++ b/langfilter/lang/zh-cn/messages.po @@ -4,14 +4,16 @@ # # # Translators: +# Asher Pen , 2019 +# 朱陈锬 , 2018 # 朱陈锬 , 2018 msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-09-22 15:18+0200\n" -"PO-Revision-Date: 2018-02-28 11:28+0000\n" -"Last-Translator: 朱陈锬 \n" +"POT-Creation-Date: 2018-04-01 11:11-0400\n" +"PO-Revision-Date: 2019-03-25 02:01+0000\n" +"Last-Translator: Asher Pen \n" "Language-Team: Chinese (China) (http://www.transifex.com/Friendica/friendica/language/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -19,52 +21,62 @@ msgstr "" "Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: langfilter.php:44 +#: langfilter.php:58 msgid "Language Filter" -msgstr "" +msgstr "语言过滤器" -#: langfilter.php:45 +#: langfilter.php:59 msgid "" -"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." -msgstr "" +"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." +msgstr "这个插件将尝试识别帖子所用的语言。如果不符合以下列出的语言,帖子将被折叠以隐藏。" -#: langfilter.php:46 +#: langfilter.php:60 msgid "Use the language filter" -msgstr "" +msgstr "使用语言过滤器" -#: langfilter.php:47 -msgid "I speak" -msgstr "" +#: langfilter.php:61 +msgid "Able to read" +msgstr "想要显示的语言" -#: langfilter.php:47 +#: langfilter.php:61 msgid "" "List of abbreviations (iso2 codes) for languages you speak, comma separated." " For example \"de,it\"." -msgstr "" +msgstr "您使用的语言缩写 (iso2 codes) 列表,逗号分隔。例如 \"zh,en\"。" -#: langfilter.php:48 +#: langfilter.php:62 msgid "Minimum confidence in language detection" -msgstr "" +msgstr "语言识别阈值" -#: langfilter.php:48 +#: 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 "" +msgstr "语言识别阈值(0-100)。语言识别结果低于该阈值的帖子将不会被折叠。" -#: langfilter.php:49 +#: langfilter.php:63 +msgid "Minimum length of message body" +msgstr "语言过滤帖子所需最小字符个数" + +#: langfilter.php:63 +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 "语言过滤帖子所需最小字符个数。低于该数字的帖子将不会被过滤。注意:对于字符个数小于200的帖子,语言检测功能将不够稳定。" + +#: langfilter.php:64 msgid "Save Settings" msgstr "保存设置" -#: langfilter.php:73 +#: langfilter.php:105 msgid "Language Filter Settings saved." -msgstr "" +msgstr "语言过滤器设置已保存。" -#: langfilter.php:123 +#: langfilter.php:182 #, php-format -msgid "unspoken language %s - Click to open/close" -msgstr "" +msgid "Filtered language: %s" +msgstr "已过滤的语言:%s" diff --git a/langfilter/lang/zh-cn/strings.php b/langfilter/lang/zh-cn/strings.php index 75f6b6b4..bbeedf3e 100644 --- a/langfilter/lang/zh-cn/strings.php +++ b/langfilter/lang/zh-cn/strings.php @@ -2,16 +2,19 @@ if(! function_exists("string_plural_select_zh_cn")) { function string_plural_select_zh_cn($n){ + $n = intval($n); return 0;; }} ; -$a->strings["Language Filter"] = ""; -$a->strings["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."] = ""; -$a->strings["Use the language filter"] = ""; -$a->strings["I speak"] = ""; -$a->strings["List of abbreviations (iso2 codes) for languages you speak, comma separated. For example \"de,it\"."] = ""; -$a->strings["Minimum confidence in language detection"] = ""; -$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."] = ""; +$a->strings["Language Filter"] = "语言过滤器"; +$a->strings["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."] = "这个插件将尝试识别帖子所用的语言。如果不符合以下列出的语言,帖子将被折叠以隐藏。"; +$a->strings["Use the language filter"] = "使用语言过滤器"; +$a->strings["Able to read"] = "想要显示的语言"; +$a->strings["List of abbreviations (iso2 codes) for languages you speak, comma separated. For example \"de,it\"."] = "您使用的语言缩写 (iso2 codes) 列表,逗号分隔。例如 \"zh,en\"。"; +$a->strings["Minimum confidence in language detection"] = "语言识别阈值"; +$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."] = "语言识别阈值(0-100)。语言识别结果低于该阈值的帖子将不会被折叠。"; +$a->strings["Minimum length of message body"] = "语言过滤帖子所需最小字符个数"; +$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)."] = "语言过滤帖子所需最小字符个数。低于该数字的帖子将不会被过滤。注意:对于字符个数小于200的帖子,语言检测功能将不够稳定。"; $a->strings["Save Settings"] = "保存设置"; -$a->strings["Language Filter Settings saved."] = ""; -$a->strings["unspoken language %s - Click to open/close"] = ""; +$a->strings["Language Filter Settings saved."] = "语言过滤器设置已保存。"; +$a->strings["Filtered language: %s"] = "已过滤的语言:%s";