Skip to content

Commit

Permalink
rename translation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Jun 2, 2020
1 parent ead68f5 commit 68e4f1d
Show file tree
Hide file tree
Showing 212 changed files with 6,865 additions and 5,775 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const alertingIndexGetQuerySchema = schema.object(
try {
decode(value);
} catch (err) {
return i18n.translate('xpack.siem.endpoint.alerts.errors.bad_rison', {
return i18n.translate('xpack.securitySolution.endpoint.alerts.errors.bad_rison', {
defaultMessage: 'must be a valid rison-encoded string',
});
}
Expand All @@ -62,7 +62,7 @@ export const alertingIndexGetQuerySchema = schema.object(
try {
decode(value);
} catch (err) {
return i18n.translate('xpack.siem.endpoint.alerts.errors.bad_rison', {
return i18n.translate('xpack.securitySolution.endpoint.alerts.errors.bad_rison', {
defaultMessage: 'must be a valid rison-encoded string',
});
}
Expand All @@ -77,7 +77,7 @@ export const alertingIndexGetQuerySchema = schema.object(
try {
decode(value);
} catch (err) {
return i18n.translate('xpack.siem.endpoint.alerts.errors.bad_rison', {
return i18n.translate('xpack.securitySolution.endpoint.alerts.errors.bad_rison', {
defaultMessage: 'must be a valid rison-encoded string',
});
}
Expand All @@ -89,23 +89,23 @@ export const alertingIndexGetQuerySchema = schema.object(
validate(value) {
if (value.after !== undefined && value.page_index !== undefined) {
return i18n.translate(
'xpack.siem.endpoint.alerts.errors.page_index_cannot_be_used_with_after',
'xpack.securitySolution.endpoint.alerts.errors.page_index_cannot_be_used_with_after',
{
defaultMessage: '[page_index] cannot be used with [after]',
}
);
}
if (value.before !== undefined && value.page_index !== undefined) {
return i18n.translate(
'xpack.siem.endpoint.alerts.errors.page_index_cannot_be_used_with_before',
'xpack.securitySolution.endpoint.alerts.errors.page_index_cannot_be_used_with_before',
{
defaultMessage: '[page_index] cannot be used with [before]',
}
);
}
if (value.before !== undefined && value.after !== undefined) {
return i18n.translate(
'xpack.siem.endpoint.alerts.errors.before_cannot_be_used_with_after',
'xpack.securitySolution.endpoint.alerts.errors.before_cannot_be_used_with_after',
{
defaultMessage: '[before] cannot be used with [after]',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
import { i18n } from '@kbn/i18n';

export const PAGE_BADGE_LABEL = i18n.translate(
'xpack.siem.detectionEngine.headerPage.pageBadgeLabel',
'xpack.securitySolution.detectionEngine.headerPage.pageBadgeLabel',
{
defaultMessage: 'Beta',
}
);

export const PAGE_BADGE_TOOLTIP = i18n.translate(
'xpack.siem.detectionEngine.headerPage.pageBadgeTooltip',
'xpack.securitySolution.detectionEngine.headerPage.pageBadgeTooltip',
{
defaultMessage:
'Detections is still in beta. Please help us improve by reporting issues or bugs in the Kibana repo.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
import { i18n } from '@kbn/i18n';

export const NO_API_INTEGRATION_KEY_CALLOUT_TITLE = i18n.translate(
'xpack.siem.detectionEngine.noApiIntegrationKeyCallOutTitle',
'xpack.securitySolution.detectionEngine.noApiIntegrationKeyCallOutTitle',
{
defaultMessage: 'API integration key required',
}
);

export const NO_API_INTEGRATION_KEY_CALLOUT_MSG = i18n.translate(
'xpack.siem.detectionEngine.noApiIntegrationKeyCallOutMsg',
'xpack.securitySolution.detectionEngine.noApiIntegrationKeyCallOutMsg',
{
defaultMessage: `A new encryption key is generated for saved objects each time you start Kibana. Without a persistent key, you cannot delete or modify rules after Kibana restarts. To set a persistent key, add the xpack.encryptedSavedObjects.encryptionKey setting with any text value of 32 or more characters to the kibana.yml file.`,
}
);

export const DISMISS_CALLOUT = i18n.translate(
'xpack.siem.detectionEngine.dismissNoApiIntegrationKeyButton',
'xpack.securitySolution.detectionEngine.dismissNoApiIntegrationKeyButton',
{
defaultMessage: 'Dismiss',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
import { i18n } from '@kbn/i18n';

export const NO_WRITE_SIGNALS_CALLOUT_TITLE = i18n.translate(
'xpack.siem.detectionEngine.noWriteSignalsCallOutTitle',
'xpack.securitySolution.detectionEngine.noWriteSignalsCallOutTitle',
{
defaultMessage: 'Signals index permissions required',
}
);

export const NO_WRITE_SIGNALS_CALLOUT_MSG = i18n.translate(
'xpack.siem.detectionEngine.noWriteSignalsCallOutMsg',
'xpack.securitySolution.detectionEngine.noWriteSignalsCallOutMsg',
{
defaultMessage:
'You are currently missing the required permissions to update signals. Please contact your administrator for further assistance.',
}
);

export const DISMISS_CALLOUT = i18n.translate(
'xpack.siem.detectionEngine.dismissNoWriteSignalButton',
'xpack.securitySolution.detectionEngine.dismissNoWriteSignalButton',
{
defaultMessage: 'Dismiss',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,50 @@

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

export const FILTERS_LABEL = i18n.translate('xpack.siem.detectionEngine.createRule.filtersLabel', {
defaultMessage: 'Filters',
});
export const FILTERS_LABEL = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.filtersLabel',
{
defaultMessage: 'Filters',
}
);

export const QUERY_LABEL = i18n.translate('xpack.siem.detectionEngine.createRule.QueryLabel', {
defaultMessage: 'Custom query',
});
export const QUERY_LABEL = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.QueryLabel',
{
defaultMessage: 'Custom query',
}
);

export const SAVED_ID_LABEL = i18n.translate('xpack.siem.detectionEngine.createRule.savedIdLabel', {
defaultMessage: 'Saved query name',
});
export const SAVED_ID_LABEL = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.savedIdLabel',
{
defaultMessage: 'Saved query name',
}
);

export const ML_TYPE_DESCRIPTION = i18n.translate(
'xpack.siem.detectionEngine.createRule.mlRuleTypeDescription',
'xpack.securitySolution.detectionEngine.createRule.mlRuleTypeDescription',
{
defaultMessage: 'Machine Learning',
}
);

export const QUERY_TYPE_DESCRIPTION = i18n.translate(
'xpack.siem.detectionEngine.createRule.queryRuleTypeDescription',
'xpack.securitySolution.detectionEngine.createRule.queryRuleTypeDescription',
{
defaultMessage: 'Query',
}
);

export const ML_JOB_STARTED = i18n.translate(
'xpack.siem.detectionEngine.ruleDescription.mlJobStartedDescription',
'xpack.securitySolution.detectionEngine.ruleDescription.mlJobStartedDescription',
{
defaultMessage: 'Started',
}
);

export const ML_JOB_STOPPED = i18n.translate(
'xpack.siem.detectionEngine.ruleDescription.mlJobStoppedDescription',
'xpack.securitySolution.detectionEngine.ruleDescription.mlJobStoppedDescription',
{
defaultMessage: 'Stopped',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,36 @@

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

export const TACTIC = i18n.translate('xpack.siem.detectionEngine.mitreAttack.tacticsDescription', {
defaultMessage: 'tactic',
});
export const TACTIC = i18n.translate(
'xpack.securitySolution.detectionEngine.mitreAttack.tacticsDescription',
{
defaultMessage: 'tactic',
}
);

export const TECHNIQUE = i18n.translate(
'xpack.siem.detectionEngine.mitreAttack.techniquesDescription',
'xpack.securitySolution.detectionEngine.mitreAttack.techniquesDescription',
{
defaultMessage: 'techniques',
}
);

export const ADD_MITRE_ATTACK = i18n.translate('xpack.siem.detectionEngine.mitreAttack.addTitle', {
defaultMessage: 'Add MITRE ATT&CK\\u2122 threat',
});
export const ADD_MITRE_ATTACK = i18n.translate(
'xpack.securitySolution.detectionEngine.mitreAttack.addTitle',
{
defaultMessage: 'Add MITRE ATT&CK\\u2122 threat',
}
);

export const TECHNIQUES_PLACEHOLDER = i18n.translate(
'xpack.siem.detectionEngine.mitreAttack.techniquesPlaceHolderDescription',
'xpack.securitySolution.detectionEngine.mitreAttack.techniquesPlaceHolderDescription',
{
defaultMessage: 'Select techniques ...',
}
);

export const TACTIC_PLACEHOLDER = i18n.translate(
'xpack.siem.detectionEngine.mitreAttack.tacticPlaceHolderDescription',
'xpack.securitySolution.detectionEngine.mitreAttack.tacticPlaceHolderDescription',
{
defaultMessage: 'Select tactic ...',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ const HelpText: React.FC<{ href: string; showEnableWarning: boolean }> = ({
}) => (
<>
<FormattedMessage
id="xpack.siem.detectionEngine.createRule.stepDefineRule.machineLearningJobIdHelpText"
id="xpack.securitySolution.detectionEngine.createRule.stepDefineRule.machineLearningJobIdHelpText"
defaultMessage="We've provided a few common jobs to get you started. To add your own custom jobs, assign a group of “siem” to those jobs in the {machineLearning} application to make them appear here."
values={{
machineLearning: (
<EuiLink href={href} target="_blank">
<FormattedMessage
id="xpack.siem.components.mlJobSelect.machineLearningLink"
id="xpack.securitySolution.components.mlJobSelect.machineLearningLink"
defaultMessage="Machine Learning"
/>
</EuiLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,57 @@
import { i18n } from '@kbn/i18n';

export const PRE_BUILT_TITLE = i18n.translate(
'xpack.siem.detectionEngine.rules.prePackagedRules.emptyPromptTitle',
'xpack.securitySolution.detectionEngine.rules.prePackagedRules.emptyPromptTitle',
{
defaultMessage: 'Load Elastic prebuilt detection rules',
}
);

export const PRE_BUILT_MSG = i18n.translate(
'xpack.siem.detectionEngine.rules.prePackagedRules.emptyPromptMessage',
'xpack.securitySolution.detectionEngine.rules.prePackagedRules.emptyPromptMessage',
{
defaultMessage:
'Elastic SIEM comes with prebuilt detection rules that run in the background and create signals when their conditions are met. By default, all prebuilt rules are disabled and you select which rules you want to activate.',
}
);

export const PRE_BUILT_ACTION = i18n.translate(
'xpack.siem.detectionEngine.rules.prePackagedRules.loadPreBuiltButton',
'xpack.securitySolution.detectionEngine.rules.prePackagedRules.loadPreBuiltButton',
{
defaultMessage: 'Load prebuilt detection rules',
}
);

export const CREATE_RULE_ACTION = i18n.translate(
'xpack.siem.detectionEngine.rules.prePackagedRules.createOwnRuletButton',
'xpack.securitySolution.detectionEngine.rules.prePackagedRules.createOwnRuletButton',
{
defaultMessage: 'Create your own rules',
}
);

export const UPDATE_PREPACKAGED_RULES_TITLE = i18n.translate(
'xpack.siem.detectionEngine.rules.updatePrePackagedRulesTitle',
'xpack.securitySolution.detectionEngine.rules.updatePrePackagedRulesTitle',
{
defaultMessage: 'Update available for Elastic prebuilt rules',
}
);

export const UPDATE_PREPACKAGED_RULES_MSG = (updateRules: number) =>
i18n.translate('xpack.siem.detectionEngine.rules.updatePrePackagedRulesMsg', {
i18n.translate('xpack.securitySolution.detectionEngine.rules.updatePrePackagedRulesMsg', {
values: { updateRules },
defaultMessage:
'You can update {updateRules} Elastic prebuilt {updateRules, plural, =1 {rule} other {rules}}. Note that this will reload deleted Elastic prebuilt rules.',
});

export const UPDATE_PREPACKAGED_RULES = (updateRules: number) =>
i18n.translate('xpack.siem.detectionEngine.rules.updatePrePackagedRulesButton', {
i18n.translate('xpack.securitySolution.detectionEngine.rules.updatePrePackagedRulesButton', {
values: { updateRules },
defaultMessage:
'Update {updateRules} Elastic prebuilt {updateRules, plural, =1 {rule} other {rules}} ',
});

export const RELEASE_NOTES_HELP = i18n.translate(
'xpack.siem.detectionEngine.rules.releaseNotesHelp',
'xpack.securitySolution.detectionEngine.rules.releaseNotesHelp',
{
defaultMessage: 'Release notes',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { i18n } from '@kbn/i18n';

export const IMPORT_TIMELINE_MODAL = i18n.translate(
'xpack.siem.detectionEngine.createRule.stepDefineRule.importTimelineModalTitle',
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.importTimelineModalTitle',
{
defaultMessage: 'Import query from saved timeline',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@
import { i18n } from '@kbn/i18n';

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

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

export const DISMISS_CALLOUT = i18n.translate('xpack.siem.detectionEngine.dismissButton', {
defaultMessage: 'Dismiss',
});
export const DISMISS_CALLOUT = i18n.translate(
'xpack.securitySolution.detectionEngine.dismissButton',
{
defaultMessage: 'Dismiss',
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { i18n } from '@kbn/i18n';

export const FORM_ERRORS_TITLE = i18n.translate(
'xpack.siem.detectionEngine.createRule.ruleActionsField.ruleActionsFormErrorsTitle',
'xpack.securitySolution.detectionEngine.createRule.ruleActionsField.ruleActionsFormErrorsTitle',
{
defaultMessage: 'Please fix issues listed below',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { i18n } from '@kbn/i18n';

export const ALL_ACTIONS = i18n.translate(
'xpack.siem.detectionEngine.rules.components.ruleActionsOverflow.allActionsTitle',
'xpack.securitySolution.detectionEngine.rules.components.ruleActionsOverflow.allActionsTitle',
{
defaultMessage: 'All actions',
}
Expand Down
Loading

0 comments on commit 68e4f1d

Please sign in to comment.