Commit Graph

7 Commits

Author SHA1 Message Date
Shengjing Zhu 6abd44500f Fix translated response
When request has ``Accept-Language`` header, keystone should response
the translated message. Without oslo_i18n lazy translation feature, the
message will be translated before the server knows the language.

Actually this has been fixed previously, like
2167e3612c

But seems the logic was broken after i18n refactor.

Change-Id: Icb3d9dcd25a5dde0676fc4bd4eaad7b265a0c99d
2019-08-19 14:49:37 +08:00
jolie cdfcac6e67 Update links in keystone
Some links have been changed. This patch updates links
in docs and codes.

Change-Id: Ia104a6ec890e1af4bc44c96a38a4b055ebb99e26
2017-09-12 15:18:13 +08:00
wingwj ca35d003dc Remove log translations in keystone
Log messages are no longer being translated. This removes all use of
the _LC, _LE, _LI, and _LW translation markers to simplify logging
and to avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Co-Authored-By: David Stanek <dstanek@dstanek.com>

Change-Id: I45862f944107c1b4b73aa4d2fd95940f0b67eb1b
2017-03-25 18:17:15 +00:00
Eric Brown 30d9095d28 Use https for docs.openstack.org references
The openstack.org pages now support https and our references to
the site should by default be one signed by the organization.

Change-Id: I30a462e03d1fd7852511e22cac34c6bc0e8917f4
2017-01-30 16:05:08 -08:00
Brant Knudson 2666d30283 Change oslo.i18n to oslo_i18n
The oslo libraries are moving away from namespace packages.

bp drop-namespace-packages

Change-Id: I5b6bb46ac55b8309845fcc8b01d93d97be4e86ca
2015-02-09 18:10:07 -06:00
Steve Martinelli 1ecc6692d2 Remove unnecessary oslo incubator bits
Remove the following from our sync'ed oslo incubator section:

  * openstack/common/config/*

Since we are now using oslo.config.

Also remove the following:

  * openstack/common/gettextutils.py
  * openstack/common/importutils.py

Since only config/generator was using it.

Also, tweaking keystone/i18n.py since it made reference to
gettextutils.py.

Removing the no longer sync'ed parts from openstack-common.conf

Change-Id: Idc62fa1093251f5719868c1fffd82810eb87fc08
2015-01-05 15:08:20 -05:00
Brant Knudson e527802f68 Use oslo.i18n
Keystone was using the I18N functions from oslo-incubator. With
this change, Keystone uses the new oslo.i18n library.

The tests were adapted to not use internal symbols because these are
subject to change.

Change-Id: I1b13fcc630952695424fccd91bcd157d702851f1
2014-07-13 10:29:41 -05:00