Skip to content

Commit

Permalink
fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov committed Aug 28, 2023
1 parent f5bb67d commit b37916c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
4 changes: 3 additions & 1 deletion client/src/__locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,9 @@
"log_and_stats_section_label": "Query log and statistics",
"ignore_query_log": "Ignore this client in query log",
"ignore_statistics": "Ignore this client in statistics",
"schedule": "Schedule off time",
"schedule_services": "Service block pause",
"schedule_services_desc": "Here you can configure the pause schedule of the service-blocking filter",
"schedule_services_desc_client": "Here you can configure the pause schedule of the service-blocking filter for this client",
"schedule_desc": "Set inactivity periods for blocked services",
"schedule_invalid_select": "The start time must be before the end time",
"schedule_select_days": "Select days",
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Filters/Services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const Services = () => {
</Card>

<Card
title={t('schedule')}
subtitle={t('schedule_desc')}
title={t('schedule_services')}
subtitle={t('schedule_services_desc')}
bodyType="card-body box-body--settings"
>
<ScheduleForm
Expand Down
27 changes: 15 additions & 12 deletions client/src/components/Settings/Clients/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,21 @@ let Form = (props) => {
</div>
</div>,
},
schedule_services: {
title: 'schedule_services',
component: (
<>
<div className="form__desc mb-4">
<Trans>schedule_services_desc_client</Trans>
</div>
<ScheduleForm
schedule={blockedServicesSchedule}
onScheduleSubmit={handleScheduleSubmit}
clientForm
/>
</>
),
},
upstream_dns: {
title: 'upstream_dns',
component: <div label="upstream" title={props.t('upstream_dns')}>
Expand All @@ -294,18 +309,6 @@ let Form = (props) => {
<Examples />
</div>,
},
schedule: {
title: 'schedule',
component: (
<div className="mb-3">
<ScheduleForm
schedule={blockedServicesSchedule}
onScheduleSubmit={handleScheduleSubmit}
clientForm
/>
</div>
),
},
};

const activeTab = tabs[activeTabLabel].component;
Expand Down

0 comments on commit b37916c

Please sign in to comment.