]> dev.renevier.net Git - syj.git/commitdiff
faq
authorarno <arno@renevier.net>
Tue, 17 Aug 2010 20:44:56 +0000 (22:44 +0200)
committerarno <arno@renevier.net>
Wed, 18 Aug 2010 16:33:02 +0000 (18:33 +0200)
application/configs/application.ini
application/controllers/FaqController.php [new file with mode: 0644]
application/languages/lang_en.po
application/languages/lang_fr.po
application/layouts/scripts/footer.phtml
application/views/scripts/faq/index.phtml [new file with mode: 0644]
public/css/faq.css [new file with mode: 0644]
public/css/generic.css
public/css/termsofuse.css

index d6158be036b7914b70c94a9202bbb7eb7a121b5a..1f0a587d2a778fc7b9e74f49654a5c346dc7e5d2 100644 (file)
@@ -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 (file)
index 0000000..8a6881c
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+    and is published under the AGPL license. */
+
+class FaqController extends Zend_Controller_Action
+{
+    public function indexAction() {
+        $this->view->headLink()->appendStylesheet('css/generic.css');
+        $this->view->headLink()->appendStylesheet('css/faq.css');
+        $this->view->headTitle($this->view->translate("Frequently asked questions"));
+    }
+}
index 1413a236f3b1f054268571a88df4339fcef5c1f8..4c2e02d1193adbcb1034a83a57bd734d351e9abe 100644 (file)
@@ -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 <arno@renevier.net>\n"
 "Language-Team: arno <arno@renevier.net>\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 "<acronym title=\"Show your journey\">Syj</acronym> 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 "<acronym title=\"Show your journey\">Syj</acronym> 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, &hellip;. 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, &hellip;. 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"
index 05f7bcefcf610c29b8ca951d0bdbfc0bb5982689..aeea7bde1d28deaba7fed79f4568aeb8e35a7341 100644 (file)
@@ -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 <arno@renevier.net>\n"
 "Language-Team: arno <arno@renevier.net>\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&nbsp;?"
+
+#: application/views/scripts/faq/index.phtml:3
+msgid "<acronym title=\"Show your journey\">Syj</acronym> 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 "<acronym title=\"Show your journey\">Syj</acronym> 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&nbsp;?"
+
+#: 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&nbsp;?"
+
+#: 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'&nbsp;«&nbsp;accrocher&nbsp;» 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, &hellip;. 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&nbsp;: syj ne vas pas chercher à accrocher les chemins proches. Il y a trois raisons principales à cela. Une mauvaise raison&nbsp;: cela demanderait beaucoup de travail à mettre en place. Et deux bonnes raisons&nbsp;: 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, &hellip;. 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"
index f2c1b13e85483ae9ef8c6d2246660cd7dbfd1768..776d906aad8d9e70dcee6dccf36271523e28763a 100644 (file)
@@ -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 '</div>' . PHP_EOL;
 
 ?>
diff --git a/application/views/scripts/faq/index.phtml b/application/views/scripts/faq/index.phtml
new file mode 100644 (file)
index 0000000..6824994
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+    echo $this->localeSwitcher();
+?>
+
+<h1><?php echo $this->translate('Frequently asked questions')?></h1>
+<h2 id="whatsyj"><?php echo $this->translate('What\'s syj?')?></h2>
+<p><?php echo $this->translate('<acronym title="Show your journey">Syj</acronym> 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.');?></p>
+
+<h2 id="modify"><?php echo $this->translate('How do I modify a route?')?></h2>
+<p><?php echo $this->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.', '<img style="vertical-align: middle" src="icons/delete.png">');?></p>
+
+<h2 id="account"><?php echo $this->translate('Why should I create a account?')?></h2>
+<p><?php echo $this->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.');?></p>
+
+<h2 id="attach"><?php echo $this->translate('Is it possible to have my route "attach" nearby paths?')?></h2>
+<p><?php echo $this->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, &hellip;. If you are in a place with lot of differents routes, it would be nearly impossible to always choose the right way.');?></p>
diff --git a/public/css/faq.css b/public/css/faq.css
new file mode 100644 (file)
index 0000000..902ed7a
--- /dev/null
@@ -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%;
+}
index 6de219e1a3d6d2fdbe4c12565b8c1f0aa7649aca..2a8748ed1cf41b214f199501cd6265297a27ce6a 100644 (file)
@@ -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;
index d43211c1a17e1e87525eebac9b4d1613b236e73c..e1d3d9648d9bde82b6eef07f4328b267a72e71c9 100644 (file)
@@ -4,3 +4,7 @@ body {
     text-align: justify;
     text-indent: 0.6em;
 }
+
+#footer {
+    _position: static;
+}