diff --git a/plugins/item/expire.inc b/plugins/item/expire.inc
index 512c6f0..7c4e5e1 100644
--- a/plugins/item/expire.inc
+++ b/plugins/item/expire.inc
@@ -57,7 +57,7 @@ function password_policy_expire_admin_form($form, &$form_state, $constraint) {
'#type' => 'textfield',
'#title' => 'Warning message',
'#default_value' => $constraint->config['expire_warning_message'],
- '#description' => t('A message to show to users on screen when requiring them to change password. If left empty, no message will be shown.'),
+ '#description' => t('A message to show to users on screen when requiring them to change password. This message is translatable. If left empty, no message will be shown.'),
);
$enabled_container['expire_warning_email_sent'] = array(
'#type' => 'textfield',
@@ -282,7 +282,7 @@ class PasswordPolicyExpire extends PasswordPolicyItem {
*/
public function setExpiredWarningMessage() {
if (!empty($this->config['expire_warning_message'])) {
- drupal_set_message($this->config['expire_warning_message'], 'warning');
+ drupal_set_message(t($this->config['expire_warning_message']), 'warning');
}
}