Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | 2823995-translate-maxlength-labels.patch | 673 bytes | mr.baileys |
| |||
#2 | 2823995-translate-custom-countdown.patch | 1002 bytes | paulmckibben |
Comments
Comment #2
paulmckibbenThe 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.
Comment #3
dawehnerThis is not the right approach, we should leverage config translation for those things.
Comment #4
mr.baileysPatch 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.
Comment #6
dawehnerThis looks perfect! Thanks a ton
Comment #8
Sharique CreditAttribution: Sharique as a volunteer commentedThis fix is some how got reverted, it is not appearing in beta2.
Comment #9
johnchque@Sharique bug fixes are only committed in dev versions. The fix is present in the dev branch only.
Comment #10
Sharique CreditAttribution: Sharique as a volunteer commentedYeah, it is committed a year back, so it should appear in recent release.
Comment #11
amneh.shawish CreditAttribution: amneh.shawish at iHorizons commentedThis 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