[mapguide-users] Redline + Language
torrini
maria.kallbach at geoplanteam.ch
Tue Jan 9 01:46:41 PST 2018
My edits:
*markupmain.php*
[...]
function SubmitCommand(cmd)
{
var commandInput = document.getElementById("commandInput");
commandInput.value = cmd;
if (cmd == CMD_EDIT) {
*markupForm.action = "editmarkup.php?LOCALE="+"<?= $locale ?>";*
} else if (cmd == CMD_UPLOAD) {
markupForm.action = "uploadmarkup.php";
} else if (cmd == CMD_EDITSTYLE) {
markupForm.action = "editmarkupstyle.php";
}
else {
markupForm.action = "markupmain.php";
}
markupForm.submit();
}
[...]
*editmarkup.php*
[...]
function CloseEditor()
{
ClearDigitization(true);
var map = Fusion.getMapByName(mapName).mapWidget;
map.message.clear();
var editForm = document.getElementById("editForm");
*editForm.action = "markupmain.php?"+"<?= $locale ?>";*
editForm.submit();
}
[...]
<body onLoad="OnLoad()" onUnload="OnUnload()" marginwidth=5 marginheight=5
leftmargin=5 topmargin=5 bottommargin=5 rightmargin=5>
<form action="editmarkup.php?locale=<?= $locale ?>" method="post"
enctype="application/x-www-form-urlencoded" id="editForm" target="_self">
[...]
Still the widget switches back to english :-/
The function CloseEditor() won't be used till the user closes the dialog.
But the language already changes when one line is made. So the functions
AddLine() and SubmitCommand(cmd) are used. That's why I edited the form in
the html-part (action="editmarkup.php?locale=<?= $locale ?>").
--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
More information about the mapguide-users
mailing list