Problem/Motivation

Portuguese langcode in drupal is "pt-pt". However in IntlDate's langcode=>locale mappings the langcode is "pt". Therefore in Portuguese language the dates come out in English.

Steps to reproduce

Enable Portuguese language.
Create a node in English with date output using intl_date.
Create a Portuguese translation
Open the translation

Expected output:
Portuguese date

Actual result:
English date

Proposed resolution

Change "pt" in the mapping to "pt-pt"

Issue fork intl_date-3333389

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Baysaa created an issue. See original summary.

baysaa’s picture

Status: Active » Needs review
baysaa’s picture

Issue summary: View changes

aron novak’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.