WordPress.org

Making WordPress.org

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#3552 closed defect (fixed)

WP15 Theme: Event date not formatted as translated

Reported by: ChantalC Owned by: iandunn
Milestone: Priority: normal
Component: General Keywords:
Cc:

Description

If I switch language to Dutch, the date as shown for each event is shown in the default format. Apparently nothing is done with the translation:

https://translate.wordpress.org/projects/meta/wp15/nl/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=5857919&filters%5Btranslation_id%5D=54647449

Change History (5)

#1 @iandunn
16 months ago

  • Owner set to iandunn
  • Resolution set to fixed
  • Status changed from new to closed

In 7036:

WP15: Add text domain to date format to localize string.

This isn't using date_i18n() -- because it has to convert the date/time with respect to the _event's_ local timezone, not the site's -- so the wp15 domain has to be explicitly provided.

Fixes #3552.

#2 @iandunn
16 months ago

Thanks!

#3 @ChantalC
16 months ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

@iandunn better now, but the month is shown in English. For example in Dutch it shows as "May" where "mei" should be correct.

Last edited 16 months ago by ChantalC (previous) (diff)

#4 @iandunn
16 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 7052:

WP15: Pass dates through date_i18n() to localize month names.

Fixes #3552.

#5 @iandunn
16 months ago

Good catch. I installed the language packs for all locales, deployed r7052, and cleared the static page cache.

Note: See TracTickets for help on using tickets.