Changes between Initial Version and Version 1 of Ticket #22565, comment 5


Ignore:
Timestamp:
May 15, 2014, 8:06:16 AM (11 years ago)
Author:
Walter Doekes

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22565, comment 5

    initial v1  
    2020 * The translation is NOT found. Generally happens for English, since that's your base language: no need for po/mo files for that.
    2121 * `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`.
    2323
    2424After patching you can safely forget the `u` again which you weren't used to using for `ugettext_lazy` either.
Back to Top