GitHub - wikimedia/apps-android-wikipedia: 📱The official Wikipedia app for Android!
📱The official Wikipedia app for Android! Contribute to wikimedia/apps-android-wikipedia development by creating an account on GitHub.

Wikipedia uses MediaWiki, a wiki engine which ProleWiki runs. I’m very new to coding, but I believe the Android app request data and content through APIs, which in theory could mean it’s possible to redirect to another wiki instance


It won’t be easy. I guess if it was, then the app would allow you to select mediawiki instances. They mention is explicitly here:

Note that the app does not allow you to add custom mediawiki sites.

Outside of localization strings, this is where the url occurs in app/src/main. Seems to be hardcoded a fair bit:

app/src/main/AndroidManifest.xml:                <data android:host="*" android:pathPrefix="/wiki/" />
app/src/main/AndroidManifest.xml:                <data android:host="*" android:pathPattern="/zh.*" />
app/src/main/AndroidManifest.xml:                <data android:host="*" android:pathPattern="/sr.*" />
app/src/main/java/org/wikipedia/views/ImagePreviewDialog.kt:                        // If file page originally comes from * (i.e. movie posters), it will not have imageInfo and pageId.
app/src/main/java/org/wikipedia/dataclient/            } else if (domainSpec.endsWith("")) {
app/src/main/java/org/wikipedia/dataclient/                // For sites outside the domain, transfer the centralauth cookies
app/src/main/java/org/wikipedia/dataclient/                // from unconditionally.
app/src/main/java/org/wikipedia/dataclient/Service.kt:        const val WIKIPEDIA_URL = ""
app/src/main/java/org/wikipedia/util/UriUtil.kt:                uri.authority!!.endsWith("") &&
app/src/main/java/org/wikipedia/commons/FilePageFragment.kt:                        // If file page originally comes from * (i.e. movie posters), it will not have imageInfo and pageId.
app/src/main/java/org/wikipedia/page/Namespace.kt: * @see [Wikipedia:Namespace](
app/src/main/java/org/wikipedia/page/Namespace.kt: * @see [Namespaces reported by API](|namespacealiases)
app/src/main/java/org/wikipedia/page/PageTitle.kt:        get() = getUriForDomain(wikiSite.authority().replace("", ""))
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * English Wikipedia: HTTPS / / en
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Chinese Wikipedia: HTTPS / / zh-hans or zh-hant
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Test Wikipedia: HTTPS / / test
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Võro Wikipedia: HTTPS / / fiu-vro
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Simple English Wikipedia: HTTPS / / simple
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Correct: "" / "test"
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Correct: "", ""
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Correct: "", "nb"
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt: *  * Incorrect: "", "test"
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:        if (("" == authority || "" == authority) &&
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:            authority = ""
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:        // This prevents showing mixed Chinese variants article when the URL is /zh/ or /wiki/ in
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:        // Use default subdomain in authority to prevent error when requesting endpoints. e.g.
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:        if (authority.contains("") && subdomain().isNotEmpty()) {
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:            authority = subdomain() + ""
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:                //
app/src/main/java/org/wikipedia/dataclient/WikiSite.kt:                //

Camarada Forte

Yeah, I imagined. We’d need an experienced programmer on board for it, which unfortunately don’t have at the moment. But thanks for taking a look at it, comrade.


I suppose, you could clone the repo and search for wikipedia’s url and see if its replaceable.


A community related to the ProleWiki project.

Post in this community to request articles, provide suggestions and discuss ways to develop our project

  • 0 users online
  • 4 users / day
  • 5 users / week
  • 9 users / month
  • 14 users / 6 months
  • 94 subscribers
  • 50 Posts
  • Modlog