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:
Vincent Françoise
2015-12-11 18:02:19 +01:00
parent 7c72d6f912
commit bd29e2e79f
18 changed files with 614 additions and 54 deletions

View File

@@ -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