Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File admi18n.patch,
968 bytes
(added by amit, 4 years ago) |
|
I don't know whether this is the correct way to fix the problem, but it works for me...
|
-
|
|
|
|
| 110 | 110 | |
| 111 | 111 | def normalize(s): |
| 112 | 112 | # taken from pygettext module but changed a bit |
| | 113 | s = s.strip() |
| 113 | 114 | lines = s.split('\n') |
| 114 | 115 | if len(lines) == 1: |
| 115 | 116 | s = '"' + quote(s) + '"' |
-
|
|
|
|
| 265 | 265 | def normalize(s, escape=False): |
| 266 | 266 | # This converts the various Python string types into a format that is |
| 267 | 267 | # appropriate for .po files, namely much closer to C style. |
| | 268 | s = s.strip() |
| 268 | 269 | lines = s.split('\n') |
| 269 | 270 | if len(lines) == 1: |
| 270 | 271 | s = '"' + escape_unicode(s) + '"' |
Download in other formats: