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

Translated cog: Show Error Translating details #8

Open
skeith opened this issue Sep 7, 2017 · 6 comments
Open

Translated cog: Show Error Translating details #8

skeith opened this issue Sep 7, 2017 · 6 comments

Comments

@skeith
Copy link
Contributor

skeith commented Sep 7, 2017

For the translate

image

Can we have it show the translating error?
Traceback says nothing

@skeith
Copy link
Contributor Author

skeith commented Sep 8, 2017

What I am trying to see is whether the error happened on bot or translated.net API

in other words, can you give fix on error translating?

@Fr6jDJF
Copy link
Owner

Fr6jDJF commented Sep 12, 2017

Its the API output, usually a 403; no content or it seems to dislike the taste(or lack of a good taste) of the provided RFC 3066.

IN | India:

ar-IN (Arabic) as (Assamese)
bh (Bihari) 
bn-IN (Bengali) 
en-IN (English) 
gu (Gujarati) 
hi (Hindi) 
kn (Kannada) 
kok (Konkani) 
ks (Kashmiri) 
ml (Malayalam) 
mr (Marathi) 
ne (Nepali) 
or (Oriya) 
pa (Panjabi) 
pi (Pali) 
sa (Sanskrit) 
sd-IN (Sindhi)
ta-IN (Tamil) 
te (Telugu) 
ur-IN (Urdu)

@skeith
Copy link
Contributor Author

skeith commented Sep 12, 2017

From https://github.com/Canule/Mash-Cogs/blob/master/translated/translated.py#L64

IN was Indonesian, so maybe that is wrong?

@Fr6jDJF
Copy link
Owner

Fr6jDJF commented Sep 12, 2017

I have no validation of the in cog preset RFC 3066 list(copy pasted from some wikipedia ), I assumed they work(most do fine), your example clearly doesn't as it is now.
I've tried ID as given from this list http://www.i18nguy.com/unicode/language-identifiers.html , same result.

ID | Indonesia:

id (Indonesian) 
jv (Javanese) 
su (Sundanese)

@skeith
Copy link
Contributor Author

skeith commented Sep 12, 2017

I see

do the site - translated.net - provide their own language codes?

@Fr6jDJF Fr6jDJF added the bug label Sep 12, 2017
@Fr6jDJF
Copy link
Owner

Fr6jDJF commented Sep 12, 2017

Just found some query for it http://www.translated.net/hts/HTS_Tech_Spec.pdf

http://www.translated.net/hts/?f=ll&cid=htsdemo&p=htsdemo5

Indonesian;id-ID;id;ind

*lower case issue to get result
id-EN pagi » gogle translit (not supported by cog as is)

Strange enough
English;en-GB;en;eng
But provided by cog is uppercase, and np

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

No branches or pull requests

2 participants