Add i18n support
There are translatable strings in this library and we need to support that properly. Replace the stub _() with a proper implementation based on oslo.i18n.
This commit is contained in:
parent
302c40a857
commit
1f333e1aea
|
@ -21,9 +21,7 @@ import enum
|
|||
from oslo_config import cfg
|
||||
import prettytable
|
||||
|
||||
|
||||
def _(s):
|
||||
return s
|
||||
from oslo_upgradecheck._i18n import _
|
||||
|
||||
|
||||
class UpgradeCheckCode(enum.IntEnum):
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
|
||||
Babel>=1.3
|
||||
oslo.config
|
||||
oslo.i18n
|
||||
enum34
|
||||
prettytable
|
||||
|
|
Loading…
Reference in New Issue