{"action":"created","issue":{"url":"https://api.github.com/repos/getnikola/nikola/issues/2112","labels_url":"https://api.github.com/repos/getnikola/nikola/issues/2112/labels{/name}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/2112/comments","events_url":"https://api.github.com/repos/getnikola/nikola/issues/2112/events","html_url":"https://github.com/getnikola/nikola/issues/2112","id":107818059,"number":2112,"title":"Role :doc: is not aware of locale","user":{"login":"Peibolvig","id":1297980,"avatar_url":"https://avatars.githubusercontent.com/u/1297980?v=3","gravatar_id":"","url":"https://api.github.com/users/Peibolvig","html_url":"https://github.com/Peibolvig","followers_url":"https://api.github.com/users/Peibolvig/followers","following_url":"https://api.github.com/users/Peibolvig/following{/other_user}","gists_url":"https://api.github.com/users/Peibolvig/gists{/gist_id}","starred_url":"https://api.github.com/users/Peibolvig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peibolvig/subscriptions","organizations_url":"https://api.github.com/users/Peibolvig/orgs","repos_url":"https://api.github.com/users/Peibolvig/repos","events_url":"https://api.github.com/users/Peibolvig/events{/privacy}","received_events_url":"https://api.github.com/users/Peibolvig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getnikola/nikola/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/getnikola/nikola/milestones/31","html_url":"https://github.com/getnikola/nikola/milestones/v7.7.2","labels_url":"https://api.github.com/repos/getnikola/nikola/milestones/31/labels","id":1302806,"number":31,"title":"v7.7.2","description":"Practice makes perfect.","creator":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":6,"state":"open","created_at":"2015-09-13T03:24:57Z","updated_at":"2015-09-23T12:49:23Z","due_on":"2015-09-29T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-09-22T22:50:03Z","updated_at":"2015-09-23T15:06:42Z","closed_at":null,"body":"Trying Nikola v7.7.1 demo site in local machine, with 3 locales (es, en, gl)\r\n\r\nThe role :doc: is not behaving as expected.\r\nTake for example the one in line 23 of the posts/1.rst file, from the demo:\r\n\r\n    * :doc:`See a demo listing <listings-demo>`\r\n\r\nWhen I'm not in the default locale, for example 'en', the link is:\r\n\r\n    http://localhost:8000/stories/listings-demo/\r\n\r\nThe expected link would be:\r\n\r\n    http://localhost:8000/en/stories/listings-demo/\r\n\r\nI thought this could be related to #1219 but I'm using the v7.7.1, which is the one with the fix for that issue.\r\n\r\nI also tested creating listings-demo.en.rst file, but didn't work either.\r\n\r\nThe URL *http://localhost:8000/**en**/stories/listings-demo/*  does exist, so it seems a problem with the building of the link when using the :doc: role.\r\nUsing the translated version page link (with the 'en') seems good, so the building process for the page is ok."},"comment":{"url":"https://api.github.com/repos/getnikola/nikola/issues/comments/142632682","html_url":"https://github.com/getnikola/nikola/issues/2112#issuecomment-142632682","issue_url":"https://api.github.com/repos/getnikola/nikola/issues/2112","id":142632682,"user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T15:06:42Z","updated_at":"2015-09-23T15:06:42Z","body":"On a side note, both the directive and the `link://` protocol should support specifying a language."}}