Last modified: 2014-03-19 00:26:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63331, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61331 - Provide a way for Javascript code to know whether the current page is managed by the Translate extension
Provide a way for Javascript code to know whether the current page is managed...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Niklas Laxström
:
Depends on:
Blocks: 50284
  Show dependency treegraph
 
Reported: 2014-02-13 19:52 UTC by James Forrester
Modified: 2014-03-19 00:26 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2014-02-13 19:52:47 UTC
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).
Comment 1 Niklas Laxström 2014-02-13 21:24:29 UTC
Which way would you like to know it? Global JS config variable? Via API somehow? Page properties?
Comment 2 James Forrester 2014-02-13 22:20:16 UTC
Something like wgIsRedirect so we can do mw.config.get( 'wgIsTranslatedOutput' )?
Comment 3 Gerrit Notification Bot 2014-02-14 09:41:58 UTC
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
Comment 4 Gerrit Notification Bot 2014-03-19 00:09:31 UTC
Change 113339 merged by jenkins-bot:
Add JS config var which tells page translation status

https://gerrit.wikimedia.org/r/113339
Comment 5 James Forrester 2014-03-19 00:26:28 UTC
Thank you!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links