From 3036199cfc21350935275cde7fccd555592e9dec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Thu, 13 Dec 2018 15:30:23 +0100 Subject: [PATCH] SONARCLOUD-269 Update help menu labels --- .../js/app/components/embed-docs-modal/EmbedDocsPopup.tsx | 2 +- .../app/components/embed-docs-modal/ProductNewsMenuItem.tsx | 5 +++-- .../__snapshots__/ProductNewsMenuItem-test.tsx.snap | 4 ++-- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx index b191d8879d9..0e77ff77bf4 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx @@ -94,7 +94,7 @@ export default class EmbedDocsPopup extends React.PureComponent { {this.renderIconLink( 'https://blog.sonarsource.com/product/SonarCloud', 'sonarcloud-square-logo.svg', - translate('embed_docs.news') + translate('embed_docs.blog') )}
  • diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx b/server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx index a2565b563f7..6cc52734182 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx @@ -24,6 +24,7 @@ import { getGlobalSettingValue, Store } from '../../../store/rootReducer'; import DateFormatter from '../../../components/intl/DateFormatter'; import ChevronRightIcon from '../../../components/icons-components/ChevronRightcon'; import PlaceholderBar from '../../../components/ui/PlaceholderBar'; +import { translate } from '../../../helpers/l10n'; interface OwnProps { tag?: string; @@ -79,7 +80,7 @@ export class ProductNewsMenuItem extends React.PureComponent {
    -

    Latest news

    +

    {translate('embed_docs.latest_blog')}

    @@ -111,7 +112,7 @@ export class ProductNewsMenuItem extends React.PureComponent {
    -

    Latest news

    +

    {translate('embed_docs.latest_blog')}

    {formattedDate => {formattedDate}} diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/ProductNewsMenuItem-test.tsx.snap b/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/ProductNewsMenuItem-test.tsx.snap index ef063ef9eeb..2cd910101ba 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/ProductNewsMenuItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/ProductNewsMenuItem-test.tsx.snap @@ -11,7 +11,7 @@ exports[`should load the product news 1`] = ` className="display-inline-flex-center" >

    - Latest news + embed_docs.latest_blog

    - Latest news + embed_docs.latest_blog