Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

feat: translate media attachments and poll options #916

Merged
merged 4 commits into from
Nov 10, 2023

Conversation

FineFindus
Copy link

@FineFindus FineFindus commented Nov 1, 2023

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. 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.

Closes #763

@sk22
Copy link
Owner

sk22 commented Nov 10, 2023

thanks!!
may i propose you also creating a pr upstream? because like, this seems like something they might wanna fix upstream at some point, and i have a feeling it might be a bit of a pain to merge the upstream implementation.
no problem if not tho; i'm happy it's implemented in megalodon now!

@sk22 sk22 merged commit c85af55 into sk22:main Nov 10, 2023
1 check passed
@FineFindus FineFindus deleted the feat/translate-media branch November 10, 2023 21:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support translating alt text, cw and polls (v4.2.0 feature)
2 participants