{"action":"created","issue":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/13","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/13/comments","events_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/13/events","html_url":"https://github.com/thymeleaf/thymeleaf/issues/13","id":5021078,"number":13,"title":"StandardMessageResolver should default to included files' properties","user":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/labels/status%3Aunderevaluation","name":"status:underevaluation","color":"d4c5f9"},{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/labels/tracker%3Afeature","name":"tracker:feature","color":"005dc5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/milestones/21","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf/milestones/21/labels","id":519949,"number":21,"title":"Wish List / Future Work","description":"","creator":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":3,"state":"open","created_at":"2013-12-23T13:30:03Z","updated_at":"2014-12-23T17:13:50Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2012-06-12T10:12:32Z","updated_at":"2015-01-09T10:16:38Z","closed_at":null,"body":"In the standard message resolution mechanism, properties are not explored for the included fragments, and they are only for the including template.\n\nThis might cause the repetition of properties in messages files between the included and including templates.\n\nWhat could be done is to (optionally) add the Node itself to the message resolution request, so that if the Node contains information about the template where it comes from this information could be used for defaulting. That way, if a message key is not found in the including template, the included one will be tested before returning a defaulted string."},"comment":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/comments/69316278","html_url":"https://github.com/thymeleaf/thymeleaf/issues/13#issuecomment-69316278","issue_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/13","id":69316278,"user":{"login":"yacota","id":2678582,"avatar_url":"https://avatars.githubusercontent.com/u/2678582?v=3","gravatar_id":"","url":"https://api.github.com/users/yacota","html_url":"https://github.com/yacota","followers_url":"https://api.github.com/users/yacota/followers","following_url":"https://api.github.com/users/yacota/following{/other_user}","gists_url":"https://api.github.com/users/yacota/gists{/gist_id}","starred_url":"https://api.github.com/users/yacota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacota/subscriptions","organizations_url":"https://api.github.com/users/yacota/orgs","repos_url":"https://api.github.com/users/yacota/repos","events_url":"https://api.github.com/users/yacota/events{/privacy}","received_events_url":"https://api.github.com/users/yacota/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T10:16:38Z","updated_at":"2015-01-09T10:16:38Z","body":"Let me share an example to try to fully understand the point of this issue\r\n\r\nsome_dir/fragment.html\r\nsome_dir/fragment_es.properties\r\nsome_dir/template_that_includes_fragment.html\r\nsome_dir/template_that_includes_fragment_es.properties\r\n\r\nWhat I understand is that StandardMessageResolver when resolving message keys for/\"inside\" the included fragment will look up first in template_that_includes_fragment_es.properties (as a specialized message) and if not present fragment_es.properties should be used.\r\nSo the hole point is that the message key should be present in fragment_es.properties but can be be specialized, right ? "}}