mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 00:37:37 -02:30
fix translation marked org and org access list strings
This commit is contained in:
@@ -355,8 +355,8 @@ class OrganizationAccessList extends React.Component {
|
|||||||
isOpen={showWarning}
|
isOpen={showWarning}
|
||||||
onClose={this.hideWarning}
|
onClose={this.hideWarning}
|
||||||
actions={[
|
actions={[
|
||||||
<Button key="delete" variant="danger" aria-label="Confirm delete" onClick={this.confirmDelete}>Delete</Button>,
|
<Button key="delete" variant="danger" aria-label="Confirm delete" onClick={this.confirmDelete}>{i18n._(t`Delete`)}</Button>,
|
||||||
<Button key="cancel" variant="secondary" onClick={this.hideWarning}>Cancel</Button>
|
<Button key="cancel" variant="secondary" onClick={this.hideWarning}>{i18n._(t`Cancel`)}</Button>
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
{warningMsg}
|
{warningMsg}
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ class OrganizationsList extends Component {
|
|||||||
|
|
||||||
handleOpenOrgDeleteModal () {
|
handleOpenOrgDeleteModal () {
|
||||||
const { results, selected } = this.state;
|
const { results, selected } = this.state;
|
||||||
const warningTitle = i18nMark(`Delete Organization${selected.length > 1 ? 's' : ''}`);
|
const warningTitle = selected.length > 1 ? i18nMark('Delete Organization') : i18nMark('Delete Organizations');
|
||||||
const warningMsg = i18nMark('Are you sure you want to delete:');
|
const warningMsg = i18nMark('Are you sure you want to delete:');
|
||||||
|
|
||||||
const orgsToDelete = [];
|
const orgsToDelete = [];
|
||||||
@@ -271,6 +271,8 @@ class OrganizationsList extends Component {
|
|||||||
} = this.state;
|
} = this.state;
|
||||||
const { match } = this.props;
|
const { match } = this.props;
|
||||||
return (
|
return (
|
||||||
|
<I18n>
|
||||||
|
{({ i18n }) => (
|
||||||
<PageSection variant={medium}>
|
<PageSection variant={medium}>
|
||||||
<Card>
|
<Card>
|
||||||
{ isModalOpen && (
|
{ isModalOpen && (
|
||||||
@@ -280,8 +282,8 @@ class OrganizationsList extends Component {
|
|||||||
isOpen={isModalOpen}
|
isOpen={isModalOpen}
|
||||||
onClose={this.handleClearOrgsToDelete}
|
onClose={this.handleClearOrgsToDelete}
|
||||||
actions={[
|
actions={[
|
||||||
<Button variant="danger" key="delete" aria-label="confirm-delete" onClick={this.handleOrgDelete}>Delete</Button>,
|
<Button variant="danger" key="delete" aria-label="confirm-delete" onClick={this.handleOrgDelete}>{i18n._(t`Delete`)}</Button>,
|
||||||
<Button variant="secondary" key="cancel" aria-label="cancel-delete" onClick={this.handleClearOrgsToDelete}>Cancel</Button>
|
<Button variant="secondary" key="cancel" aria-label="cancel-delete" onClick={this.handleClearOrgsToDelete}>{i18n._(t`Cancel`)}</Button>
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
{warningMsg}
|
{warningMsg}
|
||||||
@@ -323,8 +325,6 @@ class OrganizationsList extends Component {
|
|||||||
showDelete
|
showDelete
|
||||||
showSelectAll
|
showSelectAll
|
||||||
/>
|
/>
|
||||||
<I18n>
|
|
||||||
{({ i18n }) => (
|
|
||||||
<ul className="pf-c-data-list" aria-label={i18n._(t`Organizations List`)}>
|
<ul className="pf-c-data-list" aria-label={i18n._(t`Organizations List`)}>
|
||||||
{ results.map(o => (
|
{ results.map(o => (
|
||||||
<OrganizationListItem
|
<OrganizationListItem
|
||||||
@@ -340,8 +340,6 @@ class OrganizationsList extends Component {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
|
||||||
</I18n>
|
|
||||||
<Pagination
|
<Pagination
|
||||||
count={count}
|
count={count}
|
||||||
page={page}
|
page={page}
|
||||||
@@ -355,6 +353,8 @@ class OrganizationsList extends Component {
|
|||||||
)}
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
</PageSection>
|
</PageSection>
|
||||||
|
)}
|
||||||
|
</I18n>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user