
Hi, I am trying to improve the messages the user gets when scheduling fails. But I have found an interesting issue regarding localization. The texts here are simplified, but should demonstrate what I am trying to do. So here is the flow: - RunVmCommand's canDoAction fails because there is no host that fits the constraints - For each host I add a message to getReturnValue().getCanDoActionMessages() in the format of "Host XYZ failed constraint ABCD". - I log the same message to the log I expect the log to contain the strings in english and a localized version to be shown in the error popup that will be displayed by the webadmin. And the question is.. how do I localize this? I looked at AppErrors and AppMessages, but there is not way of using them from the backend side. Any ideas? -- Martin Sivák msivak@redhat.com Red Hat Czech RHEV-M SLA / Brno, CZ