Skip to content

Update translations from Weblate #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

Automated changes by create-pull-request GitHub action

@github-actions github-actions bot force-pushed the update-translations/weblate branch from 8668125 to c33b03c Compare December 30, 2024 10:20
@github-actions github-actions bot force-pushed the update-translations/weblate branch 2 times, most recently from 81ea8e1 to c201ce8 Compare January 13, 2025 10:21
@github-actions github-actions bot force-pushed the update-translations/weblate branch from c201ce8 to dea3b83 Compare January 20, 2025 10:20
@github-actions github-actions bot force-pushed the update-translations/weblate branch 2 times, most recently from 9ea4a6b to 2a2ff87 Compare February 3, 2025 10:20
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 2a2ff87 to 55f30ff Compare February 10, 2025 10:21
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 55f30ff to 2cd3f29 Compare February 17, 2025 10:21
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 2cd3f29 to 323e644 Compare February 24, 2025 10:21
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 323e644 to 47dba8f Compare March 10, 2025 10:19
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 47dba8f to 9c07851 Compare March 17, 2025 10:23
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 9c07851 to 9fd7387 Compare March 24, 2025 10:23
@github-actions github-actions bot force-pushed the update-translations/weblate branch from 9fd7387 to 77a4794 Compare March 31, 2025 10:24
@github-actions github-actions bot force-pushed the update-translations/weblate branch 2 times, most recently from d3a2722 to bf2e154 Compare April 14, 2025 10:24
@github-actions github-actions bot force-pushed the update-translations/weblate branch from bf2e154 to a71a9ce Compare April 21, 2025 10:23
gnprice and others added 14 commits April 24, 2025 17:22
This way there's nothing that needs to happen at the bottom of the
loop, if any of the cases matched.
Conveniently, the two redundant rules say the exact same thing
when they apply.  So the first one has no effect, and we can
ignore it.
Before this change, all cases of this switch statement either
continue the loop, or throw, or set classFound to true.
The error therefore gets logged just if none of the cases matched.

So we can express the same behavior with a default case.
This makes the reasoning about these index values more local.
Like an early return, this (a) brings the consequence of the error
immediately next to the condition defining it, and (b) lets the normal
happy case continue vertically down without adding indentation.
Same motivation as in the parent commit.
Once the parsing is done, we want these to remain unchanged,
just like the other objects in the parse tree.

So, like ContentNode and its subclasses, make the class immutable.
The parser needs to mutate its own draft of what styles to apply
to a given span; but it can do that with its own local variables
corresponding to the fields, and construct a styles object at the
end of the loop.
This deduplicates the logic for the particular way that a list of
KaTeX nodes get combined into a single widget.
This makes it more uniform with our other content widgets.
And factor out a helper for the part that reads `widget.narrow` and
sets a new controller accordingly; we'll use this helper for the
edit-message UI, to reset the compose box at the end of an
edit-message session.

Fixes: zulip#1470
chrisbobbe and others added 4 commits April 25, 2025 13:48
Soon we'll want a method for starting a message-edit session, and
it'll make sense to put it on ComposeBoxState rather than
ComposeBoxController; one reason is that it'll need UI code to show
an error dialog.

With this change, the ComposeBoxState -- and so that new method --
will be accessible in the message-list widget code, where we open
the message action sheet from.
When a subscription is removed, the data in streams and streamsByName
are left as instances of `Subscription`.  This is inconsistent with the
data store's assumption that unsubscribed channels should have plain
`ZulipStream` instances.

This doesn't seem to have user-facing effects, though.  The assertion
errors only affect debug builds.

CZO discussion:
  https://chat.zulip.org/#narrow/channel/48-mobile/topic/Unsubscribe.20then.20resubscribe.20to.20channel/with/2160241
@github-actions github-actions bot force-pushed the update-translations/weblate branch from a71a9ce to fddb2e4 Compare April 28, 2025 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants