From a1359a22639a345babc6c7cf613dac9e4866536d Mon Sep 17 00:00:00 2001 From: Phillip Burch Date: Wed, 14 Aug 2019 13:18:46 -0500 Subject: [PATCH] Sentence case copy changes (#43215) (#43281) * Change casing for options and labels to be sentence case * More sentence-case copy changes * Fix min and max capitalization --- .../metrics_explorer/aggregation.tsx | 2 +- .../metrics_explorer/chart_options.tsx | 8 +++--- .../add_log_column_popover.tsx | 2 +- .../indices_configuration_panel.tsx | 4 +-- .../waffle/lib/field_to_display_name.ts | 8 +++--- .../components/waffle/view_switcher.tsx | 4 +-- .../waffle/waffle_group_by_controls.tsx | 2 +- .../waffle/waffle_metric_controls.tsx | 28 +++++++++++-------- 8 files changed, 31 insertions(+), 27 deletions(-) diff --git a/x-pack/legacy/plugins/infra/public/components/metrics_explorer/aggregation.tsx b/x-pack/legacy/plugins/infra/public/components/metrics_explorer/aggregation.tsx index 72e0342f8d7ca..a41eb742d40a7 100644 --- a/x-pack/legacy/plugins/infra/public/components/metrics_explorer/aggregation.tsx +++ b/x-pack/legacy/plugins/infra/public/components/metrics_explorer/aggregation.tsx @@ -45,7 +45,7 @@ export const MetricsExplorerAggregationPicker = injectI18n(({ intl, options, onC }), [MetricsExplorerAggregation.count]: intl.formatMessage({ id: 'xpack.infra.metricsExplorer.aggregationLables.count', - defaultMessage: 'Document Count', + defaultMessage: 'Document count', }), }; diff --git a/x-pack/legacy/plugins/infra/public/components/metrics_explorer/chart_options.tsx b/x-pack/legacy/plugins/infra/public/components/metrics_explorer/chart_options.tsx index b44ba14778448..a6b5384795392 100644 --- a/x-pack/legacy/plugins/infra/public/components/metrics_explorer/chart_options.tsx +++ b/x-pack/legacy/plugins/infra/public/components/metrics_explorer/chart_options.tsx @@ -51,14 +51,14 @@ export const MetricsExplorerChartOptions = injectI18n(({ chartOptions, onChange, id: MetricsExplorerYAxisMode.auto, label: intl.formatMessage({ id: 'xpack.infra.metricsExplorer.chartOptions.autoLabel', - defaultMessage: 'Automatic (Min to Max)', + defaultMessage: 'Automatic (min to max)', }), }, { id: MetricsExplorerYAxisMode.fromZero, label: intl.formatMessage({ id: 'xpack.infra.metricsExplorer.chartOptions.fromZeroLabel', - defaultMessage: 'From Zero (0 to Max)', + defaultMessage: 'From zero (0 to max)', }), }, ]; @@ -122,7 +122,7 @@ export const MetricsExplorerChartOptions = injectI18n(({ chartOptions, onChange, compressed label={intl.formatMessage({ id: 'xpack.infra.metricsExplorer.chartOptions.typeLabel', - defaultMessage: 'Chart Style', + defaultMessage: 'Chart style', })} > } diff --git a/x-pack/legacy/plugins/infra/public/components/source_configuration/indices_configuration_panel.tsx b/x-pack/legacy/plugins/infra/public/components/source_configuration/indices_configuration_panel.tsx index ee0e605baaf5c..57863d8d2df82 100644 --- a/x-pack/legacy/plugins/infra/public/components/source_configuration/indices_configuration_panel.tsx +++ b/x-pack/legacy/plugins/infra/public/components/source_configuration/indices_configuration_panel.tsx @@ -46,7 +46,7 @@ export const IndicesConfigurationPanel = ({ title={ } description={ @@ -92,7 +92,7 @@ export const IndicesConfigurationPanel = ({ title={ } description={ diff --git a/x-pack/legacy/plugins/infra/public/components/waffle/lib/field_to_display_name.ts b/x-pack/legacy/plugins/infra/public/components/waffle/lib/field_to_display_name.ts index 9f74b6e25cad7..7e5a51742802d 100644 --- a/x-pack/legacy/plugins/infra/public/components/waffle/lib/field_to_display_name.ts +++ b/x-pack/legacy/plugins/infra/public/components/waffle/lib/field_to_display_name.ts @@ -26,11 +26,11 @@ export const fieldToName = (field: string, intl: InjectedIntl) => { }), 'cloud.availability_zone': intl.formatMessage({ id: 'xpack.infra.groupByDisplayNames.availabilityZone', - defaultMessage: 'Availability Zone', + defaultMessage: 'Availability zone', }), 'cloud.machine.type': intl.formatMessage({ id: 'xpack.infra.groupByDisplayNames.machineType', - defaultMessage: 'Machine Type', + defaultMessage: 'Machine type', }), 'cloud.project.id': intl.formatMessage({ id: 'xpack.infra.groupByDisplayNames.projectID', @@ -38,11 +38,11 @@ export const fieldToName = (field: string, intl: InjectedIntl) => { }), 'cloud.provider': intl.formatMessage({ id: 'xpack.infra.groupByDisplayNames.provider', - defaultMessage: 'Cloud Provider', + defaultMessage: 'Cloud provider', }), 'service.type': intl.formatMessage({ id: 'xpack.infra.groupByDisplayNames.serviceType', - defaultMessage: 'Service Type', + defaultMessage: 'Service type', }), }; return LOOKUP[field] || field; diff --git a/x-pack/legacy/plugins/infra/public/components/waffle/view_switcher.tsx b/x-pack/legacy/plugins/infra/public/components/waffle/view_switcher.tsx index 03136e99a9dac..ac18120d9ad30 100644 --- a/x-pack/legacy/plugins/infra/public/components/waffle/view_switcher.tsx +++ b/x-pack/legacy/plugins/infra/public/components/waffle/view_switcher.tsx @@ -20,7 +20,7 @@ export const ViewSwitcher = injectI18n(({ view, onChange, intl }: Props) => { id: 'map', label: intl.formatMessage({ id: 'xpack.infra.viewSwitcher.mapViewLabel', - defaultMessage: 'Map View', + defaultMessage: 'Map view', }), iconType: 'apps', }, @@ -28,7 +28,7 @@ export const ViewSwitcher = injectI18n(({ view, onChange, intl }: Props) => { id: 'table', label: intl.formatMessage({ id: 'xpack.infra.viewSwitcher.tableViewLabel', - defaultMessage: 'Table View', + defaultMessage: 'Table view', }), iconType: 'editorUnorderedList', }, diff --git a/x-pack/legacy/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx b/x-pack/legacy/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx index e39099899c416..9f84ef9407a56 100644 --- a/x-pack/legacy/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx +++ b/x-pack/legacy/plugins/infra/public/components/waffle/waffle_group_by_controls.tsx @@ -112,7 +112,7 @@ export const WaffleGroupByControls = injectI18n( { name: intl.formatMessage({ id: 'xpack.infra.waffle.customGroupByOptionName', - defaultMessage: 'Custom Field', + defaultMessage: 'Custom field', }), icon: 'empty', panel: 'customPanel', diff --git a/x-pack/legacy/plugins/infra/public/components/waffle/waffle_metric_controls.tsx b/x-pack/legacy/plugins/infra/public/components/waffle/waffle_metric_controls.tsx index 9d49963e18a77..c74260d981943 100644 --- a/x-pack/legacy/plugins/infra/public/components/waffle/waffle_metric_controls.tsx +++ b/x-pack/legacy/plugins/infra/public/components/waffle/waffle_metric_controls.tsx @@ -35,22 +35,32 @@ const getOptions = ( if (!OPTIONS) { const CPUUsage = intl.formatMessage({ id: 'xpack.infra.waffle.metricOptions.cpuUsageText', - defaultMessage: 'CPU Usage', + defaultMessage: 'CPU usage', }); const MemoryUsage = intl.formatMessage({ id: 'xpack.infra.waffle.metricOptions.memoryUsageText', - defaultMessage: 'Memory Usage', + defaultMessage: 'Memory usage', }); const InboundTraffic = intl.formatMessage({ id: 'xpack.infra.waffle.metricOptions.inboundTrafficText', - defaultMessage: 'Inbound Traffic', + defaultMessage: 'Inbound traffic', }); const OutboundTraffic = intl.formatMessage({ id: 'xpack.infra.waffle.metricOptions.outboundTrafficText', - defaultMessage: 'Outbound Traffic', + defaultMessage: 'Outbound traffic', + }); + + const LogRate = intl.formatMessage({ + id: 'xpack.infra.waffle.metricOptions.hostLogRateText', + defaultMessage: 'Log rate', + }); + + const Load = intl.formatMessage({ + id: 'xpack.infra.waffle.metricOptions.loadText', + defaultMessage: 'Load', }); OPTIONS = { @@ -100,10 +110,7 @@ const getOptions = ( value: InfraSnapshotMetricType.memory, }, { - text: intl.formatMessage({ - id: 'xpack.infra.waffle.metricOptions.loadText', - defaultMessage: 'Load', - }), + text: Load, value: InfraSnapshotMetricType.load, }, { @@ -115,10 +122,7 @@ const getOptions = ( value: InfraSnapshotMetricType.tx, }, { - text: intl.formatMessage({ - id: 'xpack.infra.waffle.metricOptions.hostLogRateText', - defaultMessage: 'Log Rate', - }), + text: LogRate, value: InfraSnapshotMetricType.logRate, }, ],