)]}'
{"openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/flavor/flavor.controller.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"65ed74783f66b66dee38485f7b4f59a2ca4591a6","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            srcMinRamMsg,"},{"line_number":319,"context_line":"            {"},{"line_number":320,"context_line":"              minRam: source.min_ram,"},{"line_number":321,"context_line":"              sourceType: sourceType.type"},{"line_number":322,"context_line":"            },"},{"line_number":323,"context_line":"            true"},{"line_number":324,"context_line":"          );"}],"source_content_type":"text/javascript","patch_set":6,"id":"5a5ae5dd_d004084b","line":321,"updated":"2016-02-06 00:56:24.000000000","message":"This is not translated.  Need to do a hash lookup on source type.  Something like:\n\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/filters/image-visibility.filter.js#L58","commit_id":"2987d18224729c48a6b36833a38758008ca43d3f"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c1361b64aacea6cffc4491b918a908f518af8e53","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            srcMinRamMsg,"},{"line_number":319,"context_line":"            {"},{"line_number":320,"context_line":"              minRam: source.min_ram,"},{"line_number":321,"context_line":"              sourceType: sourceType.type"},{"line_number":322,"context_line":"            },"},{"line_number":323,"context_line":"            true"},{"line_number":324,"context_line":"          );"}],"source_content_type":"text/javascript","patch_set":6,"id":"5a5ae5dd_561c346a","line":321,"in_reply_to":"5a5ae5dd_1f7b6d7c","updated":"2016-02-09 04:15:34.000000000","message":"How is that translated at the same time as the error message?  This is taking a string literal value that is used when submitting the instance. See line 287 above. This basically referencing this:\n\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.js#L62\n\nWhich is used in evaluating this.\n\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/launch-instance-model.service.js#L456\n\nIf the above were mapped using one of these constants, then it would be translated:\n\nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js#L73\n\nAll of that said, I searched for source type and it is littered throughout with different usages and hard codings. So it is kind of messy.","commit_id":"2987d18224729c48a6b36833a38758008ca43d3f"},{"author":{"_account_id":12281,"name":"Itxaka","email":"igarcia@suse.com","username":"itxaka"},"change_message_id":"9f4cb42f72682e1442029d3a1baf31320455f9ea","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            srcMinRamMsg,"},{"line_number":319,"context_line":"            {"},{"line_number":320,"context_line":"              minRam: source.min_ram,"},{"line_number":321,"context_line":"              sourceType: sourceType.type"},{"line_number":322,"context_line":"            },"},{"line_number":323,"context_line":"            true"},{"line_number":324,"context_line":"          );"}],"source_content_type":"text/javascript","patch_set":6,"id":"5a5ae5dd_2b87c213","line":321,"in_reply_to":"5a5ae5dd_561c346a","updated":"2016-02-09 10:20:38.000000000","message":"Ahh I see, I think I got confused by thinking (for no reason) that the %(sourcetype)s will get interpolated *before* the translation but of course that makes no sense. Translators will see the %(sourcetype)s in the translation and *then* it gets interpolated.\n\nWill make as small patch, thanks for the explanation!","commit_id":"2987d18224729c48a6b36833a38758008ca43d3f"},{"author":{"_account_id":12281,"name":"Itxaka","email":"igarcia@suse.com","username":"itxaka"},"change_message_id":"cf2f6623591d4fd0ed608a465700b34d3b488190","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            srcMinRamMsg,"},{"line_number":319,"context_line":"            {"},{"line_number":320,"context_line":"              minRam: source.min_ram,"},{"line_number":321,"context_line":"              sourceType: sourceType.type"},{"line_number":322,"context_line":"            },"},{"line_number":323,"context_line":"            true"},{"line_number":324,"context_line":"          );"}],"source_content_type":"text/javascript","patch_set":6,"id":"5a5ae5dd_1f7b6d7c","line":321,"in_reply_to":"5a5ae5dd_d004084b","updated":"2016-02-08 08:34:46.000000000","message":"Isnt that translated at the same time as the whole error message is translated?\n\nIf not, we are translating twice:\n1- the sourcetype\n2- the error message in which the sourcetype is already translated and interpolated into the message.\n\nI think that can lead to errors no? I dont have a clear view on this tbh, Im pushing a patchset that translates the sourcetype but would like more opinions on this possible double translation.","commit_id":"2987d18224729c48a6b36833a38758008ca43d3f"}]}
