From c400108342372d2318deda82c32d68b6c312c6c2 Mon Sep 17 00:00:00 2001 From: pavel06081991 Date: Thu, 23 Aug 2018 13:11:51 +0300 Subject: [PATCH] =?UTF-8?q?translate=20tutorials(ceph=5Fmetrics,=20couchba?= =?UTF-8?q?se=5Fmetrics,=20docker=5Fmetrics,=20=E2=80=A6=20(#22120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit translate tutorials(ceph_metrics, couchbase_metrics, docker_metrics, dropwizard_metrics, elasticsearch_logs) # Conflicts: # src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js --- .../server/tutorials/ceph_metrics/index.js | 23 +++++++++++++++---- .../tutorials/couchbase_metrics/index.js | 23 +++++++++++++++---- .../server/tutorials/docker_metrics/index.js | 23 +++++++++++++++---- .../tutorials/dropwizard_metrics/index.js | 23 +++++++++++++++---- 4 files changed, 72 insertions(+), 20 deletions(-) diff --git a/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js b/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js index 233cd08586278c..65668fd8d21445 100644 --- a/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,15 +25,27 @@ export function cephMetricsSpecProvider() { const moduleName = 'ceph'; return { id: 'cephMetrics', - name: 'Ceph metrics', + name: i18n.translate('kbn.server.tutorials.cephMetrics.nameTitle', { + defaultMessage: 'Ceph metrics', + }), isBeta: true, category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch internal metrics from the Ceph server.', - longDescription: 'The `ceph` Metricbeat module fetches internal metrics from Ceph.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-ceph.html).', + shortDescription: i18n.translate('kbn.server.tutorials.cephMetrics.shortDescription', { + defaultMessage: 'Fetch internal metrics from the Ceph server.', + }), + longDescription: i18n.translate('kbn.server.tutorials.cephMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `ceph` Metricbeat module fetches internal metrics from Ceph. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-ceph.html', + }, + }), artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.cephMetrics.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [], diff --git a/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js b/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js index 8008d040b3e1aa..e8d52498eb31c6 100644 --- a/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,15 +25,27 @@ export function couchbaseMetricsSpecProvider() { const moduleName = 'couchbase'; return { id: 'couchbaseMetrics', - name: 'Couchbase metrics', + name: i18n.translate('kbn.server.tutorials.couchbaseMetrics.nameTitle', { + defaultMessage: 'Couchbase metrics', + }), isBeta: true, category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch internal metrics from Couchbase.', - longDescription: 'The `couchbase` Metricbeat module fetches internal metrics from Couchbase.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-couchbase.html).', + shortDescription: i18n.translate('kbn.server.tutorials.couchbaseMetrics.shortDescription', { + defaultMessage: 'Fetch internal metrics from Couchbase.', + }), + longDescription: i18n.translate('kbn.server.tutorials.couchbaseMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `couchbase` Metricbeat module fetches internal metrics from Couchbase. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-couchbase.html', + }, + }), artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.couchbaseMetrics.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [], diff --git a/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js b/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js index 68b493bf6c1a0b..3d727874215015 100644 --- a/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,17 +25,29 @@ export function dockerMetricsSpecProvider() { const moduleName = 'docker'; return { id: 'dockerMetrics', - name: 'Docker metrics', + name: i18n.translate('kbn.server.tutorials.dockerMetrics.nameTitle', { + defaultMessage: 'Docker metrics', + }), category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch metrics about your Docker containers.', - longDescription: 'The `docker` Metricbeat module fetches metrics from the Docker server.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-docker.html).', + shortDescription: i18n.translate('kbn.server.tutorials.dockerMetrics.shortDescription', { + defaultMessage: 'Fetch metrics about your Docker containers.', + }), + longDescription: i18n.translate('kbn.server.tutorials.dockerMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `docker` Metricbeat module fetches metrics from the Docker server. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-docker.html', + }, + }), euiIconType: 'logoDocker', artifacts: { dashboards: [ { id: 'AV4REOpp5NkDleZmzKkE', - linkLabel: 'Docker metrics dashboard', + linkLabel: i18n.translate('kbn.server.tutorials.dockerMetrics.artifacts.dashboards.linkLabel', { + defaultMessage: 'Docker metrics dashboard', + }), isOverview: true } ], diff --git a/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js b/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js index 02d15c4d6388be..96c4daf3255f06 100644 --- a/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,15 +25,27 @@ export function dropwizardMetricsSpecProvider() { const moduleName = 'dropwizard'; return { id: 'dropwizardMetrics', - name: 'Dropwizard metrics', + name: i18n.translate('kbn.server.tutorials.dropwizardMetrics.nameTitle', { + defaultMessage: 'Dropwizard metrics', + }), isBeta: true, category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch internal metrics from Dropwizard Java application.', - longDescription: 'The `dropwizard` Metricbeat module fetches internal metrics from Dropwizard Java Application.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-dropwizard.html).', + shortDescription: i18n.translate('kbn.server.tutorials.dropwizardMetrics.shortDescription', { + defaultMessage: 'Fetch internal metrics from Dropwizard Java application.', + }), + longDescription: i18n.translate('kbn.server.tutorials.dropwizardMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `dropwizard` Metricbeat module fetches internal metrics from Dropwizard Java Application. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-dropwizard.html', + }, + }), artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.dropwizardMetrics.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [],