{"action":"created","issue":{"url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1914","repository_url":"https://api.github.com/repos/projectblacklight/spotlight","labels_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1914/labels{/name}","comments_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1914/comments","events_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1914/events","html_url":"https://github.com/projectblacklight/spotlight/issues/1914","id":300442283,"number":1914,"title":"Enable curator to provide translations of general exhibit labels","user":{"login":"ggeisler","id":101482,"avatar_url":"https://avatars1.githubusercontent.com/u/101482?v=4","gravatar_id":"","url":"https://api.github.com/users/ggeisler","html_url":"https://github.com/ggeisler","followers_url":"https://api.github.com/users/ggeisler/followers","following_url":"https://api.github.com/users/ggeisler/following{/other_user}","gists_url":"https://api.github.com/users/ggeisler/gists{/gist_id}","starred_url":"https://api.github.com/users/ggeisler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggeisler/subscriptions","organizations_url":"https://api.github.com/users/ggeisler/orgs","repos_url":"https://api.github.com/users/ggeisler/repos","events_url":"https://api.github.com/users/ggeisler/events{/privacy}","received_events_url":"https://api.github.com/users/ggeisler/received_events","type":"User","site_admin":false},"labels":[{"id":846661876,"url":"https://api.github.com/repos/projectblacklight/spotlight/labels/i18n","name":"i18n","color":"7f82ef","default":false}],"state":"closed","locked":false,"assignee":{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars0.githubusercontent.com/u/1656824?v=4","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false},"assignees":[{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars0.githubusercontent.com/u/1656824?v=4","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-26T23:56:42Z","updated_at":"2018-03-21T00:32:18Z","closed_at":"2018-03-21T00:32:18Z","author_association":"CONTRIBUTOR","body":"(Part of #1912, a larger feature aimed at providing multilingual exhibits.)\r\n\r\nWhen an exhibit administrator has added a language (through the General > Languages tab, as described in #1911), exhibit admins and curators should see a Curation > Translations menu item.\r\n\r\nWhen navigating to the Curation > Translations page, there should be five tabs, as shown in the mockup below. This ticket covers the General labels tab. The numbered sections below correspond to the numbered orange note indicators in the mockup. \r\n\r\n<img width=\"557\" alt=\"translation-general\" src=\"https://user-images.githubusercontent.com/101482/36701606-4714b1c8-1b11-11e8-8693-d0b3654964c0.png\">\r\n\r\n### 1. Language buttons\r\n\r\nEach language that has been added to the Current Languages section of the Configuration > General page should be represented by a button here. On page load the first button should be selected and the tabs on the page reflect the state of translation (progress counts and any existing translated field values) for that language.\r\n\r\nWhen the user clicks a different language button, the page looks similar but loads the state of translation for that language. For example, here the user has clicked the Spanish button, which has only had one field translated so far:\r\n\r\n<img width=\"505\" alt=\"translation-general-spanish\" src=\"https://user-images.githubusercontent.com/101482/36701803-ed642bd0-1b11-11e8-9a25-ec2f8b705ef0.png\">\r\n\r\n### 2. Progress counts\r\n\r\nTo give admins and curators a quick understanding of the translation progress for the selected language, each tab includes a progress indicator for the fields associated with that tab. For example, the General labels tab contains seven fields that could potentially be translated. In the first mockup above, there are three completed Italian translations, so the tab includes `[3/7]` as a progress indicator. I suggest using `#686868` for the text color of the progress indicator (I don't think we're using that color anywhere, but it's the lightest gray that meets AA color contrast level; Bootstrap's muted gray is too light).\r\n\r\n### 3. Translatable fields\r\n\r\nEach field that can be translated is shown with a field label at left and then a visually grouped block consisting of an input field for the translated field value and a help block below the input showing the current field value in the default language. Inputs are blank if no translated value exists; if a value does exist for a field, it's shown in the input so it can be edited.\r\n\r\nStyling: Bootstrap's `panel panel-body` styling could possibly be used as a basis for the visual grouping, but we'd want to add `background-color: #f5f5f5; padding-bottom: 0;` to it. The field value shown below the input could be done as a `help-block` but I'd add `color: #555555; padding-left: 12px;` for contrast and alignment (there are Bootstrap variables for some of those property values, I think).\r\n\r\n### 4. Completed translated icon\r\n\r\nTo help the curator more easily see which fields have been translated, show a check icon (e.g. `.glyphicon-ok` in `#80BF77`) next to each field with a value, after the page is saved. In other words, when this tabbed page is saved, we'd reload the page, updated to show 1) checkboxes next to each field with a value, and 2) currently accurate progress indicator in the General labels tab title (e.g., \"[3/7]\".\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/projectblacklight/spotlight/issues/comments/374803199","html_url":"https://github.com/projectblacklight/spotlight/issues/1914#issuecomment-374803199","issue_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1914","id":374803199,"user":{"login":"jkeck","id":96776,"avatar_url":"https://avatars0.githubusercontent.com/u/96776?v=4","gravatar_id":"","url":"https://api.github.com/users/jkeck","html_url":"https://github.com/jkeck","followers_url":"https://api.github.com/users/jkeck/followers","following_url":"https://api.github.com/users/jkeck/following{/other_user}","gists_url":"https://api.github.com/users/jkeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeck/subscriptions","organizations_url":"https://api.github.com/users/jkeck/orgs","repos_url":"https://api.github.com/users/jkeck/repos","events_url":"https://api.github.com/users/jkeck/events{/privacy}","received_events_url":"https://api.github.com/users/jkeck/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T00:32:18Z","updated_at":"2018-03-21T00:32:18Z","author_association":"OWNER","body":"All of the sections in the `General` tab have been completed.  Closing this now, but feel free to re-open if we've missed something."}}
{"actor":{"display_login":"jkeck"}}