The string "You have successfully validated your e-mail address." (logintoboggan.module line 299) can not be found when searching via the translation interface, whereas "Add a role to the selected users" (logintoboggan.module line 283) can.

Would the problem be solved by changing line 299 to this?

$email_validated = t('You have successfully validated your e-mail address.');
drupal_set_message($email_validated);

logintoboggan.module line 299:

        drupal_set_message(t('You have successfully validated your e-mail address.'));

Comments

hunmonk’s picture

Status: Active » Postponed (maintainer needs more info)

i don't think so. anything wrapped in a t() should be ok. is the problem that the string is not in the .pot file?

ressa’s picture

logintoboggan.pot contains the string, so I don't think that's the problem:

#: logintoboggan.module:290;943
msgid "You have successfully validated your e-mail address."
msgstr ""

When I search for "Add a role to the selected users", it is actually part of the "Built-in interface" Text group, so I guess it isn't even the string from logintoboggan.pot ... It looks like the logintoboggan.pot isn't being used?

hunmonk’s picture

no clue. translations are not my area. i provide the .pot file, and that's about all i do ;)

you may want to check with somebody else who knows more and report back here with more information -- as far as i know it's done correctly in the module.

ressa’s picture

Yeah, it looks right... could it be because it drupal_set_message is used, not return? Anyway, I will try to dig some more, like you say, it should work!

steveparks’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

.pot files are no longer bundled with contrib modules. This, combined with lack of activity in this issue, means I'm closing it for now. Feel free to reopen if there's more to be said.

ressa’s picture

Title: Cannot translate e-mail validated string » [Solved] Cannot translate e-mail validated string
Status: Closed (cannot reproduce) » Closed (works as designed)

I had the problem again in another module (Node Reference URL Widget) and quicksketch had the answer to the riddle:

That's because you have to see that string in another language before the Locale module will pick it up and add it to the string-searching interface, that's just the way that the module works.

http://drupal.org/node/1208942