]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Re-enable lazy translation
authorLuis A. Garcia <luis@linux.vnet.ibm.com>
Wed, 15 Jan 2014 23:20:51 +0000 (23:20 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:18 +0000 (15:20 +0800)
After enhancements to Oslo Message class, re-enable lazy translation to
enable REST API responses to be translated to the requested user locale.

bp i18n-messages

Change-Id: I80272fb0d063a78882611b3044c920e28cc57d6b

neutron/server/__init__.py

index e8a40512876ebbb9d3c3546788ab86c7624d21c8..a31cdbe403ff68d8857b1f9b24b0209d77886a8c 100755 (executable)
@@ -28,7 +28,7 @@ from neutron.common import config
 from neutron import service
 
 from neutron.openstack.common import gettextutils
-gettextutils.install('neutron', lazy=False)
+gettextutils.install('neutron', lazy=True)
 
 
 def main():