GithubHelp home page GithubHelp logo

Comments (6)

skeith avatar skeith commented on July 23, 2024

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?

from mash-cogs.

Fr6jDJF avatar Fr6jDJF commented on July 23, 2024

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 mash-cogs.

skeith avatar skeith commented on July 23, 2024

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

IN was Indonesian, so maybe that is wrong?

from mash-cogs.

Fr6jDJF avatar Fr6jDJF commented on July 23, 2024

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)

from mash-cogs.

skeith avatar skeith commented on July 23, 2024

I see

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

from mash-cogs.

Fr6jDJF avatar Fr6jDJF commented on July 23, 2024

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

from mash-cogs.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.