]> dev.renevier.net Git - syj.git/commitdiff
ask a confirmation when users leaves with unsaved route
authorarno <arno@renevier.net>
Fri, 13 Aug 2010 14:23:30 +0000 (16:23 +0200)
committerarno <arno@renevier.net>
Fri, 13 Aug 2010 14:23:30 +0000 (16:23 +0200)
application/controllers/IdxController.php
application/languages/lang_en.po
application/languages/lang_fr.po
public/css/syj.css
public/js/syj.js

index 2ae85b951495c9ab91349de0b6b1e3a1b0970102..f85989ccb7d716b1805cea478560aed8bf35953a 100644 (file)
@@ -110,6 +110,7 @@ class IdxController extends Zend_Controller_Action
             'editAction' => __("edit"),
             'createAction' => __("create"),
             'cloneAction' => __("duplicate"),
+            'unsavedConfirmExit' => __("You have an unsaved route"),
             );
     }
 
index 81e60a291060d89cbb635927de775cd710c6d58d..092d66b4735bdc64db601ff98165ca434adf7c7b 100644 (file)
@@ -2,7 +2,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: syj\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-08-13 13:26+0200\n"
+"POT-Creation-Date: 2010-08-13 15:47+0200\n"
 "PO-Revision-Date: \n"
 "Last-Translator: arno <arno@renevier.net>\n"
 "Language-Team: arno <arno@renevier.net>\n"
@@ -37,12 +37,8 @@ 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"
@@ -58,24 +54,20 @@ 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:26
-#: application/controllers/IdxController.php:111
+#: application/controllers/IdxController.php:112
 msgid "duplicate"
 msgstr "duplicate"
 
 #: application/views/scripts/idx/index.phtml:28
-#: application/controllers/IdxController.php:109
+#: application/controllers/IdxController.php:110
 msgid "edit"
 msgstr "edit"
 
@@ -85,7 +77,8 @@ msgstr "start a route"
 
 #: 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"
 
@@ -99,71 +92,31 @@ 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:102
+#: application/controllers/IdxController.php:103
 msgid "A link to reset your password has been emailed to you"
 msgstr "A link to reset your password has been emailed to you"
 
@@ -202,14 +155,8 @@ 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"
@@ -283,15 +230,13 @@ 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"
@@ -300,15 +245,13 @@ 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"
@@ -323,17 +266,14 @@ 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"
@@ -342,17 +282,14 @@ 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"
@@ -371,8 +308,7 @@ 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"
@@ -385,8 +321,7 @@ 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"
@@ -401,13 +336,11 @@ 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"
@@ -416,13 +349,11 @@ 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"
@@ -430,7 +361,7 @@ msgstr ""
 "Syj team"
 
 #: application/controllers/LoginController.php:101
-#: application/controllers/IdxController.php:92
+#: application/controllers/IdxController.php:93
 msgid "you must enter a login name"
 msgstr "you must enter a login name"
 
@@ -474,7 +405,8 @@ 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"
 
@@ -483,7 +415,8 @@ 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"
@@ -498,29 +431,27 @@ 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:89
+#: application/controllers/IdxController.php:90
 msgid "server could not be reached"
 msgstr "server could not be reached"
 
 #: application/controllers/ListController.php:37
-#: 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/IdxController.php:87
+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:87
+#: application/controllers/IdxController.php:88
 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:90
+#: application/controllers/IdxController.php:91
 msgid "there was a server error"
 msgstr "there was a server error"
 
 #: application/controllers/ListController.php:40
-#: application/controllers/IdxController.php:91
+#: application/controllers/IdxController.php:92
 msgid "there was an unknown error"
 msgstr "there was an unknown error"
 
@@ -538,18 +469,19 @@ msgid "Wrong password"
 msgstr "Wrong password"
 
 #: application/controllers/AccountController.php:44
-#: application/controllers/IdxController.php:100
+#: application/controllers/IdxController.php:101
 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:96
+#: application/controllers/IdxController.php:97
 #: 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"
@@ -558,74 +490,74 @@ msgstr "At least %d characters"
 msgid "You have made no change"
 msgstr "You have made no change"
 
-#: application/controllers/IdxController.php:85
+#: application/controllers/IdxController.php:86
 msgid "save took place successfully"
 msgstr "save took place successfully"
 
-#: 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:89
+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:93
+#: application/controllers/IdxController.php:94
 msgid "Login correct"
 msgstr "Login correct"
 
-#: application/controllers/IdxController.php:94
+#: application/controllers/IdxController.php:95
 msgid "Wrong login/password"
 msgstr "Wrong login/password"
 
-#: application/controllers/IdxController.php:95
+#: application/controllers/IdxController.php:96
 msgid "you must enter a password"
 msgstr "you must enter a password"
 
-#: application/controllers/IdxController.php:97
+#: application/controllers/IdxController.php:98
 msgid "You must accept terms of use"
 msgstr "You must accept terms of use"
 
-#: application/controllers/IdxController.php:98
+#: application/controllers/IdxController.php:99
 msgid "you must enter an email"
 msgstr "you must enter an email"
 
-#: application/controllers/IdxController.php:99
+#: application/controllers/IdxController.php:100
 msgid "invalid email"
 msgstr "invalid email"
 
-#: application/controllers/IdxController.php:101
+#: application/controllers/IdxController.php:102
 msgid "Account created"
 msgstr "Account created"
 
-#: application/controllers/IdxController.php:103
+#: application/controllers/IdxController.php:104
 msgid "Now, you can retry to save"
 msgstr "Now, you can retry to save"
 
-#: application/controllers/IdxController.php:104
+#: application/controllers/IdxController.php:105
 msgid "route by"
 msgstr "route by"
 
-#: application/controllers/IdxController.php:105
+#: application/controllers/IdxController.php:106
 msgid "Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 msgstr "Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 
-#: application/controllers/IdxController.php:106
+#: application/controllers/IdxController.php:107
 msgid "checking availibilty"
 msgstr "checking availibilty"
 
-#: application/controllers/IdxController.php:107
+#: application/controllers/IdxController.php:108
 msgid "available pseudo"
 msgstr "available pseudo"
 
-#: application/controllers/IdxController.php:108
+#: application/controllers/IdxController.php:109
 msgid "unavailable pseudo"
 msgstr "unavailable pseudo"
 
-#: application/controllers/IdxController.php:110
+#: application/controllers/IdxController.php:111
 msgid "create"
 msgstr "create"
 
+#: application/controllers/IdxController.php:113
+msgid "You have an unsaved route"
+msgstr "You have an unsaved route"
+
 #: application/layouts/scripts/footer.phtml:28
 msgid "contact"
 msgstr "contact"
@@ -634,7 +566,8 @@ 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"
@@ -671,7 +604,8 @@ 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"
@@ -681,12 +615,14 @@ 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"
 
@@ -707,14 +643,8 @@ 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"
@@ -722,12 +652,8 @@ 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
@@ -739,50 +665,32 @@ 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 f5b009895b6a552b0575370df6bd3e05e8c0baa5..e593e8f29f343d0416b18d0f3023bea6860952fb 100644 (file)
@@ -2,7 +2,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: syj\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-08-13 13:26+0200\n"
+"POT-Creation-Date: 2010-08-13 15:47+0200\n"
 "PO-Revision-Date: \n"
 "Last-Translator: arno <arno@renevier.net>\n"
 "Language-Team: arno <arno@renevier.net>\n"
@@ -37,12 +37,8 @@ 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"
@@ -51,34 +47,27 @@ 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:26
-#: application/controllers/IdxController.php:111
+#: application/controllers/IdxController.php:112
 msgid "duplicate"
 msgstr "dupliquer"
 
 #: application/views/scripts/idx/index.phtml:28
-#: application/controllers/IdxController.php:109
+#: application/controllers/IdxController.php:110
 msgid "edit"
 msgstr "modifier"
 
@@ -88,7 +77,8 @@ msgstr "commencer un itinéraire"
 
 #: 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"
 
@@ -102,76 +92,33 @@ 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:102
+#: application/controllers/IdxController.php:103
 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."
@@ -208,14 +155,8 @@ 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"
@@ -288,15 +229,13 @@ 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"
@@ -312,8 +251,7 @@ 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"
@@ -329,17 +267,14 @@ 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"
@@ -352,12 +287,10 @@ 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"
@@ -377,8 +310,7 @@ 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"
@@ -391,8 +323,7 @@ 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"
@@ -408,13 +339,11 @@ 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"
@@ -427,15 +356,14 @@ 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:92
+#: application/controllers/IdxController.php:93
 msgid "you must enter a login name"
 msgstr "vous devez entrer un nom d'utilisateur"
 
@@ -479,7 +407,8 @@ 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"
 
@@ -488,7 +417,8 @@ 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"
@@ -503,30 +433,27 @@ 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:89
+#: application/controllers/IdxController.php:90
 msgid "server could not be reached"
 msgstr "serveur inaccessible"
 
 #: application/controllers/ListController.php:37
-#: 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/IdxController.php:87
+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:87
+#: application/controllers/IdxController.php:88
 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:90
+#: application/controllers/IdxController.php:91
 msgid "there was a server error"
 msgstr "Il s'est produit une erreur serveur"
 
 #: application/controllers/ListController.php:40
-#: application/controllers/IdxController.php:91
+#: application/controllers/IdxController.php:92
 msgid "there was an unknown error"
 msgstr "Il s'est produit une erreur inconnue"
 
@@ -544,18 +471,19 @@ msgid "Wrong password"
 msgstr "Mauvais mot de passe"
 
 #: application/controllers/AccountController.php:44
-#: application/controllers/IdxController.php:100
+#: application/controllers/IdxController.php:101
 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:96
+#: application/controllers/IdxController.php:97
 #: 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"
@@ -564,74 +492,74 @@ msgstr "Au moins %d caractères"
 msgid "You have made no change"
 msgstr "Vous n'avez fait aucun changement"
 
-#: application/controllers/IdxController.php:85
+#: application/controllers/IdxController.php:86
 msgid "save took place successfully"
 msgstr "La sauvegarde s'est déroulée correctement"
 
-#: 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:89
+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:93
+#: application/controllers/IdxController.php:94
 msgid "Login correct"
 msgstr "Vous êtes connectés"
 
-#: application/controllers/IdxController.php:94
+#: application/controllers/IdxController.php:95
 msgid "Wrong login/password"
 msgstr "Mauvais nom d'utilisateur ou mot de passe"
 
-#: application/controllers/IdxController.php:95
+#: application/controllers/IdxController.php:96
 msgid "you must enter a password"
 msgstr "vous devez entrer un mot de passe"
 
-#: application/controllers/IdxController.php:97
+#: application/controllers/IdxController.php:98
 msgid "You must accept terms of use"
 msgstr "Vous devez accepter les conditions d'utilisation"
 
-#: application/controllers/IdxController.php:98
+#: application/controllers/IdxController.php:99
 msgid "you must enter an email"
 msgstr "vous devez entrer un email"
 
-#: application/controllers/IdxController.php:99
+#: application/controllers/IdxController.php:100
 msgid "invalid email"
 msgstr "email invalide"
 
-#: application/controllers/IdxController.php:101
+#: application/controllers/IdxController.php:102
 msgid "Account created"
 msgstr "Compte créé"
 
-#: application/controllers/IdxController.php:103
+#: application/controllers/IdxController.php:104
 msgid "Now, you can retry to save"
 msgstr "Maintenant, vous pouvez réessayer de sauvegarder"
 
-#: application/controllers/IdxController.php:104
+#: application/controllers/IdxController.php:105
 msgid "route by"
 msgstr "tracé par"
 
-#: application/controllers/IdxController.php:105
+#: application/controllers/IdxController.php:106
 msgid "Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 msgstr "Carte par <a href='http://openstreetmap.org/'>OpenStreetMap</a>"
 
-#: application/controllers/IdxController.php:106
+#: application/controllers/IdxController.php:107
 msgid "checking availibilty"
 msgstr "vérification de la disponibilité"
 
-#: application/controllers/IdxController.php:107
+#: application/controllers/IdxController.php:108
 msgid "available pseudo"
 msgstr "pseudo disponible"
 
-#: application/controllers/IdxController.php:108
+#: application/controllers/IdxController.php:109
 msgid "unavailable pseudo"
 msgstr "pseudo non disponible"
 
-#: application/controllers/IdxController.php:110
+#: application/controllers/IdxController.php:111
 msgid "create"
 msgstr "créér"
 
+#: application/controllers/IdxController.php:113
+msgid "You have an unsaved route"
+msgstr "Vous avez un itinéraire non sauvegardé"
+
 #: application/layouts/scripts/footer.phtml:28
 msgid "contact"
 msgstr "contact"
@@ -640,7 +568,8 @@ 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"
@@ -677,7 +606,8 @@ 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"
@@ -687,12 +617,14 @@ 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"
 
@@ -713,14 +645,8 @@ 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"
@@ -728,13 +654,8 @@ 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
@@ -746,51 +667,34 @@ 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 ddfdeaf946d0578602d29c06f91b99b9d1942a5f..9eece707e3fafa79522381b40bb6bff0176df98e 100644 (file)
@@ -55,6 +55,7 @@ body, html {
     opacity: 0.85;
     filter:alpha(opacity=85);
     border: 1px solid gray;
+    margin: auto;
 }
 #clone-btn {
     margin-bottom: 1em;
index 112c6f762530d03ba2c67a0144dc98ab075911e3..45ae794c5289fdfbcc533ac4b0f38ba7e7508fad 100644 (file)
@@ -394,9 +394,13 @@ var SYJView = {
             return;
         }
 
+        var self = this;
         this.editControl = new OpenLayers.Control.DrawFeature(new OpenLayers.Layer.Vector(), OpenLayers.Handler.SyjModifiablePath, {
             callbacks: {
                 modify: function(f, line) {
+                    if (!self.unsavedRoute) {
+                        self.unsavedRoute = {};
+                    }
                     if (this.handler.realPoints.length < 2) {
                         SyjSaveUI.show().disable();
                     } else {
@@ -429,10 +433,10 @@ var SYJView = {
                 SyjEditUI.show();
                 this.messenger.hide();
 
-                if (typeof this.unsavedRoute.features !== "undefined") {
+                if (this.unsavedRoute && typeof this.unsavedRoute.features !== "undefined") {
                     this.viewLayer.addFeatures(this.unsavedRoute.features);
                 }
-                if (typeof this.unsavedRoute.title !== "undefined") {
+                if (this.unsavedRoute && typeof this.unsavedRoute.title !== "undefined") {
                     $("geom_title").value = this.unsavedRoute.title;
                 } else {
                     $("geom_title").value = "";
@@ -443,6 +447,8 @@ var SYJView = {
     },
 
     saveSuccess: function(transport) {
+      this.unsavedRoute = null;
+
       if (transport.responseJSON && (typeof transport.responseJSON.redirect === "string")) {
           location = transport.responseJSON.redirect;
           return;
@@ -451,7 +457,6 @@ var SYJView = {
       this.messenger.setMessage(SyjStrings.saveSuccess, "success");
       SyjSaveUI.hide();
       SyjEditUI.show();
-      this.unsavedRoute = null;
       document.title = $('geom_title').value;
     },
 
@@ -975,3 +980,10 @@ document.observe("dom:loaded", function() {
     SYJNewpwd.init();
     LoginMgr.updateUI();
 });
+window.onbeforeunload = function() {
+    if (SYJView.unsavedRoute) {
+        return SyjStrings.unsavedConfirmExit;
+    } else {
+        return undefined;
+    }
+}