mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Extract and show license key
List of available licenses is pre-extracted from UploadWizard
MediaWiki extension. This should eventually be switched to use
some live query to the site configuration.
The license display is more or less localizable, for known templates.
Unrecognized templates specified as parameters to {{self}} will be
recognized (unlocalized) but others may not be.
Change-Id: I9df5fe807798a191a3bb0a45464760c75f19e366
This commit is contained in:
parent
dde64dc4d2
commit
4c45c88ade
11 changed files with 440 additions and 4 deletions
14
update-license-info/Makefile
Normal file
14
update-license-info/Makefile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.FAKE : build update clean install
|
||||
|
||||
build : ../commons/res/xml/wikimedia_licenses.xml
|
||||
|
||||
../commons/res/xml/wikimedia_licenses.xml : licenses.php mediawiki-extensions-UploadWizard
|
||||
php licenses.php > ../commons/res/xml/wikimedia_licenses.xml
|
||||
|
||||
mediawiki-extensions-UploadWizard : update
|
||||
|
||||
update :
|
||||
if [ -d mediawiki-extensions-UploadWizard ]; then (cd mediawiki-extensions-UploadWizard && git pull origin master); else git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard mediawiki-extensions-UploadWizard; fi
|
||||
|
||||
clean :
|
||||
rm -rf mediawiki-extensions-UploadWizard
|
||||
Loading…
Add table
Add a link
Reference in a new issue