Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Translation object unintuitive behaviour #11

Open
LLCampos opened this issue Jan 30, 2017 · 0 comments
Open

Translation object unintuitive behaviour #11

LLCampos opened this issue Jan 30, 2017 · 0 comments

Comments

@LLCampos
Copy link
Contributor

The behaviour of the Translation object is different if it was gotten using get_translations or get_translation method.

unbabel = UnbabelApi(username=username,api_key=api_key,sandbox=False)

translations = unbabel.get_translations('completed')
translation = translations[0]
uid = translation.uid

print translation.translation 

This returns:

None

But if afterwards I do:

translation = unbabel.get_translation(uid)
print translation.translation

I get the translation text.

This is really confusing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant