Changes between Initial Version and Version 1 of Ticket #22565, comment 5
- Timestamp:
- May 15, 2014, 8:06:16 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22565, comment 5
initial v1 20 20 * The translation is NOT found. Generally happens for English, since that's your base language: no need for po/mo files for that. 21 21 * `result` holds `context\x04bytestring` (which means it wasn't translated), so it is overwritten by the original which was a bytestring. 22 * When the lazy object is converted to non-lazy it trips on the wrong data type, since it expected unicode -- `pgettext_lazy = lazy(pgettext, unicode)` -- and gets a bytestring, hence the ` ValueError: Lazy object returned unexpected type`.22 * When the lazy object is converted to non-lazy it trips on the wrong data type, since it expected unicode -- `pgettext_lazy = lazy(pgettext, unicode)` -- and gets a bytestring, hence the `TypeError: Lazy object returned unexpected type`. 23 23 24 24 After patching you can safely forget the `u` again which you weren't used to using for `ugettext_lazy` either.