Processor doesn't work with custom langcode

Created on 24 February 2023, over 1 year ago
Updated 1 April 2023, about 1 year ago

Problem/Motivation

Hello everyone,

The module doesn't work on one of my projects where there are custom langcodes.

I have several different langcodes for a "same language" and in the part of the code that fetches the langcode, the module tries to associate it with a base langcode.

Example: fr-fr and be-fr for French from France and French from Belgium. Same for Dutch and German.

So I added conditions for the module to work.

This solves my problem but I don't know how to solve the problem in a more general way.

Proposed resolution

Maybe retrieve all langcodes and check if there is a part of a basic langcode in the custom langcodes (Ex: fr in be-fr).

I hope I've made myself clear. I still propose my patch even if it is very specific...

Have a nice day !

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium gilles_webstanz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024