]> source.dussan.org Git - sonarqube.git/commitdiff
SONARCLOUD-269 Update help menu labels
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 13 Dec 2018 14:30:23 +0000 (15:30 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 20 Dec 2018 10:41:51 +0000 (11:41 +0100)
server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/ProductNewsMenuItem.tsx
server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/ProductNewsMenuItem-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index b191d8879d93691373ae195203d3ccaf307152d8..0e77ff77bf4df0183cd10cc816812141876600cc 100644 (file)
@@ -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>
index a2565b563f74c4ce1dbef838c245bf622ede4432..6cc527341825fde65ce79988cb1af488b93af3cf 100644 (file)
@@ -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>
index ef063ef9eeb244c969afb35ab25a67e035e62469..2cd910101ba404330c4353f589e89141b8b8635c 100644 (file)
@@ -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"
index f7aef72871354dc99e6711ad8e847090813acf8a..50e0980f15727e08896453868ad3f405444f26c0 100644 (file)
@@ -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