From 324818ee75b8eb3fbad8b581f55376b80fdfefb3 Mon Sep 17 00:00:00 2001 From: Trevor McCasland Date: Sun, 4 Dec 2016 11:19:23 -0600 Subject: [PATCH] Add i18n translation common 5/5 This is patch 5 of 5 for adding i18n translation to common. A custom hacking rule will enfornce these changes later. Change-Id: If29f7b5df7f6958cec4b26f72babc47ca70f3706 --- trove/common/strategies/strategy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trove/common/strategies/strategy.py b/trove/common/strategies/strategy.py index 8139748aa9..c176601d45 100644 --- a/trove/common/strategies/strategy.py +++ b/trove/common/strategies/strategy.py @@ -19,6 +19,7 @@ import abc from oslo_log import log as logging import six +from trove.common.i18n import _ from trove.common import utils @@ -53,7 +54,7 @@ class Strategy(object): ns = ns or cls.__strategy_ns__ if ns is None: raise RuntimeError( - 'No namespace provided or __strategy_ns__ unset') + _('No namespace provided and __strategy_ns__ unset')) LOG.debug('Looking for strategy %s in %s', name, ns)