Problem/Motivation

If we have a language code with capital letter (example: fr-CH) the translation for Civic Cookie will not be loaded.

Steps to reproduce

1. Install site
2. Install and configure module
3. Add a language with capital letter
4. translate it in Civic Cookie module (add the language, same as you added in multilingual config)
5. Translation is not loaded.

Proposed resolution

Alter the `getCccConfigJson` method in `CCC9Config` class to return lower case.

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

igoragatti created an issue. See original summary.

igoragatti’s picture

Issue summary: View changes

igoragatti’s picture

Status: Active » Needs review
c.moisiadis’s picture

Assigned: igoragatti » c.moisiadis

  • 5f811dfa committed on 4.6.1
    #3562279: Fix translation when ISO code has uppercase
    

  • 67eb5ce0 committed on 4.5.6
    #3562279: Fix translation when ISO code has uppercase
    

  • 5f811dfa committed on 4.6.x
    #3562279: Fix translation when ISO code has uppercase
    

  • c.moisiadis committed fed683d6 on 4.5.6
    #3562279: Fix translation when ISO code has uppercase
    

  • c.moisiadis committed fed683d6 on 4.5.x
    #3562279: Fix translation when ISO code has uppercase
    

tper’s picture

Status: Needs review » Fixed

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.