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') . ' · '); } } diff --git a/README.md b/README.md index 8bb4cbb..c135ab4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,23 @@ -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 +- it loads a CSS and a JavaScript file 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', + ), +); 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', ), ); 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 ), ); 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'); + } +?> + +
+

+

+
+ + + +