Skip to content

Commit 1121f6a

Browse files
committed
localization issues
Issue: AAH-2172
1 parent a6fa789 commit 1121f6a

File tree

2 files changed

+70
-28
lines changed

2 files changed

+70
-28
lines changed
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.footer-link {
2+
padding-right: 16px;
3+
}

src/containers/landing/landing-page.tsx

+67-28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { t } from '@lingui/macro';
2-
import { Title } from '@patternfly/react-core';
1+
import { Trans, t } from '@lingui/macro';
32
import * as React from 'react';
43
import {
54
AlertList,
@@ -11,8 +10,7 @@ import {
1110
} from 'src/components';
1211
import { AppContext } from 'src/loaders/app-context';
1312
import { RouteProps, withRouter } from 'src/utilities';
14-
15-
13+
import './landing-page.scss';
1614

1715
interface IState {
1816
alerts: AlertType[];
@@ -59,14 +57,21 @@ export class LandingPage extends React.Component<RouteProps, IState> {
5957
<br />
6058

6159
<p>
62-
{t`Use the`}{' '}
63-
<a href='https://galaxy.ansible.com/search?deprecated=false&keywords=&order_by=-relevance'>{t`Search page`}</a>{' '}
64-
{t`to find content for your project, then download them onto your Ansible host using`}{' '}
65-
<a
66-
href='https://docs.ansible.com/ansible/latest/reference_appendices/galaxy.html#the-command-line-tool'
67-
target='_blanck'
68-
>{t`ansible-galaxy`}</a>
69-
{t`, the command line tool that comes bundled with Ansible.`}
60+
<Trans>
61+
Use the{' '}
62+
<a href='https://galaxy.ansible.com/search?deprecated=false&keywords=&order_by=-relevance'>
63+
Search page
64+
</a>{' '}
65+
to find content for your project, then download them onto
66+
your Ansible host using{' '}
67+
<a
68+
href='https://docs.ansible.com/ansible/latest/reference_appendices/galaxy.html#the-command-line-tool'
69+
target='_blanck'
70+
>
71+
ansible-galaxy
72+
</a>
73+
, the command line tool that comes bundled with Ansible.
74+
</Trans>
7075
</p>
7176
</React.Fragment>
7277
}
@@ -81,14 +86,25 @@ export class LandingPage extends React.Component<RouteProps, IState> {
8186
<br />
8287

8388
<p>
84-
{t`Red Hat is working on exciting new Ansible content development capabilities within the context of`}{' '}
85-
<a
86-
href='https://www.redhat.com/en/engage/project-wisdom?extIdCarryOver=true&sc_cid=701f2000001OH6uAAG'
87-
target='_blank'
88-
rel='noopener noreferrer'
89-
>{t`Project Wisdom`}</a>{' '}
90-
{t`to help other automators build Ansible content. Your roles and collections may be used as training data for a machine learning model that provides Ansible automation content recommendations. If you have concerns, please contact the Ansible team at`}{' '}
91-
<a href='mailto:ansible-content-ai@redhat.com'>{t`ansible-content-ai@redhat.com`}</a>
89+
<Trans>
90+
Red Hat is working on exciting new Ansible content
91+
development capabilities within the context of{' '}
92+
<a
93+
href='https://www.redhat.com/en/engage/project-wisdom?extIdCarryOver=true&sc_cid=701f2000001OH6uAAG'
94+
target='_blank'
95+
rel='noopener noreferrer'
96+
>
97+
Project Wisdom
98+
</a>{' '}
99+
to help other automators build Ansible content. Your roles
100+
and collections may be used as training data for a machine
101+
learning model that provides Ansible automation content
102+
recommendations. If you have concerns, please contact the
103+
Ansible team at{' '}
104+
<a href='mailto:ansible-content-ai@redhat.com'>
105+
ansible-content-ai@redhat.com
106+
</a>
107+
</Trans>
92108
</p>
93109
</React.Fragment>
94110
}
@@ -142,14 +158,37 @@ export class LandingPage extends React.Component<RouteProps, IState> {
142158
title={t`Terms of Use`}
143159
body={
144160
<React.Fragment>
145-
<div style={{ display: 'flex',}}>
146-
<p style={{paddingRight: '16px'}}>
147-
<a href='https://www.redhat.com/en/about/privacy-policy'>{t`Privacy statement`}</a>
148-
</p>
149-
<p style={{paddingRight: '16px'}}><a href='https://www.redhat.com/en/about/terms-use'>{t`Terms of use`}</a></p>
150-
<p style={{paddingRight: '16px'}}><a href='https://www.redhat.com/en/about/all-policies-guidelines'>{t`All policies and guidelines`}</a></p>
151-
<p style={{paddingRight: '16px'}}><a href='https://www.redhat.com/en/about/digital-accessibility'>{t`Digital accessibility`}</a></p>
152-
<p style={{paddingRight: '16px'}}><a href="#">{t`Cookie preferences`}</a></p>
161+
<div className='footer-parent-links'>
162+
<span>
163+
<a
164+
className='footer-link'
165+
href='https://www.redhat.com/en/about/privacy-policy'
166+
>{t`Privacy statement`}</a>
167+
</span>
168+
<span>
169+
<a
170+
className='footer-link'
171+
href='https://www.redhat.com/en/about/terms-use'
172+
>{t`Terms of use`}</a>
173+
</span>
174+
<span>
175+
<a
176+
className='footer-link'
177+
href='https://www.redhat.com/en/about/all-policies-guidelines'
178+
>{t`All policies and guidelines`}</a>
179+
</span>
180+
<span>
181+
<a
182+
className='footer-link'
183+
href='https://www.redhat.com/en/about/digital-accessibility'
184+
>{t`Digital accessibility`}</a>
185+
</span>
186+
<span>
187+
<a
188+
className='footer-link'
189+
href='#'
190+
>{t`Cookie preferences`}</a>
191+
</span>
153192
</div>
154193
</React.Fragment>
155194
}

0 commit comments

Comments
 (0)