The default value of a "Text (plain)" field cannot be translated even if field is translatable.
All other core text field types have default value translatable.

Example for "Text (plain, long)":

Example for "Text (plain)":

CommentFileSizeAuthor
#3 2712835-2.patch461 bytesleksat
#2 2712835-2.patch461 bytesleksat
plain.png64.53 KBleksat
plain-long.png73.41 KBleksat

Comments

Leksat created an issue. See original summary.

leksat’s picture

Status: Active » Needs review
StatusFileSize
new461 bytes
leksat’s picture

StatusFileSize
new461 bytes
leksat’s picture

Issue summary: View changes

Green light!

dan2k3k4’s picture

Status: Needs review » Reviewed & tested by the community

Tested with simplytest and Drupal Core 8.3 rc1

Confirming that the patch works and fixes the problem.

One-line config change to schema so not much to code-review.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed c42dd18 to 8.4.x and 0a86ef4 to 8.3.x. Thanks!

I debated about whether we should ask for a test of this but we don't test coverage of translating all the other configurable things so I'm not sure we should add one here. The system that allows value marked as a label to be translated is well tested.

  • alexpott committed c42dd18 on 8.4.x
    Issue #2712835 by Leksat: Plain text field default value is not...

  • alexpott committed 0a86ef4 on 8.3.x
    Issue #2712835 by Leksat: Plain text field default value is not...
alexpott’s picture

I backported this fix to 8.3.x since it is a non bc breaking change and is a bug fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.