Skip to content

Conversation

@adinhuric
Copy link

Summary

This PR implements a new feature that shows the detected language in the TranslateBox component of Telegram Desktop.

Implementation Details

  • Uses Platform::Language::Recognize() to detect the language of the original message.
  • Displays the detected language using LanguageName() in the TranslateBox UI.
  • Fallbacks to "Unknown" if detection fails.
  • Updates handled in translate_box.cpp.

Why this matters

The Android version of Telegram shows the source language for translations, but the Desktop version did not. This improves transparency and consistency across platforms.

Closes #28748

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


ahuric seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

Show translation source language

2 participants