{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4409","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4409/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4409/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4409/events","html_url":"https://github.com/magento/magento2/issues/4409","id":153232765,"number":4409,"title":"Invoice pdf generation not in proper language","user":{"login":"ksz2013","id":4192062,"avatar_url":"https://avatars.githubusercontent.com/u/4192062?v=3","gravatar_id":"","url":"https://api.github.com/users/ksz2013","html_url":"https://github.com/ksz2013","followers_url":"https://api.github.com/users/ksz2013/followers","following_url":"https://api.github.com/users/ksz2013/following{/other_user}","gists_url":"https://api.github.com/users/ksz2013/gists{/gist_id}","starred_url":"https://api.github.com/users/ksz2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksz2013/subscriptions","organizations_url":"https://api.github.com/users/ksz2013/orgs","repos_url":"https://api.github.com/users/ksz2013/repos","events_url":"https://api.github.com/users/ksz2013/events{/privacy}","received_events_url":"https://api.github.com/users/ksz2013/received_events","type":"User","site_admin":false},"labels":[{"id":161563561,"url":"https://api.github.com/repos/magento/magento2/labels/needs%20update","name":"needs update","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":{"login":"NadiyaS","id":11783379,"avatar_url":"https://avatars.githubusercontent.com/u/11783379?v=3","gravatar_id":"","url":"https://api.github.com/users/NadiyaS","html_url":"https://github.com/NadiyaS","followers_url":"https://api.github.com/users/NadiyaS/followers","following_url":"https://api.github.com/users/NadiyaS/following{/other_user}","gists_url":"https://api.github.com/users/NadiyaS/gists{/gist_id}","starred_url":"https://api.github.com/users/NadiyaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NadiyaS/subscriptions","organizations_url":"https://api.github.com/users/NadiyaS/orgs","repos_url":"https://api.github.com/users/NadiyaS/repos","events_url":"https://api.github.com/users/NadiyaS/events{/privacy}","received_events_url":"https://api.github.com/users/NadiyaS/received_events","type":"User","site_admin":false},"assignees":[{"login":"NadiyaS","id":11783379,"avatar_url":"https://avatars.githubusercontent.com/u/11783379?v=3","gravatar_id":"","url":"https://api.github.com/users/NadiyaS","html_url":"https://github.com/NadiyaS","followers_url":"https://api.github.com/users/NadiyaS/followers","following_url":"https://api.github.com/users/NadiyaS/following{/other_user}","gists_url":"https://api.github.com/users/NadiyaS/gists{/gist_id}","starred_url":"https://api.github.com/users/NadiyaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NadiyaS/subscriptions","organizations_url":"https://api.github.com/users/NadiyaS/orgs","repos_url":"https://api.github.com/users/NadiyaS/repos","events_url":"https://api.github.com/users/NadiyaS/events{/privacy}","received_events_url":"https://api.github.com/users/NadiyaS/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-05-05T13:32:22Z","updated_at":"2016-12-08T15:47:00Z","closed_at":"2016-07-07T14:10:54Z","body":"Hi,\n\nVersion used: 2.0.4\n\nWe are using a store with 3 store views, each store view a different language. Everything is ok on frontend, proper languages are displayed.\nThe problem is on the backend when we are generating the invoice pdf, (also shipping) the generated pdf is in the language of the admin logged in user. It is not taking in consideration the language of the store view where the order was placed. (If i select the desired language from backend for the logged in admin user the invoice pdf is generated in theatlanguage, but from what i am aware it should be translated to the store view language)\n\nThe emulation on the invoice pdf is set:\n\nMagento\\Sales\\Model\\Order\\Pdf\\Invoice\n\nLines :130, 131\n\n```\n$this->_localeResolver->emulate($invoice->getStoreId());\n$this->_storeManager->setCurrentStore($invoice->getStoreId());\n```\n\n`echo $this->_localeResolver->getLocale();` <--  The proper locale is returned, but nothing gets translated:  Ex:  __('Invoice # ')  -> is still english Invoice instead of the proper language translation\n\n-> On the frontend proper language translation is returned\n\nIt this a bug, or some different setup needs to be done for backend translations,\n\nThanks,\nSzabi\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/265772897","html_url":"https://github.com/magento/magento2/issues/4409#issuecomment-265772897","issue_url":"https://api.github.com/repos/magento/magento2/issues/4409","id":265772897,"user":{"login":"hezide","id":22726977,"avatar_url":"https://avatars.githubusercontent.com/u/22726977?v=3","gravatar_id":"","url":"https://api.github.com/users/hezide","html_url":"https://github.com/hezide","followers_url":"https://api.github.com/users/hezide/followers","following_url":"https://api.github.com/users/hezide/following{/other_user}","gists_url":"https://api.github.com/users/hezide/gists{/gist_id}","starred_url":"https://api.github.com/users/hezide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hezide/subscriptions","organizations_url":"https://api.github.com/users/hezide/orgs","repos_url":"https://api.github.com/users/hezide/repos","events_url":"https://api.github.com/users/hezide/events{/privacy}","received_events_url":"https://api.github.com/users/hezide/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T15:47:00Z","updated_at":"2016-12-08T15:47:00Z","body":"i am also having this issue in 2.1.2"}}
{"actor":{"display_login":"hezide"}}