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

Incomplete translation #14

Open
ar-ekt opened this issue Feb 12, 2021 · 0 comments
Open

Incomplete translation #14

ar-ekt opened this issue Feb 12, 2021 · 0 comments

Comments

@ar-ekt
Copy link

ar-ekt commented Feb 12, 2021

from pygoogletranslation import Translator # version: 2.0.5
translator = Translator()
sampleText = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
translated = translator.translate(sampleText, src="en", dest="cy")
print(translated.text)

# output: Testun ffug y diwydiant argraffu a chysodi yw Lorem Ipsum.

# output checked with 'translate.google.com': Testun ffug y diwydiant argraffu a chysodi yw Lorem Ipsum. Lorem Ipsum yw testun ffug safonol y diwydiant byth ers y 1500au, pan gymerodd argraffydd anhysbys gali o fath a'i sgramblo i wneud llyfr sbesimen math. Mae wedi goroesi nid yn unig bum canrif, ond hefyd y naid i gysodi electronig, gan aros yn ddigyfnewid yn y bôn. Cafodd ei boblogeiddio yn y 1960au gyda rhyddhau taflenni Letraset yn cynnwys darnau Lorem Ipsum, ac yn fwy diweddar gyda meddalwedd cyhoeddi bwrdd gwaith fel Aldus PageMaker gan gynnwys fersiynau o Lorem Ipsum.
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

1 participant