Skip to main content

Search and Top Navigation

#8515 closed bug (fixed)

Opened August 22, 2012 10:33AM UTC

Closed August 24, 2012 01:25AM UTC

Datepicker: Translation displays HTML entities when setting some formats

Reported by: idavemm Owned by: k_borchers
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:
Description

When using a format where a week day is displayed, if the day has accents they will be shown with HTML entities.

Steps to reproduce it:

  • Load datepicker js and set the Spanish i18n translation.
  • Initialize a form date field setting this format:

$( ".selector" ).datepicker({ dateFormat: "DD, d MM, yy" });

Now when you click on the field, the datepicker appears. Select Wednesday, so it should show:

Miércoles, 22 Agosto, 2012

But instead it shows this:

Miércoles, 22 Agosto, 2012

In order to fix that, the i18n file should replace all those HTML entities with the accented letter.

Attachments (0)
Change History (3)

Changed August 22, 2012 12:07PM UTC by scottgonzalez comment:1

status: newopen
summary: Spanish translation displays HTML entities when setting some formatsDatepicker: Translation displays HTML entities when setting some formats

This applies to es, fi, gl, is, it, pt-BR, pt, and sl.

Changed August 22, 2012 04:23PM UTC by k_borchers comment:2

owner: → k_borchers
status: openassigned

Changed August 24, 2012 01:25AM UTC by Kris Borchers comment:3

resolution: → fixed
status: assignedclosed

Datepicker: Replace HTML entities with characters in es, fi, gl, is, it, pt-BR, pt and sl i18n files. Fixes #8515 - Datepicker: Translation displays HTML entities when setting some formats

Changeset: d372882af113ec14531d31991b0e9265c9cbcc2b