Problem/Motivation

Following up on the work done in issue #3539960: Handle catalan and languages with language code mismatch, it is necessary to include the mapping for Portuguese (Portugal) (pt-pt) and Portuguese (Brazil) (pt-br).

Currently, only the generic pt language is supported, which causes the regional variants not to correctly use the Flatpickr date/time translations and formatting.

Steps to reproduce

None.

Proposed resolution

In the file src/Constants/AvailableLanguages.php, add the mapping for pt_pt and pt_br:

public const LANGUAGE_MAPPING = [
  'ca' => 'cat',
  'pt_pt' => 'pt',
  'pt_br' => 'pt',
];

This will ensure that both Portuguese variants correctly use the Flatpickr localization settings for Portuguese.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

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

lolgm created an issue. See original summary.

lolgm changed the visibility of the branch 3.0.x to hidden.

lolgm’s picture

Status: Active » Needs review

The MR !21 implements the solution proposed in the issue.

  • nagy.balint committed cb9e74cd on 3.0.x authored by lolgm
    feat: #3552868 Add language mapping for Portuguese (Portugal) (pt-pt)...
nagy.balint’s picture

Status: Needs review » Fixed

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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