{"action":"created","issue":{"url":"https://api.github.com/repos/google/closure-templates/issues/43","labels_url":"https://api.github.com/repos/google/closure-templates/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-templates/issues/43/comments","events_url":"https://api.github.com/repos/google/closure-templates/issues/43/events","html_url":"https://github.com/google/closure-templates/issues/43","id":90175032,"number":43,"title":"SoyAutoescapeException: Messages are not supported in this context, because it would mean asking translators to write source code","user":{"login":"ChrisNeveu","id":1002726,"avatar_url":"https://avatars.githubusercontent.com/u/1002726?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisNeveu","html_url":"https://github.com/ChrisNeveu","followers_url":"https://api.github.com/users/ChrisNeveu/followers","following_url":"https://api.github.com/users/ChrisNeveu/following{/other_user}","gists_url":"https://api.github.com/users/ChrisNeveu/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisNeveu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisNeveu/subscriptions","organizations_url":"https://api.github.com/users/ChrisNeveu/orgs","repos_url":"https://api.github.com/users/ChrisNeveu/repos","events_url":"https://api.github.com/users/ChrisNeveu/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisNeveu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-22T18:34:00Z","updated_at":"2015-06-23T18:01:00Z","closed_at":"2015-06-23T18:01:00Z","body":"We've been using the 2012 version of Closure Templates for years and we've recently been trying to upgrade to the latest version to take advantage of new features like static typing. Unfortunately, running the new version we get this error\r\n```console\r\nSoyAutoescapeException: In file /home/chris/Programming/kinja-mantle/app/views/closure/tiger/messages.soy:454:81, template tiger.messages.tokenCallFailed: Messages are not supported in this context, because it would mean asking translators to write source code: (Context URI NORMAL URI DOUBLE_QUOTE START)\r\n```\r\nThe relevant template is:\r\n```\r\n452 {template .tokenCallFailed}\r\n453    {msg desc=\"Success box message - token obtain failed\"}Post failed to save. Please check your network connection and try again.{/msg}\r\n454    <a class=\"icon icon-question-circle hover-icon icon-append help-link\" href=\"{msg desc=\"Kinja Help URL - Token call failed\"}http://help.gawker.com/customer/portal/articles/1794410-why-am-i-receiving-a-post-save-error-{/msg}\" target=\"_blank\"></a>\r\n455 {/template}\r\n```\r\n\r\nWe use this to send users to a different, external page depending on the language they speak."},"comment":{"url":"https://api.github.com/repos/google/closure-templates/issues/comments/114591530","html_url":"https://github.com/google/closure-templates/issues/43#issuecomment-114591530","issue_url":"https://api.github.com/repos/google/closure-templates/issues/43","id":114591530,"user":{"login":"ChrisNeveu","id":1002726,"avatar_url":"https://avatars.githubusercontent.com/u/1002726?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisNeveu","html_url":"https://github.com/ChrisNeveu","followers_url":"https://api.github.com/users/ChrisNeveu/followers","following_url":"https://api.github.com/users/ChrisNeveu/following{/other_user}","gists_url":"https://api.github.com/users/ChrisNeveu/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisNeveu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisNeveu/subscriptions","organizations_url":"https://api.github.com/users/ChrisNeveu/orgs","repos_url":"https://api.github.com/users/ChrisNeveu/repos","events_url":"https://api.github.com/users/ChrisNeveu/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisNeveu/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T18:01:00Z","updated_at":"2015-06-23T18:01:00Z","body":"Thanks again, @gboyer; `deprecated-noncontextual` will make it easier for us to make this upgrade in small steps."}}