Problem/Motivation

Would like to remove the langcode settings to fr.

Steps to reproduce

With fr defined we needed to added a language setting for french under:
/admin/config/regional/language
Getting exception when modules, like Webform, make calls to:
getNativeLanguages() in web/core/modules/language/src/ConfigurableLanguageManager.php
This in turn makes a call to ::load with a langcode of en, which returns null.
$natives[$langcode] = ConfigurableLanguage::load($langcode);
Next a call to Language::sort($natives); throws an exception with the en value set to null.

Proposed resolution

Remove references to langcode fr.

Remaining tasks

Provided a patch to address this. Needs to be reviewed.

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 infogram-3173456-2.patch3.31 KBgmercer

Comments

gmercer created an issue. See original summary.

gmercer’s picture

StatusFileSize
new3.31 KB

Here is the patch for this issue.

  • B2F committed c424808 on 8.x-1.x authored by gmercer
    Issue #3173456 by gmercer: Removing langcode setting to fr
    
b2f’s picture

Version: 8.x-1.0-beta7 » 8.x-1.x-dev
Status: Active » Reviewed & tested by the community

Commited to 8.x-1.0-rc1
Thanks !

Would you also provide a hook_update in the .install ?

b2f’s picture

Status: Reviewed & tested by the community » Fixed
b2f’s picture

Status: Fixed » Closed (fixed)