$title = $path->displayTitle;
$this->view->path = $path;
$geomform->geom_title->setValue($path->title);
- $geomform->geom_data->setValue((string)$path->geom);
$loginform->login_geom_id->setValue((string)$path->id);
+ $jsgeom = new phptojs\JsObject('gInitialGeom', array('data' => (string) $path->geom));
+ $this->view->headScript()->prependScript((string) $jsgeom);
} else {
$geomform->setAction('path');
$extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($this->getRequest()->getClientIp(true)));
if ($path->creator) {
$loggedinfo->creatorname = $this->view->escape((string)$path->creator->pseudo);
}
+ $loggedinfo->pathid = (string)$path->id;
} else {
$loggedinfo->iscreator = true;
}
'acceptTermsofuseWarn' => __("You must accept terms of use"),
'emailEmptyWarn' => __("you must enter an email"),
'emailInvalidWarn' => __("invalid email"),
- 'invalidPseudo' => __("pseudo must only contain letters, digits, dots or underscores"),
- 'uniqueUserError' => __("unavailable pseudo"),
'uniqueEmailError' => __("an user is already registered with this email"),
'userSuccess' => __("Account created"),
'newpwdSuccess' => __("A link to reset your password has been emailed to you"),
'canResubmit' => __("Now, you can retry to save"),
'routeBy' => __("route by"),
- 'osmAttribution' => __("Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>")
+ 'osmAttribution' => __("Map by <a href='http://openstreetmap.org/'>OpenStreetMap</a>"),
+ 'pseudoChecking' => __("checking availibilty"),
+ 'availablePseudo' => __("available pseudo"),
+ 'unavailablePseudo' => __("unavailable pseudo"),
+ 'editAction' => __("edit"),
+ 'createAction' => __("create"),
+ 'cloneAction' => __("duplicate"),
+ 'unsavedConfirmExit' => __("You have an unsaved route"),
);
}