Custom error message is cannot be localized (except the default message).

Comments

Zekvyrin created an issue. See original summary.

zekvyrin’s picture

Status: Active » Needs review
StatusFileSize
new1.25 KB

I implemented hook_variable_info to allow variable localization, instead of just adding a t() function.

Also, I made the error message textfield a little bigger.

sammuell’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Great, +works as expected.

Great, works as expected.

sammuell’s picture

Issue tags: -Great, -works as expected.

-- argh, wrong text field ;-)

pcambra’s picture

Status: Reviewed & tested by the community » Needs work

hook_variable_info comes from the variable module, doesn't it?

This looks good but I think we'd need to add a dependency to it.

klausi’s picture

Status: Needs work » Reviewed & tested by the community

I think the integration with variable module is optional, so the hook does not hurt in any case.

  • pcambra committed e0d19fb on 7.x-1.x authored by Zekvyrin
    Issue #2627408 by Zekvyrin, sammuell, pcambra, klausi: Custom Error...
pcambra’s picture

Status: Reviewed & tested by the community » Fixed

Makes sense, thanks all :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.