Commit 66fb025c authored by Mark Chao's avatar Mark Chao

Merge branch 'psi-occurred' into 'master'

Correct spelling of occurred

See merge request gitlab-org/gitlab!54537
parents 233423f9 38de9098
...@@ -22,10 +22,10 @@ export const i18n = { ...@@ -22,10 +22,10 @@ export const i18n = {
owner_disabled: __('Notifications have been disabled by the project or group owner'), owner_disabled: __('Notifications have been disabled by the project or group owner'),
}, },
updateNotificationLevelErrorMessage: __( updateNotificationLevelErrorMessage: __(
'An error occured while updating the notification settings. Please try again.', 'An error occurred while updating the notification settings. Please try again.',
), ),
loadNotificationLevelErrorMessage: __( loadNotificationLevelErrorMessage: __(
'An error occured while loading the notification settings. Please try again.', 'An error occurred while loading the notification settings. Please try again.',
), ),
customNotificationsModal: { customNotificationsModal: {
title: __('Custom notification events'), title: __('Custom notification events'),
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
}; };
}, },
errorTexts: { errorTexts: {
[DRAW_FAILURE]: __('An error ocurred while drawing job relationship links.'), [DRAW_FAILURE]: __('An error occurred while drawing job relationship links.'),
[LOAD_FAILURE]: __('We are currently unable to fetch data for this pipeline.'), [LOAD_FAILURE]: __('We are currently unable to fetch data for this pipeline.'),
[DEFAULT]: __('An unknown error occurred while loading this graph.'), [DEFAULT]: __('An unknown error occurred while loading this graph.'),
}, },
......
...@@ -252,10 +252,10 @@ export default { ...@@ -252,10 +252,10 @@ export default {
}, },
errorTexts: { errorTexts: {
[LOAD_ANALYTICS_FAILURE]: s__( [LOAD_ANALYTICS_FAILURE]: s__(
'PipelineCharts|An error has ocurred when retrieving the analytics data', 'PipelineCharts|An error has occurred when retrieving the analytics data',
), ),
[LOAD_PIPELINES_FAILURE]: s__( [LOAD_PIPELINES_FAILURE]: s__(
'PipelineCharts|An error has ocurred when retrieving the pipelines data', 'PipelineCharts|An error has occurred when retrieving the pipelines data',
), ),
[PARSE_FAILURE]: s__('PipelineCharts|There was an error parsing the data for the charts.'), [PARSE_FAILURE]: s__('PipelineCharts|There was an error parsing the data for the charts.'),
[DEFAULT]: s__('PipelineCharts|An unknown error occurred while processing CI/CD analytics.'), [DEFAULT]: s__('PipelineCharts|An unknown error occurred while processing CI/CD analytics.'),
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
}) })
.catch((err) => { .catch((err) => {
this.showAlert( this.showAlert(
sprintf(__('An error occured while saving changes: %{error}'), { sprintf(__('An error occurred while saving changes: %{error}'), {
error: err?.response?.data?.message, error: err?.response?.data?.message,
}), }),
); );
......
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
} }
if (!report.name) { if (!report.name) {
return s__('Reports|An error occured while loading report'); return s__('Reports|An error occurred while loading report');
} }
return reportTextBuilder(name, summary); return reportTextBuilder(name, summary);
......
...@@ -12,7 +12,7 @@ export const SUBMIT_CHANGES_MERGE_REQUEST_ERROR = s__( ...@@ -12,7 +12,7 @@ export const SUBMIT_CHANGES_MERGE_REQUEST_ERROR = s__(
'StaticSiteEditor|Could not create merge request.', 'StaticSiteEditor|Could not create merge request.',
); );
export const LOAD_CONTENT_ERROR = __( export const LOAD_CONTENT_ERROR = __(
'An error ocurred while loading your content. Please try again.', 'An error occurred while loading your content. Please try again.',
); );
export const DEFAULT_FORMATTING_CHANGES_COMMIT_MESSAGE = s__( export const DEFAULT_FORMATTING_CHANGES_COMMIT_MESSAGE = s__(
......
...@@ -49,7 +49,7 @@ export const DEVOPS_ADOPTION_STRINGS = { ...@@ -49,7 +49,7 @@ export const DEVOPS_ADOPTION_STRINGS = {
filterPlaceholder: s__('DevopsAdoption|Filter by name'), filterPlaceholder: s__('DevopsAdoption|Filter by name'),
selectedGroupsTextSingular: s__('DevopsAdoption|%{selectedCount} group selected'), selectedGroupsTextSingular: s__('DevopsAdoption|%{selectedCount} group selected'),
selectedGroupsTextPlural: s__('DevopsAdoption|%{selectedCount} groups selected'), selectedGroupsTextPlural: s__('DevopsAdoption|%{selectedCount} groups selected'),
error: s__('DevopsAdoption|An error occured while saving the group. Please try again.'), error: s__('DevopsAdoption|An error occurred while saving the group. Please try again.'),
noResults: s__('DevopsAdoption|No filter results.'), noResults: s__('DevopsAdoption|No filter results.'),
}, },
table: { table: {
...@@ -95,7 +95,7 @@ export const DEVOPS_ADOPTION_STRINGS = { ...@@ -95,7 +95,7 @@ export const DEVOPS_ADOPTION_STRINGS = {
), ),
cancel: __('Cancel'), cancel: __('Cancel'),
confirm: s__('DevopsAdoption|Remove Group'), confirm: s__('DevopsAdoption|Remove Group'),
error: s__('DevopsAdoption|An error occured while removing the group. Please try again.'), error: s__('DevopsAdoption|An error occurred while removing the group. Please try again.'),
}, },
tableCell: { tableCell: {
trueText: s__('DevopsAdoption|Adopted'), trueText: s__('DevopsAdoption|Adopted'),
......
...@@ -27,7 +27,7 @@ export const i18n = { ...@@ -27,7 +27,7 @@ export const i18n = {
defaultText: s__('JiraService|Select issue type'), defaultText: s__('JiraService|Select issue type'),
}, },
fetchIssueTypesButtonLabel: s__('JiraService|Fetch issue types for this Jira project'), fetchIssueTypesButtonLabel: s__('JiraService|Fetch issue types for this Jira project'),
fetchIssueTypesErrorMessage: s__('JiraService|An error occured while fetching issue list'), fetchIssueTypesErrorMessage: s__('JiraService|An error occurred while fetching issue list'),
projectKeyWarnings: { projectKeyWarnings: {
missing: s__('JiraService|Project key is required to generate issue types'), missing: s__('JiraService|Project key is required to generate issue types'),
changed: s__('JiraService|Project key changed, refresh list'), changed: s__('JiraService|Project key changed, refresh list'),
......
...@@ -52,7 +52,7 @@ module Gitlab ...@@ -52,7 +52,7 @@ module Gitlab
class Error < StandardError class Error < StandardError
def initialize(bucket:, error:, **args) def initialize(bucket:, error:, **args)
super( super(
"Error occured #{error.class.name.inspect} " \ "Error occurred #{error.class.name.inspect} " \
"for bucket #{bucket.inspect}. " \ "for bucket #{bucket.inspect}. " \
"Arguments: #{args.inspect}" "Arguments: #{args.inspect}"
) )
......
...@@ -128,9 +128,9 @@ export const devopsAdoptionTableHeaders = [ ...@@ -128,9 +128,9 @@ export const devopsAdoptionTableHeaders = [
export const segmentName = 'Foooo'; export const segmentName = 'Foooo';
export const genericErrorMessage = 'An error occured while saving the group. Please try again.'; export const genericErrorMessage = 'An error occurred while saving the group. Please try again.';
export const dataErrorMessage = 'Name already taken.'; export const dataErrorMessage = 'Name already taken.';
export const genericDeleteErrorMessage = export const genericDeleteErrorMessage =
'An error occured while removing the group. Please try again.'; 'An error occurred while removing the group. Please try again.';
...@@ -168,7 +168,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3Client, :aws_s3 do ...@@ -168,7 +168,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3Client, :aws_s3 do
end end
def error_message(error_class, **args) def error_message(error_class, **args)
%{Error occured "Aws::S3::Errors::#{error_class}" } \ %{Error occurred "Aws::S3::Errors::#{error_class}" } \
"for bucket #{bucket_name.inspect}. Arguments: #{args.inspect}" "for bucket #{bucket_name.inspect}. Arguments: #{args.inspect}"
end end
......
...@@ -108,7 +108,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3MultipartUpload, :aws_s3 do ...@@ -108,7 +108,7 @@ RSpec.describe Gitlab::StatusPage::Storage::S3MultipartUpload, :aws_s3 do
end end
def error_message(error_class, **args) def error_message(error_class, **args)
%{Error occured "Aws::S3::Errors::#{error_class}" } \ %{Error occurred "Aws::S3::Errors::#{error_class}" } \
"for bucket #{bucket_name.inspect}. Arguments: #{args.inspect}" "for bucket #{bucket_name.inspect}. Arguments: #{args.inspect}"
end end
end end
...@@ -3214,15 +3214,6 @@ msgstr "" ...@@ -3214,15 +3214,6 @@ msgstr ""
msgid "An error has occurred" msgid "An error has occurred"
msgstr "" msgstr ""
msgid "An error occured while loading the notification settings. Please try again."
msgstr ""
msgid "An error occured while saving changes: %{error}"
msgstr ""
msgid "An error occured while updating the notification settings. Please try again."
msgstr ""
msgid "An error occurred adding a draft to the thread." msgid "An error occurred adding a draft to the thread."
msgstr "" msgstr ""
...@@ -3301,6 +3292,9 @@ msgstr "" ...@@ -3301,6 +3292,9 @@ msgstr ""
msgid "An error occurred while dismissing the feature highlight. Refresh the page and try dismissing again." msgid "An error occurred while dismissing the feature highlight. Refresh the page and try dismissing again."
msgstr "" msgstr ""
msgid "An error occurred while drawing job relationship links."
msgstr ""
msgid "An error occurred while enabling Service Desk." msgid "An error occurred while enabling Service Desk."
msgstr "" msgstr ""
...@@ -3457,12 +3451,18 @@ msgstr "" ...@@ -3457,12 +3451,18 @@ msgstr ""
msgid "An error occurred while loading the merge request." msgid "An error occurred while loading the merge request."
msgstr "" msgstr ""
msgid "An error occurred while loading the notification settings. Please try again."
msgstr ""
msgid "An error occurred while loading the pipeline." msgid "An error occurred while loading the pipeline."
msgstr "" msgstr ""
msgid "An error occurred while loading the pipelines jobs." msgid "An error occurred while loading the pipelines jobs."
msgstr "" msgstr ""
msgid "An error occurred while loading your content. Please try again."
msgstr ""
msgid "An error occurred while making the request." msgid "An error occurred while making the request."
msgstr "" msgstr ""
...@@ -3505,6 +3505,9 @@ msgstr "" ...@@ -3505,6 +3505,9 @@ msgstr ""
msgid "An error occurred while retrieving projects." msgid "An error occurred while retrieving projects."
msgstr "" msgstr ""
msgid "An error occurred while saving changes: %{error}"
msgstr ""
msgid "An error occurred while searching users." msgid "An error occurred while searching users."
msgstr "" msgstr ""
...@@ -3544,6 +3547,9 @@ msgstr "" ...@@ -3544,6 +3547,9 @@ msgstr ""
msgid "An error occurred while updating the milestone." msgid "An error occurred while updating the milestone."
msgstr "" msgstr ""
msgid "An error occurred while updating the notification settings. Please try again."
msgstr ""
msgid "An error occurred while validating group path" msgid "An error occurred while validating group path"
msgstr "" msgstr ""
...@@ -3556,12 +3562,6 @@ msgstr "" ...@@ -3556,12 +3562,6 @@ msgstr ""
msgid "An error occurred. Please try again." msgid "An error occurred. Please try again."
msgstr "" msgstr ""
msgid "An error ocurred while drawing job relationship links."
msgstr ""
msgid "An error ocurred while loading your content. Please try again."
msgstr ""
msgid "An example project for managing Kubernetes clusters integrated with GitLab" msgid "An example project for managing Kubernetes clusters integrated with GitLab"
msgstr "" msgstr ""
...@@ -10359,10 +10359,10 @@ msgstr "" ...@@ -10359,10 +10359,10 @@ msgstr ""
msgid "DevopsAdoption|Adopted" msgid "DevopsAdoption|Adopted"
msgstr "" msgstr ""
msgid "DevopsAdoption|An error occured while removing the group. Please try again." msgid "DevopsAdoption|An error occurred while removing the group. Please try again."
msgstr "" msgstr ""
msgid "DevopsAdoption|An error occured while saving the group. Please try again." msgid "DevopsAdoption|An error occurred while saving the group. Please try again."
msgstr "" msgstr ""
msgid "DevopsAdoption|Approvals" msgid "DevopsAdoption|Approvals"
...@@ -16807,7 +16807,7 @@ msgstr "" ...@@ -16807,7 +16807,7 @@ msgstr ""
msgid "JiraService|%{user_link} mentioned this issue in %{entity_link} of %{project_link}%{branch}:{quote}%{entity_message}{quote}" msgid "JiraService|%{user_link} mentioned this issue in %{entity_link} of %{project_link}%{branch}:{quote}%{entity_message}{quote}"
msgstr "" msgstr ""
msgid "JiraService|An error occured while fetching issue list" msgid "JiraService|An error occurred while fetching issue list"
msgstr "" msgstr ""
msgid "JiraService|Automatically transitions Jira issues to the \"Done\" category. %{linkStart}Learn more%{linkEnd}" msgid "JiraService|Automatically transitions Jira issues to the \"Done\" category. %{linkStart}Learn more%{linkEnd}"
...@@ -21695,10 +21695,10 @@ msgstr "" ...@@ -21695,10 +21695,10 @@ msgstr ""
msgid "Pipeline: %{status}" msgid "Pipeline: %{status}"
msgstr "" msgstr ""
msgid "PipelineCharts|An error has ocurred when retrieving the analytics data" msgid "PipelineCharts|An error has occurred when retrieving the analytics data"
msgstr "" msgstr ""
msgid "PipelineCharts|An error has ocurred when retrieving the pipelines data" msgid "PipelineCharts|An error has occurred when retrieving the pipelines data"
msgstr "" msgstr ""
msgid "PipelineCharts|An unknown error occurred while processing CI/CD analytics." msgid "PipelineCharts|An unknown error occurred while processing CI/CD analytics."
...@@ -24925,10 +24925,10 @@ msgstr "" ...@@ -24925,10 +24925,10 @@ msgstr ""
msgid "Reports|Activity" msgid "Reports|Activity"
msgstr "" msgstr ""
msgid "Reports|An error occured while loading report" msgid "Reports|An error occurred while loading %{name} results"
msgstr "" msgstr ""
msgid "Reports|An error occurred while loading %{name} results" msgid "Reports|An error occurred while loading report"
msgstr "" msgstr ""
msgid "Reports|Class" msgid "Reports|Class"
......
...@@ -53,13 +53,13 @@ RSpec.describe Projects::WebIdeSchemasController do ...@@ -53,13 +53,13 @@ RSpec.describe Projects::WebIdeSchemasController do
end end
context 'when an error occurs parsing the schema' do context 'when an error occurs parsing the schema' do
let(:result) { { status: :error, message: 'Some error occured' } } let(:result) { { status: :error, message: 'Some error occurred' } }
it 'returns 422 with the error' do it 'returns 422 with the error' do
subject subject
expect(response).to have_gitlab_http_status(:unprocessable_entity) expect(response).to have_gitlab_http_status(:unprocessable_entity)
expect(response.body).to eq('{"status":"error","message":"Some error occured"}') expect(response.body).to eq('{"status":"error","message":"Some error occurred"}')
end end
end end
end end
......
...@@ -140,7 +140,7 @@ RSpec.describe 'Pages edits pages settings', :js do ...@@ -140,7 +140,7 @@ RSpec.describe 'Pages edits pages settings', :js do
before do before do
allow(Projects::UpdateService).to receive(:new).and_return(service) allow(Projects::UpdateService).to receive(:new).and_return(service)
allow(service).to receive(:execute).and_return(status: :error, message: 'Some error has occured') allow(service).to receive(:execute).and_return(status: :error, message: 'Some error has occurred')
end end
it 'tries to change the setting' do it 'tries to change the setting' do
...@@ -150,7 +150,7 @@ RSpec.describe 'Pages edits pages settings', :js do ...@@ -150,7 +150,7 @@ RSpec.describe 'Pages edits pages settings', :js do
click_button 'Save' click_button 'Save'
expect(page).to have_text('Some error has occured') expect(page).to have_text('Some error has occurred')
end end
end end
......
...@@ -188,7 +188,7 @@ describe('dashboard invalid url parameters', () => { ...@@ -188,7 +188,7 @@ describe('dashboard invalid url parameters', () => {
}); });
describe('when there is an error', () => { describe('when there is an error', () => {
const mockError = 'an error ocurred!'; const mockError = 'an error occurred!';
beforeEach(() => { beforeEach(() => {
store.commit(`monitoringDashboard/${types.RECEIVE_PANEL_PREVIEW_FAILURE}`, mockError); store.commit(`monitoringDashboard/${types.RECEIVE_PANEL_PREVIEW_FAILURE}`, mockError);
......
...@@ -94,7 +94,7 @@ describe('monitoring metrics_requests', () => { ...@@ -94,7 +94,7 @@ describe('monitoring metrics_requests', () => {
it('rejects after getting an HTTP 500 error', () => { it('rejects after getting an HTTP 500 error', () => {
mock.onGet(prometheusEndpoint).reply(500, { mock.onGet(prometheusEndpoint).reply(500, {
status: 'error', status: 'error',
error: 'An error ocurred', error: 'An error occurred',
}); });
return getPrometheusQueryData(prometheusEndpoint, params).catch((error) => { return getPrometheusQueryData(prometheusEndpoint, params).catch((error) => {
...@@ -106,7 +106,7 @@ describe('monitoring metrics_requests', () => { ...@@ -106,7 +106,7 @@ describe('monitoring metrics_requests', () => {
// Mock multiple attempts while the cache is filling up and fails // Mock multiple attempts while the cache is filling up and fails
mock.onGet(prometheusEndpoint).reply(statusCodes.UNAUTHORIZED, { mock.onGet(prometheusEndpoint).reply(statusCodes.UNAUTHORIZED, {
status: 'error', status: 'error',
error: 'An error ocurred', error: 'An error occurred',
}); });
return getPrometheusQueryData(prometheusEndpoint, params).catch((error) => { return getPrometheusQueryData(prometheusEndpoint, params).catch((error) => {
...@@ -120,7 +120,7 @@ describe('monitoring metrics_requests', () => { ...@@ -120,7 +120,7 @@ describe('monitoring metrics_requests', () => {
mock.onGet(prometheusEndpoint).replyOnce(statusCodes.NO_CONTENT); mock.onGet(prometheusEndpoint).replyOnce(statusCodes.NO_CONTENT);
mock.onGet(prometheusEndpoint).reply(500, { mock.onGet(prometheusEndpoint).reply(500, {
status: 'error', status: 'error',
error: 'An error ocurred', error: 'An error occurred',
}); // 3rd attempt }); // 3rd attempt
return getPrometheusQueryData(prometheusEndpoint, params).catch((error) => { return getPrometheusQueryData(prometheusEndpoint, params).catch((error) => {
......
...@@ -180,7 +180,7 @@ describe('CustomNotificationsModal', () => { ...@@ -180,7 +180,7 @@ describe('CustomNotificationsModal', () => {
expect( expect(
mockToastShow, mockToastShow,
).toHaveBeenCalledWith( ).toHaveBeenCalledWith(
'An error occured while loading the notification settings. Please try again.', 'An error occurred while loading the notification settings. Please try again.',
{ type: 'error' }, { type: 'error' },
); );
}); });
...@@ -258,7 +258,7 @@ describe('CustomNotificationsModal', () => { ...@@ -258,7 +258,7 @@ describe('CustomNotificationsModal', () => {
expect( expect(
mockToastShow, mockToastShow,
).toHaveBeenCalledWith( ).toHaveBeenCalledWith(
'An error occured while updating the notification settings. Please try again.', 'An error occurred while updating the notification settings. Please try again.',
{ type: 'error' }, { type: 'error' },
); );
}); });
......
...@@ -255,7 +255,7 @@ describe('NotificationsDropdown', () => { ...@@ -255,7 +255,7 @@ describe('NotificationsDropdown', () => {
expect( expect(
mockToastShow, mockToastShow,
).toHaveBeenCalledWith( ).toHaveBeenCalledWith(
'An error occured while updating the notification settings. Please try again.', 'An error occurred while updating the notification settings. Please try again.',
{ type: 'error' }, { type: 'error' },
); );
}); });
......
...@@ -154,7 +154,7 @@ describe('ServiceDeskRoot', () => { ...@@ -154,7 +154,7 @@ describe('ServiceDeskRoot', () => {
}); });
it('shows an error message', () => { it('shows an error message', () => {
expect(getAlertText()).toContain('An error occured while saving changes:'); expect(getAlertText()).toContain('An error occurred while saving changes:');
}); });
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment