* (ui): fix strings

This commit is contained in:
Andrey Meshkov 2020-09-09 14:50:21 +03:00
parent e781ff0cae
commit 90e4316cfc
3 changed files with 4 additions and 9 deletions

View File

@ -132,7 +132,7 @@
"encryption_settings": "Encryption settings",
"dhcp_settings": "DHCP settings",
"upstream_dns": "Upstream DNS servers",
"upstream_dns_hint": "If you keep this field empty, AdGuard Home will use <a href='https://www.quad9.net/' target='_blank'>Quad9</a> as an upstream.",
"upstream_dns_help": "Enter servers addresses one per line. <0>Learn more</0> about configuring upstream DNS servers.",
"upstream_dns_configured_in_file": "Configured in {{path}}",
"test_upstream_btn": "Test upstreams",
"upstreams": "Upstreams",
@ -579,6 +579,5 @@
"click_to_view_queries": "Click to view queries",
"port_53_faq_link": "Port 53 is often occupied by \"DNSStubListener\" or \"systemd-resolved\" services. Please read <0>this instruction</0> on how to resolve this.",
"adg_will_drop_dns_queries": "AdGuard Home will be dropping all DNS queries from this client.",
"please_read_wiki": "Please read the wiki",
"experimental": "Experimental"
}

View File

@ -5,7 +5,6 @@ import { Field, reduxForm } from 'redux-form';
import { Trans, useTranslation } from 'react-i18next';
import classnames from 'classnames';
import i18next from 'i18next';
import Examples from './Examples';
import { renderRadioField, renderTextareaField } from '../../../../helpers/form';
import { DNS_REQUEST_OPTIONS, FORM_NAME, UPSTREAM_CONFIGURATION_WIKI_LINK } from '../../../../helpers/constants';
@ -13,11 +12,9 @@ import { testUpstream } from '../../../../actions';
import { removeEmptyLines } from '../../../../helpers/helpers';
const Title = () => <label className="form__label" htmlFor="upstream_dns">
{i18next.t('upstream_dns')}
<div>
<a href={UPSTREAM_CONFIGURATION_WIKI_LINK} target="_blank"
rel="noopener noreferrer">{i18next.t('please_read_wiki')}</a>
</div>
<Trans components={[<a href={UPSTREAM_CONFIGURATION_WIKI_LINK} key="0">link</a>]}>
upstream_dns_help
</Trans>
</label>;
const getInputFields = (upstream_dns_file) => [

View File

@ -36,7 +36,6 @@ const Upstream = () => {
return <Card
title={t('upstream_dns')}
subtitle={t('upstream_dns_hint')}
bodyType="card-body box-body--settings"
>
<div className="row">