LocalisationUpdate

From Wikitech
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
 
== Where it runs ==
 
== Where it runs ==
 
Batch not yet set up. Must be on a mediawiki-installation host with access to /home and a SVN client.
 
Batch not yet set up. Must be on a mediawiki-installation host with access to /home and a SVN client.
 +
 +
* [[hume]]?
  
 
== Batch frequency ==
 
== Batch frequency ==
 +
 
* not yet set up; planned daily?
 
* not yet set up; planned daily?
  
 
== How it works ==
 
== How it works ==
  
Batch job not yet set up, but it'll do roughly:
+
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
  
  svn up /home/wikipedia/i18n/trunk/phase3
+
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.
  svn up /home/wikipedia/i18n/trunk/extensions
+
  php /home/wikipedia/common/wmf-deployment/extensions/LocalisationUpdate/update.php --all
+
  
 
== Files ==
 
== Files ==
Line 24: Line 29:
 
* /home/wikipedia/l10n/trunk
 
* /home/wikipedia/l10n/trunk
 
** MediaWiki checkouts of trunk phase3 and extensions
 
** MediaWiki checkouts of trunk phase3 and extensions
* /home/wikipedia/common/wmf-deployment/cache
+
* /home/wikipedia/common/wmf-deployment/cache/l10n
 
** Storage for serialized updates
 
** Storage for serialized updates
* /apache/common/wmf-deployment/cache
+
* /apache/common/wmf-deployment/cache/l10n
 
** Synced home of serialized updates per web server
 
** Synced home of serialized updates per web server
  

Revision as of 18:04, 24 September 2009

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.

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

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)
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox