1 |
slords |
1.1 |
diff -up translate-toolkit-1.5.3/translate/tools/poterminology.py.stoplist translate-toolkit-1.5.3/translate/tools/poterminology.py |
2 |
|
|
--- translate-toolkit-1.5.3/translate/tools/poterminology.py.stoplist 2010-01-23 01:18:39.000000000 +0200 |
3 |
|
|
+++ translate-toolkit-1.5.3/translate/tools/poterminology.py 2010-02-02 15:35:24.000000000 +0200 |
4 |
|
|
@@ -74,7 +74,7 @@ class TerminologyExtractor(object): |
5 |
|
|
|
6 |
|
|
if stopfile is None: |
7 |
|
|
try: |
8 |
|
|
- stopfile = file_discovery.get_abs_data_filename('stoplist-%s' % self.sourcelanguage) |
9 |
|
|
+ stopfile = '/usr/share/translate-toolkit/stoplist-%s' % self.sourcelanguage |
10 |
|
|
except: |
11 |
|
|
pass |
12 |
|
|
self.stopfile = stopfile |
13 |
|
|
@@ -457,7 +457,7 @@ def main(): |
14 |
|
|
|
15 |
|
|
parser.add_option("-S", "--stopword-list", type="string", metavar="STOPFILE", dest="stopfile", |
16 |
|
|
help="read stopword (term exclusion) list from STOPFILE (default %s)" % |
17 |
|
|
- file_discovery.get_abs_data_filename('stoplist-en')) |
18 |
|
|
+ '/usr/share/translate-toolkit/stoplist-en') |
19 |
|
|
|
20 |
|
|
parser.set_defaults(foldtitle = True, ignorecase = False) |
21 |
|
|
parser.add_option("-F", "--fold-titlecase", callback=fold_case_option, |