sub.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. 'change_favicon' => 'Change…',
  52. 'clear_cache' => 'Always clear cache',
  53. 'content_action' => array(
  54. '_' => 'Content action when fetching the article content',
  55. 'append' => 'Add after existing content',
  56. 'prepend' => 'Add before existing content',
  57. 'replace' => 'Replace existing content',
  58. ),
  59. 'content_retrieval' => 'Content retrieval',
  60. 'css_cookie' => 'Use Cookies when fetching the article content',
  61. 'css_cookie_help' => 'Example: <kbd>foo=bar; gdpr_consent=true; cookie=value</kbd>',
  62. 'css_help' => 'Retrieves truncated RSS feeds (caution, requires more time!)',
  63. 'css_path' => 'Article CSS selector on original website',
  64. 'css_path_filter' => array(
  65. '_' => 'CSS selector of the elements to remove',
  66. 'help' => 'A CSS selector may be a list such as: <kbd>footer, aside, p[data-sanitized-class~="menu"]</kbd>',
  67. ),
  68. 'description' => 'Description',
  69. 'empty' => 'This feed is empty. Please verify that it is still maintained.',
  70. 'error' => 'This feed has encountered a problem. If this situation persists, please verify that it is still reachable.',
  71. 'export-as-opml' => array(
  72. 'download' => 'Download',
  73. 'help' => 'XML file (data subset. <a href="https://freshrss.github.io/FreshRSS/en/developers/OPML.html" target="_blank">See documentation</a>)',
  74. 'label' => 'Export as OPML',
  75. ),
  76. 'ext_favicon' => 'Set automatically',
  77. 'favicon_changed_by_ext' => 'The icon has been set by the <b>%s</b> extension.',
  78. 'filteractions' => array(
  79. '_' => 'Filter actions',
  80. '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>.',
  81. 'view_filter' => 'Preview filters on existing articles (new window)',
  82. ),
  83. 'http_headers' => 'HTTP Headers',
  84. '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>).',
  85. 'icon' => 'Icon',
  86. 'information' => 'Information',
  87. 'keep_min' => 'Minimum number of articles to keep',
  88. 'kind' => array(
  89. '_' => 'Type of feed source',
  90. 'html_json' => array(
  91. '_' => 'HTML + XPath + JSON dot notation (JSON in HTML)',
  92. 'xpath' => array(
  93. '_' => 'XPath for JSON in HTML',
  94. '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)',
  95. ),
  96. ),
  97. 'html_xpath' => array(
  98. '_' => 'HTML + XPath (Web scraping)',
  99. 'feed_title' => array(
  100. '_' => 'feed title',
  101. 'help' => 'Example: <code>//title</code> or a static string: <code>"My custom feed"</code>',
  102. ),
  103. '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.',
  104. 'item' => array(
  105. '_' => 'finding news <strong>items</strong><br /><small>(most important)</small>',
  106. 'help' => 'Example: <code>//div[@class="news-item"]</code>',
  107. ),
  108. 'item_author' => array(
  109. '_' => 'item author',
  110. 'help' => 'Can also be a static string. Example: <code>"Anonymous"</code>',
  111. ),
  112. 'item_categories' => 'item tags',
  113. 'item_content' => array(
  114. '_' => 'item content',
  115. 'help' => 'Example to take the full item: <code>.</code>',
  116. ),
  117. 'item_thumbnail' => array(
  118. '_' => 'item thumbnail',
  119. 'help' => 'Example: <code>descendant::img/@src</code>',
  120. ),
  121. 'item_timeFormat' => array(
  122. '_' => 'Custom date/time format',
  123. '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>',
  124. ),
  125. 'item_timestamp' => array(
  126. '_' => 'item date',
  127. 'help' => 'The result will be parsed by <a href="https://php.net/strtotime" target="_blank"><code>strtotime()</code></a>',
  128. ),
  129. 'item_title' => array(
  130. '_' => 'item title',
  131. '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>',
  132. ),
  133. 'item_uid' => array(
  134. '_' => 'item unique ID',
  135. 'help' => 'Optional. Example: <code>descendant::div/@data-uri</code>',
  136. ),
  137. 'item_uri' => array(
  138. '_' => 'item link (URL)',
  139. 'help' => 'Example: <code>descendant::a/@href</code>',
  140. ),
  141. 'relative' => 'XPath (relative to item) for:',
  142. 'xpath' => 'XPath for:',
  143. ),
  144. 'json_dotnotation' => array(
  145. '_' => 'JSON (dot notation)',
  146. 'feed_title' => array(
  147. '_' => 'feed title',
  148. 'help' => 'Example: <code>meta.title</code> or a static string: <code>"My custom feed"</code>',
  149. ),
  150. 'help' => 'A JSON dot notated uses dots between objects and brackets for arrays (e.g. <code>data.items[0].title</code>)',
  151. 'item' => array(
  152. '_' => 'finding news <strong>items</strong><br /><small>(most important)</small>',
  153. 'help' => 'JSON path to the array containing the items, e.g. <code>$</code> or <code>newsItems</code>',
  154. ),
  155. 'item_author' => 'item author',
  156. 'item_categories' => 'item tags',
  157. 'item_content' => array(
  158. '_' => 'item content',
  159. 'help' => 'Key under which the content is found, e.g. <code>content</code>',
  160. ),
  161. 'item_thumbnail' => array(
  162. '_' => 'item thumbnail',
  163. 'help' => 'Example: <code>image</code>',
  164. ),
  165. 'item_timeFormat' => array(
  166. '_' => 'Custom date/time format',
  167. '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>',
  168. ),
  169. 'item_timestamp' => array(
  170. '_' => 'item date',
  171. 'help' => 'The result will be parsed by <a href="https://php.net/strtotime" target="_blank"><code>strtotime()</code></a>',
  172. ),
  173. 'item_title' => 'item title',
  174. 'item_uid' => 'item unique ID',
  175. 'item_uri' => array(
  176. '_' => 'item link (URL)',
  177. 'help' => 'Example: <code>permalink</code>',
  178. ),
  179. 'json' => 'dot notation for:',
  180. 'relative' => 'dot notated path (relative to item) for:',
  181. ),
  182. 'jsonfeed' => 'JSON Feed',
  183. 'rss' => 'RSS / Atom (default)',
  184. 'xml_xpath' => 'XML + XPath',
  185. ),
  186. 'maintenance' => array(
  187. 'clear_cache' => 'Clear cache',
  188. 'clear_cache_help' => 'Clear the cache for this feed.',
  189. 'reload_articles' => 'Reload articles',
  190. 'reload_articles_help' => 'Reload that many articles and fetch complete content if a selector is defined.',
  191. 'title' => 'Maintenance',
  192. ),
  193. 'max_http_redir' => 'Max HTTP redirects',
  194. 'max_http_redir_help' => 'Set to 0 or leave blank to disable, -1 for unlimited redirects',
  195. 'method' => array(
  196. '_' => 'HTTP Method',
  197. ),
  198. 'method_help' => 'The POST payload has automatic support for <code>application/x-www-form-urlencoded</code> and <code>application/json</code>',
  199. 'method_postparams' => 'Payload for POST',
  200. 'moved_category_deleted' => 'When you remove a category, its feeds are automatically classified under <em>%s</em>.',
  201. 'mute' => array(
  202. '_' => 'mute',
  203. 'state_is_muted' => 'This feed is muted',
  204. ),
  205. 'no_selected' => 'No feed selected.',
  206. 'number_entries' => '%d articles',
  207. 'open_feed' => 'Open feed %s',
  208. 'path_entries_conditions' => 'Conditions for content retrieval',
  209. 'priority' => array(
  210. '_' => 'Visibility',
  211. 'category' => 'Show in its category',
  212. 'feed' => 'Show in its feed',
  213. 'hidden' => 'Do not show',
  214. 'important' => 'Show in important feeds',
  215. 'main_stream' => 'Show in main stream',
  216. ),
  217. 'proxy' => 'Set a proxy for fetching this feed',
  218. '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>)',
  219. 'reset_favicon' => 'Reset to default',
  220. 'selector_preview' => array(
  221. 'show_raw' => 'Show source code',
  222. 'show_rendered' => 'Show content',
  223. ),
  224. 'show' => array(
  225. 'all' => 'All feeds',
  226. 'error' => 'Show only feeds with errors',
  227. ),
  228. 'showing' => array(
  229. 'error' => 'Showing only feeds with errors',
  230. ),
  231. 'ssl_verify' => 'Verify SSL security',
  232. 'stats' => 'Statistics',
  233. 'think_to_add' => 'You may add some feeds.',
  234. 'timeout' => 'Timeout in seconds',
  235. 'title' => 'Title',
  236. 'title_add' => 'Add an RSS feed',
  237. 'ttl' => 'Do not automatically refresh more often than',
  238. 'unicityCriteria' => array(
  239. '_' => 'Article unicity criteria',
  240. 'forced' => '<span title="Block the unicity criteria, even when the feed has duplicate articles">forced</span>',
  241. 'help' => 'Relevant for invalid feeds.<br />⚠️ Changing the policy will create duplicates.',
  242. 'id' => 'Standard ID (default)',
  243. 'link' => 'Link',
  244. 'sha1:content' => 'Content',
  245. 'sha1:content_published' => 'Content + Date',
  246. 'sha1:link_published' => 'Link + Date',
  247. 'sha1:link_published_title' => 'Link + Date + Title',
  248. 'sha1:link_published_title_content' => 'Link + Date + Title + Content',
  249. 'sha1:published' => 'Date',
  250. 'sha1:title' => 'Title',
  251. 'sha1:title_published' => 'Title + Date',
  252. 'sha1:title_published_content' => 'Title + Date + Content',
  253. ),
  254. 'url' => 'Feed URL',
  255. 'useragent' => 'Set the user agent for fetching this feed',
  256. 'useragent_help' => 'Example: <kbd>Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0)</kbd>',
  257. 'validator' => 'Check the validity of the feed',
  258. 'website' => 'Website URL',
  259. 'websub' => 'Instant notifications with WebSub',
  260. ),
  261. 'import_export' => array(
  262. 'export' => array(
  263. '_' => 'Export',
  264. 'sqlite' => 'Download user database as SQLite',
  265. ),
  266. 'export_labelled' => 'Export your labelled articles',
  267. 'export_opml' => 'Export list of feeds (OPML)',
  268. 'export_starred' => 'Export your favourites',
  269. 'feed_list' => 'List of %s articles',
  270. 'file_to_import' => 'File to import<br />(OPML, JSON or ZIP)',
  271. 'file_to_import_no_zip' => 'File to import<br />(OPML or JSON)',
  272. 'import' => 'Import',
  273. 'starred_list' => 'List of favourite articles',
  274. 'title' => 'Import / export',
  275. ),
  276. 'menu' => array(
  277. 'add' => 'Add a feed or category',
  278. 'import_export' => 'Import / export',
  279. 'label_management' => 'Label management',
  280. 'stats' => array(
  281. 'idle' => 'Idle feeds',
  282. 'main' => 'Main statistics',
  283. 'repartition' => 'Articles repartition',
  284. 'unread_dates' => 'Unread dates',
  285. ),
  286. 'subscription_management' => 'Subscription management',
  287. 'subscription_tools' => 'Subscription tools',
  288. ),
  289. 'tag' => array(
  290. 'auto_label' => 'Add this label to new articles',
  291. 'name' => 'Name',
  292. 'new_name' => 'New name',
  293. 'old_name' => 'Old name',
  294. ),
  295. 'title' => array(
  296. '_' => 'Subscription management',
  297. 'add' => 'Add a feed or category',
  298. 'add_category' => 'Add a category',
  299. 'add_dynamic_opml' => 'Add dynamic OPML',
  300. 'add_feed' => 'Add a feed',
  301. 'add_label' => 'Add a label',
  302. 'add_opml_category' => 'OPML category name',
  303. 'delete_label' => 'Delete this label',
  304. 'feed_management' => 'RSS feeds management',
  305. 'subscription_tools' => 'Subscription tools',
  306. ),
  307. );