Skip to content
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

Allow translation of attachments, spoilers and polls #734

Merged
merged 6 commits into from
Nov 11, 2023

Conversation

FineFindus
Copy link
Contributor

Adds the ability to translate not only status text, but also media attachment descriptions (alt text) and poll options, a new feature introduced in 4.2.0.

Untranslated Translated
Untranslated poll Translated poll

This still has an issue where when translating the alt text, the images are temporarily replaced with images from the posts above. This is reset when the user scrolls. I'm not sure if this is a translation issue or an issue with reloading the media view and how to fix it.
Additionally, as the translation button is part of the TextStatusDisplayItem, it is only shown for posts containing translatable text.

Originally written for sk22#916.

@grishka grishka merged commit 7bac2f2 into mastodon:master Nov 11, 2023
@FineFindus FineFindus deleted the feat/translate-media-upstream branch November 11, 2023 08:12
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.

2 participants