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.
| Comment | File | Size | Author |
|---|---|---|---|
| userplus.module.pot-extraction.patch | 788 bytes | Freso |
Comments
Comment #1
Freso commentedFixed: http://drupal.org/cvs?commit=33997
Comment #2
(not verified) commented