When you save a string in the database and this show to the user never pass by t() function.

Example:

// LOGIN_SECURITY_HOST_SOFT_BANNED = t("This host is not allowed to log in to @site. Please contact your site administrator.")
// variable_get('login_security_host_soft_banned') = "This host is not allowed to log in to @site. Please contact your site administrator."

In login_security.module line 159:

form_set_error('submit', login_security_t(variable_get('login_security_host_soft_banned', LOGIN_SECURITY_HOST_SOFT_BANNED), $variables));

If is not save in the database then get translated but not otherwise.

I propose remove t() function from constant and translate the final string.

CommentFileSizeAuthor
translate-strings.patch9.15 KBrpayanm

Comments

rpayanm created an issue. See original summary.

rpayanm’s picture

Issue summary: View changes