Skip to content

Add support for sd-sind language code#504

Open
Ami765 wants to merge 1 commit into
wikimedia:masterfrom
Ami765:add-language-code
Open

Add support for sd-sind language code#504
Ami765 wants to merge 1 commit into
wikimedia:masterfrom
Ami765:add-language-code

Conversation

@Ami765

@Ami765 Ami765 commented Jun 16, 2026

Copy link
Copy Markdown

Bug: T428126

@jdforrester jdforrester changed the title Add support for language code Add support for sd-sind language code Jun 16, 2026
@jdforrester

Copy link
Copy Markdown
Member

Bug: T428848

T428848 is about Tsishingini (tsw), not Sindhi in Khudawadi script. Is there a different task for this?

@srish

srish commented Jun 16, 2026

Copy link
Copy Markdown
Member

@Ami765 Thank you adding this pull request! @jdforrester It is related to https://phabricator.wikimedia.org/T428126. I've updated the ticket link in the task description.

@Ami765 I am clarifying one thing on the support channel about the autonym: https://translatewiki.net/wiki/Support#Request_to_add_Sindhi_(Khudabadi)_on_translatewiki. Once I learn more, I can review the pull request. Hopefully soon.

@srish srish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Ami765 for the pull request. I have left review and requested some changes. Thanks! Let me know if you have any questions.

Comment thread data/langdb.yaml Outdated
sd: [sd-arab]
sd-arab: [Arab, [AS], سنڌي]
sd-deva: [Deva, [AS], सिंधी]
sd-sind: [Sind, [AS], "𑊧𑊩𑊡𑊻"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the description in the task, the autonym should be 𑋝𑋡𑋟𑋐𑋢.

Comment thread data/language-data.json Outdated
],
"سنڌي"
],
"sd-sind": [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this file was hand-edited, not regenerated. data/language-data.json is generated from data/langdb.yaml by src/util/ulsdata2json.php. It must not be edited directly. Two symptoms confirm it was hand edited:

  • Wrong ordering: sd-sind is placed between sd-arab and sd-deva
  • Invalid "ltr" field

Suggested recommendation here would be to regenerate the JSON via php src/util/ulsdata2json.php command.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the script was not run to add these changes. Read steps 1-8 listed here https://www.mediawiki.org/wiki/Manual:Adding_and_removing_languages#language-data. They explain more about running the php src/util/ulsdata2json.php script. As I mentioned earlier, changes to data/language-data.json file should not be added manually. They need to be generated by running the php script.

Comment thread data/langdb.yaml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, Sind would need to be added here in the SouthAsian list.

@Ami765 Ami765 force-pushed the add-language-code branch 2 times, most recently from 94ef248 to 5688b04 Compare June 17, 2026 07:51
@Ami765 Ami765 requested a review from srish June 17, 2026 11:34

@srish srish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Ami765 for the new changes. I've requested some more changes. Take a look!

Comment thread data/langdb.yaml Outdated
# Unicode, because linguistically and geographically it's closely related to
# the Brahmic family.
SouthAsian: [Beng, Cakm, Deva, Gujr, Guru, Knda, Mlym, Mtei, Olck, Orya, Rohg, Saur, Sinh, Sylo, Taml, Telu, Tibt, Thaa, Wara]
SouthAsian: [Beng, Cakm, Deva, Gujr, Guru, Knda, Mlym, Mtei, Olck, Orya, Rohg, Saur, Sinh, Sylo, Taml, Telu, Tibt, Thaa, Wara, Sind]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sind should follow the alphabetical order and placed after Saur.

Comment thread data/language-data.json Outdated
],
"سنڌي"
],
"sd-sind": [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the script was not run to add these changes. Read steps 1-8 listed here https://www.mediawiki.org/wiki/Manual:Adding_and_removing_languages#language-data. They explain more about running the php src/util/ulsdata2json.php script. As I mentioned earlier, changes to data/language-data.json file should not be added manually. They need to be generated by running the php script.

@Ami765 Ami765 force-pushed the add-language-code branch 2 times, most recently from 95be81e to 03a6eec Compare June 18, 2026 04:39
@Ami765 Ami765 force-pushed the add-language-code branch from 03a6eec to 0fc9704 Compare June 18, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants