sub.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?php
  2. /******************************************************************************/
  3. /* Each entry of that file can be associated with a comment to indicate its */
  4. /* state. When there is no comment, it means the entry is fully translated. */
  5. /* The recognized comments are (comment matching is case-insensitive): */
  6. /* + TODO: the entry has never been translated. */
  7. /* + DIRTY: the entry has been translated but needs to be updated. */
  8. /* + IGNORE: the entry does not need to be translated. */
  9. /* When a comment is not recognized, it is discarded. */
  10. /******************************************************************************/
  11. return array(
  12. 'api' => array(
  13. 'documentation' => '复制以下地址,以供外部工具使用',
  14. 'title' => 'API', // IGNORE
  15. ),
  16. 'bookmarklet' => array(
  17. 'documentation' => '拖动此书签到你的书签栏或者右键选择「收藏此链接」,然后在你想要订阅的页面上点击「订阅」按钮。',
  18. 'label' => '订阅',
  19. 'title' => '书签',
  20. ),
  21. 'category' => array(
  22. '_' => '分类',
  23. 'add' => '添加分类',
  24. 'archiving' => '归档',
  25. 'dynamic_opml' => array(
  26. '_' => '动态订阅',
  27. 'help' => '使用 URL 上的 <a href="http://opml.org/" target="_blank">OPML 文件</a> 中的订阅源填充这一分类',
  28. ),
  29. 'empty' => '空分类',
  30. 'expand' => 'Expand category', // TODO
  31. 'information' => '信息',
  32. 'open' => 'Open category', // TODO
  33. 'opml_url' => 'OPML URL', // IGNORE
  34. 'position' => '显示位置',
  35. 'position_help' => '控制分类排列顺序',
  36. 'title' => '标题',
  37. ),
  38. 'feed' => array(
  39. 'accept_cookies' => '接受 Cookies',
  40. 'accept_cookies_help' => '允许订阅源服务器设置 Cookies(仅在请求期间存储在内存中)',
  41. 'add' => '添加订阅源',
  42. 'advanced' => '高级',
  43. 'archiving' => '归档',
  44. 'auth' => array(
  45. 'configuration' => '认证',
  46. 'help' => '用于连接启用 HTTP 认证的订阅源',
  47. 'http' => 'HTTP 认证',
  48. 'password' => 'HTTP 密码',
  49. 'username' => 'HTTP 用户名',
  50. ),
  51. 'clear_cache' => '总是清除缓存',
  52. 'content_action' => array(
  53. '_' => '获取原文后的操作',
  54. 'append' => '添加在现有内容后部',
  55. 'prepend' => '添加在现有内容前部',
  56. 'replace' => '替换现有内容',
  57. ),
  58. 'content_retrieval' => 'Content retrieval', // TODO
  59. 'css_cookie' => '获取原文时的 Cookies',
  60. 'css_cookie_help' => '例:<kbd>foo=bar; gdpr_consent=true; cookie=value</kbd>',
  61. 'css_help' => '用于获取全文(注意,这将耗费更多时间!)',
  62. 'css_path' => '原文的 CSS 选择器',
  63. 'css_path_filter' => array(
  64. '_' => '需移除元素的 CSS 选择器',
  65. 'help' => '可设置多个 CSS 选择器,例如:<kbd>footer, aside, p[data-sanitized-class~="menu"]</kbd>',
  66. ),
  67. 'description' => '描述',
  68. 'empty' => '此源为空。请确认它是否正常更新。',
  69. 'error' => '此源遇到一些问题。请在确认是否能正常访问后重试。', // DIRTY
  70. 'export-as-opml' => array(
  71. 'download' => '下载',
  72. 'help' => 'XML 文件 (data subset. <a href="https://freshrss.github.io/FreshRSS/en/developers/OPML.html" target="_blank">See documentation</a>)', // DIRTY
  73. 'label' => '导出为 OPML',
  74. ),
  75. 'filteractions' => array(
  76. '_' => '过滤动作',
  77. 'help' => '每行写一条过滤规则,过滤规则可见 <a href="https://freshrss.github.io/FreshRSS/en/users/10_filter.html#with-the-search-field" target="_blank">文档</a>。',
  78. ),
  79. 'http_headers' => 'HTTP Headers', // TODO
  80. 'http_headers_help' => 'Headers are separated by a newline, and the name and value of a header are separated by a colon (e.g: <kbd><code>Accept: application/atom+xml<br />Authorization: Bearer some-token</code></kbd>).', // TODO
  81. 'information' => '信息',
  82. 'keep_min' => '至少保存的文章数',
  83. 'kind' => array(
  84. '_' => '订阅源类型',
  85. 'html_json' => array(
  86. '_' => 'HTML + XPath + JSON dot notation (JSON in HTML)', // TODO
  87. 'xpath' => array(
  88. '_' => 'XPath for JSON in HTML', // TODO
  89. 'help' => 'Example: <code>normalize-space(//script[@type="application/json"])</code> (single JSON)<br />or: <code>//script[@type="application/ld+json"]</code> (one JSON object per article)', // TODO
  90. ),
  91. ),
  92. 'html_xpath' => array(
  93. '_' => 'HTML + XPath (Web 抓取)',
  94. 'feed_title' => array(
  95. '_' => '订阅源标题',
  96. 'help' => '如 <code>//title</code> 或是静态字符串如: <code>"My custom feed"</code>',
  97. ),
  98. 'help' => '<dfn><a href="https://www.w3.org/TR/xpath-10/" target="_blank">XPath 1.0</a></dfn> 是为资深用户准备的标准查询语言,FreshRSS 用以实现 Web 抓取.',
  99. 'item' => array(
  100. '_' => '以寻找 <strong>文章</strong><br /><small>(很重要)</small>',
  101. 'help' => '例如 <code>//div[@class="news-item"]</code>',
  102. ),
  103. 'item_author' => array(
  104. '_' => '文章作者',
  105. 'help' => '可以是静态字符串,例如 <code>"Anonymous"</code>',
  106. ),
  107. 'item_categories' => '文章标签',
  108. 'item_content' => array(
  109. '_' => '文章内容',
  110. 'help' => '例如使用 <code>.</code> 将整个对象作为文章内容',
  111. ),
  112. 'item_thumbnail' => array(
  113. '_' => '文章缩略图',
  114. 'help' => '例如 <code>descendant::img/@src</code>',
  115. ),
  116. 'item_timeFormat' => array(
  117. '_' => '自定义日期/时间格式',
  118. 'help' => '可选项, 格式参见 <a href="https://php.net/datetime.createfromformat" target="_blank"><code>DateTime::createFromFormat()</code></a> 例如 <code>d-m-Y H:i:s</code>',
  119. ),
  120. 'item_timestamp' => array(
  121. '_' => '文章日期:',
  122. 'help' => '结果将被 <a href="https://php.net/strtotime" target="_blank"><code>strtotime()</code></a> 解析',
  123. ),
  124. 'item_title' => array(
  125. '_' => '文章标题',
  126. 'help' => '注意使用 <a href="https://developer.mozilla.org/docs/Web/XPath/Axes" target="_blank">XPath 轴</a> <code>descendant::</code>,例如 <code>descendant::h2</code>',
  127. ),
  128. 'item_uid' => array(
  129. '_' => '文章唯一 ID',
  130. 'help' => '可选,例如: <code>descendant::div/@data-uri</code>',
  131. ),
  132. 'item_uri' => array(
  133. '_' => '文章链接 (URL)',
  134. 'help' => '例如 <code>descendant::a/@href</code>',
  135. ),
  136. 'relative' => 'XPath(文章):',
  137. 'xpath' => 'XPath 定位:',
  138. ),
  139. 'json_dotnotation' => array(
  140. '_' => 'JSON (点表达式)',
  141. 'feed_title' => array(
  142. '_' => '订阅源标题',
  143. 'help' => '例如: <code>meta.title</code> 或一个静态的字符串: <code>"My custom feed"</code>',
  144. ),
  145. 'help' => 'JSON 点表达式(JSON 路径)在对象之间使用点,在数组中使用中括号 (例如 <code>data.items[0].title</code>)',
  146. 'item' => array(
  147. '_' => '寻找新的 <strong>文章</strong><br /><small>(最重要的参数)</small>',
  148. 'help' => '包含文章数组的 JSON 路径, 例如 <code>$</code> or <code>newsItems</code>', // DIRTY
  149. ),
  150. 'item_author' => '文章作者',
  151. 'item_categories' => '文章标签',
  152. 'item_content' => array(
  153. '_' => '文章内容',
  154. 'help' => '用于找到文章内容的键, 例如 <code>content</code>',
  155. ),
  156. 'item_thumbnail' => array(
  157. '_' => '文章缩略图',
  158. 'help' => '例如: <code>image</code>',
  159. ),
  160. 'item_timeFormat' => array(
  161. '_' => '自定义时间格式',
  162. 'help' => '可选项. 被 <a href="https://php.net/datetime.createfromformat" target="_blank"><code>DateTime::createFromFormat()</code></a> 支持的日期格式。例如 <code>d-m-Y H:i:s</code>',
  163. ),
  164. 'item_timestamp' => array(
  165. '_' => '文章时间',
  166. 'help' => '结果会被 <a href="https://php.net/strtotime" target="_blank"><code>strtotime()</code></a> 解析',
  167. ),
  168. 'item_title' => '文章标题',
  169. 'item_uid' => '文章唯一ID',
  170. 'item_uri' => array(
  171. '_' => '文章链接 (URL)',
  172. 'help' => '例如: <code>permalink</code>',
  173. ),
  174. 'json' => 'JSON 路径:',
  175. 'relative' => 'JSON 路径(相对于文章):',
  176. ),
  177. 'jsonfeed' => 'JSON 订阅源',
  178. 'rss' => 'RSS / Atom (默认)',
  179. 'xml_xpath' => 'XML + XPath', // IGNORE
  180. ),
  181. 'maintenance' => array(
  182. 'clear_cache' => '清理缓存',
  183. 'clear_cache_help' => '清除该feed的缓存',
  184. 'reload_articles' => '重载文章',
  185. 'reload_articles_help' => '重载 n 篇文章并抓取内容(若设置了 CSS 选择器)',
  186. 'title' => '维护',
  187. ),
  188. 'max_http_redir' => '最大 HTTP 重定向',
  189. 'max_http_redir_help' => '设置为 0 或留空以禁用,-1 表示无限重定向',
  190. 'method' => array(
  191. '_' => 'HTTP 方式',
  192. ),
  193. 'method_help' => '如果荷载非空且是合法的 JSON,HTTP 请求标头将被自动设为 <code>application/json</code>,否则使用 <code>application/x-www-form-urlencoded</code>',
  194. 'method_postparams' => 'POST 荷载',
  195. 'moved_category_deleted' => '删除分类时,其中的订阅源会自动归类到 <em>%s</em>',
  196. 'mute' => array(
  197. '_' => '暂停',
  198. 'state_is_muted' => 'This feed is muted', // TODO
  199. ),
  200. 'no_selected' => '未选择订阅源',
  201. 'number_entries' => '%d 篇文章',
  202. 'open_feed' => 'Open feed %s', // TODO
  203. 'path_entries_conditions' => 'Conditions for content retrieval', // TODO
  204. 'priority' => array(
  205. '_' => '可见性',
  206. 'archived' => '不显示(归档)',
  207. 'category' => '在分类中显示',
  208. 'important' => '在“重要的订阅”中显示',
  209. 'main_stream' => '在首页中显示',
  210. ),
  211. 'proxy' => '获取订阅源时的代理',
  212. 'proxy_help' => '选择协议(例:SOCKS5)和代理地址(例:<kbd>127.0.0.1:1080</kbd> 或者 <kbd>username:password@127.0.0.1:1080</kbd>)',
  213. 'selector_preview' => array(
  214. 'show_raw' => '显示源码',
  215. 'show_rendered' => '显示内容',
  216. ),
  217. 'show' => array(
  218. 'all' => '显示所有订阅源',
  219. 'error' => '仅显示有错误的订阅源',
  220. ),
  221. 'showing' => array(
  222. 'error' => '正在显示有错误的订阅源',
  223. ),
  224. 'ssl_verify' => '验证 SSL 证书安全',
  225. 'stats' => '统计',
  226. 'think_to_add' => '你可以添加一些订阅源。',
  227. 'timeout' => '超时时间(秒)',
  228. 'title' => '标题',
  229. 'title_add' => '添加订阅源',
  230. 'ttl' => '最小自动更新间隔',
  231. 'unicityCriteria' => array(
  232. '_' => 'Article unicity criteria', // TODO
  233. 'forced' => '<span title="Block the unicity criteria, even when the feed has duplicate articles">forced</span>', // TODO
  234. 'help' => 'Relevant for invalid feeds.<br />⚠️ Changing the policy will create duplicates.', // TODO
  235. 'id' => 'Standard ID (default)', // TODO
  236. 'link' => 'Link', // TODO
  237. 'sha1:link_published' => 'Link + Date', // TODO
  238. 'sha1:link_published_title' => 'Link + Date + Title', // TODO
  239. 'sha1:link_published_title_content' => 'Link + Date + Title + Content', // TODO
  240. ),
  241. 'url' => '源地址',
  242. 'useragent' => '设置用于获取此源的 User Agent',
  243. 'useragent_help' => '例:<kbd>Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0)</kbd>',
  244. 'validator' => '检查订阅源有效性',
  245. 'website' => '网站地址',
  246. 'websub' => 'WebSub 即时通知',
  247. ),
  248. 'import_export' => array(
  249. 'export' => array(
  250. '_' => '导出',
  251. 'sqlite' => 'Download user database as SQLite', // TODO
  252. ),
  253. 'export_labelled' => '导出有标签的文章',
  254. 'export_opml' => '导出订阅源列表(OPML)',
  255. 'export_starred' => '导出你的收藏',
  256. 'feed_list' => '%s 文章列表',
  257. 'file_to_import' => '需要导入的文件 <br />(OPML、JSON 或 ZIP)',
  258. 'file_to_import_no_zip' => '需要导入的文件 <br />(OPML 或 JSON)',
  259. 'import' => '导入',
  260. 'starred_list' => '收藏文章列表',
  261. 'title' => '导入/导出',
  262. ),
  263. 'menu' => array(
  264. 'add' => '添加订阅源或分类',
  265. 'import_export' => '导入/导出',
  266. 'label_management' => '标签管理',
  267. 'stats' => array(
  268. 'idle' => '长期无更新订阅源',
  269. 'main' => '主要统计',
  270. 'repartition' => '文章分布',
  271. ),
  272. 'subscription_management' => '订阅管理',
  273. 'subscription_tools' => '订阅工具',
  274. ),
  275. 'tag' => array(
  276. 'auto_label' => '给新文章打标签',
  277. 'name' => '名称',
  278. 'new_name' => '新名称',
  279. 'old_name' => '旧名称',
  280. ),
  281. 'title' => array(
  282. '_' => '订阅管理',
  283. 'add' => '添加订阅源或分类',
  284. 'add_category' => '添加分类',
  285. 'add_dynamic_opml' => '添加订阅源动态列表',
  286. 'add_feed' => '添加订阅源',
  287. 'add_label' => '打标签',
  288. 'add_opml_category' => 'OPML category name', // TODO
  289. 'delete_label' => '删除标签',
  290. 'feed_management' => '订阅源管理',
  291. 'rename_label' => '重命名标签',
  292. 'subscription_tools' => '订阅工具',
  293. ),
  294. );