{"action":"created","issue":{"url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/69","labels_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/69/comments","events_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/69/events","html_url":"https://github.com/ci-bonfire/Sprint/issues/69","id":64806212,"number":69,"title":"Detect two-character segments as a localize string","user":{"login":"lonnieezell","id":51931,"avatar_url":"https://avatars.githubusercontent.com/u/51931?v=3","gravatar_id":"","url":"https://api.github.com/users/lonnieezell","html_url":"https://github.com/lonnieezell","followers_url":"https://api.github.com/users/lonnieezell/followers","following_url":"https://api.github.com/users/lonnieezell/following{/other_user}","gists_url":"https://api.github.com/users/lonnieezell/gists{/gist_id}","starred_url":"https://api.github.com/users/lonnieezell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonnieezell/subscriptions","organizations_url":"https://api.github.com/users/lonnieezell/orgs","repos_url":"https://api.github.com/users/lonnieezell/repos","events_url":"https://api.github.com/users/lonnieezell/events{/privacy}","received_events_url":"https://api.github.com/users/lonnieezell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ci-bonfire/Sprint/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ci-bonfire/Sprint/labels/Localization","name":"Localization","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-27T17:04:06Z","updated_at":"2015-03-29T16:56:05Z","closed_at":null,"body":"This has a few needs: \r\n\r\n- Config item in application.php to turn on localization support\r\n- Config item in application.php that's an array of supported language strings that will be detected and are supported by the application. All other languages are ignored.\r\n- Should be able to use MY_URI and check segment[0] in the constructor and compare against the languages we're using.\r\n- Must be able to convert the two-character ISO language code to match with the available [CodeIgniter translations](https://github.com/bcit-ci/codeigniter3-translations).\r\n- should define a constant, LANGUAGE, with the appropriate translation string. \r\n- If the first segment is determined to be a valid language, it should be removed the segments returned in all uri_string and segment() methods. This should be as simple as shifting it off the top of the segments array, but this needs to be ensured. \r\n\r\nPlease provide tests.\r\n\r\nNOTE: We will NOT redirect the user or anything else based upon the language at this time. That should be left up to the application dev to determine how they want to handle that. \r\n\r\n[Interesting Reading](http://www.w3.org/International/questions/qa-accept-lang-locales)"},"comment":{"url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/comments/87443648","html_url":"https://github.com/ci-bonfire/Sprint/issues/69#issuecomment-87443648","issue_url":"https://api.github.com/repos/ci-bonfire/Sprint/issues/69","id":87443648,"user":{"login":"IrcDirk","id":1030023,"avatar_url":"https://avatars.githubusercontent.com/u/1030023?v=3","gravatar_id":"","url":"https://api.github.com/users/IrcDirk","html_url":"https://github.com/IrcDirk","followers_url":"https://api.github.com/users/IrcDirk/followers","following_url":"https://api.github.com/users/IrcDirk/following{/other_user}","gists_url":"https://api.github.com/users/IrcDirk/gists{/gist_id}","starred_url":"https://api.github.com/users/IrcDirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrcDirk/subscriptions","organizations_url":"https://api.github.com/users/IrcDirk/orgs","repos_url":"https://api.github.com/users/IrcDirk/repos","events_url":"https://api.github.com/users/IrcDirk/events{/privacy}","received_events_url":"https://api.github.com/users/IrcDirk/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T16:56:05Z","updated_at":"2015-03-29T16:56:05Z","body":"Ok first pull request https://github.com/ci-bonfire/Sprint/pull/74 should cover all this thread needs."}}