Do error messages need to be translated?

Created on 22 September 2015, over 9 years ago
Updated 13 September 2024, 3 months ago

This module has two examples of how to implement hook_fapi_validation_rules. On the project page, the error_msg for each rule is not translated. In the module, the error_msg for each rule is translated with t(). One of these should be changed so that they are consistent.

It looks to me like the error_msg is already translated in fapi_validation_filters_execute, so there's no need for extending modules to translate the strings themselves. In that case, the t() calls should be removed from fapi_validation_fapi_validation_rules.

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dane powell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024