mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
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:
commit
8a86867f69
@ -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`)}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user