-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust language notice for non admins #389
Adjust language notice for non admins #389
Conversation
…nd change language notice accordingly
@@ -145,6 +145,45 @@ class ContentAnalysis extends React.Component { | |||
} ); | |||
} | |||
|
|||
/** | |||
* Render the language notice. Provides a link to a setting page in case of administrator, a notice to contact an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renders
renderLanguageNotice() { | ||
let showLanguageNotice = this.props.showLanguageNotice; | ||
let canChangeLanguage = this.props.canChangeLanguage; | ||
if( ! showLanguageNotice ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space after if
if( ! showLanguageNotice ) { | ||
return null; | ||
} | ||
if( canChangeLanguage ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space after if
id="content-analysis.language-notice" | ||
defaultMessage="Your site language is set to {language}." | ||
values={ { language: <strong>{ this.props.language }</strong> } } /> | ||
{ " " } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: instead of explicitly using a space, I'd consider to use a translatable string that merges the 2 existing ones
CR done 👍 |
Acceptance done |
Added * Made it possible to pass the heading level of the `analysisCollapsible`s as a prop to the `ContentAnalysis`. #388 * Added a language notice in the content analysis for non-admin users that cannot change the language. #389 Fixed - Avoid to fully re-render the `AnalyisisCollapsible` component to improve accessibility #386 - Fixed alignment of icons and text in the `ContentAnalysis` component. #390
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
Fixes #384