{"action":"created","issue":{"url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/344","labels_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/344/comments","events_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/344/events","html_url":"https://github.com/codeforamerica/ohana-api/issues/344","id":79478526,"number":344,"title":"Need to complete localization of text throughout the app","user":{"login":"monfresh","id":811150,"avatar_url":"https://avatars.githubusercontent.com/u/811150?v=3","gravatar_id":"","url":"https://api.github.com/users/monfresh","html_url":"https://github.com/monfresh","followers_url":"https://api.github.com/users/monfresh/followers","following_url":"https://api.github.com/users/monfresh/following{/other_user}","gists_url":"https://api.github.com/users/monfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/monfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monfresh/subscriptions","organizations_url":"https://api.github.com/users/monfresh/orgs","repos_url":"https://api.github.com/users/monfresh/repos","events_url":"https://api.github.com/users/monfresh/events{/privacy}","received_events_url":"https://api.github.com/users/monfresh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codeforamerica/ohana-api/labels/help%20wanted","name":"help wanted","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-22T14:37:00Z","updated_at":"2015-08-15T02:14:58Z","closed_at":null,"body":"There are still many places where text can and should be localized so that it can more easily be translated in non-English deployments.\r\n\r\nTo fix:\r\n\r\n- Find text that can be localized (such as notices, error messages, button text, labels, help text, etc.)\r\n\r\n- Copy and paste it into a new entry in [config/locales/en.yml](https://github.com/codeforamerica/ohana-api/blob/master/config/locales/en.yml) and use keys that relate to the text. For example, if you're localizing a button, add a new `buttons` key, and then a separate key that describes each button, such as:\r\n  ```yml \r\n  buttons:\r\n    add_new_location: 'Add a new location'\r\n  ```\r\n- Replace the text in the code with a reference to the localization by using the `t` helper, like this:\r\n\r\n  ```ruby\r\n  t('buttons.add_new_location')\r\n  ```\r\n  If you're not in a view template, you'll need to use `I18n.t` instead of the `t` shortcut."},"comment":{"url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/comments/131280498","html_url":"https://github.com/codeforamerica/ohana-api/issues/344#issuecomment-131280498","issue_url":"https://api.github.com/repos/codeforamerica/ohana-api/issues/344","id":131280498,"user":{"login":"monfresh","id":811150,"avatar_url":"https://avatars.githubusercontent.com/u/811150?v=3","gravatar_id":"","url":"https://api.github.com/users/monfresh","html_url":"https://github.com/monfresh","followers_url":"https://api.github.com/users/monfresh/followers","following_url":"https://api.github.com/users/monfresh/following{/other_user}","gists_url":"https://api.github.com/users/monfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/monfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monfresh/subscriptions","organizations_url":"https://api.github.com/users/monfresh/orgs","repos_url":"https://api.github.com/users/monfresh/repos","events_url":"https://api.github.com/users/monfresh/events{/privacy}","received_events_url":"https://api.github.com/users/monfresh/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T02:14:58Z","updated_at":"2015-08-15T02:14:58Z","body":"Those are good questions. I think distinguishing between nav and buttons is a good idea, but repeating the same text is probably not."}}