Page MenuHomePhabricator

$wgDefaultLanguageVariant needs to be an array to contain default variant info for different languages
Open, In Progress, MediumPublic

Description

The DefaultLanguageVariant configuration option was introduced in 5b2a644 (r18754) and is used for multivariant sites.

However, it can only set for 1 variant, which means it doesn't work well with multilanguage sites.

We should introduce new DefaultLanguageVariants configuration option to replace it.

$wgDefaultLanguageVariants = [
    'sr' => 'sr-el',
    'zh' => 'zh-tw',
];
$wgDefaultLanguageVariants['sr'] => 'sr-el';

Version: 1.22.0
Severity: normal

See also:

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:04 AM
bzimport set Reference to bz52700.
bzimport added a subscriber: Unknown Object (MLST).

Change 890856 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@master] Implement DefaultLanguageVariants configuration option

https://gerrit.wikimedia.org/r/890856

Winston_Sung changed the task status from Open to In Progress.Feb 23 2023, 11:15 AM
Winston_Sung claimed this task.
Winston_Sung added subscribers: Aklapper, Func, Stang, Ericliu1912.

@Winston_Sung Please extend the task description. I assume this is for multilingual wikis, am I right?

@Func :

You probably want to ask @liangent about it, but I think this task remains valid.