mirror of https://github.com/zulip/zulip.git
lint: Fix several duplicate word typos.
This commit is contained in:
parent
21b6bb9887
commit
ad890890f6
|
@ -326,7 +326,7 @@ are sloppy, so phrases like `Partially fixes #1234` will automatically
|
||||||
close the issue. Phrases like `Fixes part of #1234` are a good
|
close the issue. Phrases like `Fixes part of #1234` are a good
|
||||||
alternative.
|
alternative.
|
||||||
|
|
||||||
Make as many commits as you need to to address the issue or implement your feature.
|
Make as many commits as you need to address the issue or implement your feature.
|
||||||
|
|
||||||
## Push your commits to GitHub
|
## Push your commits to GitHub
|
||||||
|
|
||||||
|
|
|
@ -281,7 +281,7 @@ _"Schränke auf ... ein." (Transifex) "Begrenze auf ... ." (Transifex)_
|
||||||
|
|
||||||
- Filter - **Filtern**
|
- Filter - **Filtern**
|
||||||
|
|
||||||
A direct translation is fine here. Watch out to to use the infinitive instead
|
A direct translation is fine here. Watch out to use the infinitive instead
|
||||||
of the imperative, e.g., "Nachrichten filtern" instead of "Filtere Nachrichten".
|
of the imperative, e.g., "Nachrichten filtern" instead of "Filtere Nachrichten".
|
||||||
|
|
||||||
_"Filtern" (Thunderbird, LinkedIn)_
|
_"Filtern" (Thunderbird, LinkedIn)_
|
||||||
|
|
|
@ -312,7 +312,7 @@ def do_set_realm_property(
|
||||||
realm: Realm, name: str, value: Any, *, acting_user: Optional[UserProfile]
|
realm: Realm, name: str, value: Any, *, acting_user: Optional[UserProfile]
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Takes in a realm object, the name of an attribute to update, the
|
"""Takes in a realm object, the name of an attribute to update, the
|
||||||
value to update and and the user who initiated the update.
|
value to update and the user who initiated the update.
|
||||||
"""
|
"""
|
||||||
property_type = Realm.property_types[name]
|
property_type = Realm.property_types[name]
|
||||||
assert isinstance(value, property_type), (
|
assert isinstance(value, property_type), (
|
||||||
|
|
|
@ -101,7 +101,7 @@ export class FetchStatus {
|
||||||
//
|
//
|
||||||
// 1. Client initiates GET /messages to fetch the last
|
// 1. Client initiates GET /messages to fetch the last
|
||||||
// batch of messages in this view. The server
|
// batch of messages in this view. The server
|
||||||
// completes the database access and and starts sending
|
// completes the database access and starts sending
|
||||||
// the response with found_newest=true.
|
// the response with found_newest=true.
|
||||||
// 1. A new message is sent matching the view, the event reaches
|
// 1. A new message is sent matching the view, the event reaches
|
||||||
// the client. We discard the message because found_newest=false.
|
// the client. We discard the message because found_newest=false.
|
||||||
|
|
|
@ -336,7 +336,7 @@
|
||||||
/* 46px at 14px/1em */
|
/* 46px at 14px/1em */
|
||||||
--message-box-avatar-column-width: 3.2857em;
|
--message-box-avatar-column-width: 3.2857em;
|
||||||
/* Increase the margin here to account for the
|
/* Increase the margin here to account for the
|
||||||
focus ring, which is is offset by -1px, as well
|
focus ring, which is offset by -1px, as well
|
||||||
as the vertical height between the hover icons
|
as the vertical height between the hover icons
|
||||||
and focus ring. */
|
and focus ring. */
|
||||||
--message-box-vertical-margin: calc(
|
--message-box-vertical-margin: calc(
|
||||||
|
|
|
@ -67,7 +67,7 @@ class Command(ZulipBaseCommand):
|
||||||
# This is an additional filter which is composed with the above
|
# This is an additional filter which is composed with the above
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--admins-only",
|
"--admins-only",
|
||||||
help="Filter recipients selected via other options to to only organization administrators",
|
help="Filter recipients selected via other options to only organization administrators",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ class AbstractMessage(models.Model):
|
||||||
RESOLVE_TOPIC_NOTIFICATION = 2
|
RESOLVE_TOPIC_NOTIFICATION = 2
|
||||||
|
|
||||||
# IMPORTANT: message.type is not to be confused with the
|
# IMPORTANT: message.type is not to be confused with the
|
||||||
# "recipient type" ("channel" or "direct"), which is is sometimes
|
# "recipient type" ("channel" or "direct"), which is sometimes
|
||||||
# called message_type in the APIs, CountStats or some variable
|
# called message_type in the APIs, CountStats or some variable
|
||||||
# names. We intend to rename those to recipient_type.
|
# names. We intend to rename those to recipient_type.
|
||||||
#
|
#
|
||||||
|
|
|
@ -2751,7 +2751,7 @@ class UserSignUpTest(ZulipTestCase):
|
||||||
user_profile = UserProfile.objects.get(delivery_email=email)
|
user_profile = UserProfile.objects.get(delivery_email=email)
|
||||||
self.assertEqual(user_profile.delivery_email, email)
|
self.assertEqual(user_profile.delivery_email, email)
|
||||||
|
|
||||||
# Now try to to register using the first confirmation url:
|
# Now try to register using the first confirmation url:
|
||||||
result = self.client_get(first_confirmation_url)
|
result = self.client_get(first_confirmation_url)
|
||||||
self.assertEqual(result.status_code, 404)
|
self.assertEqual(result.status_code, 404)
|
||||||
result = self.client_post(
|
result = self.client_post(
|
||||||
|
|
|
@ -253,7 +253,7 @@ def update_stream_backend(
|
||||||
Json[int | None], ApiParamConfig("can_remove_subscribers_group")
|
Json[int | None], ApiParamConfig("can_remove_subscribers_group")
|
||||||
] = None,
|
] = None,
|
||||||
) -> HttpResponse:
|
) -> HttpResponse:
|
||||||
# We allow realm administrators to to update the stream name and
|
# We allow realm administrators to update the stream name and
|
||||||
# description even for private streams.
|
# description even for private streams.
|
||||||
(stream, sub) = access_stream_for_delete_or_update(user_profile, stream_id)
|
(stream, sub) = access_stream_for_delete_or_update(user_profile, stream_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue