Comment 7 for bug 1224329

Revision history for this message
Peng Wu (alexepico) wrote :

personally I prefer not to translate the object attributes.

In the horizon web UI, we need code to check the "state" object attribute.
In order to display the state, and provides available operations, need code like:
instance.status == "SUSPENDED"

If the servers translates the object attribute, the code may becomes:
instance.status == _("SUSPENDED")
if the above "instance.status" stores the translated status from the server.

If the translations of the client and server mis-matches, some un-expected bugs may appears.
maybe good to not translate object attributes...