Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Downloads
Download potx-6.x-2.2.tar.gztar.gz
34.53 KB
MD5: 12febd7dd7caea433573a6f74b182efd
SHA-1: 02ea89ee288d97e70d8fff4bd3acf5242c1ede2a
SHA-256: 691609ed43d56db0ef172fc2b6ff91a877dc3fce3918590bfa1dc7aa9d970df0
Download potx-6.x-2.2.zipzip
45.54 KB
MD5: 06ffb1543cd525631028c23fe507bec2
SHA-1: 931a75d5f2df77c16f213c3e8854d5a6d6328b80
SHA-256: 387875f50229d53584f4f71837310940f7d61dbf095442d4b28480bc416b142b
Release notes
This release includes way better coder module integration and Drupal 7 parsing support. Detailed changes since 6.x-2.1:
- Preliminary support for parsing Drupal 7.x source files. There is already a hook_perm() change in Drupal 7 which does not have handler code yet, but things which work the same way in Drupal 6 should work still.
- #309875 by douggreen and myself: Update and improve coder integration
- add the POTX_STATUS_STRUCTURED reporting mode - rework potx_status() to accept and separately, instead of integrating them into the messages in different random forms - automatically append file and line info in all but the structured reporting mode - slightly better messages where 'Invalid marker content' was before - updated to the latest coder API, using _coder_error() instead of theme('coder_warning', ...)
- #213868 by Dave Cohen, Freso and myself: check our required token PHP extension, so people know that the module has an external dependency to make it work.
- #306384 by Takafumi: incorrect arguments were passed to potx_get_header(), resulting in SQL errors
- #312523 by stella any myself: better error messages for potx errors / coder reviews.
This expands on the existing structured reporting mode to separate the code excerpt, which we don't need in coder reviews.
Also unifies how the excerpt appears; now with the file name and line in one sentence for easy error location spotting if potx is used outside of coder. - #313789 noticed by stella, fix by myself: fix code review errors in potx module
- #309875 follow up by myself: coder counts lines from 0 not 1
- #306402 by myself: fix support for the new hook_perm() parsing with Drupal 7 code by skipping that Drupal 5/6 parser section. Drupal 7 now has native t() in hook_perm() so no reason to do magic.
- Remove bogus source strings from translation template
- More and improved test strings in potx-cli.php