)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"6ea73c9c9e0972142b1320e4f50468ee8c051f4d","unresolved":false,"context_lines":[{"line_number":21,"context_line":"/releasenotes/trove-dashboard/ko_KR/ # Korean translation"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Open questions:"},{"line_number":24,"context_line":"* How to generate index files for these languages? This change"},{"line_number":25,"context_line":"  just adds a new section to the release notes index file and links"},{"line_number":26,"context_line":"  to the translations."},{"line_number":27,"context_line":"* Should we run this during check job as well?"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"7a8ec9b2_c74f0d69","line":24,"updated":"2016-09-19 04:09:28.000000000","message":"I\u0027d like to create and maintain the index page manually as a first step.","commit_id":"510c3f7f3dda432404823bf1a1178d447162ebb7"},{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"6ea73c9c9e0972142b1320e4f50468ee8c051f4d","unresolved":false,"context_lines":[{"line_number":24,"context_line":"* How to generate index files for these languages? This change"},{"line_number":25,"context_line":"  just adds a new section to the release notes index file and links"},{"line_number":26,"context_line":"  to the translations."},{"line_number":27,"context_line":"* Should we run this during check job as well?"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Change-Id: Ic64d571a91bc1bd292d45c0f6ba1a67bfee75997"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"7a8ec9b2_4744dd48","line":27,"updated":"2016-09-19 04:09:28.000000000","message":"I don\u0027t think we need to run this job as a gate check job.","commit_id":"510c3f7f3dda432404823bf1a1178d447162ebb7"}],"build-releasenotes.sh":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"86e6ea76a7c610b043f3135dec0754999e608155","unresolved":false,"context_lines":[{"line_number":49,"context_line":"# Add links for translations to index file"},{"line_number":50,"context_line":"cat \u003c\u003cEOF \u003e\u003e ${REFERENCES}"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Translated Release Notes"},{"line_number":53,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"EOF"}],"source_content_type":"text/x-sh","patch_set":11,"id":"1a95cdbc_3c03d20e","line":52,"updated":"2016-10-06 18:02:47.000000000","message":"Manipulating the index.rst like this is potentially brittle, but I don\u0027t have a better suggestion so let\u0027s give it a try and see how it goes.","commit_id":"e4fa3247e13a11e52232a5128968c4cb5cf77107"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"86e6ea76a7c610b043f3135dec0754999e608155","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po"},{"line_number":99,"context_line":"done"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"# Now append our referneces to the index file. We cannot do this"},{"line_number":102,"context_line":"# earlier since the sphinx commands will read this file."},{"line_number":103,"context_line":"cat ${REFERENCES} \u003e\u003e ${DIRECTORY}/source/index.rst"},{"line_number":104,"context_line":""}],"source_content_type":"text/x-sh","patch_set":11,"id":"1a95cdbc_6184d7d3","line":101,"updated":"2016-10-06 18:02:47.000000000","message":"typo: references","commit_id":"e4fa3247e13a11e52232a5128968c4cb5cf77107"}],"jenkins/jobs/openstack-publish-jobs.yaml":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1e55fa7951c3a650947ddeaf6f325909ef571687","unresolved":false,"context_lines":[{"line_number":84,"context_line":"          git checkout origin/master"},{"line_number":85,"context_line":"      # Include file directly so that we can change it anytime."},{"line_number":86,"context_line":"      - shell:"},{"line_number":87,"context_line":"          !include-raw-escape: include-build-releasenotes.sh"},{"line_number":88,"context_line":"      - add-docs-root-marker:"},{"line_number":89,"context_line":"          docsrootdir: releasenotes/build/html"},{"line_number":90,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a95cdbc_c6a20a4b","line":87,"updated":"2016-10-07 07:14:56.000000000","message":"Cool, I first know JJB supports this kind of imports.","commit_id":"76575ccc5ecfe11935bc92ba0766e41693475f50"}],"jenkins/scripts/translate-releasenotes.sh":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e8bb985f5929927e41afc096daf987d959da5ecb","unresolved":false,"context_lines":[{"line_number":16,"context_line":"DOCNAME\u003dreleasenotes"},{"line_number":17,"context_line":"DIRECTORY\u003dreleasenotes"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"export UPPER_CONSTRAINTS_FILE\u003d$(pwd)/upper-constraints.txt"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"if [ ! -e ${DIRECTORY}/source/locale/ ]; then"},{"line_number":22,"context_line":"    echo \"No translations found, nothing to do\""}],"source_content_type":"text/x-sh","patch_set":5,"id":"7a8ec9b2_843d06c6","line":19,"range":{"start_line":19,"start_character":30,"end_line":19,"end_character":58},"updated":"2016-09-18 22:02:21.000000000","message":"Is there any assumption on this? I am not sure upper-constraints.txt always exists in the current directory. Can we fallback this into https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt as we do in tox.ini?","commit_id":"510c3f7f3dda432404823bf1a1178d447162ebb7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e8bb985f5929927e41afc096daf987d959da5ecb","unresolved":false,"context_lines":[{"line_number":36,"context_line":"echo \"\" \u003e\u003e ${REFERENCES}"},{"line_number":37,"context_line":"echo \"Translated Release Notes\" \u003e\u003e ${REFERENCES}"},{"line_number":38,"context_line":"echo \"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\" \u003e\u003e ${REFERENCES}"},{"line_number":39,"context_line":"echo \"\" \u003e\u003e ${REFERENCES}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"# check all language translation resouce"},{"line_number":42,"context_line":"for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do"}],"source_content_type":"text/x-sh","patch_set":5,"id":"7a8ec9b2_44569e06","line":39,"updated":"2016-09-18 22:02:21.000000000","message":"How about using here document?\n\n cat \u003c\u003cEOF \u003e\u003e ${REFERENCES}\n\n Translated Release Notes\n \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\n EOF","commit_id":"510c3f7f3dda432404823bf1a1178d447162ebb7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e8bb985f5929927e41afc096daf987d959da5ecb","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    # prepare all translation resources"},{"line_number":52,"context_line":"    for pot in ${DIRECTORY}/source/locale/*.pot ; do"},{"line_number":53,"context_line":"        # get filename"},{"line_number":54,"context_line":"        potname\u003d$(basename $pot)"},{"line_number":55,"context_line":"        resname\u003d${potname%.pot}"},{"line_number":56,"context_line":"        echo $resname"},{"line_number":57,"context_line":"        # merge all translation resources"},{"line_number":58,"context_line":"        msgmerge --silent -o \\"}],"source_content_type":"text/x-sh","patch_set":5,"id":"7a8ec9b2_e445ea42","line":55,"range":{"start_line":54,"start_character":8,"end_line":55,"end_character":31},"updated":"2016-09-18 22:02:21.000000000","message":"This can be:\n\n  resname\u003d$(basename $pot .pot)","commit_id":"510c3f7f3dda432404823bf1a1178d447162ebb7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e8bb985f5929927e41afc096daf987d959da5ecb","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        msgmerge --silent -o \\"},{"line_number":59,"context_line":"            ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \\"},{"line_number":60,"context_line":"            ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \\"},{"line_number":61,"context_line":"            ${DIRECTORY}/source/locale/${potname}"},{"line_number":62,"context_line":"        # compile all translation resources"},{"line_number":63,"context_line":"        msgfmt -o \\"},{"line_number":64,"context_line":"            ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \\"}],"source_content_type":"text/x-sh","patch_set":5,"id":"7a8ec9b2_c44aae54","line":61,"range":{"start_line":61,"start_character":12,"end_line":61,"end_character":49},"updated":"2016-09-18 22:02:21.000000000","message":"-\u003e $pot","commit_id":"510c3f7f3dda432404823bf1a1178d447162ebb7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"ccb104fa578f97538d6fe2fb58953611ff7cf2a3","unresolved":false,"context_lines":[{"line_number":25,"context_line":"if [ ! -e ${DIRECTORY}/source/locale/ ]; then"},{"line_number":26,"context_line":"    echo \"No translations found, nothing to do\""},{"line_number":27,"context_line":"    exit 0"},{"line_number":28,"context_line":"fi"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"REFERENCES\u003d`mktemp`"},{"line_number":31,"context_line":"trap \"rm -f -- \u0027$REFERENCES\u0027\" EXIT"}],"source_content_type":"text/x-sh","patch_set":9,"id":"1a95cdbc_324ea36f","line":28,"updated":"2016-10-06 16:12:27.000000000","message":"As I mentioned in http://lists.openstack.org/pipermail/openstack-i18n/2016-October/002487.html I think it is better to check releasenotes/source/conf.py contains \u0027locale_dir\u0027.\n\n  if ! grep -q -E \u0027^locale_dirs *\u003d\u0027 releasenotes/source/conf.py; then\n      echo \"No configuration for i18n is found, nothing to do\"\n      exit 0\n  fi\n\nThought?","commit_id":"ba266792e6fc7e65f6408656f2a827c41340eeca"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8b1a12fd0cb2991705c6a5df56027c3452d7fdf0","unresolved":false,"context_lines":[{"line_number":25,"context_line":"if [ ! -e ${DIRECTORY}/source/locale/ ]; then"},{"line_number":26,"context_line":"    echo \"No translations found, nothing to do\""},{"line_number":27,"context_line":"    exit 0"},{"line_number":28,"context_line":"fi"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"REFERENCES\u003d`mktemp`"},{"line_number":31,"context_line":"trap \"rm -f -- \u0027$REFERENCES\u0027\" EXIT"}],"source_content_type":"text/x-sh","patch_set":9,"id":"1a95cdbc_1200c7a9","line":28,"in_reply_to":"1a95cdbc_324ea36f","updated":"2016-10-06 16:13:47.000000000","message":"Alternative is to add locale_dirs to conf.py dynamically in this script.\nI am not sure which is better.","commit_id":"ba266792e6fc7e65f6408656f2a827c41340eeca"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c038b4c53ca21675078b64527e49842b710c9181","unresolved":false,"context_lines":[{"line_number":31,"context_line":"# define \u0027locale_dirs\u0027 setting which is required for i18n."},{"line_number":32,"context_line":"if ! grep -q -E \u0027^locale_dirs *\u003d\u0027 $DIRECTORY/source/conf.py; then"},{"line_number":33,"context_line":"    echo \"locale_dirs \u003d [\u0027locale/\u0027]\" \u003e\u003e $DIRECTORY/source/conf.py"},{"line_number":34,"context_line":"fi"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"REFERENCES\u003d`mktemp`"},{"line_number":37,"context_line":"trap \"rm -f -- \u0027$REFERENCES\u0027\" EXIT"}],"source_content_type":"text/x-sh","patch_set":10,"id":"1a95cdbc_e8bfecf8","line":34,"updated":"2016-10-06 16:47:06.000000000","message":"This needs to be discussed, but it helps us test release note translations in various languages.","commit_id":"7f0f2f2870c7ecf6159ff2283e66f7d75a343709"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c54681a547a9720ed6386c5eb20a9f757326dad3","unresolved":false,"context_lines":[{"line_number":31,"context_line":"# define \u0027locale_dirs\u0027 setting which is required for i18n."},{"line_number":32,"context_line":"if ! grep -q -E \u0027^locale_dirs *\u003d\u0027 $DIRECTORY/source/conf.py; then"},{"line_number":33,"context_line":"    echo \"locale_dirs \u003d [\u0027locale/\u0027]\" \u003e\u003e $DIRECTORY/source/conf.py"},{"line_number":34,"context_line":"fi"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"REFERENCES\u003d`mktemp`"},{"line_number":37,"context_line":"trap \"rm -f -- \u0027$REFERENCES\u0027\" EXIT"}],"source_content_type":"text/x-sh","patch_set":10,"id":"1a95cdbc_a68a75bd","line":34,"in_reply_to":"1a95cdbc_e6f39d9c","updated":"2016-10-06 17:36:16.000000000","message":"Totally agree. I consider this as one of debug code.\nIn general we should not touch project repository.","commit_id":"7f0f2f2870c7ecf6159ff2283e66f7d75a343709"},{"author":{"_account_id":6547,"name":"Andreas Jaeger","email":"jaegerandi@gmail.com","username":"jaegerandi"},"change_message_id":"c2c2553022405cb3ff23ded77808340a1becc0c0","unresolved":false,"context_lines":[{"line_number":31,"context_line":"# define \u0027locale_dirs\u0027 setting which is required for i18n."},{"line_number":32,"context_line":"if ! grep -q -E \u0027^locale_dirs *\u003d\u0027 $DIRECTORY/source/conf.py; then"},{"line_number":33,"context_line":"    echo \"locale_dirs \u003d [\u0027locale/\u0027]\" \u003e\u003e $DIRECTORY/source/conf.py"},{"line_number":34,"context_line":"fi"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"REFERENCES\u003d`mktemp`"},{"line_number":37,"context_line":"trap \"rm -f -- \u0027$REFERENCES\u0027\" EXIT"}],"source_content_type":"text/x-sh","patch_set":10,"id":"1a95cdbc_e6f39d9c","line":34,"in_reply_to":"1a95cdbc_e8bfecf8","updated":"2016-10-06 17:31:33.000000000","message":"I would rather fix the repositories, we should be able to get these changes in very quickly.\n\nWe could do it as temporary measure but I want this removed soon.","commit_id":"7f0f2f2870c7ecf6159ff2283e66f7d75a343709"}]}
