)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f64803ce0bc23f1b2ab6708f62eb5ab91444b96","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Haomeng, Wang \u003cwhaom@cn.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-03-25 07:09:15 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"supports i18n translation"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"So far we did not call i18n.translate() method to translate the error message,"},{"line_number":10,"context_line":"so if current locale is not in English language, the error message is still"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1a6ced46_f971e4e0","line":7,"updated":"2015-03-25 10:01:33.000000000","message":"please provide more specific summary, stating that\u0027s it\u0027s about API responses","commit_id":"09e36d2fc0591ec6275f0faf781b41594b827bc2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f64803ce0bc23f1b2ab6708f62eb5ab91444b96","unresolved":false,"context_lines":[{"line_number":14,"context_line":"message based on the current user locale language. And add translate hooks."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"This is the first patch to propose the solution, not sure if this should be a blue"},{"line_number":17,"context_line":"print or not, if we think it should be blueprint, I will follow the bp process."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: If0ca67274fc73d4135aeccb4e79d8b09eac8b430"},{"line_number":20,"context_line":"Closes-Bug: 1436173"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1a6ced46_797df4b0","line":17,"updated":"2015-03-25 10:01:33.000000000","message":"I doubt it needs a blueprint, but I think feature freeze applies to it","commit_id":"09e36d2fc0591ec6275f0faf781b41594b827bc2"}],"ironic/api/middleware/parsable_error.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"40225d8d664214c3032dd174c7d830e94e6dda75","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                if isinstance(hook, hooks.TranslationHook):"},{"line_number":92,"context_line":"                    error \u003d hook.local_error.translatable_error"},{"line_number":93,"context_line":"                    break"},{"line_number":94,"context_line":"            user_locale \u003d self.best_match_language(req.accept_language)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"            if (req.accept.best_match([\u0027application/json\u0027, \u0027application/xml\u0027])"},{"line_number":97,"context_line":"                \u003d\u003d \u0027application/xml\u0027):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6ced46_d45b0f85","line":94,"updated":"2015-03-25 10:22:48.000000000","message":"Shouldn\u0027t we be doing many of this inside the TranslationHook itself?!\n\nWe can check there if there is there\u0027s a \"error_message\" on the json body and translate it there. Unless I\u0027m missing something here.","commit_id":"09e36d2fc0591ec6275f0faf781b41594b827bc2"}]}
