git-gui: Remove explicit references to 'aspell' in message strings
Users may or may not be using aspell here. About the only thing we are using that is aspell specific (and not supported by ispell or an ispell variant) is some command line options when we start up aspell, and a forced encoding of UTF-8. Both of these can be corrected and/or cleaned up by users through an aspell wrapper script, or through further improvements to git-gui. There is no reason to require our translated strings to reference a specific spell checker, especially if that spell checker implementation is not very suitable for the language being translated. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Feb 20, 2008 at 21:52 UTC
dd0962883b239ab265079b666d9a9f5014d60e52
1 file changed
+7
-7
lib/spellcheck.tcl
+7
-7
@@ -1,10 +1,10 @@
1
-# git-gui spellchecking support through aspell
1
+# git-gui spellchecking support through ispell/aspell
2
# Copyright (C) 2008 Shawn Pearce
3
4
class spellcheck {
5
6
-field s_fd {} ; # pipe to aspell
7
-field s_version {} ; # aspell version string
6
+field s_fd {} ; # pipe to ispell/aspell
7
+field s_version {} ; # ispell/aspell version string
8
field s_lang {} ; # current language code
9
10
field w_text ; # text widget we are spelling
@@ -15,7 +15,7 @@ field s_i {} ; # timer registration for _run callbacks
15
field s_clear 0 ; # did we erase mispelled tags yet?
16
field s_seen [list] ; # lines last seen from $w_text in _run
17
field s_checked [list] ; # lines already checked
18
-field s_pending [list] ; # [$line $data] sent to aspell
18
+field s_pending [list] ; # [$line $data] sent to ispell/aspell
19
field s_suggest ; # array, list of suggestions, keyed by misspelling
20
21
constructor init {pipe_fd ui_text ui_menu} {
@@ -35,11 +35,11 @@ method _connect {pipe_fd} {
35
36
if {[gets $pipe_fd s_version] <= 0} {
37
close $pipe_fd
38
- error [mc "Not connected to aspell"]
38
+ error [mc "Spell checker sliently failed on startup"]
39
}
40
if {{@(#) } ne [string range $s_version 0 4]} {
41
close $pipe_fd
42
- error [strcat [mc "Unrecognized aspell version"] ": $s_version"]
42
+ error [strcat [mc "Unrecognized spell checker"] ": $s_version"]
43
}
44
set s_version [string range $s_version 5 end]
45
@@ -337,7 +337,7 @@ method _read {} {
337
fconfigure $s_fd -block 1
338
if {[eof $s_fd]} {
339
if {![catch {close $s_fd} err]} {
340
- set err [mc "Unexpected EOF from aspell"]
340
+ set err [mc "Unexpected EOF from spell checker"]
341
}
342
catch {after cancel $s_i}
343
$w_text tag remove misspelled 1.0 end