{"action":"created","issue":{"url":"https://api.github.com/repos/performous/performous/issues/188","repository_url":"https://api.github.com/repos/performous/performous","labels_url":"https://api.github.com/repos/performous/performous/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/performous/performous/issues/188/comments","events_url":"https://api.github.com/repos/performous/performous/issues/188/events","html_url":"https://github.com/performous/performous/issues/188","id":160740259,"number":188,"title":"Multilingual support for webserver","user":{"login":"Baklap4","id":3918517,"avatar_url":"https://avatars.githubusercontent.com/u/3918517?v=3","gravatar_id":"","url":"https://api.github.com/users/Baklap4","html_url":"https://github.com/Baklap4","followers_url":"https://api.github.com/users/Baklap4/followers","following_url":"https://api.github.com/users/Baklap4/following{/other_user}","gists_url":"https://api.github.com/users/Baklap4/gists{/gist_id}","starred_url":"https://api.github.com/users/Baklap4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baklap4/subscriptions","organizations_url":"https://api.github.com/users/Baklap4/orgs","repos_url":"https://api.github.com/users/Baklap4/repos","events_url":"https://api.github.com/users/Baklap4/events{/privacy}","received_events_url":"https://api.github.com/users/Baklap4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/performous/performous/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-16T19:25:55Z","updated_at":"2016-06-17T08:33:01Z","closed_at":null,"body":"As for now the webserver look is written in one plain html file ([index.html](https://github.com/performous/performous/blob/master/data/themes/default/index.html)). It might be fancy to make it instead of english also multilingual?\r\n\r\nSo people can add their own language like with the core game.\r\n\r\nA possible solution to this is to create a language api and add the language choice to index.html.  The API will return a json list with key-value pairs where the key is the name of the translated thing and value the translated value.\r\n\r\nThis way we can add the API to webserver.cc and maybe use the already used translation files?"},"comment":{"url":"https://api.github.com/repos/performous/performous/issues/comments/226712238","html_url":"https://github.com/performous/performous/issues/188#issuecomment-226712238","issue_url":"https://api.github.com/repos/performous/performous/issues/188","id":226712238,"user":{"login":"nieknooijens","id":2794331,"avatar_url":"https://avatars.githubusercontent.com/u/2794331?v=3","gravatar_id":"","url":"https://api.github.com/users/nieknooijens","html_url":"https://github.com/nieknooijens","followers_url":"https://api.github.com/users/nieknooijens/followers","following_url":"https://api.github.com/users/nieknooijens/following{/other_user}","gists_url":"https://api.github.com/users/nieknooijens/gists{/gist_id}","starred_url":"https://api.github.com/users/nieknooijens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nieknooijens/subscriptions","organizations_url":"https://api.github.com/users/nieknooijens/orgs","repos_url":"https://api.github.com/users/nieknooijens/repos","events_url":"https://api.github.com/users/nieknooijens/events{/privacy}","received_events_url":"https://api.github.com/users/nieknooijens/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T08:33:01Z","updated_at":"2016-06-17T08:33:01Z","body":"wat could be done is an index.html for each language, but that gives duplicate code.\r\nother way would be the android way, making a strings.xml or strings.json and swap that one out.\r\nwe should look into jquery's localisation stuff."}}
{"actor":{"display_login":"nieknooijens"}}