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

Strip out formatting characters like \n before transmission #11

Open
simonsan opened this issue Apr 13, 2023 · 1 comment
Open

Strip out formatting characters like \n before transmission #11

simonsan opened this issue Apr 13, 2023 · 1 comment

Comments

@simonsan
Copy link

Because of the line breaks cloud-translate sometimes doesn't translate well, when a sentence spans over more than one line. Because the \n broke the grammatic of the sentence.

Example

This sentence is a good one as it usually\n
fits into a single line.

Would get translated by cloud-translate to something like this (abstract):

Dieser Satz ist ein guter, weil er normalerweise\n
passt in eine einzige Zeile.

It wouldn't factor in the second line of the translation as it only translates line by line, it seems?

@mgeisler
Copy link
Owner

Hi @simonsan, thanks for opening this!

Can you try sending both

This sentence is a good one as it usually\n
fits into a single line.

as well as

This sentence is a good one as it usually fits into a single line.

through Cloud Translate? You should be able to prepare a PO file with one string and then the other. If the results are different, it would confirm that we should strip out the \n characters. So far, I assumed that it wouldn't matter, but I don't really know this for sure.

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

No branches or pull requests

2 participants