Hyphen terminating token confuses translator.

Created on 17 January 2017, about 8 years ago
Updated 16 July 2023, over 1 year ago

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.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

User interface

Created by

πŸ‡³πŸ‡΄Norway gisle Norway

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

Comments & Activities

Not all content is available!

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

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update over 1 year ago
    5 pass, 1 fail
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.5 & MySQL 5.5
    last update over 1 year ago
    5 pass, 1 fail
  • Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 7.4 & MySQL 8
    last update over 1 year ago
    Waiting for branch to pass
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 8.1 & MySQL 8
    last update over 1 year ago
    2 pass, 1 fail
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΈπŸ‡°Slovakia poker10

    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!

Production build 0.71.5 2024