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.
By Jane_dev on
I'm using the monthly archive view which comes bundled with the Views module, but I'm developing a website in a different language and I'm unable to translate month names. I tried string overrides, and I also tried to play around with locale settings, but nothing seems to be working. Does anyone know how to do this fairly easily?
Thanks,
Jane
Comments
Had the problem also, the solution...
Search within translate interface for the keyword: !long-month-name
You will get the translations of all the month names, and you can edit it into the language you have active.
note: You need to add the !long-month-name before every month name translation.
I hope this is the answer you were looking for...
Month names are not added
Month names are not added automatically.
As explained here: https://localize.drupal.org/node/2109
Add translation strings for month names by a simple module (create it yourself!) to call t() with the month name and context. Translate to the required languages afterwards.
Hi.
Hi.
The above didn't work for me. I solved it by using locale() instead of t() :
LINKS:
https://api.drupal.org/api/drupal/modules%21locale%21locale.module/funct...