From 4a83c2192a2015482bf088562e58c76c4647c8ed Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Tue, 7 Apr 2015 21:32:21 +0200 Subject: [PATCH] Smartysize the maintenance page --- locale/de.json | 5 +++++ locale/en.json | 5 +++++ locale/es.json | 5 +++++ locale/fr.json | 5 +++++ maintenance.php | 15 +-------------- tpl/maintenance.tpl | 8 ++++++++ 6 files changed, 29 insertions(+), 14 deletions(-) create mode 100644 tpl/maintenance.tpl diff --git a/locale/de.json b/locale/de.json index 1e8e837..4d3f3a2 100644 --- a/locale/de.json +++ b/locale/de.json @@ -54,6 +54,11 @@ "Schedule an event": "Termin finden", "Make a classic poll": "Klassische Umfrage" }, + "Maintenance": { + "The application": "die Anwendung", + "is currently under maintenance.": "wird gerade gewartet.", + "Thank you for your understanding.": "Danke für Ihr Verständnis." + }, "1st section": { "What is that?": "Was ist das?", "Framadate is an online service for planning an appointment or make a decision quickly and easily. No registration is required.": "Framadate ist ein Online-Dienst, das Ihnen hilft, Termine zu finden oder Entscheidungen schnell und einfach zu treffen. Keine Registrierung ist erforderlich. ", diff --git a/locale/en.json b/locale/en.json index 077e01f..c736ec9 100644 --- a/locale/en.json +++ b/locale/en.json @@ -50,6 +50,11 @@ "Select the language": "Select the language", "Change the language": "Change the language" }, + "Maintenance": { + "The application": "The application", + "is currently under maintenance.": "is currently under maintenance.", + "Thank you for your understanding.": "Thank you for your understanding." + }, "Homepage": { "Schedule an event": "Schedule an event", "Make a classic poll": "Make a classic poll" diff --git a/locale/es.json b/locale/es.json index 6bf143e..84189b6 100644 --- a/locale/es.json +++ b/locale/es.json @@ -54,6 +54,11 @@ "Schedule an event": "Encuesta para planificar un evento", "Make a classic poll": "ES_Créer un sondage classique" }, + "Maintenance": { + "The application": "ES_L'application", + "is currently under maintenance.": "ES_est en cours de maintenance.", + "Thank you for your understanding.": "ES_Merci de votre compréhension." + }, "1st section": { "What is that?": "ES_Prise en main", "Framadate is an online service for planning an appointment or make a decision quickly and easily. No registration is required.": "ES_Framadate est un service en ligne permettant de planifier un rendez-vous ou prendre des décisions rapidement et simplement. Aucune inscription préalable n’est nécessaire.", diff --git a/locale/fr.json b/locale/fr.json index bf5f7a9..eef8aea 100644 --- a/locale/fr.json +++ b/locale/fr.json @@ -54,6 +54,11 @@ "Schedule an event": "Créer un sondage spécial dates", "Make a classic poll": "Créer un sondage classique" }, + "Maintenance": { + "The application": "L'application", + "is currently under maintenance.": "est en cours de maintenance.", + "Thank you for your understanding.": "Merci de votre compréhension." + }, "1st section": { "What is that?": "Prise en main", "Framadate is an online service for planning an appointment or make a decision quickly and easily. No registration is required.": "Framadate est un service en ligne permettant de planifier un rendez-vous ou prendre des décisions rapidement et simplement. Aucune inscription préalable n’est nécessaire.", diff --git a/maintenance.php b/maintenance.php index 914ecaf..d9a92f0 100644 --- a/maintenance.php +++ b/maintenance.php @@ -16,20 +16,7 @@ * Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ * Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft) */ -namespace Framadate; include_once __DIR__ . '/app/inc/init.php'; -include_once('bandeaux.php'); - -Utils::print_header ( _('Maintenance') ); -bandeau_titre( _('Maintenance') ); - -echo ' -
-

'. _('The application') .NOMAPPLICATION . _('is currently under maintenance. ') . '

' - '

' . _('Thank you for your understanding.') . '

-
'."\n"; - -// Affichage du bandeau de pied -bandeau_pied(); +$smarty->display('maintenance.tpl'); diff --git a/tpl/maintenance.tpl b/tpl/maintenance.tpl new file mode 100644 index 0000000..8985d00 --- /dev/null +++ b/tpl/maintenance.tpl @@ -0,0 +1,8 @@ +{extends file='page.tpl'} + +{block name=main} +
+

{__('Maintenance', 'The application')} {$APPLICATION_NAME} {__('Maintenance', 'is currently under maintenance.')}

+

{__('Maintenance', 'Thank you for your understanding.')}

+
+{/block} \ No newline at end of file