When using this module to create a name field on a content-type the field descriptions (which display the title/label text) are not translated nor can they be overridden with string overrides. This can be seen by:

  1. add a name field to a content-type as an example "basic_page";
  2. go to the node add form for that content-type in a language other than English (ex. fr/node/add/basic_page);
  3. open a new tab and go to translations and translate the string "Given" to "Prénom";
  4. refresh fr/node/add/basic_page tab and see the word "Given" in the field description has not been translated.

From the code it looks like the #title of the elements gets passed through t, but not before the element #title is written to the #description. Patch to follow.

Comments

joel_osc created an issue. See original summary.

joel_osc’s picture

Status: Active » Needs review
StatusFileSize
new424 bytes

Admittedly not a great patch, but it seems to work.

  • Alan D. committed 410c0d2 on 7.x-1.x authored by joel_osc
    Issue #3069706 by joel_osc: Element title as description not translated
    
alan d.’s picture

Status: Needs review » Fixed

Year, seems wrong, idk why #title wouldn't already be translated by then. Pushed through anyways.

Status: Fixed » Closed (fixed)

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