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:
@@ -21,9 +21,7 @@ import enum
|
|||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
import prettytable
|
import prettytable
|
||||||
|
|
||||||
|
from oslo_upgradecheck._i18n import _
|
||||||
def _(s):
|
|
||||||
return s
|
|
||||||
|
|
||||||
|
|
||||||
class UpgradeCheckCode(enum.IntEnum):
|
class UpgradeCheckCode(enum.IntEnum):
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
|
|
||||||
Babel>=1.3
|
Babel>=1.3
|
||||||
oslo.config
|
oslo.config
|
||||||
|
oslo.i18n
|
||||||
enum34
|
enum34
|
||||||
prettytable
|
prettytable
|
||||||
|
|||||||
Reference in New Issue
Block a user