Can i use field validation with field translation(part of i18n) somehow?

Label is not translated

I am using field validation for "When" field, which is a date field and when i hit the "Add another item" button i get the original field name what is "Mikor". "Mikor" field is in hungarian and i made the english translation for this that is "When".

Here is my field validation settings for "When" field: When field validation settings
So [field-name] should be replaced to the correspondig language using field tranlation. On english page it should be "When field is required.". THX

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

g089h515r806’s picture

Could you translate it at admin/config/regional/translate/translate?
All custom error message have been passed to t() function.

mibfire’s picture

Error messages can be translated yes, but the problem is the token that is the field label what should be ran through the field translation module.

mibfire’s picture

Issue summary: View changes

link fix

NicA109’s picture

Issue summary: View changes
FileSize
909 bytes
rodrigoaguilera’s picture

Version: 7.x-2.3 » 7.x-2.x-dev
Status: Active » Needs review
FileSize
687 bytes

In order to use i18n you have to call its API. Otherwise you will get the built-in interface translations instead of the translation you configured for the given field.

Patch attached.