This part fixes ironic/api, ironic/cmd, ironic/tests folders.
Some modules use _ function for log translation, even when the
translated string is passed to e.g. LOG.warn function. This patch
fixes it, using translator functions appropriate for corresponding
log levels. Translator functions, imported from
ironic.openstack.common.gettextutils are now imported from
ironic.common.i18n. Translator functions are imported the same way
across all modules. All places that are changed conform to http://docs.openstack.org/developer/oslo.i18n/guidelines.html
Reviewed: https:/ /review. openstack. org/118591 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=d8a237806df ed25738944ae108 623e874a91746d
Committed: https:/
Submitter: Jenkins
Branch: master
commit d8a237806dfed25 738944ae108623e 874a91746d
Author: Vladyslav Drok <email address hidden>
Date: Wed Sep 3 12:31:15 2014 +0300
Translator functions cleanup part 4
This part fixes ironic/api, ironic/cmd, ironic/tests folders.
Some modules use _ function for log translation, even when the openstack. common. gettextutils are now imported from common. i18n. Translator functions are imported the same way docs.openstack. org/developer/ oslo.i18n/ guidelines. html
translated string is passed to e.g. LOG.warn function. This patch
fixes it, using translator functions appropriate for corresponding
log levels. Translator functions, imported from
ironic.
ironic.
across all modules. All places that are changed conform to
http://
Partial-bug: #1364813
Change-Id: I92e5f0d50c3b50 7080fb95e81274a 241558ce526