mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed draft functionality under foreign languages
This commit is contained in:
parent
f61301271a
commit
62b9d359f7
@ -488,6 +488,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -488,6 +488,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -485,6 +485,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -488,6 +488,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -487,6 +487,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -485,6 +485,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -480,11 +480,9 @@ All time = Immer
|
|||||||
Draft = Entwurf
|
Draft = Entwurf
|
||||||
Restrict seach to last = Suche einschränken auf letzte
|
Restrict seach to last = Suche einschränken auf letzte
|
||||||
days = Tage
|
days = Tage
|
||||||
This is a draft message, edit and submit it to make it permament = Dies ist ein Entwurf, bitte ändern und abschicken um ihn permanent zu machen
|
|
||||||
Draft saved at = Entwurf gespeichert um
|
Draft saved at = Entwurf gespeichert um
|
||||||
You might however then overwrite each other's modifications = Sie würde dann jedoch die Änderungen von jemand anderem überschreiben
|
You might however then overwrite each other's modifications = Sie würde dann jedoch die Änderungen von jemand anderem überschreiben
|
||||||
|
Draft entry created on %s by %s = Entwurf erstellt am %s von %s
|
||||||
|
Really delete this entry? = Diesen Eintrag wirklich löschen?
|
||||||
|
This is a draft message, edit and submit it to make it permanent = Dies ist ein Entwurf, bitte ändern und abschicken um ihn permanent zu machen
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
#---- please translate following items and then remove this comment ----#
|
|
||||||
#
|
|
||||||
|
|||||||
@ -486,7 +486,9 @@ Entry can only be deleted %1.2lg hours after creation =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Insert Timestamp =
|
Insert Timestamp =
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -484,6 +484,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -484,6 +484,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -489,6 +489,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -463,6 +463,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -487,6 +487,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -487,6 +487,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -487,6 +487,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -486,6 +486,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
@ -486,6 +486,8 @@ All time =
|
|||||||
Draft =
|
Draft =
|
||||||
Restrict seach to last =
|
Restrict seach to last =
|
||||||
days =
|
days =
|
||||||
This is a draft message, edit and submit it to make it permament =
|
|
||||||
Draft saved at =
|
Draft saved at =
|
||||||
You might however then overwrite each other's modifications =
|
You might however then overwrite each other's modifications =
|
||||||
|
Draft entry created on %s by %s =
|
||||||
|
Really delete this entry? =
|
||||||
|
This is a draft message, edit and submit it to make it permanent =
|
||||||
|
|||||||
12
src/elogd.c
12
src/elogd.c
@ -9513,8 +9513,8 @@ int check_drafts(LOGBOOK * lbs)
|
|||||||
sprintf(str, loc("Draft entry created on %s by %s"), datetime, draft);
|
sprintf(str, loc("Draft entry created on %s by %s"), datetime, draft);
|
||||||
rsprintf("%s</td>\n", str);
|
rsprintf("%s</td>\n", str);
|
||||||
rsprintf("<td class=\"draftsel\">");
|
rsprintf("<td class=\"draftsel\">");
|
||||||
rsprintf("<input type=button value=\"%s\" onClick=\"window.location.href='%d?cmd=Edit';\">",
|
rsprintf("<input type=button value=\"%s\" onClick=\"window.location.href='%d?cmd=%s';\">",
|
||||||
loc("Edit"), draft_id[i]);
|
loc("Edit"), draft_id[i], loc("Edit"));
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24611,9 +24611,9 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
|
|||||||
} else {
|
} else {
|
||||||
if (draft[0]) {
|
if (draft[0]) {
|
||||||
rsprintf("<tr><td nowrap colspan=2 class=\"errormsg\">%s\n",
|
rsprintf("<tr><td nowrap colspan=2 class=\"errormsg\">%s\n",
|
||||||
loc("This is a draft message, edit and submit it to make it permament"));
|
loc("This is a draft message, edit and submit it to make it permanent"));
|
||||||
rsprintf(" <input type=button value=\"%s\" onClick=\"window.location.href='%d?cmd=Edit';\">",
|
rsprintf(" <input type=button value=\"%s\" onClick=\"window.location.href='%d?cmd=%s';\">",
|
||||||
loc("Edit"), message_id);
|
loc("Edit"), message_id, loc("Edit"));
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -27822,7 +27822,7 @@ void interprete(char *lbook, char *path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strieq(command, loc("Save")) && !isparam("cfgpage") && !isparam("new_user_name")) {
|
if ((strieq(command, loc("Save")) || strieq(command, "Save")) && !isparam("cfgpage") && !isparam("new_user_name")) {
|
||||||
/* save draft message */
|
/* save draft message */
|
||||||
if (isparam("unm"))
|
if (isparam("unm"))
|
||||||
strlcpy(str, getparam("unm"), sizeof(str));
|
strlcpy(str, getparam("unm"), sizeof(str));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user