)]}'
{"tools/generatepot.sh":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f7416785ed4803b2605c7b505ea2921a8bed6b75","unresolved":false,"context_lines":[{"line_number":28,"context_line":"rm -f ${DIRECTORY}/source/locale/$DOCNAME.pot"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# build i18n contributor guide page index.html"},{"line_number":31,"context_line":"for i in ${DIRECTORY}/source/atc-stats/data/*; do echo -n \u003e $i ; done"},{"line_number":32,"context_line":"sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source \\"},{"line_number":33,"context_line":"    ${DIRECTORY}/source/locale/"},{"line_number":34,"context_line":"git checkout -- ${DIRECTORY}/source/atc-stats/data/*"}],"source_content_type":"text/x-sh","patch_set":2,"id":"9f436f4f_dddeb33c","line":31,"range":{"start_line":31,"start_character":50,"end_line":31,"end_character":62},"updated":"2017-08-15 12:58:12.000000000","message":"Another way to do this is:\n\n  cp -f /dev/null $i","commit_id":"8a42e4fa2bb50ef1481282b3f99950ecfa86fdc1"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f7416785ed4803b2605c7b505ea2921a8bed6b75","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# build i18n contributor guide page index.html"},{"line_number":31,"context_line":"for i in ${DIRECTORY}/source/atc-stats/data/*; do echo -n \u003e $i ; done"},{"line_number":32,"context_line":"sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source \\"},{"line_number":33,"context_line":"    ${DIRECTORY}/source/locale/"},{"line_number":34,"context_line":"git checkout -- ${DIRECTORY}/source/atc-stats/data/*"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-sh","patch_set":2,"id":"9f436f4f_c0b12c49","line":32,"range":{"start_line":32,"start_character":33,"end_line":32,"end_character":40},"updated":"2017-08-15 12:58:12.000000000","message":"I noticed \u0027-b html\u0027 is unnecessary in generating pot.","commit_id":"8a42e4fa2bb50ef1481282b3f99950ecfa86fdc1"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1a1de53e1ee68c87dc86cff36953a70052bbdc0a","unresolved":false,"context_lines":[{"line_number":31,"context_line":"for i in ${DIRECTORY}/source/atc-stats/data/*; do echo -n \u003e $i ; done"},{"line_number":32,"context_line":"sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source \\"},{"line_number":33,"context_line":"    ${DIRECTORY}/source/locale/"},{"line_number":34,"context_line":"git checkout -- ${DIRECTORY}/source/atc-stats/data/*"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"# Take care of deleting all temporary files so that"},{"line_number":37,"context_line":"# \"git add ${DIRECTORY}/source/locale\" will only add the"}],"source_content_type":"text/x-sh","patch_set":2,"id":"9f436f4f_b758b087","line":34,"updated":"2017-08-15 11:24:03.000000000","message":"Another approach I tried is to use msggrep -N option (source code location) after generating POT files. It works but I haven\u0027t post it yet as I am exploring more general approach.\nThis is one idea.\n\nhttps://www.gnu.org/software/gettext/manual/html_node/msggrep-Invocation.html","commit_id":"8a42e4fa2bb50ef1481282b3f99950ecfa86fdc1"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f7416785ed4803b2605c7b505ea2921a8bed6b75","unresolved":false,"context_lines":[{"line_number":31,"context_line":"for i in ${DIRECTORY}/source/atc-stats/data/*; do echo -n \u003e $i ; done"},{"line_number":32,"context_line":"sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source \\"},{"line_number":33,"context_line":"    ${DIRECTORY}/source/locale/"},{"line_number":34,"context_line":"git checkout -- ${DIRECTORY}/source/atc-stats/data/*"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"# Take care of deleting all temporary files so that"},{"line_number":37,"context_line":"# \"git add ${DIRECTORY}/source/locale\" will only add the"}],"source_content_type":"text/x-sh","patch_set":2,"id":"9f436f4f_409e5cb9","line":34,"in_reply_to":"9f436f4f_b758b087","updated":"2017-08-15 12:58:12.000000000","message":"FYI: what I did is to add the following after sphinx-build -b gettext\n\n # Exclude atc-stats/data/*.csv from POT file\n TMPFILE\u003d`mktemp --dry-run`\n msggrep -v -N ../atc-stats/data/*.csv \\\n     ${DIRECTORY}/source/locale/atc-stats.pot \u003e $TMPFILE\n mv -f $TMPFILE ${DIRECTORY}/source/locale/atc-stats.pot\n\nI am not sure which you prefer to.","commit_id":"8a42e4fa2bb50ef1481282b3f99950ecfa86fdc1"}]}
