A free, self-hostable news aggregator…
[i18n] Add documentation for new hooks (#2815)
Frans de Jonge8b1ccdac42b5
diff --git a/docs/en/developers/03_Backend/05_Extensions.md b/docs/en/developers/03_Backend/05_Extensions.mdindex 3977faae6..69dda65e5 100644--- a/docs/en/developers/03_Backend/05_Extensions.md+++ b/docs/en/developers/03_Backend/05_Extensions.md@@ -363,8 +363,10 @@ class HelloWorldExtension extends Minz_ExtensionThe following events are available:+* `check_url_before_add` (`function($url) -> Url | null`): will be executed every time a URL is added. The URL itself will be passed as parameter. This way a website known to have feeds which doesn't advertise it in the header can still be automatically supported.* `entry_before_display` (`function($entry) -> Entry | null`): will be executed every time an entry is rendered. The entry itself (instance of FreshRSS\_Entry) will be passed as parameter.* `entry_before_insert` (`function($entry) -> Entry | null`): will be executed when a feed is refreshed and new entries will be imported into the database. The new entry (instance of FreshRSS\_Entry) will be passed as parameter.+* `feed_before_actualize` (`function($feed) -> Feed | null`): will be executed when a feed is updated. The feed (instance of FreshRSS\_Feed) will be passed as parameter.* `feed_before_insert` (`function($feed) -> Feed | null`): will be executed when a new feed is imported into the database. The new feed (instance of FreshRSS\_Feed) will be passed as parameter.* `freshrss_init` (`function() -> none`): will be executed at the end of the initialization of FreshRSS, useful to initialize components or to do additional access checks* `menu_admin_entry` (`function() -> string`): add an entry at the end of the "Administration" menu, the returned string must be valid HTML (e.g. `<li class="item active"><a href="url">New entry</a></li>`)diff --git a/docs/fr/developers/03_Backend/05_Extensions.md b/docs/fr/developers/03_Backend/05_Extensions.mdindex 1b340505f..1f7687b47 100644--- a/docs/fr/developers/03_Backend/05_Extensions.md+++ b/docs/fr/developers/03_Backend/05_Extensions.md@@ -521,6 +521,10 @@ class HelloWorldExtension extends Minz_ExtensionThe following events are available:+* `check_url_before_add` (`function($url) -> Url | null`): will be executed+ every time a URL is added. The URL itself will be passed as+ parameter. This way a website known to have feeds which doesn't advertise+ it in the header can still be automatically supported.* `entry_before_display` (`function($entry) -> Entry | null`): will beexecuted every time an entry is rendered. The entry itself (instance ofFreshRSS\_Entry) will be passed as parameter.@@ -528,6 +532,9 @@ The following events are available:executed when a feed is refreshed and new entries will be imported intothe database. The new entry (instance of FreshRSS\_Entry) will be passedas parameter.+* `feed_before_actualize` (`function($feed) -> Feed | null`): will be+ executed when a feed is updated. The feed (instance of FreshRSS\_Feed)+ will be passed as parameter.* `feed_before_insert` (`function($feed) -> Feed | null`): will be executedwhen a new feed is imported into the database. The new feed (instance ofFreshRSS\_Feed) will be passed as parameter.diff --git a/docs/i18n/freshrss.fr.po b/docs/i18n/freshrss.fr.poindex a5d536670..3d490e99e 100644--- a/docs/i18n/freshrss.fr.po+++ b/docs/i18n/freshrss.fr.po@@ -10,7 +10,7 @@ msgid ""msgstr """Project-Id-Version: FreshRSS\n""Report-Msgid-Bugs-To: https://github.com/FreshRSS/FreshRSS/issues\n"-"POT-Creation-Date: 2019-12-29 11:00+0100\n"+"POT-Creation-Date: 2020-02-29 18:49+0100\n""PO-Revision-Date: 2019-12-07 10:50+0100\n""Last-Translator: Marien Fressinaud <[email protected]>\n""Language-Team: French <>\n"@@ -380,6 +380,8 @@ msgstr ""#: en/./developers/01_First_steps.md:34 en/./developers/01_First_steps.md:42#: en/./developers/01_First_steps.md:50 en/./developers/03_Running_tests.md:9#: en/./developers/03_Running_tests.md:17+#: en/./developers/04_Pull_requests.md:23+#: en/./developers/04_Pull_requests.md:38#, no-wrapmsgid "console"msgstr "console"@@ -531,7 +533,7 @@ msgstr "Architecture du projet"#: en/./developers/03_Backend/04_Changing_source_code.md:12#: en/./developers/03_Backend/04_Changing_source_code.md:15#: en/./developers/03_Backend/05_Extensions.md:342-#: en/./developers/03_Backend/05_Extensions.md:381+#: en/./developers/03_Backend/05_Extensions.md:383#: en/./developers/04_Frontend/01_View_files.md:4#: en/./developers/04_Frontend/01_View_files.md:8#: en/./developers/04_Frontend/01_View_files.md:12@@ -2896,7 +2898,16 @@ msgid "The following events are available:"msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378+msgid ""+"`check_url_before_add` (`function($url) -> Url | null`): will be executed "+"every time a URL is added. The URL itself will be passed as parameter. This "+"way a website known to have feeds which doesn't advertise it in the header "+"can still be automatically supported."+msgstr ""++#. type: Bullet: '* '+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`entry_before_display` (`function($entry) -> Entry | null`): will be ""executed every time an entry is rendered. The entry itself (instance of "@@ -2904,7 +2915,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`entry_before_insert` (`function($entry) -> Entry | null`): will be executed ""when a feed is refreshed and new entries will be imported into the database. "@@ -2912,7 +2923,15 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378+msgid ""+"`feed_before_actualize` (`function($feed) -> Feed | null`): will be executed "+"when a feed is updated. The feed (instance of FreshRSS\\_Feed) will be "+"passed as parameter."+msgstr ""++#. type: Bullet: '* '+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`feed_before_insert` (`function($feed) -> Feed | null`): will be executed ""when a new feed is imported into the database. The new feed (instance of "@@ -2920,7 +2939,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`freshrss_init` (`function() -> none`): will be executed at the end of the ""initialization of FreshRSS, useful to initialize components or to do "@@ -2928,7 +2947,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`menu_admin_entry` (`function() -> string`): add an entry at the end of the ""\"Administration\" menu, the returned string must be valid HTML (e.g. `<li "@@ -2936,7 +2955,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`menu_configuration_entry` (`function() -> string`): add an entry at the end ""of the \"Configuration\" menu, the returned string must be valid HTML (e.g. "@@ -2944,7 +2963,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`menu_other_entry` (`function() -> string`): add an entry at the end of the ""header dropdown menu (i.e. after the \"About\" entry), the returned string "@@ -2953,32 +2972,32 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`nav_reading_modes` (`function($reading_modes) -> array | null`): **TODO** ""add documentation"msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid "`post_update` (`function(none) -> none`): **TODO** add documentation"msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`simplepie_before_init` (`function($simplePie, $feed) -> none`): **TODO** ""add documentation"msgstr ""#. type: Title ###-#: en/./developers/03_Backend/05_Extensions.md:377+#: en/./developers/03_Backend/05_Extensions.md:379#, no-wrapmsgid "Writing your own configure.phtml"msgstr ""#. type: Plain text-#: en/./developers/03_Backend/05_Extensions.md:380+#: en/./developers/03_Backend/05_Extensions.md:382msgid """When you want to support user configurations for your extension or simply ""display some information, you have to create the `configure.phtml` file."@@ -3104,6 +3123,256 @@ msgstr "Écrire un nouveau thème"msgid "Overriding icons"msgstr "Surcharger les icônes"+#. type: Title #+#: en/./developers/04_Pull_requests.md:1+#, no-wrap+msgid "Opening a pull request"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:4+#, fuzzy+#| msgid ""+#| "[Go to the bug ticket manager](https://github.com/FreshRSS/FreshRSS/"+#| "issues)"+msgid ""+"So you want to propose a patch to the community? It's time to open a [pull "+"request](https://github.com/FreshRSS/FreshRSS/pulls)!"+msgstr ""+"[Rendez-vous sur le gestionnaire de tickets de bugs](https://github.com/"+"FreshRSS/FreshRSS/issues)"++#. type: Plain text+#: en/./developers/04_Pull_requests.md:6+msgid ""+"When you open a PR, your message will be prefilled with a message based on "+"[a template](https://github.com/FreshRSS/FreshRSS/blob/master/docs/"+"pull_request_template.md). It contains a checklist to make sure you didn't "+"forget anything. It is very important to verify you did everything mentioned "+"so documentation is up-to-date, the commit history stays clear and the code "+"is always stable."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:8+msgid "The rest of this document explains specific points."+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:9+#, no-wrap+msgid "How to rebase your branch on `master`"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:12+msgid ""+"Rebasing a branch is useful to make sure your code is based on the most "+"recent version of FreshRSS and there are no conflicts. You have two ways to "+"do that."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:14+msgid ""+"If you have any doubt, please let us know and we'll help you! We all began "+"with Git one day and it's not an easy thing to work with."+msgstr ""++#. type: Title ###+#: en/./developers/04_Pull_requests.md:15+#, no-wrap+msgid "Rebasing"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:18+msgid ""+"Rebasing is the cleanest method because the Git history will be completely "+"linear and consequently easier to read and navigate. It might also be more "+"difficult if you're not at ease with Git since conflicts are harder to "+"resolve."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:20+msgid ""+"Note that you should never rebase a branch if someone else is working on it. "+"Otherwise, since it rewrites the history, it can be a real mess to sort it "+"out."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:22+msgid "To rebase a branch:"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:23+#, no-wrap+msgid ""+"$ git checkout master # go on master branch\n"+"$ git pull upstream master # pull the last version of master\n"+"$ git checkout - # go back to your branch\n"+"$ git rebase master # rebase your branch on master\n"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:31+msgid ""+"If you feel confident, you can use `git rebase -i master` to rewrite your "+"history and make it clearer."+msgstr ""++#. type: Title ###+#: en/./developers/04_Pull_requests.md:32+#, fuzzy, no-wrap+#| msgid "Debugging"+msgid "Merging"+msgstr "Déboguer"++#. type: Plain text+#: en/./developers/04_Pull_requests.md:35+msgid ""+"If you prefer, you can simply merge `master` into your own branch. Conflicts "+"might be easier to resolve, but your Git history will be less readable. "+"Don't worry, we'll take care of it before merging your PR back into `master`."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:37+msgid "To merge `master`:"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:38+#, no-wrap+msgid ""+"$ git checkout master # go on master branch\n"+"$ git pull upstream master # pull the last version of master\n"+"$ git checkout - # go back to your branch\n"+"$ git merge master # merge master into your branch\n"+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:45+#, fuzzy, no-wrap+#| msgid "How to write a commit message"+msgid "How to write a Git commit message"+msgstr "Comment écrire un message de commit"++#. type: Plain text+#: en/./developers/04_Pull_requests.md:48+msgid ""+"It's important to have proper commit messages in order to facilitate later "+"debugging, so please read the following advice. Commit messages should "+"explain the choices made in the past (the “why?”)"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:50+msgid ""+"The first line should start with a verb (e.g., \"Add\") and explain the "+"objective of the commit in few words. It's usually less than 50 characters "+"so it remains concise. You can consider this line the subject of your "+"commit. Think of it as the second part of a sentence that starts with the "+"words \"This commit will.\""+msgstr ""++#. type: Bullet: '* '+#: en/./developers/04_Pull_requests.md:52+msgid "This commit will *add feature X*"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:54+msgid ""+"Then, insert a blank line, and start to write the body. It's usually wrapped "+"at 72 characters, but you are pretty free in the tone of the message. The "+"body is the place where you can clarify the context of your patch. For "+"instance, you can explain what you were doing when you identified a bug, or "+"the problem you had before your patch. Providing this information helps "+"other developers understand why a specific choice was made, especially when "+"a patch introduces a bug that is identified months later."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:56+msgid ""+"You also can add references (e.g., the URL to the initial ticket in the bug "+"tracker, or a reference to some forum explaining a point)."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:58+#, fuzzy+#| msgid ""+#| "For further tips, see [here](https://chris.beams.io/posts/git-commit/)."+msgid ""+"You can find more information about commit messages [on this blog post]"+"(https://chris.beams.io/posts/git-commit/)."+msgstr ""+"Pour d'autres conseils, voir [ici](https://chris.beams.io/posts/git-commit/)."++#. type: Title ##+#: en/./developers/04_Pull_requests.md:59+#, fuzzy, no-wrap+#| msgid "How to write a commit message"+msgid "How to write tests"+msgstr "Comment écrire un message de commit"++#. type: Plain text+#: en/./developers/04_Pull_requests.md:62+msgid ""+"FreshRSS has few tests for now, but we're working on it. We added this point "+"to the checklist to help us to write more tests, and we would really "+"appreciate it if you wrote a test that ensures your patch is working."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:64+msgid ""+"We use [PHPUnit](https://phpunit.de/) version 7.5 ([documentation](https://"+"phpunit.readthedocs.io/en/7.5/))."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:66+msgid ""+"You'll find more information on how to run tests [in this document]"+"(03_Running_tests.md)."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:68+msgid ""+"Feel free to ask us for assistance. Not everything will be easy to test, so "+"don't spend too much time on this."+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:69+#, fuzzy, no-wrap+#| msgid "Contribute to documentation"+msgid "Why you should write documentation"+msgstr "Contribuer à la documentation"++#. type: Plain text+#: en/./developers/04_Pull_requests.md:72+msgid ""+"A friendly project should have correct and complete documentation, so "+"newcomers don't have to ask too many questions, and users can find answers "+"to their problems. The documentation should not be written “later” or "+"chances are it'll never be."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:73+msgid ""+"Our documentation can still be improved quite a bit, so you're very welcome "+"if you want to help."+msgstr ""+#. type: Title ##: en/./developers/05_Release_new_version.md:1#, no-wrapdiff --git a/docs/i18n/templates/freshrss.pot b/docs/i18n/templates/freshrss.potindex bdeff8328..cf7fd72e6 100644--- a/docs/i18n/templates/freshrss.pot+++ b/docs/i18n/templates/freshrss.pot@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: https://github.com/FreshRSS/FreshRSS/issues\n"-"POT-Creation-Date: 2019-12-29 11:00+0100\n"+"POT-Creation-Date: 2020-02-29 18:49+0100\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -301,7 +301,7 @@ msgid "Once you're done, clone the repository with:"msgstr ""#. type: Code fence info string-#: en/./developers/01_First_steps.md:15 en/./developers/01_First_steps.md:24 en/./developers/01_First_steps.md:34 en/./developers/01_First_steps.md:42 en/./developers/01_First_steps.md:50 en/./developers/03_Running_tests.md:9 en/./developers/03_Running_tests.md:17+#: en/./developers/01_First_steps.md:15 en/./developers/01_First_steps.md:24 en/./developers/01_First_steps.md:34 en/./developers/01_First_steps.md:42 en/./developers/01_First_steps.md:50 en/./developers/03_Running_tests.md:9 en/./developers/03_Running_tests.md:17 en/./developers/04_Pull_requests.md:23 en/./developers/04_Pull_requests.md:38#, no-wrapmsgid "console"msgstr ""@@ -421,7 +421,7 @@ msgid "Project architecture"msgstr ""#. type: Plain text-#: en/./developers/01_First_steps.md:61 en/./developers/03_Backend/02_Minz.md:4 en/./developers/03_Backend/02_Minz.md:8 en/./developers/03_Backend/02_Minz.md:12 en/./developers/03_Backend/02_Minz.md:16 en/./developers/03_Backend/02_Minz.md:20 en/./developers/03_Backend/02_Minz.md:24 en/./developers/03_Backend/02_Minz.md:27 en/./developers/03_Backend/04_Changing_source_code.md:4 en/./developers/03_Backend/04_Changing_source_code.md:8 en/./developers/03_Backend/04_Changing_source_code.md:12 en/./developers/03_Backend/04_Changing_source_code.md:15 en/./developers/03_Backend/05_Extensions.md:342 en/./developers/03_Backend/05_Extensions.md:381 en/./developers/04_Frontend/01_View_files.md:4 en/./developers/04_Frontend/01_View_files.md:8 en/./developers/04_Frontend/01_View_files.md:12 en/./developers/04_Frontend/01_View_files.md:15 en/./developers/04_Frontend/02_Design.md:4 en/./developers/04_Frontend/02_Design.md:8 en/./developers/04_Frontend/02_Design.md:11 en/./users/03_Main_view.md:4 en/./users/03_Main_view.md:8 en/./users/03_Main_view.md:12 en/./users/04_Subscriptions.md:4 en/./users/04_Subscriptions.md:8 en/./users/04_Subscriptions.md:19 en/./users/05_Configuration.md:70 en/./users/05_Configuration.md:74 en/./users/05_Configuration.md:128 en/./users/05_Configuration.md:153 en/./users/05_Configuration.md:157 en/./users/05_Configuration.md:161+#: en/./developers/01_First_steps.md:61 en/./developers/03_Backend/02_Minz.md:4 en/./developers/03_Backend/02_Minz.md:8 en/./developers/03_Backend/02_Minz.md:12 en/./developers/03_Backend/02_Minz.md:16 en/./developers/03_Backend/02_Minz.md:20 en/./developers/03_Backend/02_Minz.md:24 en/./developers/03_Backend/02_Minz.md:27 en/./developers/03_Backend/04_Changing_source_code.md:4 en/./developers/03_Backend/04_Changing_source_code.md:8 en/./developers/03_Backend/04_Changing_source_code.md:12 en/./developers/03_Backend/04_Changing_source_code.md:15 en/./developers/03_Backend/05_Extensions.md:342 en/./developers/03_Backend/05_Extensions.md:383 en/./developers/04_Frontend/01_View_files.md:4 en/./developers/04_Frontend/01_View_files.md:8 en/./developers/04_Frontend/01_View_files.md:12 en/./developers/04_Frontend/01_View_files.md:15 en/./developers/04_Frontend/02_Design.md:4 en/./developers/04_Frontend/02_Design.md:8 en/./developers/04_Frontend/02_Design.md:11 en/./users/03_Main_view.md:4 en/./users/03_Main_view.md:8 en/./users/03_Main_view.md:12 en/./users/04_Subscriptions.md:4 en/./users/04_Subscriptions.md:8 en/./users/04_Subscriptions.md:19 en/./users/05_Configuration.md:70 en/./users/05_Configuration.md:74 en/./users/05_Configuration.md:128 en/./users/05_Configuration.md:153 en/./users/05_Configuration.md:157 en/./users/05_Configuration.md:161#, no-wrapmsgid "**TODO**\n"msgstr ""@@ -2292,7 +2292,16 @@ msgid "The following events are available:"msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378+msgid ""+"`check_url_before_add` (`function($url) -> Url | null`): will be executed "+"every time a URL is added. The URL itself will be passed as parameter. This "+"way a website known to have feeds which doesn't advertise it in the header "+"can still be automatically supported."+msgstr ""++#. type: Bullet: '* '+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`entry_before_display` (`function($entry) -> Entry | null`): will be ""executed every time an entry is rendered. The entry itself (instance of "@@ -2300,7 +2309,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`entry_before_insert` (`function($entry) -> Entry | null`): will be executed ""when a feed is refreshed and new entries will be imported into the "@@ -2309,7 +2318,15 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378+msgid ""+"`feed_before_actualize` (`function($feed) -> Feed | null`): will be executed "+"when a feed is updated. The feed (instance of FreshRSS\\_Feed) will be "+"passed as parameter."+msgstr ""++#. type: Bullet: '* '+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`feed_before_insert` (`function($feed) -> Feed | null`): will be executed ""when a new feed is imported into the database. The new feed (instance of "@@ -2317,7 +2334,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`freshrss_init` (`function() -> none`): will be executed at the end of the ""initialization of FreshRSS, useful to initialize components or to do "@@ -2325,7 +2342,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`menu_admin_entry` (`function() -> string`): add an entry at the end of the ""\"Administration\" menu, the returned string must be valid HTML (e.g. `<li "@@ -2333,7 +2350,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`menu_configuration_entry` (`function() -> string`): add an entry at the end ""of the \"Configuration\" menu, the returned string must be valid HTML "@@ -2341,7 +2358,7 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`menu_other_entry` (`function() -> string`): add an entry at the end of the ""header dropdown menu (i.e. after the \"About\" entry), the returned string "@@ -2350,32 +2367,32 @@ msgid ""msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`nav_reading_modes` (`function($reading_modes) -> array | null`): **TODO** ""add documentation"msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid "`post_update` (`function(none) -> none`): **TODO** add documentation"msgstr ""#. type: Bullet: '* '-#: en/./developers/03_Backend/05_Extensions.md:376+#: en/./developers/03_Backend/05_Extensions.md:378msgid """`simplepie_before_init` (`function($simplePie, $feed) -> none`): **TODO** ""add documentation"msgstr ""#. type: Title ###-#: en/./developers/03_Backend/05_Extensions.md:377+#: en/./developers/03_Backend/05_Extensions.md:379#, no-wrapmsgid "Writing your own configure.phtml"msgstr ""#. type: Plain text-#: en/./developers/03_Backend/05_Extensions.md:380+#: en/./developers/03_Backend/05_Extensions.md:382msgid """When you want to support user configurations for your extension or simply ""display some information, you have to create the `configure.phtml` file."@@ -2493,6 +2510,243 @@ msgstr ""msgid "Overriding icons"msgstr ""+#. type: Title #+#: en/./developers/04_Pull_requests.md:1+#, no-wrap+msgid "Opening a pull request"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:4+msgid ""+"So you want to propose a patch to the community? It's time to open a [pull "+"request](https://github.com/FreshRSS/FreshRSS/pulls)!"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:6+msgid ""+"When you open a PR, your message will be prefilled with a message based on "+"[a "+"template](https://github.com/FreshRSS/FreshRSS/blob/master/docs/pull_request_template.md). "+"It contains a checklist to make sure you didn't forget anything. It is very "+"important to verify you did everything mentioned so documentation is "+"up-to-date, the commit history stays clear and the code is always stable."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:8+msgid "The rest of this document explains specific points."+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:9+#, no-wrap+msgid "How to rebase your branch on `master`"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:12+msgid ""+"Rebasing a branch is useful to make sure your code is based on the most "+"recent version of FreshRSS and there are no conflicts. You have two ways to "+"do that."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:14+msgid ""+"If you have any doubt, please let us know and we'll help you! We all began "+"with Git one day and it's not an easy thing to work with."+msgstr ""++#. type: Title ###+#: en/./developers/04_Pull_requests.md:15+#, no-wrap+msgid "Rebasing"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:18+msgid ""+"Rebasing is the cleanest method because the Git history will be completely "+"linear and consequently easier to read and navigate. It might also be more "+"difficult if you're not at ease with Git since conflicts are harder to "+"resolve."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:20+msgid ""+"Note that you should never rebase a branch if someone else is working on "+"it. Otherwise, since it rewrites the history, it can be a real mess to sort "+"it out."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:22+msgid "To rebase a branch:"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:23+#, no-wrap+msgid ""+"$ git checkout master # go on master branch\n"+"$ git pull upstream master # pull the last version of master\n"+"$ git checkout - # go back to your branch\n"+"$ git rebase master # rebase your branch on master\n"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:31+msgid ""+"If you feel confident, you can use `git rebase -i master` to rewrite your "+"history and make it clearer."+msgstr ""++#. type: Title ###+#: en/./developers/04_Pull_requests.md:32+#, no-wrap+msgid "Merging"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:35+msgid ""+"If you prefer, you can simply merge `master` into your own branch. Conflicts "+"might be easier to resolve, but your Git history will be less "+"readable. Don't worry, we'll take care of it before merging your PR back "+"into `master`."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:37+msgid "To merge `master`:"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:38+#, no-wrap+msgid ""+"$ git checkout master # go on master branch\n"+"$ git pull upstream master # pull the last version of master\n"+"$ git checkout - # go back to your branch\n"+"$ git merge master # merge master into your branch\n"+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:45+#, no-wrap+msgid "How to write a Git commit message"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:48+msgid ""+"It's important to have proper commit messages in order to facilitate later "+"debugging, so please read the following advice. Commit messages should "+"explain the choices made in the past (the “why?”)"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:50+msgid ""+"The first line should start with a verb (e.g., \"Add\") and explain the "+"objective of the commit in few words. It's usually less than 50 characters "+"so it remains concise. You can consider this line the subject of your "+"commit. Think of it as the second part of a sentence that starts with the "+"words \"This commit will.\""+msgstr ""++#. type: Bullet: '* '+#: en/./developers/04_Pull_requests.md:52+msgid "This commit will *add feature X*"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:54+msgid ""+"Then, insert a blank line, and start to write the body. It's usually wrapped "+"at 72 characters, but you are pretty free in the tone of the message. The "+"body is the place where you can clarify the context of your patch. For "+"instance, you can explain what you were doing when you identified a bug, or "+"the problem you had before your patch. Providing this information helps "+"other developers understand why a specific choice was made, especially when "+"a patch introduces a bug that is identified months later."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:56+msgid ""+"You also can add references (e.g., the URL to the initial ticket in the bug "+"tracker, or a reference to some forum explaining a point)."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:58+msgid ""+"You can find more information about commit messages [on this blog "+"post](https://chris.beams.io/posts/git-commit/)."+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:59+#, no-wrap+msgid "How to write tests"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:62+msgid ""+"FreshRSS has few tests for now, but we're working on it. We added this point "+"to the checklist to help us to write more tests, and we would really "+"appreciate it if you wrote a test that ensures your patch is working."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:64+msgid ""+"We use [PHPUnit](https://phpunit.de/) version 7.5 "+"([documentation](https://phpunit.readthedocs.io/en/7.5/))."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:66+msgid ""+"You'll find more information on how to run tests [in this "+"document](03_Running_tests.md)."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:68+msgid ""+"Feel free to ask us for assistance. Not everything will be easy to test, so "+"don't spend too much time on this."+msgstr ""++#. type: Title ##+#: en/./developers/04_Pull_requests.md:69+#, no-wrap+msgid "Why you should write documentation"+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:72+msgid ""+"A friendly project should have correct and complete documentation, so "+"newcomers don't have to ask too many questions, and users can find answers "+"to their problems. The documentation should not be written “later” or "+"chances are it'll never be."+msgstr ""++#. type: Plain text+#: en/./developers/04_Pull_requests.md:73+msgid ""+"Our documentation can still be improved quite a bit, so you're very welcome "+"if you want to help."+msgstr ""+#. type: Title ##: en/./developers/05_Release_new_version.md:1#, no-wrapdiff --git a/docs/po4a.conf b/docs/po4a.confindex 98baff2c7..1edda33fa 100644--- a/docs/po4a.conf+++ b/docs/po4a.conf@@ -13,6 +13,7 @@[type: text] en/./developers/03_Running_tests.md $lang:$lang/./developers/03_Running_tests.md opt:"-o markdown" opt:"-M utf-8"[type: text] en/./developers/04_Frontend/01_View_files.md $lang:$lang/./developers/04_Frontend/01_View_files.md opt:"-o markdown" opt:"-M utf-8"[type: text] en/./developers/04_Frontend/02_Design.md $lang:$lang/./developers/04_Frontend/02_Design.md opt:"-o markdown" opt:"-M utf-8"+[type: text] en/./developers/04_Pull_requests.md $lang:$lang/./developers/04_Pull_requests.md opt:"-o markdown" opt:"-M utf-8"[type: text] en/./developers/05_Release_new_version.md $lang:$lang/./developers/05_Release_new_version.md opt:"-o markdown" opt:"-M utf-8"[type: text] en/./index.md $lang:$lang/./index.md opt:"-o markdown" opt:"-M utf-8"[type: text] en/./users/02_First_steps.md $lang:$lang/./users/02_First_steps.md opt:"-o markdown" opt:"-M utf-8"