Page MenuHomePhabricator

Provide a way for Javascript code to know whether the current page is managed by the Translate extension
Closed, ResolvedPublic

Description

Right now VE has no idea that pages like Foo/fr etc. are un-editable until it fails (nastily with a hook abort) on the user trying to save. It'd be great to have a simple way for VE to check if this is the case (forgive me if it's already done, but from asking apparently it wasn't).


Version: master
Severity: normal

Details

Reference
bz61331

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:51 AM
bzimport set Reference to bz61331.

Which way would you like to know it? Global JS config variable? Via API somehow? Page properties?

Something like wgIsRedirect so we can do mw.config.get( 'wgIsTranslatedOutput' )?

Change 113339 had a related patch set uploaded by Nikerabbit:
Way for JS to know whether page is using page translation

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

Change 113339 merged by jenkins-bot:
Add JS config var which tells page translation status

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