)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"11e23e550ce022469e31b27098d445d570ecccd0","unresolved":false,"context_lines":[{"line_number":10,"context_line":"allocated, rather than in actual use. The \"Allocated\" string is present"},{"line_number":11,"context_line":"in the code but not used in the template. This effectively changes \"Used"},{"line_number":12,"context_line":"X of Y\" to \"Allocated X of Y\" for floating IPs."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7919b883a47d66b1e870862363d07e0f90bdbe7b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"df3967d1_ecd2de27","line":13,"updated":"2017-08-04 18:51:20.000000000","message":"Could you file a bug and add a bug link here?","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"},{"author":{"_account_id":26590,"name":"Nick Timkovich","email":"npt@uchicago.edu","username":"npt"},"change_message_id":"9298562f0325e07b4827e70ddd0e7a0f9a98bc16","unresolved":false,"context_lines":[{"line_number":10,"context_line":"allocated, rather than in actual use. The \"Allocated\" string is present"},{"line_number":11,"context_line":"in the code but not used in the template. This effectively changes \"Used"},{"line_number":12,"context_line":"X of Y\" to \"Allocated X of Y\" for floating IPs."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7919b883a47d66b1e870862363d07e0f90bdbe7b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"df3967d1_4a49c95d","line":13,"in_reply_to":"df3967d1_ecd2de27","updated":"2017-08-04 20:17:26.000000000","message":"Done","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"}],"horizon/templates/horizon/common/_limit_summary.html":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"11e23e550ce022469e31b27098d445d570ecccd0","unresolved":false,"context_lines":[{"line_number":13,"context_line":"          \u003cdiv class\u003d\"quota_subtitle\"\u003e"},{"line_number":14,"context_line":"            {% if quota.max|quotainf !\u003d \u0027-1\u0027 %}"},{"line_number":15,"context_line":"              {% if quota.type \u003d\u003d \"totalRAMUsed\" %}"},{"line_number":16,"context_line":"                {% blocktrans trimmed with usedphrase\u003dquota.usedphrase|default:\"Used\" used\u003dquota.used|mb_float_format available\u003dquota.max|quotainf|mb_float_format %}"},{"line_number":17,"context_line":"                  {{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e"},{"line_number":18,"context_line":"                {% endblocktrans %}"},{"line_number":19,"context_line":"              {% elif quota.type \u003d\u003d \"totalGigabytesUsed\" %}"}],"source_content_type":"text/html","patch_set":2,"id":"df3967d1_cce4ba0f","line":16,"range":{"start_line":16,"start_character":80,"end_line":16,"end_character":85},"updated":"2017-08-04 18:51:20.000000000","message":"\"Used\" needs to be marked as translatable.\n\nPerhaps _(\"Used\") work, but some testing is needed.","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bf512e9977d0a3ea1499bc23bf5e911c85a79e80","unresolved":false,"context_lines":[{"line_number":13,"context_line":"          \u003cdiv class\u003d\"quota_subtitle\"\u003e"},{"line_number":14,"context_line":"            {% if quota.max|quotainf !\u003d \u0027-1\u0027 %}"},{"line_number":15,"context_line":"              {% if quota.type \u003d\u003d \"totalRAMUsed\" %}"},{"line_number":16,"context_line":"                {% blocktrans trimmed with usedphrase\u003dquota.usedphrase|default:\"Used\" used\u003dquota.used|mb_float_format available\u003dquota.max|quotainf|mb_float_format %}"},{"line_number":17,"context_line":"                  {{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e"},{"line_number":18,"context_line":"                {% endblocktrans %}"},{"line_number":19,"context_line":"              {% elif quota.type \u003d\u003d \"totalGigabytesUsed\" %}"}],"source_content_type":"text/html","patch_set":2,"id":"bf3e73b7_90bb29e4","line":16,"range":{"start_line":16,"start_character":80,"end_line":16,"end_character":85},"in_reply_to":"bf3e73b7_33fff268","updated":"2017-08-05 22:07:37.000000000","message":"@Pierre your understanding is correct.\n\nRegarding Option 1, I have a point I cannot understand. The message catalogs (PO files) are generated automatically from the horizon code, so I am not sure what you actually think (which code is changed).\n\nRegarding Option  2, do you mean to split the current string into \"Used/Allocated\" and \"\u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e\"? This produces another problem. Translators cannot control the order of words depending on their language. Thus, the current pattern \"{{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e\" must be kept.\n\nMy suggestion is:\n\n- if default:_(\"Used\") works here, it is good. Doesn\u0027t it work?\n- If not, define _(\"Used\") in usage/view.py as the default value.\n\nNote that if we go to the route to define Used in usage/view.py ensure to use the contextual marker [1] instead of a simple _(\"Used\"). In addition to this, consider adding comments for translators [2]. They are required because \"Used\" (or \"Allocated\") is a short string and appropriate translated word would be different depending on its context.\n\n[1] https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#contextual-markers\n\n[2] https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#comments-for-translators","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"0c33ffacbe6fa826c2fc6bf80f4d0d710cd29c87","unresolved":false,"context_lines":[{"line_number":13,"context_line":"          \u003cdiv class\u003d\"quota_subtitle\"\u003e"},{"line_number":14,"context_line":"            {% if quota.max|quotainf !\u003d \u0027-1\u0027 %}"},{"line_number":15,"context_line":"              {% if quota.type \u003d\u003d \"totalRAMUsed\" %}"},{"line_number":16,"context_line":"                {% blocktrans trimmed with usedphrase\u003dquota.usedphrase|default:\"Used\" used\u003dquota.used|mb_float_format available\u003dquota.max|quotainf|mb_float_format %}"},{"line_number":17,"context_line":"                  {{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e"},{"line_number":18,"context_line":"                {% endblocktrans %}"},{"line_number":19,"context_line":"              {% elif quota.type \u003d\u003d \"totalGigabytesUsed\" %}"}],"source_content_type":"text/html","patch_set":2,"id":"bf3e73b7_33fff268","line":16,"range":{"start_line":16,"start_character":80,"end_line":16,"end_character":85},"in_reply_to":"df3967d1_cce4ba0f","updated":"2017-08-04 21:25:56.000000000","message":"@Akihiro: It looks to me like the entire \"Used \u003cspan\u003e %(used)s \u003c/span\u003e of \u003cspan\u003e %(available)s \u003c/span\u003e\" and \"Used \u003cspan\u003e %(used)s \u003c/span\u003e(No Limit)\" strings are translated, because they are wrapped in blocktrans blocks. They can be found in the message files.\n\nIf this is a correct understanding, I see two solutions:\n\n1) Add \"Allocated \u003cspan\u003e %(allocated)s \u003c/span\u003e of \u003cspan\u003e %(available)s \u003c/span\u003e\" and \"Allocated \u003cspan\u003e %(allocated)s \u003c/span\u003e(No Limit)\" to message files. This has the disadvantage that if a third word is added to Used/Allocated, another translation string will need to be added.\n\n2) Split the strings in two and translate Used/Allocated independently from the rest of the strings.","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"},{"author":{"_account_id":26590,"name":"Nick Timkovich","email":"npt@uchicago.edu","username":"npt"},"change_message_id":"9298562f0325e07b4827e70ddd0e7a0f9a98bc16","unresolved":false,"context_lines":[{"line_number":13,"context_line":"          \u003cdiv class\u003d\"quota_subtitle\"\u003e"},{"line_number":14,"context_line":"            {% if quota.max|quotainf !\u003d \u0027-1\u0027 %}"},{"line_number":15,"context_line":"              {% if quota.type \u003d\u003d \"totalRAMUsed\" %}"},{"line_number":16,"context_line":"                {% blocktrans trimmed with usedphrase\u003dquota.usedphrase|default:\"Used\" used\u003dquota.used|mb_float_format available\u003dquota.max|quotainf|mb_float_format %}"},{"line_number":17,"context_line":"                  {{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e"},{"line_number":18,"context_line":"                {% endblocktrans %}"},{"line_number":19,"context_line":"              {% elif quota.type \u003d\u003d \"totalGigabytesUsed\" %}"}],"source_content_type":"text/html","patch_set":2,"id":"df3967d1_6aac8dec","line":16,"range":{"start_line":16,"start_character":80,"end_line":16,"end_character":85},"in_reply_to":"df3967d1_cce4ba0f","updated":"2017-08-04 20:17:26.000000000","message":"Can do. I\u0027m not sure right now about how Django processes i18n strings when nested, but will suss it out.","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"dc4467dda4a42e88f9c22e7fcbc9a5d557acbcad","unresolved":false,"context_lines":[{"line_number":13,"context_line":"          \u003cdiv class\u003d\"quota_subtitle\"\u003e"},{"line_number":14,"context_line":"            {% if quota.max|quotainf !\u003d \u0027-1\u0027 %}"},{"line_number":15,"context_line":"              {% if quota.type \u003d\u003d \"totalRAMUsed\" %}"},{"line_number":16,"context_line":"                {% blocktrans trimmed with usedphrase\u003dquota.text|default:_(\"Used\") used\u003dquota.used|mb_float_format available\u003dquota.max|quotainf|mb_float_format %}"},{"line_number":17,"context_line":"                  {{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e"},{"line_number":18,"context_line":"                {% endblocktrans %}"},{"line_number":19,"context_line":"              {% elif quota.type \u003d\u003d \"totalGigabytesUsed\" %}"}],"source_content_type":"text/html","patch_set":4,"id":"1f485f77_5ab8ea74","line":16,"range":{"start_line":16,"start_character":73,"end_line":16,"end_character":82},"updated":"2017-11-14 11:59:24.000000000","message":"\"Used\" is a short string, so it is better to add the contextual marker [1]. It can be done easily in the python code.\n\n[1] https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#contextual-markers","commit_id":"ad602d9c33e636e834cc33c47e876492752a658f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3c1ffdf1057548b13a49dae8d693bb662343f6dc","unresolved":false,"context_lines":[{"line_number":13,"context_line":"          \u003cdiv class\u003d\"quota_subtitle\"\u003e"},{"line_number":14,"context_line":"            {% if quota.max|quotainf !\u003d \u0027-1\u0027 %}"},{"line_number":15,"context_line":"              {% if quota.type \u003d\u003d \"totalRAMUsed\" %}"},{"line_number":16,"context_line":"                {% blocktrans trimmed with usedphrase\u003dquota.text|default:_(\"Used\") used\u003dquota.used|mb_float_format available\u003dquota.max|quotainf|mb_float_format %}"},{"line_number":17,"context_line":"                  {{ usedphrase }} \u003cspan\u003e {{ used }} \u003c/span\u003eof\u003cspan\u003e {{ available }} \u003c/span\u003e"},{"line_number":18,"context_line":"                {% endblocktrans %}"},{"line_number":19,"context_line":"              {% elif quota.type \u003d\u003d \"totalGigabytesUsed\" %}"}],"source_content_type":"text/html","patch_set":4,"id":"1f485f77_b55ed10f","line":16,"range":{"start_line":16,"start_character":73,"end_line":16,"end_character":82},"in_reply_to":"1f485f77_5ab8ea74","updated":"2017-11-14 12:14:18.000000000","message":"Done","commit_id":"ad602d9c33e636e834cc33c47e876492752a658f"}],"openstack_dashboard/usage/views.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"11e23e550ce022469e31b27098d445d570ecccd0","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                         _(\"Volume Storage\")))"},{"line_number":81,"context_line":"        for t in types:"},{"line_number":82,"context_line":"            if t[0] in self.usage.limits and t[1] in self.usage.limits:"},{"line_number":83,"context_line":"                usedphrase \u003d False"},{"line_number":84,"context_line":"                if len(t) \u003e 3:"},{"line_number":85,"context_line":"                    usedphrase \u003d t[3]"},{"line_number":86,"context_line":"                context[\u0027charts\u0027].append({"}],"source_content_type":"text/x-python","patch_set":2,"id":"df3967d1_8cfc72b5","line":83,"range":{"start_line":83,"start_character":16,"end_line":83,"end_character":26},"updated":"2017-08-04 18:51:20.000000000","message":"I think actually there is no need to rename text to usedphrase.","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"},{"author":{"_account_id":26590,"name":"Nick Timkovich","email":"npt@uchicago.edu","username":"npt"},"change_message_id":"9298562f0325e07b4827e70ddd0e7a0f9a98bc16","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                         _(\"Volume Storage\")))"},{"line_number":81,"context_line":"        for t in types:"},{"line_number":82,"context_line":"            if t[0] in self.usage.limits and t[1] in self.usage.limits:"},{"line_number":83,"context_line":"                usedphrase \u003d False"},{"line_number":84,"context_line":"                if len(t) \u003e 3:"},{"line_number":85,"context_line":"                    usedphrase \u003d t[3]"},{"line_number":86,"context_line":"                context[\u0027charts\u0027].append({"}],"source_content_type":"text/x-python","patch_set":2,"id":"df3967d1_0a3aa197","line":83,"range":{"start_line":83,"start_character":16,"end_line":83,"end_character":26},"in_reply_to":"df3967d1_8cfc72b5","updated":"2017-08-04 20:17:26.000000000","message":"\"text\" seemed a bit broad to me so I tried to make it more specific. Do you like something else better or prefer to just leave it alone if possible?","commit_id":"1cd31488d65920c625aea1741a25d5c3d0d0c684"}]}
