gfrenoy / TabT-API

Programming interface for TabT, the free table tennis manager software
http://tabt.frenoy.net
GNU Affero General Public License v3.0
9 stars 5 forks source link

Add parameter to force the language #3

Closed Fllorent0D closed 6 years ago

Fllorent0D commented 6 years ago

Is it possible a attribute in the Credentials (or elsewhere) to force the language of the response?

gfrenoy commented 6 years ago

Nope. The language is given by the user profile. So if you want to see answers in a different language, just change it in your profile on the TabT website (see bottom of the left menu once you are connected).

Fllorent0D commented 6 years ago

Already saw that but my app doesn't use user accounts. I would use them if I could register users and setup there accounts through the api.

gfrenoy commented 6 years ago

If you don't use Credentials, then the language is enforced by the TabT website itself... (and each federation has its preferred language).

That being said, this is how it works today. If this does not fit your use, feel free to submit a PR ; don't think it would be too difficult to do...

Fllorent0D commented 6 years ago

Didn't know that each website has a preferred language. I will redirect each user to the good wsdl and it will be enough. If I have time, I will integrate that kind of endpoint in a PR 😊

Thanks!

gfrenoy commented 6 years ago

Np. Thanks for asking, I made this clearer in the documentation : https://github.com/gfrenoy/TabT-API/commit/465000b0f352b410da49a7b0a7c052ee7f40ffd5