LocalisationUpdate
From Wikitech
Contents |
Purpose
This MediaWiki extension fetches updates to MediaWiki core and extension localisation files and makes them available to an installation without updating its own source. This allows us to pull updated translations being committed to development trunk even though our live install is running wmf-deployment branch.
Source
Where it runs
Batch not yet set up. Must be on a mediawiki-installation host with access to /home and a SVN client.
- hume?
Batch frequency
- not yet set up; planned daily?
How it works
Batch job in /home/wikipedia/bin/l10nupdate. Does roughly:
svn up /home/wikipedia/l10n/trunk/phase3 svn up /home/wikipedia/l10n/trunk/extensions php /home/wikipedia/common/wmf-deployment/extensions/LocalisationUpdate/update.php --wiki=aawiki --all
Files will be updated in /h/w/wmf-deployment/cache/l10n; Apache clients should sync updates from that every X hours or at scap time.
Files
- /home/wikipedia/l10n/trunk
- MediaWiki checkouts of trunk phase3 and extensions
- /home/wikipedia/common/wmf-deployment/cache/l10n
- Storage for serialized updates
- /apache/common/wmf-deployment/cache/l10n
- Synced home of serialized updates per web server
Config
In MW config:
- $wmgUseLocalisationUpdate (to enable/disable ext load)
- $wgLocalisationUpdateSVNURL = '/home/wikipedia/l10n/trunk'
- $wgLocalisationUpdateDirectory = '/apache/common/wmf-deployment/cache/l10n'
Todo
Trim out test DBs/tables from previous incarnation:
Databases used:
- Singletons:
- enwiki on s1
- dewiki on s2dewiki
- frwiki on s3frja
- jawiki on s3frja
- commonswiki on s4
- Shared:
- l10nwiki on s2 (run via bgwiki)
- l10nwiki on s3 (run via aawiki)