Ticket #1695: admi18n.patch
| File admi18n.patch, 0.9 kB (added by amit, 1 year ago) |
|---|
-
turbogears/toolbox/admi18n/catalog.py
old new 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) + '"' -
turbogears/toolbox/admi18n/pygettext.py
old new 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) + '"'