Comment 8 for bug 1616357

Revision history for this message
Esha Seth (eshaseth) wrote : Re: The Error Response REST API GET/POST on networks is not translated

For GET call:
If the messsage NetworkNotFound is actually coming from https://github.com/openstack/neutron-lib/blob/master/neutron_lib/exceptions.py , the translation for this library/project is not in place. ie the messages are written correctly like _() but I don't see any local directory or .op files under the locale directory .

The setup.cfg file has all the sections filled out >> https://github.com/openstack/neutron-lib/blob/master/setup.cfg#L35-#L47 .. for this reason, I don't think none of the message that come from neutron_lib is translated.

The POST call for which defect was raised is returning the webob/exc.py HTTPNotFound(HTTPClientError) which is a 404 and is not translated.(https://github.com/Pylons/webob/blob/master/webob/exc.py line 702 . This should be translated by using _() and corresponding translation files (mo, .op)