The action on the confirmation page is not translated.

Side note: This is not usually how a confirmation page is implementet in Drupal, please see other modules.

Comments

andy inman’s picture

Thanks for the report. Guess I just slipped up missing out t() ... and re. method, longer term plan was to use a javascript confirmation to speed up the process. I need to get round to that.

acolade’s picture

Yes, just change line 341 in groupadmin.module to this:

$tvars = array('!action' => "<strong>".t($action)."</strong>", '%name' => $uname, '%group' => $title);
Thomas_Zahreddin’s picture

Issue tags: +coder, +potx

t($action) will not work.

t() looks up strings in a table. This means the string has to be 'static' like
$msg = 'Please confirm you want to !action %name in %group';

should be: $msg = t('Please confirm you want to !action %name in %group', array (!action => 'something', name => 'a name' …);

and we (normaly) do not ask users to do a favor to the webmaster, the user uses the site and has not to be pleased to do somthing
means the string should sound like: 'Confirme: !action %name in %group'

and please note: http://drupal.org/node/1367210
is the reason, some files are not processed by potx at all.

Module coder is good in checking such problems :-)
- you are free to use it.