swedish-strings.el 48.9 KB
Newer Older
Linus Tolke's avatar
Linus Tolke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;;;;
;;;;; $Id$
;;;;; Copyright (C) 1991  Lysator Academic Computer Association.
;;;;;
;;;;; This file is part of the LysKOM server.
;;;;; 
;;;;; LysKOM is free software; you can redistribute it and/or modify it
;;;;; under the terms of the GNU General Public License as published by 
;;;;; the Free Software Foundation; either version 1, or (at your option) 
;;;;; any later version.
;;;;; 
;;;;; LysKOM is distributed in the hope that it will be useful, but WITHOUT
;;;;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
;;;;; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
;;;;; for more details.
;;;;; 
;;;;; You should have received a copy of the GNU General Public License
;;;;; along with LysKOM; see the file COPYING.  If not, write to
;;;;; Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
;;;;; or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 
;;;;; MA 02139, USA.
;;;;;
;;;;; Please mail bug reports to bug-lyskom@lysator.liu.se. 
;;;;;
Per Cederqvist's avatar
.    
Per Cederqvist committed
25
26
27
28
29
30
31
32
33
34
35
36
;;;; ================================================================
;;;; ================================================================
;;;;
;;;; File: swedish-strings.el
;;;;
;;;; This file contains all strings in the LysKOM elisp client.
;;;; Language: Swedish.
;;;;
;;;; ================================================================
;;;;


37
38
39
40
41
(setq lyskom-clientversion-long 
      (concat lyskom-clientversion-long
	      "$Id$\n"))


42
43
44
45
46
47
48
49
50
51
52
;;; ================================================================
;;; lyskom-edit-mode-map

(defvar lyskom-edit-mode-map nil
  "Mode map for LysKOM edit.")

;;; Set the keymap for lyskom-edit-mode

(if lyskom-edit-mode-map
    nil
  (setq lyskom-edit-mode-map (make-sparse-keymap))
53
54
55
  (define-prefix-command 'lyskom-edit-prefix)
  (define-prefix-command 'lyskom-edit-review-prefix)
  (define-prefix-command 'lyskom-edit-insert-prefix)
56
57
58
59
  (define-key lyskom-edit-mode-map "\C-c"	'lyskom-edit-prefix)
  (define-key lyskom-edit-mode-map "\C-c?"	'lyskom-help)
  (define-key lyskom-edit-mode-map "\C-c}"	'lyskom-edit-review-prefix)
  (define-key lyskom-edit-mode-map "\C-c]"	'lyskom-edit-review-prefix)
60
61
62
63
64
65
  ;; emacs 19
  (if (string-match "^19" emacs-version)
      (progn
	(define-key lyskom-edit-prefix [?\345] 'lyskom-edit-review-prefix)
	(define-key lyskom-edit-prefix [?\305] 'lyskom-edit-review-prefix)
	))
66
67
68
69
70
71
72
73
  (define-key lyskom-edit-mode-map "\C-ci"	'lyskom-edit-insert-prefix)
  (define-key lyskom-edit-mode-map "\C-c\C-c"	'kom-edit-send)
  (define-key lyskom-edit-mode-map "\C-ck"	'kom-edit-quit)
  (define-key lyskom-edit-mode-map "\C-c\C-k"	'kom-edit-quit)
  (define-key lyskom-edit-mode-map "\C-c}?"	'lyskom-help)
  (define-key lyskom-edit-mode-map "\C-c}k"	'kom-edit-show-commented)
  (define-key lyskom-edit-mode-map "\C-ci?"	'lyskom-help)
  (define-key lyskom-edit-mode-map "\C-cik"	'kom-edit-insert-commented)
74
  (define-key lyskom-edit-mode-map "\C-c\C-y"	'kom-edit-insert-commented)
75
76
77
78
79
80
81
82
83
84
  (define-key lyskom-edit-mode-map "\C-ci1"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci2"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci3"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci4"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci5"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci6"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci7"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci8"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci9"	'kom-edit-insert-digit-text)
  (define-key lyskom-edit-mode-map "\C-ci "	'kom-edit-insert-text)
85
  (define-prefix-command 'lyskom-edit-add-prefix)
86
87
88
  (define-key lyskom-edit-mode-map "\C-ca" 'lyskom-edit-add-prefix)
  (define-key lyskom-edit-mode-map "\C-cam" 'kom-edit-add-recipient)
  (define-key lyskom-edit-mode-map "\C-cak" 'kom-edit-add-copy)
89
  (define-key lyskom-edit-mode-map "\C-cae" 'kom-edit-add-copy)
90
91
92
93
94
95
96
97
98
99
  (define-key lyskom-edit-mode-map "\C-ca?" 'lyskom-help))


(defvar lyskom-header-separator
  (substitute-command-keys
   "\\<lyskom-edit-mode-map>\
--- Skriv nedan. \
Skicka in=\\[kom-edit-send], \
Avbryt=\\[kom-edit-quit], \
Annat se \\[describe-mode] ---")
Per Cederqvist's avatar
.    
Per Cederqvist committed
100
101
102
  "*String to separate headers from text body.")


103
104
105
106
(defvar lyskom-header-subject "rende: "
  "*String to prompt for subject in the edit buffer.")


Per Cederqvist's avatar
.    
Per Cederqvist committed
107
108
109
110
111
112
113
(defconst lyskom-strings 
  '(
    ; From vars.el: 
    ; From komtypes.el: nil
    ; From clienttypes.el: nil
    ; From startup.el:
    (server-q . "Lyskom-server? (%#1s) ")
Linus Tolke's avatar
Linus Tolke committed
114
    (try-connect . "LysKOM elisp-klient version %#1s.\nF\366rs\366ker koppla upp mot %#2s.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
115
    (protocoll-error . "Protocol error. Servers says: %#1s")
Linus Tolke's avatar
Linus Tolke committed
116
    (connection-done . "Uppkopplingen klar. Serverns versionsnummer \344r %#1s.\n\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
117
    (what-is-your-name . "Vad heter du? ")
Linus Tolke's avatar
Linus Tolke committed
118
119
120
121
    (password . "L\366senord? ")
    (wrong-password . "Fel l\366sen.\n")
    (are-logged-in . "Du \344r nu inloggad. V\344nta ett tag.\n")
    (you-have-motd . "\nDu har en lapp p\345 d\366rren:\n\n")
122
123
    (presentation-encouragement . 
     "Du har ingen presentation. Det skulle vara trevligt om du skrev en.
Linus Tolke's avatar
Linus Tolke committed
124
Anv\344nd kommandot p. Om du inte vill skriva n\345gon presentation tryck fs.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
125
126

    (first-greeting . "%#1s
Linus Tolke's avatar
Linus Tolke committed
127
128
Det tycks vara f\366rsta g\345ngen du anv\344nder LysKOM. V\344lkommen!
Kontrollera att du stavat ditt namn r\344tt.  Anv\344nd g\344rna ditt fullst\344ndiga
Per Cederqvist's avatar
.    
Per Cederqvist committed
129
namn och organisation, t ex \"Eskil Block, FOA\".  Om du stavat ditt namn
Linus Tolke's avatar
Linus Tolke committed
130
fel, eller vill \344ndra ditt namn, svara nej p\345 fr\345gan nedan.
Per Cederqvist's avatar
.    
Per Cederqvist committed
131

Linus Tolke's avatar
Linus Tolke committed
132
133
Observera att all information \344n s\345 l\344nge sparas s\345 att vem som helst
kan l\344sa den. Dock \344r l\366senordet krypterat.
Per Cederqvist's avatar
.    
Per Cederqvist committed
134

Linus Tolke's avatar
Linus Tolke committed
135
136
137
Om du \344r os\344ker p\345 hur man anv\344nder LysKOM kan du h\344mta en manual via
anonym ftp fr\345n ftp.lysator.liu.se. Fr\345ga din systemadministrat\366r om
du \344r os\344ker.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
138
139

    (is-name-correct . "r namnet %#1s korrekt? ")
Linus Tolke's avatar
Linus Tolke committed
140
141
142
    (personal-password . "Ange ett personligt l\366sen: ")
    (repeat-password . "Repetera f\366r kontroll: ")
    (repeat-failure . "Du angav inte samma l\366senord b\344gge g\345ngerna.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
143
144
145

    (could-not-create-you .  "Det gick inte att skapa personen.\n")
    (presentation-subject . "%#1s")
146
    (presentation-form . "Namn:\t\nAdress:\t\nStad:\t\nTelefon:
147
Email-adress:\n\nAnnat:\t")
148
    (presentation-help . "Du skriver just  nu din presentation.\n")
Linus Tolke's avatar
Linus Tolke committed
149
    (not-present-anywhere . "Ej n\344rvarande i n\345got m\366te.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
150
151
152
153



    ; From internal.el:
Linus Tolke's avatar
Linus Tolke committed
154
155
    (shaky-tcp . "Nu n\345r jag inte servern. TCP/IP-f\366rbindelsen \344r skakig%#1s")
    (retrying-tcp . "Jag f\366rs\366ker igen.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
156
157
158
159
160
161
162
163
164
165
166

    ; From parse.el:
    ; No entries.

    ; From services.el:
    ; No entries.

    ; From cache.el:
    ; No entries.

    ; From commands1.el:
Linus Tolke's avatar
Linus Tolke committed
167
168
169
170
171
172
173
174
175
176
177
    (appreciation . "Du \344r mycket vacker och mycket klok. M\345nga \344lskar dig b\345de till kropp
och till sj\344l. Du kommer att \366ver\366sas med rikedom och f\345 stor lycka i ditt
liv. Var glad att just du \344r du. Det har du all anledning att vara.
Fantomen \366nskar dig en bra dag.\n\n")
    (abuse . "Du \344r mycket ful och mycket dum. M\345nga hatar dig b\345de till kropp
och till sj\344l. Du kommer att \366ver\366sas med sjukdomar och inte f\345 n\345gon som
helst lycka i ditt liv. Du borde verkligen ta dig samman och g\366ra n\345got av
ditt liv \344ven om det inte \344r mycket att starta med.
Guran vill helst s\344tta en giftpil i dig.\n\n")

    (what-conf-to-delete . "Vilket m\366te/person vill du utpl\345na: ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
178
179
    (confirm-delete-pers-or-conf . "Ta bort %#1s %#2s? ")
    (the-pers . "personen")
Linus Tolke's avatar
Linus Tolke committed
180
181
182
183
184
    (the-conf . "m\366tet")
    (deletion-not-confirmed . "Utpl\345ningen avbruten\n")
    (somebody-else-deleted-that-conf . "N\345gon annan tog precis bort m\366tet.\n")
    (conf-is-deleted . "Ok, nu \344r %#1s utpl\345nad.\n")
    (you-could-not-delete . "%#1s kunde inte utpl\345nas av dig.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
185

Linus Tolke's avatar
Linus Tolke committed
186
    (what-text-to-delete . "Vilket inl\344gg skall tas bort?")
Per Cederqvist's avatar
.    
Per Cederqvist committed
187
188
    (deleting-text . "Radering av text %#1d...")

Linus Tolke's avatar
Linus Tolke committed
189
190
191
    (presentation-for-whom . "Vilket m\366te/person? ")
    (somebody-deleted-that-conf . "N\345gon tog precis bort m\366tet.\n")
    (review-presentation-of . "\305terse presentation av %#1s.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
192
193
    (has-no-presentation . "%#1s har ingen presentation.\n")

Linus Tolke's avatar
Linus Tolke committed
194
    (have-to-read . "Du m\345ste l\344sa ett inl\344gg f\366rst.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
195

Linus Tolke's avatar
Linus Tolke committed
196
197
    (review-text-no . "\305terse text nummer %#1d.\n")
    (no-comment-to . "Det finns inget kommenterat inl\344gg att titta p\345.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
198
199

    (who-letter-to . "Vem vill du skicka brev till? ")
Linus Tolke's avatar
Linus Tolke committed
200
    (has-motd . "%#1s har en lapp p\345 d\366rren:\n\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
201
202
203
    (motd-persist-q . "Vill du fortfarande skicka brevet? ")

    (who-to-add . "Vem vill du addera? ")
Linus Tolke's avatar
Linus Tolke committed
204
205
206
    (where-to-add . "Vilket m\366te skall han/hon adderas till? ")
    (where-to-add-self . "Vilket m\366te vill du bli medlem i? ")
    (priority-q . "Prioritet p\345 m\366tet? (0 (l\345g) - 255 (h\366g)) ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
207
208
209
    (done . "klart.\n")
    (nope . "Det gick inte.\n")

Linus Tolke's avatar
Linus Tolke committed
210
211
212
213
    (cant-find-supervisor . "Hittar inte organisat\366ren f\366r %#1s.\n")
    (is-read-protected-contact-supervisor . "%#1s \344r slutet.
Skicka ett brev till %#2s f\366r medlemsskap.\n")

Linus Tolke's avatar
Linus Tolke committed
214
    (conf-does-not-exist . "\nM\366tet finns inte.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
215
216

    (who-to-exclude . "Vem vill du utesluta? ")
Linus Tolke's avatar
Linus Tolke committed
217
    (where-from-exclude . "Vilket m\366te skall han/hon uteslutas ifr\345n? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
218

Linus Tolke's avatar
Linus Tolke committed
219
    (leave-what-conf . "Vilket m\366te vill du g\345 ur? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
220

Linus Tolke's avatar
Linus Tolke committed
221
222
    (error-fetching-person . "Fel i personh\344mtningen\n")
    (error-fetching-conf . "Fel i m\366tesh\344mtningen.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
223

Linus Tolke's avatar
Linus Tolke committed
224
225
226
227
    (name-of-conf . "Vad ska m\366tet heta? ")
    (anyone-member . "F\345r vem som helst bli medlem? ")
    (secret-conf . "Hemligt m\366te? ")
    (comments-allowed . "F\345r man skriva kommentarer? ")
228
    (what-comment-no . "Kommentera text nummer: ")
Linus Tolke's avatar
Linus Tolke committed
229
230
    (confusion-what-to-comment . "Jag f\366rst\345r inte vilken text du vill kommentera.\n")
    (confusion-what-to-footnote . "Jag f\366rst\345r inte vilken text du vill skriva en fotnot till.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
231

Linus Tolke's avatar
Linus Tolke committed
232
233
    (confusion-who-to-reply-to . "Jag f\366rst\345r inte vems inl\344gg du vill skriva ett privat svar till.\n")
    (confusion-what-to-answer-to . "Jag f\366rst\345r inte vilken text du vill besvara.")
234
    (quit-in-spite-of-unsent . "Vill du avsluta sessionen trots os\344nt meddelande? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
235
236
237
    (really-quit . "Vill du verkligen avsluta sessionen? ")
    (session-ended . "
*****************************
Linus Tolke's avatar
Linus Tolke committed
238
Lyskom-sessionen \344r avslutad.
Per Cederqvist's avatar
.    
Per Cederqvist committed
239
*****************************\n")
Linus Tolke's avatar
Linus Tolke committed
240
241
    (what-to-change-pres-you . "Vilket m\366te/person vill du \344ndra presentationen f\366r (dig sj\344lv): ")
    (who-to-put-motd-for . "Vilket m\366te/person vill du s\344tta lapp p\345 d\366rr f\366r (dig sj\344lv): ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
242

Linus Tolke's avatar
Linus Tolke committed
243
244
    (cant-get-conf-stat . "Kan ej h\344mta m\366tesstatus f\366r m\366tet.")
    (go-to-conf-p . "G\345 till m\366te: ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
245
246
247
    (want-become-member . "Vill du bli medlem? ")
    (no-ok . "Nehej.\n")

Linus Tolke's avatar
Linus Tolke committed
248
    (who-to-remove-motd-for . "Vilket m\366te/person vill du ta bort lapp p\345 d\366rr f\366r (dig sj{lv): ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
249

Linus Tolke's avatar
Linus Tolke committed
250
251
    (conf-all-read . "%#1s - inga ol\344sta.\n")
    (no-in-conf . "Du \344r inte n\344rvarande i n\345got m\366te.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
252

Linus Tolke's avatar
Linus Tolke committed
253
254
255
256
    (search-for-pers . "Ange s\366kvillkor (RETURN f\366r alla personer) ")
    (search-for-conf . "Ange s\366kvillkor (RETURN f\366r alla m\366ten) ")
    (name-to-be-changed . "Ange det namn som skall \344ndras: ")
    (no-such-conf-or-pers . "M\366tet eller personen finns ej.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
257
    (new-name . "Nytt namn: ")
Linus Tolke's avatar
Linus Tolke committed
258
259
260
261
262
    (who-to-change-supervisor-for . "Vem vill du \344ndra organisat\366r f\366r? ")
    (new-supervisor . "Ny organisat\366r: ")
    (text-to-mark . "Vilket inl\344gg vill du markera? ")
    (text-to-unmark . "Vilket inl\344gg vill du avmarkera? ")
    (what-mark . "Vilken markering vill du s\344tta? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
263
264
265
    (unmarking-textno . "Avmarkering av text %#1d...")
    (marking-textno . "Markering av text %#1d...")

Linus Tolke's avatar
Linus Tolke committed
266
267
268
269
270
271
272
    (new-passwd-again . "Mata in det nya l\366senordet igen f\366r kontroll: ")
    (what-mark-to-view . "Vilken markering vill du \345terse? ")
    (whos-passwd . "Vem vill du \344ndra l\366senord f\366r (dig sj\344lv)? ")
    (old-passwd . "Mata in ditt l\366senord: ")
    (new-passwd . "Mata in det nya l\366senordet: ")
    (changing-passwd . "ndrar l\366senordet...")
    (retype-dont-match . "L\366senorden \344r inte samma. G\366r om.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
273
    (palindrome . "(ett palindrom!) ")
Linus Tolke's avatar
Linus Tolke committed
274
275
276
277
278
279
280
281
282
283
284
    (lyskom-name . "Anv\344ndare")
    (is-in-conf . "N\344rvarande i m\366te")
    (from-machine . "K\366r fr\345n")
    (is-doing . "G\366r")
    (text-to-add-recipient . "Vilket inl\344gg vill du addera mottagare till")
    (text-to-add-copy . "Vilket inl\344gg vill du addera en extra kopia till")
    (text-to-delete-recipient . "Vilket inl\344gg vill du subtrahera mottagare fr\345n")
    (text-to-add-comment-to . "Vilket inl\344gg vill du addera en kommentar till")
    (text-to-delete-comment-from . "Vilket inl\344gg vill du subtrahera en kommentar fr\345n")

    (where-on-list-q . "Placering p\345 listan? (0-%#1d) ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
285
286
    (member-in-conf . "Bli medlem i %#1s...")
    (add-member-in . "Addera %#1s som medlem i %#2s...")
Linus Tolke's avatar
Linus Tolke committed
287
    (unsubscribe-to . "Uttr\344da ur %#1s...")
Per Cederqvist's avatar
.    
Per Cederqvist committed
288

Linus Tolke's avatar
Linus Tolke committed
289
    (exclude-from . "Utesluta %#1s fr\345n %#2s...")
Per Cederqvist's avatar
.    
Per Cederqvist committed
290
291
292
293

    (unsubscribe-failed . "\nDet gick inte. %#1s var kanske aldrig medlem i %#2s?\n")

    (You . "Du")
Linus Tolke's avatar
Linus Tolke committed
294
295
296
297
298
299
300
301
302
    (could-not-create-conf . "M\366tet \"%#1s\" kunde ej skapas.\nFelkod: %#2d.\n")
    (created-conf-no-name . "M\366te nummer %#1d %#2s, skapat.\n")
    (cant-read-textno . "Du f\345r inte l\344sa text %#1d")

    (not-supervisor-for . "Du \344r inte organisat\366r f\366r %#1s.\n")
    (not-supervisor-for . "Du \344r inte organisat\366r f\366r %#1s.\n")
    (go-to-conf . "G\345 till %#1s.\n")
    (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")
Per Cederqvist's avatar
.    
Per Cederqvist committed
303
    (change-name-done . "\nKlart. Nytt namn: %#1s.\n")
Linus Tolke's avatar
Linus Tolke committed
304
    (change-name-nope . "\nDet gick inte bra att \344ndra till %#1s.\nFelkod %#3d. %#2s.\n")
Linus Tolke's avatar
Linus Tolke committed
305
    (change-supervisor-from-to . "ndra organisat\366r f\366r %#1s till %#2s...")
Per Cederqvist's avatar
.    
Per Cederqvist committed
306
    (change-supervisor-nope . 
Linus Tolke's avatar
Linus Tolke committed
307
     "\nDet gick inte. Kanske du inte f\345r \344ndra organisat\366r f\366r %#1s?\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
308
    
Linus Tolke's avatar
Linus Tolke committed
309
    (no-marked-texts . "Du har inga markerade inl\344gg.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
310
    (no-marked-texts-mark . 
Linus Tolke's avatar
Linus Tolke committed
311
312
313
314
315
316
     "Du har inga markerade inl\344gg med markeringen %#1d.\n")
    (time-is . "Klockan \344r %4#1d-%02#2d-%02#3d %02#4d:%02#5d:%02#6d %#7s(enligt servern).\n")
    (total-users . "    Sammanlagt %#1d anv\344ndare.\n")
    (who-to-add-q . "Vilket m\366te/person vill du addera som mottagare? ")
    (who-to-add-copy-q . "Vilket m\366te/person vill du addera som kopiemottagare? ")
    (who-to-sub-q . "Vilket m\366te/person vill du subtrahera som mottagare? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
317
318

    (adding-name-as-recipient . "Adderar %#1s som mottagare till text %#2d...")
Linus Tolke's avatar
Linus Tolke committed
319
    (adding-name-as-copy . "Adderar %#1s som kopiemottagare till text %#2d...")
Per Cederqvist's avatar
.    
Per Cederqvist committed
320
    (remove-name-as-recipient .
Linus Tolke's avatar
Linus Tolke committed
321
322
323
     "Subtraherar %#1s som mottagare fr\345n text %#2d...")
    (text-to-add-q . "Vilket inl\344gg vill du addera som kommentar? ")
    (text-to-remove-q . "Vilket inl\344gg vill du subtrahera som kommentar? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
324
325
    (add-comment-to . "Adderar text %#1d som kommentar till text %#2d...")
    (sub-comment-to . "Subtraherar text %#1d som kommentar till text %#2d...")
326
    (comment-keep-recpt-p ."Ska %#1s vara mottagare? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
327
328
329

    ; From commands2.el:

Linus Tolke's avatar
Linus Tolke committed
330
331
    (your-memberships . "Ditt medlemskap i olika KOM-m\366ten:\n")
    (memberships-header . "Senast inne	   Prio	Ol\344sta	M\366tesnamn\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
332
    
Linus Tolke's avatar
Linus Tolke committed
333
334
335
336
    (conf-for-status . "Vilket m\366te vill du se statusen f\366r? ")
    (no-such-conf . "M\366tet finns ej.")
    (status-record . "Status f\366r m\366te %#1s (%#2s) %#3s\n\n")
    (Mailbox . "Brevl\345da")
Per Cederqvist's avatar
.    
Per Cederqvist committed
337
338
339
340
341
    (Protected . "Skyddat")
    (no-comments . "original")
    (closed . "slutet")

    (created-by . "Skapat av person %#1s %#2s\n")
342
343
    (created-at . "Skapad:%35#1s\n")
    (members .    "Antal medlemmar: %25#1d\n")
Linus Tolke's avatar
Linus Tolke committed
344
345
346
    (garb-nice . "Livsl\344ngd p\345 inl\344gg (dagar):%14#1d\n")
    (lowest-local-no . "L\344gsta existerande lokala nummer: %8#1d\n")
    (highest-local-no . "H\366gsta existerande lokala nummer: %8#1d\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
347
    (last-text-time . 
Linus Tolke's avatar
Linus Tolke committed
348
349
350
351
352
     "Tid f\366r senaste inl\344gg: %18#1s (st\345r det i din cache)\n")
    (no-of-motd . "Lapp p\345 d\366rren i text nummer: %12#1d\n")
    (superconf-is-no-name . "Superm\366te:       %25#1d %#2s\n")
    (permitted-submitters-no-name . "Till\345tna f\366rfattare:%22#1d %#2s\n")
    (supervisor-is-no-name . "Organisat\366r:     %25#1d %#2s\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
353
    (presentation-no . "Presentation:    %25#1d\n")
Linus Tolke's avatar
Linus Tolke committed
354
    (conf-has-motd . "\n%#1s har en lapp p\345 d\366rren:\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
355
356

    (Everybody . "Alla")
Linus Tolke's avatar
Linus Tolke committed
357
358
    (show-members-list-also-q . "Vill du se medlemslistan ocks\345? ")
    (conf-has-these-members . "\n%#1s har f\366ljande medlemmar:\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
359
360
    (member-list-header . "Senast inne         Osett  Namn\n\n")
    (secret-membership . "*** Hemlig rad ***\n")
Linus Tolke's avatar
Linus Tolke committed
361
362
363
    (pers-for-status . "Vem vill du se statusen f\366r? ")
    (no-such-pers . "Det finns ingen s\345dan person.")
    (pers-status-record . "Status f\366r person %#1s (%#2d)\n")
364
    (created-time .  "Skapad:%34#1s\n\n")
Linus Tolke's avatar
Linus Tolke committed
365
    (created-confs . "Skapade m\366ten:%27#1d\n")
Per Cederqvist's avatar
Per Cederqvist committed
366
    (created-persons . "Skapade personer:%24#1d\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
367
368
369
370
    (created-texts . "Skapade texter:%26#1d\n")
    (created-lines . "Skapade rader:%27#1d\n")
    (created-chars . "Antal skapade tecken:%20#1d\n")
    (no-of-sessions . "Antal sessioner:%25#1d\n")
Linus Tolke's avatar
Linus Tolke committed
371
    (present-time-d-h-m-s . "N\344rvarotid:%19#1d d %02#2d:%02#3d:%02#4d\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
372
    (last-log-in . "Senast inne:%29#1s\n")
Linus Tolke's avatar
Linus Tolke committed
373
    (user-name . "Anv\344ndare: %30#1s\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
374

Linus Tolke's avatar
Linus Tolke committed
375
376
377
378
379
    (read-texts . "L\344sta texter:%28#1d\n")
    (time-for-last-letter . "Tid f\366r senaste brev:%20#1s (st\345r det i din cache)\n")
    (superconf . "Superm\366te:%31#1d %#2s\n")
    (supervisor . "Organisat\366r:%29#1d %#2s\n")
    (member-of-confs . "Medlem i (antal m\366ten):%18#1d\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
380
    (presentation . "Presentation:    %24#1d\n")
Linus Tolke's avatar
Linus Tolke committed
381
382
383
    (show-membership-list-also-q . "Vill du se vilka m\366ten personen \344r medlem i ocks\345? ")
    (not-allowed-see-confs . "Du f\345r inte se vilka m\366ten %#1s \344r medlem i.\n")
    (is-member-of . "\n%#1s \344r medlem i f\366ljande m\366ten:\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
384
385
    (membership-list-header . "Senast inne         Osett  Namn\n\n")
    (who-to-send-message-to . "Vem vill du skicka meddelandet till? (Alla) ")
Linus Tolke's avatar
Linus Tolke committed
386
    (his-total-unread . "\n%#1s har totalt %#2d ol\344sta.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
387
    (message-prompt . "Meddelande: ")
388
389
390
391
392
393
394
395
396
397
398
399
400
401
    (message-sent-to-user . 
"================================================================
Ditt meddelande till %#2s:

%#1s
----------------------------------------------------------------
")
    (message-sent-to-all . 
"================================================================
Ditt allm\344nna meddelande l\366d:

%#1s
----------------------------------------------------------------
")
Per Cederqvist's avatar
.    
Per Cederqvist committed
402
403
    (message-nope .
  "Du kunde inte skicka meddelandet. Mottagaren var kanske inte inloggad.\n")
Linus Tolke's avatar
Linus Tolke committed
404
405
    (only-last . "Endast l\344sa senaste (0 - %#1d) i %#2s? ")
    (only-error . "N\345t gick galet. Sorry.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
406

Linus Tolke's avatar
Linus Tolke committed
407
408
    (you-have-unreads . "Du har %#1d ol\344sta inl\344gg i %#2s\n")
    (you-have-an-unread . "Du har 1 ol\344st inl\344gg i %#1s\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
409
    (you-have-read-everything . "Du har sett alla nyheter\n")
Linus Tolke's avatar
Linus Tolke committed
410
411
    (total-unreads . "\nDu har %#1d ol\344sta inl\344gg.\n")
    (total-unread . "\nDu har 1 ol\344st inl\344gg.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
412
    (waiting-for-anything .
Linus Tolke's avatar
Linus Tolke committed
413
     "Du v\344ntar p\345 ett inl\344gg i vilket m\366te som helst.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
414
    (waiting-higher-than . 
Linus Tolke's avatar
Linus Tolke committed
415
     "Du v\344ntar p\345 ett inl\344gg i ett m\366te med h\366gre prioritet \344n %#1d.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
416

417
    (have-to-be-in-conf-with-unread . "Du m\345ste g\345 till ett icketomt m\366te f\366rst.\n")
Linus Tolke's avatar
Linus Tolke committed
418
    (Texts . "Inl\344gg")
Per Cederqvist's avatar
.    
Per Cederqvist committed
419
420
    (Date . "Datum")
    (Lines . "Rader")
Linus Tolke's avatar
Linus Tolke committed
421
    (Author . "  F\366rfattare")
Per Cederqvist's avatar
.    
Per Cederqvist committed
422
    (Subject . "  rende")
Linus Tolke's avatar
Linus Tolke committed
423
    (could-not-read . "Du fick inte l\344sa denna text (%#1d).\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
424
425
426
427
    (multiple-choice . "Flera alternativ finns.")
    (does-not-exist . "Detta kommando finns inte.")

    ; Only people fixing bugs or recieving bugg-reports should change these:
Linus Tolke's avatar
Linus Tolke committed
428
429
    (buggreport-compilestart . "Skapar buggrapporten...")
    (buggreport-compileend . "Skapar buggrapporten...klart")
Linus Tolke's avatar
Linus Tolke committed
430
    (buggreport-description . "Detta gjorde jag:
431
(Fyll i dina kommentarer)\n\n\n
Linus Tolke's avatar
Linus Tolke committed
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
Bland informationen nedan finns ocks\345 en lista p\345 de 100 sist tryckta
tangenterna i din emacs. Om du nyligen loggat in kan den inneh\345lla ditt
lyskoml\366senord. Titta igenom den och \344ndra det som \344r ditt l\366senord
till * * * eller m i t t l \366 s e n eller n\345got annat l\344mpligt.

N\344r du skrivit klart skall du skicka in din buggrapport till LysKOMs
elispklientutvecklare. Det sker antingen:
* med email till bug-lyskom@lysator.liu.se
* i Lysators LysKOM till m\366tet \"LysKOM; Elispklientens buggrapporter\" 
* med vanligt brev till:
\tLysator
\tc/o ISY
\tLink\366ping University
\tS-581 83 Linkoping
\tSWEDEN.

M\344rk kuvertet \"LysKOM buggrapport f\366r elispklienten\".\n\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
449
450
    (buggreport-internals . "LysKOMs interna information:\n\n")
    (buggreport-version . "lyskom-version:")
Linus Tolke's avatar
Linus Tolke committed
451
452
453
    (buggreport-emacs-version . "emacs-version:")
    (buggreport-system-id . "system-id:")
    (buggreport-ctl-arrow-doc . "ctrl-doc:")
Per Cederqvist's avatar
.    
Per Cederqvist committed
454
    (buggreport-unparsed . "\nlyskom-unparsed-buffer:")
Linus Tolke's avatar
Linus Tolke committed
455
    (buggreport-command-keys . "Nyss tryckta tangenter:")
456
    (buggreport-backtrace . "\n*Backtrace*:\n%#1s\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
457
    (buggreport-communications . "\nlyskom-debug-communications-to-buffer-buffer:")
Linus Tolke's avatar
Linus Tolke committed
458
    (buggreport-all-kom-variables . "\n\nAndra variabler:\n***** *********")
Per Cederqvist's avatar
.    
Per Cederqvist committed
459
    (buggreport-instead-of-byte-comp . "byte-code(\"byte-string\"")
460
    (buggreport-subject . "Bugg-rapport elisp-klienten version %#1s")
Per Cederqvist's avatar
.    
Per Cederqvist committed
461
462


Linus Tolke's avatar
Linus Tolke committed
463
464
465
    (not-logged-in . "Du \344r inte inloggad.  ")
    (name-is-not-in-conf . "%#1s \344r inte n\344rvarande i n\345got m\366te.\n")
    (name-is-in-conf . "%#1s \344r n\344rvarande i\n%#2s\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
466
    (connected-during . "Uppkopplingstid: %#1d sekunder.\n")
inge's avatar
inge committed
467

Linus Tolke's avatar
Linus Tolke committed
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
    (conf-to-set-permitted-submitters-q . "Vilket m\366te vill du s\344tta till\345tna f\366rfattare f\366r? ")
    (conf-to-set-super-conf-q . "Vilket m\366te vill du s\344tta superm\366te f\366r? ")
    (new-super-conf-q . "Vilket m\366te vill du ha som superm\366te? ")
    (new-permitted-submitters-q . "M\366te med till\345tna f\366rfattare till %#1s? (alla) ")
    (super-conf-for-is . "ndra superm\366te f\366r %#1s till %#2s...")
    (permitted-submitters-removed-for-conf . "Till\345t alla f\366rfattare i m\366te %#1s...")
    (submitters-conf-for-is . "\304ndra till\345tna f\366rfattare f\366r m\366te %#1s till\nmedlemmarna i %#2s...")

    (conf-to-set-garb-nice-q . "Vilket m\366te vill du s\344tta livsl\344ngd f\366r? ")
    (new-garb-nice-q . "Vilket v\344rde vill du s\344tta livsl\344ngden till? ")
    (garb-nice-for-is . "ndra livsl\344ngden f\366r %#1s till %#2d...")

    (really-shutdown . "r du s\344ker p\345 att du vill st\344nga av servern? ")
    (closing-server . "St\344nga av servern...")
    (administrator . "administrat\366r")
    (no-longer-administrator . "en normal anv\344ndare igen")
    (you-are-now . "Ok, du k\366r nu som %#1s.\n")
    (setting-motd . "S\344tter loginmeddelandet till text %#1d.\n")
486
    (set-motd-success . "Du har satt ett nytt loginmeddelande.\n")
Linus Tolke's avatar
Linus Tolke committed
487
    (set-motd-failed . "Det gick inte. Du var kanske inte administrat\366r.\n")
488
489
    (removing-motd . "Tar bort loginmeddelandet.\n")
    (removed-motd . "Du har tagit bort loginmeddelandet.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
490
491
    (who-to-throw-out . "Vilken session vill du kasta ut? ")
    (throwing-out . "Kastar nu ut session %#1d... ")
Linus Tolke's avatar
Linus Tolke committed
492
    (postpone-prompt . "Hur lite vill du l\344sa nu? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
493
494
495

    ; From review.el:
    (latest-n . "senaste %#1d")
Linus Tolke's avatar
Linus Tolke committed
496
    (first-n . "f\366rsta %#1d")
Per Cederqvist's avatar
.    
Per Cederqvist committed
497
    (info-by-whom . "%#1s av vem: ")
Linus Tolke's avatar
Linus Tolke committed
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
    (info-to-conf . "%#1s till m\366te: ")
    (info-by-to . "%#1s av %#2s till %#3s fram\345t.")
    (all-confs . "alla m\366ten")
    (no-get-conf . "Du f\345r inte h\344mta m\366tet.\n")
    (no-get-pers . "Du f\345r inte h\344mta personen.\n")
    (no-review-info . "Ej till\345tet \345terse %#1s\n")
    (review-info . "\305terse %#1s\n")
    (you-review . "Du \345terser nu %#1s.\n")
    (read-text-first . "Du m\345ste l\344sa en text f\366rst.\n")
    (cannot-read-last-text . "Du kan inte l\344sa den senast l\344sta texten.\n")
    (review-n-texts . "\305terse %#1d inl\344gg.\n")
    (review-marked . "\305terse %#1d markerade.\n")
    (review-text-no . "\305terse text nummer %#1d")
    (review-one-comment . "\305terse en kommentar till inl\344gg %#1d.\n")
    (review-many-comments . "terse %#2d kommentarer till inl\344gg %#1d.\n")
    (read-normally-read . "Hur m\345nga vill du se igen?")
Per Cederqvist's avatar
.    
Per Cederqvist committed
514
515

    ; From edit-text.el:
Linus Tolke's avatar
Linus Tolke committed
516
    (press-C-c-C-c . "Tryck C-c C-c f\366r att skicka in texten.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
517
518
    (recipient . "Mottagare:")
    (carbon-copy . "Extra kopia:")
519
    (text-mass . "%#4s%#1s\n%#2s\n%#3s")
Per Cederqvist's avatar
.    
Per Cederqvist committed
520
    (comment-to-by . "%#1s till text %#2d%#3s.\n")
Linus Tolke's avatar
Linus Tolke committed
521
    (already-sent . "Du har redan skickat denna text en g\345ng. S\344nd \344nd\345? ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
522
523
524
    (subject . "rende: ")
    (which-text-include . "Vilken text skall vi inkludera? ")
    (added-recipient . "Mottagare som skall adderas: ")
Linus Tolke's avatar
Linus Tolke committed
525
526
527
    (added-carbon-copy . "Extra kopia till m\366te: ")
    (conf-has-motd-no . "M\366tet har en lapp p\345 d\366rren. (%#1d)\n\n%#2s")
    (still-want-to-add . "Vill du fortfarande addera m\366tet? ")
Linus Tolke's avatar
Linus Tolke committed
528
    (could-not-create-text . "\nTexten kunde ej skapas. Felet: %#2s.\n")
Linus Tolke's avatar
Linus Tolke committed
529
    (no-get-text . "Du fick inte h\344mta texten.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
530
531
532
533
534
535
536


    ; From view-text.el:
    (line . " /1 rad/ ")
    (lines ." /%#1d rader/ ")

    (marked-by-you . "Markerad av dig.\n")
Linus Tolke's avatar
Linus Tolke committed
537
    (marked-by-you-and-one . "Markerad av dig och n\345gon annan.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
538
539
540
541
542
543
544
545
546
547
548
    (marked-by-you-and-several . "Markerad av dig och %#1d andra.\n")
    (marked-by-one . "Markerad av 1 person.\n")
    (marked-by-several . "Markerad av %#1d personer.\n")

;; The format of this function should coincide with the format of the 
;; lyskom-text-start variable. DONT change one without changing the other.

; used by lyskom-print-time
    (time-y-m-d-h-m . "%4#1d-%02#2d-%02#3d  %02#4d:%02#5d ")
; used by lyskom-return-time
    (time-yyyy-mm-dd-hh-mm . "%4#1d-%02#2d-%02#3d %02#4d:%02#5d")
Linus Tolke's avatar
Linus Tolke committed
549
    (no-such-text-no . "Det finns ingen s\345dan text. (%#1d)\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
550
551
552
553

    (head-Subject . "rende: ")
    (Recipient . "Mottagare")
    (Extra-recipient . "Extra kopia")
Linus Tolke's avatar
Linus Tolke committed
554
555
    (send-at . "    S\344nt:     %#1s\n")
    (sent-by . "    S\344nt av ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
556
557
558
559
560
561
562
563
564
565
566
    (recieved-at . "    Mottaget: %#1s\n")
    (written-by . "av %#1s")
    (comment-to-text-by . "Kommentar till text %#1d %#2s\n")
    (footnote-to-text-by . "Fotnot till text %#1d %#2s\n")
    (comment-in-text-by . "Kommentar i text %#1d %#2s\n")
    (footnote-in-text-by . "Fotnot i text %#1d %#2s\n")

    ; From async.el:

    (name-has-changed-to-name . "%#1s har nu bytt namn till %#2s")
    (name-has-changed-to-name-r . "%#1s har nu bytt namn till %#2s\n")
567
    (you-changed-name-to . "Nu har du bytt namn till %#1s.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
568
569
570
    (database-sync . "Databasen synkas.")
    (lyskom-is-full . "\
===========================================================
Linus Tolke's avatar
Linus Tolke committed
571
572
573
Meddelande fr\345n LysKOM-systemet: N\345gon f\366rs\366kte koppla upp,
men misslyckades eftersom alla tillg\344ngliga f\366rbindelser \344r
upptagna. Logga ut och kom tillbaks senare om du v\344ntar nu.
Per Cederqvist's avatar
.    
Per Cederqvist committed
574
===========================================================\n")
Linus Tolke's avatar
Linus Tolke committed
575
576
577
578
579
    (has-entered . "Nu har %#1s g\345tt in i LysKOM.")
    (has-entered-r . "Nu har %#1s g\345tt in i LysKOM.\n")
    (has-left . "Nu har %#1s g\345tt ur LysKOM.")
    (has-left-r . "Nu har %#1s g\345tt ur LysKOM.\n")
    (unknown . "ok\344nd")
Per Cederqvist's avatar
.    
Per Cederqvist committed
580

581
582
    (message-broadcast . 
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Linus Tolke's avatar
Linus Tolke committed
583
Allm\344nt meddelande fr\345n %#1s (%#3s):
584
585
586
587
588
589

%#2s
----------------------------------------------------------------
")
    (message-from . 
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Linus Tolke's avatar
Linus Tolke committed
590
Personligt meddelande fr\345n %#1s (%#3s):
591
592
593
594

%#2s
----------------------------------------------------------------
")
Linus Tolke's avatar
Linus Tolke committed
595
    (text-is-created . "Text %#1d \344r skapad!")
Per Cederqvist's avatar
.    
Per Cederqvist committed
596
597
598
599
600
601
602


    ; From completing-read.el:

    (person-or-conf-no-regexp . "\\`[ \t]*[mpMP]\\w*[ \t]+\\([0-9]+\\)\\'")

    ; From prioritize.el:
Linus Tolke's avatar
Linus Tolke committed
603
604
605
606
    (cannot-get-membership . "Kan ej h\344mta medlemsskap f\366r dig.")
    (cannot-get-pers-stat . "Kan ej h\344mta personstatus f\366r dig.")
    (your-membship . "Ditt medlemsskap i olika KOM-m\366ten:
  Prio M\366tesnr M\366tesnamn\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
607
    (prio-row . " %5#1d%5#2d  %#3s\n")
Linus Tolke's avatar
Linus Tolke committed
608
609
610
611
612
    (too-high-goto-2 . "Du st\345r f\366r h\366gt upp. G\345 ner till rad 2.")
    (too-low-go-up . "Du kan inte pusha sista raden. G\345 upp en rad.")
    (all-confs-popped .  "Alla m\366ten \344r poppade.")
    (prio-died . "Flyttningen misslyckades. Sorry. D\366da bufferten.")
    (new-priority . "Ny prioritet? (0 (l\345g) - 255 (h\366g)) ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
613
614
615
616
    (new-prio . "%6#1d")

    ; From flags.el:
    (saving-settings . "Sparar flaggorna")
Linus Tolke's avatar
Linus Tolke committed
617
    (hang-on . "V\344nta ett tag...\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
618
    (could-not-create-area . "Kunde ej skapa texten.\n")
Linus Tolke's avatar
Linus Tolke committed
619
    (could-not-set-user-area . "Kunde ej st\344lla om user-arean. Servern s\344ger felmeddelande: %#1d\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
620
621
622
623
624
625
626
627
628
    (you-dont-exist . "Du finns inte.\n")

    ; From elib-string.el:
    ; No entries.

    ; From lyskom-rest.el:

    (error-code . "Felkod %#2d: %#1s.\n")
    (extended-command . "LysKOM: ")
Linus Tolke's avatar
Linus Tolke committed
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
    (wait-for-server . "LysKOM v\344ntar p\345 svar fr\345n servern. V\344nta tills du f\345r en prompt.\n")
    (review-text-q . "\305terse text nummer: ")
    (review-text-no . "\305terse text nummer %#1d.\n")

    (completely-read-conf . "Du har sett alla texter i detta m\366te.\n")
    (not-in-any-conf . "Du l\344ser inte n\345got m\366te just nu.\n")

    (all-conf-unread-r . "Du har l\344st ut alla m\366ten.\n")
    (all-conf-unread-s . "Du har l\344st ut alla m\366ten. ")
    (one-unread . " - 1 ol\344st\n")
    (several-unread . " - %#1d ol\344sta\n")

    (save-on-file-q . "Spara inl\344gg p\345 fil: (%#1s) ")
    (wait-for-prompt . "V\344nta p\345 prompten!")
    (go-to-pri-conf-prompt . "G\345 till n\344sta prioriterade m\366te")
    (read-pri-text-conf . "L\344sa n\344sta prioriterade text")
    (review-next-text-prompt . "\305terse n\344sta text")
    (review-next-comment-prompt . "\305terse n\344sta kommentar")
    (review-next-marked-prompt . "\305terse n\344sta markerade")
    (read-next-letter-prompt . "L\344sa n\344sta brev")
    (read-next-footnote-prompt . "L\344sa n\344sta fotnot")
    (read-next-comment-prompt . "L\344sa n\344sta kommentar")
    (read-next-text-prompt . "L\344sa n\344sta text")
    (go-to-conf-of-marked-prompt . "\305terse (n\344sta) markerade")
    (go-to-next-conf-prompt . "G\345 till n\344sta m\366te")
    (go-to-your-mailbox-prompt . "G\345 till din brevl\345da")
Per Cederqvist's avatar
.    
Per Cederqvist committed
655
656
657
658
659
660
661
662
663
664
    (the-command . "Kommandot:%#1s")
    (error-in-do-when-starting . "Fel i din kom-do-when-starting. %#1s\n")

    (give-a-number . "Mata in ett tal: ")

    (yes-regexp . "\\`[jJ][aA]\\'")
    (no-regexp . "\\`[nN][eE][jJ]\\'")
    (yes-or-no-nag . "Svara bara ja eller nej.")
    (yes-or-no . "(ja eller nej) ")

665
    (y-or-n-instring . "jJnN")
Per Cederqvist's avatar
.    
Per Cederqvist committed
666
667
    (j-or-n-nag . "Svara bara j eller n. ")
    (j-or-n . "(j eller n) ")
668
    (y-instring . "jJ")
Per Cederqvist's avatar
.    
Per Cederqvist committed
669
670

    (person-does-not-exist . "Person %#1d (finns inte).")
Linus Tolke's avatar
Linus Tolke committed
671
    (conf-does-not-exist . "M\366te %#1d (finns inte).")
Per Cederqvist's avatar
.    
Per Cederqvist committed
672

Linus Tolke's avatar
Linus Tolke committed
673
    (process-signal . "Signal fr\345n processen.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
674
675
    (closed-connection . "
**************************************************
Linus Tolke's avatar
Linus Tolke committed
676
Lyskom-sessionen onormalt st\344ngd.
Per Cederqvist's avatar
.    
Per Cederqvist committed
677
Felmeddelande: %#1s**************************************************")
Linus Tolke's avatar
Linus Tolke committed
678
    (error-not-found . "Fel nummer %#1d. Ingen klartextf\366rklaring finns.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
679
680

    ; Useful in more place than one:
Linus Tolke's avatar
Linus Tolke committed
681
682
683
    (illegal-command . "Otill\345tet kommando.\n")
    (no-such-text . "Det finns inget s\345dant inl\344gg.\n")
    (no-such-text-m . "Det finns inget s\345dant inl\344gg.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
684
685
    (everybody . "alla")
    (anybody . "vem som helst")
Linus Tolke's avatar
Linus Tolke committed
686
687
688
    (forward . "fram\345t")
    (backward . "bak\345t")
    (wait . "V\344nta ett tag...\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
689
690
691
    (comment . "Kommentar")
    (footnote . "Fotnot")
    (by . " av %#1s")
Linus Tolke's avatar
Linus Tolke committed
692
    (text-created .  "Text nummer %#1d \344r skapad.\n")
Per Cederqvist's avatar
.    
Per Cederqvist committed
693
694
695
696
697
698
699
700
701
702
703
    )
  "Assoc list containing pairs of atoms and strings")



;;; ================================================================
;;;              The commands and their associated functions


(defconst lyskom-commands
  '(
Linus Tolke's avatar
Linus Tolke committed
704
705
    (describe-mode              "Hj\344lp")
    (kom-slow-mode              "L\345ngsamma kommandon")
706
    (kom-quick-mode             "Snabba kommandon")
Linus Tolke's avatar
Linus Tolke committed
707
708
709
710
    (kom-send-message           "S\344nda meddelande")
    (kom-create-conf		"Skapa m\366te")
    (kom-delete-conf            "Utpl\345na")
    (kom-delete-text            "Radera inl\344gg")
Per Cederqvist's avatar
.    
Per Cederqvist committed
711
    (kom-display-time		"Se tiden")
Linus Tolke's avatar
Linus Tolke committed
712
713
714
715
    (kom-go-to-conf		"G\345 till m\366te")
    (kom-go-to-next-conf	"G\345 till n\344sta m\366te")
    (kom-jump			"Hoppa \366ver alla kommentarer")
    (kom-list-conferences 	"Lista m\366ten") 
Per Cederqvist's avatar
.    
Per Cederqvist committed
716
717
718
    (kom-list-persons		"Lista personer")
    (kom-list-news              "Lista nyheter")
    (kom-membership		"Lista medlemsskap")
Linus Tolke's avatar
Linus Tolke committed
719
720
721
722
723
724
725
    (kom-postpone		"Uppskjuta l\344sning")
    (kom-prioritize		"Prioritera m\366ten")
    (kom-status-person		"Status (f\366r) person")
    (kom-status-conf		"Status (f\366r) m\366te")
    (kom-add-self		"Bli medlem i m\366te")
    (kom-list-summary		"Lista \344renden")
    (kom-sub-self               "Uttr\344da ur m\366te")
Per Cederqvist's avatar
.    
Per Cederqvist committed
726
    (kom-quit			"Sluta")
Linus Tolke's avatar
Linus Tolke committed
727
728
729
730
731
732
733
    (kom-recover		"\305terstarta kom") 
    (kom-start-anew		"B\366rja med nytt namn")
    (kom-view			"\305terse inl\344gg")
    (kom-find-root-review	"\305terse tr\344d")
    (kom-review-comments	"\305terse alla kommentarer")
    (kom-review-tree		"\305terse alla kommentarer rekursivt")
    (kom-review-clear           "\305terse hoppa")
734
    (kom-review-last-normally-read
Linus Tolke's avatar
Linus Tolke committed
735
736
737
738
739
740
741
742
743
744
745
     				"\305terse igen")
    (kom-review-noconversion    "\305terse omodifierat")
    (kom-review-next            "\305terse n\344sta")
    (kom-find-root		"\305terse urinl\344gget")
    (kom-review-by-to           "\305terse senaste")
    (kom-view-commented-text    "\305terse det kommenterade")
    (kom-review-stack           "\305terse lista")
    (kom-review-presentation    "\305terse presentation")
    (kom-review-backward        "(\305terse) Bakl\344nges")
    (kom-view-next-text		"L\344sa n\344sta inl\344gg")
    (kom-who-is-on		"Vilka \344r inloggade") 
Per Cederqvist's avatar
.    
Per Cederqvist committed
746
    (kom-display-who-buffer	"Visa vilkalistan")
Linus Tolke's avatar
Linus Tolke committed
747
748
749
750
    (kom-busy-wait		"V\344nta p\345 ett inl\344gg")
    (kom-write-comment		"Kommentera inl\344gget")
    (kom-comment-previous	"Kommentera f\366reg\345ende inl\344gg")
    (kom-write-footnote         "Fotnot till inl\344gg")
Per Cederqvist's avatar
.    
Per Cederqvist committed
751
    (kom-private-answer         "Personligt svar")
752
    (kom-private-answer-previous
Linus Tolke's avatar
Linus Tolke committed
753
754
755
     "Personligt svar p\345 f\366reg\345ende inl\344gg")
    (kom-set-unread		"Endast l\344sa senaste")
    (kom-write-text		"Skriva ett inl\344gg")
Per Cederqvist's avatar
.    
Per Cederqvist committed
756
757
    (kom-send-letter		"Skicka brev")
    (kom-change-name		"ndra namn")
Linus Tolke's avatar
Linus Tolke committed
758
759
    (kom-change-password        "ndra l\366senord")
    (kom-change-supervisor	"ndra organisat\366r")
Per Cederqvist's avatar
.    
Per Cederqvist committed
760
    (kom-change-presentation	"ndra presentation")
Linus Tolke's avatar
Linus Tolke committed
761
762
763
764
765
766
    (kom-get-appreciation       "F\345 uppmuntran")
    (kom-get-abuse              "F\345 sk\344ll")
    (kom-mark-text              "Markera (inl\344gg)")
    (kom-unmark-text            "Avmarkera (inl\344gg)")
    (kom-review-marked-texts    "\305terse markerade")
    (kom-review-all-marked-texts "\305terse alla markerade")
Per Cederqvist's avatar
.    
Per Cederqvist committed
767
    (kom-add-recipient          "Addera mottagare")
Linus Tolke's avatar
Linus Tolke committed
768
    (kom-add-copy		"Addera extra kopiemottagare")
Per Cederqvist's avatar
.    
Per Cederqvist committed
769
770
771
772
773
    (kom-sub-recipient          "Subtrahera mottagare")
    (kom-add-comment		"Addera kommentar")
    (kom-sub-comment		"Subtrahera kommentar")
    (kom-add-member		"Addera medlem")
    (kom-sub-member             "Uteslut medlem")
Linus Tolke's avatar
Linus Tolke committed
774
775
776
777
778
779
    (kom-change-conf-motd	"S\344tt lapp p\345 d\366rren")
    (kom-set-garb-nice          "ndra livsl\344ngd")
    (kom-set-super-conf         "ndra superm\366te")
    (kom-set-permitted-submitters "\304ndra till\345tna f\366rfattare")
    (kom-unset-conf-motd	"Ta bort lapp p\345 d\366rren")
    (kom-save-text		"Spara text (p\345 fil)")
Per Cederqvist's avatar
.    
Per Cederqvist committed
780
    (kom-edit-options		"ndra variabler")
Linus Tolke's avatar
Linus Tolke committed
781
782
783
784
    (kom-shutdown-server        "St\344ng av servern")
    (kom-enable-adm-caps        "\326verg\345 till administrat\366rsmod")
    (kom-disable-adm-caps       "\326verg\345 till normalmod")
    (kom-set-motd               "S\344tt loginmeddelande")
Per Cederqvist's avatar
.    
Per Cederqvist committed
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
    (kom-remove-motd            "Ta bort loginmeddelande")
    (kom-force-logout           "Kasta ut en session")
    )
  "A list of LysKOM-commands that the extended parser understands.")


(defvar lyskom-text-start "
[0-9]+ 199[0-9]-[0-1][0-9]-[0-3][0-9] +[0-2][0-9]:[0-5][0-9]  /[0-9]+ rad\\(er\\)?/ "
  "Regexp matching beginning of a text in lyskom buffer.
Cf. paragraph-start.")


(if lyskom-mode-map
    nil
  (setq lyskom-mode-map (make-keymap))
  (suppress-keymap lyskom-mode-map)
801
802
803
804
805
806
  (define-prefix-command 'lyskom-review-prefix)
  (define-prefix-command 'lyskom-change-prefix)
  (define-prefix-command 'lyskom-next-prefix)
  (define-prefix-command 'lyskom-list-prefix)
  (define-prefix-command 'lyskom-get-prefix)
  (define-prefix-command 'lyskom-S-prefix)
807
  (define-key lyskom-mode-map "{" 'lyskom-change-prefix) ; krullar
Per Cederqvist's avatar
.    
Per Cederqvist committed
808
809
810
  (define-key lyskom-mode-map "[" 'lyskom-change-prefix)
  (define-key lyskom-mode-map "}" 'lyskom-review-prefix)
  (define-key lyskom-mode-map "]" 'lyskom-review-prefix)
811
812
  (define-key lyskom-mode-map "\344" 'lyskom-change-prefix) ; 8-bit keymap
  (define-key lyskom-mode-map "\304" 'lyskom-change-prefix)
Per Cederqvist's avatar
.    
Per Cederqvist committed
813
814
  (define-key lyskom-mode-map "\345" 'lyskom-review-prefix)
  (define-key lyskom-mode-map "\305" 'lyskom-review-prefix)
815
816
817
  (define-key lyskom-mode-map "\033{" 'lyskom-change-prefix) ; 7(8)-bit emacs.
  (define-key lyskom-mode-map "\033[" 'lyskom-change-prefix) 
  (define-key lyskom-mode-map "\033}" 'lyskom-review-prefix)
Per Cederqvist's avatar
.    
Per Cederqvist committed
818
  (define-key lyskom-mode-map "\033]" 'lyskom-review-prefix) 
819

Per Cederqvist's avatar
.    
Per Cederqvist committed
820
821
822
823
824
  (define-key lyskom-mode-map "f" 'lyskom-get-prefix)
  (define-key lyskom-mode-map "n" 'lyskom-next-prefix)
  (define-key lyskom-mode-map "l" 'lyskom-list-prefix)
  (define-key lyskom-mode-map "s" 'lyskom-S-prefix)

825
826
827
828
829
830
831
832
833
834
835
  ;; emacs 19
  (if (string-match "^19" emacs-version)
      (progn
	(define-key lyskom-mode-map [\344] 'lyskom-change-prefix)
	(define-key lyskom-mode-map [\304] 'lyskom-change-prefix)
	(define-key lyskom-mode-map [\345] 'lyskom-review-prefix)
	(define-key lyskom-mode-map [\304] 'lyskom-review-prefix)

	(define-key lyskom-mode-map [?l ?\344] 'kom-list-summary)
	(define-key lyskom-mode-map [?l ?\304] 'kom-list-summary)
	))
Per Cederqvist's avatar
.    
Per Cederqvist committed
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
	;(define-key lyskom-mode-map "vi" 'vilka)

  ; These should be first in order to be last in the menu of alternatives.
  (define-key lyskom-mode-map "{?" 'lyskom-help)
  (define-key lyskom-mode-map "}?" 'lyskom-help)
  (define-key lyskom-mode-map "f?" 'lyskom-help)
  (define-key lyskom-mode-map "n?" 'lyskom-help)
  (define-key lyskom-mode-map "l?" 'lyskom-help)
  (define-key lyskom-mode-map "s?" 'lyskom-help)
  

  (define-key lyskom-mode-map "e" 'kom-set-unread)
  (define-key lyskom-mode-map "a" 'kom-extended-command)
  (define-key lyskom-mode-map " " 'kom-next-command)
  (define-key lyskom-mode-map "\n" 'kom-page-next-command)
  (define-key lyskom-mode-map "\r" 'kom-line-next-command)
Linus Tolke's avatar
Linus Tolke committed
852
  (define-key lyskom-mode-map "j" 'kom-page-next-command)
Per Cederqvist's avatar
.    
Per Cederqvist committed
853
854
855
856
857
858
859
860
861

  (define-key lyskom-mode-map "?"  'describe-mode)
  (define-key lyskom-mode-map "b"  'kom-send-letter)
  (define-key lyskom-mode-map "g"  'kom-go-to-conf)
  (define-key lyskom-mode-map "i"  'kom-write-text)
  (define-key lyskom-mode-map "k"  'kom-write-comment)
  (define-key lyskom-mode-map "K"  'kom-comment-previous)
  (define-key lyskom-mode-map "F"  'kom-write-footnote)
  (define-key lyskom-mode-map "p"  'kom-private-answer)
862
  (define-key lyskom-mode-map "P"  'kom-private-answer-previous)
Per Cederqvist's avatar
.    
Per Cederqvist committed
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
  (define-key lyskom-mode-map "h"  'kom-jump)
  (define-key lyskom-mode-map "lm" 'kom-list-conferences)
  (define-key lyskom-mode-map "ln" 'kom-list-news)
  (define-key lyskom-mode-map "lN" 'kom-list-news-old)
  (define-key lyskom-mode-map "lp" 'kom-list-persons)
  (define-key lyskom-mode-map "ls" 'kom-membership)
  (define-key lyskom-mode-map "l{" 'kom-list-summary)
  (define-key lyskom-mode-map "l[" 'kom-list-summary)
  (define-key lyskom-mode-map "l\344" 'kom-list-summary) ; 8-bit emacs
  (define-key lyskom-mode-map "l\304" 'kom-list-summary)
  (define-key lyskom-mode-map "l\033{" 'kom-list-summary) ; 7(8)-bit emacs
  (define-key lyskom-mode-map "l\033[" 'kom-list-summary)
  (define-key lyskom-mode-map "m"  'kom-add-self)
  (define-key lyskom-mode-map "M"  'kom-mark-text)
  (define-key lyskom-mode-map "A"  'kom-unmark-text)
  (define-key lyskom-mode-map "ni" 'kom-view-next-new-text)
  (define-key lyskom-mode-map "nm" 'kom-go-to-next-conf)
880
  (define-key lyskom-mode-map "nl" 'kom-next-kom)
Per Cederqvist's avatar
.    
Per Cederqvist committed
881
882
  (define-key lyskom-mode-map "S"  'kom-quit)
  (define-key lyskom-mode-map "q"  'kom-quit)
Linus Tolke's avatar
Linus Tolke committed
883
  (define-key lyskom-mode-map "z"  'kom-bury)
Per Cederqvist's avatar
.    
Per Cederqvist committed
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
  (define-key lyskom-mode-map "r"  'kom-recover)
  (define-key lyskom-mode-map "t"  'kom-display-time)
  (define-key lyskom-mode-map "fu" 'kom-get-appreciation)
  (define-key lyskom-mode-map "fs" 'kom-get-abuse)
  (define-key lyskom-mode-map "v"  'kom-who-is-on)
  (define-key lyskom-mode-map "V"  'kom-busy-wait)
  (define-key lyskom-mode-map "{p" 'kom-change-presentation)
  (define-key lyskom-mode-map "} " 'kom-view)
  (define-key lyskom-mode-map "}0" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}1" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}2" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}3" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}4" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}5" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}6" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}7" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}8" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}9" 'kom-initial-digit-view)
  (define-key lyskom-mode-map "}k" 'kom-view-commented-text)
  (define-key lyskom-mode-map "}a?" 'lyskom-help)
  (define-key lyskom-mode-map "}ak" 'kom-review-comments)
  (define-key lyskom-mode-map "}ar" 'kom-review-tree)
  (define-key lyskom-mode-map "}h" 'kom-review-clear)
907
  (define-key lyskom-mode-map "}i" 'kom-review-last-normally-read)
Per Cederqvist's avatar
.    
Per Cederqvist committed
908
  (define-key lyskom-mode-map "}n" 'kom-review-next)
Linus Tolke's avatar
Linus Tolke committed
909
  (define-key lyskom-mode-map "}o" 'kom-review-noconversion)
Per Cederqvist's avatar
.    
Per Cederqvist committed
910
  (define-key lyskom-mode-map "}r" 'kom-find-root)
Linus Tolke's avatar
Linus Tolke committed
911
  (define-key lyskom-mode-map "}u" 'kom-find-root)
Per Cederqvist's avatar
.    
Per Cederqvist committed
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
  (define-key lyskom-mode-map "}s" 'kom-review-by-to)
  (define-key lyskom-mode-map "B"  'kom-review-backward)
  (define-key lyskom-mode-map "}l" 'kom-review-stack)
  (define-key lyskom-mode-map "}p" 'kom-review-presentation)
  (define-key lyskom-mode-map "}t" 'kom-find-root-review)
  (define-key lyskom-mode-map "}m" 'kom-review-marked-texts)
  (define-key lyskom-mode-map "}am" 'kom-review-all-marked-texts)
  (define-key lyskom-mode-map "sm" 'kom-status-conf)
  (define-key lyskom-mode-map "sp" 'kom-status-person)

  ;; Running in buffer

  (define-key lyskom-mode-map "\033p" 'backward-text)
  (define-key lyskom-mode-map "\033n" 'forward-text)
  (define-key lyskom-mode-map "st" 'kom-save-text)

  (define-key lyskom-mode-map "\C-?" 'scroll-down)
)


932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
(defvar lyskom-prioritize-mode-map nil
  "Keymap used in lyskom-prioritize-mode.")


(if lyskom-prioritize-mode-map
    nil
  (setq lyskom-prioritize-mode-map (make-keymap))
  (suppress-keymap lyskom-prioritize-mode-map)
  (define-key lyskom-prioritize-mode-map "\C-?" 'previous-line)
  (define-key lyskom-prioritize-mode-map " "    'next-line)
  (define-key lyskom-prioritize-mode-map "\C-k" 'kom-prioritize-kill)
  (define-key lyskom-prioritize-mode-map "\C-y" 'kom-prioritize-yank)
  (define-key lyskom-prioritize-mode-map "p"     'kom-prioritize-set-priority)
  (define-key lyskom-prioritize-mode-map "\C-c\C-c" 'kom-prioritize-quit)
  (define-key lyskom-prioritize-mode-map "q"     'kom-prioritize-quit)
  (define-key lyskom-prioritize-mode-map "S"     'kom-prioritize-quit)
  (define-key lyskom-prioritize-mode-map "u"     'kom-prioritize-move-up)
  (define-key lyskom-prioritize-mode-map "n"     'kom-prioritize-move-down)
)
Per Cederqvist's avatar
.    
Per Cederqvist committed
951
952
953
954
955
956
957
958
959
960
961

;;;; ================================================================
;;;; Tell phrases should be configured with the default language used
;;;; at the server and not for person reading if they happens to
;;;; differ. This is of coarse because they are sent to the server for
;;;; everybody else to see.

;;;; Aronsson was here 4 DEC 1990, thus creating version 0.18
					; Created *-tell-*


962
963
964
965
966
;;;; kom-tell-phrases-internal moved to vars.el
;;; To coders of the elisp-client:
;;; dont change the kom-tell-phrases here, change it in vars.el.

(defvar kom-tell-phrases kom-tell-phrases-internal
Per Cederqvist's avatar
.    
Per Cederqvist committed
967
  "These texts are used as arguments to lyskom-tell-server.
968
969
The variable kom-mercial defaults to kom-tell-wait.
Users are encouraged to change this dictionary for fun.")
Per Cederqvist's avatar
.    
Per Cederqvist committed
970
971
972
973
974
975
976
977
978
979
980
981


;; Placed here because this must NOT be evaluated before 
;; kom-tell-phrases is defined:

(defvar kom-mercial (car (cdr (assoc 'kom-tell-wait kom-tell-phrases)))
  "*When the user has seen all texts and has reached the view-time prompt,
this string is used as the argument to lyskom-tell-server.
Users are encouraged to use their best sense of humor.")


(defconst lyskom-error-texts
Linus Tolke's avatar
Linus Tolke committed
982
  '((0 . "Inget fel har intr\344ffat")
Per Cederqvist's avatar
.    
Per Cederqvist committed
983
    (2 . "nnu ej implementerat")
Linus Tolke's avatar
Linus Tolke committed
984
985
986
987
988
989
990
    (3 . "Inte l\344ngre implementerat")
    (4 . "Felaktigt l\366senord")
    (5 . "Str\344ngen f\366r l\345ng")
    (6 . "Du \344r inte inloggad")
    (7 . "Ingen f\345r logga in i LysKOM just nu")
    (8 . "Du f\366rs\366kte anv\344nda m\366te nummer 0")
    (9 . "Odefinierat eller hemligt m\366te")
Per Cederqvist's avatar
.    
Per Cederqvist committed
991
    (10 . "Odefinierad eller hemlig person")
Linus Tolke's avatar
Linus Tolke committed
992
993
994
995
    (11 . "Ingen skriv- eller l\344sr\344ttighet")
    (12 . "Otill\345ten operation")
    (13 . "Du \344r inte medlem i m\366tet")
    (14 . "Inget s\345dant textnummer")
Linus Tolke's avatar
Linus Tolke committed
996
    (15 . "Du kan inte anv\344nda globalt textnummer 0")
Linus Tolke's avatar
Linus Tolke committed
997
    (16 . "Inget s\345dant lokalt textnummer")
Linus Tolke's avatar
Linus Tolke committed
998
999
    (17 . "Du kan inte anv\344nda lokalt textnummer 0")
    (18 . "Namnet f\366r kort eller f\366r l\345ngt eller inneh\345ller felaktiga tecken")
Linus Tolke's avatar
Linus Tolke committed
1000
1001
    (19 . "Index utanf\366r gr\344nserna")
    (20 . "M\366tet existerar redan")
Per Cederqvist's avatar
.    
Per Cederqvist committed
1002
    (21 . "Personen existerar redan")
Linus Tolke's avatar
Linus Tolke committed
1003
1004
    (22 . "Hemligt, men ej l\344sskyddat")
    (23 . "Du f\345r inte \344ndra person/m\366tesflaggan")
Per Cederqvist's avatar
.    
Per Cederqvist committed
1005
    (24 . "Fel i databasen. Attans otur.")
Linus Tolke's avatar
Linus Tolke committed
1006
1007
    (25 . "Otill\345tet misc-f\344lt. (Internt fel)")
    (26 . "Otill\345ten infotyp. (Bug i klienten)")
Per Cederqvist's avatar
.    
Per Cederqvist committed
1008
1009
1010
1011
1012
1013
    (27 . "Redan mottagare till denna text")
    (28 . "Redan kommentar till denna text")
    (29 . "Redan fotnot till denna text")
    (30 . "Inte mottagare till denna text")
    (31 . "Inte kommentar till denna text")
    (32 . "Inte fotnot till denna text")
Linus Tolke's avatar
Linus Tolke committed
1014
1015
1016
1017
1018
    (33 . "F\366r m\345nga mottagare")
    (34 . "F\366r m\345nga kommentarer")
    (35 . "F\366r m\345nga fotnoter")
    (36 . "F\366r m\345nga markeringar")
    (37 . "Du \344r inte f\366rfattare till texten")
Per Cederqvist's avatar
.    
Per Cederqvist committed
1019
1020
1021
    (38 . "Du kan inte koppla upp dig till servern")
    (39 . "Minnet slut")
    (40 . "Servern har ballat ur")
Linus Tolke's avatar
Linus Tolke committed
1022
1023
    (41 . "Klienten tror att servern s\344ger att den inte f\366rst\345r klienten")
    (42 . "Ingen s\345dan session finns"))
Per Cederqvist's avatar
.    
Per Cederqvist committed
1024
  "All the errors reported from the server in plain text.")
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088


     
;;;; This file contains the code that makes it possible to run a 
;;;; long-commands mode in the lyskom-buffer.
;;;;

;;; Author: Linus Tolke 

(setq lyskom-slow-mode-map
      (make-sparse-keymap))
(define-key lyskom-slow-mode-map "\r" 'lyskom-parse-command-and-execute)

(defun lyskom-parse-command-and-execute ()
  "Reads a command from the last line in the buffer and executes it."
  (interactive)
  (goto-char (point-max))
  (save-restriction
    (narrow-to-region lyskom-last-viewed (point-max))
    (search-backward lyskom-prompt-text))
  (forward-char (length lyskom-prompt-text))
  (while (looking-at "\\s-")
    (forward-char 1))
  (let* ((text (buffer-substring (point) (point-max)))
	 (completion-ignore-case t)
	 (alternatives (mapcar (function reverse)
			       (if kom-emacs-knows-iso-8859-1
				   lyskom-commands
				 lyskom-swascii-commands)))
	 (completes (all-completions text alternatives)))
    (cond
     ((zerop (length text))
      (kom-next-command))
     ((> (length completes) 1)
      (lyskom-insert "\nDu kan mena n}gon av f|ljande:\n")
      (mapcar (function (lambda (string) 
			  (lyskom-insert string)
			  (lyskom-insert "\n")))
	      completes)
      (lyskom-end-of-command))
     ((= (length completes) 1)
      (delete-region (point) (point-max))
      (call-interactively (car (reverse-assoc (car completes)
					      (if kom-emacs-knows-iso-8859-1
						  lyskom-commands
						lyskom-swascii-commands)))))
     (t
      (lyskom-insert "Det finns inget s}dant kommando.\n")
      (lyskom-end-of-command)))
  ))


(defun kom-slow-mode ()
  "Starts the slow-command-mode."
  (interactive)
  (lyskom-start-of-command 'kom-slow-mode)
  (use-local-map lyskom-slow-mode-map)
  (lyskom-end-of-command))

(defun kom-quick-mode ()
  "Starts the quick-command-mode."
  (interactive)
  (lyskom-start-of-command 'kom-quick-mode)
  (use-local-map lyskom-mode-map)
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
  (lyskom-end-of-command))


;; Review a non-converted text
;; Author: Linus Tolke
 

(defun kom-review-noconversion (&optional text-no)
  "Displays the last read text without any conversion."
  (interactive (list 
		(cond
		 ((null current-prefix-arg)
		  lyskom-current-text)
		 ((integerp current-prefix-arg)
		  current-prefix-arg)
		 ((and (listp current-prefix-arg) 
		       (integerp (car current-prefix-arg)) 
		       (null (cdr current-prefix-arg)))
		  (car current-prefix-arg))
		 (t
		  (signal 'lyskom-internal-error '(kom-review-noconversion))))))
  (lyskom-start-of-command 'kom-review-noconversion)
  (let ((knows-iso-8859-1 kom-emacs-knows-iso-8859-1))
    (setq kom-emacs-knows-iso-8859-1 t)
    (lyskom-view-text 'main text-no)
    (lyskom-run 'main 'set 'kom-emacs-knows-iso-8859-1 knows-iso-8859-1)
    (lyskom-run 'main 'lyskom-end-of-command)))