{"action":"created","issue":{"url":"https://api.github.com/repos/Adyen/adyen-magento/issues/489","repository_url":"https://api.github.com/repos/Adyen/adyen-magento","labels_url":"https://api.github.com/repos/Adyen/adyen-magento/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/Adyen/adyen-magento/issues/489/comments","events_url":"https://api.github.com/repos/Adyen/adyen-magento/issues/489/events","html_url":"https://github.com/Adyen/adyen-magento/issues/489","id":125416929,"number":489,"title":"When sending emails from cron, text is not translated","user":{"login":"oblomovx","id":5340893,"avatar_url":"https://avatars2.githubusercontent.com/u/5340893?v=3","gravatar_id":"","url":"https://api.github.com/users/oblomovx","html_url":"https://github.com/oblomovx","followers_url":"https://api.github.com/users/oblomovx/followers","following_url":"https://api.github.com/users/oblomovx/following{/other_user}","gists_url":"https://api.github.com/users/oblomovx/gists{/gist_id}","starred_url":"https://api.github.com/users/oblomovx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblomovx/subscriptions","organizations_url":"https://api.github.com/users/oblomovx/orgs","repos_url":"https://api.github.com/users/oblomovx/repos","events_url":"https://api.github.com/users/oblomovx/events{/privacy}","received_events_url":"https://api.github.com/users/oblomovx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-07T15:35:45Z","updated_at":"2017-03-24T15:21:03Z","closed_at":"2016-01-07T16:27:09Z","body":"Version 2.5\nWhen an order is processed from the queue, the email that is sent out is not translated. I guess cron-jobs work in the admin store, so no localization is used.\n"},"comment":{"url":"https://api.github.com/repos/Adyen/adyen-magento/issues/comments/289053185","html_url":"https://github.com/Adyen/adyen-magento/issues/489#issuecomment-289053185","issue_url":"https://api.github.com/repos/Adyen/adyen-magento/issues/489","id":289053185,"user":{"login":"leeuwd","id":1755190,"avatar_url":"https://avatars2.githubusercontent.com/u/1755190?v=3","gravatar_id":"","url":"https://api.github.com/users/leeuwd","html_url":"https://github.com/leeuwd","followers_url":"https://api.github.com/users/leeuwd/followers","following_url":"https://api.github.com/users/leeuwd/following{/other_user}","gists_url":"https://api.github.com/users/leeuwd/gists{/gist_id}","starred_url":"https://api.github.com/users/leeuwd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeuwd/subscriptions","organizations_url":"https://api.github.com/users/leeuwd/orgs","repos_url":"https://api.github.com/users/leeuwd/repos","events_url":"https://api.github.com/users/leeuwd/events{/privacy}","received_events_url":"https://api.github.com/users/leeuwd/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T15:21:03Z","updated_at":"2017-03-24T15:21:03Z","body":"@mozgbrasil: we've put this code in the 'createShipment()' method used in API communications with our third-party order fulfillment. \r\n\r\nOtherwise, I'd put it in `Mage_Sales_Model_Order_Shipment::sendEmail`, line 403. Only add this then:\r\n\r\n```\r\n// Re-init locale to prevent/fix any wrong translations in shipment e-mail (Magento bug?!);\r\n// cron files are run in 'admin' area and thus static blocks (and other stuff) is not properly translated\r\nMage::app()->getTranslator()->setLocale($localeCode)->init(Mage_Core_Model_App_Area::AREA_FRONTEND, true);\r\n```"}}
{"actor":{"display_login":"leeuwd"}}