-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5233 from newrelic/clang/mt-disclaimer
Add machine translation disclaimer
- Loading branch information
Showing
10 changed files
with
139 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { css } from '@emotion/react'; | ||
import { | ||
Callout, | ||
CreateIssueButton, | ||
Icon, | ||
Trans, | ||
useTranslation, | ||
Link, | ||
} from '@newrelic/gatsby-theme-newrelic'; | ||
|
||
const MachineTranslationCallout = ({ englishHref }) => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<Callout | ||
variant="important" | ||
title=" " | ||
css={css` | ||
margin: 2em 0; | ||
padding: 0.5em; | ||
`} | ||
> | ||
<div | ||
css={css` | ||
display: flex; | ||
align-items: center; | ||
> * { | ||
margin: 0 1em; | ||
} | ||
@media screen and (max-width: 1240px) { | ||
flex-direction: column; | ||
align-items: flex-start; | ||
> * { | ||
margin: 1em 0; | ||
} | ||
> :last-child { | ||
align-self: flex-end; | ||
} | ||
} | ||
`} | ||
> | ||
<Icon name="globe" size="2em" /> | ||
<div> | ||
<h4>{t('machineTranslation.calloutHeading')}</h4> | ||
<Trans i18nKey="machineTranslation.calloutBody" parent="p"> | ||
In the event of any inconsistency between the English version and | ||
the translated version, the{' '} | ||
<Link to={englishHref} shouldAutoLocalize={false}> | ||
English version | ||
</Link> | ||
shall prevail. Please visit{' '} | ||
<Link to="/docs/licenses/translated-documentation/translation-disclaimer/"> | ||
this page | ||
</Link>{' '} | ||
for more information. | ||
</Trans> | ||
</div> | ||
<CreateIssueButton | ||
variant="outline" | ||
css={css` | ||
border-color: #8a7800; | ||
`} | ||
labels={['i18n']} | ||
instrumentation={{ component: 'MachineTranslationCallout' }} | ||
/> | ||
</div> | ||
</Callout> | ||
); | ||
}; | ||
|
||
MachineTranslationCallout.propTypes = { | ||
englishHref: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default MachineTranslationCallout; |
14 changes: 14 additions & 0 deletions
14
src/content/docs/licenses/translated-documentation/translation-disclaimer.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Translation disclaimer | ||
tags: | ||
- Licenses | ||
- License information | ||
- Translation | ||
metaDescription: 'Information about translations of New Relic documents' | ||
--- | ||
|
||
The official version of the Documentation is in English. Portions of the New Relic Documentation may be translated for your convenience as shown on this site. | ||
|
||
Translated content may contain errors, discrepancies, or differences created in the translation, are not binding, and have no legal effect for enforcement or compliance purposes. New Relic does not make any warranty, express or implied, as to the accuracy, reliability, or correctness of any translated Documentation from the English original to any other language. | ||
|
||
Any guarantees or commitments in your Agreement with New Relic that the Services, products, or other offerings conform or are consistent with the Documentation do not apply to the extent to which the Documentation has been translated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters