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

e-Translate: request source-lang and target-lang pairs #20

Closed
pheyvaer opened this issue Jun 28, 2016 · 8 comments
Closed

e-Translate: request source-lang and target-lang pairs #20

pheyvaer opened this issue Jun 28, 2016 · 8 comments
Assignees

Comments

@pheyvaer
Copy link
Contributor

No description provided.

@andish
Copy link
Contributor

andish commented Sep 22, 2016

Tilde endpoint now returns list of available systems in json format, which includes information about system IDs, domains, language pairs.
Curl:

curl -X GET -H "Authorization: Basic RlJFTUU6dXxGcjNtM19zJGN1ciQ=" -H "Cache-Control: no-cache" -H "Postman-Token: 58f051a3-ee38-3fb5-72ca-10930f710307" "https://services.tilde.com/configuration/translation"

Optional query parameter - 'key' (in order to retrieve private systems).

Response example:

{
  "systems": [
    {
      "sourceLanguage": {
        "Code": "nl",
        "Name": {
          "Language": "en",
          "Text": "Dutch"
        }
      },
      "targetLanguage": {
        "Code": "fr",
        "Name": {
          "Language": "en",
          "Text": "French"
        }
      },
      "systemID": "smt-63f939f0-7ebf-4b45-978a-4fa4714c601b",
      "domain": "law",
      "isPrivate": false,
      "status": "standby"
    },
    {
      "sourceLanguage": {
        "Code": "en",
        "Name": {
          "Language": "en",
          "Text": "English"
        }
      },
      "targetLanguage": {
        "Code": "de",
        "Name": {
          "Language": "en",
          "Text": "German"
        }
      },
      "systemID": "smt-c71f6f22-5e2a-4682-a4cc-2d97d38fac5e",
      "domain": "Legal",
      "isPrivate": false,
      "status": "ready"
    } ]
}

@jnehring how it would be implemented in FREME server? new endpoint?

@jnehring
Copy link
Member

@pheyvaer is this still a requirement? Are you going to use this service?

Do we actually need to provide this as a FREME endpoint? Users could call the service directly.

@pheyvaer
Copy link
Contributor Author

Yes, for the CKEditor plugin.

@jnehring jnehring assigned bgrusdt and unassigned pheyvaer and andish Sep 22, 2016
@jnehring
Copy link
Member

@bgrusdt please implement a new API endpoint for this.

@jnehring
Copy link
Member

jnehring commented Oct 4, 2016

@pheyvaer how about you request this data directly from tilde? Maybe this is easier then creating a new FREME endpoint for this that merely proxies the data.

@pheyvaer
Copy link
Contributor Author

pheyvaer commented Oct 4, 2016

Works also for us :)

@jnehring
Copy link
Member

jnehring commented Oct 4, 2016

ok then lets do it that way.

@bjdmeest
Copy link

bjdmeest commented Oct 6, 2016

Thanks! moved to freme-project/CKEditor-Plugin#27 :)

@bjdmeest bjdmeest closed this as completed Oct 6, 2016
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

5 participants