{"action":"created","issue":{"url":"https://api.github.com/repos/uccser/cs-field-guide/issues/364","repository_url":"https://api.github.com/repos/uccser/cs-field-guide","labels_url":"https://api.github.com/repos/uccser/cs-field-guide/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/uccser/cs-field-guide/issues/364/comments","events_url":"https://api.github.com/repos/uccser/cs-field-guide/issues/364/events","html_url":"https://github.com/uccser/cs-field-guide/issues/364","id":162357959,"number":364,"title":"Improve handling of text translations","user":{"login":"JackMorganNZ","id":8001048,"avatar_url":"https://avatars.githubusercontent.com/u/8001048?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMorganNZ","html_url":"https://github.com/JackMorganNZ","followers_url":"https://api.github.com/users/JackMorganNZ/followers","following_url":"https://api.github.com/users/JackMorganNZ/following{/other_user}","gists_url":"https://api.github.com/users/JackMorganNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMorganNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMorganNZ/subscriptions","organizations_url":"https://api.github.com/users/JackMorganNZ/orgs","repos_url":"https://api.github.com/users/JackMorganNZ/repos","events_url":"https://api.github.com/users/JackMorganNZ/events{/privacy}","received_events_url":"https://api.github.com/users/JackMorganNZ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uccser/cs-field-guide/labels/html%20generation","name":"html generation","color":"F17910"}],"state":"open","locked":false,"assignee":{"login":"JackMorganNZ","id":8001048,"avatar_url":"https://avatars.githubusercontent.com/u/8001048?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMorganNZ","html_url":"https://github.com/JackMorganNZ","followers_url":"https://api.github.com/users/JackMorganNZ/followers","following_url":"https://api.github.com/users/JackMorganNZ/following{/other_user}","gists_url":"https://api.github.com/users/JackMorganNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMorganNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMorganNZ/subscriptions","organizations_url":"https://api.github.com/users/JackMorganNZ/orgs","repos_url":"https://api.github.com/users/JackMorganNZ/repos","events_url":"https://api.github.com/users/JackMorganNZ/events{/privacy}","received_events_url":"https://api.github.com/users/JackMorganNZ/received_events","type":"User","site_admin":false},"assignees":[{"login":"JackMorganNZ","id":8001048,"avatar_url":"https://avatars.githubusercontent.com/u/8001048?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMorganNZ","html_url":"https://github.com/JackMorganNZ","followers_url":"https://api.github.com/users/JackMorganNZ/followers","following_url":"https://api.github.com/users/JackMorganNZ/following{/other_user}","gists_url":"https://api.github.com/users/JackMorganNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMorganNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMorganNZ/subscriptions","organizations_url":"https://api.github.com/users/JackMorganNZ/orgs","repos_url":"https://api.github.com/users/JackMorganNZ/repos","events_url":"https://api.github.com/users/JackMorganNZ/events{/privacy}","received_events_url":"https://api.github.com/users/JackMorganNZ/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/uccser/cs-field-guide/milestones/11","html_url":"https://github.com/uccser/cs-field-guide/milestones/Translations","labels_url":"https://api.github.com/repos/uccser/cs-field-guide/milestones/11/labels","id":1849293,"number":11,"title":"Translations","description":"","creator":{"login":"JackMorganNZ","id":8001048,"avatar_url":"https://avatars.githubusercontent.com/u/8001048?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMorganNZ","html_url":"https://github.com/JackMorganNZ","followers_url":"https://api.github.com/users/JackMorganNZ/followers","following_url":"https://api.github.com/users/JackMorganNZ/following{/other_user}","gists_url":"https://api.github.com/users/JackMorganNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMorganNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMorganNZ/subscriptions","organizations_url":"https://api.github.com/users/JackMorganNZ/orgs","repos_url":"https://api.github.com/users/JackMorganNZ/repos","events_url":"https://api.github.com/users/JackMorganNZ/events{/privacy}","received_events_url":"https://api.github.com/users/JackMorganNZ/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-06-27T00:58:15Z","updated_at":"2016-06-30T00:28:27Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-27T01:01:21Z","updated_at":"2016-08-21T23:39:10Z","closed_at":null,"body":"## Description\r\n\r\nThe generation system has several issues when trying to handle translations:\r\n\r\n- The current `guide-settings.conf` configuration file requires the same output files for each language. This should be changed as each language should have it's own output (for example, there is no need for the NCEA curriculum guides to be translated to Polish).\r\n- The folder names should be changed for each language so the output URL will match the language (for example, *chapter* will be *kapitel* in German).\r\n- Static text (homepage, footer, sidebar, etc) is different for each language (current hard coded into HTML templates).\r\n- Interactives must be able to translated (this issue will be detailed separately on it's existing issue page #71).\r\n- New documentation should be added on how to add a translation.\r\n\r\n### To do\r\n\r\n- [x] Store structure for each language in settings file within language folder.\r\n- [x] Store static text (homepage, footer, sidebar, etc) within the language settings file.\r\n- [x] Load static text for a given language into HTML templates.\r\n- [ ] Translate interactives upon loading (#71).\r\n- [ ] Add documentation.\r\n\r\n### To investigate\r\n\r\n- Which settings within `generator-settings.conf` must be moved to the `guide-settings.conf`.\r\n- ~~If `guide-settings.conf` can be stored within the language text folder (for example, as `text/en/settings.conf`).~~ Done.\r\n- ~~If storing translations within a CSV for HTML generation is acceptable.~~ Now storing text within language settings file.\r\n- If storing translations within a CSV for interactives is acceptable (see #71)."},"comment":{"url":"https://api.github.com/repos/uccser/cs-field-guide/issues/comments/241289675","html_url":"https://github.com/uccser/cs-field-guide/issues/364#issuecomment-241289675","issue_url":"https://api.github.com/repos/uccser/cs-field-guide/issues/364","id":241289675,"user":{"login":"JackMorganNZ","id":8001048,"avatar_url":"https://avatars.githubusercontent.com/u/8001048?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMorganNZ","html_url":"https://github.com/JackMorganNZ","followers_url":"https://api.github.com/users/JackMorganNZ/followers","following_url":"https://api.github.com/users/JackMorganNZ/following{/other_user}","gists_url":"https://api.github.com/users/JackMorganNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMorganNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMorganNZ/subscriptions","organizations_url":"https://api.github.com/users/JackMorganNZ/orgs","repos_url":"https://api.github.com/users/JackMorganNZ/repos","events_url":"https://api.github.com/users/JackMorganNZ/events{/privacy}","received_events_url":"https://api.github.com/users/JackMorganNZ/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T23:39:10Z","updated_at":"2016-08-21T23:39:10Z","body":"This issue will now be closed in a partially completed state. This issue has helped form cleaner and more logical generation, however we are now developing a new system (using existing systems) to replace this generation script.\r\n\r\nSettings are now stored for language in their text folder and can handle the translation text for that language. However there is currently no support for translations for interactives."}}
{"actor":{"display_login":"JackMorganNZ"}}