{"number":4,"pull_request":{"number":4,"issue_url":"https://github.com/akoenig/express-lingua/issues/4","head":{"repo":{"master_branch":null,"name":"express-lingua","created_at":"2011-10-20T15:23:10Z","size":112,"clone_url":"https://github.com/homme/express-lingua.git","private":false,"updated_at":"2011-10-20T15:42:25Z","watchers":1,"ssh_url":"git@github.com:homme/express-lingua.git","url":"https://api.github.com/repos/homme/express-lingua","git_url":"git://github.com/homme/express-lingua.git","language":"JavaScript","fork":true,"svn_url":"https://svn.github.com/homme/express-lingua","id":2614008,"pushed_at":"2011-10-20T15:42:23Z","open_issues":0,"homepage":"","description":"A i18n middleware for the Express.js framework.","forks":0,"html_url":"https://github.com/homme/express-lingua","owner":{"avatar_url":"https://secure.gravatar.com/avatar/4bfda429768d89520c91c809eaab1577?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4bfda429768d89520c91c809eaab1577","url":"https://api.github.com/users/homme","id":1055336,"login":"homme"}},"label":"homme:master","sha":"fc4da3dc9ca733d09b3d9cfe75147d73bd56c415","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/4bfda429768d89520c91c809eaab1577?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4bfda429768d89520c91c809eaab1577","url":"https://api.github.com/users/homme","id":1055336,"login":"homme"}},"merged_by":{"avatar_url":"https://secure.gravatar.com/avatar/5ee5cd89f7ed6895e80400156211fdbb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5ee5cd89f7ed6895e80400156211fdbb","url":"https://api.github.com/users/akoenig","id":224910,"login":"akoenig"},"created_at":"2011-10-20T15:44:29Z","changed_files":1,"merged":true,"body":"This is a fix for issue #3. It means that Lingua now matches the best\r\navailable language tag in the Accept-Language header to a\r\nresource. Previously only the first language tag in the header was\r\nchosen as a locale.\r\n\r\nIn addition the subtagQvalue option to lingua has been added, with a\r\nvalue range from 0 to 1 and defaulting to 0.1. If subtagQvalue is\r\nnon-zero then the primary subtag in a language tag is also extracted\r\nand matched against a resource. In the language tag 'en-us' the\r\nprimary subtag is 'en'.\r\n\r\nThis change involved:\r\n\r\n- creating code to extract and order the language tags and subtags\r\n  based on qvalues.\r\n\r\n- enhancing the guru.determines() method to return an ordered list of\r\n  acceptable locales rather than a single locale.\r\n\r\n- enhancing guru.ask() to take a list of locales rather than a single\r\n  locale and try to a match a value in the list to a resource.","comments":4,"title":"Make Lingua fully aware of the 'Accept-Language' header","additions":140,"diff_url":"https://github.com/akoenig/express-lingua/pull/4.diff","updated_at":"2011-10-22T17:19:44Z","url":"https://api.github.com/repos/akoenig/express-lingua/pulls/4","id":418920,"patch_url":"https://github.com/akoenig/express-lingua/pull/4.patch","mergeable":null,"merged_at":"2011-10-22T17:19:44Z","commits":1,"closed_at":"2011-10-22T17:19:44Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/4bfda429768d89520c91c809eaab1577?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4bfda429768d89520c91c809eaab1577","url":"https://api.github.com/users/homme","id":1055336,"login":"homme"},"deletions":20,"html_url":"https://github.com/akoenig/express-lingua/pull/4","base":{"repo":{"master_branch":null,"name":"express-lingua","created_at":"2011-09-25T23:16:26Z","size":144,"clone_url":"https://github.com/akoenig/express-lingua.git","private":false,"updated_at":"2011-10-22T17:19:43Z","watchers":4,"ssh_url":"git@github.com:akoenig/express-lingua.git","url":"https://api.github.com/repos/akoenig/express-lingua","git_url":"git://github.com/akoenig/express-lingua.git","language":"JavaScript","fork":false,"svn_url":"https://svn.github.com/akoenig/express-lingua","id":2457074,"pushed_at":"2011-10-22T17:19:43Z","open_issues":2,"homepage":"","description":"A i18n middleware for the Express.js framework.","forks":3,"html_url":"https://github.com/akoenig/express-lingua","owner":{"avatar_url":"https://secure.gravatar.com/avatar/5ee5cd89f7ed6895e80400156211fdbb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5ee5cd89f7ed6895e80400156211fdbb","url":"https://api.github.com/users/akoenig","id":224910,"login":"akoenig"}},"label":"akoenig:master","sha":"fee73a2852afdb1d711c10679d8c2c7b8cf7ca8f","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/5ee5cd89f7ed6895e80400156211fdbb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5ee5cd89f7ed6895e80400156211fdbb","url":"https://api.github.com/users/akoenig","id":224910,"login":"akoenig"}},"state":"closed"},"action":"closed"}