freso@nayru ~/s/d/c/m/userplus> php ../../translations/drupal-pot/extractor.php
Invalid marker content in userplus.module:202
* t("Created new user account {$u['name']}.")

freso@nayru ~/s/d/c/m/userplus> ls
CVS/  README.txt  userplus-module.pot  userplus.css  userplus.module
freso@nayru ~/s/d/c/m/userplus> grep -i created userplus-module.pot
freso@nayru ~/s/d/c/m/userplus> grep -i create userplus-module.pot
msgid "Create accounts"
freso@nayru ~/s/d/c/m/userplus>

It seems to correctly create the .pot, it just doesn't add the string warned about.
With the attached patch, the above chain of commands returns this:

freso@nayru ~/s/d/c/m/userplus> php ../../translations/drupal-pot/extractor.php
freso@nayru ~/s/d/c/m/userplus> ls
CVS/  README.txt  userplus-module.pot  userplus.css  userplus.module  userplus.module.pot-extraction.patch*
freso@nayru ~/s/d/c/m/userplus> grep -i created userplus-module.pot
msgid "Created new user account %name."
freso@nayru ~/s/d/c/m/userplus> grep -i create userplus-module.pot
msgid "Create accounts"
msgid "Created new user account %name."
freso@nayru ~/s/d/c/m/userplus>

The patch is not tested on an actual site just yet.

CommentFileSizeAuthor
userplus.module.pot-extraction.patch788 bytesFreso

Comments

Freso’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)