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

Translator messes up formatting of channel and user mentions on Discord #59

Closed
IveMalfunctioned opened this issue Mar 12, 2022 · 3 comments
Labels
add function add functions or features good question

Comments

@IveMalfunctioned
Copy link

So I use this library as part of my Discord bot and the translator is messing up the formatting of channel and user mentions. The clickable user and channel links are formatted in raw text as <#ID> for channels and <@id> for users. Translating "This is a test <#899101975264776194> general chat" with Google translate on the website works fine but using translators messes up the formatting of it in all 7 languages (English, Spanish, Portuguese, French, Filipino, German, & Italian) the outcome in Spanish is "Esta es una prueba <# 899101975264776194> Chat General". As you can see in puts a random space in there for whatever reason which breaks the link. I don't know if this is a problem that can be fixed but it doesn't break it on the site so maybe it's something with the library

@UlionTse
Copy link
Owner

@IveMalfunctioned Try help(ts.translate_html) or the better translator, eg: deepl.

@UlionTse
Copy link
Owner

@IveMalfunctioned About google, merge it into #35

@IveMalfunctioned
Copy link
Author

What am I supposed to do with help(ts.translate_html)

@UlionTse UlionTse added good question add function add functions or features labels Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add function add functions or features good question
Projects
None yet
Development

No branches or pull requests

2 participants