Skip to content

Commit

Permalink
Fix some spelling errors (part 8) (#12509)
Browse files Browse the repository at this point in the history
* spelling: announcement

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: available

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: capybara

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: case-sensitive

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: counts

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: decidim

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: highlighted

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: message

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: occurred

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: participatory

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: preferably

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: sent

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: succeed

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: successfully

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: themselves

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: transferring

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

---------

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Feb 29, 2024
1 parent f890380 commit d0ab580
Show file tree
Hide file tree
Showing 59 changed files with 84 additions and 84 deletions.
4 changes: 2 additions & 2 deletions decidim-accountability/spec/types/integration_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down Expand Up @@ -294,7 +294,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def sent_to_users(newsletter)

def sent_to_spaces(newsletter)
html = "<p style='margin-bottom:0;'> "
newsletter.sended_to_partipatory_spaces.try(:each) do |type|
newsletter.sent_to_participatory_spaces.try(:each) do |type|
next if type["ids"].blank?

html += t("index.segmented_to", scope: "decidim.admin.newsletters", subject: t("activerecord.models.decidim/#{type["manifest_name"].singularize}.other"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def perform(email, user_name, privatable_to, current_user)
private_user_form = ParticipatorySpacePrivateUserForm.from_params(params, privatable_to:)
.with_context(
current_user:,
current_particiaptory_space: privatable_to
current_participatory_space: privatable_to
)

Decidim::Admin::CreateParticipatorySpacePrivateUser.call(private_user_form, current_user, privatable_to, via_csv: true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<div class="card-section">
<h5 class="draggable-list-title"><%= inactive_content_blocks_title %></h5>

<ul class="draggable-list js-connect js-list-availables">
<ul class="draggable-list js-connect js-list-available">
<% inactive_blocks.each do |content_block_or_manifest| %>
<%= cell resource_content_block_cell, content_block_or_manifest %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion decidim-admin/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ en:
title: Verification conflicts
transfer:
email: Email
error: There was a problem transfering the current participant to managed participant.
error: There was a problem transferring the current participant to managed participant.
name: Name
reason: Reason
success: The current transfer has been successfully completed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module Admin
}
}

expect(flash[:alert]).to eq("There was a problem transfering the current participant to managed participant.")
expect(flash[:alert]).to eq("There was a problem transferring the current participant to managed participant.")
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def serialize
local_area: assembly.local_area,
target: assembly.target,
decidim_scope_id: assembly.decidim_scope_id,
paticipatory_scope: assembly.participatory_scope,
paticipatory_scope: assembly.participatory_scope, # intentionally misspelled
participatory_structure: assembly.participatory_structure,
show_statistics: assembly.show_statistics,
scopes_enabled: assembly.scopes_enabled,
Expand Down
2 changes: 1 addition & 1 deletion decidim-assemblies/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ en:
form:
existing_user: Existing participant
explanation: 'Guidance for image:'
image_guide: Preferrably a portrait image that does not have any text.
image_guide: Preferably a portrait image that does not have any text.
non_user: Non participant
non_user_avatar_help: You should get the consent of the persons before publishing them as a member.
select_a_position: Select a position
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Decidim::Assemblies
expect(serialized).to include(local_area: resource.local_area)
expect(serialized).to include(target: resource.target)
expect(serialized).to include(decidim_scope_id: resource.decidim_scope_id)
expect(serialized).to include(paticipatory_scope: resource.participatory_scope)
expect(serialized).to include(participatory_scope: resource.participatory_scope)
expect(serialized).to include(participatory_structure: resource.participatory_structure)
expect(serialized).to include(show_statistics: resource.show_statistics)
expect(serialized).to include(scopes_enabled: resource.scopes_enabled)
Expand Down
4 changes: 2 additions & 2 deletions decidim-assemblies/spec/types/integration_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
end

describe "valid query" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down Expand Up @@ -367,7 +367,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
4 changes: 2 additions & 2 deletions decidim-blogs/spec/types/integration_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
end

context "when unfiltered" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down Expand Up @@ -306,7 +306,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
4 changes: 2 additions & 2 deletions decidim-budgets/spec/types/integration_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down Expand Up @@ -178,7 +178,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
4 changes: 2 additions & 2 deletions decidim-conferences/spec/types/integration_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
end

describe "valid query" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down Expand Up @@ -217,7 +217,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/models/decidim/newsletter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def sended_to_participants?
extended_data["send_to_participants"]
end

def sended_to_partipatory_spaces
def sent_to_participatory_spaces
extended_data["participatory_space_types"]
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Decidim
# A messsage from a conversation that will be sent as a push notification
# A message from a conversation that will be sent as a push notification
class PushNotificationMessage
class InvalidActionError < StandardError; end

Expand Down
8 changes: 4 additions & 4 deletions decidim-core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,9 @@ en:
email_subject: A user group has updated its profile
notification_title: The %{user_group_name} user group has updated its profile, leaving it unverified. You can now verify it in the <a href="%{groups_admin_path}">admin panel</a>.
nickname_event:
notification_body: We have corrected the way nicknames are used so that there are no duplicates, and that is why we have removed the case sensitive rule. <br/> Your nickname was created after another one with the same name, so we have automatically renamed it. You can change it from <a href="%{link_to_account_settings}">your account settings</a>.
notification_body: We have corrected the way nicknames are used so that there are no duplicates, and that is why we have removed the case-sensitive rule. <br/> Your nickname was created after another one with the same name, so we have automatically renamed it. You can change it from <a href="%{link_to_account_settings}">your account settings</a>.
notification_event:
notification_title: An event occured to <a href="%{resource_path}">%{resource_title}</a>.
notification_title: An event occurred to <a href="%{resource_path}">%{resource_title}</a>.
reports:
resource_hidden:
email_intro: An administrator removed your %{resource_type} because it has been reported as %{report_reasons}.
Expand Down Expand Up @@ -898,14 +898,14 @@ en:
file:
explanation: 'Guidance for file:'
message_1: Has to be an image or a document.
message_2: For images, use preferrably landscape images, the service crops the image.
message_2: For images, use preferably landscape images, the service crops the image.
icon:
explanation: 'Guidance for icon:'
message_1: Has to be a square image.
message_2: The recommended size for this image is 512x512.
image:
explanation: 'Guidance for image:'
message_1: Preferrably a landscape image that does not have any text.
message_1: Preferably a landscape image that does not have any text.
message_2: The service crops the image.
file_validation:
allowed_file_extensions: 'Allowed file extensions: %{extensions}'
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def self.register_assets_path(path)
end

# Checks if a particular decidim gem is installed and needed by this
# particular instance. Preferrably this happens through bundler by inspecting
# particular instance. Preferably this happens through bundler by inspecting
# the Gemfile of the instance but when Decidim is used without bundler, this
# will check:
# 1. If the gem is globally available or not in the loaded specs, i.e. the
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/cells/decidim/notification_cell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

context "when resource exists" do
it "Resource title is present" do
expect(my_cell.notification_title).to include("An event occured")
expect(my_cell.notification_title).to include("An event occurred")
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

describe "notification_title" do
it "is generated correctly" do
expect(subject.notification_title).to include("We have corrected the way nicknames are used so that there are no duplicates, and that is why we have removed the case sensitive rule. <br/> Your nickname was created after another one with the same name, so we have automatically renamed it. You can change it from <a href=\"/account\">your account settings</a>.")
expect(subject.notification_title).to include("We have corrected the way nicknames are used so that there are no duplicates, and that is why we have removed the case-sensitive rule. <br/> Your nickname was created after another one with the same name, so we have automatically renamed it. You can change it from <a href=\"/account\">your account settings</a>.")
end
end
end
2 changes: 1 addition & 1 deletion decidim-core/spec/models/decidim/action_log_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
it { is_expected.to be_falsey }
end

context "when there is no particiaptory space" do
context "when there is no participatory space" do
before do
action_log.participatory_space.delete
end
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/services/decidim/html_truncation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
describe "count tail" do
let(:count_tail) { true }

it "countas tail" do
it "counts tail" do
expect(subject).to eq(text.truncate(max_length, omission: options[:tail]).to_s)
end
end
Expand Down
4 changes: 2 additions & 2 deletions decidim-core/spec/system/notifications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

expect(page).to have_current_path decidim.notifications_path
expect(page).to have_no_content("No notifications yet")
expect(page).to have_content("An event occured")
expect(page).to have_content("An event occurred")
end

context "when the resource has been deleted" do
Expand Down Expand Up @@ -89,7 +89,7 @@
end

context "when setting a single notification as read" do
let(:notification_title) { "An event occured to #{translated resource.title}" }
let(:notification_title) { "An event occurred to #{translated resource.title}" }

it "hides the notification from the page" do
expect(page).to have_content(decidim_sanitize_translated(notification_title))
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/types/decidim_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

describe "valid query" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/types/hashtags_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
end

describe "valid query" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/types/metrics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
end

describe "valid query" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/types/organization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

describe "valid query" do
it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
4 changes: 2 additions & 2 deletions decidim-debates/spec/types/integration_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down Expand Up @@ -156,7 +156,7 @@
)
end

it "executes sucessfully" do
it "executes successfully" do
expect { response }.not_to raise_error
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def tab_panels_sections
text: "Announcement",
icon: resource_type_icon_key("documents"),
method: :cell,
args: ["decidim/announcement", "I am an annoucement"]
args: ["decidim/announcement", "I am an announcement"]
}
]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"es": "Incidunt provident doloremque."
},
"decidim_scope_id": null,
"paticipatory_scope": {
"participatory_scope": {
"ca": "Assumenda.",
"en": "Quidem.",
"es": "Aspernatur."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/orchidjs/tom-select/discussions/71#discussioncomment-641757
module Capybara
module TomSelect
# A helper for Capyabara tests that need to set values from a tom-select.js input.
# A helper for Capybara tests that need to set values from a tom-select.js input.
#
# This is a really hacky approach using execute_javascript, but it works. Not sure if there is
# a better way, we could try actually interacting with the on-screen tom-select-provided UI,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def recreate_db
rails "db:test:prepare"
end

# Runs rails commands in a subprocess, and aborts if it does not suceeed
# Runs rails commands in a subprocess, and aborts if it does not succeed
def rails(*)
abort unless system("bin/rails", *)
end
Expand Down
2 changes: 1 addition & 1 deletion decidim-initiatives/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ en:
title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Search %{collection} by title, description, ID or author name.
initiatives_settings:
update:
error: An error has occured.
error: An error has occurred.
success: The initiatives settings have been successfully updated.
menu:
attachments: Attachments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
end
end

it "sucessfully displays initial values in the form" do
it "successfully displays initial values in the form" do
within ".global-settings" do
expect(all("input[type=checkbox]").last).to be_checked
end
Expand Down

0 comments on commit d0ab580

Please sign in to comment.