Internationalization (i18n) - Enable French locale
Our project should now enable its internationalization. This patchset add the french locale to the project but also refactors the codebase to following the oslo_i18n recommendations. DocImpact Implements: blueprint support-translation Change-Id: I0e4fbf05d16afb5e25bac78438c640f147c754b1
This commit is contained in:
@@ -25,16 +25,16 @@ from oslo_log import log
|
||||
from sqlalchemy.orm.exc import MultipleResultsFound
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
|
||||
from watcher import _i18n
|
||||
from watcher.common import exception
|
||||
from watcher.common import utils
|
||||
from watcher.db import api
|
||||
from watcher.db.sqlalchemy import models
|
||||
from watcher import i18n
|
||||
from watcher.objects.audit import AuditStatus
|
||||
|
||||
CONF = cfg.CONF
|
||||
LOG = log.getLogger(__name__)
|
||||
_ = i18n._
|
||||
_ = _i18n._
|
||||
|
||||
_FACADE = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user