From 29168ab9565bcc29a752a58efb3c09848f7b2b03 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Tue, 5 Nov 2024 18:07:01 +0100 Subject: [PATCH] SONAR-23596 New branding SONAR-23597 SONAR-23598 SONAR-23595 --- .../config/jest/SetupFailOnConsole.ts | 3 + server/sonar-web/package.json | 2 +- .../public/images/SonarLint-connection-ok.png | Bin 6308 -> 0 bytes .../images/SonarLint-connection-request.png | Bin 6605 -> 0 bytes server/sonar-web/public/images/sq-sl.svg | 1 - .../main/js/app/components/AdminContainer.tsx | 10 +- .../js/app/components/ComponentContainer.tsx | 10 +- .../js/app/components/SonarLintConnection.tsx | 23 +- .../__tests__/AdminContainer-test.tsx | 8 + .../__tests__/GlobalFooter-test.tsx | 10 +- .../IndexationNotificationRenderer.tsx | 1 - .../PageUnavailableDueToIndexation.tsx | 8 +- .../branch-like/BranchHelpTooltip.tsx | 13 +- .../components/nav/global/GlobalNavMore.tsx | 4 +- .../nav/global/MainSonarQubeBar.tsx | 6 +- .../PromotionNotification.tsx | 12 +- server/sonar-web/src/main/js/app/index.ts | 13 +- .../src/main/js/apps/account/Account.tsx | 11 +- .../components/__tests__/AuditApp-it.tsx | 8 + .../__tests__/CodingRuleDetails-it.ts | 11 +- .../coding-rules/__tests__/CodingRules-it.ts | 8 + .../coding-rules/__tests__/CustomRule-it.ts | 8 + .../components/CodingRulesApp.tsx | 8 +- .../create/project/__tests__/Azure-it.tsx | 9 - .../create/project/__tests__/Bitbucket-it.tsx | 9 - .../create/project/__tests__/GitLab-it.tsx | 10 - .../__tests__/MonorepoProjectCreate-it.tsx | 4 - .../js/apps/issues/__tests__/IssuesApp-it.tsx | 6 +- .../apps/issues/components/IssueDetails.tsx | 11 +- .../js/apps/issues/components/IssueHeader.tsx | 2 +- .../js/apps/issues/components/TotalEffort.tsx | 2 - .../components/BranchListRow.tsx | 11 +- ...ewCodeDefinitionSettingReferenceBranch.tsx | 13 +- .../ProjectNewCodeDefinitionApp-it.tsx | 1 + .../components/project-card/ProjectCard.tsx | 1 - .../js/apps/quality-gates/components/App.tsx | 10 +- .../components/ProfileContainer.tsx | 11 +- .../js/apps/sessions/components/Login.tsx | 15 +- .../js/apps/settings/__tests__/utils-test.ts | 8 + .../components/__tests__/SystemApp-it.tsx | 6 +- .../SonarQubeConnectionIllustration.tsx | 199 ++++++++++++ .../SonarQubeIDEPromotionIllustration.tsx | 107 +++++++ .../branding/SonarQubeProductLogo.tsx | 38 +++ .../SonarQubeConnectionIllustration-test.tsx | 39 +++ ...arQubeConnectionIllustration-test.tsx.snap | 189 +++++++++++ .../embed-docs-modal/EmbedDocsPopup.tsx | 53 +--- .../js/components/intl/TranslatedMessage.tsx | 28 ++ .../js/components/shared/AppVersionStatus.tsx | 5 +- .../RepositoryVariables.tsx | 2 +- .../GithubCFamilyExampleRepositories.tsx | 2 +- .../tutorials/github-action/SecretStep.tsx | 2 +- .../js/components/tutorials/test-utils.ts | 8 +- .../upgrade/SystemUpgradeButton.tsx | 2 +- .../main/js/helpers/__tests__/l10n-test.ts | 32 +- .../js/helpers/__tests__/l10nBundle-test.ts | 11 +- .../js/helpers/__tests__/measures-test.ts | 8 + server/sonar-web/src/main/js/helpers/l10n.ts | 9 +- .../src/main/js/helpers/l10nBundle.ts | 26 +- .../helpers/__tests__/measures-test.ts | 13 +- server/sonar-web/yarn.lock | 68 ++-- .../resources/org/sonar/l10n/core.properties | 297 +++++++++--------- 61 files changed, 1078 insertions(+), 367 deletions(-) delete mode 100644 server/sonar-web/public/images/SonarLint-connection-ok.png delete mode 100644 server/sonar-web/public/images/SonarLint-connection-request.png delete mode 100644 server/sonar-web/public/images/sq-sl.svg create mode 100644 server/sonar-web/src/main/js/components/branding/SonarQubeConnectionIllustration.tsx create mode 100644 server/sonar-web/src/main/js/components/branding/SonarQubeIDEPromotionIllustration.tsx create mode 100644 server/sonar-web/src/main/js/components/branding/SonarQubeProductLogo.tsx create mode 100644 server/sonar-web/src/main/js/components/branding/__tests__/SonarQubeConnectionIllustration-test.tsx create mode 100644 server/sonar-web/src/main/js/components/branding/__tests__/__snapshots__/SonarQubeConnectionIllustration-test.tsx.snap create mode 100644 server/sonar-web/src/main/js/components/intl/TranslatedMessage.tsx diff --git a/server/sonar-web/config/jest/SetupFailOnConsole.ts b/server/sonar-web/config/jest/SetupFailOnConsole.ts index 182cafd7e37..251becf1978 100644 --- a/server/sonar-web/config/jest/SetupFailOnConsole.ts +++ b/server/sonar-web/config/jest/SetupFailOnConsole.ts @@ -22,6 +22,9 @@ import failOnConsole from 'jest-fail-on-console'; const IGNORED_ERROR_MESSAGES: string[] = [ // react-virtualized & react-draggable use `findDOMNode` which is deprecated 'findDOMNode is deprecated and will be removed in the next major release', + + // react-intl warning + '[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.', ]; failOnConsole({ diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index cba1b568d50..cdc60b42ce7 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -10,7 +10,7 @@ "@primer/octicons-react": "19.11.0", "@react-spring/rafz": "9.7.4", "@react-spring/web": "9.7.4", - "@sonarsource/echoes-react": "0.9.0", + "@sonarsource/echoes-react": "0.10.1", "@tanstack/react-query": "5.56.2", "@types/validator": "13.12.2", "axios": "1.7.7", diff --git a/server/sonar-web/public/images/SonarLint-connection-ok.png b/server/sonar-web/public/images/SonarLint-connection-ok.png deleted file mode 100644 index e4071d0e2f0964c2c654ecc23f4d4ff2d708996a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6308 zcmV;V7+dFwP)QgXq)g&nX*#>8#+8tXP)#rd6$mjmP^uGhyfy~?<9a|) zfe>>8#2q1TpRf$^A+ZotAjI6j5JIj!Ld*>aA!N@GVs0P^A$yJxa|1vKSssL#>lq_J2h}jK15ws9;-66#6 zCbbc?5OUoj+NNsA8@uN*KlxLq`=@jmg(bt@6+*5DgqUkVb%MUH)txw;aZ(7mj`3K` zl`h$4QoT=h z8OOHqjZ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zT46f}Ra~skySjP``@k0+WCB^`j6lu$xdRs*8JlgXZKV$eij5HOHKU>ra1(ur&(ecF zpJm1*rBbv&8UWn+Ja(U}j|WCYYC{rKLLZ@8-F-wTWVJ9GY@i zXd<;BvI8Ccp%Z%`Z1W%|I5xvR-)-4jE}i)hN?1!`uB z!*b*^?0`(5Uxk1#`Scb{Vz$N{I;Q(;*ta8{?6!8M+hjP4YYG{yCa-ZN9gDbIn2TWe zgXbdAhps-LKEj|WF6s$PURDFVDH0#t^}~4(T3g*yx4g$WM2>^<-WuEj58IGz z9+d3)u;c!X4MgT8kO_PD?ma`FYX*kEV55@H28MqvIYaGf732Q{3wEte8n(;I00000 LNkvXXu0mjfNXpqo diff --git a/server/sonar-web/public/images/sq-sl.svg b/server/sonar-web/public/images/sq-sl.svg deleted file mode 100644 index 76860987bdd..00000000000 --- a/server/sonar-web/public/images/sq-sl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/server/sonar-web/src/main/js/app/components/AdminContainer.tsx b/server/sonar-web/src/main/js/app/components/AdminContainer.tsx index faa3e3c4fa3..65e122d5618 100644 --- a/server/sonar-web/src/main/js/app/components/AdminContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/AdminContainer.tsx @@ -26,7 +26,8 @@ import { getSettingsNavigation } from '../../api/navigation'; import { getPendingPlugins } from '../../api/plugins'; import { getSystemStatus, waitSystemUPStatus } from '../../api/system'; import handleRequiredAuthorization from '../../app/utils/handleRequiredAuthorization'; -import { translate, translateWithParameters } from '../../helpers/l10n'; +import { translate } from '../../helpers/l10n'; +import { getIntl } from '../../helpers/l10nBundle'; import { AdminPagesContext } from '../../types/admin'; import { AppState } from '../../types/appstate'; import { PendingPluginResult } from '../../types/plugins'; @@ -46,6 +47,7 @@ interface State { } export class AdminContainer extends React.PureComponent { + intl = getIntl(); mounted = false; portalAnchor: Element | null = null; state: State = { @@ -129,9 +131,9 @@ export class AdminContainer extends React.PureComponent {this.portalAnchor && diff --git a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx index 34913e58aff..31fb9b35a42 100644 --- a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx @@ -22,6 +22,7 @@ import { differenceBy } from 'lodash'; import * as React from 'react'; import { createPortal } from 'react-dom'; import { Helmet } from 'react-helmet-async'; +import { useIntl } from 'react-intl'; import { Outlet } from 'react-router-dom'; import { CenteredLayout, Spinner } from '~design-system'; import { useLocation, useRouter } from '~sonar-aligned/components/hoc/withRouter'; @@ -31,7 +32,6 @@ import { validateProjectAlmBinding } from '../../api/alm-settings'; import { getTasksForComponent } from '../../api/ce'; import { getComponentData } from '../../api/components'; import { getComponentNavigation } from '../../api/navigation'; -import { translateWithParameters } from '../../helpers/l10n'; import { HttpStatus } from '../../helpers/request'; import { getPortfolioUrl, getProjectUrl, getPullRequestUrl } from '../../helpers/urls'; import { useCurrentBranchQuery } from '../../queries/branch'; @@ -63,6 +63,8 @@ function ComponentContainer({ hasFeature }: Readonly } = useLocation(); const router = useRouter(); + const intl = useIntl(); + const [component, setComponent] = React.useState(); const [currentTask, setCurrentTask] = React.useState(); const [tasksInProgress, setTasksInProgress] = React.useState(); @@ -285,9 +287,9 @@ function ComponentContainer({ hasFeature }: Readonly
{component && diff --git a/server/sonar-web/src/main/js/app/components/SonarLintConnection.tsx b/server/sonar-web/src/main/js/app/components/SonarLintConnection.tsx index cce2c4419d6..106ca9b1439 100644 --- a/server/sonar-web/src/main/js/app/components/SonarLintConnection.tsx +++ b/server/sonar-web/src/main/js/app/components/SonarLintConnection.tsx @@ -33,6 +33,7 @@ import { Title, } from '~design-system'; import { Image } from '~sonar-aligned/components/common/Image'; +import { SonarQubeConnectionIllustration } from '../../components/branding/SonarQubeConnectionIllustration'; import { whenLoggedIn } from '../../components/hoc/whenLoggedIn'; import { translate, translateWithParameters } from '../../helpers/l10n'; import { generateSonarLintUserToken, portIsValid, sendUserToken } from '../../helpers/sonarlint'; @@ -88,13 +89,9 @@ export function SonarLintConnection({ currentUser }: Readonly) { {status === Status.request && ( <> {translate('sonarlint-connection.request.title')} - sonarlint-connection-request +

- {translateWithParameters('sonarlint-connection.request.description', ideName)} +

{translate('sonarlint-connection.request.description2')}

@@ -110,7 +107,7 @@ export function SonarLintConnection({ currentUser }: Readonly) { {status === Status.tokenError && ( <> - sonarlint-token-error + {translate('sonarlint-connection.token-error.title')}

{translate('sonarlint-connection.token-error.description')}

@@ -131,11 +128,7 @@ export function SonarLintConnection({ currentUser }: Readonly) { {status === Status.tokenCreated && newToken && ( <> - sonarlint-connection-error + {translate('sonarlint-connection.connection-error.title')}

{translate('sonarlint-connection.connection-error.description')} @@ -167,11 +160,7 @@ export function SonarLintConnection({ currentUser }: Readonly) { {status === Status.tokenSent && newToken && ( <> {translate('sonarlint-connection.success.title')} - sonarlint-connection-success +

{translateWithParameters('sonarlint-connection.success.description', newToken.name)}

diff --git a/server/sonar-web/src/main/js/app/components/__tests__/AdminContainer-test.tsx b/server/sonar-web/src/main/js/app/components/__tests__/AdminContainer-test.tsx index 54ed12766d7..8dc51f4ca7c 100644 --- a/server/sonar-web/src/main/js/app/components/__tests__/AdminContainer-test.tsx +++ b/server/sonar-web/src/main/js/app/components/__tests__/AdminContainer-test.tsx @@ -29,6 +29,14 @@ import { AdminPagesContext } from '../../../types/admin'; import { AdminContainer, AdminContainerProps } from '../AdminContainer'; import AdminContext from '../AdminContext'; +jest.mock('../../../helpers/l10nBundle', () => { + const bundle = jest.requireActual('../../../helpers/l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn() }), + }; +}); + jest.mock('../../../api/navigation', () => ({ getSettingsNavigation: jest .fn() diff --git a/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooter-test.tsx b/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooter-test.tsx index 70e84d95c97..b9976eb3e21 100644 --- a/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooter-test.tsx +++ b/server/sonar-web/src/main/js/app/components/__tests__/GlobalFooter-test.tsx @@ -35,15 +35,15 @@ afterEach(() => { }); it('should render the logged-in information', async () => { - renderGlobalFooter(); + renderGlobalFooter({}, { edition: EditionKey.community }); expect(ui.databaseWarningMessage.query()).not.toBeInTheDocument(); expect(ui.footerListItems.getAll()).toHaveLength(7); expect(byText('Community Edition').get()).toBeInTheDocument(); - expect(ui.versionLabel('4.2').get()).toBeInTheDocument(); - expect(await ui.ltaDocumentationLinkActive.find()).toBeInTheDocument(); + expect(await ui.versionLabel('4.2').find()).toBeInTheDocument(); + expect(ui.ltaDocumentationLinkActive.query()).not.toBeInTheDocument(); expect(ui.apiLink.get()).toBeInTheDocument(); }); @@ -85,7 +85,7 @@ it('should not render missing logged-in information', () => { }); it('should not render the logged-in information', () => { - renderGlobalFooter({ hideLoggedInInfo: true }); + renderGlobalFooter({ hideLoggedInInfo: true }, { edition: EditionKey.community }); expect(ui.databaseWarningMessage.query()).not.toBeInTheDocument(); @@ -109,7 +109,7 @@ function renderGlobalFooter( return renderComponent(, '/', { appState: mockAppState({ productionDatabase: true, - edition: EditionKey.community, + edition: EditionKey.developer, version: '4.2', ...appStateOverride, }), diff --git a/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx b/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx index c1a7473aa79..be82875356e 100644 --- a/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx +++ b/server/sonar-web/src/main/js/app/components/indexation/IndexationNotificationRenderer.tsx @@ -156,7 +156,6 @@ function renderInProgressBanner(completedCount: number, total: number) { { componentDidUpdate() { @@ -41,17 +40,14 @@ export class PageUnavailableDueToIndexation extends React.PureComponent - {translate('indexation.page_unavailable.description')} + - {translate('learn_more')} + ), }} diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/BranchHelpTooltip.tsx b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/BranchHelpTooltip.tsx index 3f72585ddc7..062673766cf 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/BranchHelpTooltip.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/BranchHelpTooltip.tsx @@ -19,11 +19,12 @@ */ import { Link } from '@sonarsource/echoes-react'; +import { useIntl } from 'react-intl'; import { HelperHintIcon } from '~design-system'; import DocHelpTooltip from '~sonar-aligned/components/controls/DocHelpTooltip'; import HelpTooltip from '~sonar-aligned/components/controls/HelpTooltip'; import { DocLink } from '../../../../../helpers/doc-links'; -import { translate, translateWithParameters } from '../../../../../helpers/l10n'; +import { translate } from '../../../../../helpers/l10n'; import { getApplicationAdminUrl } from '../../../../../helpers/urls'; import { useProjectBindingQuery } from '../../../../../queries/devops-integration'; import { AlmKeys } from '../../../../../types/alm-settings'; @@ -48,6 +49,8 @@ export default function BranchHelpTooltip({ const { data: projectBinding } = useProjectBindingQuery(component.key); const isGitLab = projectBinding != null && projectBinding.alm === AlmKeys.GitLab; + const intl = useIntl(); + if (isApplication) { if (!hasManyBranches && canAdminComponent) { return ( @@ -72,9 +75,11 @@ export default function BranchHelpTooltip({ - {translate('more')} + diff --git a/server/sonar-web/src/main/js/app/components/nav/global/MainSonarQubeBar.tsx b/server/sonar-web/src/main/js/app/components/nav/global/MainSonarQubeBar.tsx index dc200ed30e2..5a642219a17 100644 --- a/server/sonar-web/src/main/js/app/components/nav/global/MainSonarQubeBar.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/global/MainSonarQubeBar.tsx @@ -18,9 +18,11 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { LogoSize } from '@sonarsource/echoes-react'; import * as React from 'react'; -import { MainAppBar, SonarQubeLogo } from '~design-system'; +import { MainAppBar } from '~design-system'; import { Image } from '~sonar-aligned/components/common/Image'; +import { SonarQubeProductLogo } from '../../../../components/branding/SonarQubeProductLogo'; import { translate } from '../../../../helpers/l10n'; import { GlobalSettingKeys } from '../../../../types/settings'; import { AppStateContext } from '../../app-state/AppStateContext'; @@ -41,7 +43,7 @@ function LogoWithAriaText() { {customLogoUrl ? ( {title} ) : ( - + )}
); diff --git a/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx b/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx index 9e828b956e3..8bf0ca1a0f9 100644 --- a/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx +++ b/server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx @@ -19,11 +19,11 @@ */ import styled from '@emotion/styled'; -import { Button } from '@sonarsource/echoes-react'; +import { Button, Theme, ThemeProvider } from '@sonarsource/echoes-react'; import * as React from 'react'; import { ButtonPrimary, themeBorder, themeColor } from '~design-system'; -import { Image } from '~sonar-aligned/components/common/Image'; import { dismissNotice } from '../../../api/users'; +import { SonarQubeIDEPromotionIllustration } from '../../../components/branding/SonarQubeIDEPromotionIllustration'; import { translate } from '../../../helpers/l10n'; import { NoticeType, isLoggedIn } from '../../../types/users'; import { CurrentUserContextInterface } from '../current-user/CurrentUserContext'; @@ -48,9 +48,11 @@ export function PromotionNotification(props: CurrentUserContextInterface) { return ( -
- SonarQube + SonarLint -
+ +
+ +
+
{translate('promotion.sonarlint.title')}

{translate('promotion.sonarlint.content')}

diff --git a/server/sonar-web/src/main/js/app/index.ts b/server/sonar-web/src/main/js/app/index.ts index 8ad4712c238..e1b81ebe273 100644 --- a/server/sonar-web/src/main/js/app/index.ts +++ b/server/sonar-web/src/main/js/app/index.ts @@ -52,10 +52,17 @@ async function initApplication() { }, ); - const [l10nBundle, currentUser, appState, availableFeatures] = await Promise.all([ - loadL10nBundle(), + const appState = isMainApp() + ? await getGlobalNavigation().catch((error) => { + // eslint-disable-next-line no-console + console.error(error); + return undefined; + }) + : undefined; + + const [l10nBundle, currentUser, availableFeatures] = await Promise.all([ + loadL10nBundle(appState), isMainApp() ? getCurrentUser() : undefined, - isMainApp() ? getGlobalNavigation() : undefined, isMainApp() ? getAvailableFeatures() : undefined, ]).catch((error) => { // eslint-disable-next-line no-console diff --git a/server/sonar-web/src/main/js/apps/account/Account.tsx b/server/sonar-web/src/main/js/apps/account/Account.tsx index 8f16428327c..8c7b227834c 100644 --- a/server/sonar-web/src/main/js/apps/account/Account.tsx +++ b/server/sonar-web/src/main/js/apps/account/Account.tsx @@ -21,11 +21,12 @@ import * as React from 'react'; import { createPortal } from 'react-dom'; import { Helmet } from 'react-helmet-async'; +import { useIntl } from 'react-intl'; import { Outlet } from 'react-router-dom'; import { LargeCenteredLayout, PageContentFontWrapper, TopBar } from '~design-system'; import A11ySkipTarget from '~sonar-aligned/components/a11y/A11ySkipTarget'; import { useCurrentLoginUser } from '../../app/components/current-user/CurrentUserContext'; -import { translate, translateWithParameters } from '../../helpers/l10n'; +import { translate } from '../../helpers/l10n'; import Nav from './components/Nav'; import UserCard from './components/UserCard'; @@ -33,6 +34,8 @@ export default function Account() { const currentUser = useCurrentLoginUser(); const [portalAnchor, setPortalAnchor] = React.useState(null); + const intl = useIntl(); + // Set portal anchor on mount React.useEffect(() => { setPortalAnchor(document.getElementById('component-nav-portal')); @@ -61,9 +64,9 @@ export default function Account() { diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/AuditApp-it.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/AuditApp-it.tsx index 889e943b41f..daf9032ca96 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/AuditApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/AuditApp-it.tsx @@ -53,6 +53,14 @@ jest.mock('../../../../helpers/dates', () => { }; }); +jest.mock('../../../../helpers/l10nBundle', () => { + const bundle = jest.requireActual('../../../../helpers/l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn(({ id }) => `${id}`) }), + }; +}); + const ui = { pageTitle: byRole('heading', { name: 'audit_logs.page' }), downloadButton: byRole('link', { name: 'download_verb' }), diff --git a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRuleDetails-it.ts b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRuleDetails-it.ts index 37916c840b0..d59b743fc31 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRuleDetails-it.ts +++ b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRuleDetails-it.ts @@ -36,6 +36,15 @@ import { getPageObjects, renderCodingRulesApp } from '../utils-tests'; const rulesHandler = new CodingRulesServiceMock(); const settingsHandler = new SettingsServiceMock(); + +jest.mock('../../../helpers/l10nBundle', () => { + const bundle = jest.requireActual('../../../helpers/l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn() }), + }; +}); + afterEach(() => { settingsHandler.reset(); rulesHandler.reset(); @@ -53,7 +62,7 @@ describe('rendering', () => { expect(ui.ruleCleanCodeAttribute(CleanCodeAttribute.Clear).get()).toBeInTheDocument(); // 1 In Rule details + 1 in facet expect(ui.ruleSoftwareQuality(SoftwareQuality.Maintainability).getAll()).toHaveLength(2); - expect(document.title).toEqual('page_title.template.with_category.coding_rules.page'); + expect(document.title).toEqual('coding_rule.page.Java.Awsome java rule'); expect(screen.getByText('Why')).toBeInTheDocument(); expect(screen.getByText('Because')).toBeInTheDocument(); diff --git a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts index a68adfaaf8b..7e61a2f7aa9 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts +++ b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CodingRules-it.ts @@ -38,6 +38,14 @@ import { getPageObjects, renderCodingRulesApp } from '../utils-tests'; const rulesHandler = new CodingRulesServiceMock(); const settingsHandler = new SettingsServiceMock(); +jest.mock('../../../helpers/l10nBundle', () => { + const bundle = jest.requireActual('../../../helpers/l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn() }), + }; +}); + afterEach(() => { rulesHandler.reset(); settingsHandler.reset(); diff --git a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CustomRule-it.ts b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CustomRule-it.ts index 0deaa28759c..73cbba1cfcc 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CustomRule-it.ts +++ b/server/sonar-web/src/main/js/apps/coding-rules/__tests__/CustomRule-it.ts @@ -28,6 +28,14 @@ import { getPageObjects, renderCodingRulesApp } from '../utils-tests'; const rulesHandler = new CodingRulesServiceMock(); const settingsHandler = new SettingsServiceMock(); +jest.mock('../../../helpers/l10nBundle', () => { + const bundle = jest.requireActual('../../../helpers/l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn() }), + }; +}); + afterEach(() => { rulesHandler.reset(); settingsHandler.reset(); diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/CodingRulesApp.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/CodingRulesApp.tsx index 1625138526e..77c670e76be 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/CodingRulesApp.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/CodingRulesApp.tsx @@ -45,6 +45,7 @@ import { DocLink } from '../../../helpers/doc-links'; import { isInput, isShortcut } from '../../../helpers/keyboardEventHelpers'; import { KeyboardKeys } from '../../../helpers/keycodes'; import { translate, translateWithParameters } from '../../../helpers/l10n'; +import { getIntl } from '../../../helpers/l10nBundle'; import { SecurityStandard } from '../../../types/security'; import { SettingsKey } from '../../../types/settings'; import { Dict, Paging, Rule, RuleActivation } from '../../../types/types'; @@ -103,6 +104,7 @@ interface State { const RULE_LIST_HEADER_HEIGHT = 68; export class CodingRulesApp extends React.PureComponent { + intl = getIntl(); mounted = false; constructor(props: Props) { @@ -574,9 +576,9 @@ export class CodingRulesApp extends React.PureComponent { ) : ( diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/Azure-it.tsx b/server/sonar-web/src/main/js/apps/create/project/__tests__/Azure-it.tsx index 139b9a7fbdb..2afc4120eb6 100644 --- a/server/sonar-web/src/main/js/apps/create/project/__tests__/Azure-it.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/Azure-it.tsx @@ -60,13 +60,7 @@ const ui = { }), }; -const original = window.location; - beforeAll(() => { - Object.defineProperty(window, 'location', { - configurable: true, - value: { replace: jest.fn() }, - }); almIntegrationHandler = new AlmIntegrationsServiceMock(); dopTranslationHandler = new DopTranslationServiceMock(); newCodePeriodHandler = new NewCodeDefinitionServiceMock(); @@ -78,9 +72,6 @@ beforeEach(() => { dopTranslationHandler.reset(); newCodePeriodHandler.reset(); }); -afterAll(() => { - Object.defineProperty(window, 'location', { configurable: true, value: original }); -}); it('should ask for PAT when it is not set yet and show the import project feature afterwards', async () => { const user = userEvent.setup(); diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/Bitbucket-it.tsx b/server/sonar-web/src/main/js/apps/create/project/__tests__/Bitbucket-it.tsx index d3ee2e65328..2bee7a314df 100644 --- a/server/sonar-web/src/main/js/apps/create/project/__tests__/Bitbucket-it.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/Bitbucket-it.tsx @@ -55,13 +55,8 @@ const ui = { }), instanceSelector: byLabelText(/alm.configuration.selector.label/), }; -const original = window.location; beforeAll(() => { - Object.defineProperty(window, 'location', { - configurable: true, - value: { replace: jest.fn() }, - }); almIntegrationHandler = new AlmIntegrationsServiceMock(); dopTranslationHandler = new DopTranslationServiceMock(); newCodePeriodHandler = new NewCodeDefinitionServiceMock(); @@ -74,10 +69,6 @@ beforeEach(() => { newCodePeriodHandler.reset(); }); -afterAll(() => { - Object.defineProperty(window, 'location', { configurable: true, value: original }); -}); - it('should ask for PAT when it is not set yet and show the import project feature afterwards', async () => { const user = userEvent.setup(); renderCreateProject(); diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/GitLab-it.tsx b/server/sonar-web/src/main/js/apps/create/project/__tests__/GitLab-it.tsx index ca52dfa93b4..20417f5162a 100644 --- a/server/sonar-web/src/main/js/apps/create/project/__tests__/GitLab-it.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/GitLab-it.tsx @@ -83,13 +83,7 @@ const ui = { globalSettingRadio: byRole('radio', { name: 'new_code_definition.global_setting' }), }; -const original = window.location; - beforeAll(() => { - Object.defineProperty(window, 'location', { - configurable: true, - value: { replace: jest.fn() }, - }); almIntegrationHandler = new AlmIntegrationsServiceMock(); dopTranslationHandler = new DopTranslationServiceMock(); newCodePeriodHandler = new NewCodeDefinitionServiceMock(); @@ -102,10 +96,6 @@ beforeEach(() => { newCodePeriodHandler.reset(); }); -afterAll(() => { - Object.defineProperty(window, 'location', { configurable: true, value: original }); -}); - it('should ask for PAT when it is not set yet and show the import project feature afterwards', async () => { const user = userEvent.setup(); renderCreateProject(); diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/MonorepoProjectCreate-it.tsx b/server/sonar-web/src/main/js/apps/create/project/__tests__/MonorepoProjectCreate-it.tsx index ce4a24d6a91..a608af96767 100644 --- a/server/sonar-web/src/main/js/apps/create/project/__tests__/MonorepoProjectCreate-it.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/MonorepoProjectCreate-it.tsx @@ -77,10 +77,6 @@ const ui = { }; beforeAll(() => { - Object.defineProperty(window, 'location', { - configurable: true, - value: { replace: jest.fn() }, - }); almIntegrationHandler = new AlmIntegrationsServiceMock(); almSettingsHandler = new AlmSettingsServiceMock(); componentsHandler = new ComponentsServiceMock(); diff --git a/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx b/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx index 051bdfb50ea..abf661e987b 100644 --- a/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx @@ -130,7 +130,7 @@ describe('issues app', () => { // Are rule headers present? expect(screen.getByRole('heading', { level: 1, name: 'Fix that' })).toBeInTheDocument(); - expect(screen.getByRole('link', { name: 'advancedRuleId' })).toBeInTheDocument(); + expect(screen.getByRole('link', { name: /^advancedRuleId/ })).toBeInTheDocument(); // Select the "why is this an issue" tab and check its content await user.click( @@ -182,7 +182,7 @@ describe('issues app', () => { // Are rule headers present? expect(screen.getByRole('heading', { level: 1, name: 'Fix this' })).toBeInTheDocument(); - expect(screen.getByRole('link', { name: 'simpleRuleId' })).toBeInTheDocument(); + expect(screen.getByRole('link', { name: /^simpleRuleId/ })).toBeInTheDocument(); // Select the "why is this an issue tab" and check its content await user.click( @@ -195,7 +195,7 @@ describe('issues app', () => { // Are rule headers present? expect(screen.getByRole('heading', { level: 1, name: 'Issue on file' })).toBeInTheDocument(); - expect(screen.getByRole('link', { name: 'simpleRuleId' })).toBeInTheDocument(); + expect(screen.getByRole('link', { name: /^simpleRuleId/ })).toBeInTheDocument(); // The "Where is the issue" tab should be selected by default. Check its content expect(screen.getAllByRole('button', { name: 'Issue on file' })).toHaveLength(2); // there will be 2 buttons one in concise issue and other in code viewer diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssueDetails.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssueDetails.tsx index b6f788ab3d0..0179cd64c9a 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssueDetails.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssueDetails.tsx @@ -21,6 +21,7 @@ import styled from '@emotion/styled'; import { Spinner } from '@sonarsource/echoes-react'; import { Helmet } from 'react-helmet-async'; +import { useIntl } from 'react-intl'; import { FlagMessage, LargeCenteredLayout, @@ -33,7 +34,7 @@ import ScreenPositionHelper from '../../../components/common/ScreenPositionHelpe import { IssueSuggestionCodeTab } from '../../../components/rules/IssueSuggestionCodeTab'; import IssueTabViewer from '../../../components/rules/IssueTabViewer'; import { fillBranchLike } from '../../../helpers/branch-like'; -import { translate, translateWithParameters } from '../../../helpers/l10n'; +import { translate } from '../../../helpers/l10n'; import { useRuleDetailsQuery } from '../../../queries/rules'; import A11ySkipTarget from '../../../sonar-aligned/components/a11y/A11ySkipTarget'; import { isPortfolioLike } from '../../../sonar-aligned/helpers/component'; @@ -82,6 +83,8 @@ export default function IssueDetails({ const { data: ruleData, isLoading: isLoadingRule } = useRuleDetailsQuery({ key: openIssue.rule }); const openRuleDetails = ruleData?.rule; + const intl = useIntl(); + const warning = !canBrowseAllChildProjects && isPortfolioLike(qualifier) && (

{translate('issues.page')}

diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx index 99d2cccca84..cc01e0de5f0 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssueHeader.tsx @@ -165,7 +165,7 @@ export default class IssueHeader extends React.PureComponent { {isExternal ? ( ({key}) ) : ( - + {key} )} diff --git a/server/sonar-web/src/main/js/apps/issues/components/TotalEffort.tsx b/server/sonar-web/src/main/js/apps/issues/components/TotalEffort.tsx index 155bbc8878b..4a2111cf2fe 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/TotalEffort.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/TotalEffort.tsx @@ -20,13 +20,11 @@ import { FormattedMessage } from 'react-intl'; import { formatMeasure } from '~sonar-aligned/helpers/measures'; -import { translate } from '../../../helpers/l10n'; export default function TotalEffort({ effort }: { effort: number }) { return (
{formatMeasure(effort, 'WORK_DUR')} }} /> diff --git a/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchListRow.tsx b/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchListRow.tsx index d14f7713ba4..c644d5e774c 100644 --- a/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchListRow.tsx +++ b/server/sonar-web/src/main/js/apps/projectNewCode/components/BranchListRow.tsx @@ -26,6 +26,7 @@ import { IconMoreVertical, Tooltip, } from '@sonarsource/echoes-react'; +import { useIntl } from 'react-intl'; import { ActionCell, Badge, @@ -97,6 +98,8 @@ function referenceBranchDoesNotExist( export default function BranchListRow(props: BranchListRowProps) { const { branch, existingBranches, inheritedSetting } = props; + const intl = useIntl(); + let settingWarning: string | undefined; if (branchInheritsItselfAsReference(branch, inheritedSetting)) { settingWarning = translateWithParameters( @@ -104,9 +107,11 @@ export default function BranchListRow(props: BranchListRowProps) { branch.name, ); } else if (referenceBranchDoesNotExist(branch, existingBranches)) { - settingWarning = translateWithParameters( - 'baseline.reference_branch.does_not_exist', - branch.newCodePeriod?.value ?? '', + settingWarning = intl.formatMessage( + { + id: 'baseline.reference_branch.does_not_exist', + }, + { branch: branch.newCodePeriod?.value ?? '' }, ); } diff --git a/server/sonar-web/src/main/js/apps/projectNewCode/components/NewCodeDefinitionSettingReferenceBranch.tsx b/server/sonar-web/src/main/js/apps/projectNewCode/components/NewCodeDefinitionSettingReferenceBranch.tsx index 10d64eb50c1..1b2456a3c11 100644 --- a/server/sonar-web/src/main/js/apps/projectNewCode/components/NewCodeDefinitionSettingReferenceBranch.tsx +++ b/server/sonar-web/src/main/js/apps/projectNewCode/components/NewCodeDefinitionSettingReferenceBranch.tsx @@ -18,12 +18,13 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { FormattedMessage } from 'react-intl'; import { MenuPlacement, OptionProps, components } from 'react-select'; import { Badge, FlagErrorIcon, FormField, InputSelect, SelectionCard } from '~design-system'; import Tooltip from '../../../components/controls/Tooltip'; import { NewCodeDefinitionLevels } from '../../../components/new-code-definition/utils'; import MandatoryFieldsExplanation from '../../../components/ui/MandatoryFieldsExplanation'; -import { translate, translateWithParameters } from '../../../helpers/l10n'; +import { translate } from '../../../helpers/l10n'; import { NewCodeDefinitionType } from '../../../types/new-code-definition'; export interface BaselineSettingReferenceBranchProps { @@ -60,10 +61,12 @@ function renderBranchOption(props: OptionProps) { {option.isInvalid ? ( + } > {option.value} diff --git a/server/sonar-web/src/main/js/apps/projectNewCode/components/__tests__/ProjectNewCodeDefinitionApp-it.tsx b/server/sonar-web/src/main/js/apps/projectNewCode/components/__tests__/ProjectNewCodeDefinitionApp-it.tsx index 8758e89fc38..e2a7bc5e9a8 100644 --- a/server/sonar-web/src/main/js/apps/projectNewCode/components/__tests__/ProjectNewCodeDefinitionApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/projectNewCode/components/__tests__/ProjectNewCodeDefinitionApp-it.tsx @@ -394,6 +394,7 @@ function getPageObjects() { branchNCDsBanner: byText(/new_code_definition.auto_update.branch.message/), dismissButton: byLabelText('dismiss'), baselineSpecificAnalysisDate: byText(/January 10, 2018/), + missingReferenceBranchWarning: byText('baseline.reference_branch.does_not_exist'), }; async function appIsLoaded() { diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx index 9ea67fc2774..93f608d26cd 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx @@ -164,7 +164,6 @@ function renderFirstLine( , }} diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx index ad5d7b1510f..0a1b3363e22 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx @@ -22,6 +22,7 @@ import { withTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { useCallback, useEffect } from 'react'; import { Helmet } from 'react-helmet-async'; +import { useIntl } from 'react-intl'; import { useNavigate, useParams } from 'react-router-dom'; import { Card, @@ -36,7 +37,7 @@ import { import Suggestions from '../../../components/embed-docs-modal/Suggestions'; import '../../../components/search-navigator.css'; import { DocLink } from '../../../helpers/doc-links'; -import { translate, translateWithParameters } from '../../../helpers/l10n'; +import { translate } from '../../../helpers/l10n'; import { getQualityGateUrl } from '../../../helpers/urls'; import { useQualityGatesQuery } from '../../../queries/quality-gates'; import { QualityGate } from '../../../types/types'; @@ -47,6 +48,7 @@ import ListHeader from './ListHeader'; export default function App() { const { data, isLoading } = useQualityGatesQuery(); + const intl = useIntl(); const { name } = useParams(); const navigate = useNavigate(); const { @@ -79,9 +81,9 @@ export default function App() {
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx index f8c72d29f8d..a47c1873b6c 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx @@ -20,9 +20,10 @@ import * as React from 'react'; import { Helmet } from 'react-helmet-async'; +import { useIntl } from 'react-intl'; import { Outlet, useSearchParams } from 'react-router-dom'; import { useLocation } from '~sonar-aligned/components/hoc/withRouter'; -import { translate, translateWithParameters } from '../../../helpers/l10n'; +import { translate } from '../../../helpers/l10n'; import ProfileHeader from '../details/ProfileHeader'; import { useQualityProfilesContext } from '../qualityProfilesContext'; import ProfileNotFound from './ProfileNotFound'; @@ -36,6 +37,8 @@ export default function ProfileContainer() { const context = useQualityProfilesContext(); const { profiles } = context; + const intl = useIntl(); + // try to find a quality profile with the given key // if managed to find one, redirect to a new version // otherwise show not found page @@ -63,9 +66,9 @@ export default function ProfileContainer() { ) { const displayError = Boolean(location.query.authorizationError); return ( -
+
- + - - {translate('login.login_to_sonarqube')} + + + <FormattedMessage id="login.login_to_sonarqube" /> + <> {displayError && ( diff --git a/server/sonar-web/src/main/js/apps/settings/__tests__/utils-test.ts b/server/sonar-web/src/main/js/apps/settings/__tests__/utils-test.ts index 530c8a9baa3..6e53ac929b9 100644 --- a/server/sonar-web/src/main/js/apps/settings/__tests__/utils-test.ts +++ b/server/sonar-web/src/main/js/apps/settings/__tests__/utils-test.ts @@ -40,6 +40,14 @@ jest.mock('../../../helpers/l10n', () => ({ hasMessage: jest.fn(), })); +jest.mock('../../../helpers/l10nBundle', () => { + const bundle = jest.requireActual('../../../helpers/l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn(({ id }) => `${id}`) }), + }; +}); + const fields = [ { key: 'foo', type: 'STRING' } as SettingFieldDefinition, { key: 'bar', type: 'SINGLE_SELECT_LIST' } as SettingFieldDefinition, diff --git a/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx b/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx index f15e9e0128d..bd30797fb90 100644 --- a/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx @@ -23,8 +23,10 @@ import userEvent from '@testing-library/user-event'; import { first } from 'lodash'; import { byRole, byText } from '~sonar-aligned/helpers/testSelector'; import SystemServiceMock from '../../../../api/mocks/SystemServiceMock'; +import { mockAppState } from '../../../../helpers/testMocks'; import { renderAppRoutes } from '../../../../helpers/testReactTestingUtils'; import { AppState } from '../../../../types/appstate'; +import { EditionKey } from '../../../../types/editions'; import routes from '../../routes'; import { LogsLevels } from '../../utils'; @@ -125,7 +127,9 @@ describe('System Info Cluster', () => { }); function renderSystemApp(appState?: AppState) { - return renderAppRoutes('system', routes, { appState }); + return renderAppRoutes('system', routes, { + appState: mockAppState({ edition: EditionKey.developer, ...appState }), + }); } function getPageObjects() { diff --git a/server/sonar-web/src/main/js/components/branding/SonarQubeConnectionIllustration.tsx b/server/sonar-web/src/main/js/components/branding/SonarQubeConnectionIllustration.tsx new file mode 100644 index 00000000000..11c7b8308be --- /dev/null +++ b/server/sonar-web/src/main/js/components/branding/SonarQubeConnectionIllustration.tsx @@ -0,0 +1,199 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import { useAppState } from '../../app/components/app-state/withAppStateContext'; +import { EditionKey } from '../../types/editions'; + +interface Props { + className?: string; + connected: boolean; +} + +/** + * This component switches between the Community and Server product versions' logo, + * and between the connected and requested versions of the illustration + */ +export function SonarQubeConnectionIllustration(props: Props) { + const { edition } = useAppState(); + + return edition === EditionKey.community ? ( + + ) : ( + + ); +} + +function CommunityIllustration({ connected, ...imageProps }: Props) { + return connected ? ( + + + + + + + + + ) : ( + + + + + + + + + ); +} + +function ServerIllustration({ connected, ...imageProps }: Props) { + return connected ? ( + + + + + + + + + + + + + + + + ) : ( + + + + + + + + + + + + + + + + ); +} diff --git a/server/sonar-web/src/main/js/components/branding/SonarQubeIDEPromotionIllustration.tsx b/server/sonar-web/src/main/js/components/branding/SonarQubeIDEPromotionIllustration.tsx new file mode 100644 index 00000000000..3e4ea0bc9db --- /dev/null +++ b/server/sonar-web/src/main/js/components/branding/SonarQubeIDEPromotionIllustration.tsx @@ -0,0 +1,107 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import { useAppState } from '../../app/components/app-state/withAppStateContext'; +import { EditionKey } from '../../types/editions'; + +interface Props { + className?: string; +} +/** + * This component switches between the Community and Server product versions' logo + */ +export function SonarQubeIDEPromotionIllustration({ className }: Props) { + const { edition } = useAppState(); + + return edition === EditionKey.community ? ( + + + + + + + + + ) : ( + + + + + + + + + + + + + + + + ); +} diff --git a/server/sonar-web/src/main/js/components/branding/SonarQubeProductLogo.tsx b/server/sonar-web/src/main/js/components/branding/SonarQubeProductLogo.tsx new file mode 100644 index 00000000000..a9db4c2aa96 --- /dev/null +++ b/server/sonar-web/src/main/js/components/branding/SonarQubeProductLogo.tsx @@ -0,0 +1,38 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import { LogoSonarQubeCommunity, LogoSonarQubeServer } from '@sonarsource/echoes-react'; +import * as React from 'react'; +import { useAppState } from '../../app/components/app-state/withAppStateContext'; +import { EditionKey } from '../../types/editions'; + +type Props = React.ComponentProps; + +/** + * This component switches between the Community and Server product versions' logo + */ +export function SonarQubeProductLogo(props: Props) { + const { edition } = useAppState(); + + const OfficialLogo = + edition === EditionKey.community ? LogoSonarQubeCommunity : LogoSonarQubeServer; + + return ; +} diff --git a/server/sonar-web/src/main/js/components/branding/__tests__/SonarQubeConnectionIllustration-test.tsx b/server/sonar-web/src/main/js/components/branding/__tests__/SonarQubeConnectionIllustration-test.tsx new file mode 100644 index 00000000000..b95f33683f1 --- /dev/null +++ b/server/sonar-web/src/main/js/components/branding/__tests__/SonarQubeConnectionIllustration-test.tsx @@ -0,0 +1,39 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import { mockAppState } from '../../../helpers/testMocks'; +import { renderComponent } from '../../../helpers/testReactTestingUtils'; +import { EditionKey } from '../../../types/editions'; +import { SonarQubeConnectionIllustration } from '../SonarQubeConnectionIllustration'; + +it.each([ + [EditionKey.community, true], + [EditionKey.community, false], + [EditionKey.enterprise, true], + [EditionKey.enterprise, false], +])('should render %s edition (variant connected %s) correctly', (edition, connected) => { + const { container } = renderComponent( + , + '', + { appState: mockAppState({ edition }) }, + ); + + expect(container).toMatchSnapshot(); +}); diff --git a/server/sonar-web/src/main/js/components/branding/__tests__/__snapshots__/SonarQubeConnectionIllustration-test.tsx.snap b/server/sonar-web/src/main/js/components/branding/__tests__/__snapshots__/SonarQubeConnectionIllustration-test.tsx.snap new file mode 100644 index 00000000000..400a3b1350d --- /dev/null +++ b/server/sonar-web/src/main/js/components/branding/__tests__/__snapshots__/SonarQubeConnectionIllustration-test.tsx.snap @@ -0,0 +1,189 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should render community edition (variant connected false) correctly 1`] = ` +
+ +
+`; + +exports[`should render community edition (variant connected true) correctly 1`] = ` +
+ +
+`; + +exports[`should render enterprise edition (variant connected false) correctly 1`] = ` +
+ +
+`; + +exports[`should render enterprise edition (variant connected true) correctly 1`] = ` +
+ +
+`; diff --git a/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopup.tsx b/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopup.tsx index 5bffded6ae8..9824cec5a8f 100644 --- a/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopup.tsx +++ b/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopup.tsx @@ -20,41 +20,12 @@ import { DropdownMenu } from '@sonarsource/echoes-react'; import * as React from 'react'; -import { Image } from '~sonar-aligned/components/common/Image'; import { DocLink } from '../../helpers/doc-links'; import { translate } from '../../helpers/l10n'; import { SuggestionLink } from '../../types/types'; import { DocItemLink } from './DocItemLink'; import { SuggestionsContext } from './SuggestionsContext'; -function IconLink({ - icon = 'embed-doc/sq-icon.svg', - link, - text, -}: { - icon?: string; - link: string; - text: string; -}) { - return ( - - } - to={link} - > - {text} - - ); -} - function Suggestions({ suggestions }: Readonly<{ suggestions: SuggestionLink[] }>) { return ( <> @@ -103,21 +74,15 @@ export function EmbedDocsPopup() { {translate('docs.stay_connected')} - - - - - + + {translate('docs.news')} + + + + {translate('docs.roadmap')} + + + X @SonarQube ); } diff --git a/server/sonar-web/src/main/js/components/intl/TranslatedMessage.tsx b/server/sonar-web/src/main/js/components/intl/TranslatedMessage.tsx new file mode 100644 index 00000000000..497103386cd --- /dev/null +++ b/server/sonar-web/src/main/js/components/intl/TranslatedMessage.tsx @@ -0,0 +1,28 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import { ComponentProps } from 'react'; +import { FormattedMessage } from 'react-intl'; + +type Props = ComponentProps; + +export function TranslatedMessage(props: Props) { + return ; +} diff --git a/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx b/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx index 8b9452fe2ff..bd481c9c061 100644 --- a/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx +++ b/server/sonar-web/src/main/js/components/shared/AppVersionStatus.tsx @@ -27,10 +27,11 @@ import { useDocUrl } from '../../helpers/docs'; import { getInstanceVersionNumber } from '../../helpers/strings'; import { isCurrentVersionEOLActive } from '../../helpers/system'; import { useSystemUpgrades } from '../../queries/system'; +import { EditionKey } from '../../types/editions'; export default function AppVersionStatus() { const { data } = useSystemUpgrades(); - const { version, versionEOL } = useAppState(); + const { edition, version, versionEOL } = useAppState(); const isActiveVersion = useMemo(() => { if (data?.installedVersionActive !== undefined) { @@ -47,7 +48,7 @@ export default function AppVersionStatus() { { id: `footer.version` }, { version: getInstanceVersionNumber(version), - status: ( + status: edition && edition !== EditionKey.community && ( {translate('onboarding.tutorial.with.bitbucket_pipelines.variables.intro.link')} diff --git a/server/sonar-web/src/main/js/components/tutorials/components/GithubCFamilyExampleRepositories.tsx b/server/sonar-web/src/main/js/components/tutorials/components/GithubCFamilyExampleRepositories.tsx index eaf7bdf367d..a4606e48efd 100644 --- a/server/sonar-web/src/main/js/components/tutorials/components/GithubCFamilyExampleRepositories.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/components/GithubCFamilyExampleRepositories.tsx @@ -65,7 +65,7 @@ export default function GithubCFamilyExampleRepositories( height={20} src="/images/alm/github.svg" /> - + sonarsource-cfamily-examples
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/SecretStep.tsx b/server/sonar-web/src/main/js/components/tutorials/github-action/SecretStep.tsx index acb6dfef1db..38f0f198ee8 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/SecretStep.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/SecretStep.tsx @@ -59,7 +59,7 @@ export default function SecretStep(props: SecretStepProps) { almBinding && projectBinding ? ( {translate('onboarding.tutorial.with.github_action.secret.intro.link')} diff --git a/server/sonar-web/src/main/js/components/tutorials/test-utils.ts b/server/sonar-web/src/main/js/components/tutorials/test-utils.ts index aee023dcbeb..f46255e766c 100644 --- a/server/sonar-web/src/main/js/components/tutorials/test-utils.ts +++ b/server/sonar-web/src/main/js/components/tutorials/test-utils.ts @@ -71,9 +71,11 @@ export function getCommonNodes(ci: TutorialModes) { expiresInSelect: byRole('combobox', { name: '' }), tokenValue: byText('generatedtoken2'), linkToRepo: byRole('link', { - name: `onboarding.tutorial.with.${CI_TRANSLATE_MAP[ci]}.${ - ci === TutorialModes.GitHubActions ? 'secret' : 'variables' - }.intro.link`, + name: new RegExp( + `onboarding.tutorial.with.${CI_TRANSLATE_MAP[ci]}.${ + ci === TutorialModes.GitHubActions ? 'secret' : 'variables' + }.intro.link`, + ), }), allSetSentence: byText('onboarding.tutorial.ci_outro.done'), }; diff --git a/server/sonar-web/src/main/js/components/upgrade/SystemUpgradeButton.tsx b/server/sonar-web/src/main/js/components/upgrade/SystemUpgradeButton.tsx index f6ee51f0630..d3f89677405 100644 --- a/server/sonar-web/src/main/js/components/upgrade/SystemUpgradeButton.tsx +++ b/server/sonar-web/src/main/js/components/upgrade/SystemUpgradeButton.tsx @@ -50,7 +50,7 @@ export default function SystemUpgradeButton(props: Readonly) { {translate('learn_more')} diff --git a/server/sonar-web/src/main/js/helpers/__tests__/l10n-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/l10n-test.ts index 39d66bb80f8..e1d3df12fce 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/l10n-test.ts +++ b/server/sonar-web/src/main/js/helpers/__tests__/l10n-test.ts @@ -18,6 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { IntlShape } from 'react-intl'; import { Dict } from '../../types/types'; import { getLocalizedCategoryMetricName, @@ -30,18 +31,30 @@ import { translate, translateWithParameters, } from '../l10n'; -import { getMessages } from '../l10nBundle'; +import { getIntl, getMessages } from '../l10nBundle'; const MSG = 'my_message'; jest.unmock('../l10n'); -jest.mock('../l10nBundle', () => ({ - getMessages: jest.fn().mockReturnValue({}), -})); +jest.mock('../l10nBundle', () => { + const bundle = jest.requireActual('../l10nBundle'); + return { + ...bundle, + getIntl: jest.fn().mockReturnValue({ formatMessage: jest.fn(({ id }) => `${id}`) }), + getMessages: jest.fn().mockReturnValue({}), + }; +}); + +const resetMessages = (messages: Dict) => { + jest.mocked(getMessages).mockReturnValue(messages); -const resetMessages = (messages: Dict) => - (getMessages as jest.Mock).mockReturnValue(messages); + jest.mocked(getIntl).mockReturnValue({ + formatMessage: jest.fn(({ id }) => { + return id ? (messages[id] ?? id) : `${id}`; + }), + } as unknown as IntlShape); +}; beforeEach(() => { resetMessages({}); @@ -82,6 +95,13 @@ describe('translate', () => { expect(translate('random', 'key')).toBe('random.key'); expect(translate('composite.random', 'key')).toBe('composite.random.key'); }); + + it('should fall back to the old system when intl is undefined', () => { + jest.mocked(getIntl).mockReturnValueOnce(undefined as unknown as IntlShape); + resetMessages({ exists: 'this exists' }); + + expect(translate('exists')).toBe('this exists'); + }); }); describe('translateWithParameters', () => { diff --git a/server/sonar-web/src/main/js/helpers/__tests__/l10nBundle-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/l10nBundle-test.ts index 5ac785375b5..930f244e8a9 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/l10nBundle-test.ts +++ b/server/sonar-web/src/main/js/helpers/__tests__/l10nBundle-test.ts @@ -20,6 +20,7 @@ import { fetchL10nBundle } from '../../api/l10n'; import { loadL10nBundle } from '../l10nBundle'; +import { mockAppState } from '../testMocks'; beforeEach(() => { jest.clearAllMocks(); @@ -33,9 +34,11 @@ jest.mock('../../api/l10n', () => ({ }), })); +const APP_STATE = mockAppState({}); + describe('#loadL10nBundle', () => { it('should fetch bundle without any timestamp', async () => { - await loadL10nBundle(); + await loadL10nBundle(APP_STATE); expect(fetchL10nBundle).toHaveBeenCalledWith({ locale: 'de', ts: undefined }); }); @@ -44,7 +47,7 @@ describe('#loadL10nBundle', () => { const cachedBundle = { timestamp: 'timestamp', locale: 'fr', messages: { cache: 'cache' } }; (window as unknown as any).sonarQubeL10nBundle = cachedBundle; - await loadL10nBundle(); + await loadL10nBundle(APP_STATE); expect(fetchL10nBundle).toHaveBeenCalledWith({ locale: 'de', ts: undefined }); }); @@ -53,7 +56,7 @@ describe('#loadL10nBundle', () => { const cachedBundle = { timestamp: 'timestamp', locale: 'de', messages: { cache: 'cache' } }; (window as unknown as any).sonarQubeL10nBundle = cachedBundle; - await loadL10nBundle(); + await loadL10nBundle(APP_STATE); expect(fetchL10nBundle).toHaveBeenCalledWith({ locale: 'de', ts: cachedBundle.timestamp }); }); @@ -63,7 +66,7 @@ describe('#loadL10nBundle', () => { (fetchL10nBundle as jest.Mock).mockRejectedValueOnce({ status: 304 }); (window as unknown as any).sonarQubeL10nBundle = cachedBundle; - const bundle = await loadL10nBundle(); + const bundle = await loadL10nBundle(APP_STATE); expect(bundle).toEqual( expect.objectContaining({ locale: cachedBundle.locale, messages: cachedBundle.messages }), diff --git a/server/sonar-web/src/main/js/helpers/__tests__/measures-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/measures-test.ts index 09527fbb946..4c8516d50fb 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/measures-test.ts +++ b/server/sonar-web/src/main/js/helpers/__tests__/measures-test.ts @@ -28,6 +28,14 @@ import { import { mockQualityGateStatusCondition } from '../mocks/quality-gates'; import { mockMeasure, mockMeasureEnhanced, mockMetric } from '../testMocks'; +jest.mock('../l10nBundle', () => { + const bundle = jest.requireActual('../l10nBundle'); + return { + ...bundle, + getIntl: () => ({ formatMessage: jest.fn(({ id }) => `${id}`) }), + }; +}); + describe('enhanceConditionWithMeasure', () => { it('should correctly map enhance conditions with measure data', () => { const measures = [ diff --git a/server/sonar-web/src/main/js/helpers/l10n.ts b/server/sonar-web/src/main/js/helpers/l10n.ts index 920a5a6c577..4594e4ae636 100644 --- a/server/sonar-web/src/main/js/helpers/l10n.ts +++ b/server/sonar-web/src/main/js/helpers/l10n.ts @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getMessages } from './l10nBundle'; +import { getIntl, getMessages } from './l10nBundle'; export function hasMessage(...keys: string[]): boolean { const messageKey = keys.join('.'); @@ -35,9 +35,14 @@ export function translate(...keys: string[]): string { console.error(`No message for: ${messageKey}`); } - return l10nMessages[messageKey] || messageKey; + const intl = getIntl(); + // fallback to old if in extension + return intl ? intl.formatMessage({ id: messageKey }) : l10nMessages[messageKey]; } +/** + * @param messageKey @deprecated Use react-intl instead + */ export function translateWithParameters( messageKey: string, ...parameters: Array diff --git a/server/sonar-web/src/main/js/helpers/l10nBundle.ts b/server/sonar-web/src/main/js/helpers/l10nBundle.ts index 4fc589c47f8..d34b1f479bb 100644 --- a/server/sonar-web/src/main/js/helpers/l10nBundle.ts +++ b/server/sonar-web/src/main/js/helpers/l10nBundle.ts @@ -20,9 +20,12 @@ import { IntlShape, createIntl, createIntlCache } from 'react-intl'; import { fetchL10nBundle } from '../api/l10n'; +import { AppState } from '../types/appstate'; +import { EditionKey } from '../types/editions'; import { L10nBundle, L10nBundleRequestParams } from '../types/l10nBundle'; import { Dict } from '../types/types'; import { toISO8601WithOffsetString } from './dates'; +import { isDefined } from './types'; const DEFAULT_LOCALE = 'en'; const DEFAULT_MESSAGES: Dict = { @@ -48,7 +51,7 @@ export function getCurrentL10nBundle() { return getL10nBundleFromCache(); } -export async function loadL10nBundle() { +export async function loadL10nBundle(appState: AppState | undefined) { const browserLocale = getPreferredLanguage(); const cachedBundle = getL10nBundleFromCache(); @@ -91,6 +94,17 @@ export async function loadL10nBundle() { { locale: effectiveLocale, messages, + + /* + * This sets a default value for translations, so devs do not need to pass the {productName} + * value to every instance of FormattedMessage. + * It is a bit of a hack, abusing this config item that is normally for tag replacement only, + * hence the ts-expect-error tag + */ + defaultRichTextElements: { + // @ts-expect-error + productName: getProductName(appState), + }, }, cache, ); @@ -109,3 +123,13 @@ function getL10nBundleFromCache(): L10nBundle { function persistL10nBundleInCache(bundle: L10nBundle) { (window as unknown as any).sonarQubeL10nBundle = bundle; } + +function getProductName(appState?: AppState) { + if (isDefined(appState?.edition)) { + return appState?.edition === EditionKey.community + ? 'SonarQube Community Build' + : 'SonarQube Server'; + } + + return 'SonarQube'; +} diff --git a/server/sonar-web/src/main/js/sonar-aligned/helpers/__tests__/measures-test.ts b/server/sonar-web/src/main/js/sonar-aligned/helpers/__tests__/measures-test.ts index 223898cb1d1..f5ca0dfd212 100644 --- a/server/sonar-web/src/main/js/sonar-aligned/helpers/__tests__/measures-test.ts +++ b/server/sonar-web/src/main/js/sonar-aligned/helpers/__tests__/measures-test.ts @@ -18,8 +18,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { IntlShape } from 'react-intl'; import { MetricType } from '~sonar-aligned/types/metrics'; -import { getMessages } from '../../../helpers/l10nBundle'; +import { getIntl, getMessages } from '../../../helpers/l10nBundle'; import { Dict } from '../../../types/types'; import { formatMeasure } from '../measures'; @@ -33,11 +34,19 @@ jest.unmock('../../../helpers/l10n'); jest.mock('../../../helpers/l10nBundle', () => ({ getCurrentLocale: jest.fn().mockReturnValue('us'), getMessages: jest.fn().mockReturnValue({}), + getIntl: jest.fn().mockReturnValue({ formatMessage: jest.fn(({ id }) => `${id}`) }), })); -const resetMessages = (messages: Dict) => +const resetMessages = (messages: Dict) => { jest.mocked(getMessages).mockReturnValue(messages); + jest.mocked(getIntl).mockReturnValue({ + formatMessage: jest.fn(({ id }) => { + return id ? (messages[id] ?? id) : `${id}`; + }), + } as unknown as IntlShape); +}; + beforeAll(() => { resetMessages({ 'work_duration.x_days': '{0}d', diff --git a/server/sonar-web/yarn.lock b/server/sonar-web/yarn.lock index 789ea5ad6ee..bf044c355c4 100644 --- a/server/sonar-web/yarn.lock +++ b/server/sonar-web/yarn.lock @@ -2248,7 +2248,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.16.3, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.2, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.8.7": +"@babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.16.3, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.2, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.8.7": version: 7.25.6 resolution: "@babel/runtime@npm:7.25.6" dependencies: @@ -2257,6 +2257,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.20.13": + version: 7.26.0 + resolution: "@babel/runtime@npm:7.26.0" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 10/9f4ea1c1d566c497c052d505587554e782e021e6ccd302c2ad7ae8291c8e16e3f19d4a7726fb64469e057779ea2081c28b7dbefec6d813a22f08a35712c0f699 + languageName: node + linkType: hard + "@babel/template@npm:^7.12.13, @babel/template@npm:^7.25.7": version: 7.25.7 resolution: "@babel/template@npm:7.25.7" @@ -3201,7 +3210,17 @@ __metadata: languageName: node linkType: hard -"@floating-ui/dom@npm:^1.0.0, @floating-ui/dom@npm:^1.0.1": +"@floating-ui/dom@npm:^1.0.0": + version: 1.6.12 + resolution: "@floating-ui/dom@npm:1.6.12" + dependencies: + "@floating-ui/core": "npm:^1.6.0" + "@floating-ui/utils": "npm:^0.2.8" + checksum: 10/5c8e5fdcd3843140a606ab6dc6c12ad740f44e66b898966ef877393faaede0bbe14586e1049e2c2f08856437da8847e884a2762e78275fefa65a5a9cd71e580d + languageName: node + linkType: hard + +"@floating-ui/dom@npm:^1.0.1": version: 1.6.10 resolution: "@floating-ui/dom@npm:1.6.10" dependencies: @@ -3211,29 +3230,29 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react-dom@npm:^2.0.0, @floating-ui/react-dom@npm:^2.1.1": - version: 2.1.1 - resolution: "@floating-ui/react-dom@npm:2.1.1" +"@floating-ui/react-dom@npm:^2.0.0, @floating-ui/react-dom@npm:^2.1.2": + version: 2.1.2 + resolution: "@floating-ui/react-dom@npm:2.1.2" dependencies: "@floating-ui/dom": "npm:^1.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - checksum: 10/cafabfb5dd0b25547863520b3bcf6faee7f087d0c3187a8779910a6838d496bf494f237bf1fe883bbfae1a7fcc399611ae52377b696065d8118bd7c1b9c0d253 + checksum: 10/2a67dc8499674e42ff32c7246bded185bb0fdd492150067caf9568569557ac4756a67787421d8604b0f241e5337de10762aee270d9aeef106d078a0ff13596c4 languageName: node linkType: hard "@floating-ui/react@npm:^0.26.9": - version: 0.26.23 - resolution: "@floating-ui/react@npm:0.26.23" + version: 0.26.27 + resolution: "@floating-ui/react@npm:0.26.27" dependencies: - "@floating-ui/react-dom": "npm:^2.1.1" - "@floating-ui/utils": "npm:^0.2.7" + "@floating-ui/react-dom": "npm:^2.1.2" + "@floating-ui/utils": "npm:^0.2.8" tabbable: "npm:^6.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - checksum: 10/a2ffeb0bae72cac9e6583d9651e75e94c261a9e78ca4a5e862b7d33f2c19ae014cbe272627a0a0a5a2b526280efab17ec687d32ba02f6ce4e924bec562ae06ab + checksum: 10/ab6d05e5cc2c29272a6830c06dff07e8330f2b90234674f2d74ed8084659ebe3ac9472770a5f0e76007dd2ae89f9da75189d188437aea4b8ac2789afc21bb6b2 languageName: node linkType: hard @@ -3244,6 +3263,13 @@ __metadata: languageName: node linkType: hard +"@floating-ui/utils@npm:^0.2.8": + version: 0.2.8 + resolution: "@floating-ui/utils@npm:0.2.8" + checksum: 10/3e3ea3b2de06badc4baebdf358b3dbd77ccd9474a257a6ef237277895943db2acbae756477ec64de65a2a1436d94aea3107129a1feeef6370675bf2b161c1abc + languageName: node + linkType: hard + "@formatjs/ecma402-abstract@npm:2.0.0": version: 2.0.0 resolution: "@formatjs/ecma402-abstract@npm:2.0.0" @@ -3877,9 +3903,9 @@ __metadata: languageName: node linkType: hard -"@mantine/core@patch:@mantine/core@7.12.2#./config/patches/@mantine-core-npm-7.12.2-7aad505c0f.patch::locator=%40sonarsource%2Fechoes-react%40npm%3A0.9.0": +"@mantine/core@patch:@mantine/core@7.12.2#./config/patches/@mantine-core-npm-7.12.2-7aad505c0f.patch::locator=%40sonarsource%2Fechoes-react%40npm%3A0.10.1": version: 7.12.2 - resolution: "@mantine/core@patch:@mantine/core@npm%3A7.12.2#./config/patches/@mantine-core-npm-7.12.2-7aad505c0f.patch::version=7.12.2&hash=cab555&locator=%40sonarsource%2Fechoes-react%40npm%3A0.9.0" + resolution: "@mantine/core@patch:@mantine/core@npm%3A7.12.2#./config/patches/@mantine-core-npm-7.12.2-7aad505c0f.patch::version=7.12.2&hash=cab555&locator=%40sonarsource%2Fechoes-react%40npm%3A0.10.1" dependencies: "@floating-ui/react": "npm:^0.26.9" clsx: "npm:^2.1.1" @@ -4970,9 +4996,9 @@ __metadata: languageName: node linkType: hard -"@sonarsource/echoes-react@npm:0.9.0": - version: 0.9.0 - resolution: "@sonarsource/echoes-react@npm:0.9.0" +"@sonarsource/echoes-react@npm:0.10.1": + version: 0.10.1 + resolution: "@sonarsource/echoes-react@npm:0.10.1" dependencies: "@mantine/core": "patch:@mantine/core@7.12.2#./config/patches/@mantine-core-npm-7.12.2-7aad505c0f.patch" "@mantine/hooks": "npm:7.12.2" @@ -4994,7 +5020,7 @@ __metadata: react-dom: ^18.0.0 react-intl: ^6.0.0 react-router-dom: ^6.0.0 - checksum: 10/d67803889b7a1954fb5759954086f85b95a33b7e154863cddea6a4b134d30c66b59c864d3ec93b382035a9564d682c22452f5a5b9f40c83fd1cc642584af957a + checksum: 10/326e46fcf08468afbf9c6dc7b8f07d09d18d1634a63fd5f0335966e0cf6162fdee94f03e9e86cbb2eef6331afee284cc14d15aaa1e749078251fcd1733ea41e4 languageName: node linkType: hard @@ -6009,7 +6035,7 @@ __metadata: "@primer/octicons-react": "npm:19.11.0" "@react-spring/rafz": "npm:9.7.4" "@react-spring/web": "npm:9.7.4" - "@sonarsource/echoes-react": "npm:0.9.0" + "@sonarsource/echoes-react": "npm:0.10.1" "@tanstack/react-query": "npm:5.56.2" "@testing-library/dom": "npm:10.4.0" "@testing-library/jest-dom": "npm:6.5.0" @@ -15928,9 +15954,9 @@ __metadata: linkType: hard "tslib@npm:^2.1.0": - version: 2.6.3 - resolution: "tslib@npm:2.6.3" - checksum: 10/52109bb681f8133a2e58142f11a50e05476de4f075ca906d13b596ae5f7f12d30c482feb0bff167ae01cfc84c5803e575a307d47938999246f5a49d174fc558c + version: 2.8.1 + resolution: "tslib@npm:2.8.1" + checksum: 10/3e2e043d5c2316461cb54e5c7fe02c30ef6dccb3384717ca22ae5c6b5bc95232a6241df19c622d9c73b809bea33b187f6dbc73030963e29950c2141bc32a79f7 languageName: node linkType: hard 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 4a24430e76a..36f8eb405eb 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -528,9 +528,9 @@ qualifier.description.APP=Single-level aggregation with a technical focus and a # Admin notification # #------------------------------------------------------------------------------ -admin_notification.update.new_patch=There’s an update available for your SonarQube instance. Please update to make sure you benefit from the latest security and bug fixes. -admin_notification.update.new_version=There’s a new version of SonarQube available. Upgrade to the latest active version to access new updates and features. -admin_notification.update.current_version_inactive=You’re running a version of SonarQube that is no longer active. Please upgrade to an active version immediately. +admin_notification.update.new_patch=There’s an update available for your {productName} instance. Please update to make sure you benefit from the latest security and bug fixes. +admin_notification.update.new_version=There’s a new version of {productName} available. Upgrade to the latest active version to access new updates and features. +admin_notification.update.current_version_inactive=You’re running a version of {productName} that is no longer active. Please upgrade to an active version immediately. #------------------------------------------------------------------------------ # @@ -564,7 +564,7 @@ event.category.All=All event.category.VERSION=Version event.category.QUALITY_GATE=Quality Gate event.category.QUALITY_PROFILE=Quality Profile -event.category.SQ_UPGRADE=SonarQube upgrade +event.category.SQ_UPGRADE={productName} upgrade event.category.DEFINITION_CHANGE=Definition Change event.category.ISSUE_DETECTION=Issue Detection event.category.OTHER=Other @@ -577,7 +577,7 @@ event.definition_change.branch_added={project} {branch} added event.definition_change.branch_removed={project} {branch} removed event.definition_change.branch_replaced={project} {oldBranch} replaced with {newBranch} event.failed_conditions=Failed Conditions: -event.sqUpgrade=First analysis since upgrading to SonarQube {sqVersion} +event.sqUpgrade=First analysis since upgrading to {productName} {sqVersion} #------------------------------------------------------------------------------ # @@ -606,7 +606,7 @@ layout.settings.VW=Portfolio Settings layout.settings.SVW=Portfolio Settings layout.security_reports=Security Reports layout.nav.home_logo_alt=Logo, link to homepage -layout.nav.home_sonarqube_logo_alt=SonarQube logo, link to homepage +layout.nav.home_sonarqube_logo_alt={productName} logo, link to homepage layout.must_be_configured=This will be available once your project is configured and analyzed. layout.all_project_must_be_accessible=You need access to all projects within this {0} to access it. @@ -716,7 +716,7 @@ project_baseline.compliance.warning.title.project=Your project new code definiti baseline.specific_analysis=Specific analysis baseline.specific_analysis.description=Choose an analysis as the baseline for the new code. -baseline.specific_analysis.compliance_warning.title=Choosing the "Specific analysis" option from the SonarQube UI is not compliant with the Clean as You Code methodology +baseline.specific_analysis.compliance_warning.title=Choosing the "Specific analysis" option from the {productName} UI is not compliant with the Clean as You Code methodology baseline.specific_analysis.compliance_warning.explanation=It has been deprecated. The option remains available through the Web API. baseline.specific_analysis.compliance_warning.link=Defining New Code baseline.reference_branch=Reference branch @@ -729,7 +729,7 @@ baseline.last_analysis_before=Last analysis before baseline.next_analysis_notice=Changes will take effect after the next analysis baseline.reference_branch.choose=Choose a branch -baseline.reference_branch.does_not_exist=Branch {0} could not be found in SonarQube. +baseline.reference_branch.does_not_exist=Branch {branch} could not be found in {productName}. baseline.reference_branch.cannot_be_itself=A branch cannot be used as its own reference branch baseline.reference_branch.invalid_branch_setting=Branch {0} cannot use itself as a reference. Define a specific setting instead of using the project-level setting. baseline.edit_branch_setting=Edit the branch's setting @@ -764,9 +764,9 @@ regulatory_page.available_branches_info.more_info.doc_link=related documentation # #------------------------------------------------------------------------------ -page_title.template.default=%s - SonarQube -page_title.template.with_category=%s - {0} - SonarQube -page_title.template.with_instance={0} - %s - SonarQube +page_title.template.default=%s - {productName} +page_title.template.with_category=%s - {page} - {productName} +page_title.template.with_instance={project} - %s - {productName} overview.page=Overview code.page=Code permissions.page=Permissions @@ -870,7 +870,7 @@ hotspots.comment.field=Comment: hotspots.comment.open=Comment hotspots.comment.submit=Comment hotspots.open_in_ide.success=Success. Switch to your IDE to see the security hotspot. -hotspots.open_in_ide.failure=Unable to connect to your IDE to open the Security Hotspot. Please make sure you're running the latest version of SonarLint. +hotspots.open_in_ide.failure=Unable to connect to your IDE to open the Security Hotspot. Please make sure you're running the latest version of SonarQube for IDE. hotspots.assignee.select_user=Select a user... hotspots.assignee.change_user=Click to change assignee @@ -944,7 +944,7 @@ issue.assign.formlink=Assign issue.assign.to_me=to me issue.quick_fix=Quick fix issue.quick_fix_available_with_sonarlint=Quick fix available in {link} -issue.quick_fix_available_with_sonarlint_no_link=Quick fix available in SonarLint +issue.quick_fix_available_with_sonarlint_no_link=Quick fix available in SonarQube for IDE issue.comment.add_comment=Add Comment issue.comment.add_comment.cancel=Cancel adding comment issue.comment.enter_comment=Enter Comment @@ -1479,9 +1479,9 @@ settings.state.url_not_valid={0} is not a valid URL settings._default=(default) settings.boolean.true=True settings.boolean.false=False -settings.default.no_value= -settings.default.complex_value= -settings.default.password= +settings.default.no_value='' +settings.default.complex_value='' +settings.default.password='' settings.reset_confirm.title=Reset Setting settings.reset_confirm.description=Are you sure that you want to reset this setting? settings.definition.reset=Reset "{0}" to default values @@ -1520,8 +1520,8 @@ settings.projects.change_visibility_form.warning.gitlab=This will not change the settings.projects.change_visibility_form.submit=Change Default Visibility settings.almintegration.title=DevOps Platform Integrations -settings.almintegration.description=DevOps Platform integrations allow SonarQube to interact with your DevOps Platform. This enables things like authentication, or providing analysis details and a Quality Gate to your Pull Requests directly in your DevOps Platform's interface. -settings.almintegration.empty.server_base_url=You need to set the Server Base URL in General > {serverBaseUrl} to have correct links from the DevOps Platform to your SonarQube instance. +settings.almintegration.description=DevOps Platform integrations allow {productName} to interact with your DevOps Platform. This enables things like authentication, or providing analysis details and a Quality Gate to your Pull Requests directly in your DevOps Platform's interface. +settings.almintegration.empty.server_base_url=You need to set the Server Base URL in General > {serverBaseUrl} to have correct links from the DevOps Platform to your {productName} instance. settings.almintegration.empty.server_base_url.setting_link=Server Base URL settings.almintegration.tab.github=GitHub settings.almintegration.tab.bitbucket=Bitbucket @@ -1529,13 +1529,13 @@ settings.almintegration.tab.azure=Azure DevOps settings.almintegration.tab.gitlab=GitLab settings.almintegration.github.info=You need to install a GitHub App with specific settings and permissions to enable Pull Request Decoration on your Organization or Repository. {link} settings.almintegration.github.additional_permission=If Quality Gate status reporting fails on private projects, you might need to add an additional permission to the GitHub App. {link} -settings.almintegration.bitbucketcloud.info=SonarQube needs you to create an {oauth} in your Bitbucket Cloud workspace settings to report the Quality Gate status on Pull Requests. It needs to be a private consumer with {permission} permission. An OAuth callback URL is required by Bitbucket Cloud but not used by SonarQube so any URL works. {doc_link} +settings.almintegration.bitbucketcloud.info={productName} needs you to create an {oauth} in your Bitbucket Cloud workspace settings to report the Quality Gate status on Pull Requests. It needs to be a private consumer with {permission} permission. An OAuth callback URL is required by Bitbucket Cloud but not used by {productName} so any URL works. {doc_link} settings.almintegration.bitbucketcloud.oauth=OAuth consumer -settings.almintegration.empty.azure=Create your first Azure DevOps configuration to start analyzing your repositories on SonarQube. -settings.almintegration.empty.bitbucket=Create your first Bitbucket configuration to start analyzing your repositories on SonarQube. -settings.almintegration.empty.bitbucketcloud=Create your first Bitbucket Cloud configuration to start analyzing your repositories on SonarQube. -settings.almintegration.empty.github=Create your first GitHub configuration to start analyzing your repositories on SonarQube. -settings.almintegration.empty.gitlab=Create your first GitLab configuration to start analyzing your repositories on SonarQube. +settings.almintegration.empty.azure=Create your first Azure DevOps configuration to start analyzing your repositories on {productName}. +settings.almintegration.empty.bitbucket=Create your first Bitbucket configuration to start analyzing your repositories on {productName}. +settings.almintegration.empty.bitbucketcloud=Create your first Bitbucket Cloud configuration to start analyzing your repositories on {productName}. +settings.almintegration.empty.github=Create your first GitHub configuration to start analyzing your repositories on {productName}. +settings.almintegration.empty.gitlab=Create your first GitLab configuration to start analyzing your repositories on {productName}. settings.almintegration.create=Create configuration settings.almintegration.create.tooltip=Upgrade to {link} to integrate with multiple {alm} instances. settings.almintegration.create.tooltip.link=Enterprise Edition @@ -1594,11 +1594,11 @@ settings.almintegration.form.private_key.github.help=Your GitHub App's private k settings.almintegration.form.webhook_secret.github=Webhook Secret settings.almintegration.form.webhook_secret.github.help=Leave this field empty unless you are using GitHub Code Scanning Alert feature. See documentation for more details. settings.almintegration.form.personal_access_token=Personal Access Token -settings.almintegration.form.personal_access_token.azure.help=SonarQube needs a {pat} to report the Quality Gate status on Pull Requests in Azure DevOps. To create this token, we recommend using a dedicated Azure DevOps account with administration permissions. The token itself needs {permission} permission. {doc_link} +settings.almintegration.form.personal_access_token.azure.help={productName} needs a {pat} to report the Quality Gate status on Pull Requests in Azure DevOps. To create this token, we recommend using a dedicated Azure DevOps account with administration permissions. The token itself needs {permission} permission. {doc_link} settings.almintegration.form.personal_access_token.azure.help.url=Personal Access Token -settings.almintegration.form.personal_access_token.gitlab.help=SonarQube needs a {pat} to report the Quality Gate status on Merge Requests in GitLab. To create this token, we recommend using a dedicated GitLab account with {permission} permission to all target projects. The token itself needs the {scope} scope. {doc_link} +settings.almintegration.form.personal_access_token.gitlab.help={productName} needs a {pat} to report the Quality Gate status on Merge Requests in GitLab. To create this token, we recommend using a dedicated GitLab account with {permission} permission to all target projects. The token itself needs the {scope} scope. {doc_link} settings.almintegration.form.personal_access_token.gitlab.help.url=Personal Access Token -settings.almintegration.form.personal_access_token.bitbucket.help=SonarQube needs a {pat} to report the Quality Gate status on Pull Requests in Bitbucket Server. To create this token, we recommend using a dedicated Bitbucket Server account with administration permissions. The token itself needs {permission} permission. {doc_link} +settings.almintegration.form.personal_access_token.bitbucket.help={productName} needs a {pat} to report the Quality Gate status on Pull Requests in Bitbucket Server. To create this token, we recommend using a dedicated Bitbucket Server account with administration permissions. The token itself needs {permission} permission. {doc_link} settings.almintegration.form.personal_access_token.bitbucket.help.url=Personal Access Token settings.almintegration.form.save=Save configuration settings.almintegration.form.cancel=Cancel @@ -1614,7 +1614,7 @@ settings.almintegration.feature.pr_decoration.disabled=Disabled settings.almintegration.feature.pr_decoration.disabled.no_branches=Upgrade to {link} to enable this feature. settings.almintegration.feature.pr_decoration.disabled.no_branches.link=Developer Edition settings.almintegration.feature.alm_repo_import.title=Import repositories from your DevOps Platform -settings.almintegration.feature.alm_repo_import.description=Select repositories from your DevOps Platform, and import them into SonarQube. +settings.almintegration.feature.alm_repo_import.description=Select repositories from your DevOps Platform, and import them into {productName}. settings.almintegration.feature.alm_repo_import.disabled=Disabled settings.almintegration.feature.alm_repo_import.disabled.no_url=This feature is disabled because your configured instance has no URL. settings.almintegration.tabs.authentication_moved=You can delegate authentication to this DevOps Platform. The relevant settings are under the {link} section. @@ -1656,7 +1656,7 @@ settings.authentication.github.appid_x=App ID: {applicationId} settings.authentication.github.confirm.AUTO_PROVISIONING=Switch to automatic provisioning settings.authentication.github.confirm.JIT=Switch to Just-in-Time provisioning settings.authentication.github.confirm.insecure=Potentially insecure configuration -settings.authentication.github.confirm.AUTO_PROVISIONING.description=Once you transition to automatic provisioning, groups, users, group memberships, and permissions on GitHub projects will be inherited from GitHub. You will no longer have the ability to edit them within SonarQube. Do you want to proceed with this change? +settings.authentication.github.confirm.AUTO_PROVISIONING.description=Once you transition to automatic provisioning, groups, users, group memberships, and permissions on GitHub projects will be inherited from GitHub. You will no longer have the ability to edit them within {productName}. Do you want to proceed with this change? settings.authentication.github.confirm.JIT.description=Switching to Just-in-Time provisioning removes the automatic synchronization of users, groups, and group memberships. Users are provisioned and group memberships are updated only at user login. Are you sure? settings.authentication.github.provisioning_change.confirm_changes=Confirm change settings.authentication.github.provisioning_change.insecure_config=Please be aware that your configuration is potentially insecure because you didn't add any organization to the allowlist. If your GitHub App is public, anyone can install it and gain access to your instance. @@ -1666,7 +1666,7 @@ settings.authentication.github.form.legacy_configured=Compatibility with GitHub settings.authentication.github.form.legacy_configured.link=Learn more about how to create a GitHub App configuration settings.authentication.github.enable_first=Enable your GitHub configuration for more provisioning options. settings.authentication.github.form.allowedOrganizations.name=Organizations -settings.authentication.github.form.allowedOrganizations.description=Only members of these organizations will be able to authenticate to the server. ⚠ if not set, users from any organization where the GitHub App is installed will be able to login to this SonarQube instance. +settings.authentication.github.form.allowedOrganizations.description=Only members of these organizations will be able to authenticate to the server. ⚠ if not set, users from any organization where the GitHub App is installed will be able to login to this {productName} instance. settings.authentication.github.form.apiUrl.name=The API url for a GitHub instance. settings.authentication.github.form.apiUrl.description=The API url for a GitHub instance. https://api.github.com/ for GitHub.com, https://github.company.com/api/v3/ when using GitHub Enterprise settings.authentication.github.form.applicationId.name=App ID @@ -1678,7 +1678,7 @@ settings.authentication.github.form.clientSecret.description=Client password pro settings.authentication.github.form.privateKey.name=Private Key settings.authentication.github.form.privateKey.description=Your GitHub App's private key. You can generate a .pem file from your GitHub App's page under Private keys. Copy and paste the whole contents of the file here. settings.authentication.github.form.synchronizeGroups.name=Synchronize teams as groups -settings.authentication.github.form.synchronizeGroups.description=Synchronize GitHub team with SonarQube group memberships when users log in to SonarQube. For each GitHub team they belong to, users will be associated to a group of the same name if it exists in SonarQube. +settings.authentication.github.form.synchronizeGroups.description=Synchronize GitHub team with {productName} group memberships when users log in to {productName}. For each GitHub team they belong to, users will be associated to a group of the same name if it exists in {productName}. settings.authentication.github.form.webUrl.name=The WEB url for a GitHub instance. settings.authentication.github.form.webUrl.description=The WEB url for a GitHub instance. https://github.com/ for GitHub.com, https://github.company.com/ when using GitHub Enterprise. settings.authentication.github.form.private_key.required_for_url_change=Please provide your private key again to update the API URL or the Web URL. @@ -1687,12 +1687,12 @@ settings.authentication.github.form.provisioning_with_github_short.autoProvision settings.authentication.github.form.provisioning_with_github_short.jit=Just-in-Time provisioning settings.authentication.github.form.provisioning_with_github.description=Users, groups and permissions are automatically provisioned from your GitHub organizations. Once activated, users and groups can only be created and modified from your GitHub organizations/teams. Existing local users will be kept and can only be deactivated. {documentation} settings.authentication.github.form.description.doc=For more details, see {documentation}. -settings.authentication.github.form.provisioning_at_login.description=Users and groups are synchronized only when users log in to SonarQube. {documentation} +settings.authentication.github.form.provisioning_at_login.description=Users and groups are synchronized only when users log in to {productName}. {documentation} settings.authentication.github.form.provisioning.disabled=Your current edition does not support provisioning with GitHub. See the {documentation} for more information. settings.authentication.github.form.allowUsersToSignUp.name=Allow users to sign up settings.authentication.github.form.allowUsersToSignUp.description=Allow new users to authenticate. When set to disabled, only existing users will be able to authenticate to the server. settings.authentication.github.form.projectVisibility.name=Provision project visibility -settings.authentication.github.form.projectVisibility.description=Change project visibility based on GitHub repository visibility. If disabled, every provisioned project will be private in SonarQube and visible only to users with explicit GitHub permissions for the corresponding repository. Changes take effect at the next synchronization. +settings.authentication.github.form.projectVisibility.description=Change project visibility based on GitHub repository visibility. If disabled, every provisioned project will be private in {productName} and visible only to users with explicit GitHub permissions for the corresponding repository. Changes take effect at the next synchronization. settings.authentication.github.synchronize_now=Synchronize now settings.authentication.github.synchronization_finish=Synchronization is done. settings.authentication.github.configuration.validation.details=View details @@ -1705,7 +1705,7 @@ settings.authentication.github.configuration.validation.details.title=Configurat settings.authentication.github.configuration.validation.details.valid_label=Valid settings.authentication.github.configuration.validation.details.invalid_label=Invalid settings.authentication.github.configuration.validation.details.org_not_found={0} (not found or app not installed) -settings.authentication.github.configuration.roles_mapping.description=When synchronizing users and groups, SonarQube assigns permissions based on GitHub user and team roles. You can customize the mapping of permissions. The new mapping will take effect at the next synchronization. +settings.authentication.github.configuration.roles_mapping.description=When synchronizing users and groups, {productName} assigns permissions based on GitHub user and team roles. You can customize the mapping of permissions. The new mapping will take effect at the next synchronization. settings.authentication.github.configuration.roles_mapping.save_success=GitHub roles mapping saved successfully. settings.authentication.github.configuration.roles_mapping.dialog.custom_roles_description=When a custom role name added here matches an existing GitHub custom role in any of your organizations, the mapping applies to all users with this custom role. If an existing GitHub custom role has no exact match in this list, the permissions of its inherited base role are mapped. settings.authentication.github.configuration.unsaved_changes=You have unsaved changes. @@ -1723,9 +1723,9 @@ settings.authentication.gitlab.form.secret.name=Secret settings.authentication.gitlab.form.secret.description=Secret provided by GitLab when registering the application. settings.authentication.gitlab.form.secret.required_for_url_change=Please provide your secret again to update the URL. settings.authentication.gitlab.form.synchronizeGroups.name=Synchronize user groups -settings.authentication.gitlab.form.synchronizeGroups.description=For each GitLab group they belong to, the user will be associated to a group with the same name (if it exists) in SonarQube. If enabled, the GitLab OAuth 2 application will need to provide the api scope. +settings.authentication.gitlab.form.synchronizeGroups.description=For each GitLab group they belong to, the user will be associated to a group with the same name (if it exists) in {productName}. If enabled, the GitLab OAuth 2 application will need to provide the api scope. settings.authentication.gitlab.form.allowedGroups.name=Allowed groups -settings.authentication.gitlab.form.allowedGroups.description.JIT=Only members of these groups (and sub-groups) will be allowed to authenticate. Enter the group slug as it appears in the GitLab URL, for instance `my-gitlab-group`. ⚠︎ When you turn on `Allow users to sign up`, make sure to also turn on group synchronization and provide a list of allowed groups. Otherwise, any GitLab user will be able to log in to this SonarQube instance. +settings.authentication.gitlab.form.allowedGroups.description.JIT=Only members of these groups (and sub-groups) will be allowed to authenticate. Enter the group slug as it appears in the GitLab URL, for instance `my-gitlab-group`. ⚠︎ When you turn on `Allow users to sign up`, make sure to also turn on group synchronization and provide a list of allowed groups. Otherwise, any GitLab user will be able to log in to this {productName} instance. settings.authentication.gitlab.form.allowedGroups.description.AUTO_PROVISIONING=Only members of these groups (and sub-groups) will be provisioned. Please enter the group slug as it appears in the GitLab URL, for instance `my-gitlab-group`. settings.authentication.gitlab.form.allowUsersToSignUp.name=Allow users to sign up settings.authentication.gitlab.form.allowUsersToSignUp.description=Allow new users to authenticate. When set to disabled, only existing users will be able to authenticate to the server. @@ -1734,12 +1734,12 @@ settings.authentication.gitlab.form.provisioningToken.description=Token used for settings.authentication.gitlab.applicationId.name=App ID: {0} settings.authentication.gitlab.enable_first=Enable your GitLab configuration for more provisioning options. settings.authentication.gitlab.provisioning_at_login=Just-in-Time user provisioning (default) -settings.authentication.gitlab.provisioning_at_login.description=Users are synchronized only when users log in to SonarQube. {documentation} +settings.authentication.gitlab.provisioning_at_login.description=Users are synchronized only when users log in to {productName}. {documentation} settings.authentication.gitlab.description.JIT.learn_more=Learn more about Just-in-Time provisioning with GitLab settings.authentication.gitlab.description.AUTO_PROVISIONING.learn_more=Learn more about automatic provisioning with GitLab settings.authentication.gitlab.confirm.AUTO_PROVISIONING=Switch to automatic provisioning settings.authentication.gitlab.confirm.JIT=Switch to Just-in-Time provisioning -settings.authentication.gitlab.confirm.AUTO_PROVISIONING.description=Once you transition to automatic provisioning users, groups and permissions on GitLab projects will be inherited from GitLab. You will no longer have the ability to edit them within SonarQube. Do you want to proceed with this change? +settings.authentication.gitlab.confirm.AUTO_PROVISIONING.description=Once you transition to automatic provisioning users, groups and permissions on GitLab projects will be inherited from GitLab. You will no longer have the ability to edit them within {productName}. Do you want to proceed with this change? settings.authentication.gitlab.confirm.JIT.description=Switching to Just-in-Time provisioning removes the automatic synchronization of users, groups and permissions. Users are provisioned and updated only at user login. Are you sure? settings.authentication.gitlab.confirm.insecure=Potentially insecure configuration settings.authentication.gitlab.provisioning_change.confirm_changes=Confirm change @@ -1750,7 +1750,7 @@ settings.authentication.gitlab.form.provisioning.disabled=Your current edition d settings.authentication.gitlab.configuration.unsaved_changes=You have unsaved changes. settings.authentication.gitlab.configuration.valid.JIT=Configuration is valid for Just-in-Time provisioning. settings.authentication.gitlab.configuration.valid.AUTO_PROVISIONING=Configuration is valid for Automatic provisioning. -settings.authentication.gitlab.configuration.roles_mapping.description=When synchronizing users and groups, SonarQube assigns permissions based on Gitlab user roles. You can customize the mapping of permissions. The new mapping will take effect at the next synchronization. +settings.authentication.gitlab.configuration.roles_mapping.description=When synchronizing users and groups, {productName} assigns permissions based on Gitlab user roles. You can customize the mapping of permissions. The new mapping will take effect at the next synchronization. settings.authentication.gitlab.configuration.roles_mapping.save_success=GitLab roles mapping saved successfully. settings.authentication.gitlab.configuration.roles_mapping.dialog.custom_roles_description=When a custom role name added here matches an existing GitLab custom role in any of your groups or projects, the mapping applies to all users with this custom role. If an existing GitLab custom role has no exact match in this list, the permissions of its inherited base role are mapped. @@ -1782,7 +1782,7 @@ settings.authentication.form.edit.saml=Edit SAML configuration settings.authentication.saml.configuration=SAML Configuration settings.authentication.saml.confirm.scim=Switch to automatic provisioning settings.authentication.saml.confirm.jit=Switch to Just-in-Time provisioning -settings.authentication.saml.confirm.scim.description=Once you transition to automatic provisioning, groups, users and group memberships will be managed by your identity provider. You will no longer have the ability to edit them within SonarQube. Do you want to proceed with this change? +settings.authentication.saml.confirm.scim.description=Once you transition to automatic provisioning, groups, users and group memberships will be managed by your identity provider. You will no longer have the ability to edit them within {productName}. Do you want to proceed with this change? settings.authentication.saml.confirm.jit.description=Switching to Just-in-Time provisioning removes all information provided while automatic provisioning through SCIM was active. These changes cannot be reverted. Are you sure? settings.authentication.saml.form.loading=Loading SAML configuration settings.authentication.saml.form.not_configured=SAML is not configured @@ -1819,7 +1819,7 @@ settings.pr_decoration.binding.form.name=Configuration name settings.pr_decoration.binding.form.name.help=Each DevOps Platform instance must be configured globally first, and given a unique name. Pick the instance your project is hosted on. settings.pr_decoration.binding.form.monorepo=Enable monorepository support settings.pr_decoration.binding.form.monorepo.help=Enable this setting if your project is part of a monorepository. {doc_link} -settings.pr_decoration.binding.form.monorepo.warning=This setting must be enabled for all SonarQube projects that are part of a monorepository. +settings.pr_decoration.binding.form.monorepo.warning=This setting must be enabled for all {productName} projects that are part of a monorepository. settings.pr_decoration.binding.form.azure.project=Project name settings.pr_decoration.binding.form.azure.project.help=The name of the Azure DevOps project containing your repository. You can find this name on your project's Overview page. settings.pr_decoration.binding.form.azure.repository=Repository name @@ -1850,7 +1850,7 @@ settings.mode.instance_conditions_from_other_mode=Some of the Quality Gates in t settings.mode.standard.name=Standard Experience settings.mode.mqr.name=Multi-Quality Rule (MQR) Mode settings.mode.standard.description.line1=Encompasses the traditional use of rule types such as bugs, code smells, and vulnerabilities, with a single category and severity level for each rule. -settings.mode.standard.description.line2=This approach focuses on assigning severity to a rule and its issues based on the single software quality (for example, security, reliability or maintainability) it has the largest impact on. This is the rule categorization used in SonarQube 9.9 LTA and earlier. +settings.mode.standard.description.line2=This approach focuses on assigning severity to a rule and its issues based on the single software quality (for example, security, reliability or maintainability) it has the largest impact on. This is the rule categorization used in {productName} 9.9 LTA and earlier. settings.mode.mqr.description.line1=Aims to more accurately represent the impact issues have on all software qualities. Very few issues impact only a single software quality. For instance, most vulnerabilities are also bugs. And vice versa. The MQR mode maps each rule to each of the qualities it impacts, with a separate severity rating for each quality. settings.mode.mqr.description.line2=This approach focuses on ensuring the impact of an issue on all software qualities is clear, not just the most severe one. settings.mode.save.warning=Save changes to see them reflected in your instance @@ -1931,7 +1931,7 @@ property.codefix.admin.promoted_section.title=Free - early access feature property.codefix.admin.promoted_section.content1=This no cost trial is offered to you at Sonar’s discretion. Sonar can decide to stop this trial anytime. property.codefix.admin.promoted_section.content2=At the end of the trial, this feature will be deactivated and your choice to “enable AI CodeFix” below will be ignored. Your organisation will not be charged. property.codefix.admin.serviceCheck.title=Test the AI CodeFix service -property.codefix.admin.serviceCheck.description1=Make sure this SonarQube instance can communicate with the AI CodeFix service, which requires network connectivity to function. +property.codefix.admin.serviceCheck.description1=Make sure this {productName} instance can communicate with the AI CodeFix service, which requires network connectivity to function. property.codefix.admin.serviceCheck.description2=This test is free and should only take a few seconds. property.codefix.admin.serviceCheck.learnMore=Read more about enabling AI CodeFix property.codefix.admin.serviceCheck.action=Test AI CodeFix service @@ -1939,11 +1939,11 @@ property.codefix.admin.serviceCheck.spinner.label=Waiting for AI CodeFix service property.codefix.admin.serviceCheck.result.success=The AI CodeFix service responded successfully. property.codefix.admin.serviceCheck.result.unresponsive.message=The AI CodeFix service does not respond or is not reachable. property.codefix.admin.serviceCheck.result.unresponsive.causes.title=Here are some possible causes of this error: -property.codefix.admin.serviceCheck.result.unresponsive.causes.1=The network may not be properly configured on this SonarQube instance. Please check the firewall and connectivity settings. +property.codefix.admin.serviceCheck.result.unresponsive.causes.1=The network may not be properly configured on this {productName} instance. Please check the firewall and connectivity settings. property.codefix.admin.serviceCheck.result.unresponsive.causes.2=The AI CodeFix service may be down. property.codefix.admin.serviceCheck.result.requestError=Error checking the AI CodeFix service: property.codefix.admin.serviceCheck.result.serviceError=The AI CodeFix service is reachable but returned an error. Check logs for more details. -property.codefix.admin.serviceCheck.result.unauthorized=This SonarQube instance is not allowed to use AI CodeFix. +property.codefix.admin.serviceCheck.result.unauthorized=This {productName} instance is not allowed to use AI CodeFix. property.codefix.admin.serviceCheck.result.unknown=The AI CodeFix service returned an unexpected message: #------------------------------------------------------------------------------ @@ -2272,8 +2272,8 @@ project.info.see_more_info_on_x_locs=See more information on your {0} lines of c project.info.make_home.title=Use as homepage project.info.make_home.label=Make this project my homepage application.info.make_home.label=Make this application my homepage -project.info.make_home.tooltip=This means you'll be redirected to this project whenever you log in to SonarQube or click on the top-left SonarQube logo. -application.info.make_home.tooltip=This means you'll be redirected to this application whenever you log in to SonarQube or click on the top-left SonarQube logo. +project.info.make_home.tooltip=This means you'll be redirected to this project whenever you log in to {productName} or click on the top-left {productName} logo. +application.info.make_home.tooltip=This means you'll be redirected to this application whenever you log in to {productName} or click on the top-left {productName} logo. overview.project_key.tooltip.TRK=Your project key is a unique identifier for your project. If you are using Maven, make sure the key matches the "groupId:artifactId" format. overview.project_key.tooltip.APP=Your application key is a unique identifier for your application. project.info.ai_code_assurance.title=AI Code Assurance @@ -2330,7 +2330,7 @@ quality_profiles.changelog.cca_only_changed=Clean Code attribute set to {newClea quality_profiles.changelog.impact_changed=Software impact set to {newSoftwareQuality} with severity {newSeverity}, was {oldSoftwareQuality} with severity {oldSeverity} quality_profiles.changelog.impact_added=Software impact {newSoftwareQuality} with severity {newSeverity} was added quality_profiles.changelog.impact_removed=Software impact {oldSoftwareQuality} with severity {oldSeverity} was removed -quality_profiles.changelog.sq_upgrade=Instance upgraded to SonarQube {sqVersion} +quality_profiles.changelog.sq_upgrade=Instance upgraded to {productName} {sqVersion} quality_profiles.deleted_profile=The profile {0} doesn't exist anymore quality_profiles.projects_for_default=Every project not specifically associated with a quality profile will be associated to this one by default. quality_profile.x_rules={count} rule(s) @@ -2633,7 +2633,7 @@ coding_rules.context.others.description.second=Caution: The libraries mentioned coding_rules.context.others.description.do=Do use libraries that are compatible with the frameworks you are using. coding_rules.context.others.description.dont=Don’t blindly copy and paste the fixups into your code. coding_rules.context.others.title_feedback=Help us improve -coding_rules.context.others.feedback_description_1=Let us know if the instructions we provide do not work for you. Tell us which framework you use and why our solution does not work by submitting an idea on the SonarQube productboard. +coding_rules.context.others.feedback_description_1=Let us know if the instructions we provide do not work for you. Tell us which framework you use and why our solution does not work by submitting an idea on the {productName} productboard. coding_rules.context.others.feedback_description_2=We will do our best to provide you with more relevant instructions in the future. coding_rules.context.others.feedback_description.link=Submit an idea coding_rules.create=Create @@ -2643,7 +2643,7 @@ coding_rules.custom_rule.help=Custom rules are created by administrators from te coding_rules.custom_rule.activation_notice=Note: parameters of a custom rule are not customizable on rule activation, only during creation/edit. coding_rules.custom_rule.software_quality_x={quality} software quality coding_rules.custom_rule.select_software_quality=Please select at least one software quality. -coding_rules.custom_rule.removal=Only custom rules may be deleted. When a custom rule is deleted, it is not removed from the SonarQube instance. Instead its status is set to "REMOVED", allowing relevant issues to continue to be displayed properly. +coding_rules.custom_rule.removal=Only custom rules may be deleted. When a custom rule is deleted, it is not removed from the {productName} instance. Instead its status is set to "REMOVED", allowing relevant issues to continue to be displayed properly. coding_rules.custom_rules=Custom Rules coding_rules.deactivate_in_quality_profile=Deactivate In Quality Profile coding_rules.deactivate_in_quality_profile_x=Deactivate In Quality Profile {0} @@ -2906,9 +2906,9 @@ email_notification.form.security_protocol.description=Security protocol used to email_notification.form.from_address=From address email_notification.form.from_address.description=Address emails will come from. email_notification.form.from_name=From name -email_notification.form.from_name.description=Name emails will come from (usually "SonarQube"). +email_notification.form.from_name.description=Name emails will come from (usually "{productName}"). email_notification.form.subject_prefix=Subject prefix -email_notification.form.subject_prefix.description=Prefix added to email so they can be easily recognized (usually "[SonarQube]"). +email_notification.form.subject_prefix.description=Prefix added to email so they can be easily recognized (usually "[{productName}]"). email_notification.form.save_configuration=Save configuration email_notification.form.save_configuration.create_success=Email configuration saved successfully. email_notification.form.save_configuration.update_success=Email configuration updated successfully. @@ -2923,7 +2923,7 @@ email_notification.test.modal_title=Test email email_notification.test.to_address=To email_notification.test.subject=Subject email_notification.test.message=Message -email_notification.test.message_text=This is a test message from SonarQube. +email_notification.test.message_text=This is a test message from {productName}. email_notification.test.create_test_email=Create test email email_notification.test.submit=Send test email email_notification.test.success=Your email was sent successfully @@ -2992,7 +2992,7 @@ user.x_deleted={0} (deleted) user.confirm_password.no_match=Passwords do not match login.page=Log in -login.login_to_sonarqube=Log in to SonarQube +login.login_to_sonarqube=Log in to {productName} login.login_with_x=Log in with {0} login.more_options=Log in with credentials login.unauthorized_access_alert=You are not authorized to access this page. Please log in with more privileges and try again. @@ -3875,8 +3875,8 @@ permission_templates.show_actions_for_x=Show actions for template {0} # #------------------------------------------------------------------------------ -promotion.sonarlint.title=Get the most out of SonarQube! -promotion.sonarlint.content=Take advantage of the whole ecosystem by using SonarLint, a free IDE plugin that helps you find and fix issues earlier in your workflow. Connect SonarLint to SonarQube to sync rule sets and issue states. +promotion.sonarlint.title=Get the most out of {productName}! +promotion.sonarlint.content=Take advantage of the whole ecosystem by using SonarQube for IDE, a free IDE plugin that helps you find and fix issues earlier in your workflow. Connect SonarQube for IDE to {productName} to sync rule sets and issue states. #------------------------------------------------------------------------------ # @@ -3884,14 +3884,14 @@ promotion.sonarlint.content=Take advantage of the whole ecosystem by using Sonar # #------------------------------------------------------------------------------ -sonarlint-connection.request.title=Allow SonarLint connection? -sonarlint-connection.request.description=SonarLint for {0} is requesting access to SonarQube. -sonarlint-connection.request.description2=Do you allow SonarLint to connect? This will create a token and share it with SonarLint. +sonarlint-connection.request.title=Allow SonarQube for IDE connection? +sonarlint-connection.request.description=SonarQube for IDE for {ideName} is requesting access to {productName}. +sonarlint-connection.request.description2=Do you allow SonarQube for IDE to connect? This will create a token and share it with SonarQube for IDE. sonarlint-connection.request.action=Allow connection sonarlint-connection.token-error.title=Token generation failed -sonarlint-connection.token-error.description=SonarQube was not able to generate a token. -sonarlint-connection.token-error.description2=Go back to your IDE and start again, or go to the {link} of your SonarQube account to create a new user token manually. +sonarlint-connection.token-error.description={productName} was not able to generate a token. +sonarlint-connection.token-error.description2=Go back to your IDE and start again, or go to the {link} of your {productName} account to create a new user token manually. sonarlint-connection.token-error.description2.link=Security section sonarlint-connection.connection-error.title=Token created @@ -3900,16 +3900,16 @@ sonarlint-connection.connection-error.token-name=Token name sonarlint-connection.connection-error.token-value=Token value sonarlint-connection.connection-error.next-steps=Next steps sonarlint-connection.connection-error.step1=Copy the above token. -sonarlint-connection.connection-error.step2=Go back to your IDE and paste the token in SonarLint. +sonarlint-connection.connection-error.step2=Go back to your IDE and paste the token in SonarQube for IDE. -sonarlint-connection.success.title=SonarLint connection is almost ready! -sonarlint-connection.success.description=A new '{0}' token was created and sent to SonarLint in your IDE. +sonarlint-connection.success.title=SonarQube for IDE connection is almost ready! +sonarlint-connection.success.description=A new '{0}' token was created and sent to SonarQube for IDE in your IDE. sonarlint-connection.success.last-step=Last step sonarlint-connection.success.step=Go back to your IDE to complete the setup. sonarlint-connection.unspecified-ide=an unspecified IDE -sonarlint-connected-mode-doc=documentation about SonarLint Connected Mode +sonarlint-connected-mode-doc=documentation about SonarQube for IDE Connected Mode #------------------------------------------------------------------------------ # # HELP @@ -3927,7 +3927,6 @@ formatting.example.link.example=[link label](https://www.domain.com) #------------------------------------------------------------------------------ keyboard_shortcuts_modal.title=Keyboard Shortcuts keyboard_shortcuts_modal.disable_link=Disable shortcuts -keyboard_shortcuts_modal.description= You can use the following shortcuts when navigating within SonarCloud keyboard_shortcuts_modal.global= Global keyboard_shortcuts_modal.global.open_search_bar= Open search bar keyboard_shortcuts_modal.global.open_keyboard_shortcuts_modal= Open keyboard shortcuts modal @@ -4059,8 +4058,8 @@ workspace.no_rule=The rule has been removed or never existed. # #------------------------------------------------------------------------------ marketplace.page=Marketplace -marketplace.page.description=Discover the additional benefits offered in SonarQube Commercial Editions -marketplace.page.description_best_edition=This edition includes access to all the SonarQube-SonarLint Ecosystem features! +marketplace.page.description=Discover the additional benefits offered in SonarQube Server Commercial Editions +marketplace.page.description_best_edition=This edition includes access to all the SonarQube Server-SonarQube for IDE Ecosystem features! marketplace.page.you_are_running.community=You are currently running a Community Edition. marketplace.page.you_are_running.developer=You are currently running a Developer Edition. marketplace.page.you_are_running.enterprise=You are currently running an Enterprise Edition. @@ -4159,7 +4158,7 @@ component_navigation.status.in_progress.admin.help=A background task is in progr component_navigation.status.in_progress_X.admin.help=The {type} is in progress. component_navigation.status.last_blocked_due_to_bad_license_X=Last analysis blocked due to an invalid license, which has since been corrected. Please reanalyze this {0}. -component_navigation.pr_deco.error_detected_X=We've detected an issue with your configuration. Your SonarQube instance won't be able to perform any pull request decoration. {action} +component_navigation.pr_deco.error_detected_X=We've detected an issue with your configuration. Your {productName} instance won't be able to perform any pull request decoration. {action} component_navigation.pr_deco.action.check_project_settings=Please check your project settings. component_navigation.pr_deco.action.contact_project_admin=Please contact your project administrator. @@ -4243,8 +4242,8 @@ background_tasks.failing_count=Count of projects where processing of most recent # #------------------------------------------------------------------------------ project_dump.page=Import / Export -project_dump.page.description1=Moving a project from one SonarQube instance to another is a 3 step operation: -project_dump.page.description2=Export the project, copy the generated dump on the target server, and finally import that dump from this page on the target SonarQube instance. +project_dump.page.description1=Moving a project from one {productName} instance to another is a 3 step operation: +project_dump.page.description2=Export the project, copy the generated dump on the target server, and finally import that dump from this page on the target {productName} instance. project_dump.page.description_without_import1=Export project issues, measures and measure history for import into an Enterprise Edition or higher instance of the same version and similar configuration. The export file will be generated to the file system. It must then be copied to the target file system for import. project_dump.page.description_without_import2=The export file will be generated to the file system. It must then be copied to the target file system for import. project_dump.refresh=Refresh @@ -4296,7 +4295,7 @@ system.log_level.warning.short=Current logs level has performance impacts, get b system.log_level.info=Your selection does not affect the Search Engine. system.logs_level=Logs level system.logs_level.change=Change logs level -system.new_version_available=A new version of SonarQube is available. +system.new_version_available=A new version of {productName} is available. system.restart_does_not_reload_sonar_properties=Also note that a restart will not reload the sonar.properties file. system.see_whats_new=See what's new! system.release_notes=Release Notes @@ -4305,7 +4304,7 @@ system.restart_in_progress=Restart in progress system.restart_server=Restart Server system.instance_restarting={instance} restart is in progress. Ongoing {link} are completing. system.search_nodes_title=Search Nodes -system.see_sonarqube_downloads=See All SonarQube Downloads +system.see_sonarqube_downloads=See All {productName} Downloads system.not_production_database_warning=This server ID is valid only for the embedded database, which should be considered disposable. Consider configuring an external database for long-term use prior to requesting your license. system.server_id=Server ID system.set_log_level=Set logs level @@ -4427,11 +4426,11 @@ overview.project.main_branch_no_lines_of_code=The main branch has no lines of co overview.project.main_branch_empty=The main branch of this project is empty. overview.project.branch_needs_new_analysis=The branch data is incomplete. Run a new analysis to update it. overview.project.last_analysis.date_time=Last analysis started on {0} -overview.project.next_steps.set_up_pr_deco_and_ci.admin=To benefit from more of SonarQube's features, {link_ci} and set up DevOps platform integration in your {link_project_settings}. -overview.project.next_steps.set_up_pr_deco_and_ci=To benefit from more of SonarQube's features, {link_ci} and ask a project administrator to set up DevOps platform integration. -overview.project.next_steps.set_up_pr_deco.admin=To benefit from more of SonarQube's features, set up DevOps platform integration in your {link_project_settings}. -overview.project.next_steps.set_up_pr_deco=To benefit from more of SonarQube's features, ask a project administrator to set up DevOps platform integration. -overview.project.next_steps.set_up_ci=To benefit from more of SonarQube's features, {link}. +overview.project.next_steps.set_up_pr_deco_and_ci.admin=To benefit from more of {productName}'s features, {link_ci} and set up DevOps platform integration in your {link_project_settings}. +overview.project.next_steps.set_up_pr_deco_and_ci=To benefit from more of {productName}'s features, {link_ci} and ask a project administrator to set up DevOps platform integration. +overview.project.next_steps.set_up_pr_deco.admin=To benefit from more of {productName}'s features, set up DevOps platform integration in your {link_project_settings}. +overview.project.next_steps.set_up_pr_deco=To benefit from more of {productName}'s features, ask a project administrator to set up DevOps platform integration. +overview.project.next_steps.set_up_ci=To benefit from more of {productName}'s features, {link}. overview.project.next_steps.links.project_settings=project settings overview.project.next_steps.links.set_up_ci=set up analysis in your favorite CI overview.project.software_impact.has_rating=Software Quality {softwareQuality} has rating {rating} @@ -4481,14 +4480,14 @@ overview.deprecated_profile=This Quality Profile uses {0} deprecated rules and s overview.deleted_profile={0} has been deleted since the last analysis. overview.link_to_x_profile_y=Go to {0} profile "{1}" -overview.sonarlint_ad.header=Catch issues before they fail your Quality Gate with our IDE extension, SonarLint +overview.sonarlint_ad.header=Catch issues before they fail your Quality Gate with our IDE extension, SonarQube for IDE overview.sonarlint_ad.details_1=The power of Sonar analyzers directly as you type overview.sonarlint_ad.details_2=No need to wait for your PR to pass all checks overview.sonarlint_ad.details_3=Repair flagged issues in real-time with quick fixes overview.sonarlint_ad.details_4=12 major IDE's supported (including key JetBrains and Microsoft IDE's overview.sonarlint_ad.details_5=Free forever -overview.sonarlint_ad.learn_more=Learn more about SonarLint -overview.sonarlint_ad.close_promotion=Close SonarLint promotion +overview.sonarlint_ad.learn_more=Learn more about SonarQube for IDE +overview.sonarlint_ad.close_promotion=Close SonarQube for IDE promotion overview.badges.get_badge=Badges overview.badges.title=Get project badges @@ -4521,7 +4520,7 @@ overview.badges.renew=Renew Token overview.badges.renew.description=If your project badge security token has leaked to an unsafe environment, you can renew it: overview.badges.deprecated_badge_x_y=Badges displaying {0} are deprecated and will be removed in a future version. Please choose another badge for your {1}. -overview.quality_profiles_update_after_sq_upgrade.message=Upgrade to SonarQube {sqVersion} has updated your Quality Profiles. Issues on your project may have been affected. {link} +overview.quality_profiles_update_after_sq_upgrade.message=Upgrade to {productName} {sqVersion} has updated your Quality Profiles. Issues on your project may have been affected. {link} overview.quality_profiles_update_after_sq_upgrade.link=See more details overview.activity.variations.new_analysis=New analysis: @@ -4544,7 +4543,7 @@ guiding.cayc_promotion.2.content.1=Your team or organization decides when a new guiding.cayc_promotion.3.title=Green is clean guiding.cayc_promotion.3.content.1=Quality Gate Status tells you if your new code is clean or not. Keep it green as often as possible, and your project will be production-ready. guiding.cayc_promotion.4.title=Clean at all levels -guiding.cayc_promotion.4.content.1=With SonarLint, clean code as you write it in your {value}. +guiding.cayc_promotion.4.content.1=With SonarQube for IDE, clean code as you write it in your {value}. guiding.cayc_promotion.4.content.2=When a feature is ready, analyze your {value} (commercial edition only) and make sure no issue is missed. guiding.cayc_promotion.4.content.3=Finally, rely on a thorough {value} analysis to ensure the new code is clean. guiding.replay_tour_button.1.title=Replay tour @@ -4767,11 +4766,11 @@ new_code_definition.reference_branch.description=Choose a branch as the baseline new_code_definition.reference_branch.usecase=Recommended for projects using feature branches. new_code_definition.reference_branch.notice=The main branch will be set as the reference branch when the project is created. You will be able to choose another branch as the reference branch when your project will have more branches. -new_code_definition.auto_update.branch.message=The new code definition of the following branch(es) was automatically changed on {date}, following a SonarQube upgrade, as it was exceeding the maximum value: {branchesList} {link} +new_code_definition.auto_update.branch.message=The new code definition of the following branch(es) was automatically changed on {date}, following a {productName} upgrade, as it was exceeding the maximum value: {branchesList} {link} new_code_definition.auto_update.branch.list_item={branchName}: Number of days was changed from {previousDays} to {days}. -new_code_definition.auto_update.global.message=The global new code definition was automatically changed from {previousDays} to {days} days on {date}, following a SonarQube upgrade, as it was exceeding the maximum value. {link} -new_code_definition.auto_update.ncd_page.message=The number of days was automatically changed from {previousDays} to {days} on {date}, following a SonarQube upgrade, as it was exceeding the maximum value. {link} -new_code_definition.auto_update.project.message=This project's new code definition was automatically changed from {previousDays} to {days} days on {date}, following a SonarQube upgrade, as it was exceeding the maximum value. {link} +new_code_definition.auto_update.global.message=The global new code definition was automatically changed from {previousDays} to {days} days on {date}, following a {productName} upgrade, as it was exceeding the maximum value. {link} +new_code_definition.auto_update.ncd_page.message=The number of days was automatically changed from {previousDays} to {days} on {date}, following a {productName} upgrade, as it was exceeding the maximum value. {link} +new_code_definition.auto_update.project.message=This project's new code definition was automatically changed from {previousDays} to {days} days on {date}, following a {productName} upgrade, as it was exceeding the maximum value. {link} new_code_definition.auto_update.review_link=Review new code definition #------------------------------------------------------------------------------ @@ -4785,7 +4784,7 @@ onboarding.alm.bitbucketcloud=Bitbucket Cloud onboarding.alm.gitlab=GitLab onboarding.project_analysis.header=Analyze your project -onboarding.project_analysis.description=We initialized your project on SonarQube, now it's up to you to launch analyses! +onboarding.project_analysis.description=We initialized your project on {productName}, now it's up to you to launch analyses! onboarding.project_analysis.guide_to_integrate_pipelines=follow the guide to integrating with Pipelines onboarding.create_project.manual.step1=1 of 2 @@ -4793,7 +4792,7 @@ onboarding.create_project.manual.step2=2 of 2 onboarding.create_project.manual.title=Create a local project onboarding.create_project.select_method=How do you want to create your project? onboarding.create_project.select_method.manually=Are you just testing or have an advanced use-case? Create a local project. -onboarding.create_project.select_method.devops_platform=Do you want to benefit from all of SonarQube's features (like repository import and Pull Request decoration)? +onboarding.create_project.select_method.devops_platform=Do you want to benefit from all of {productName}'s features (like repository import and Pull Request decoration)? onboarding.create_project.select_method.devops_platform_second=Create your project from your favorite DevOps platform. onboarding.create_project.select_method.no_alm_yet.admin=First, you need to set up a DevOps platform configuration. @@ -4837,10 +4836,10 @@ onboarding.create_project.select_all_repositories=Select all available repositor onboarding.create_application.key.description=If specified, this value is used as the key instead of generating it from the name of the Application. Only letters, digits, dashes and underscores can be used. onboarding.create_project.pat_form.title=Grant access to your repositories -onboarding.create_project.pat_form.help.azure=SonarQube needs a personal access token to access and list your repositories from Azure DevOps. -onboarding.create_project.pat_form.help.bitbucket=SonarQube needs a personal access token to access and list your repositories from Bitbucket Server. -onboarding.create_project.pat_form.help.bitbucket_cloud=SonarQube needs an app password to access and list your repositories from Bitbucket Cloud. -onboarding.create_project.pat_form.help.gitlab=SonarQube needs a personal access token to access and list your projects from GitLab. +onboarding.create_project.pat_form.help.azure={productName} needs a personal access token to access and list your repositories from Azure DevOps. +onboarding.create_project.pat_form.help.bitbucket={productName} needs a personal access token to access and list your repositories from Bitbucket Server. +onboarding.create_project.pat_form.help.bitbucket_cloud={productName} needs an app password to access and list your repositories from Bitbucket Cloud. +onboarding.create_project.pat_form.help.gitlab={productName} needs a personal access token to access and list your projects from GitLab. onboarding.create_project.pat_form.pat_required=Please enter a personal access token onboarding.create_project.wrong_binding_count=You must have at least 1 {alm} instance configured in order to use this method, but none were found. Either create a local project, or contact your system administrator. onboarding.create_project.wrong_binding_count.admin=You must have at least 1 {alm} instance configured in order to use this method. You can configure instances under {url}. @@ -4859,22 +4858,22 @@ onboarding.create_project.pat.expired.info_message_contact=If this does not fix onboarding.create_project.pat_help.instructions.azure=To create a Personal Access Token on Azure, {link} and make sure to select the “Code (Read & Write)” scope. onboarding.create_project.pat_help.instructions.link.azure=generate a token -onboarding.create_project.pat_help.instructions.gitlab=To create a Personal Access Token on GitLab, {link} by setting a name, for example “SonarQube” and selecting the “read_api” scope. +onboarding.create_project.pat_help.instructions.gitlab=To create a Personal Access Token on GitLab, {link} by setting a name, for example “{productName}” and selecting the “read_api” scope. onboarding.create_project.pat_help.instructions.gitlab.link=generate a token onboarding.enter_username.instructions.bitbucket_cloud=You can find your username in your {link} onboarding.enter_username.instructions.bitbucket_cloud.link=BitBucket profile settings -onboarding.create_project.enter_password.instructions.bitbucket_cloud=To create an app password on BitBucket, {link} by setting a name, for example “SonarQube” and selecting the “Repositories: Read” permissions. +onboarding.create_project.enter_password.instructions.bitbucket_cloud=To create an app password on BitBucket, {link} by setting a name, for example “{productName}” and selecting the “Repositories: Read” permissions. onboarding.create_project.enter_password.instructions.bitbucket_cloud.link=add an app password -onboarding.create_project.pat_help.instructions.bitbucket_server=To create a Personal Access Token on BitBucket Server, go to {link} and click on “Create token”. Set a name, for example “SonarQube” and select the following permissions “Projects: Read” “Repositories: Read”. +onboarding.create_project.pat_help.instructions.bitbucket_server=To create a Personal Access Token on BitBucket Server, go to {link} and click on “Create token”. Set a name, for example “{productName}” and select the following permissions “Projects: Read” “Repositories: Read”. onboarding.create_project.pat_help.instructions.bitbucket_server.link=HTTP access tokens -onboarding.create_project.pat_help.instructions2.bitbucket=Set a name, for example "SonarQube", and select the following permissions: -onboarding.create_project.pat_help.instructions2.bitbucketcloud=Set a name, for example "SonarQube", and select the following permissions: +onboarding.create_project.pat_help.instructions2.bitbucket=Set a name, for example "{productName}", and select the following permissions: +onboarding.create_project.pat_help.instructions2.bitbucketcloud=Set a name, for example "{productName}", and select the following permissions: -onboarding.create_project.pat_help.instructions2.gitlab=Set a name, for example "SonarQube", and select the following scope: +onboarding.create_project.pat_help.instructions2.gitlab=Set a name, for example "{productName}", and select the following scope: onboarding.create_project.pat_help.gitlab.read_api_permission=read_api onboarding.create_project.no_bbs_projects=No projects could be fetched from Bitbucket Server. Contact your system administrator, or {link}. @@ -4919,12 +4918,12 @@ onboarding.create_project.bitbucket.title=Bitbucket Server project onboarding onboarding.create_project.bitbucket.subtitle=Import projects from one of your Bitbucket server workspaces onboarding.create_project.bitbucket.subtitle.with_monorepo=Import projects from one of your Bitbucket server workspaces or {monorepoSetupLink}. onboarding.create_project.x_repositories_selected={count} {count, plural, one {repository} other {repositories}} selected -onboarding.create_project.x_repository_created={count} {count, plural, one {repository} other {repositories}} will be created as {count, plural, one {a project} other {projects}} in SonarQube +onboarding.create_project.x_repository_created={count} {count, plural, one {repository} other {repositories}} will be created as {count, plural, one {a project} other {projects}} in {productName} onboarding.create_project.please_dont_leave=If you leave the page the import could fail. Are you sure you want to leave? onboarding.create_project.import_in_progress={count} of {total} projects imported. Please do not close this page until the import is complete. onboarding.create_project.monorepo.title={almName} monorepo project onboarding -onboarding.create_project.monorepo.subtitle=Create multiple SonarQube projects corresponding to the same monorepo and bound to the same repository. +onboarding.create_project.monorepo.subtitle=Create multiple {productName} projects corresponding to the same monorepo and bound to the same repository. onboarding.create_project.monorepo.doc_link=Learn more and get help setting up your monorepo onboarding.create_project.monorepo.choose_organization_and_repository=Choose the organization and the repository onboarding.create_project.monorepo.choose_dop_setting=Choose the {almKey} configuration @@ -4932,8 +4931,8 @@ onboarding.create_project.monorepo.choose_organization=Choose the organization onboarding.create_project.monorepo.choose_organization.placeholder=List of organizations onboarding.create_project.monorepo.choose_repository=Choose the repository onboarding.create_project.monorepo.choose_repository.placeholder=List of repositories -onboarding.create_project.monorepo.choose_repository.no_already_bound_projects=This repository has no imported projects in SonarQube -onboarding.create_project.monorepo.choose_repository.existing_already_bound_projects=This repository has already been imported, and it's linked to these projects in SonarQube: +onboarding.create_project.monorepo.choose_repository.no_already_bound_projects=This repository has no imported projects in {productName} +onboarding.create_project.monorepo.choose_repository.existing_already_bound_projects=This repository has already been imported, and it's linked to these projects in {productName}: onboarding.create_project.monorepo.no_orgs=We couldn't load any organizations with your key. Contact an administrator. onboarding.create_project.monorepo.no_orgs_admin=We couldn't load any organizations. Make sure the {almKey} App is installed in at least one organization and check the {almKey} instance configuration in the {link}. onboarding.create_project.monorepo.no_projects=No projects could be fetch from {almKey}. Contact your system administrator. @@ -5073,12 +5072,12 @@ onboarding.tutorial.ci_outro.all_set.title=You're all set! onboarding.tutorial.ci_outro.done=And you are done! onboarding.tutorial.ci_outro.refresh_text=If everything is running successfully, once the analysis is complete you'll be redirected to the Overview page of your project where the new analysis results will be displayed. This can take a few minutes. onboarding.tutorial.ci_outro.commit=Commit and push your code to start the analysis. -onboarding.tutorial.ci_outro.commit.why.gitlab=Each new push you make on your branches or merge requests will trigger a new analysis in SonarQube. We will decorate merge requests directly on GitLab for you. -onboarding.tutorial.ci_outro.commit.why.github=Each new push you make on your branches or pull requests will trigger a new analysis in SonarQube. We will decorate pull requests directly on GitHub for you. -onboarding.tutorial.ci_outro.commit.why.bitbucket=Each new push you make on your branches or pull requests will trigger a new analysis in SonarQube. We will decorate pull requests directly on Bitbucket for you. -onboarding.tutorial.ci_outro.commit.why.bitbucketcloud=Each new push you make on your branches or pull requests will trigger a new analysis in SonarQube. We will decorate pull requests directly on Bitbucket for you. -onboarding.tutorial.ci_outro.commit.why.azure=Each new push you make on your branches or pull requests will trigger a new analysis in SonarQube. We will decorate pull requests directly on Azure for you. -onboarding.tutorial.ci_outro.commit.why.no_branches=Each new push you make on your main branch will trigger a new analysis in SonarQube. +onboarding.tutorial.ci_outro.commit.why.gitlab=Each new push you make on your branches or merge requests will trigger a new analysis in {productName}. We will decorate merge requests directly on GitLab for you. +onboarding.tutorial.ci_outro.commit.why.github=Each new push you make on your branches or pull requests will trigger a new analysis in {productName}. We will decorate pull requests directly on GitHub for you. +onboarding.tutorial.ci_outro.commit.why.bitbucket=Each new push you make on your branches or pull requests will trigger a new analysis in {productName}. We will decorate pull requests directly on Bitbucket for you. +onboarding.tutorial.ci_outro.commit.why.bitbucketcloud=Each new push you make on your branches or pull requests will trigger a new analysis in {productName}. We will decorate pull requests directly on Bitbucket for you. +onboarding.tutorial.ci_outro.commit.why.azure=Each new push you make on your branches or pull requests will trigger a new analysis in {productName}. We will decorate pull requests directly on Azure for you. +onboarding.tutorial.ci_outro.commit.why.no_branches=Each new push you make on your main branch will trigger a new analysis in {productName}. onboarding.tutorial.ci_outro.refresh=This page will then refresh with your analysis results. onboarding.tutorial.ci_outro.refresh.why=If the page doesn't refresh after a while, please double-check the analysis configuration, and check your logs. onboarding.tutorial.other.project_key.sentence=Create a {file} file in your repository and paste the following code: @@ -5086,7 +5085,7 @@ onboarding.tutorial.other.project_key.monorepo.sentence=Create a {file} file at onboarding.tutorial.other.project_key.monorepo.info=Repeat this step for all the projects in your monorepo onboarding.tutorial.cfamilly.compilation_database_info=If you have trouble using the Build Wrapper, you can try one of the alternative methods to {link}. onboarding.tutorial.cfamilly.compilation_database_info.link=generate a compilation database -onboarding.tutorial.cfamily.examples_repositories_description=Check out our C and C++ sample projects with SonarQube analysis configured +onboarding.tutorial.cfamily.examples_repositories_description=Check out our C and C++ sample projects with {productName} analysis configured onboarding.tutorial.page.title=Analysis Method @@ -5110,7 +5109,7 @@ onboarding.tutorial.breadcrumbs.gitlab-ci=GitLab CI onboarding.tutorial.breadcrumbs.azure-pipelines=Azure Pipelines onboarding.tutorial.breadcrumbs.bitbucket-pipelines=Bitbucket Pipelines onboarding.mode.help.manual=Use this for testing or advanced use-case. Other modes are recommended to help you set up your CI environment. -onboarding.mode.help.otherci=SonarQube integrates with your workflow no matter which CI tool you're using. +onboarding.mode.help.otherci={productName} integrates with your workflow no matter which CI tool you're using. onboarding.tutorial.with.yaml.gradle=Update your {groovy} or {kotlin} file with the {sq} plugin and its configuration: @@ -5158,7 +5157,7 @@ onboarding.tutorial.with.gitlab_ci.project_key.objectivec.step2=Create a {file} onboarding.tutorial.with.gitlab_ci.variables.title=Add environment variables onboarding.tutorial.with.gitlab_ci.variables.description.link=Settings > CI/CD > Variables -onboarding.tutorial.with.gitlab_ci.variables.section.title=Define the SonarQube Token environment variable. +onboarding.tutorial.with.gitlab_ci.variables.section.title=Define the {productName} Token environment variable. onboarding.tutorial.with.gitlab_ci.variables.section.description=In GitLab, go to {link} to add the following variable and make sure it is available for your project: onboarding.tutorial.with.gitlab_ci.variables.edit.token.tooltip=Use an existing token or generate a new one. onboarding.tutorial.with.gitlab_ci.variables.step1=Key {value} {extra} @@ -5167,13 +5166,13 @@ onboarding.tutorial.with.gitlab_ci.variables.step3=Uncheck the {value} checkbox. onboarding.tutorial.with.gitlab_ci.variables.step3.value=Protect Variable onboarding.tutorial.with.gitlab_ci.variables.section.step4=Check the {value} checkbox. onboarding.tutorial.with.gitlab_ci.variables.section.step4.value=Mask Variable -onboarding.tutorial.with.gitlab_ci.variables.section2.title=Define the SonarQube URL environment variable. +onboarding.tutorial.with.gitlab_ci.variables.section2.title=Define the {productName} URL environment variable. onboarding.tutorial.with.gitlab_ci.variables.section2.description=Still in {link} add a new variable and make sure it is available for your project: onboarding.tutorial.with.gitlab_ci.variables.section2.step4=Leave the {value} checkbox unchecked. onboarding.tutorial.with.gitlab_ci.yaml.title=Create or update the configuration file onboarding.tutorial.with.gitlab_ci.yaml.description=Create or update your {filename} file with the following content. onboarding.tutorial.with.gitlab_ci.yaml.filename=.gitlab-ci.yml -onboarding.tutorial.with.gitlab_ci.yaml.baseconfig=Note that this is a minimal base configuration to run a SonarQube analysis on your main branch and merge requests, and fetch the vulnerability report (if applicable). +onboarding.tutorial.with.gitlab_ci.yaml.baseconfig=Note that this is a minimal base configuration to run a {productName} analysis on your main branch and merge requests, and fetch the vulnerability report (if applicable). onboarding.tutorial.with.gitlab_ci.yaml.existing=If you already have a pipeline configured and running, you might want to add the example above to your existing yml file. onboarding.tutorial.with.gitlab_ci.yaml.premium=GitLab vulnerability report is only available with GitLab Ultimate. You may safely remove the sonarqube-vulnerability-report stage if you have not subscribed to this service. @@ -5188,7 +5187,7 @@ onboarding.tutorial.with.jenkins.prereqs.plugins.branch_source.bitbucketcloud=Bi onboarding.tutorial.with.jenkins.prereqs.plugins.branch_source.github=GitHub Branch Source plugin for Jenkins - version 2.7.1 or later onboarding.tutorial.with.jenkins.prereqs.plugins.branch_source.gitlab=GitLab Branch Source plugin for Jenkins - version 1.5.3 or later onboarding.tutorial.with.jenkins.prereqs.plugins.gitlab_plugin=GitLab plugin for Jenkins - version 1.5.13 or later -onboarding.tutorial.with.jenkins.prereqs.plugins.sonar_scanner=SonarQube Scanner plugin for Jenkins - version 2.11 or later +onboarding.tutorial.with.jenkins.prereqs.plugins.sonar_scanner={productName} Scanner plugin for Jenkins - version 2.11 or later onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide=For a step by step guide on installing and configuring those plugins in Jenkins, visit the {link} documentation page. onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link=Analysis Prerequisites onboarding.tutorial.with.jenkins.prereqs.following_are_recommendations=We recommend using the configuration in the following steps for the best results, but you can customize it as needed. @@ -5406,13 +5405,13 @@ onboarding.tutorial.with.jenkins.dotnet.scanner.prereqs.step5.sentence=Under {in onboarding.tutorial.with.jenkins.dotnet.scanner.prereqs.step5.sentence.install_from=Install from GitHub onboarding.tutorial.with.jenkins.dotnet.scanner.prereqs.step5.sentence.install_auto=Install automatically -onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.replace.sentence=Make sure to replace {default} with the name you gave to your SonarQube Scanner tool {in_jenkins}. +onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.replace.sentence=Make sure to replace {default} with the name you gave to your {productName} Scanner tool {in_jenkins}. onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.replace.sentence.default=SonarScanner onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.replace.sentence.in_jenkins=in Jenkins -onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help1.sentence=To get the name of your SonarQube Scanner tool in Jenkins, navigate to {path}. +onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help1.sentence=To get the name of your {productName} Scanner tool in Jenkins, navigate to {path}. onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help1.sentence.path=Manage Jenkins > Global Tool Configuration onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help2.sentence=The name is located under the {path} section, in the {name} field. -onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help2.sentence.path=SonarQube Scanner > SonarQube Scanner installations +onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help2.sentence.path={productName} Scanner > {productName} Scanner installations onboarding.tutorial.with.jenkins.jenkinsfile.other.step3.help2.sentence.name=Name onboarding.tutorial.with.jenkins.jenkinsfile.cfamilly.agent_setup=We assume the Jenkins agent has the necessary tools to build your project. @@ -5420,16 +5419,16 @@ onboarding.tutorial.with.jenkins.jenkinsfile.cfamilly.agent_setup=We assume the onboarding.tutorial.with.azure_pipelines.os=What is your agent host? onboarding.tutorial.with.azure_pipelines.architecture=What is your agent architecture? onboarding.tutorial.with.azure_pipelines.title=Analyze your project with Azure DevOps Pipelines -onboarding.tutorial.with.azure_pipelines.ExtensionInstallation.title=Install SonarQube extension for Azure DevOps +onboarding.tutorial.with.azure_pipelines.ExtensionInstallation.title=Install {productName} extension for Azure DevOps onboarding.tutorial.with.azure_pipelines.ExtensionInstallation.sentence=From your Azure DevOps instance, navigate to the Visual Studio Marketplace and install the {link} by clicking the {button} button. -onboarding.tutorial.with.azure_pipelines.ExtensionInstallation.sentence.link=SonarQube extension +onboarding.tutorial.with.azure_pipelines.ExtensionInstallation.sentence.link={productName} extension onboarding.tutorial.with.azure_pipelines.ExtensionInstallation.sentence.button=Get it free -onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.title=Add a new SonarQube Service Endpoint in your project +onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.title=Add a new {productName} Service Endpoint in your project onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step1.sentence=In Azure DevOps, go to {menu}. onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step1.sentence.menu=Project settings > Service connections onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step2.sentence=Add a new service connection of type {type}. -onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step2.sentence.type=SonarQube -onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence=Enter your SonarQube server url: {url} {button} +onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step2.sentence.type={productName} +onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence=Enter your {productName} server url: {url} {button} onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence=Enter an existing token, or a newly generated one onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence=Enter a memorable connection name. onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step6.sentence=Create the service connection. @@ -5457,7 +5456,7 @@ onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.sentence.pipelin onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.sentence.task=Prepare Analysis Configuration onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.sentence.before=before onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint.sentence=Select the {endpoint} you created in Step 2. -onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint.sentence.endpoint=SonarQube server endpoint +onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint.sentence.endpoint={productName} server endpoint onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis=Under {section}, select {run_analysis_value}. onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.section=Choose the way to run the analysis onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.values.dotnet=Integrate with MSBuild @@ -5486,11 +5485,11 @@ onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java_installer.pre-insta onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java=Edit or add a new {0} task: onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.settings.sentence=Under {section}, check {option} onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.settings.sentence.section=Code Analysis -onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.settings.sentence.option=Run SonarQube or SonarCloud Analysis -onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.sentence=Add a new {task} task to publish SonarQube's Quality Gate results on your build pipeline summary. -onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.info.sentence1=This task may increase your build time as your pipeline will have to wait for SonarQube to process the analysis report. It is highly recommended but optional. +onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.settings.sentence.option=Run {productName} Analysis +onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.sentence=Add a new {task} task to publish {productName}'s Quality Gate results on your build pipeline summary. +onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.info.sentence1=This task may increase your build time as your pipeline will have to wait for {productName} to process the analysis report. It is highly recommended but optional. onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.sentence.task=Publish Quality Gate Result -onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration.sentence=Under the {tab} tab of your pipeline, check {continuous_integration} and select all the branches for which you want the SonarQube analysis to run automatically. +onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration.sentence=Under the {tab} tab of your pipeline, check {continuous_integration} and select all the branches for which you want the {productName} analysis to run automatically. onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration.sentence.tab=Triggers onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration.sentence.continuous_integration=Enable continuous integration onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration.no_branches.sentence=Under the {tab} tab of your pipeline, check {continuous_integration} and select the main branch @@ -5524,13 +5523,13 @@ branch_like_navigation.orphan_pull_requests=Orphan Pull Requests branch_like_navigation.orphan_pull_requests.tooltip=When the base of a Pull Request is deleted, this Pull Request becomes orphan. branch_like_navigation.for_merge_into_x_from_y=for merge into {target} from {branch} branch_like_navigation.for_merge_into_x_from_y.title=for merge into {0} from {1} -branch_like_navigation.no_branch_support.title=Get the most out of SonarQube with branch and PR/MR analysis -branch_like_navigation.no_branch_support.title.pr=Get the most out of SonarQube with branch and PR analysis -branch_like_navigation.no_branch_support.title.mr=Get the most out of SonarQube with branch and MR analysis -branch_like_navigation.no_branch_support.content=With Developer Edition you can analyze every pull/merge request. You can also watch the quality of your release branches by analyzing each one individually in SonarQube. -branch_like_navigation.no_branch_support.content_x.pr=With Developer Edition you can analyze every pull request and get the results in {0}. You can also watch the quality of your release branches by analyzing each one individually in SonarQube. -branch_like_navigation.no_branch_support.content_x.mr=With Developer Edition you can analyze every merge request and get the results in {0}. You can also watch the quality of your release branches by analyzing each one individually in SonarQube. -branch_like_navigation.only_one_branch.title=Learn how to analyze branches in SonarQube +branch_like_navigation.no_branch_support.title=Get the most out of {productName} with branch and PR/MR analysis +branch_like_navigation.no_branch_support.title.pr=Get the most out of {productName} with branch and PR analysis +branch_like_navigation.no_branch_support.title.mr=Get the most out of {productName} with branch and MR analysis +branch_like_navigation.no_branch_support.content=With Developer Edition you can analyze every pull/merge request. You can also watch the quality of your release branches by analyzing each one individually in {productName}. +branch_like_navigation.no_branch_support.content_x.pr=With Developer Edition you can analyze every pull request and get the results in {alm}. You can also watch the quality of your release branches by analyzing each one individually in {productName}. +branch_like_navigation.no_branch_support.content_x.mr=With Developer Edition you can analyze every merge request and get the results in {alm}. You can also watch the quality of your release branches by analyzing each one individually in {productName}. +branch_like_navigation.only_one_branch.title=Learn how to analyze branches in {productName} branch_like_navigation.only_one_branch.content=Quickly set up branch analysis and get separate insights for each of your branches and Pull Requests. branch_like_navigation.only_one_branch.documentation=Branches documentation branch_like_navigation.only_one_branch.pr_analysis=Pull Request analysis @@ -5638,8 +5637,8 @@ users.login_start_with_letter_or_number=Login should start with _ or alphanumeri users.email=Email users.email.invalid=Invalid email users.last_connection=Last connection -users.last_sonarlint_connection=Last SonarLint connection -users.last_sonarlint_connection.help_text=The time of the last connection from SonarLint indicates that the user used SonarLint in connected mode. +users.last_sonarlint_connection=Last SonarQube for IDE connection +users.last_sonarlint_connection.help_text=The time of the last connection from SonarQube for IDE indicates that the user used SonarQube for IDE in connected mode. users.update_users_groups=Update {0}'s group membership users.view_users_groups=View {0}'s group membership users.update_groups=Update Groups @@ -5654,11 +5653,11 @@ users.remove=Remove user users.search_description=Search users by login or name users.activity_filter.label=Filter users by activity users.activity_filter.placeholder=All users -users.activity_filter.helptext.sonarqube=Users are considered active if they connected to SonarQube at least once in the past 30 days. -users.activity_filter.helptext.sonarlint=Users are considered active with SonarLint if they used SonarLint in connected mode at least once in the past 30 days. +users.activity_filter.helptext.sonarqube=Users are considered active if they connected to {productName} at least once in the past 30 days. +users.activity_filter.helptext.sonarlint=Users are considered active with SonarQube for IDE if they used SonarQube for IDE in connected mode at least once in the past 30 days. users.activity_filter.all_users=All users -users.activity_filter.active_sonarlint_users=Active users with SonarLint -users.activity_filter.active_sonarqube_users=Active users without SonarLint +users.activity_filter.active_sonarlint_users=Active users with SonarQube for IDE +users.activity_filter.active_sonarqube_users=Active users without SonarQube for IDE users.activity_filter.inactive_users=Inactive users users.tokens=Tokens users.user_X_tokens=Tokens of {user} @@ -5691,12 +5690,12 @@ users.tokens.new_token_created=New token "{0}" has been created. Make sure you c users.generate_new_token=Generate New Token users.new_token=New token value users.change_admin_password.page=Change password -users.change_admin_password.instance_is_at_risk=Secure your SonarQube instance +users.change_admin_password.instance_is_at_risk=Secure your {productName} instance users.change_admin_password.header=Default Administrator credentials are still used -users.change_admin_password.description=Your SonarQube instance is still using default administrator credentials. You must change the password for the 'admin' account to secure your SonarQube instance. +users.change_admin_password.description=Your {productName} instance is still using default administrator credentials. You must change the password for the 'admin' account to secure your {productName} instance. users.change_admin_password.form.header=Change the password for user 'admin' users.change_admin_password.form.success=The admin user's password was successfully changed. -users.change_admin_password.form.continue_to_app=Continue to SonarQube +users.change_admin_password.form.continue_to_app=Continue to {productName} users.filter.by=Filter by #------------------------------------------------------------------------------ @@ -5734,7 +5733,7 @@ maintenance.migration_not_supported.text=Migration is not supported on embedded maintenance.upgrade_database=Upgrade Database maintenance.upgrade_database.1=The database upgrade can take several minutes. maintenance.upgrade_database.2=It is mandatory to back up database before upgrading. -maintenance.upgrade_database.3=Make sure you have followed the steps from the SonarQube Upgrade guide. +maintenance.upgrade_database.3=Make sure you have followed the steps from the {productName} Upgrade guide. maintenance.upgrade=Upgrade maintenance.database_migration=Database Migration maintenance.database_is_up_to_date=Database is up-to-date @@ -5743,14 +5742,14 @@ maintenance.sonarqube_is_down.text=Something went wrong. Please contact your sys maintenance.try_again=Try Again maintenance.is_under_maintenance={instance} is under maintenance maintenance.sonarqube_is_under_maintenance.1=While waiting, install {link} in your IDE! -maintenance.sonarqube_is_under_maintenance_link.1=SonarLint +maintenance.sonarqube_is_under_maintenance_link.1=SonarQube for IDE maintenance.sonarqube_is_under_maintenance.2=If you are an administrator and have no idea why this message is being shown, you should read the {link}. maintenance.sonarqube_is_under_maintenance_link.2=upgrade guide maintenance.is_starting={instance} is starting maintenance.is_up={instance} is up maintenance.all_systems_opetational=All systems operational. maintenance.is_offline={instance} is offline -maintenance.sonarqube_is_offline.text=The connection to SonarQube is lost. Please contact your system administrator. +maintenance.sonarqube_is_offline.text=The connection to {productName} is lost. Please contact your system administrator. maintenance.running.progress={completed} migrations completed out of {total} maintenance.running.estimate=Estimated completion time: {date} @@ -5767,13 +5766,13 @@ indexation.progression={0} out of {1} projects reindexed. indexation.progression_with_error={count} out of {total} projects reindexed with some {link}. indexation.progression_with_error.link=tasks failing indexation.completed=All project data has been reloaded. -indexation.completed_with_error=SonarQube completed the reload of project data. Some {link} causing some projects to remain unavailable. +indexation.completed_with_error={productName} completed the reload of project data. Some {link} causing some projects to remain unavailable. indexation.completed_with_error.link=tasks failed or canceled indexation.admin_link=See {link} for more information. indexation.page_unavailable.title.issues=Issues page is temporarily unavailable indexation.page_unavailable.title.portfolios=Portfolios page is temporarily unavailable indexation.page_unavailable.title={componentQualifier} {componentName} is temporarily unavailable -indexation.page_unavailable.description=SonarQube is reindexing project data. +indexation.page_unavailable.description={productName} is reindexing project data. indexation.page_unavailable.description.additional_information=This page is unavailable until this process is complete. {link} indexation.filter_unavailable.description=This filter is unavailable until this process is complete. indexation.learn_more=Learn more: -- 2.39.5