aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx2
-rw-r--r--server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx5
-rw-r--r--server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/ProductNewsMenuItem-test.tsx.snap4
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties2
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<Props> {
{this.renderIconLink(
'https://blog.sonarsource.com/product/SonarCloud',
'sonarcloud-square-logo.svg',
- translate('embed_docs.news')
+ translate('embed_docs.blog')
)}
</li>
<li>
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<Props, State> {
<a className="rich-item new-loading">
<div className="flex-1">
<div className="display-inline-flex-center">
- <h4>Latest news</h4>
+ <h4>{translate('embed_docs.latest_blog')}</h4>
<span className="note spacer-left">
<PlaceholderBar color="#aaa" width={60} />
</span>
@@ -111,7 +112,7 @@ export class ProductNewsMenuItem extends React.PureComponent<Props, State> {
<a className="rich-item" href={link + news.uid} rel="noopener noreferrer" target="_blank">
<div className="flex-1">
<div className="display-inline-flex-center">
- <h4>Latest news</h4>
+ <h4>{translate('embed_docs.latest_blog')}</h4>
<DateFormatter date={news.last_publication_date}>
{formattedDate => <span className="note spacer-left">{formattedDate}</span>}
</DateFormatter>
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"
>
<h4>
- Latest news
+ embed_docs.latest_blog
</h4>
<span
className="note spacer-left"
@@ -76,7 +76,7 @@ exports[`should load the product news 2`] = `
className="display-inline-flex-center"
>
<h4>
- Latest news
+ embed_docs.latest_blog
</h4>
<DateFormatter
date="2018-04-06T12:07:19+0000"
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index f7aef728713..50e0980f157 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -2686,8 +2686,10 @@ organization.change_visibility_form.submit=Change Default Visibility
#
#------------------------------------------------------------------------------
embed_docs.analyze_new_project=Analyze New Project
+embed_docs.blog=Blog
embed_docs.documentation=Documentation
embed_docs.get_help=Get Help
+embed_docs.latest_blog=Latest blog
embed_docs.news=Product News
embed_docs.stay_connected=Stay Connected
embed_docs.suggestion=Suggestions For This Page