{"action":"created","issue":{"url":"https://api.github.com/repos/octopress/multilingual/issues/17","labels_url":"https://api.github.com/repos/octopress/multilingual/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/octopress/multilingual/issues/17/comments","events_url":"https://api.github.com/repos/octopress/multilingual/issues/17/events","html_url":"https://github.com/octopress/multilingual/issues/17","id":97488810,"number":17,"title":"Problems with link between translated posts or pages","user":{"login":"taringamberini","id":4944077,"avatar_url":"https://avatars.githubusercontent.com/u/4944077?v=3","gravatar_id":"","url":"https://api.github.com/users/taringamberini","html_url":"https://github.com/taringamberini","followers_url":"https://api.github.com/users/taringamberini/followers","following_url":"https://api.github.com/users/taringamberini/following{/other_user}","gists_url":"https://api.github.com/users/taringamberini/gists{/gist_id}","starred_url":"https://api.github.com/users/taringamberini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taringamberini/subscriptions","organizations_url":"https://api.github.com/users/taringamberini/orgs","repos_url":"https://api.github.com/users/taringamberini/repos","events_url":"https://api.github.com/users/taringamberini/events{/privacy}","received_events_url":"https://api.github.com/users/taringamberini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-27T15:23:15Z","updated_at":"2015-07-29T16:23:36Z","closed_at":null,"body":"## Setting Octopress\r\n\r\nI've installed and configured Octopress as described at:\r\n* [Initial setup](http://octopress.org/docs/setup/)\r\n* [Basic Configuration](http://octopress.org/docs/configuring/)\r\n\r\n## Installing octopress-multilingual\r\n\r\nThen I've installed:\r\n\r\n    group :jekyll_plugins do\r\n      gem 'octopress-multilingual'\r\n    end\r\n\r\nI've run:\r\n\r\n    $ bundle\r\n    Using rake 10.4.2\r\n    Using RedCloth 4.2.9\r\n    Using blankslate 2.1.2.4\r\n    Using hitimes 1.2.2\r\n    Using timers 4.0.1\r\n    Using celluloid 0.16.0\r\n    Using chunky_png 1.3.4\r\n    Using fast-stemmer 1.0.2\r\n    Using classifier-reborn 2.0.3\r\n    Using coffee-script-source 1.9.1.1\r\n    Using execjs 2.5.2\r\n    Using coffee-script 2.4.1\r\n    Using colorator 0.1\r\n    Using multi_json 1.11.2\r\n    Using sass 3.4.16\r\n    Using compass-core 1.0.3\r\n    Using compass-import-once 1.0.5\r\n    Using rb-fsevent 0.9.5\r\n    Using ffi 1.9.10\r\n    Using rb-inotify 0.9.5\r\n    Using compass 1.0.3\r\n    Using tilt 2.0.1\r\n    Using haml 4.0.6\r\n    Using jekyll-coffeescript 1.0.1\r\n    Using jekyll-gist 1.2.1\r\n    Using jekyll-paginate 1.1.0\r\n    Using jekyll-sass-converter 1.3.0\r\n    Using listen 2.10.1\r\n    Using jekyll-watch 1.2.1\r\n    Using kramdown 1.8.0\r\n    Using liquid 2.6.3\r\n    Using mercenary 0.3.5\r\n    Using posix-spawn 0.3.11\r\n    Using yajl-ruby 1.2.1\r\n    Using pygments.rb 0.6.3\r\n    Using redcarpet 3.3.2\r\n    Using safe_yaml 1.0.4\r\n    Using parslet 1.5.0\r\n    Using toml 0.1.2\r\n    Using jekyll 2.5.3\r\n    Using jekyll-sitemap 0.8.1\r\n    Using json 1.8.2\r\n    Using octopress-deploy 1.2.2\r\n    Using octopress-hooks 2.6.1\r\n    Using octopress-escape-code 2.0.6\r\n    Using titlecase 0.1.1\r\n    Using octopress 3.0.0.rc.37\r\n    Using octopress-date-format 2.0.2\r\n    Using rubypants-unicode 0.2.5\r\n    Using octopress-filters 1.3.3\r\n    Using octopress-tag-helpers 1.0.4\r\n    Using octopress-include-tag 1.1.0\r\n    Using uglifier 2.7.1\r\n    Using octopress-ink 1.0.0.rc.48\r\n    Using octopress-return-tag 1.0.1\r\n    Using octopress-feeds 2.0.3\r\n    Using octopress-multilingual 1.2.0\r\n    Using octopress-paginate 1.1.2\r\n    Using rack 1.6.4\r\n    Using rack-protection 1.5.3\r\n    Using rdiscount 2.1.8\r\n    Using sass-globbing 1.0.0\r\n    Using sinatra 1.4.6\r\n    Using stringex 1.4.0\r\n    Using bundler 1.10.6\r\n\r\nand configured _config.yml with Italian default language:\r\n\r\n    gems:\r\n      - octopress-multilingual\r\n    lang: it\r\n\r\n## Setting octopress-multilingual\r\n\r\nI've followed the [Link between translated posts or pages](https://github.com/octopress/multilingual#link-between-translated-posts-or-pages) section and I have sucessfully generated a `translation_id` for the `about` page and for a post.\r\n\r\nIt happens that in the `about` page:\r\n\r\n* `{% translations page %}` works as expected (OK)\r\n* `{% translations post %}` doesn't print nothing (OK)\r\n    \r\nin the italian post `/_post/20150727-test.markdown` and in the English post:\r\n\r\n* `{% translations page %}` doesn't print nothing with English post in /en/_post/20150727-test.markdown (BAD)\r\n* `{% translations page %}` doesn't print nothing with English post in /_post/en/20150727-test.markdown (BAD)\r\n* `{% translations page %}` works as expected (**OK**) with English post in /_post/20150727-test-with-a-suffix-to-distinguish-from-italian-post.markdown\r\n*  `{% translations post %}` doesn't print nothing with English post in /en/_post/20150727-test.markdown (BAD)\r\n* `{% translations post %}` doesn't print nothing with English post in /_post/en/20150727-test.markdown (BAD)\r\n* `{% translations post %}` doesn't print nothing with English post in /_post/20150727-test-with-a-suffix-to-distinguish-from-italian-post.markdown (BAD)\r\n\r\nso it seems:\r\n* `{{ translations page }}` always works for pages\r\n* `{{ translations page }}` works for posts if and only if translated post are in /_post/ directory\r\n* `{{ translations post }}` never works for both pages and posts.\r\n\r\nThanks,\r\nTarin"},"comment":{"url":"https://api.github.com/repos/octopress/multilingual/issues/comments/126007047","html_url":"https://github.com/octopress/multilingual/issues/17#issuecomment-126007047","issue_url":"https://api.github.com/repos/octopress/multilingual/issues/17","id":126007047,"user":{"login":"taringamberini","id":4944077,"avatar_url":"https://avatars.githubusercontent.com/u/4944077?v=3","gravatar_id":"","url":"https://api.github.com/users/taringamberini","html_url":"https://github.com/taringamberini","followers_url":"https://api.github.com/users/taringamberini/followers","following_url":"https://api.github.com/users/taringamberini/following{/other_user}","gists_url":"https://api.github.com/users/taringamberini/gists{/gist_id}","starred_url":"https://api.github.com/users/taringamberini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taringamberini/subscriptions","organizations_url":"https://api.github.com/users/taringamberini/orgs","repos_url":"https://api.github.com/users/taringamberini/repos","events_url":"https://api.github.com/users/taringamberini/events{/privacy}","received_events_url":"https://api.github.com/users/taringamberini/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T16:23:36Z","updated_at":"2015-07-29T16:23:36Z","body":"I've just deployed my octopress multilingual site at https://taringamberini.github.io and you can find my octopress site sources on the `source` branch at https://github.com/taringamberini/taringamberini.github.io/tree/source so you can see:\r\n\r\n* what I configured: looking to source code\r\n* why I configured it: looking to commits' message (I'm a fan of [commit messages](http://www.slideshare.net/TarinGamberini/commit-messages-goodpractices) ).\r\n\r\nI'm available for any questions or tests,\r\nTarin"}}