First off, for the DRUPAL-6--1 branch and HEAD, the po/ directory should be translations/.
Second off, as was mentioned in connection to the German translations, there were some errors. Here are the ones I'm seeing:
freso@nayru /s/h/l/h/d/s/a/m/mollom> php ../potx/potx-cli.php
Processing mollom.module...
Invalid marker content in mollom.module:1009
* t("$message: the Mollom services are operating correctly. We are now blocking spam.")Invalid marker content in mollom.module:1012
* t("$message: your keys do not exist or are no longer valid. Please visit the user settings page on the Mollom website again: http://mollom.com/user.")Invalid marker content in mollom.module:781
* watchdog('mollom',t('Ham: %message',array('%message'=>$data['post_body'])))Invalid marker content in mollom.module:785
* watchdog('mollom',t('Spam: %message',array('%message'=>$data['post_body'])))Invalid marker content in mollom.module:789
* watchdog('mollom',t('Unsure: %message',array('%message'=>$data['post_body'])))Processing mollom.install...
Processing mollom.info...
Processing mollom.js...Done.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | mollom-i18n.d5.patch | 1.66 KB | Freso |
| #2 | mollom-i18n.d6.patch | 2.97 KB | Freso |
| #1 | mollom-i18n.d6.patch | 2.59 KB | Freso |
Comments
Comment #1
Freso commentedHere's a patch fixing the
t()errors.Three of the errors were from bad
watchdog()calls.watchdog()shouldn't uset()in the 6.x+ API!The other two had a variable in them. I circumvented this by enclosing the variable (
$message = 'We contacted the Mollom servers to verify your keys';) in at(), and then having the two strings calling it use@messagewith a mapping'@message' => $message. I'm not sure this is the best way to do it, so please let me know if you'd prefer to handle it some other way. (Like removing the$messagealtogether and copy it directly into the strings.) (Oh, and I'm also not sure what happens when a@variableis called twice, as@mollom-useris in one of the edited strings.)Comment #2
Freso commentedAnd this patch includes a correction for the typo found by the Swedish translator seals in #244736: Swedish translation.
Comment #3
dries commentedFreso, you're obviously right. I did a sloppy job porting the module. Committed to DRUPAL-6. Thanks.
Comment #4
dries commentedComment #5
Freso commentedThe
$messageto@messageshould probably be back ported to the 5.x branch. So this I did.Comment #6
dries commentedCommitted to DRUPAL-5. Thanks.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.