"Authored on" string on multilanguage sites not translating; always renders English "ago" for "time ago" format

Created on 22 December 2015, about 9 years ago
Updated 15 January 2025, 16 days ago

I came across a small glitch when using views on a multilanguage site. When using the "Authored On" field in a view, views will not use a translated version of the whole string but only of the time itself. For example:

  • Last updated: 2 hours 34 minutes ago
  • Letztes update: 2 Stunden 34 Minuten ago

As for the second line (which is in German), the "ago" should switch to a place in front of the string and be translated to "vor".

I checked the string translations but could not find the correct one; I'd be more than happy to fix this if someone could just point me to the right location. I also found other Drupal 8 sites while doing my research about this which are suffering from the same problem.

Proposed fix:
* Change the config from a string to a label
* Other issues like #3063020: Support translation of the list of styles in CKEditor β†’ have done this without an upgrade path, so follow that pattern

πŸ› Bug report
Status

Fixed

Version

9.3

Component

views.module

Created by

πŸ‡¨πŸ‡­Switzerland Pierrere

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024