Translated cog: Show Error Translating details
Opened this issue · 6 comments
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?
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)
From https://github.com/Canule/Mash-Cogs/blob/master/translated/translated.py#L64
IN was Indonesian, so maybe that is wrong?
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)
I see
do the site - translated.net - provide their own language codes?
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