sub.php 12 KB

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