mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
Fixed plural form texts in Impressions header
This commit is contained in:
1 parent
22831b2035
commit
97c59cae56
1 file changed
+3
-7
+3
-7
@@ -40,18 +40,14 @@ public class Impressions extends Composite {
|
||||
|
||||
public void setStatistis(int nrOfImages, int nrOfVideos) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (nrOfImages >0) {
|
||||
sb.append(nrOfImages);
|
||||
sb.append(" ");
|
||||
sb.append(i18n.photos());
|
||||
if (nrOfImages > 0) {
|
||||
sb.append(i18n.photosCount(nrOfImages));
|
||||
if (nrOfVideos > 0) {
|
||||
sb.append(" | ");
|
||||
}
|
||||
}
|
||||
if (nrOfVideos > 0) {
|
||||
sb.append(nrOfVideos);
|
||||
sb.append(" ");
|
||||
sb.append(i18n.videos());
|
||||
sb.append(i18n.videosCount(nrOfVideos));
|
||||
}
|
||||
|
||||
headerUi.setSubtitle(sb.toString());
|
||||
|
||||
Reference in new issue
Block a user