sub.php 13 KB

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