The string "Enter @length-character code sent to your device." has a token @length followed by a hyphen ("-"). However a token name may contain a hyphen so Drupal thinks the token is @length-character. This means that when you translate this, it becomes wrong.

If you replace the hyphen with the HTML-number for a hyphen (-), translation works.

Comments

gisle created an issue. See original summary.

gisle’s picture

The attached patch fixes this problem. Please review.

poker10’s picture

Status: Needs review » Postponed (maintainer needs more info)

Thanks for working on this.

I have tested it and it seems like that it is no longer an issue. I was able to translate it in its original form (Enter @length-character code sent to your device.) and the translation was displayed correctly (only the @length token was replaced in the translation). This could be probably caused by some change in core, or something else. Can you please check, if it is working also for you? Thanks!