Commit c067c665 authored by Linus Tolke Y's avatar Linus Tolke Y

Better error messages

parent d465d706
No preview for this file type
......@@ -1321,6 +1321,7 @@ If you are not member in the conference it will be flagged with an asterisk."
;;; Changed again: Inge Wallin
(defun kom-change-name ()
"Change the name of a person or conference."
(interactive)
......@@ -1346,14 +1347,17 @@ If you are not member in the conference it will be flagged with an asterisk."
(initiate-change-name 'main 'lyskom-change-name-2
(conf-stat->conf-no conf-stat)
name name))
(quit (ding) (lyskom-insert "\n") (lyskom-end-of-command)))))
(quit (lyskom-insert "\n")
(lyskom-end-of-command)
(signal 'quit nil)))))
(defun lyskom-change-name-2 (answer name)
"Tell the user wether the name change was ok"
(if answer
(lyskom-format-insert 'change-name-done name)
(lyskom-format-insert 'change-name-nope name))
(lyskom-format-insert 'change-name-nope name
(lyskom-get-error-text lyskom-errno) lyskom-errno))
(lyskom-end-of-command))
......
......@@ -301,7 +301,7 @@ Lyskom-sessionen \344r avslutad.
(cant-go-to-his-mailbox . "Du f\345r inte g\345 till %#1ss brevl\345da.\n")
(not-member-of-conf . "Du \344r inte medlem i %#1s.\n")
(change-name-done . "\nKlart. Nytt namn: %#1s.\n")
(change-name-nope . "\nDet gick inte bra. Kanske n\345got annat redan heter %#1s?\n")
(change-name-nope . "\nDet gick inte bra att \344ndra till %#1s.\nFelkod %#3d. %#2s.\n")
(change-supervisor-from-to . "ndra organisat\366r f\366r %#1s till %#2s...")
(change-supervisor-nope .
"\nDet gick inte. Kanske du inte f\345r \344ndra organisat\366r f\366r %#1s?\n")
......@@ -983,10 +983,10 @@ Users are encouraged to use their best sense of humor.")
(12 . "Otill\345ten operation")
(13 . "Du \344r inte medlem i m\366tet")
(14 . "Inget s\345dant textnummer")
(15 . "Du kan inte anv\344nda globalt text nummer 0")
(15 . "Du kan inte anv\344nda globalt textnummer 0")
(16 . "Inget s\345dant lokalt textnummer")
(17 . "Du kan inte anv\344nda lokalt text nummer 0")
(18 . "Felaktiga tecken i namnet")
(17 . "Du kan inte anv\344nda lokalt textnummer 0")
(18 . "Namnet f\366r kort eller f\366r l\345ngt eller inneh\345ller felaktiga tecken")
(19 . "Index utanf\366r gr\344nserna")
(20 . "M\366tet existerar redan")
(21 . "Personen existerar redan")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment