Commit f4f589be authored by Josianne Hyson's avatar Josianne Hyson

Remove redundant translation case

The singular version of the projects selection string was effectively
dead code as there would always be multiple projects selected by the
time the translation took place.

Remove un-needed string.
parent 31b5afd6
......@@ -3,7 +3,7 @@ import $ from 'jquery';
import _ from 'underscore';
import { GlLoadingIcon, GlButton, GlAvatar } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue';
import { n__, s__, __ } from '~/locale';
import { sprintf, s__, __ } from '~/locale';
import Api from '~/api';
import { renderAvatar, renderIdenticon } from '~/helpers/avatar_helper';
......@@ -49,14 +49,12 @@ export default {
},
computed: {
selectedProjectsLabel() {
if (this.selectedProjects.length > 1) {
return n__(
'CycleAnalytics|%d project selected',
'CycleAnalytics|%d projects selected',
this.selectedProjects.length,
);
} else if (this.selectedProjects.length === 1) {
if (this.selectedProjects.length === 1) {
return this.selectedProjects[0].name;
} else if (this.selectedProjects.length > 1) {
return sprintf(s__('CycleAnalytics|%{projectCount} projects selected'), {
projectCount: this.selectedProjects.length,
});
}
return this.selectedProjectsPlaceholder;
......
......@@ -5742,10 +5742,8 @@ msgstr ""
msgid "CycleAnalyticsStage|should be under a group"
msgstr ""
msgid "CycleAnalytics|%d project selected"
msgid_plural "CycleAnalytics|%d projects selected"
msgstr[0] ""
msgstr[1] ""
msgid "CycleAnalytics|%{projectCount} projects selected"
msgstr ""
msgid "CycleAnalytics|%{stageCount} stages selected"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment