Commit a45423d
committed
Major code cleanup, full PEP8 compliance, replace %-formatting with .format()
All changes:
- import the print function
- replace the %-formatting with .format()
- full PEP8 compliance
- fix problem when latest string in file has a plural form (this last
translation was ignored)
- use codecs module to unescape strings (faster with python 3)
- display full exception in case of problem when reading file
- add short option synonym '-P' for '--pwl'
- add short option synonym '-e' for '--extract'
- rename some long names for command line options:
--compile --> --no-compile
--lines --> --no-lines
--punct --> --no-punct
--whitespace --> --no-whitespace
--onlymisspelled --> --only-misspelled
- major code cleanup: add comments, move checking/error functions from
class PoMessage to class PoFile1 parent 09137b4 commit a45423d
2 files changed
+374
-271
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments