sub.php 13 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' => 'Copy the following URL to use it within an external tool.',
  14. 'title' => 'API',
  15. ),
  16. 'bookmarklet' => array(
  17. 'documentation' => 'Drag this button to your bookmarks toolbar or right-click it and choose “Bookmark This Link”. Then click the “Subscribe” button in any page you want to subscribe to.',
  18. 'label' => 'Subscribe',
  19. 'title' => 'Bookmarklet',
  20. ),
  21. 'category' => array(
  22. '_' => 'Category',
  23. 'add' => 'Add a category',
  24. 'archiving' => 'Archiving',
  25. 'dynamic_opml' => array(
  26. '_' => 'Dynamic OPML',
  27. 'help' => 'Provide the URL to an <a href="http://opml.org/" target="_blank">OPML file</a> to dynamically populate this category with feeds',
  28. ),
  29. 'empty' => 'Empty category',
  30. 'expand' => 'Expand category',
  31. 'information' => 'Information',
  32. 'open' => 'Open category',
  33. 'opml_url' => 'OPML URL',
  34. 'position' => 'Display position',
  35. 'position_help' => 'To control category sort order',
  36. 'title' => 'Title',
  37. ),
  38. 'feed' => array(
  39. 'accept_cookies' => 'Accept cookies',
  40. 'accept_cookies_help' => 'Allow the feed server to set cookies (stored in memory for the duration of the request only)',
  41. 'add' => 'Add a feed',
  42. 'advanced' => 'Advanced',
  43. 'archiving' => 'Archiving',
  44. 'auth' => array(
  45. 'configuration' => 'Login',
  46. 'help' => 'Allows access to HTTP protected RSS feeds',
  47. 'http' => 'HTTP Authentication',
  48. 'password' => 'HTTP password',
  49. 'username' => 'HTTP username',
  50. ),
  51. 'clear_cache' => 'Always clear cache',
  52. 'content_action' => array(
  53. '_' => 'Content action when fetching the article content',
  54. 'append' => 'Add after existing content',
  55. 'prepend' => 'Add before existing content',
  56. 'replace' => 'Replace existing content',
  57. ),
  58. 'content_retrieval' => 'Content retrieval',
  59. 'css_cookie' => 'Use Cookies when fetching the article content',
  60. 'css_cookie_help' => 'Example: <kbd>foo=bar; gdpr_consent=true; cookie=value</kbd>',
  61. 'css_help' => 'Retrieves truncated RSS feeds (caution, requires more time!)',
  62. 'css_path' => 'Article CSS selector on original website',
  63. 'css_path_filter' => array(
  64. '_' => 'CSS selector of the elements to remove',
  65. 'help' => 'A CSS selector may be a list such as: <kbd>footer, aside, p[data-sanitized-class~="menu"]</kbd>',
  66. ),
  67. 'description' => 'Description',
  68. 'empty' => 'This feed is empty. Please verify that it is still maintained.',
  69. 'error' => 'This feed has encountered a problem. If this situation persists, please verify that it is still reachable.',
  70. 'export-as-opml' => array(
  71. 'download' => 'Download',
  72. 'help' => 'XML file (data subset. <a href="https://freshrss.github.io/FreshRSS/en/developers/OPML.html" target="_blank">See documentation</a>)',
  73. 'label' => 'Export as OPML',
  74. ),
  75. 'filteractions' => array(
  76. '_' => 'Filter actions',
  77. 'help' => 'Write one search filter per line. Operators <a href="https://freshrss.github.io/FreshRSS/en/users/10_filter.html#with-the-search-field" target="_blank">see documentation</a>.',
  78. ),
  79. 'http_headers' => 'HTTP Headers',
  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>).',
  81. 'information' => 'Information',
  82. 'keep_min' => 'Minimum number of articles to keep',
  83. 'kind' => array(
  84. '_' => 'Type of feed source',
  85. 'html_json' => array(
  86. '_' => 'HTML + XPath + JSON dot notation (JSON in HTML)',
  87. 'xpath' => array(
  88. '_' => 'XPath for JSON in HTML',
  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)',
  90. ),
  91. ),
  92. 'html_xpath' => array(
  93. '_' => 'HTML + XPath (Web scraping)',
  94. 'feed_title' => array(
  95. '_' => 'feed title',
  96. 'help' => 'Example: <code>//title</code> or a static string: <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> is a standard query language for advanced users, and which FreshRSS supports to enable Web scraping.',
  99. 'item' => array(
  100. '_' => 'finding news <strong>items</strong><br /><small>(most important)</small>',
  101. 'help' => 'Example: <code>//div[@class="news-item"]</code>',
  102. ),
  103. 'item_author' => array(
  104. '_' => 'item author',
  105. 'help' => 'Can also be a static string. Example: <code>"Anonymous"</code>',
  106. ),
  107. 'item_categories' => 'item tags',
  108. 'item_content' => array(
  109. '_' => 'item content',
  110. 'help' => 'Example to take the full item: <code>.</code>',
  111. ),
  112. 'item_thumbnail' => array(
  113. '_' => 'item thumbnail',
  114. 'help' => 'Example: <code>descendant::img/@src</code>',
  115. ),
  116. 'item_timeFormat' => array(
  117. '_' => 'Custom date/time format',
  118. 'help' => 'Optional. A format supported by <a href="https://php.net/datetime.createfromformat" target="_blank"><code>DateTime::createFromFormat()</code></a> such as <code>d-m-Y H:i:s</code>',
  119. ),
  120. 'item_timestamp' => array(
  121. '_' => 'item date',
  122. 'help' => 'The result will be parsed by <a href="https://php.net/strtotime" target="_blank"><code>strtotime()</code></a>',
  123. ),
  124. 'item_title' => array(
  125. '_' => 'item title',
  126. 'help' => 'Use in particular the <a href="https://developer.mozilla.org/docs/Web/XPath/Axes" target="_blank">XPath axis</a> <code>descendant::</code> like <code>descendant::h2</code>',
  127. ),
  128. 'item_uid' => array(
  129. '_' => 'item unique ID',
  130. 'help' => 'Optional. Example: <code>descendant::div/@data-uri</code>',
  131. ),
  132. 'item_uri' => array(
  133. '_' => 'item link (URL)',
  134. 'help' => 'Example: <code>descendant::a/@href</code>',
  135. ),
  136. 'relative' => 'XPath (relative to item) for:',
  137. 'xpath' => 'XPath for:',
  138. ),
  139. 'json_dotnotation' => array(
  140. '_' => 'JSON (dot notation)',
  141. 'feed_title' => array(
  142. '_' => 'feed title',
  143. 'help' => 'Example: <code>meta.title</code> or a static string: <code>"My custom feed"</code>',
  144. ),
  145. 'help' => 'A JSON dot notated uses dots between objects and brackets for arrays (e.g. <code>data.items[0].title</code>)',
  146. 'item' => array(
  147. '_' => 'finding news <strong>items</strong><br /><small>(most important)</small>',
  148. 'help' => 'JSON path to the array containing the items, e.g. <code>$</code> or <code>newsItems</code>',
  149. ),
  150. 'item_author' => 'item author',
  151. 'item_categories' => 'item tags',
  152. 'item_content' => array(
  153. '_' => 'item content',
  154. 'help' => 'Key under which the content is found, e.g. <code>content</code>',
  155. ),
  156. 'item_thumbnail' => array(
  157. '_' => 'item thumbnail',
  158. 'help' => 'Example: <code>image</code>',
  159. ),
  160. 'item_timeFormat' => array(
  161. '_' => 'Custom date/time format',
  162. 'help' => 'Optional. A format supported by <a href="https://php.net/datetime.createfromformat" target="_blank"><code>DateTime::createFromFormat()</code></a> such as <code>d-m-Y H:i:s</code>',
  163. ),
  164. 'item_timestamp' => array(
  165. '_' => 'item date',
  166. 'help' => 'The result will be parsed by <a href="https://php.net/strtotime" target="_blank"><code>strtotime()</code></a>',
  167. ),
  168. 'item_title' => 'item title',
  169. 'item_uid' => 'item unique ID',
  170. 'item_uri' => array(
  171. '_' => 'item link (URL)',
  172. 'help' => 'Example: <code>permalink</code>',
  173. ),
  174. 'json' => 'dot notation for:',
  175. 'relative' => 'dot notated path (relative to item) for:',
  176. ),
  177. 'jsonfeed' => 'JSON Feed',
  178. 'rss' => 'RSS / Atom (default)',
  179. 'xml_xpath' => 'XML + XPath',
  180. ),
  181. 'maintenance' => array(
  182. 'clear_cache' => 'Clear cache',
  183. 'clear_cache_help' => 'Clear the cache for this feed.',
  184. 'reload_articles' => 'Reload articles',
  185. 'reload_articles_help' => 'Reload that many articles and fetch complete content if a selector is defined.',
  186. 'title' => 'Maintenance',
  187. ),
  188. 'max_http_redir' => 'Max HTTP redirects',
  189. 'max_http_redir_help' => 'Set to 0 or leave blank to disable, -1 for unlimited redirects',
  190. 'method' => array(
  191. '_' => 'HTTP Method',
  192. ),
  193. 'method_help' => 'The POST payload has automatic support for <code>application/x-www-form-urlencoded</code> and <code>application/json</code>',
  194. 'method_postparams' => 'Payload for POST',
  195. 'moved_category_deleted' => 'When you remove a category, its feeds are automatically classified under <em>%s</em>.',
  196. 'mute' => array(
  197. '_' => 'mute',
  198. 'state_is_muted' => 'This feed is muted',
  199. ),
  200. 'no_selected' => 'No feed selected.',
  201. 'number_entries' => '%d articles',
  202. 'open_feed' => 'Open feed %s',
  203. 'path_entries_conditions' => 'Conditions for content retrieval',
  204. 'priority' => array(
  205. '_' => 'Visibility',
  206. 'archived' => 'Do not show (archived)',
  207. 'category' => 'Show in its category',
  208. 'important' => 'Show in important feeds',
  209. 'main_stream' => 'Show in main stream',
  210. ),
  211. 'proxy' => 'Set a proxy for fetching this feed',
  212. 'proxy_help' => 'Select a protocol (e.g: SOCKS5) and enter the proxy address (e.g: <kbd>127.0.0.1:1080</kbd> or <kbd>username:password@127.0.0.1:1080</kbd>)',
  213. 'selector_preview' => array(
  214. 'show_raw' => 'Show source code',
  215. 'show_rendered' => 'Show content',
  216. ),
  217. 'show' => array(
  218. 'all' => 'All feeds',
  219. 'error' => 'Show only feeds with errors',
  220. ),
  221. 'showing' => array(
  222. 'error' => 'Showing only feeds with errors',
  223. ),
  224. 'ssl_verify' => 'Verify SSL security',
  225. 'stats' => 'Statistics',
  226. 'think_to_add' => 'You may add some feeds.',
  227. 'timeout' => 'Timeout in seconds',
  228. 'title' => 'Title',
  229. 'title_add' => 'Add an RSS feed',
  230. 'ttl' => 'Do not automatically refresh more often than',
  231. 'unicityCriteria' => array(
  232. '_' => 'Article unicity criteria',
  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)',
  236. 'link' => 'Link',
  237. 'sha1:link_published' => 'Link + Date',
  238. 'sha1:link_published_title' => 'Link + Date + Title',
  239. 'sha1:link_published_title_content' => 'Link + Date + Title + Content',
  240. ),
  241. 'url' => 'Feed URL',
  242. 'useragent' => 'Set the user agent for fetching this feed',
  243. 'useragent_help' => 'Example: <kbd>Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0)</kbd>',
  244. 'validator' => 'Check the validity of the feed',
  245. 'website' => 'Website URL',
  246. 'websub' => 'Instant notifications with WebSub',
  247. ),
  248. 'import_export' => array(
  249. 'export' => array(
  250. '_' => 'Export',
  251. 'sqlite' => 'Download user database as SQLite', // TODO
  252. ),
  253. 'export_labelled' => 'Export your labelled articles',
  254. 'export_opml' => 'Export list of feeds (OPML)',
  255. 'export_starred' => 'Export your favourites',
  256. 'feed_list' => 'List of %s articles',
  257. 'file_to_import' => 'File to import<br />(OPML, JSON or ZIP)',
  258. 'file_to_import_no_zip' => 'File to import<br />(OPML or JSON)',
  259. 'import' => 'Import',
  260. 'starred_list' => 'List of favourite articles',
  261. 'title' => 'Import / export',
  262. ),
  263. 'menu' => array(
  264. 'add' => 'Add a feed or category',
  265. 'import_export' => 'Import / export',
  266. 'label_management' => 'Label management',
  267. 'stats' => array(
  268. 'idle' => 'Idle feeds',
  269. 'main' => 'Main statistics',
  270. 'repartition' => 'Articles repartition',
  271. ),
  272. 'subscription_management' => 'Subscription management',
  273. 'subscription_tools' => 'Subscription tools',
  274. ),
  275. 'tag' => array(
  276. 'auto_label' => 'Add this label to new articles',
  277. 'name' => 'Name',
  278. 'new_name' => 'New name',
  279. 'old_name' => 'Old name',
  280. ),
  281. 'title' => array(
  282. '_' => 'Subscription management',
  283. 'add' => 'Add a feed or category',
  284. 'add_category' => 'Add a category',
  285. 'add_dynamic_opml' => 'Add dynamic OPML',
  286. 'add_feed' => 'Add a feed',
  287. 'add_label' => 'Add a label',
  288. 'add_opml_category' => 'OPML category name',
  289. 'delete_label' => 'Delete a label',
  290. 'feed_management' => 'RSS feeds management',
  291. 'rename_label' => 'Rename a label',
  292. 'subscription_tools' => 'Subscription tools',
  293. ),
  294. );