Merge pull request #9861 from jakemcdermott/fix-9296

Fix non-translatable template string

SUMMARY
The template string for the trademark doesn't seem like it can be used for a valid translation key. This caused the raw variable to be displayed for production builds instead of a readable string.  see: #9296 (comment)
ADDITIONAL INFORMATION
Screenshots, after applying this patch:
development environment


production build

Reviewed-by: Kersom <None>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-04-09 16:53:36 +00:00 committed by GitHub
commit 8a86867f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,15 @@ function About({ version, isOpen, onClose, i18n }) {
};
const speechBubble = createSpeechBubble();
const copyright = i18n._(t`Copyright`);
const redHatInc = i18n._(t`Red Hat, Inc.`);
return (
<AboutModal
isOpen={isOpen}
onClose={onClose}
productName={`Ansible ${BrandName}`}
trademark={i18n._(t`Copyright ${new Date().getFullYear()} Red Hat, Inc.`)}
trademark={`${copyright} ${new Date().getFullYear()} ${redHatInc}`}
brandImageSrc="/static/media/logo-header.svg"
brandImageAlt={i18n._(t`Brand Image`)}
>