|
5 | 5 |
|
6 | 6 | * check compilation (with command `msgfmt -c`) |
7 | 7 | * for each translation, the script can check: |
8 | | - * number of lines in translated string |
9 | | - * whitespace at beginning/end of string |
10 | | - * punctuation at end of string |
| 8 | + * number of lines in translated strings |
| 9 | + * whitespace at beginning/end of strings |
| 10 | + * trailing whitespace at end of lines inside strings |
| 11 | + * punctuation at end of strings |
11 | 12 | * spelling |
12 | 13 |
|
13 | 14 | The script requires Python >= 2.7. |
@@ -35,12 +36,14 @@ Options: |
35 | 36 | * `-m`, `--only-misspelled`: display only misspelled words (no error, line |
36 | 37 | number and translation) |
37 | 38 | * `-w`, `--no-whitespace`: do not check whitespace at beginning/end of strings |
| 39 | +* `-W`, `--no-whitespace-eol`: do not check whitespace at end of lines inside |
| 40 | + strings |
38 | 41 | * `-e`, `--extract`: display all translations and exit (all checks except |
39 | 42 | compilation are disabled in this mode) |
40 | 43 | * `-q`, `--quiet`: quiet mode: only display number of errors |
41 | 44 | * `-v`, `--version`: display version and exit |
42 | 45 |
|
43 | | -Environment variable 'MSGCHECK_OPTIONS' can be set with some default options. |
| 46 | +Environment variable `MSGCHECK_OPTIONS` can be set with some default options. |
44 | 47 |
|
45 | 48 | The script returns following exit code: |
46 | 49 | 0: all files checked are OK (0 errors) (or --extract given) |
@@ -70,3 +73,20 @@ The script returns following exit code: |
70 | 73 | valeur courante |
71 | 74 | ====================================================================== |
72 | 75 | fr.po: 3 errors (almost good!) |
| 76 | + |
| 77 | +## Copyright |
| 78 | + |
| 79 | +Copyright (C) 2009-2014 Sébastien Helleu <[email protected]> |
| 80 | + |
| 81 | +This program is free software; you can redistribute it and/or modify |
| 82 | +it under the terms of the GNU General Public License as published by |
| 83 | +the Free Software Foundation; either version 3 of the License, or |
| 84 | +(at your option) any later version. |
| 85 | + |
| 86 | +This program is distributed in the hope that it will be useful, |
| 87 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 88 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 89 | +GNU General Public License for more details. |
| 90 | + |
| 91 | +You should have received a copy of the GNU General Public License |
| 92 | +along with this program. If not, see <http://www.gnu.org/licenses/>. |
0 commit comments