Needs review
Project:
User Creator
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2010 at 17:24 UTC
Updated:
3 Jun 2010 at 18:01 UTC
error message during translation:
The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t('Users with the role '.$role.', will have the ability to create users with these roles.') in user_creator.module in line 89. Read more at http://drupal.org/node/322732
With this error the necessary strings are not extracted for translation.
Replace
t('Users with the role <em>'. $role .'</em>, will have the ability to create users with these roles.')
by
t('Users with the role <em>@role</em>, will have the ability to create users with these roles.', array('@role' => $role))
Additional hints in order to ease translation:
Comments
Comment #1
elliotttt commentedthank you for the tip, I've committed the bugfix to the dev branch and will use the above method moving forward.