On Thu, Nov 15, 2018 at 3:25 PM Kaustav Majumder <kmaju...@redhat.com> wrote:
>
> Hi all,
> I am working on a bug where the error messages comes as non interpolated 
> [https://bugzilla.redhat.com/show_bug.cgi?id=1369319].I am trying to figure 
> out where the 'type' and 'action' variables are set in ovirt for validation 
> error messages
> One such example from AppErrors.properties is :-
>
>  ACTION_TYPE_FAILED_GENERATOR_NOT_SUPPORTED_BY_CLUSTER=Cannot ${action} 
> ${type}. The random number generator is not supported by the Cluster.

There used to be a page that explains this -
http://www.ovirt.org/Engine_Adding_Messages. Not sure where it resides
now. A quick search did not reveal it to me.

These are set in the setActionMessageParameters() that you would
override in your Command class.
See, for instance,
https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeCommand.java

>
>
> Thanks,
> Kaustav
> _______________________________________________
> Devel mailing list -- devel@ovirt.org
> To unsubscribe send an email to devel-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/devel@ovirt.org/message/RJFCG6GIAWWB6MEAUVMRT5MU7LYVHRE7/
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/YDV3HGCKNDLMG4NYROJMUBHMI7BZVMIX/

Reply via email to