{"action":"created","issue":{"url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/issues/29","labels_url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/issues/29/comments","events_url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/issues/29/events","html_url":"https://github.com/UnifiedViews/Plugin-DevEnv/issues/29","id":62708905,"number":29,"title":"ContextUtils.sendMessage() should allow translate also short message (caption) with parameters ","user":{"login":"eea03","id":10461994,"avatar_url":"https://avatars.githubusercontent.com/u/10461994?v=3","gravatar_id":"","url":"https://api.github.com/users/eea03","html_url":"https://github.com/eea03","followers_url":"https://api.github.com/users/eea03/followers","following_url":"https://api.github.com/users/eea03/following{/other_user}","gists_url":"https://api.github.com/users/eea03/gists{/gist_id}","starred_url":"https://api.github.com/users/eea03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eea03/subscriptions","organizations_url":"https://api.github.com/users/eea03/orgs","repos_url":"https://api.github.com/users/eea03/repos","events_url":"https://api.github.com/users/eea03/events{/privacy}","received_events_url":"https://api.github.com/users/eea03/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/labels/priority:%20Normal","name":"priority: Normal","color":"eb6420"},{"url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/labels/severity:%20enhancement","name":"severity: enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/labels/status:%20planned","name":"status: planned","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"eea03","id":10461994,"avatar_url":"https://avatars.githubusercontent.com/u/10461994?v=3","gravatar_id":"","url":"https://api.github.com/users/eea03","html_url":"https://github.com/eea03","followers_url":"https://api.github.com/users/eea03/followers","following_url":"https://api.github.com/users/eea03/following{/other_user}","gists_url":"https://api.github.com/users/eea03/gists{/gist_id}","starred_url":"https://api.github.com/users/eea03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eea03/subscriptions","organizations_url":"https://api.github.com/users/eea03/orgs","repos_url":"https://api.github.com/users/eea03/repos","events_url":"https://api.github.com/users/eea03/events{/privacy}","received_events_url":"https://api.github.com/users/eea03/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/milestones/7","html_url":"https://github.com/UnifiedViews/Plugin-DevEnv/milestones/Release%20v2.2.0","labels_url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/milestones/7/labels","id":1170350,"number":7,"title":"Release v2.2.0","description":"","creator":{"login":"tomas-knap","id":3014917,"avatar_url":"https://avatars.githubusercontent.com/u/3014917?v=3","gravatar_id":"","url":"https://api.github.com/users/tomas-knap","html_url":"https://github.com/tomas-knap","followers_url":"https://api.github.com/users/tomas-knap/followers","following_url":"https://api.github.com/users/tomas-knap/following{/other_user}","gists_url":"https://api.github.com/users/tomas-knap/gists{/gist_id}","starred_url":"https://api.github.com/users/tomas-knap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomas-knap/subscriptions","organizations_url":"https://api.github.com/users/tomas-knap/orgs","repos_url":"https://api.github.com/users/tomas-knap/repos","events_url":"https://api.github.com/users/tomas-knap/events{/privacy}","received_events_url":"https://api.github.com/users/tomas-knap/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-06-18T10:07:26Z","updated_at":"2015-06-18T10:14:48Z","due_on":"2015-07-23T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-03-18T14:37:08Z","updated_at":"2015-06-24T08:15:51Z","closed_at":null,"body":"In current implementation only long message can be parametrized (https://github.com/UnifiedViews/Plugin-DevEnv/blob/develop/uv-dpu-helpers/src/main/java/eu/unifiedviews/helpers/dpu/context/ContextUtils.java#L32-L74). During migration of eDemo DPUs I have encountered multiple occurrences of parameters also in short message. For such case, the ContextUtils.sendMessage() is useless.\r\nAlso sendError(), sendInfo() and sendWarn() methods should be able to translate caption with parameters.\r\n\r\nI would also welcome sendMessage() method with only short message (or caption now) parameter, similarly to sendShortInfo() and sendShortWarn()\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/issues/comments/114777199","html_url":"https://github.com/UnifiedViews/Plugin-DevEnv/issues/29#issuecomment-114777199","issue_url":"https://api.github.com/repos/UnifiedViews/Plugin-DevEnv/issues/29","id":114777199,"user":{"login":"eea02","id":10449186,"avatar_url":"https://avatars.githubusercontent.com/u/10449186?v=3","gravatar_id":"","url":"https://api.github.com/users/eea02","html_url":"https://github.com/eea02","followers_url":"https://api.github.com/users/eea02/followers","following_url":"https://api.github.com/users/eea02/following{/other_user}","gists_url":"https://api.github.com/users/eea02/gists{/gist_id}","starred_url":"https://api.github.com/users/eea02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eea02/subscriptions","organizations_url":"https://api.github.com/users/eea02/orgs","repos_url":"https://api.github.com/users/eea02/repos","events_url":"https://api.github.com/users/eea02/events{/privacy}","received_events_url":"https://api.github.com/users/eea02/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T08:15:51Z","updated_at":"2015-06-24T08:15:51Z","body":"I see a problem with implementation. In case we want to send parameters with short message and long message, we cannot have 2 varags method parameters. Also in current implementation is a bug in methods sendShortInfo and sendShortWarn where caption is translated twice. \r\nI dont see a reason for ContextUtils class at all. Its functionality should be done in DPU separately."}}