Hello,

I'm not sure if this is not possible now or if I'm doing it wrong. I'm trying to change the display of the 'days of the week' in the English language.

In my layout we use the calendar view to get a month overview. In the main language I was able to translate strings like "Mon" in "Ma" (example in Dutch), so the width of the resuling table fits in my design.

I want to do the same with the strings for the English language (from 3 characters to 2), so from 'Mon' to 'Mo' but when I do a sting search I can only translate the extra languages but not English.

How to do/fix this?

Comments

frank ralf’s picture

Just some hints:

1) The name of the month is probably derived using the PHP function strftime() - http://de3.php.net/manual/en/function.strftime.php - with the format string %b always returning a three letter abbreviation.

2) You could use another PHP function, substr() - http://de3.php.net/manual/en/function.substr.php - to strip of the third character like so: substr("Mon", 0, 2) -> Mo

hth
Frank

benced’s picture

If you are using the core translation module for the interface (can't remember what's it called) then you could create a new "language" for the English template and then translate that one.

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.