]> source.dussan.org Git - sonarqube.git/commitdiff
fix analysis message
authorStas Vilchik <stas.vilchik@sonarsource.com>
Wed, 26 Jul 2017 09:25:08 +0000 (11:25 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 31 Jul 2017 09:27:51 +0000 (11:27 +0200)
server/sonar-web/src/main/js/apps/overview/events/AnalysesList.js
server/sonar-web/src/main/js/apps/overview/events/Analysis.js
server/sonar-web/src/main/js/apps/overview/meta/Meta.js
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index c1b78936fce033c3071aa50a0212ad5779291394..a52e8fc6a74e573d5128059558b3d23682e73f4f 100644 (file)
@@ -31,6 +31,7 @@ import type { History, Metric } from '../types';
 type Props = {
   history: ?History,
   project: string,
+  qualifier: string,
   router: { replace: ({ pathname: string, query?: {} }) => void }
 };
 
@@ -85,7 +86,9 @@ export default class AnalysesList extends React.PureComponent {
 
     return (
       <ul className="spacer-top">
-        {analyses.map(analysis => <Analysis key={analysis.key} analysis={analysis} />)}
+        {analyses.map(analysis =>
+          <Analysis key={analysis.key} analysis={analysis} qualifier={this.props.qualifier} />
+        )}
       </ul>
     );
   }
index ba7fc7715d153d233266f120a6667bc9c7194759..ccd0ac4df7d4e9351f05ab462a33687c6d2f6fde 100644 (file)
@@ -25,7 +25,12 @@ import FormattedDate from '../../../components/ui/FormattedDate';
 import { translate } from '../../../helpers/l10n';
 import type { Analysis as AnalysisType, Event as EventType } from '../../projectActivity/types';
 
-export default function Analysis(props: { analysis: AnalysisType }) {
+type Props = {
+  analysis: AnalysisType,
+  qualifier: string
+};
+
+export default function Analysis(props: Props) {
   const { analysis } = props;
   const sortedEvents: Array<EventType> = sortBy(
     analysis.events,
@@ -48,7 +53,7 @@ export default function Analysis(props: { analysis: AnalysisType }) {
             {sortedEvents.map(event => <Event event={event} key={event.key} />)}
           </div>
         : <span className="note">
-            {translate('project_activity.project_analyzed')}
+            {translate('project_activity.analyzed', props.qualifier)}
           </span>}
     </li>
   );
index 689db65fbed3d0c300321496797da40a8ca2e0c7..fd849228480747cde20c2bbb79a2aa56db93e310 100644 (file)
@@ -56,7 +56,12 @@ const Meta = ({ component, history, measures, areThereCustomOrganizations, route
       {isProject && <MetaTags component={component} />}
 
       {(isProject || isApplication) &&
-        <AnalysesList project={component.key} history={history} router={router} />}
+        <AnalysesList
+          project={component.key}
+          qualifier={component.qualifier}
+          history={history}
+          router={router}
+        />}
 
       {shouldShowQualityGate &&
         <MetaQualityGate
index d80ae93f259acecc0e519feaf6ec62454f9b4876..afa2dbcbfcd97ffaeedae417e979ed944dc53cc7 100644 (file)
@@ -1286,7 +1286,8 @@ manual_rules.add_manual_rule=Add Manual Rule
 
 project_activity.analysis=Analysis
 project_activity.add_version=Create Version
-project_activity.project_analyzed=Project Analyzed
+project_activity.analyzed.TRK=Project Analyzed
+project_activity.analyzed.APP=Application Analyzed
 project_activity.remove_version=Remove Version
 project_activity.remove_version.question=Are you sure you want to delete this version?
 project_activity.change_version=Change Version