{"action":"created","issue":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2070","labels_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2070/labels{/name}","comments_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2070/comments","events_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2070/events","html_url":"https://github.com/opentripplanner/OpenTripPlanner/issues/2070","id":98379564,"number":2070,"title":"Move as much translation as possible server-side","user":{"login":"abyrd","id":112871,"avatar_url":"https://avatars.githubusercontent.com/u/112871?v=3","gravatar_id":"","url":"https://api.github.com/users/abyrd","html_url":"https://github.com/abyrd","followers_url":"https://api.github.com/users/abyrd/followers","following_url":"https://api.github.com/users/abyrd/following{/other_user}","gists_url":"https://api.github.com/users/abyrd/gists{/gist_id}","starred_url":"https://api.github.com/users/abyrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abyrd/subscriptions","organizations_url":"https://api.github.com/users/abyrd/orgs","repos_url":"https://api.github.com/users/abyrd/repos","events_url":"https://api.github.com/users/abyrd/events{/privacy}","received_events_url":"https://api.github.com/users/abyrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-31T12:15:12Z","updated_at":"2015-08-03T14:01:25Z","closed_at":null,"body":"The current default OTP client does a lot of translation on the client side, and this approach is in the process of being carried over to the newer otp.js client library. \r\n\r\nHowever, to avoid duplicated or complex code across many clients, we should perform as much pre-rendering of translated text as possible on the server side, such that even a very simple client can display OTP responses in the proper language.\r\n\r\nThe structure of OTP responses currently does not contain much pre-rendered text and uses a lot of fixed strings in turn-by-turn directions. This probably has something to do with the legacy XML response format. We should break away from this old response format to allow effective internationalization before we freeze the API.\r\n\r\nI will include an API response below and we can use this ticket to work out how we should change the response structure."},"comment":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/comments/127248322","html_url":"https://github.com/opentripplanner/OpenTripPlanner/issues/2070#issuecomment-127248322","issue_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2070","id":127248322,"user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T14:01:25Z","updated_at":"2015-08-03T14:01:25Z","body":"@abyrd I don't have any objections to maximizing role of server in translations, and we can certainly try this in OTP Android.  The main issue right now is just effort - we don't have any funded projects that cover OTP Android at the moment, so this would all need to be done as a volunteer effort."}}