Page MenuHomePhabricator

Babel configuration for uz.wikipedia
Open, NormalPublic

Description

A local administrator from uz-WP asked me to enable categorisation for the {{#babel}} magic word. (see link)

The categories for native speakers should be "Turkum:User CODE" and "Turkum:User CODE-N".

The categories for non-native speakers should be "Turkum:User CODE" and "Turkum:User CODE-0/1/2/3/4/5".

Local discussion with consensus for this way - see link

Thanks in advance!

PS: Proposed configuration should be equal to this default code:

$wgBabelCategoryNames = array(

'0' => 'User %code%-0',
'1' => 'User %code%-1',
'2' => 'User %code%-2',
'3' => 'User %code%-3',
'4' => 'User %code%-4',
'5' => 'User %code%-5',
'N' => 'User %code%-N',
);
$wgBabelMainCategory = 'User %code%';

Event Timeline

Kaganer created this task.Apr 6 2016, 12:11 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 6 2016, 12:11 PM
Dereckson triaged this task as Normal priority.Apr 8 2016, 2:17 AM
Dereckson added a subscriber: Dereckson.

Ain't a bit of redundancy categorize users with, e. g.: User en and User en-N? Wouldn't be better to categorize users under User:CODE-LEVEL and then categorize the categories instead?

No, we want to categorize our users just as requested.

Dereckson added a comment.EditedApr 9 2016, 11:54 AM

Babel doesn't currently support the add of two categories. For the Babel extension, you have to choose one or the other.

Now, if you want the two categories, you can perhaps use a bot to add the other cat or use a custom template system instead of the Babel extension.

MarcoAurelio changed the task status from Open to Stalled.Apr 14 2016, 9:43 AM
MarcoAurelio lowered the priority of this task from Normal to Low.

Awaiting further information from requestor.

Dereckson changed the task status from Stalled to Open.Apr 14 2016, 12:05 PM
Dereckson raised the priority of this task from Low to Normal.

Actually, there is something actionable here: we could set Babel up right now in the most important category between the two, and then adjust the configuration afterwards.

Change 283425 had a related patch set uploaded (by Dereckson):
Babel configuration for uz.wikipedia (part 1/2)

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

Change 283425 merged by jenkins-bot:
Babel configuration for uz.wikipedia (part 1/2)

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

Mentioned in SAL [2016-04-14T15:54:57Z] <dereckson@tin> Synchronized wmf-config/InitialiseSettings.php: Babel configuration for uz.wikipedia (part 1/2) (T131924) (duration: 00m 26s)

Anything left to do here? Unless I am missing something uzwiki has the same config as wikidata, where users using {{#babel:}} are categorized in both language and language-level. See https://www.wikidata.org/wiki/User:MarcoAurelio for an example. As such, I am not sure why it do not happen here.

Currently in the uz-wp Babel is not fully configured: no categorization by language levels.
See https://uz.wikipedia.org/wiki/Foydalanuvchi:Kaganer/babel-test as example

What's missing, then?

Kaganer added a comment.EditedOct 5 2017, 3:15 PM

What's missing, then?

No category "User en-1" and "User ru-N", as example.

Please compare with https://ru.wikipedia.org/wiki/User:Kaganer:

Kaganer updated the task description. (Show Details)Oct 24 2017, 12:50 PM

What's missing, then?

Proposed configuration should be equal to this default code:

$wgBabelCategoryNames = array(

'0' => 'User %code%-0',
'1' => 'User %code%-1',
'2' => 'User %code%-2',
'3' => 'User %code%-3',
'4' => 'User %code%-4',
'5' => 'User %code%-5',
'N' => 'User %code%-N',
);
$wgBabelMainCategory = 'User %code%';