From 76e9529074ab8416ee00822016bcd3f105f58072 Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 21:49:02 +0100 Subject: [PATCH 1/9] improve readme.md --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8bb4cbb..d099f68 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,22 @@ -Extension-HelloWorld -==================== +# Extension-HelloWorld -An HelloWorld extension +An HelloWorld extension for [FreshRSS](https://github.com/FreshRSS/FreshRSS). + +It is a bit described in the documentation: https://freshrss.github.io/FreshRSS/en/developers/03_Backend/05_Extensions.html#write-an-extension-for-freshrss + +## Warning + +It is not recommended to install this extension on your production server. This extension manipulates the important “About” page. + +## How to install + +To install this extension, download the extension archive first and extract it on your PC. Then, upload this on your server. Extensions must be in the `./extensions` directory of your FreshRSS installation. + +## What it does + +This extension is a little showcase and boilerplate for a FreshRSS extension. + +As showcase it will manipulate some little things: +- the “About” page content will be overwritten +- the “Save” button titles will be changed +- the normal view article list will be changed \ No newline at end of file From a66bde196b7caf6f14198f7ba811fc876cc5c702 Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 21:49:21 +0100 Subject: [PATCH 2/9] about page --- views/index/about.phtml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/views/index/about.phtml b/views/index/about.phtml index 2e5b65d..7e08ac9 100644 --- a/views/index/about.phtml +++ b/views/index/about.phtml @@ -1,4 +1,19 @@ -
-

About

-

A new about page!

-
+partial('aside_configure'); + } +?> + +
+

+

+
+ + +
+ + + +
+ From 7c3948c2b082102c1e31ce71e2eaf163a339435f Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 21:49:40 +0100 Subject: [PATCH 3/9] fix title of about page --- Controllers/indexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/indexController.php b/Controllers/indexController.php index 5360432..8924208 100644 --- a/Controllers/indexController.php +++ b/Controllers/indexController.php @@ -2,6 +2,6 @@ class FreshExtension_index_Controller extends FreshRSS_index_Controller { public function aboutAction() { - Minz_View::prependTitle(_t('ext.about.new_title') . ' · '); + Minz_View::prependTitle(_t('ext.hello_world.about.title') . ' · '); } } From 311ca613984e961c21a10c46727fa4a4901327f6 Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 21:49:55 +0100 Subject: [PATCH 4/9] i18n en --- i18n/en/ext.php | 14 ++++++++++++++ i18n/en/gen.php | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/i18n/en/ext.php b/i18n/en/ext.php index 4fb9e51..8572527 100644 --- a/i18n/en/ext.php +++ b/i18n/en/ext.php @@ -1,7 +1,21 @@ array( 'no_configuration' => 'There is nothing to configure in this extension, sorry!', + 'about' => array ( + 'title' => 'About: Hello World FreshRSS', + 'content' => 'A new about page that was overwritten by the extension “xExtension-HelloWorld”' + ), ), ); diff --git a/i18n/en/gen.php b/i18n/en/gen.php index f85a986..4cd2e0f 100644 --- a/i18n/en/gen.php +++ b/i18n/en/gen.php @@ -1,7 +1,20 @@ array( - 'submit' => 'Save', + 'submit' => 'OK Hello World!', + ), + 'menu' => array( + 'about' => 'About FreshRSS and Hello World', ), ); From e3a23bf78c7e9ac05343eaade88be3e820d0d0a6 Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 21:50:05 +0100 Subject: [PATCH 5/9] i18n fr --- i18n/fr/ext.php | 14 ++++++++++++++ i18n/fr/gen.php | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/i18n/fr/ext.php b/i18n/fr/ext.php index b425d60..a2059ee 100644 --- a/i18n/fr/ext.php +++ b/i18n/fr/ext.php @@ -1,7 +1,21 @@ array( 'no_configuration' => 'Il n’y a rien à configurer dans cette extension, désolé !', ), + 'about' => array ( + 'title' => 'About: Hello World FreshRSS', // TODO + 'content' => 'A new about page that was overwritten by the extension “xExtension-HelloWorld”' // TODO + ), ); diff --git a/i18n/fr/gen.php b/i18n/fr/gen.php index a1e7c51..faf64eb 100644 --- a/i18n/fr/gen.php +++ b/i18n/fr/gen.php @@ -1,7 +1,20 @@ array( - 'submit' => 'Sauvegarder', + 'submit' => 'OK Hello World!', // TODO + ), + 'menu' => array( + 'about' => 'About FreshRSS and Hello World', // TODO ), ); From 106bfe369609f67ce10c5aa532bb0e983a49f63c Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 21:50:13 +0100 Subject: [PATCH 6/9] added: i18n de --- i18n/de/ext.php | 21 +++++++++++++++++++++ i18n/de/gen.php | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 i18n/de/ext.php create mode 100644 i18n/de/gen.php diff --git a/i18n/de/ext.php b/i18n/de/ext.php new file mode 100644 index 0000000..87b6194 --- /dev/null +++ b/i18n/de/ext.php @@ -0,0 +1,21 @@ + array( + 'no_configuration' => 'Hier kann leider nichts konfiguriert werden!', + 'about' => array ( + 'title' => 'Über: Hello World FreshRSS', + 'content' => 'Eine neue „Über“ Seite, die von der Erweiterung „xExtension-HelloWorld“ überschrieben wurde' + ), + ), +); diff --git a/i18n/de/gen.php b/i18n/de/gen.php new file mode 100644 index 0000000..5656b64 --- /dev/null +++ b/i18n/de/gen.php @@ -0,0 +1,20 @@ + array( + 'submit' => 'OK Hello World!', // IGNORE + ), + 'menu' => array( + 'about' => 'Über FreshRSS und Hello World', + ), +); From 37484375f16f91e1e5638eacd4a932073bff3c4f Mon Sep 17 00:00:00 2001 From: mathContao Date: Wed, 22 Mar 2023 22:04:28 +0100 Subject: [PATCH 7/9] readme: CSS+JS --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d099f68..c135ab4 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,5 @@ This extension is a little showcase and boilerplate for a FreshRSS extension. As showcase it will manipulate some little things: - the “About” page content will be overwritten - the “Save” button titles will be changed -- the normal view article list will be changed \ No newline at end of file +- the normal view article list will be changed +- it loads a CSS and a JavaScript file From 33aaf9000fc20f61c1fdab520590db0a512191f6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 4 Nov 2025 08:38:32 +0100 Subject: [PATCH 8/9] Apply suggestion from @Alkarex --- i18n/fr/ext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/fr/ext.php b/i18n/fr/ext.php index a2059ee..8ac9781 100644 --- a/i18n/fr/ext.php +++ b/i18n/fr/ext.php @@ -15,7 +15,7 @@ 'no_configuration' => 'Il n’y a rien à configurer dans cette extension, désolé !', ), 'about' => array ( - 'title' => 'About: Hello World FreshRSS', // TODO - 'content' => 'A new about page that was overwritten by the extension “xExtension-HelloWorld”' // TODO + 'title' => 'À propos : Hello World FreshRSS', + 'content' => 'Une nouvelle page « À propos » qui a été modifiée par l’extension « xExtension-HelloWorld ».' ), ); From d3a00e87ac58a3cacf767f4022c65dbbbd68c05c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 4 Nov 2025 08:38:39 +0100 Subject: [PATCH 9/9] Apply suggestion from @Alkarex --- i18n/fr/gen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/fr/gen.php b/i18n/fr/gen.php index faf64eb..ebe8a37 100644 --- a/i18n/fr/gen.php +++ b/i18n/fr/gen.php @@ -15,6 +15,6 @@ 'submit' => 'OK Hello World!', // TODO ), 'menu' => array( - 'about' => 'About FreshRSS and Hello World', // TODO + 'about' => 'À propos FreshRSS et « HelloWorld »', ), );