Changeset 5367
- Timestamp:
- 09/07/08 17:17:44 (3 months ago)
- Files:
-
- branches/1.0/turbogears/command/i18n.py (modified) (2 diffs)
- branches/1.1/turbogears/command/i18n.py (modified) (2 diffs)
- branches/1.5/turbogears/command/i18n.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/turbogears/command/i18n.py
r4740 r5367 327 327 s = _py_i18n_re.search(k) 328 328 if s: 329 key = s.group(1) or s.group(2)329 key = (s.group(1) or s.group(2) or '').strip() 330 330 elif not is_attribute: 331 331 # we don't have a kid expression in there, so it is … … 336 336 print "Warning: Mixed content in tag <%s>: %s" % (tag, k) 337 337 elif isinstance(parts, basestring): 338 key = k 338 key = k.strip() 339 339 if key and (key not in keys) and (tag not in tags_to_ignore): 340 340 messages.append((tag, fname, key)) branches/1.1/turbogears/command/i18n.py
r4740 r5367 331 331 s = _py_i18n_re.search(k) 332 332 if s: 333 key = s.group(1) or s.group(2)333 key = (s.group(1) or s.group(2) or '').strip() 334 334 elif not is_attribute: 335 335 # we don't have a kid expression in there, so it is … … 340 340 print "Warning: Mixed content in tag <%s>: %s" % (tag, k) 341 341 elif isinstance(parts, basestring): 342 key = k 342 key = k.strip() 343 343 if key and (key not in keys) and (tag not in tags_to_ignore): 344 344 messages.append((tag, fname, key)) branches/1.5/turbogears/command/i18n.py
r4963 r5367 331 331 s = _py_i18n_re.search(k) 332 332 if s: 333 key = s.group(1) or s.group(2)333 key = (s.group(1) or s.group(2) or '').strip() 334 334 elif not is_attribute: 335 335 # we don't have a kid expression in there, so it is … … 340 340 print "Warning: Mixed content in tag <%s>: %s" % (tag, k) 341 341 elif isinstance(parts, basestring): 342 key = k 342 key = k.strip() 343 343 if key and (key not in keys) and (tag not in tags_to_ignore): 344 344 messages.append((tag, fname, key))