Extend extract_gettext_all on upstream

Backgroud

The file extract_gettext_all.js is copied to JH and tweaked in #913 (closed).

Proposal

  • Extend the main function in upstream