I have a multilingual site and am trying to translate a custom-configured Count down message (configured in the form display for the field). I can add translations for each language in the User Interface Translation section but when I view the form field in each language, all other components have been translated except for the Count down message.

Drupal 8.2.1
Acquia hosting

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

goodwillhinton created an issue. See original summary.

paulmckibben’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1002 bytes

The problem occurs with a custom-configured countdown message, configured in the form display settings for the field. The attached patch makes it possible to use interface translation to translate a custom configured message. Alternatively, configuration translation will also work (without a patch), but interface translation is easier.

dawehner’s picture

Status: Needs review » Needs work

This is not the right approach, we should leverage config translation for those things.

mr.baileys’s picture

Status: Needs work » Needs review
FileSize
673 bytes

Patch attached allows for the labels to be translated through configuration translation. Note that there currently is not yet an interface to translate widget configuration, so you will either need to apply the patch in #2546212: Entity view/form mode formatter/widget settings have no translation UI, or manually create and import the configuration files containing the translations.

  • dawehner committed 5fc0482 on 8.x-1.x authored by mr.baileys
    Issue #2823995 by paulmckibben, mr.baileys, dawehner: Can't translate...
dawehner’s picture

Status: Needs review » Fixed

This looks perfect! Thanks a ton

Status: Fixed » Closed (fixed)

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

Sharique’s picture

This fix is some how got reverted, it is not appearing in beta2.

johnchque’s picture

@Sharique bug fixes are only committed in dev versions. The fix is present in the dev branch only.

Sharique’s picture

Yeah, it is committed a year back, so it should appear in recent release.

amneh.shawish’s picture

This patch is not working with me, but I used this one from this issue and it works fine.
https://www.drupal.org/project/maxlength/issues/2955352