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.
Please make it possible to use translatable tokens for the small description before time tokens, or make it possible to write t parantheses in the settings field per content type like:
t('Submitted on'): [dd]/[mm]/[yyyy]
Comments
Comment #1
yngens CreditAttribution: yngens commented[ddd] also does not respect localization. lot's of non-enlgish drupal sites over there. the modules will only gain if it respects translations.
Comment #2
eaton CreditAttribution: eaton commentedThe tokens themselves need to support localization for this to happen, and that isn't yet supported in Token module.
Comment #3
flevour CreditAttribution: flevour commentedI'd like to start tackling the problem as I need this for a client. My direct need would be to have actions provided by token_actions stored with a locales-aware format.
I'm thinking of an array keyed by locales code.
At the moment I don't care about locales-aware token replacement, only about token_actions settings.
Eaton:
Should I open another task issue for this?
Have you got any suggestion/guidelines/ideas in mind to share about this?
Comment #4
flevour CreditAttribution: flevour commentedI'm wondering if the duty of storing actions data in an array keyed by language should be moved up one level. This would mean patching core instead of token module. What are your thoughts about this? Do serialized arrays keyed by language exist anywhere in core?
Comment #5
Dave ReidMarking this as a duplicate of #433486: Use format_date() for translatable date tokens