Skip to content

Commit

Permalink
Clean up: adjust translations
Browse files Browse the repository at this point in the history
  • Loading branch information
banderror committed Dec 15, 2020
1 parent d161755 commit 732211e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import * as i18n from './translations';
const readOnlyAccessToAlertsMessage: CallOutMessage = {
type: 'primary',
id: 'read-only-access-to-alerts',
title: i18n.NO_WRITE_ALERTS_CALLOUT_TITLE,
description: <p>{i18n.NO_WRITE_ALERTS_CALLOUT_MSG}</p>,
title: i18n.READ_ONLY_ALERTS_CALLOUT_TITLE,
description: <p>{i18n.READ_ONLY_ALERTS_CALLOUT_MSG}</p>,
};

const ReadOnlyAlertsCallOutComponent = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,17 @@

import { i18n } from '@kbn/i18n';

export const NO_WRITE_ALERTS_CALLOUT_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.noWriteAlertsCallOutTitle',
export const READ_ONLY_ALERTS_CALLOUT_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.readOnlyAlertsCallOutTitle',
{
defaultMessage: 'You cannot change alert states',
}
);

export const NO_WRITE_ALERTS_CALLOUT_MSG = i18n.translate(
'xpack.securitySolution.detectionEngine.noWriteAlertsCallOutMsg',
export const READ_ONLY_ALERTS_CALLOUT_MSG = i18n.translate(
'xpack.securitySolution.detectionEngine.readOnlyAlertsCallOutMsg',
{
defaultMessage:
'You only have permissions to view alerts. If you need to update alert states (open or close alerts), contact your Kibana administrator.',
}
);

// TODO: delete
export const DISMISS_CALLOUT = i18n.translate(
'xpack.securitySolution.detectionEngine.dismissNoWriteAlertButton',
{
defaultMessage: 'Dismiss',
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import * as i18n from './translations';
const readOnlyAccessToRulesMessage: CallOutMessage = {
type: 'primary',
id: 'read-only-access-to-rules',
title: i18n.READ_ONLY_CALLOUT_TITLE,
description: <p>{i18n.READ_ONLY_CALLOUT_MSG}</p>,
title: i18n.READ_ONLY_RULES_CALLOUT_TITLE,
description: <p>{i18n.READ_ONLY_RULES_CALLOUT_MSG}</p>,
};

const ReadOnlyRulesCallOutComponent = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,17 @@

import { i18n } from '@kbn/i18n';

export const READ_ONLY_CALLOUT_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.readOnlyCallOutTitle',
export const READ_ONLY_RULES_CALLOUT_TITLE = i18n.translate(
'xpack.securitySolution.detectionEngine.readOnlyRulesCallOutTitle',
{
defaultMessage: 'Rule permissions required',
}
);

export const READ_ONLY_CALLOUT_MSG = i18n.translate(
'xpack.securitySolution.detectionEngine.readOnlyCallOutMsg',
export const READ_ONLY_RULES_CALLOUT_MSG = i18n.translate(
'xpack.securitySolution.detectionEngine.readOnlyRulesCallOutMsg',
{
defaultMessage:
'You are currently missing the required permissions to create/edit detection engine rule. Please contact your administrator for further assistance.',
}
);

// TODO: delete
export const DISMISS_CALLOUT = i18n.translate(
'xpack.securitySolution.detectionEngine.dismissButton',
{
defaultMessage: 'Dismiss',
}
);
11 changes: 5 additions & 6 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -16251,6 +16251,7 @@
"xpack.securitySolution.autocomplete.selectField": "最初にフィールドを選択してください...",
"xpack.securitySolution.beatFields.errorSearchDescription": "Beatフィールドの取得でエラーが発生しました",
"xpack.securitySolution.beatFields.failSearchDescription": "Beatフィールドで検索を実行できませんでした",
"xpack.securitySolution.callouts.dismissButton": "閉じる",
"xpack.securitySolution.case.allCases.actions": "アクション",
"xpack.securitySolution.case.allCases.comments": "コメント",
"xpack.securitySolution.case.allCases.noTagsAvailable": "利用可能なタグがありません",
Expand Down Expand Up @@ -16744,9 +16745,7 @@
"xpack.securitySolution.detectionEngine.details.stepAboutRule.investigationGuideLabel": "調査ガイド",
"xpack.securitySolution.detectionEngine.detectionsBreadcrumbTitle": "検出",
"xpack.securitySolution.detectionEngine.detectionsPageTitle": "検出アラート",
"xpack.securitySolution.detectionEngine.dismissButton": "閉じる",
"xpack.securitySolution.detectionEngine.dismissNoApiIntegrationKeyButton": "閉じる",
"xpack.securitySolution.detectionEngine.dismissNoWriteAlertButton": "閉じる",
"xpack.securitySolution.detectionEngine.editRule.backToDescription": "戻る",
"xpack.securitySolution.detectionEngine.editRule.cancelTitle": "キャンセル",
"xpack.securitySolution.detectionEngine.editRule.errorMsgDescription": "申し訳ありません",
Expand Down Expand Up @@ -16906,8 +16905,8 @@
"xpack.securitySolution.detectionEngine.noApiIntegrationKeyCallOutMsg": "Kibanaを起動するごとに保存されたオブジェクトの新しい暗号化キーを作成します。永続キーがないと、Kibanaの再起動後にルールを削除または修正することができません。永続キーを設定するには、kibana.ymlファイルに32文字以上のテキスト値を付けてxpack.encryptedSavedObjects.encryptionKey設定を追加してください。",
"xpack.securitySolution.detectionEngine.noApiIntegrationKeyCallOutTitle": "API統合キーが必要です",
"xpack.securitySolution.detectionEngine.noIndexTitle": "検出エンジンを設定しましょう",
"xpack.securitySolution.detectionEngine.noWriteAlertsCallOutMsg": "アラートを表示する権限のみが付与されています。アラート状態を更新(アラートを開く、アラートを閉じる)必要がある場合は、Kibana管理者に連絡してください。",
"xpack.securitySolution.detectionEngine.noWriteAlertsCallOutTitle": "アラート状態を変更することはできません",
"xpack.securitySolution.detectionEngine.readOnlyAlertsCallOutMsg": "アラートを表示する権限のみが付与されています。アラート状態を更新(アラートを開く、アラートを閉じる)必要がある場合は、Kibana管理者に連絡してください。",
"xpack.securitySolution.detectionEngine.readOnlyAlertsCallOutTitle": "アラート状態を変更することはできません",
"xpack.securitySolution.detectionEngine.pageTitle": "検出エンジン",
"xpack.securitySolution.detectionEngine.panelSubtitleShowing": "表示中",
"xpack.securitySolution.detectionEngine.queryPreview.queryGraphCountLabel": "カウント",
Expand All @@ -16922,8 +16921,8 @@
"xpack.securitySolution.detectionEngine.queryPreview.queryPreviewGraphTitle": "{hits} {hits, plural, =1 {ヒット} other {ヒット}}",
"xpack.securitySolution.detectionEngine.queryPreview.queryPreviewHelpText": "クエリ結果をプレビューするデータのタイムフレームを選択します",
"xpack.securitySolution.detectionEngine.queryPreview.queryPreviewLabel": "クイッククエリプレビュー",
"xpack.securitySolution.detectionEngine.readOnlyCallOutMsg": "現在、検出エンジンルールを作成/編集するための必要な権限がありません。サポートについては、管理者にお問い合わせください。",
"xpack.securitySolution.detectionEngine.readOnlyCallOutTitle": "ルールアクセス権が必要です",
"xpack.securitySolution.detectionEngine.readOnlyRulesCallOutMsg": "現在、検出エンジンルールを作成/編集するための必要な権限がありません。サポートについては、管理者にお問い合わせください。",
"xpack.securitySolution.detectionEngine.readOnlyRulesCallOutTitle": "ルールアクセス権が必要です",
"xpack.securitySolution.detectionEngine.rule.editRule.errorMsgDescription": "{countError, plural, one {このタブ} other {これらのタブ}}に無効な入力があります: {tabHasError}",
"xpack.securitySolution.detectionEngine.ruleDescription.mlJobStartedDescription": "開始",
"xpack.securitySolution.detectionEngine.ruleDescription.mlJobStoppedDescription": "停止",
Expand Down
11 changes: 5 additions & 6 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -16268,6 +16268,7 @@
"xpack.securitySolution.autocomplete.selectField": "请首先选择字段......",
"xpack.securitySolution.beatFields.errorSearchDescription": "获取 Beat 字段时发生错误",
"xpack.securitySolution.beatFields.failSearchDescription": "无法对 Beat 字段执行搜索",
"xpack.securitySolution.callouts.dismissButton": "关闭",
"xpack.securitySolution.case.allCases.actions": "操作",
"xpack.securitySolution.case.allCases.comments": "注释",
"xpack.securitySolution.case.allCases.noTagsAvailable": "没有可用标记",
Expand Down Expand Up @@ -16761,9 +16762,7 @@
"xpack.securitySolution.detectionEngine.details.stepAboutRule.investigationGuideLabel": "调查指南",
"xpack.securitySolution.detectionEngine.detectionsBreadcrumbTitle": "检测",
"xpack.securitySolution.detectionEngine.detectionsPageTitle": "检测告警",
"xpack.securitySolution.detectionEngine.dismissButton": "关闭",
"xpack.securitySolution.detectionEngine.dismissNoApiIntegrationKeyButton": "关闭",
"xpack.securitySolution.detectionEngine.dismissNoWriteAlertButton": "关闭",
"xpack.securitySolution.detectionEngine.editRule.backToDescription": "返回到",
"xpack.securitySolution.detectionEngine.editRule.cancelTitle": "取消",
"xpack.securitySolution.detectionEngine.editRule.errorMsgDescription": "抱歉",
Expand Down Expand Up @@ -16923,8 +16922,8 @@
"xpack.securitySolution.detectionEngine.noApiIntegrationKeyCallOutMsg": "每次启动 Kibana,都会为已保存对象生成新的加密密钥。没有持久性密钥,在 Kibana 重新启动后,将无法删除或修改规则。要设置持久性密钥,请将文本值为 32 个或更多任意字符的 xpack.encryptedSavedObjects.encryptionKey 设置添加到 kibana.yml 文件。",
"xpack.securitySolution.detectionEngine.noApiIntegrationKeyCallOutTitle": "需要 API 集成密钥",
"xpack.securitySolution.detectionEngine.noIndexTitle": "让我们来设置您的检测引擎",
"xpack.securitySolution.detectionEngine.noWriteAlertsCallOutMsg": "您仅有权查看告警。如果您需要更新告警状态(打开或关闭告警),请联系您的 Kibana 管理员。",
"xpack.securitySolution.detectionEngine.noWriteAlertsCallOutTitle": "您无法更改告警状态",
"xpack.securitySolution.detectionEngine.readOnlyAlertsCallOutMsg": "您仅有权查看告警。如果您需要更新告警状态(打开或关闭告警),请联系您的 Kibana 管理员。",
"xpack.securitySolution.detectionEngine.readOnlyAlertsCallOutTitle": "您无法更改告警状态",
"xpack.securitySolution.detectionEngine.pageTitle": "检测引擎",
"xpack.securitySolution.detectionEngine.panelSubtitleShowing": "正在显示",
"xpack.securitySolution.detectionEngine.queryPreview.queryGraphCountLabel": "计数",
Expand All @@ -16939,8 +16938,8 @@
"xpack.securitySolution.detectionEngine.queryPreview.queryPreviewGraphTitle": "{hits} 个{hits, plural, =1 {命中} other {命中}}",
"xpack.securitySolution.detectionEngine.queryPreview.queryPreviewHelpText": "选择数据的时间范围以预览查询结果",
"xpack.securitySolution.detectionEngine.queryPreview.queryPreviewLabel": "快速查询预览",
"xpack.securitySolution.detectionEngine.readOnlyCallOutMsg": "您当前缺少所需的权限,无法创建/编辑检测引擎规则。有关进一步帮助,请联系您的管理员。",
"xpack.securitySolution.detectionEngine.readOnlyCallOutTitle": "需要规则权限",
"xpack.securitySolution.detectionEngine.readOnlyRulesCallOutMsg": "您当前缺少所需的权限,无法创建/编辑检测引擎规则。有关进一步帮助,请联系您的管理员。",
"xpack.securitySolution.detectionEngine.readOnlyRulesCallOutTitle": "需要规则权限",
"xpack.securitySolution.detectionEngine.rule.editRule.errorMsgDescription": "您在{countError, plural, one {以下选项卡} other {以下选项卡}}中的输入无效:{tabHasError}",
"xpack.securitySolution.detectionEngine.ruleDescription.mlJobStartedDescription": "已启动",
"xpack.securitySolution.detectionEngine.ruleDescription.mlJobStoppedDescription": "已停止",
Expand Down

0 comments on commit 732211e

Please sign in to comment.