Författare: Göran Uddeborg (goeran_at_uddeborg.pp.se)
Datum: 2003-05-20 14:11:11
I made a little hook to po-mode to set up patterns for ispell so only the translated strings and translator comments are checked. This might be a too trivial thing, but I haven't seen it elsewhere so I thought I'd post it. So I get some help with debugging! :-) Maybe I will trigger someone to post their own much better ideas? This is not perfect in any way. Since the po file is in read only mode, you can only use it to detect misspellings, but not fix them on-the-fly in the ordinary ispell-mode way. (defun po-mode-ispell-pattern () "Add ispell patterns so that only translated messages are checked." (make-variable-buffer-local 'ispell-skip-region-alist) (add-to-list 'ispell-skip-region-alist '("^msgid" . "^msgstr")) (add-to-list 'ispell-skip-region-alist '("^#[:,]" . "\n"))) (add-hook 'po-mode-hook 'po-mode-ispell-pattern)
Arkiv genererat av hypermail pre-2.1.8.