Page MenuHomePhabricator

Santali language is not included in Wikipedia.org Home Page
Closed, ResolvedPublic

Description

Hi, I have observed a missing language which is "Santali" natively written as "ᱥᱟᱱᱛᱟᱲᱤ" from the Home Page of the Wikipedia Website (https://www.wikipedia.org/).

Steps to Reproduce:

  1. Go to the website https://www.wikipedia.org/.
  2. Click on the "Read Wikipedia in your language".
  3. Santali or ᱥᱟᱱᱛᱟᱲᱤ language is absent.

Expected Results:
*Santali or ᱥᱟᱱᱛᱟᱲᱤ language should be displayed in the "Read Wikipedia in your language" section when clicked.

Event Timeline

Hi @Rocky_734, thanks for taking the time to report this and welcome to Wikimedia Phabricator! This is about https://sat.wikipedia.org/ ?
For future reference, please always use the bug report form (linked from the top of the task creation page) to create bug report. Thanks a lot.

Thanks @Aklapper , I'm sorry for it .. never gonna repeat next time. Yes, it is about Santali Wikipedia (sat.wikipedia.org). This language Wikipedia is missing from the list of language in the home page of www.wikipedia.org.

Hello @Rocky_734
I would like to work on this task. Could you please guide me to the target file where the changes are supposed to be made.

@abhigya_pandey It is unlikely that the reporter of a problem knows some "target file" (?). Please check https://phabricator.wikimedia.org/tag/wikimedia-portals/ which is linked under "Tags" here in the sidebar.

Thanks Aklapper once again for your suggestions.

@Rocky_734 I've looked at this issue and it seems like the problem is related to how the search options are populated.

In src/common/templates/search.handlebars we use a variable called top100000List and top100000Dropdown to populate the search options.

<select id="searchLanguage" name="language">
    {{! 100,000+ content pages, sorted by romanization }}
    {{#each top100000Dropdown}}
        {{> search.option}}
    {{/each}}
</select>

There are only search options for wikis with 100,000+ articles, of which Santali is not one yet. This range is somewhat arbitrary and I think it can be changed, maybe to include wikis with 10,000+ articles instead.

To change this, we would need to change the following variable in /src/wikipedia.org/controller.js to use 10,000 instead of 100,000 as the range.

// Format the dropdown for ./templates/search.mustache
top100000List = stats.getRange( 'wiki', 'numPages', 100000 );
top100000Dropdown = stats.format( 'wiki', top100000List, {
	stripTags: true
} );

@abhigya_pandey would you be interested in working on this change?

Yes, I will be working as soon as possible.

I found the existence of “Santali” language at correct position in https://www.wikipedia.org/.Which are depicted from below pictures-

WhatsApp Image 2022-03-03 at 12.36.14 PM.jpeg (473×999 px, 54 KB)

WhatsApp Image 2022-03-03 at 12.35.49 PM.jpeg (264×563 px, 12 KB)

@Jdrewniak kindly let me know what changes are required to resolve this issue.

There are only search options for wikis with 100,000+ articles, of which Santali is not one yet. This range is somewhat arbitrary and I think it can be changed, maybe to include wikis with 10,000+ articles instead.

I think the cutoff was originally set at 100,000+ articles to avoid making the dropdown list too long. However, it’s long been the case that the user’s preferred language is chosen automatically by default, so the length of the list doesn’t matter so much anymore.

@Rocky_734 its like your issue was resolved when I updated the pagecounts.json script related to T300434. The link to the Santali language wikipedia now appears on www.wikipedia.org.

My previous comment misinterpreted your request and I thought you meant that the Santali language does not appear as an option for the search dropdown (pictured below). If that's not an issue, then I think we can close out this ticket.

Screen Shot 2022-03-16 at 3.54.37 PM.png (250×1 px, 20 KB)
Screen Shot 2022-03-16 at 3.54.45 PM.png (986×1 px, 369 KB)

Change 771473 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[wikimedia/portals@master] Change search language dropdown variable name to be more generic

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

Change 771473 merged by jenkins-bot:

[wikimedia/portals@master] Change search language dropdown variable name to be more generic

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

Aklapper assigned this task to Jdrewniak.

ᱥᱟᱱᱛᱟᱲᱤ is now listed under https://www.wikipedia.org after clicking "Read Wikipedia in your language".

ᱟᱭᱢᱟᱸ ᱥᱟᱨᱦᱟᱣ 🙏🙏🙏, sorry for the late reply. I can now see Santali language in Wikipedia.org homepage under "Read Wikipedia in your language". I thank everyone who helped resolve this issue.