mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 21:46:00 -03:30
mark text for translation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import 'styled-components/macro';
|
import 'styled-components/macro';
|
||||||
import React, { useEffect, useRef } from 'react';
|
import React, { useEffect, useRef } from 'react';
|
||||||
import { withI18n } from '@lingui/react';
|
import { withI18n } from '@lingui/react';
|
||||||
import { t } from '@lingui/macro';
|
import { t, Trans } from '@lingui/macro';
|
||||||
import { useField, useFormikContext } from 'formik';
|
import { useField, useFormikContext } from 'formik';
|
||||||
import { Switch, Text } from '@patternfly/react-core';
|
import { Switch, Text } from '@patternfly/react-core';
|
||||||
import {
|
import {
|
||||||
@@ -69,30 +69,32 @@ function CustomMessagesSubForm({ defaultMessages, type, i18n }) {
|
|||||||
css="margin-bottom: var(--pf-c-content--MarginBottom)"
|
css="margin-bottom: var(--pf-c-content--MarginBottom)"
|
||||||
>
|
>
|
||||||
<small>
|
<small>
|
||||||
Use custom messages to change the content of notifications sent
|
<Trans>
|
||||||
when a job starts, succeeds, or fails. Use curly braces to access
|
Use custom messages to change the content of notifications sent
|
||||||
information about the job:{' '}
|
when a job starts, succeeds, or fails. Use curly braces to
|
||||||
<code>
|
access information about the job:{' '}
|
||||||
{'{{'} job_friendly_name {'}}'}
|
<code>
|
||||||
</code>
|
{'{{'} job_friendly_name {'}}'}
|
||||||
,{' '}
|
</code>
|
||||||
<code>
|
,{' '}
|
||||||
{'{{'} url {'}}'}
|
<code>
|
||||||
</code>
|
{'{{'} url {'}}'}
|
||||||
, or attributes of the job such as{' '}
|
</code>
|
||||||
<code>
|
, or attributes of the job such as{' '}
|
||||||
{'{{'} job.status {'}}'}
|
<code>
|
||||||
</code>
|
{'{{'} job.status {'}}'}
|
||||||
. You may apply a number of possible variables in the message.
|
</code>
|
||||||
Refer to the{' '}
|
. You may apply a number of possible variables in the message.
|
||||||
<a
|
Refer to the{' '}
|
||||||
href="https://docs.ansible.com/ansible-tower/latest/html/userguide/notifications.html#create-custom-notifications"
|
<a
|
||||||
target="_blank"
|
href="https://docs.ansible.com/ansible-tower/latest/html/userguide/notifications.html#create-custom-notifications"
|
||||||
rel="noopener noreferrer"
|
target="_blank"
|
||||||
>
|
rel="noopener noreferrer"
|
||||||
Ansible Tower documentation
|
>
|
||||||
</a>{' '}
|
Ansible Tower documentation
|
||||||
for more details.
|
</a>{' '}
|
||||||
|
for more details.
|
||||||
|
</Trans>
|
||||||
</small>
|
</small>
|
||||||
</Text>
|
</Text>
|
||||||
<FormFullWidthLayout>
|
<FormFullWidthLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user