See if we can offload more DOM transformation the Android app does to the service.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Hide IPA | mediawiki/services/mobileapps | master | +53 -0 |
Event Timeline
Only was able to do the "hide IPA" transformation.
I looked at collapsing tables + references. Both are very much related. The problem is that the collapsing table transformation requires three translated strings.
This means we would need either:
(1) a way to inject the translated strings into the served HTML via some sort of templating mechanism [=do some heavy string replacements of the client side; sounds like it could negatively affect performance; the opposite of what we want] or
(2) deal with I18N on the services side and for some wikis which allow language variants to also keep them separate (from a storage/caching standpoint) [also add TWN syncs]
This seems too much risk and effort to take on right now.
Checked with 2.1.134-alpha-2015-11-19 on Nexus 5 (Android 5.1.1) .
A good example to test will be the article - Help:IPA for Russian. There are four collapsable tables and collapsable Notes.