Changes between Initial Version and Version 1 of Ticket #2301
- Timestamp:
- 04/16/12 17:13:13 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2301
- Property Summary changed from Fix substitutions in strings marked for translation to Replace old-style string formatting with format() method (at least in strings marked for translation)
-
Ticket #2301 – Description
initial v1 1 1 Some strings in CKAN are passed to gettext with more than one %s in them, this is no good as translators may need to change the order of substituted words. 2 3 Strings should not use the old style % substitution, they should use the new format method in Python 2.6+, e.g.: 4 5 'This {food} is {adjective}.'.format(food='spam', adjective='absolutely horrible') 6 7 http://docs.python.org/release/2.6.8/tutorial/inputoutput.html#fancier-output-formatting