Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typos: Fix typos caught by typos and mwic.

Anders Kaseorg58822372d5a4
diff --git a/analytics/tests/test_counts.py b/analytics/tests/test_counts.py
index 85bc11316f8..a3b03db44b7 100644
--- a/analytics/tests/test_counts.py
+++ b/analytics/tests/test_counts.py
@@ -1836,7 +1836,7 @@ class TestActiveUsersAudit(AnalyticsTestCase):
do_fill_count_stat_at_hour(self.stat, self.TIME_ZERO)
self.assertTableState(RealmCount, [], [])
- def test_user_unactive_then_activated_same_day(self) -> None:
+ def test_user_inactive_then_activated_same_day(self) -> None:
self.add_event(AuditLogEventType.USER_DEACTIVATED, 1)
self.add_event(AuditLogEventType.USER_REACTIVATED, 0.5)
do_fill_count_stat_at_hour(self.stat, self.TIME_ZERO)
diff --git a/api_docs/changelog.md b/api_docs/changelog.md
index 6a267751c17..9e28f1a958c 100644
--- a/api_docs/changelog.md
+++ b/api_docs/changelog.md
@@ -1068,7 +1068,7 @@ No changes; feature level used for Zulip 8.0 release.
* `PATCH /realm`, [`POST /register`](/api/register-queue),
[`GET /events`](/api/get-events): Added `can_access_all_users_group_id`
realm setting, which is the ID of the user group whose members can
- access all the users in the oragnization.
+ access all the users in the organization.
* [`POST /register`](/api/register-queue): Added `allowed_system_groups`
field to configuration data object of permission settings passed in
diff --git a/api_docs/writing-bots.md b/api_docs/writing-bots.md
index cf3712d06d9..ba413196937 100644
--- a/api_docs/writing-bots.md
+++ b/api_docs/writing-bots.md
@@ -526,7 +526,7 @@ The long-term plan for this bot system is to allow the same
* Run directly using the Zulip `call_on_each_message` API, which is
how the implementation above works. This is great for quick
development with minimal setup.
-* Run in a simple Python webserver server, processing messages
+* Run in a simple Python web server, processing messages
received from Zulip's outgoing webhooks integration.
* For bots merged into the mainline Zulip codebase, enabled via a
button in the Zulip web UI, with no code deployment effort required.
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 1662fe56852..2e3c16d078b 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -1887,7 +1887,7 @@ class BillingSession(ABC):
_("Please add a credit card to schedule upgrade."),
)
- # Setting status > CustomerPLan.LIVE_STATUS_THRESHOLD makes sure we
+ # Setting status > CustomerPlan.LIVE_STATUS_THRESHOLD makes sure we
# don't have to worry about this plan being used for any other purpose.
# NOTE: This is the 2nd plan for the customer.
plan_params["status"] = CustomerPlan.NEVER_STARTED
diff --git a/docs/production/troubleshooting.md b/docs/production/troubleshooting.md
index cdab29897a6..5cdcb42c5ee 100644
--- a/docs/production/troubleshooting.md
+++ b/docs/production/troubleshooting.md
@@ -155,7 +155,7 @@ If one of these services is not installed or functioning correctly,
Zulip will not work. Below we detail some common configuration
problems and how to resolve them:
-- If your browser reports no webserver is running, that is likely
+- If your browser reports no web server is running, that is likely
because nginx is not configured properly and thus failed to start.
nginx will fail to start if you configured SSL incorrectly or did
not provide SSL certificates. To fix this, configure them properly
diff --git a/docs/translating/german.md b/docs/translating/german.md
index 3a454cbc457..0084b5091cc 100644
--- a/docs/translating/german.md
+++ b/docs/translating/german.md
@@ -302,7 +302,7 @@ _"Suchen" (YouTube, Google, Facebook, Transifex)_
- Pin/Unpin - **Anpinnen/Loslösen**
-While "pinnen" is shorter than "anpinnen", "anpinnen" sweeps any amiguity out of
+While "pinnen" is shorter than "anpinnen", "anpinnen" sweeps any ambiguity out of
the way. This term is not used too often on Zulip, so the length shouldn't be a
problem.
diff --git a/puppet/zulip/files/supervisor/conf.d/nginx.conf b/puppet/zulip/files/supervisor/conf.d/nginx.conf
index 0e49bc4a26e..96fe3f1d327 100644
--- a/puppet/zulip/files/supervisor/conf.d/nginx.conf
+++ b/puppet/zulip/files/supervisor/conf.d/nginx.conf
@@ -1,4 +1,4 @@
-; Used in docker.pp, starts nginx webserver (for docker use only)
+; Used in docker.pp, starts nginx web server (for docker use only)
[program:nginx]
command = /usr/sbin/nginx -g 'daemon off;'
stdout_events_enabled=true
diff --git a/web/e2e-tests/admin.test.ts b/web/e2e-tests/admin.test.ts
index aea02a23a2e..03ad3c1a5f5 100644
--- a/web/e2e-tests/admin.test.ts
+++ b/web/e2e-tests/admin.test.ts
@@ -237,9 +237,9 @@ async function delete_realm_icon(page: Page): Promise<void> {
async function test_organization_profile(page: Page): Promise<void> {
await page.click("li[data-section='organization-profile']");
- const gravatar_selctor =
+ const gravatar_selector =
'#realm-icon-upload-widget .image-block[src^="https://secure.gravatar.com/avatar/"]';
- await page.waitForSelector(gravatar_selctor, {visible: true});
+ await page.waitForSelector(gravatar_selector, {visible: true});
await page.waitForSelector("#realm-icon-upload-widget .image-delete-button", {hidden: true});
await test_upload_realm_icon_image(page);
@@ -247,7 +247,7 @@ async function test_organization_profile(page: Page): Promise<void> {
await delete_realm_icon(page);
await page.waitForSelector("#realm-icon-upload-widget .image-delete-button", {hidden: true});
- await page.waitForSelector(gravatar_selctor, {visible: true});
+ await page.waitForSelector(gravatar_selector, {visible: true});
}
async function test_authentication_methods(page: Page): Promise<void> {
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index d6095293f07..a110e31239c 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -726,7 +726,7 @@ export function process_hotkey(e, hotkey) {
// modals.any_active() and modals.active_modal() both query the dom to
// find and retrieve any active modal. Thus, we limit the number of calls
- // to the DOM by storing these values as constansts to be reused.
+ // to the DOM by storing these values as constants to be reused.
const is_any_modal_active = modals.any_active();
const active_modal = is_any_modal_active ? modals.active_modal() : null;
diff --git a/web/src/settings_org.ts b/web/src/settings_org.ts
index ff5e9401b48..8730fb2d296 100644
--- a/web/src/settings_org.ts
+++ b/web/src/settings_org.ts
@@ -437,7 +437,7 @@ export function populate_auth_methods(auth_method_to_bool_map: Record<string, bo
enabled: value,
disable_configure_auth_method: !can_configure_auth_methods() || cant_be_enabled,
// The negated character class regexp serves as an allowlist - the replace() will
- // remove *all* symbols *but* digits (\d) and lowecase letters (a-z),
+ // remove *all* symbols *but* digits (\d) and lowercase letters (a-z),
// so that we can make assumptions on this string elsewhere in the code.
// As a result, the only two "incoming" assumptions on the auth method name are:
// 1) It contains at least one allowed symbol
diff --git a/web/src/user_group_edit.ts b/web/src/user_group_edit.ts
index cfab50e75a1..fc208717671 100644
--- a/web/src/user_group_edit.ts
+++ b/web/src/user_group_edit.ts
@@ -155,7 +155,7 @@ function update_group_permission_settings_elements(group: UserGroup): void {
return;
}
- // We are concerend with the General tab for changing group permissions.
+ // We are concerned with the General tab for changing group permissions.
const $group_permission_settings = $("#group_permission_settings");
const $permission_pill_container_elements = $group_permission_settings.find(".pill-container");
diff --git a/zerver/tests/test_invite.py b/zerver/tests/test_invite.py
index 3eeffd8791c..f734dad44f5 100644
--- a/zerver/tests/test_invite.py
+++ b/zerver/tests/test_invite.py
@@ -825,7 +825,7 @@ class InviteUserTest(InviteUserBase):
self.assert_json_error(result, "Insufficient permission")
# Test that user having permission to manage all groups can
- # add user to groups through invitiation.
+ # add user to groups through invitation.
owners_group = NamedUserGroup.objects.get(
name=SystemGroups.OWNERS, realm=realm, is_system_group=True
)
@@ -859,7 +859,7 @@ class InviteUserTest(InviteUserBase):
self.assertTrue(find_key_by_email(invitee))
# Test that user having permission to add members to a group can
- # add user to that group through invitiation.
+ # add user to that group through invitation.
do_change_user_group_permission_setting(
test_group,
"can_add_members_group",
@@ -880,7 +880,7 @@ class InviteUserTest(InviteUserBase):
self.assertTrue(find_key_by_email(invitee))
# Test that user having permission to manage a group can
- # add user to that group through invitiation.
+ # add user to that group through invitation.
do_change_user_group_permission_setting(
hamletcharacters_group,
"can_manage_group",
@@ -3190,7 +3190,7 @@ class MultiuseInviteTest(ZulipTestCase):
)
# Test that user having permission to manage all groups can
- # add users to groups through invitiation.
+ # add users to groups through invitation.
owners_group = NamedUserGroup.objects.get(
name=SystemGroups.OWNERS, realm=realm, is_system_group=True
)
@@ -3217,7 +3217,7 @@ class MultiuseInviteTest(ZulipTestCase):
check_create_multiuse_invite("desdemona", [test_group.id, hamletcharacters_group.id])
# Test that user having permission to add members to a group can
- # add user to that group through invitiation.
+ # add user to that group through invitation.
do_change_user_group_permission_setting(
test_group,
"can_add_members_group",
@@ -3234,7 +3234,7 @@ class MultiuseInviteTest(ZulipTestCase):
check_create_multiuse_invite("shiva", [test_group.id])
# Test that user having permission to manage a group can
- # add user to that group through invitiation.
+ # add user to that group through invitation.
do_change_user_group_permission_setting(
hamletcharacters_group,
"can_manage_group",
diff --git a/zerver/tests/test_upload.py b/zerver/tests/test_upload.py
index f39dd0f8b1d..8a8646b8c99 100644
--- a/zerver/tests/test_upload.py
+++ b/zerver/tests/test_upload.py
@@ -1964,7 +1964,7 @@ class EmojiTest(UploadSerializeMixin, ZulipTestCase):
self.assert_json_error(result, "Invalid image format")
resize_mock.assert_not_called()
- def test_upsupported_format(self) -> None:
+ def test_unsupported_format(self) -> None:
"""Invalid format is not resized"""
self.login("iago")
with (
diff --git a/zerver/views/tusd.py b/zerver/views/tusd.py
index d0555ba61b7..bdba92f1ca2 100644
--- a/zerver/views/tusd.py
+++ b/zerver/views/tusd.py
@@ -137,7 +137,7 @@ def handle_upload_pre_finish_hook(
request: HttpRequest, user_profile: UserProfile, data: TusUpload
) -> HttpResponse:
# With an S3 backend, the filename we passed in pre_create's
- # data.id has a randomly-generated "mutlipart-id" appended with a
+ # data.id has a randomly-generated "multipart-id" appended with a
# `+`. Our path_ids cannot contain `+`, so we strip any suffix
# starting with `+`.
path_id = data.id.partition("+")[0]