Filed from caserun (INSERT URL HERE) Version-Release number of selected component (if applicable): unspecified Steps to Reproduce: * Click on Clusters tab. * Select a cluster from the list * Click on Host tab in the details pane. * Under the "Load"column header it shows number of VMs. Actual results: #FIXME A simple format of {0} Virtual Machine(s) is used here, but we need to add a counter suffix after the number (before the word VM). Expected results: If the string for this "Virtual Machine(s)" is only used for this, I can add the counter suffix in front of "Virtual Machine(s)" string, which will fix the problem. If so, please let me know the string with its file name and Resource ID. If it is used in other parts of Web Admin Portal, you have to fix in a different way. Please add a sinble string combining the number (in variable) + VM, so that we can translate appropriately.
The problem is that the "{x} VMs" is not a full, single sentence in the application - it is constructed as follows: return object.getvm_active() + " " + constants.vmsClusterHost(); [see SubTabClusterHostView.java, "initTable()" methods, towards the end] We simply need to add a message (it has to be a message, not a constant, since a constant cannot contain variables), in uicompat's Messages.java file, for example, in the form of: @DefaultMessage("{0} VMs") String numberOfVmsForHostsLoad(int numberOfVms); and use it as the string that is displayed in the Load column (instead of the string concatenation that currently exists there). When pushed to Zanata, each locale will construct this sentence according to the relevant locale's grammar rules. Note that in the Hosts main tab, the problem is a bit worse, as the "VMs" part of the string is not localized at all - the displayed string there is: return numOfActiveVMs + " VMs"; So both Hosts main tab and Hosts sub-tab in Clusters main tab should be fixed.
posted at: http://gerrit.ovirt.org/#/c/9082/
merged upstream at: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=bed3cfcdea48ad640ae04113b86a789fa54f2df1
Fix NPE that previous patch cause: http://gerrit.ovirt.org/#/c/9151/
NPE patch merged upstream at http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=90d45be14dd84bbc1fcf8cd6795f61c8b815e9de
Prevent NPE to clusters tab as well, posted at: http://gerrit.ovirt.org/#/c/9181/
NPE for clusters merged at: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=8dab6548f6b9b36d60f9cc3eb7ed2c6d1fba12cf
3.2 has been released