missing language entrys and setting the referer to the uical->view_menuaction value. this way after save/apply/cancel you get back to the choosen

view
This commit is contained in:
Klaus Leithoff 2008-01-16 14:49:02 +00:00
parent 086783e462
commit 1812979a6b
3 changed files with 12 additions and 7 deletions

View File

@ -156,6 +156,7 @@ class uiforms extends uical
*/
function process_edit($content)
{
$referer=$this->view_menuaction;
list($button) = @each($content['button']);
if (!$button && $content['action']) $button = $content['action']; // action selectbox
unset($content['button']); unset($content['action']);
@ -298,7 +299,7 @@ class uiforms extends uical
if (!$preserv['no_popup'])
{
$js = 'opener.location.href=\''.addslashes($GLOBALS['egw']->link('/index.php',array(
'menuaction' => $content['referer'],
'menuaction' => $referer,
'msg' => $msg,
))).'\';';
}
@ -318,7 +319,7 @@ class uiforms extends uical
'view' => $view,
'edit_single' => $content['edit_single'],
'actual_date' => $content['actual_date'],
'referer' => $content['referer'],
'referer' => $referer,
'no_popup' => $content['no_popup'],
$this->tabs => $content[$this->tabs],
);
@ -422,7 +423,7 @@ class uiforms extends uical
htmlspecialchars($GLOBALS['egw']->link('/index.php',array(
'menuaction' => 'calendar.uiforms.edit',
'cal_id' => $content['id'],
'referer' => $content['referer'],
'referer' => $referer,
))).'">','</a>');
$noerror=false;
@ -437,7 +438,7 @@ class uiforms extends uical
$this->link->link('calendar',$event['id'],$content['link_to']['to_id']);
}
$js = 'opener.location.href=\''.addslashes($GLOBALS['egw']->link('/index.php',array(
'menuaction' => $content['referer'],
'menuaction' => $referer,
'msg' => $msg,
))).'\';';
@ -456,7 +457,7 @@ class uiforms extends uical
if($content['cancel_needs_refresh'])
{
$js = 'opener.location.href=\''.addslashes($GLOBALS['egw']->link('/index.php',array(
'menuaction' => $content['referer'],
'menuaction' => $referer,
'msg' => $msg,
))).'\';';
}
@ -467,7 +468,7 @@ class uiforms extends uical
{
$msg = lang('Event deleted');
$js = 'opener.location.href=\''.addslashes($GLOBALS['egw']->link('/index.php',array(
'menuaction' => $content['referer'],
'menuaction' => $referer,
'msg' => $msg,
))).'\';';
}
@ -527,7 +528,7 @@ class uiforms extends uical
if ($content['no_popup'])
{
$GLOBALS['egw']->redirect_link('/index.php',array(
'menuaction' => $content['referer'],
'menuaction' => $referer,
'msg' => $msg,
));
}

View File

@ -50,6 +50,7 @@ close the window calendar de Schließt das Fenster
compose a mail to all participants after the event is saved calendar de Schreibe eine Mail an alle Teilnehmer nachdem der Termin gespeichert wurde
copy of: calendar de Kopie von:
copy this event calendar de Kopiert diesen Termin
copy your changes to the clipboard, %1reload the entry%2 and merge them. calendar de Kopieren Sie ihre Änderungen in die Zwischenablage, %1laden den Eintrag neu%2 und fügen diese wieder ein.
countries calendar de Länder
country calendar de Land
create an exception for the given date calendar de Erzeugt eine Ausnahme am angegebenen Datum
@ -101,6 +102,7 @@ error: importing the ical calendar de Fehler: beim Importieren des iCal
error: no participants selected !!! calendar de Fehler: keine Teilnehmer ausgewählt !!!
error: saving the event !!! calendar de Fehler: beim Speichern des Termins !!!
error: starttime has to be before the endtime !!! calendar de Fehler: Startzeit muß vor Endzeit liegen !!!
error: the entry has been updated since you opened it for editing! calendar de Fehler: der Eintrag wurde geändert seit Sie ihn zum Bearbeiten geöffnet haben!
event copied - the copy can now be edited calendar de Termin kopiert - die Kopie kann jetzt bearbeitet werden
event deleted calendar de Termin gelöscht
event details follow calendar de Details zum Termin folgen

View File

@ -50,6 +50,7 @@ close the window calendar en Close the window
compose a mail to all participants after the event is saved calendar en compose a mail to all participants after the event is saved
copy of: calendar en Copy of:
copy this event calendar en Copy this event
copy your changes to the clipboard, %1reload the entry%2 and merge them. calendar en Copy your changes to the clipboard, %1reload the entry%2 and merge them.
countries calendar en Countries
country calendar en Country
create an exception for the given date calendar en Create an exception for the given date
@ -101,6 +102,7 @@ error: importing the ical calendar en Error: importing the iCal
error: no participants selected !!! calendar en Error: no participants selected !!!
error: saving the event !!! calendar en Error: saving the event !!!
error: starttime has to be before the endtime !!! calendar en Error: Starttime has to be before the endtime !!!
error: the entry has been updated since you opened it for editing! calendar en Error: the entry has been updated since you opened it for editing!
event copied - the copy can now be edited calendar en Event copied - the copy can now be edited
event deleted calendar en Event deleted
event details follow calendar en Event Details follow