From 58822372d5a4865120b5f2274822a46daffdd11c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 24 Dec 2024 18:47:02 -0800 Subject: [PATCH] typos: Fix typos caught by typos and mwic. Signed-off-by: Anders Kaseorg --- analytics/tests/test_counts.py | 2 +- api_docs/changelog.md | 2 +- api_docs/writing-bots.md | 2 +- corporate/lib/stripe.py | 2 +- docs/production/troubleshooting.md | 2 +- docs/translating/german.md | 2 +- puppet/zulip/files/supervisor/conf.d/nginx.conf | 2 +- web/e2e-tests/admin.test.ts | 6 +++--- web/src/hotkey.js | 2 +- web/src/settings_org.ts | 2 +- web/src/user_group_edit.ts | 2 +- zerver/tests/test_invite.py | 12 ++++++------ zerver/tests/test_upload.py | 2 +- zerver/views/tusd.py | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/analytics/tests/test_counts.py b/analytics/tests/test_counts.py index 85bc11316f..a3b03db44b 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 6a267751c1..9e28f1a958 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 cf3712d06d..ba41319693 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 1662fe5685..2e3c16d078 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 cdab29897a..5cdcb42c5e 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 3a454cbc45..0084b5091c 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 0e49bc4a26..96fe3f1d32 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 aea02a23a2..03ad3c1a5f 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 { async function test_organization_profile(page: Page): Promise { 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 { 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 { diff --git a/web/src/hotkey.js b/web/src/hotkey.js index d6095293f0..a110e31239 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 ff5e9401b4..8730fb2d29 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 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 d0555ba61b..bdba92f1ca 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]