From: Grégoire Aubert Date: Thu, 13 Dec 2018 14:30:23 +0000 (+0100) Subject: SONARCLOUD-269 Update help menu labels X-Git-Tag: 7.6~231 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3036199cfc21350935275cde7fccd555592e9dec;p=sonarqube.git SONARCLOUD-269 Update help menu labels --- 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