Page MenuHomePhabricator

Alemannisch language incorrectly labeled as "Albanian" in iOS app
Open, LowPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open the iOS Wikipedia app (Version 7.7.6.5398)
  • Add the language Alemannisch to your language list
  • Observe the English name displayed for the language

What happens?:
The app displays the English name for Alemannisch as "Albanian", which is incorrect.

What should have happened instead?:

The English name should be "Alemannic German", as shown on the corresponding Wikipedia article:
https://en.wikipedia.org/wiki/Alemannic_German

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Wikipedia iOS App 7.7.6 (build 5398)
iOS version: 18.5

Other information (browser name/version, screenshots, etc.):

unnamed (9).jpg (296×640 px, 19 KB)

Testing Notes

Will be in TestFlight 8.2.0 (latest build)

Event Timeline

Mazevedo edited projects, added: iOS-Bug-Backlog; removed: Wikipedia-iOS-App-Backlog.

This is caused by a conflict between the Wikimedia-internal language code als (Alemannisch) and ISO 639-3 where als is assigned to Albanian (Tosk). The iOS Locale framework follows ISO 639-3, so it returns the wrong localized name. A possible fix: add "altISOCode": "gsw" to the als entry in wikipedia-languages.json and use that for the Locale lookup in WikipediaLookup.swift. This would also resolve T414588, since the same altISOCode addition provides the missing gsw→als mapping needed by MWKLanguageLinkController.