Problem/Motivation

You can't translate the 'Count down message' string with interface translation.

Steps to reproduce

Enable the maxlength on a text field. Export the config.
The string "Content limited to @limit characters, remaining: @remaining" gets saved into the config file of the text field. Now its only translatable with config translation.

Proposed resolution

Move the string to attributes placeholder, this way the default string can be translated with interface translation and only need config translation if you change it to an individual string.

Remaining tasks

  • ❌ Get maintainer approval for the proposed resolution
  • ❌ Implement resolution
  • ❌ Write test coverage (contact a maintainer if you need help)
  • ❌ Maintainer review via the UI
  • ❌ Maintainer Code Review #1
  • ❌ Maintainer code review #2
  • ❌ Merge into dev branch, with credit to author and participants

User interface changes

API changes

Data model changes

Issue fork maxlength-3580191

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gashunk created an issue. See original summary.

gashunk’s picture

Status: Active » Needs review

Moved the count down message to the placeholder attribute. Now its no longer written to the config by default and can be translated with interface translation. If you change the string, you need to config translate it.