From 208a09a18b0212eecb94b74fd63840e6fcce8878 Mon Sep 17 00:00:00 2001 From: arno Date: Tue, 17 Aug 2010 22:44:56 +0200 Subject: [PATCH] faq --- application/configs/application.ini | 4 ++ application/controllers/FaqController.php | 12 ++++ application/languages/lang_en.po | 80 +++++++++++++++++------ application/languages/lang_fr.po | 80 +++++++++++++++++------ application/layouts/scripts/footer.phtml | 10 +++ application/views/scripts/faq/index.phtml | 16 +++++ public/css/faq.css | 17 +++++ public/css/generic.css | 5 +- public/css/termsofuse.css | 4 ++ 9 files changed, 188 insertions(+), 40 deletions(-) create mode 100644 application/controllers/FaqController.php create mode 100644 application/views/scripts/faq/index.phtml create mode 100644 public/css/faq.css diff --git a/application/configs/application.ini b/application/configs/application.ini index d6158be..1f0a587 100644 --- a/application/configs/application.ini +++ b/application/configs/application.ini @@ -102,6 +102,10 @@ resources.router.routes.newpwd.defaults.action = "index" resources.router.routes.list.route = "list/" resources.router.routes.list.defaults.controller = "list" resources.router.routes.list.defaults.action = "index" +; faq/ +resources.router.routes.faq.route = "faq/" +resources.router.routes.faq.defaults.controller = "faq" +resources.router.routes.faq.defaults.action = "index" ; database resources.db.params.username = "syj" diff --git a/application/controllers/FaqController.php b/application/controllers/FaqController.php new file mode 100644 index 0000000..8a6881c --- /dev/null +++ b/application/controllers/FaqController.php @@ -0,0 +1,12 @@ +view->headLink()->appendStylesheet('css/generic.css'); + $this->view->headLink()->appendStylesheet('css/faq.css'); + $this->view->headTitle($this->view->translate("Frequently asked questions")); + } +} diff --git a/application/languages/lang_en.po b/application/languages/lang_en.po index 1413a23..4c2e02d 100644 --- a/application/languages/lang_en.po +++ b/application/languages/lang_en.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: syj\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-08-15 16:32+0200\n" +"POT-Creation-Date: 2010-08-17 20:59+0200\n" "PO-Revision-Date: \n" "Last-Translator: arno \n" "Language-Team: arno \n" @@ -62,36 +62,36 @@ msgstr "To create a journey, just click on the map to add points to your route. msgid "When you have finished a path, press \"save\", button." msgstr "When you have finished a path, press \"save\", button." -#: application/views/scripts/idx/index.phtml:26 -#: application/controllers/IdxController.php:148 -msgid "duplicate" -msgstr "duplicate" - -#: application/views/scripts/idx/index.phtml:28 -#: application/controllers/IdxController.php:146 -msgid "edit" -msgstr "edit" - -#: application/views/scripts/idx/index.phtml:30 -msgid "start a route" -msgstr "start a route" - -#: application/views/scripts/idx/index.phtml:43 +#: application/views/scripts/idx/index.phtml:32 #: application/controllers/LoginController.php:8 #: application/layouts/scripts/footer.phtml:74 #: application/forms/Login.php:26 msgid "login" msgstr "login" -#: application/views/scripts/idx/index.phtml:45 -#: application/views/scripts/idx/index.phtml:76 +#: application/views/scripts/idx/index.phtml:34 +#: application/views/scripts/idx/index.phtml:88 msgid "create an account" msgstr "create an account" -#: application/views/scripts/idx/index.phtml:46 +#: application/views/scripts/idx/index.phtml:35 msgid "Whith an account, you can manage and modify your routes" msgstr "Whith an account, you can manage and modify your routes" +#: application/views/scripts/idx/index.phtml:52 +#: application/controllers/IdxController.php:148 +msgid "duplicate" +msgstr "duplicate" + +#: application/views/scripts/idx/index.phtml:54 +#: application/controllers/IdxController.php:146 +msgid "edit" +msgstr "edit" + +#: application/views/scripts/idx/index.phtml:56 +msgid "start a route" +msgstr "start a route" + #: application/views/scripts/termsofuse/index.phtml:5 msgid "Show Your Journey is a site whose goal is to allow anyone to publish routes, for example, hiking itinerary, bicycle trip, travel itinerary or whatever." msgstr "Show Your Journey is a site whose goal is to allow anyone to publish routes, for example, hiking itinerary, bicycle trip, travel itinerary or whatever." @@ -198,6 +198,44 @@ msgstr "modify or duplicate" msgid "delete" msgstr "delete" +#: application/views/scripts/faq/index.phtml:1 +#: application/controllers/FaqController.php:10 +msgid "Frequently asked questions" +msgstr "Frequently asked questions" + +#: application/views/scripts/faq/index.phtml:2 +msgid "What's syj?" +msgstr "What's syj?" + +#: application/views/scripts/faq/index.phtml:3 +msgid "Syj is a website to share routes. You draw a route on a map background, and then, you get an link to share it. You can then show clever bicycle rides, your last hiking, or any route you want." +msgstr "Syj est un site de partage d'itiis a website to share routes. You draw a route on a map background, and then, you get an link to share it. You can then show clever bicycle rides, your last hiking, or any route you want." + +#: application/views/scripts/faq/index.phtml:5 +msgid "How do I modify a route?" +msgstr "How do I modify a route?" + +#: application/views/scripts/faq/index.phtml:6 +#, php-format +msgid "When you're editing a route, you can drag and drop a point to move it. If you want to delete it, you need to press the Shift key. While you hold the button, points will have an icon%s over them. Clicking that icon will delete the point." +msgstr "When you're editing a route, you can drag and drop a point to move it. If you want to delete it, you need to press the Shift key. While you hold the button, points will have an icon%s over them. Clicking that icon will delete the point." + +#: application/views/scripts/faq/index.phtml:8 +msgid "Why should I create a account?" +msgstr "Why should I create a account?" + +#: application/views/scripts/faq/index.phtml:9 +msgid "You can create routes without a account. But if you want to modify your routes afterwards, you need to be registered when creating the route." +msgstr "You can create routes without a account. But if you want to modify your routes afterwards, you need to be registered when creating the route." + +#: application/views/scripts/faq/index.phtml:11 +msgid "Is it possible to have my route \"attach\" nearby paths?" +msgstr "Is it possible to have my route \"attach\" nearby paths?" + +#: application/views/scripts/faq/index.phtml:12 +msgid "When you create a route with syj, you must draw each point on the map. If your route follows an existing path, you still need to draw the layer manually: syj will not try to attach nearby existing paths. There are three main reasons. One bad reason: it would a lot of work to implement. And two good reasons: syj uses OpenStreetMap as a background map, and the map is still unfinished in many areas. Also, depending on your route, you may wish to attach to motorways, footways, biycle lanes, railways, …. If you are in a place with lot of differents routes, it would be nearly impossible to always choose the right way." +msgstr "When you create a route with syj, you must draw each point on the map. If your route follows an existing path, you still need to draw the layer manually: syj will not try to attach nearby existing paths. There are three main reasons. One bad reason: it would a lot of work to implement. And two good reasons: syj uses OpenStreetMap as a background map, and the map is still unfinished in many areas. Also, depending on your route, you may wish to attach to motorways, footways, biycle lanes, railways, …. If you are in a place with lot of differents routes, it would be nearly impossible to always choose the right way." + #: application/views/helpers/LogoutLink.php:10 #: application/layouts/scripts/footer.phtml:67 msgid "logout" @@ -578,6 +616,10 @@ msgstr "You have an unsaved route" msgid "contact" msgstr "contact" +#: application/layouts/scripts/footer.phtml:97 +msgid "faq" +msgstr "faq" + #: application/forms/Login.php:9 msgid "user" msgstr "user" diff --git a/application/languages/lang_fr.po b/application/languages/lang_fr.po index 05f7bce..aeea7bd 100644 --- a/application/languages/lang_fr.po +++ b/application/languages/lang_fr.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: syj\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-08-15 16:32+0200\n" +"POT-Creation-Date: 2010-08-17 20:59+0200\n" "PO-Revision-Date: \n" "Last-Translator: arno \n" "Language-Team: arno \n" @@ -62,36 +62,36 @@ msgstr "Pour créer un trajet, cliquez simplement sur la carte pour ajouter des msgid "When you have finished a path, press \"save\", button." msgstr "Lorsque vous avez fini votre tracé, pressez le bouton \"enregistrer\"." -#: application/views/scripts/idx/index.phtml:26 -#: application/controllers/IdxController.php:148 -msgid "duplicate" -msgstr "dupliquer" - -#: application/views/scripts/idx/index.phtml:28 -#: application/controllers/IdxController.php:146 -msgid "edit" -msgstr "modifier" - -#: application/views/scripts/idx/index.phtml:30 -msgid "start a route" -msgstr "commencer un itinéraire" - -#: application/views/scripts/idx/index.phtml:43 +#: application/views/scripts/idx/index.phtml:32 #: application/controllers/LoginController.php:8 #: application/layouts/scripts/footer.phtml:74 #: application/forms/Login.php:26 msgid "login" msgstr "connexion" -#: application/views/scripts/idx/index.phtml:45 -#: application/views/scripts/idx/index.phtml:76 +#: application/views/scripts/idx/index.phtml:34 +#: application/views/scripts/idx/index.phtml:88 msgid "create an account" msgstr "créer un compte" -#: application/views/scripts/idx/index.phtml:46 +#: application/views/scripts/idx/index.phtml:35 msgid "Whith an account, you can manage and modify your routes" msgstr "Avec un compte, vous pourrez gérer et modifier vos itinéraires" +#: application/views/scripts/idx/index.phtml:52 +#: application/controllers/IdxController.php:148 +msgid "duplicate" +msgstr "dupliquer" + +#: application/views/scripts/idx/index.phtml:54 +#: application/controllers/IdxController.php:146 +msgid "edit" +msgstr "modifier" + +#: application/views/scripts/idx/index.phtml:56 +msgid "start a route" +msgstr "commencer un itinéraire" + #: application/views/scripts/termsofuse/index.phtml:5 msgid "Show Your Journey is a site whose goal is to allow anyone to publish routes, for example, hiking itinerary, bicycle trip, travel itinerary or whatever." msgstr "Show Your Journey est un site dont le but est de permettre à quiconque de publier des itinéraires, par exemples, des itinéraires de randonnées, des trajets cyclistes, des itinéraires de voyages, ou n'importe quoi d'autre." @@ -198,6 +198,44 @@ msgstr "modifier ou dupliquer" msgid "delete" msgstr "supprimer" +#: application/views/scripts/faq/index.phtml:1 +#: application/controllers/FaqController.php:10 +msgid "Frequently asked questions" +msgstr "Foire aux questions" + +#: application/views/scripts/faq/index.phtml:2 +msgid "What's syj?" +msgstr "Qu'est-ce que syj ?" + +#: application/views/scripts/faq/index.phtml:3 +msgid "Syj is a website to share routes. You draw a route on a map background, and then, you get an link to share it. You can then show clever bicycle rides, your last hiking, or any route you want." +msgstr "Syj is un site de partage d'itinéraires. Vous dessinez un itinéraire sur un fond de carte, et vous obtenez un lien pour le partager. Vous pouvez l'utiliser pour montrer des trajets de randonnée, des itinéraires cyclistes malin, ou n'importe quoi d'autre." + +#: application/views/scripts/faq/index.phtml:5 +msgid "How do I modify a route?" +msgstr "Comment modifier un itinéraire ?" + +#: application/views/scripts/faq/index.phtml:6 +#, php-format +msgid "When you're editing a route, you can drag and drop a point to move it. If you want to delete it, you need to press the Shift key. While you hold the button, points will have an icon%s over them. Clicking that icon will delete the point." +msgstr "Lorsque vous éditez un itinéraire, vous pouvez le bouger en le glisser-déposant. Si vous voulez le supprimer, vous devez appuyer sur la touche Shift. Lorsque la touche est enfoncée, une icône%s va apparaître au dessus des points. Cliquez sur l'icône pour supprimer un point." + +#: application/views/scripts/faq/index.phtml:8 +msgid "Why should I create a account?" +msgstr "Pourquoi créer un compte ?" + +#: application/views/scripts/faq/index.phtml:9 +msgid "You can create routes without a account. But if you want to modify your routes afterwards, you need to be registered when creating the route." +msgstr "Vous pouvez créer des itinéraires sans avoir de compte. Mais si vous voulez modifier les itinéraires que vous avez créé, vous devez avoir un compte lors de leur création." + +#: application/views/scripts/faq/index.phtml:11 +msgid "Is it possible to have my route \"attach\" nearby paths?" +msgstr "Est-ce que c'est possible d' Â« accrocher Â» les routes ?" + +#: application/views/scripts/faq/index.phtml:12 +msgid "When you create a route with syj, you must draw each point on the map. If your route follows an existing path, you still need to draw the layer manually: syj will not try to attach nearby existing paths. There are three main reasons. One bad reason: it would a lot of work to implement. And two good reasons: syj uses OpenStreetMap as a background map, and the map is still unfinished in many areas. Also, depending on your route, you may wish to attach to motorways, footways, biycle lanes, railways, …. If you are in a place with lot of differents routes, it would be nearly impossible to always choose the right way." +msgstr "Lorsque vous créez un itinéraire avec syj, vous devez placer chaque point sur la carte. Si votre itinéraire suit un chemin, vous devez quand même dessiner la surcouche à la main : syj ne vas pas chercher à accrocher les chemins proches. Il y a trois raisons principales à cela. Une mauvaise raison : cela demanderait beaucoup de travail à mettre en place. Et deux bonnes raisons : syj utilise OpenStreetMap comme fond de carte. Or, il y a beaucoup d'endroits où cette carte est incomplète. D'autre part, selon l'itinéraire, vous voudriez accrocher l'autoroute, ou bien les chemins piétons, ou les pistes cyclables, ou les rails de tramway, …. Si vous êtes dans un endroit avec différents types de routes, syj n'arrivera probablement pas à choisir la bonne route." + #: application/views/helpers/LogoutLink.php:10 #: application/layouts/scripts/footer.phtml:67 msgid "logout" @@ -580,6 +618,10 @@ msgstr "Vous avez un itinéraire non sauvegardé" msgid "contact" msgstr "contact" +#: application/layouts/scripts/footer.phtml:97 +msgid "faq" +msgstr "faq" + #: application/forms/Login.php:9 msgid "user" msgstr "utilisateur" diff --git a/application/layouts/scripts/footer.phtml b/application/layouts/scripts/footer.phtml index f2c1b13..776d906 100644 --- a/application/layouts/scripts/footer.phtml +++ b/application/layouts/scripts/footer.phtml @@ -87,6 +87,16 @@ echo $this->footerLink(array( $this->translate("terms of use"), false); +/* + * faq + */ +echo $this->footerLink(array( + 'route' => 'faq', + 'action' => 'index', + 'controller' => 'faq'), + $this->translate("faq"), + false); + echo '' . PHP_EOL; ?> diff --git a/application/views/scripts/faq/index.phtml b/application/views/scripts/faq/index.phtml new file mode 100644 index 0000000..6824994 --- /dev/null +++ b/application/views/scripts/faq/index.phtml @@ -0,0 +1,16 @@ +localeSwitcher(); +?> + +

translate('Frequently asked questions')?>

+

translate('What\'s syj?')?>

+

translate('Syj is a website to share routes. You draw a route on a map background, and then, you get an link to share it. You can then show clever bicycle rides, your last hiking, or any route you want.');?>

+ +

translate('How do I modify a route?')?>

+

translate('When you\'re editing a route, you can drag and drop a point to move it. If you want to delete it, you need to press the Shift key. While you hold the button, points will have an icon%s over them. Clicking that icon will delete the point.', '');?>

+ +

translate('Why should I create a account?')?>

+

translate('You can create routes without a account. But if you want to modify your routes afterwards, you need to be registered when creating the route.');?>

+ +

translate('Is it possible to have my route "attach" nearby paths?')?>

+

translate('When you create a route with syj, you must draw each point on the map. If your route follows an existing path, you still need to draw the layer manually: syj will not try to attach nearby existing paths. There are three main reasons. One bad reason: it would a lot of work to implement. And two good reasons: syj uses OpenStreetMap as a background map, and the map is still unfinished in many areas. Also, depending on your route, you may wish to attach to motorways, footways, biycle lanes, railways, …. If you are in a place with lot of differents routes, it would be nearly impossible to always choose the right way.');?>

diff --git a/public/css/faq.css b/public/css/faq.css new file mode 100644 index 0000000..902ed7a --- /dev/null +++ b/public/css/faq.css @@ -0,0 +1,17 @@ +/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier, + and is published under the AGPL license. */ +body { + text-align: justify; + text-indent: 0.6em; +} + +#footer { + _position: static; +} + +h1, h2 { + text-align: center; +} +p { + margin: 0.5em 15% 2.0em 15%; +} diff --git a/public/css/generic.css b/public/css/generic.css index 6de219e..2a8748e 100644 --- a/public/css/generic.css +++ b/public/css/generic.css @@ -76,13 +76,14 @@ input { * footer */ #footer { - position: absolute; + position: fixed; + _position: absolute; bottom: 0px; left: 0px; right: 0px; height: 2em; text-align: center; border-top: 1px solid gray; - *background-color: white; + background-color: white; } #footer-padding { height: 5px; diff --git a/public/css/termsofuse.css b/public/css/termsofuse.css index d43211c..e1d3d96 100644 --- a/public/css/termsofuse.css +++ b/public/css/termsofuse.css @@ -4,3 +4,7 @@ body { text-align: justify; text-indent: 0.6em; } + +#footer { + _position: static; +} -- 2.39.2