]> dev.renevier.net Git - syj.git/commitdiff
duplicate a route functionality
authorarno <arno@renevier.net>
Fri, 13 Aug 2010 11:26:49 +0000 (13:26 +0200)
committerarno <arno@renevier.net>
Fri, 13 Aug 2010 11:55:05 +0000 (13:55 +0200)
application/controllers/IdxController.php
application/languages/lang_en.po
application/languages/lang_fr.po
application/views/scripts/idx/index.phtml
application/views/scripts/list/index.phtml
public/css/list.css
public/css/syj.css
public/js/syj.js
public/js/utils.js

index 9dc4300fbd634c2de2c77ea6e9d776b51d9eae90..2ae85b951495c9ab91349de0b6b1e3a1b0970102 100644 (file)
@@ -73,6 +73,7 @@ class IdxController extends Zend_Controller_Action
             if ($path->creator) {
                 $loggedinfo->creatorname = $this->view->escape((string)$path->creator->pseudo);
             }
+            $loggedinfo->pathid = (string)$path->id;
         } else {
             $loggedinfo->iscreator = true;
         }
@@ -106,6 +107,9 @@ class IdxController extends Zend_Controller_Action
             'pseudoChecking' => __("checking availibilty"),
             'availablePseudo' => __("available pseudo"),
             'unavailablePseudo' => __("unavailable pseudo"),
+            'editAction' => __("edit"),
+            'createAction' => __("create"),
+            'cloneAction' => __("duplicate"),
             );
     }
 
index fed1b8b965f49f6b88735100970f21f4ea0262e2..81e60a291060d89cbb635927de775cd710c6d58d 100644 (file)
@@ -2,7 +2,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: syj\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-08-12 14:16+0200\n"
+"POT-Creation-Date: 2010-08-13 13:26+0200\n"
 "PO-Revision-Date: \n"
 "Last-Translator: arno <arno@renevier.net>\n"
 "Language-Team: arno <arno@renevier.net>\n"
@@ -37,8 +37,12 @@ msgstr "go to main page"
 
 #: application/views/scripts/contact/index.phtml:8
 #, php-format
-msgid "There was an unkwown message when sending the message. Please try again later, or send a mail directly to <a href=\"mailto:%s\">%s</a>"
-msgstr "There was an unkwown message when sending the message. Please try again later, or send a mail directly to <a href=\"mailto:%s\">%s</a>"
+msgid ""
+"There was an unkwown message when sending the message. Please try again "
+"later, or send a mail directly to <a href=\"mailto:%s\">%s</a>"
+msgstr ""
+"There was an unkwown message when sending the message. Please try again "
+"later, or send a mail directly to <a href=\"mailto:%s\">%s</a>"
 
 #: application/views/scripts/contact/success.phtml:4
 msgid "Email was send successfully"
@@ -54,63 +58,112 @@ msgid "Welcome on Syj."
 msgstr "Welcome on Syj."
 
 #: application/views/scripts/idx/index.phtml:17
-msgid "To create a journey, just click on the map to add points to your route. You can zoom and move map with controls upper left."
-msgstr "To create a journey, just click on the map to add points to your route. You can zoom and move map with controls upper left."
+msgid ""
+"To create a journey, just click on the map to add points to your route. You "
+"can zoom and move map with controls upper left."
+msgstr ""
+"To create a journey, just click on the map to add points to your route. You "
+"can zoom and move map with controls upper left."
 
 #: application/views/scripts/idx/index.phtml:19
 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:25
+#: application/views/scripts/idx/index.phtml:26
+#: application/controllers/IdxController.php:111
+msgid "duplicate"
+msgstr "duplicate"
+
+#: application/views/scripts/idx/index.phtml:28
+#: application/controllers/IdxController.php:109
 msgid "edit"
 msgstr "edit"
 
-#: application/views/scripts/idx/index.phtml:25
+#: application/views/scripts/idx/index.phtml:30
 msgid "start a route"
 msgstr "start a route"
 
-#: application/views/scripts/idx/index.phtml:37
+#: application/views/scripts/idx/index.phtml:43
 #: application/controllers/LoginController.php:8
-#: application/layouts/scripts/footer.phtml:72
-#: application/forms/Login.php:26
+#: application/layouts/scripts/footer.phtml:72 application/forms/Login.php:26
 msgid "login"
 msgstr "login"
 
-#: application/views/scripts/idx/index.phtml:39
-#: application/views/scripts/idx/index.phtml:70
+#: application/views/scripts/idx/index.phtml:45
+#: application/views/scripts/idx/index.phtml:76
 msgid "create an account"
 msgstr "create an account"
 
-#: application/views/scripts/idx/index.phtml:40
+#: application/views/scripts/idx/index.phtml:46
 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/termsofuse/index.phtml:3
-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."
+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."
 
 #: application/views/scripts/termsofuse/index.phtml:7
-msgid "In order to publish a route, you must first create an account. A valid email is asked for, and ip address of account creation is stored on the server. Those informations will not be divulged to anyone without the user explicit permission."
-msgstr "In order to publish a route, you must first create an account. A valid email is asked for, and ip address of account creation is stored on the server. Those informations will not be divulged to anyone without the user explicit permission."
+msgid ""
+"In order to publish a route, you must first create an account. A valid email "
+"is asked for, and ip address of account creation is stored on the server. "
+"Those informations will not be divulged to anyone without the user explicit "
+"permission."
+msgstr ""
+"In order to publish a route, you must first create an account. A valid email "
+"is asked for, and ip address of account creation is stored on the server. "
+"Those informations will not be divulged to anyone without the user explicit "
+"permission."
 
 #: application/views/scripts/termsofuse/index.phtml:11
-msgid "When you create a route, you accept that it's free for any use. This means you accept that anyone can reuse, reproduce, or republish your itinerary, or a modified version of it for any purpose. This also means you need to get appropriate permissions from the creator if you want to upload a route you didn't create yourself."
-msgstr "When you create a route, you accept that it's free for any use. This means you accept that anyone can reuse, reproduce, or republish your itinerary, or a modified version of it for any purpose. This also means you need to get appropriate permissions from the creator if you want to upload a route you didn't create yourself."
+msgid ""
+"When you create a route, you accept that it's free for any use. This means "
+"you accept that anyone can reuse, reproduce, or republish your itinerary, or "
+"a modified version of it for any purpose. This also means you need to get "
+"appropriate permissions from the creator if you want to upload a route you "
+"didn't create yourself."
+msgstr ""
+"When you create a route, you accept that it's free for any use. This means "
+"you accept that anyone can reuse, reproduce, or republish your itinerary, or "
+"a modified version of it for any purpose. This also means you need to get "
+"appropriate permissions from the creator if you want to upload a route you "
+"didn't create yourself."
 
 #: application/views/scripts/termsofuse/index.phtml:15
-msgid "Show Your Journey is not responsible for the accuracy of the routes published. It's the user responsibility to check that a route is accessible and safe."
-msgstr "Show Your Journey is not responsible for the accuracy of the routes published. It's the user responsibility to check that a route is accessible and safe."
+msgid ""
+"Show Your Journey is not responsible for the accuracy of the routes "
+"published. It's the user responsibility to check that a route is accessible "
+"and safe."
+msgstr ""
+"Show Your Journey is not responsible for the accuracy of the routes "
+"published. It's the user responsibility to check that a route is accessible "
+"and safe."
 
 #: application/views/scripts/termsofuse/index.phtml:19
-msgid "Show Your Journey service is provided \"as is\" with no guarantee for accuracy or accessibility."
-msgstr "Show Your Journey service is provided \"as is\" with no guarantee for accuracy or accessibility."
+msgid ""
+"Show Your Journey service is provided \"as is\" with no guarantee for "
+"accuracy or accessibility."
+msgstr ""
+"Show Your Journey service is provided \"as is\" with no guarantee for "
+"accuracy or accessibility."
 
 #: application/views/scripts/termsofuse/index.phtml:23
-msgid "Sources of the software running the website are <a href=\"http://dev.renevier.net/?p=syj.git\">publicly available</a> under a agpl license. The map used to display the routes comes from <a href=\"http://www.openstreetmap.org/\">openstreetmap</a>."
-msgstr "Sources of the software running the website are <a href=\"http://dev.renevier.net/?p=syj.git\">publicly available</a> under a agpl license. The map used to display the routes comes from <a href=\"http://www.openstreetmap.org/\">openstreetmap</a>."
+msgid ""
+"Sources of the software running the website are <a href=\"http://dev."
+"renevier.net/?p=syj.git\">publicly available</a> under a agpl license. The "
+"map used to display the routes comes from <a href=\"http://www.openstreetmap."
+"org/\">openstreetmap</a>."
+msgstr ""
+"Sources of the software running the website are <a href=\"http://dev."
+"renevier.net/?p=syj.git\">publicly available</a> under a agpl license. The "
+"map used to display the routes comes from <a href=\"http://www.openstreetmap."
+"org/\">openstreetmap</a>."
 
 #: application/views/scripts/newpwd/success.phtml:4
-#: application/controllers/IdxController.php:101
+#: application/controllers/IdxController.php:102
 msgid "A link to reset your password has been emailed to you"
 msgstr "A link to reset your password has been emailed to you"
 
@@ -149,8 +202,14 @@ msgstr "log in"
 
 #: application/views/scripts/pending/password_validate.phtml:15
 #, php-format
-msgid "Your new password is now <strong>%s</strong>. You can %s with this new password. Don't forget to change it again to a personal password as soon as possible."
-msgstr "Your new password is now <strong>%s</strong>. You can %s with this new password. Don't forget to change it again to a personal password as soon as possible."
+msgid ""
+"Your new password is now <strong>%s</strong>. You can %s with this new "
+"password. Don't forget to change it again to a personal password as soon as "
+"possible."
+msgstr ""
+"Your new password is now <strong>%s</strong>. You can %s with this new "
+"password. Don't forget to change it again to a personal password as soon as "
+"possible."
 
 #: application/views/scripts/account/success.phtml:4
 msgid "Your account was modified successfully"
@@ -183,14 +242,10 @@ msgid "last page"
 msgstr "last page"
 
 #: application/views/scripts/list/index.phtml:67
-msgid "modify"
-msgstr "modify"
+msgid "modify or duplicate"
+msgstr "modify or duplicate"
 
 #: application/views/scripts/list/index.phtml:68
-msgid "duplicate"
-msgstr "duplicate"
-
-#: application/views/scripts/list/index.phtml:69
 #: application/forms/Pending/ValidateCreation.php:23
 msgid "delete"
 msgstr "delete"
@@ -228,13 +283,15 @@ msgstr "[SYJ] Reset your password"
 msgid ""
 "Hi %user%,\n"
 "\n"
-"Someone, probably you, has asked to reset your password. If you want to reset\n"
+"Someone, probably you, has asked to reset your password. If you want to "
+"reset\n"
 "your password, please follow this link:\n"
 "%hashurl%\n"
 "\n"
 "If you do not not confirm within 2 days, your password will not be reset.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -243,13 +300,15 @@ msgid ""
 msgstr ""
 "Hi %user%,\n"
 "\n"
-"Someone, probably you, has asked to reset your password. If you want to reset\n"
+"Someone, probably you, has asked to reset your password. If you want to "
+"reset\n"
 "your password, please follow this link:\n"
 "%hashurl%\n"
 "\n"
 "If you do not not confirm within 2 days, your password will not be reset.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -264,14 +323,17 @@ msgstr "[SYJ] Validate your account"
 msgid ""
 "Hi %user%, and welcome on syj\n"
 "\n"
-"Your account is currently active, but you need to confirm your inscription by\n"
+"Your account is currently active, but you need to confirm your inscription "
+"by\n"
 "following this link:\n"
 "%hashurl%\n"
 "\n"
-"If you do not not confirm your inscription within 7 days, your account and all\n"
+"If you do not not confirm your inscription within 7 days, your account and "
+"all\n"
 "your items will be deleted.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -280,14 +342,17 @@ msgid ""
 msgstr ""
 "Hi %user%, and welcome on syj\n"
 "\n"
-"Your account is currently active, but you need to confirm your inscription by\n"
+"Your account is currently active, but you need to confirm your inscription "
+"by\n"
 "following this link:\n"
 "%hashurl%\n"
 "\n"
-"If you do not not confirm your inscription within 7 days, your account and all\n"
+"If you do not not confirm your inscription within 7 days, your account and "
+"all\n"
 "your items will be deleted.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -306,7 +371,8 @@ msgid ""
 "account will be deleted tomorrow. Please follow this link:\n"
 "%hashurl%\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -319,7 +385,8 @@ msgstr ""
 "account will be deleted tomorrow. Please follow this link:\n"
 "%hashurl%\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -334,11 +401,13 @@ msgstr "[SYJ] Account deactivated"
 msgid ""
 "Hi %user%,\n"
 "\n"
-"You have not validated your syj account on time. Therefore, your account and\n"
+"You have not validated your syj account on time. Therefore, your account "
+"and\n"
 "all your data have been deleted. Nevertheless, you can still create a new\n"
 "account.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Regards,\n"
@@ -347,11 +416,13 @@ msgid ""
 msgstr ""
 "Hi %user%,\n"
 "\n"
-"You have not validated your syj account on time. Therefore, your account and\n"
+"You have not validated your syj account on time. Therefore, your account "
+"and\n"
 "all your data have been deleted. Nevertheless, you can still create a new\n"
 "account.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Regards,\n"
@@ -359,7 +430,7 @@ msgstr ""
 "Syj team"
 
 #: application/controllers/LoginController.php:101
-#: application/controllers/IdxController.php:91
+#: application/controllers/IdxController.php:92
 msgid "you must enter a login name"
 msgstr "you must enter a login name"
 
@@ -403,8 +474,7 @@ msgid "Value is required and can't be empty"
 msgstr "Value is required and can't be empty"
 
 #: application/controllers/ContactController.php:123
-#: application/forms/Contact.php:32
-#: application/validate/EmailAddress.php:13
+#: application/forms/Contact.php:32 application/validate/EmailAddress.php:13
 msgid "Invalid email"
 msgstr "Invalid email"
 
@@ -413,8 +483,7 @@ msgid "Oups, something went wrong"
 msgstr "Oups, something went wrong"
 
 #: application/controllers/TermsofuseController.php:12
-#: application/layouts/scripts/footer.phtml:85
-#: application/forms/Geom.php:24
+#: application/layouts/scripts/footer.phtml:85 application/forms/Geom.php:24
 #: application/forms/User.php:43
 msgid "terms of use"
 msgstr "terms of use"
@@ -429,27 +498,29 @@ msgid "There is no undo. Delete this route definitively ?"
 msgstr "There is no undo. Delete this route definitively ?"
 
 #: application/controllers/ListController.php:36
-#: application/controllers/IdxController.php:88
+#: application/controllers/IdxController.php:89
 msgid "server could not be reached"
 msgstr "server could not be reached"
 
 #: application/controllers/ListController.php:37
-#: application/controllers/IdxController.php:85
-msgid "server did not understood request. That's probably caused by a bug in SYJ"
-msgstr "server did not understood request. That's probably caused by a bug in SYJ"
+#: application/controllers/IdxController.php:86
+msgid ""
+"server did not understood request. That's probably caused by a bug in SYJ"
+msgstr ""
+"server did not understood request. That's probably caused by a bug in SYJ"
 
 #: application/controllers/ListController.php:38
-#: application/controllers/IdxController.php:86
+#: application/controllers/IdxController.php:87
 msgid "route not referenced on the server. It has probably been deleted."
 msgstr "route not referenced on the server. It has probably been deleted."
 
 #: application/controllers/ListController.php:39
-#: application/controllers/IdxController.php:89
+#: application/controllers/IdxController.php:90
 msgid "there was a server error"
 msgstr "there was a server error"
 
 #: application/controllers/ListController.php:40
-#: application/controllers/IdxController.php:90
+#: application/controllers/IdxController.php:91
 msgid "there was an unknown error"
 msgstr "there was an unknown error"
 
@@ -467,19 +538,18 @@ msgid "Wrong password"
 msgstr "Wrong password"
 
 #: application/controllers/AccountController.php:44
-#: application/controllers/IdxController.php:99
+#: application/controllers/IdxController.php:100
 msgid "an user is already registered with this email"
 msgstr "an user is already registered with this email"
 
 #: application/controllers/AccountController.php:72
-#: application/controllers/IdxController.php:95
+#: application/controllers/IdxController.php:96
 #: application/forms/Account.php:40
 msgid "Password do not match"
 msgstr "Password do not match"
 
 #: application/controllers/AccountController.php:73
-#: application/forms/Account.php:33
-#: application/forms/User.php:20
+#: application/forms/Account.php:33 application/forms/User.php:20
 #, php-format
 msgid "At least %d characters"
 msgstr "At least %d characters"
@@ -488,66 +558,74 @@ msgstr "At least %d characters"
 msgid "You have made no change"
 msgstr "You have made no change"
 
-#: application/controllers/IdxController.php:84
+#: application/controllers/IdxController.php:85
 msgid "save took place successfully"
 msgstr "save took place successfully"
 
-#: application/controllers/IdxController.php:87
-msgid "similar path seems to already exist. Please do not create two exactly identical paths"
-msgstr "similar path seems to already exist. Please do not create two exactly identical paths"
+#: application/controllers/IdxController.php:88
+msgid ""
+"similar path seems to already exist. Please do not create two exactly "
+"identical paths"
+msgstr ""
+"similar path seems to already exist. Please do not create two exactly "
+"identical paths"
 
-#: application/controllers/IdxController.php:92
+#: application/controllers/IdxController.php:93
 msgid "Login correct"
 msgstr "Login correct"
 
-#: application/controllers/IdxController.php:93
+#: application/controllers/IdxController.php:94
 msgid "Wrong login/password"
 msgstr "Wrong login/password"
 
-#: application/controllers/IdxController.php:94
+#: application/controllers/IdxController.php:95
 msgid "you must enter a password"
 msgstr "you must enter a password"
 
-#: application/controllers/IdxController.php:96
+#: application/controllers/IdxController.php:97
 msgid "You must accept terms of use"
 msgstr "You must accept terms of use"
 
-#: application/controllers/IdxController.php:97
+#: application/controllers/IdxController.php:98
 msgid "you must enter an email"
 msgstr "you must enter an email"
 
-#: application/controllers/IdxController.php:98
+#: application/controllers/IdxController.php:99
 msgid "invalid email"
 msgstr "invalid email"
 
-#: application/controllers/IdxController.php:100
+#: application/controllers/IdxController.php:101
 msgid "Account created"
 msgstr "Account created"
 
-#: application/controllers/IdxController.php:102
+#: application/controllers/IdxController.php:103
 msgid "Now, you can retry to save"
 msgstr "Now, you can retry to save"
 
-#: application/controllers/IdxController.php:103
+#: application/controllers/IdxController.php:104
 msgid "route by"
 msgstr "route by"
 
-#: application/controllers/IdxController.php:104
+#: application/controllers/IdxController.php:105
 msgid "Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 msgstr "Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 
-#: application/controllers/IdxController.php:105
+#: application/controllers/IdxController.php:106
 msgid "checking availibilty"
 msgstr "checking availibilty"
 
-#: application/controllers/IdxController.php:106
+#: application/controllers/IdxController.php:107
 msgid "available pseudo"
 msgstr "available pseudo"
 
-#: application/controllers/IdxController.php:107
+#: application/controllers/IdxController.php:108
 msgid "unavailable pseudo"
 msgstr "unavailable pseudo"
 
+#: application/controllers/IdxController.php:110
+msgid "create"
+msgstr "create"
+
 #: application/layouts/scripts/footer.phtml:28
 msgid "contact"
 msgstr "contact"
@@ -556,8 +634,7 @@ msgstr "contact"
 msgid "user"
 msgstr "user"
 
-#: application/forms/Login.php:10
-#: application/forms/Account.php:35
+#: application/forms/Login.php:10 application/forms/Account.php:35
 #: application/forms/User.php:23
 msgid "password"
 msgstr "password"
@@ -594,8 +671,7 @@ msgstr "Send a message"
 msgid "optional title for this journey"
 msgstr "optional title for this journey"
 
-#: application/forms/Geom.php:25
-#: application/forms/User.php:44
+#: application/forms/Geom.php:25 application/forms/User.php:44
 #, php-format
 msgid "I've read and accepted %s"
 msgstr "I've read and accepted %s"
@@ -605,14 +681,12 @@ msgstr "I've read and accepted %s"
 msgid "save"
 msgstr "save"
 
-#: application/forms/Account.php:27
-#: application/forms/User.php:36
+#: application/forms/Account.php:27 application/forms/User.php:36
 #: application/forms/Newpwd.php:28
 msgid "email"
 msgstr "email"
 
-#: application/forms/Account.php:42
-#: application/forms/User.php:30
+#: application/forms/Account.php:42 application/forms/User.php:30
 msgid "confirm password"
 msgstr "confirm password"
 
@@ -633,8 +707,14 @@ msgid "user name"
 msgstr "user name"
 
 #: application/forms/User.php:37
-msgid "After creating your account, you will receive a confirmation email. You have 7 days to confirm otherwise, your account and your routes will all be deleted."
-msgstr "After creating your account, you will receive a confirmation email. You have 7 days to confirm otherwise, your account and your routes will all be deleted."
+msgid ""
+"After creating your account, you will receive a confirmation email. You have "
+"7 days to confirm otherwise, your account and your routes will all be "
+"deleted."
+msgstr ""
+"After creating your account, you will receive a confirmation email. You have "
+"7 days to confirm otherwise, your account and your routes will all be "
+"deleted."
 
 #: application/forms/User.php:56
 msgid "create account"
@@ -642,8 +722,12 @@ msgstr "create account"
 
 #: application/forms/Pending/ResetPassword.php:11
 #, php-format
-msgid "Hi %s. Someone, probably you, has asked to reset password for your account. To get a new password, validate with following button."
-msgstr "Hi %s. Someone, probably you, has asked to reset password for your account. To get a new password, validate with following button."
+msgid ""
+"Hi %s. Someone, probably you, has asked to reset password for your account. "
+"To get a new password, validate with following button."
+msgstr ""
+"Hi %s. Someone, probably you, has asked to reset password for your account. "
+"To get a new password, validate with following button."
 
 #: application/forms/Pending/ResetPassword.php:16
 #: application/forms/Newpwd.php:33
@@ -655,30 +739,50 @@ msgid "cancel request"
 msgstr "cancel request"
 
 #: application/forms/Pending/ResetPassword.php:24
-msgid "To cancel this request, press following button. Your password will not change."
-msgstr "To cancel this request, press following button. Your password will not change."
+msgid ""
+"To cancel this request, press following button. Your password will not "
+"change."
+msgstr ""
+"To cancel this request, press following button. Your password will not "
+"change."
 
 #: application/forms/Pending/ValidateCreation.php:11
 #, php-format
-msgid "Someone, probably you, has registered an account %s with email address %s on syj. To confirm this account creation, validate with following button."
-msgstr "Someone, probably you, has registered an account %s with email address %s on syj. To confirm this account creation, validate with following button."
+msgid ""
+"Someone, probably you, has registered an account %s with email address %s on "
+"syj. To confirm this account creation, validate with following button."
+msgstr ""
+"Someone, probably you, has registered an account %s with email address %s on "
+"syj. To confirm this account creation, validate with following button."
 
 #: application/forms/Pending/ValidateCreation.php:24
-msgid "To cancel account creation, press following button. The account and all its data will be deleted."
-msgstr "To cancel account creation, press following button. The account and all its data will be deleted."
+msgid ""
+"To cancel account creation, press following button. The account and all its "
+"data will be deleted."
+msgstr ""
+"To cancel account creation, press following button. The account and all its "
+"data will be deleted."
+
+#~ msgid "modify"
+#~ msgstr "modify"
 
 #~ msgid "pseudo available"
 #~ msgstr "pseudo available"
+
 #~ msgid "pseudo not available"
 #~ msgstr "pseudo not available"
+
 #~ msgid "pseudo must only contain letters, digits, dots or underscores"
 #~ msgstr "pseudo must only contain letters, digits, dots or underscores"
+
 #~ msgid "route has been deleted from the server."
 #~ msgstr "route has been deleted from the server."
+
 #~ msgid "You need to login before retrying to save"
 #~ msgstr "You need to login before retrying to save"
+
 #~ msgid "You need to have cookies enabled to login to SYJ"
 #~ msgstr "You need to have cookies enabled to login to SYJ"
+
 #~ msgid "reset password"
 #~ msgstr "reset password"
-
index 541112dca685bca5e00d329a19eb0e7cdbd9c55f..f5b009895b6a552b0575370df6bd3e05e8c0baa5 100644 (file)
@@ -2,7 +2,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: syj\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-08-12 14:16+0200\n"
+"POT-Creation-Date: 2010-08-13 13:26+0200\n"
 "PO-Revision-Date: \n"
 "Last-Translator: arno <arno@renevier.net>\n"
 "Language-Team: arno <arno@renevier.net>\n"
@@ -37,8 +37,12 @@ msgstr "aller à la page d'accueil"
 
 #: application/views/scripts/contact/index.phtml:8
 #, php-format
-msgid "There was an unkwown message when sending the message. Please try again later, or send a mail directly to <a href=\"mailto:%s\">%s</a>"
-msgstr "Il s'est produit une erreur inconnue lors de l'envoi du message. Merci de réessayer plus tard, ou d'écrire directement à <a href=\"mailto:%s\">%s</a>"
+msgid ""
+"There was an unkwown message when sending the message. Please try again "
+"later, or send a mail directly to <a href=\"mailto:%s\">%s</a>"
+msgstr ""
+"Il s'est produit une erreur inconnue lors de l'envoi du message. Merci de "
+"réessayer plus tard, ou d'écrire directement à <a href=\"mailto:%s\">%s</a>"
 
 #: application/views/scripts/contact/success.phtml:4
 msgid "Email was send successfully"
@@ -47,72 +51,127 @@ msgstr "L'email a été envoyé avec succès"
 #: application/views/scripts/idx/index.phtml:8
 #: application/views/scripts/list/index.phtml:8
 msgid "SYJ needs javascript. Please activate scripts in your browser."
-msgstr "SYJ a besoin de javascript pour fonctionner. Veuillez activer les scripts dans votre navigateur."
+msgstr ""
+"SYJ a besoin de javascript pour fonctionner. Veuillez activer les scripts "
+"dans votre navigateur."
 
 #: application/views/scripts/idx/index.phtml:15
 msgid "Welcome on Syj."
 msgstr "Bienvenue sur Syj."
 
 #: application/views/scripts/idx/index.phtml:17
-msgid "To create a journey, just click on the map to add points to your route. You can zoom and move map with controls upper left."
-msgstr "Pour créer un trajet, cliquez simplement sur la carte pour ajouter des points à votre tracé. Vous pouvez zoomer et bouger la carte avec les boutons en haut à gauche."
+msgid ""
+"To create a journey, just click on the map to add points to your route. You "
+"can zoom and move map with controls upper left."
+msgstr ""
+"Pour créer un trajet, cliquez simplement sur la carte pour ajouter des "
+"points à votre tracé. Vous pouvez zoomer et bouger la carte avec les boutons "
+"en haut à gauche."
 
 #: application/views/scripts/idx/index.phtml:19
 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:25
+#: application/views/scripts/idx/index.phtml:26
+#: application/controllers/IdxController.php:111
+msgid "duplicate"
+msgstr "dupliquer"
+
+#: application/views/scripts/idx/index.phtml:28
+#: application/controllers/IdxController.php:109
 msgid "edit"
 msgstr "modifier"
 
-#: application/views/scripts/idx/index.phtml:25
+#: application/views/scripts/idx/index.phtml:30
 msgid "start a route"
 msgstr "commencer un itinéraire"
 
-#: application/views/scripts/idx/index.phtml:37
+#: application/views/scripts/idx/index.phtml:43
 #: application/controllers/LoginController.php:8
-#: application/layouts/scripts/footer.phtml:72
-#: application/forms/Login.php:26
+#: application/layouts/scripts/footer.phtml:72 application/forms/Login.php:26
 msgid "login"
 msgstr "connexion"
 
-#: application/views/scripts/idx/index.phtml:39
-#: application/views/scripts/idx/index.phtml:70
+#: application/views/scripts/idx/index.phtml:45
+#: application/views/scripts/idx/index.phtml:76
 msgid "create an account"
 msgstr "créer un compte"
 
-#: application/views/scripts/idx/index.phtml:40
+#: application/views/scripts/idx/index.phtml:46
 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/termsofuse/index.phtml:3
-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."
+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."
 
 #: application/views/scripts/termsofuse/index.phtml:7
-msgid "In order to publish a route, you must first create an account. A valid email is asked for, and ip address of account creation is stored on the server. Those informations will not be divulged to anyone without the user explicit permission."
-msgstr "Pour publier un itinéraire, vous devez tout d'abord créer un compte. Un email valide est demandé, et l'adresse ip de création du compte est enregistrée sur le serveur. Ces informations ne seront divulguées à personne sans la permission explicite de l'utilisateur."
+msgid ""
+"In order to publish a route, you must first create an account. A valid email "
+"is asked for, and ip address of account creation is stored on the server. "
+"Those informations will not be divulged to anyone without the user explicit "
+"permission."
+msgstr ""
+"Pour publier un itinéraire, vous devez tout d'abord créer un compte. Un "
+"email valide est demandé, et l'adresse ip de création du compte est "
+"enregistrée sur le serveur. Ces informations ne seront divulguées à personne "
+"sans la permission explicite de l'utilisateur."
 
 #: application/views/scripts/termsofuse/index.phtml:11
-msgid "When you create a route, you accept that it's free for any use. This means you accept that anyone can reuse, reproduce, or republish your itinerary, or a modified version of it for any purpose. This also means you need to get appropriate permissions from the creator if you want to upload a route you didn't create yourself."
-msgstr "Lorsque vous créez un itinéraire, vous acceptez qu'il soit utilisable sans restriction. Cela veut dire que n'importe qui peut réutiliser, reproduire ou redistribuer votre itinéraire, ou une version modifiée de celui-ci, et pour n'importe quel usage. Cela veut également dire que vous devez obtenir les autorisations nécessaires si vous voulez publier un itinéraire dont vous n'êtes pas l'auteur."
+msgid ""
+"When you create a route, you accept that it's free for any use. This means "
+"you accept that anyone can reuse, reproduce, or republish your itinerary, or "
+"a modified version of it for any purpose. This also means you need to get "
+"appropriate permissions from the creator if you want to upload a route you "
+"didn't create yourself."
+msgstr ""
+"Lorsque vous créez un itinéraire, vous acceptez qu'il soit utilisable sans "
+"restriction. Cela veut dire que n'importe qui peut réutiliser, reproduire ou "
+"redistribuer votre itinéraire, ou une version modifiée de celui-ci, et pour "
+"n'importe quel usage. Cela veut également dire que vous devez obtenir les "
+"autorisations nécessaires si vous voulez publier un itinéraire dont vous "
+"n'êtes pas l'auteur."
 
 #: application/views/scripts/termsofuse/index.phtml:15
-msgid "Show Your Journey is not responsible for the accuracy of the routes published. It's the user responsibility to check that a route is accessible and safe."
-msgstr "Show Your Journey n'est pas responsable de l'exactitude des itinéraires publiés. Il appartient à l'utilisateur de vérifier qu'un chemin est praticable et sécurisé."
+msgid ""
+"Show Your Journey is not responsible for the accuracy of the routes "
+"published. It's the user responsibility to check that a route is accessible "
+"and safe."
+msgstr ""
+"Show Your Journey n'est pas responsable de l'exactitude des itinéraires "
+"publiés. Il appartient à l'utilisateur de vérifier qu'un chemin est "
+"praticable et sécurisé."
 
 #: application/views/scripts/termsofuse/index.phtml:19
-msgid "Show Your Journey service is provided \"as is\" with no guarantee for accuracy or accessibility."
-msgstr "Show Your Journey est proposé sans garantie de fiabilité ou de disponibilité."
+msgid ""
+"Show Your Journey service is provided \"as is\" with no guarantee for "
+"accuracy or accessibility."
+msgstr ""
+"Show Your Journey est proposé sans garantie de fiabilité ou de disponibilité."
 
 #: application/views/scripts/termsofuse/index.phtml:23
-msgid "Sources of the software running the website are <a href=\"http://dev.renevier.net/?p=syj.git\">publicly available</a> under a agpl license. The map used to display the routes comes from <a href=\"http://www.openstreetmap.org/\">openstreetmap</a>."
-msgstr "Les sources du logiciel qui fait tourner le site web sont <a href=\"http://dev.renevier.net/?p=syj.git\">disponibles publiquement</a> sous une licence agpl. La carte utilisée pour l'affichage des itinéraires vient d'<a href=\"http://www.openstreetmap.org/\">openstreetmap</a>."
+msgid ""
+"Sources of the software running the website are <a href=\"http://dev."
+"renevier.net/?p=syj.git\">publicly available</a> under a agpl license. The "
+"map used to display the routes comes from <a href=\"http://www.openstreetmap."
+"org/\">openstreetmap</a>."
+msgstr ""
+"Les sources du logiciel qui fait tourner le site web sont <a href=\"http://"
+"dev.renevier.net/?p=syj.git\">disponibles publiquement</a> sous une licence "
+"agpl. La carte utilisée pour l'affichage des itinéraires vient d'<a href="
+"\"http://www.openstreetmap.org/\">openstreetmap</a>."
 
 #: application/views/scripts/newpwd/success.phtml:4
-#: application/controllers/IdxController.php:101
+#: application/controllers/IdxController.php:102
 msgid "A link to reset your password has been emailed to you"
-msgstr "Un email contenant un lien pour réinitialiser votre mot de passe vous a été envoyé"
+msgstr ""
+"Un email contenant un lien pour réinitialiser votre mot de passe vous a été "
+"envoyé"
 
 #: application/views/scripts/pending/password_cancel.phtml:12
 msgid "You have canceled the request."
@@ -149,8 +208,14 @@ msgstr "vous connecter"
 
 #: application/views/scripts/pending/password_validate.phtml:15
 #, php-format
-msgid "Your new password is now <strong>%s</strong>. You can %s with this new password. Don't forget to change it again to a personal password as soon as possible."
-msgstr "Votre nouveau mot de passe est <strong>%s</strong>. Vous pouvez %s avec le nouveau mot de passe. N'oubliez pas de le rechanger le plus tôt possible pour utiliser un mot de passe personnel."
+msgid ""
+"Your new password is now <strong>%s</strong>. You can %s with this new "
+"password. Don't forget to change it again to a personal password as soon as "
+"possible."
+msgstr ""
+"Votre nouveau mot de passe est <strong>%s</strong>. Vous pouvez %s avec le "
+"nouveau mot de passe. N'oubliez pas de le rechanger le plus tôt possible "
+"pour utiliser un mot de passe personnel."
 
 #: application/views/scripts/account/success.phtml:4
 msgid "Your account was modified successfully"
@@ -183,14 +248,10 @@ msgid "last page"
 msgstr "dernière page"
 
 #: application/views/scripts/list/index.phtml:67
-msgid "modify"
-msgstr "modifier"
+msgid "modify or duplicate"
+msgstr "modifier ou dupliquer"
 
 #: application/views/scripts/list/index.phtml:68
-msgid "duplicate"
-msgstr "dupliquer"
-
-#: application/views/scripts/list/index.phtml:69
 #: application/forms/Pending/ValidateCreation.php:23
 msgid "delete"
 msgstr "supprimer"
@@ -227,13 +288,15 @@ msgstr "[SYJ] Réinitialisation de votre mot de passe"
 msgid ""
 "Hi %user%,\n"
 "\n"
-"Someone, probably you, has asked to reset your password. If you want to reset\n"
+"Someone, probably you, has asked to reset your password. If you want to "
+"reset\n"
 "your password, please follow this link:\n"
 "%hashurl%\n"
 "\n"
 "If you do not not confirm within 2 days, your password will not be reset.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -249,7 +312,8 @@ msgstr ""
 "Si vous n'avez pas confirmé d'ici 2 jours, votre mot de passe ne sera pas\n"
 "réinitialisé.\n"
 "\n"
-"Veuillez ne pas répondre à cet email. Si vous avez besoin de nous contacter,\n"
+"Veuillez ne pas répondre à cet email. Si vous avez besoin de nous "
+"contacter,\n"
 "merci d'utiliser le formulaire à l'adresse suivante:\n"
 "%contacturl%\n"
 "\n"
@@ -265,14 +329,17 @@ msgstr "[SYJ] Validation de la création du compte"
 msgid ""
 "Hi %user%, and welcome on syj\n"
 "\n"
-"Your account is currently active, but you need to confirm your inscription by\n"
+"Your account is currently active, but you need to confirm your inscription "
+"by\n"
 "following this link:\n"
 "%hashurl%\n"
 "\n"
-"If you do not not confirm your inscription within 7 days, your account and all\n"
+"If you do not not confirm your inscription within 7 days, your account and "
+"all\n"
 "your items will be deleted.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -285,10 +352,12 @@ msgstr ""
 "suivant ce lien:\n"
 "%hashurl%\n"
 "\n"
-"Si vous ne confirmez pas votre inscription d'ici 7 jours, votre compte ainsi que\n"
+"Si vous ne confirmez pas votre inscription d'ici 7 jours, votre compte ainsi "
+"que\n"
 "toutes vos modifications seront supprimés.\n"
 "\n"
-"Veuillez ne pas répondre à cet email. Si vous avez besoin de nous contacter,\n"
+"Veuillez ne pas répondre à cet email. Si vous avez besoin de nous "
+"contacter,\n"
 "merci d'utiliser le formulaire à l'adresse suivante:\n"
 "%contacturl%\n"
 "\n"
@@ -308,7 +377,8 @@ msgid ""
 "account will be deleted tomorrow. Please follow this link:\n"
 "%hashurl%\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Thanks,\n"
@@ -321,7 +391,8 @@ msgstr ""
 "validez pas, il sera supprimé demain. Merci de suivre ce lien:\n"
 "%hashurl%\n"
 "\n"
-"VVeuillez ne pas répondre à cet email. Si vous avez besoin de nous contacter,\n"
+"VVeuillez ne pas répondre à cet email. Si vous avez besoin de nous "
+"contacter,\n"
 "merci d'utiliser le formulaire à l'adresse suivante:\n"
 "%contacturl%\n"
 "\n"
@@ -337,11 +408,13 @@ msgstr "[SYJ] Compte désactivé"
 msgid ""
 "Hi %user%,\n"
 "\n"
-"You have not validated your syj account on time. Therefore, your account and\n"
+"You have not validated your syj account on time. Therefore, your account "
+"and\n"
 "all your data have been deleted. Nevertheless, you can still create a new\n"
 "account.\n"
 "\n"
-"Please do not reply this email. If you need to contact us, please use the form\n"
+"Please do not reply this email. If you need to contact us, please use the "
+"form\n"
 "contact at %contacturl%\n"
 "\n"
 "Regards,\n"
@@ -354,14 +427,15 @@ msgstr ""
 "vous données ont donc été supprimés. Vous pouvez toujours recréer\n"
 "un nouveau compte.\n"
 "\n"
-"Veuillez ne pas répondre à cet email. Si vous avez besoin de nous contacter,\n"
+"Veuillez ne pas répondre à cet email. Si vous avez besoin de nous "
+"contacter,\n"
 "merci d'utiliser le formulaire à l'adresse suivante:\n"
 "%contacturl%\n"
 "\n"
 "L'équipe de Syj"
 
 #: application/controllers/LoginController.php:101
-#: application/controllers/IdxController.php:91
+#: application/controllers/IdxController.php:92
 msgid "you must enter a login name"
 msgstr "vous devez entrer un nom d'utilisateur"
 
@@ -405,8 +479,7 @@ msgid "Value is required and can't be empty"
 msgstr "Le champ est requis, et ne doit pas être vide"
 
 #: application/controllers/ContactController.php:123
-#: application/forms/Contact.php:32
-#: application/validate/EmailAddress.php:13
+#: application/forms/Contact.php:32 application/validate/EmailAddress.php:13
 msgid "Invalid email"
 msgstr "Email invalide"
 
@@ -415,8 +488,7 @@ msgid "Oups, something went wrong"
 msgstr "Oups, il y a eu un souci"
 
 #: application/controllers/TermsofuseController.php:12
-#: application/layouts/scripts/footer.phtml:85
-#: application/forms/Geom.php:24
+#: application/layouts/scripts/footer.phtml:85 application/forms/Geom.php:24
 #: application/forms/User.php:43
 msgid "terms of use"
 msgstr "conditions d'utilisation"
@@ -431,27 +503,30 @@ msgid "There is no undo. Delete this route definitively ?"
 msgstr "Vous ne pourrez pas annuler. Supprimer l'itinéraire définitivement ?"
 
 #: application/controllers/ListController.php:36
-#: application/controllers/IdxController.php:88
+#: application/controllers/IdxController.php:89
 msgid "server could not be reached"
 msgstr "serveur inaccessible"
 
 #: application/controllers/ListController.php:37
-#: application/controllers/IdxController.php:85
-msgid "server did not understood request. That's probably caused by a bug in SYJ"
-msgstr "Le serveur n'a pas compris la requête. Il s'agit probablement d'un bug dans SYJ"
+#: application/controllers/IdxController.php:86
+msgid ""
+"server did not understood request. That's probably caused by a bug in SYJ"
+msgstr ""
+"Le serveur n'a pas compris la requête. Il s'agit probablement d'un bug dans "
+"SYJ"
 
 #: application/controllers/ListController.php:38
-#: application/controllers/IdxController.php:86
+#: application/controllers/IdxController.php:87
 msgid "route not referenced on the server. It has probably been deleted."
 msgstr "chemin non référencé sur le serveur. Il a probablement été supprimé."
 
 #: application/controllers/ListController.php:39
-#: application/controllers/IdxController.php:89
+#: application/controllers/IdxController.php:90
 msgid "there was a server error"
 msgstr "Il s'est produit une erreur serveur"
 
 #: application/controllers/ListController.php:40
-#: application/controllers/IdxController.php:90
+#: application/controllers/IdxController.php:91
 msgid "there was an unknown error"
 msgstr "Il s'est produit une erreur inconnue"
 
@@ -469,19 +544,18 @@ msgid "Wrong password"
 msgstr "Mauvais mot de passe"
 
 #: application/controllers/AccountController.php:44
-#: application/controllers/IdxController.php:99
+#: application/controllers/IdxController.php:100
 msgid "an user is already registered with this email"
 msgstr "il y'a déjà un utilisateur enregistré avec cet email"
 
 #: application/controllers/AccountController.php:72
-#: application/controllers/IdxController.php:95
+#: application/controllers/IdxController.php:96
 #: application/forms/Account.php:40
 msgid "Password do not match"
 msgstr "Les mots de passe ne correspondent pas"
 
 #: application/controllers/AccountController.php:73
-#: application/forms/Account.php:33
-#: application/forms/User.php:20
+#: application/forms/Account.php:33 application/forms/User.php:20
 #, php-format
 msgid "At least %d characters"
 msgstr "Au moins %d caractères"
@@ -490,66 +564,74 @@ msgstr "Au moins %d caractères"
 msgid "You have made no change"
 msgstr "Vous n'avez fait aucun changement"
 
-#: application/controllers/IdxController.php:84
+#: application/controllers/IdxController.php:85
 msgid "save took place successfully"
 msgstr "La sauvegarde s'est déroulée correctement"
 
-#: application/controllers/IdxController.php:87
-msgid "similar path seems to already exist. Please do not create two exactly identical paths"
-msgstr "Il semble qu'il y ait déjà un chemin similaire. Veuillez ne pas créer deux chemins exactement identiques"
+#: application/controllers/IdxController.php:88
+msgid ""
+"similar path seems to already exist. Please do not create two exactly "
+"identical paths"
+msgstr ""
+"Il semble qu'il y ait déjà un chemin similaire. Veuillez ne pas créer deux "
+"chemins exactement identiques"
 
-#: application/controllers/IdxController.php:92
+#: application/controllers/IdxController.php:93
 msgid "Login correct"
 msgstr "Vous êtes connectés"
 
-#: application/controllers/IdxController.php:93
+#: application/controllers/IdxController.php:94
 msgid "Wrong login/password"
 msgstr "Mauvais nom d'utilisateur ou mot de passe"
 
-#: application/controllers/IdxController.php:94
+#: application/controllers/IdxController.php:95
 msgid "you must enter a password"
 msgstr "vous devez entrer un mot de passe"
 
-#: application/controllers/IdxController.php:96
+#: application/controllers/IdxController.php:97
 msgid "You must accept terms of use"
 msgstr "Vous devez accepter les conditions d'utilisation"
 
-#: application/controllers/IdxController.php:97
+#: application/controllers/IdxController.php:98
 msgid "you must enter an email"
 msgstr "vous devez entrer un email"
 
-#: application/controllers/IdxController.php:98
+#: application/controllers/IdxController.php:99
 msgid "invalid email"
 msgstr "email invalide"
 
-#: application/controllers/IdxController.php:100
+#: application/controllers/IdxController.php:101
 msgid "Account created"
 msgstr "Compte créé"
 
-#: application/controllers/IdxController.php:102
+#: application/controllers/IdxController.php:103
 msgid "Now, you can retry to save"
 msgstr "Maintenant, vous pouvez réessayer de sauvegarder"
 
-#: application/controllers/IdxController.php:103
+#: application/controllers/IdxController.php:104
 msgid "route by"
 msgstr "tracé par"
 
-#: application/controllers/IdxController.php:104
+#: application/controllers/IdxController.php:105
 msgid "Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 msgstr "Carte par <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 
-#: application/controllers/IdxController.php:105
+#: application/controllers/IdxController.php:106
 msgid "checking availibilty"
 msgstr "vérification de la disponibilité"
 
-#: application/controllers/IdxController.php:106
+#: application/controllers/IdxController.php:107
 msgid "available pseudo"
 msgstr "pseudo disponible"
 
-#: application/controllers/IdxController.php:107
+#: application/controllers/IdxController.php:108
 msgid "unavailable pseudo"
 msgstr "pseudo non disponible"
 
+#: application/controllers/IdxController.php:110
+msgid "create"
+msgstr "créér"
+
 #: application/layouts/scripts/footer.phtml:28
 msgid "contact"
 msgstr "contact"
@@ -558,8 +640,7 @@ msgstr "contact"
 msgid "user"
 msgstr "utilisateur"
 
-#: application/forms/Login.php:10
-#: application/forms/Account.php:35
+#: application/forms/Login.php:10 application/forms/Account.php:35
 #: application/forms/User.php:23
 msgid "password"
 msgstr "mot de passe"
@@ -596,8 +677,7 @@ msgstr "Envoyer un message"
 msgid "optional title for this journey"
 msgstr "titre facultatif pour ce trajet"
 
-#: application/forms/Geom.php:25
-#: application/forms/User.php:44
+#: application/forms/Geom.php:25 application/forms/User.php:44
 #, php-format
 msgid "I've read and accepted %s"
 msgstr "J'ai lu et accepté les %s"
@@ -607,14 +687,12 @@ msgstr "J'ai lu et accepté les %s"
 msgid "save"
 msgstr "enregistrer"
 
-#: application/forms/Account.php:27
-#: application/forms/User.php:36
+#: application/forms/Account.php:27 application/forms/User.php:36
 #: application/forms/Newpwd.php:28
 msgid "email"
 msgstr "email"
 
-#: application/forms/Account.php:42
-#: application/forms/User.php:30
+#: application/forms/Account.php:42 application/forms/User.php:30
 msgid "confirm password"
 msgstr "confirmation du mot de passe"
 
@@ -635,8 +713,14 @@ msgid "user name"
 msgstr "nom d'utilisateur"
 
 #: application/forms/User.php:37
-msgid "After creating your account, you will receive a confirmation email. You have 7 days to confirm otherwise, your account and your routes will all be deleted."
-msgstr "Après la création de votre compte, vous recevrez un mail de confirmation. Vous avez 7 jours pour confirmer sinon, votre compte et tous vos tracés seront supprimés."
+msgid ""
+"After creating your account, you will receive a confirmation email. You have "
+"7 days to confirm otherwise, your account and your routes will all be "
+"deleted."
+msgstr ""
+"Après la création de votre compte, vous recevrez un mail de confirmation. "
+"Vous avez 7 jours pour confirmer sinon, votre compte et tous vos tracés "
+"seront supprimés."
 
 #: application/forms/User.php:56
 msgid "create account"
@@ -644,8 +728,13 @@ msgstr "créer le compte"
 
 #: application/forms/Pending/ResetPassword.php:11
 #, php-format
-msgid "Hi %s. Someone, probably you, has asked to reset password for your account. To get a new password, validate with following button."
-msgstr "Bonjour %s. Quelqu'un, probablement vous, a demandé de réinitialiser le mot de passe de votre compte. Pour avoir un nouveau mot de passe, validez avec le bouton suivant."
+msgid ""
+"Hi %s. Someone, probably you, has asked to reset password for your account. "
+"To get a new password, validate with following button."
+msgstr ""
+"Bonjour %s. Quelqu'un, probablement vous, a demandé de réinitialiser le mot "
+"de passe de votre compte. Pour avoir un nouveau mot de passe, validez avec "
+"le bouton suivant."
 
 #: application/forms/Pending/ResetPassword.php:16
 #: application/forms/Newpwd.php:33
@@ -657,32 +746,51 @@ msgid "cancel request"
 msgstr "annuler la requête"
 
 #: application/forms/Pending/ResetPassword.php:24
-msgid "To cancel this request, press following button. Your password will not change."
-msgstr "Pour annuler la requête, pressez le bouton suivant. Votre mot de passe ne sera pas changé."
+msgid ""
+"To cancel this request, press following button. Your password will not "
+"change."
+msgstr ""
+"Pour annuler la requête, pressez le bouton suivant. Votre mot de passe ne "
+"sera pas changé."
 
 #: application/forms/Pending/ValidateCreation.php:11
 #, php-format
-msgid "Someone, probably you, has registered an account %s with email address %s on syj. To confirm this account creation, validate with following button."
-msgstr "Quelqu'un, probablement vous, a enregistré un compte %s avec l'adresse email %s sur syj. Pour confirmer la création du compte, validez avec le bouton suivant."
+msgid ""
+"Someone, probably you, has registered an account %s with email address %s on "
+"syj. To confirm this account creation, validate with following button."
+msgstr ""
+"Quelqu'un, probablement vous, a enregistré un compte %s avec l'adresse email "
+"%s sur syj. Pour confirmer la création du compte, validez avec le bouton "
+"suivant."
 
 #: application/forms/Pending/ValidateCreation.php:24
-msgid "To cancel account creation, press following button. The account and all its data will be deleted."
-msgstr "Pour annuler la création du compte, pressez le bouton suivant. Le compte ainsi que toutes ses données seront supprimés."
+msgid ""
+"To cancel account creation, press following button. The account and all its "
+"data will be deleted."
+msgstr ""
+"Pour annuler la création du compte, pressez le bouton suivant. Le compte "
+"ainsi que toutes ses données seront supprimés."
+
+#~ msgid "modify"
+#~ msgstr "modifier"
 
 #~ msgid "pseudo available"
 #~ msgstr "pseudo disponible"
+
 #~ msgid "pseudo not available"
 #~ msgstr "pseudo non disponible"
+
 #~ msgid "pseudo must only contain letters, digits, dots or underscores"
 #~ msgstr ""
 #~ "le pseudo ne peut contenir que des lettres, des chiffres, des points ou "
 #~ "des soulignés"
+
 #~ msgid "You need to login before retrying to save"
 #~ msgstr "Vous devez vous connecter avant de réesayer de sauvegarder"
+
 #~ msgid "You need to have cookies enabled to login to SYJ"
 #~ msgstr "Vous devez activer les cookies pour pouvoir vous connecter à SYJ"
 
 #, fuzzy
 #~ msgid "reset password"
 #~ msgstr "Réinitialiser mon mot de passe"
-
index 3425954f74861140a708f078529cd0fbb57bf908..fedff0aa2a92380ef606277f5ac7d65681d9c81c 100644 (file)
     </div>
 
     <div id="data_controls">
-    <input id="edit-btn" name="edit-btn" type="button" value="<?php
-        echo isset($this->path) ? $this->translate('edit'): $this->translate('start a route');
-    ?>">
+        <div id="data_controls_btns">
+    <?php if (isset($this->path)) { ?>
+        <input id="clone-btn" name="clone-btn" type="button" value="<?php echo $this->translate('duplicate');?>">
+        <br>
+        <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit');?>">
+    <?php } else {?>
+        <input id="create-btn" name="create-btn" type="button" value="<?php echo $this->translate('start a route');?>">
+    <?php } ?>
+        </div>
 
     <?php
         print $this->geomform;
index 31d3a5009c46bf85a4faa454eb352366b4acc897..745938165e9661ecc23a3c97b0d8aced3aebe68f 100644 (file)
             'url' => $item->id
         ), 'idx');
         $maplink = $this->Anchor($href, $map, array(), false);
-        $modifylink = $this->Anchor($href, $this->translate("modify"));
-        $duplicatelink = sprintf('<a href="#" class="duplicate-link">%s</a>', $this->translate("duplicate"));
+        $modifylink = $this->Anchor($href, $this->translate("modify or duplicate"));
         $deletelink = sprintf('<a href="#" class="delete-link">%s</a>', $this->translate("delete"));
 
         printf ('<div class="item" data-id="%d">
                 <div class="geom">%s</div>
-                <div class="controls">%s<br>%s<br>%s</div>
+                <div class="controls"><div class="control-link">%s</div><div class="control-link">%s</div></div>
                 <div class="title">%s</div>
                 </div>
                 ',
-                (int)$item->id, $maplink, $modifylink, $duplicatelink, $deletelink, $this->escape($item->displayTitle));
+                (int)$item->id, $maplink, $modifylink,  $deletelink, $this->escape($item->displayTitle));
 
     }
     print '</div>';
index 4f87230a49d908633f8ccc6f2b65da1e6353c7c1..70e3f41974512178bf0162c6f70b1c2f5d7c0091 100644 (file)
@@ -1,6 +1,6 @@
 .item {
     float: left;
-    width: 240px;
+    width: 250px;
     margin: 0px 10px 10px 10px;
 }
 
@@ -9,9 +9,15 @@
     border: 1px solid black;
     width: 100px;
     height: 100px;
-    margin: 0 10px 6px 0;
+    margin: 0 4px 6px 0;
     position: relative;
 }
+.control-link {
+    margin-bottom: 1em;
+}
+
+.controls {
+}
 
 .map {
     position: absolute;
index 69a689e20d37f82e8ee121e0e7158b19ec979a9a..c6ba41269c011e380c9ec651d4795039a33c7329 100644 (file)
@@ -56,6 +56,9 @@ body, html {
     filter:alpha(opacity=85);
     border: 1px solid gray;
 }
+#clone-btn {
+    margin-bottom: 1em;
+}
 #geom_title {
     margin-top: 0.7em;
 }
index 44dd2ff6d4aba093b7b363fe6594e7f5ac095553..112c6f762530d03ba2c67a0144dc98ab075911e3 100644 (file)
@@ -66,13 +66,13 @@ var SyjSaveUI = {
 
 var SyjEditUI = {
     hide: function() {
-        $("edit-btn").blur();
-        $("edit-btn").hide();
+        $("data_controls_btns").blur();
+        $("data_controls_btns").hide();
         return this;
     },
 
     show: function() {
-        $("edit-btn").show();
+        $("data_controls_btns").show();
         return this;
     }
 };
@@ -210,6 +210,8 @@ var SYJView = {
     map: null,
     wkt: new OpenLayers.Format.WKT({ internalProjection: Mercator, externalProjection: WGS84 }),
     needsFormResubmit: false,
+    unsavedRoute: null,
+    mode: 'view',
 
     init: function() {
         var externalGraphic, baseURL, baseLayer, layerOptions, extent, hidemessenger;
@@ -240,10 +242,34 @@ var SYJView = {
         this.viewLayer = new OpenLayers.Layer.Vector("View Layer", layerOptions);
         this.map.addLayers([baseLayer, this.viewLayer]);
 
-        $("edit-btn").observe('click', (function() {
-            this.messenger.hide();
-            this.editMode();
-        }).bind(this));
+        if ($("edit-btn")) {
+            $("edit-btn").observe('click', (function() {
+                $("geom_submit").value = SyjStrings.editAction;
+                this.messenger.hide();
+                this.editMode();
+                this.mode = 'edit';
+            }).bind(this));
+        }
+
+        if ($("create-btn")) {
+            $("create-btn").observe('click', (function() {
+                $("geom_submit").value = SyjStrings.createAction;
+                this.messenger.hide();
+                this.editMode();
+                this.mode = 'create';
+            }).bind(this));
+        }
+
+        if ($("clone-btn")) {
+            $("clone-btn").observe('click', (function() {
+                $("geom_submit").value = SyjStrings.cloneAction;
+                $("geom_title").value = "";
+                this.messenger.hide();
+                this.editMode();
+                this.mode = 'create';
+                SyjSaveUI.enableSubmit();
+            }).bind(this));
+        }
 
         $("geomform").ajaxize({
                 presubmit: this.prepareForm.bind(this),
@@ -291,7 +317,7 @@ var SYJView = {
             return false;
         }
 
-        var line, realPoints, idx, handler;
+        var line, realPoints, idx;
 
         line = new OpenLayers.Geometry.LineString();
         realPoints = this.editControl.handler.realPoints;
@@ -299,21 +325,31 @@ var SYJView = {
             line.addComponent(realPoints[idx].geometry.clone());
         }
         this.viewLayer.addFeatures(new OpenLayers.Feature.Vector(line));
-        handler = this.editControl.handler;
-        OpenLayers.Handler.ModifiablePath.prototype.finalize.apply(handler, arguments);
-        // we need to recreate them on next createFeature; otherwise
-        // they'll reference destroyed features
-        delete(handler.handlers.drag);
-        delete(handler.handlers.feature);
-        this.editControl.deactivate();
+
+        this.viewMode();
 
         $("geom_data").value = this.wkt.write(new OpenLayers.Feature.Vector(line));
+        if (this.mode === "edit" && typeof gLoggedInfo.pathid !== "undefined") {
+            $("geomform").setAttribute("action", "path/" + gLoggedInfo.pathid.toString() + '/update');
+        } else {
+            $("geomform").setAttribute("action", "path");
+        }
         this.needsFormResubmit = false;
         SyjSaveUI.disable.bind(SyjSaveUI).defer();
         this.messenger.hide();
         return true;
     },
 
+    viewMode: function() {
+        var handler = this.editControl.handler;
+        OpenLayers.Handler.ModifiablePath.prototype.finalize.apply(handler, arguments);
+        // we need to recreate them on next createFeature; otherwise
+        // they'll reference destroyed features
+        delete(handler.handlers.drag);
+        delete(handler.handlers.feature);
+        this.editControl.deactivate();
+    },
+
     editMode: function() {
         var components, point0, point, pixels, pixel, idx;
 
@@ -334,13 +370,18 @@ var SYJView = {
                 }
                 this.editControl.handler.addPoints(pixels);
             }
+            this.unsavedRoute = {
+                features: this.viewLayer.features.invoke('clone'),
+                title: $("geom_title").value
+            };
         }
 
         this.viewLayer.destroyFeatures();
 
         SyjEditUI.hide();
         if (this.editControl.handler.realPoints && this.editControl.handler.realPoints.length >= 2) {
-            SyjSaveUI.show().disableSubmit();
+            SyjSaveUI.show();
+            SyjSaveUI.disableSubmit();
         } else {
             SyjSaveUI.show().disable();
         }
@@ -376,6 +417,29 @@ var SYJView = {
             styles = this.editControl.handler.layerOptions.styleMap.styles;
             styles.select = styles.select_for_canvas;
         }
+        new CloseBtn($("geomform"), {
+            style : {
+                marginRight: "-40px",
+                marginTop: "-20px"
+            },
+            callback: function(form) {
+                this.viewMode();
+                this.mode = 'view';
+                SyjSaveUI.hide();
+                SyjEditUI.show();
+                this.messenger.hide();
+
+                if (typeof this.unsavedRoute.features !== "undefined") {
+                    this.viewLayer.addFeatures(this.unsavedRoute.features);
+                }
+                if (typeof this.unsavedRoute.title !== "undefined") {
+                    $("geom_title").value = this.unsavedRoute.title;
+                } else {
+                    $("geom_title").value = "";
+                }
+                this.unsavedRoute = null;
+            }.bind(this)
+        });
     },
 
     saveSuccess: function(transport) {
@@ -387,6 +451,7 @@ var SYJView = {
       this.messenger.setMessage(SyjStrings.saveSuccess, "success");
       SyjSaveUI.hide();
       SyjEditUI.show();
+      this.unsavedRoute = null;
       document.title = $('geom_title').value;
     },
 
@@ -791,10 +856,12 @@ var LoginMgr = Object.extend(gLoggedInfo, {
             $$(".logged-show").invoke('hide');
         }
 
-        if (this.iscreator) {
-            $("data_controls").show();
-        } else {
-            $("data_controls").hide();
+        if ($("edit-btn")) {
+            if (this.iscreator && SYJView.mode === 'view') {
+                $("edit-btn").show();
+            } else {
+                $("edit-btn").hide();
+            }
         }
     },
 
index f5817d491a2087f3198089e5dad1d0d77bc87a18..3df0ad1994ed4c5424902f5accf19b2df885908a 100644 (file)
@@ -21,6 +21,10 @@ var CloseBtn = Class.create({
         btn = new Element("input", { type: "image", src: imgsrc, alt: "X"}).setStyle(style);
         elt.insert({top: btn});
         btn.observe("click", function(evt) {
+            evt.stop();
+            if (typeof options.callback === "function") {
+                options.callback.call(elt);
+            }
             elt.hide();
         });
     }