Comment 4 for bug 1841796

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.i18n (master)

Reviewed: https://review.opendev.org/679321
Committed: https://git.openstack.org/cgit/openstack/oslo.i18n/commit/?id=22499258465e4606e234f8aad99e56338b3e0722
Submitter: Zuul
Branch: master

commit 22499258465e4606e234f8aad99e56338b3e0722
Author: Ben Nemec <email address hidden>
Date: Thu Aug 29 19:10:42 2019 +0000

    Deprecate Message.translate in favor of Message.translation

    It shadows the unicode function of the same name, and there's no
    way to entirely disambiguate the two based on the parameter passed
    in. This change deprecates Message.translate and makes it a wrapper
    around the new function, Message.translation.

    Note that we never documented calling Message.translate directly.
    The documented way to get the translated form of a Message is to call
    the _translate.translate function in this project, so chances are
    that this public API change will have little actual impact on users.

    Change-Id: I0c617937f5af7467d1454f72acd0474ae2ce0293
    Closes-Bug: 1841796