r73924 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73923‎ | r73924 | r73925 >
Date:19:29, 28 September 2010
Author:siebrand
Status:deferred
Tags:
Comment:
* update StatusNet-plugins.yaml
* update documentation
Modified paths:
  • /trunk/extensions/Translate/groups/StatusNet/README (modified) (history)
  • /trunk/extensions/Translate/groups/StatusNet/StatusNet-plugins.yaml (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/StatusNet/StatusNet-plugins.yaml
@@ -869,3 +869,17 @@
870870
871871 MANGLER:
872872 prefix: xcache-
 873+---
 874+BASIC:
 875+ id: out-statusnet-plugin-yammerimport
 876+ label: StatusNet - YammerImport
 877+ display: out/statusnet/plugin/yammerimport
 878+ codeBrowser: http://gitorious.org/statusnet/mainline/blobs/0.9.x/plugins/YammerImport/%FILE%#line%LINE%
 879+
 880+FILES:
 881+ sourcePattern: %GROUPROOT%/statusnet/plugins/YammerImport/locale/%CODE%/LC_MESSAGES/YammerImport.po
 882+ definitionFile: %GROUPROOT%/statusnet/plugins/YammerImport/locale/YammerImport.pot
 883+ targetPattern: statusnet/plugins/YammerImport/locale/%CODE%/LC_MESSAGES/YammerImport.po
 884+
 885+MANGLER:
 886+ prefix: yammerimport-
Index: trunk/extensions/Translate/groups/StatusNet/README
@@ -1,11 +1,82 @@
2 -Check out writable copy:
 2+== Source files ==
 3+Clone a writable repo of StatusNet:
34
4 -cd $HOME/projects/
 5+<source lang="bash">
 6+cd %GROUPROOT%
57 git clone git://gitorious.org/statusnet/mainline.git statusnet
 8+</source>
69
7 -Then check out the current development branch.
 10+Then check out the current development branch (origin/0.9.x) in the clone.
811
9 -Settings:
 12+==Settings==
 13+<source lang="php">
1014 wfAddNamespace( 1208, 'StatusNet' );
1115 $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/StatusNet/StatusNet.yml";
1216 $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/StatusNet/StatusNet-plugins.yml";
 17+</source>
 18+
 19+== Updating StatusNet-plugins.yml ==
 20+Run <code>$IP/extensions/Translate/groups/StatusNet/genStatusNet-plugins.php</code> on a current checkout of the StatusNet development branch and commit the result.
 21+
 22+== Exporting ==
 23+* Clone a second writable repo of StatusNet and check out the current development branch. It is assumed the clone is made under $HOME as "statusnet/".
 24+* Create a script like the following:
 25+<source lang="bash">
 26+#!/bin/bash
 27+
 28+EXPORTPATH=$HOME/export
 29+SCRIPTPATH=/www/w/extensions/Translate/scripts
 30+
 31+cd $SCRIPTPATH
 32+echo "Exporting StatusNet"
 33+cd $HOME/statusnet
 34+echo "Pulling from git..."
 35+git pull -q
 36+echo "Rebuilding POT..."
 37+$HOME/statusnet/scripts/update_po_templates.php
 38+echo "Exporting all StatusNet groups in languages over 35%..."
 39+php $SCRIPTPATH/export.php --target=$EXPORTPATH/ --lang=* --skip=en,qqq --threshold=35 --ppgettext=$HOME --grouptrail=out-statusnet
 40+echo "Copying updated POT files into export..."
 41+cd $HOME
 42+for i in `find statusnet |grep [.]pot$ |grep locale`
 43+ do cp --parents $i $EXPORTPATH/
 44+done
 45+echo "Creating compressed archive /www/static/temp/statusnet.tgz..."
 46+cd $EXPORTPATH
 47+tar -czf /www/static/temp/statusnet.tgz statusnet
 48+echo "Resetting repo..."
 49+cd $HOME/statusnet
 50+git reset -q --hard
 51+echo "Done."
 52+exit;
 53+</source>
 54+* Run the script to export all StatusNet groups.
 55+* Unpack the resulting files over a current checkout of StatusNet 0.9.x and commit.
 56+
 57+=== Additional scripting ===
 58+* Windows script for downloading and unpacking on Windows (dependencies not documented):
 59+@echo off
 60+cd \branches\statusnet
 61+echo Pulling StatusNet...
 62+cmd /c git pull
 63+echo Downloading export...
 64+cd \temp
 65+rd /s /q C:\temp\home
 66+wget http://translatewiki.net/static/temp/statusnet.tgz
 67+echo Unpacking export...
 68+tar -xzf statusnet.tgz
 69+echo Copying staged files...
 70+xcopy /Y /Q /S C:\Temp\statusnet C:\branches\statusnet
 71+echo Cleaning up...
 72+rd /s /q C:\temp\statusnet
 73+del /Q C:\Temp\statusnet.tgz
 74+cd \branches\statusnet
 75+echo Review changes and commit now...
 76+pause
 77+echo Press key to push...
 78+pause
 79+git push git@gitorious.org:statusnet/mainline.git
 80+echo Done. Press key to exit.
 81+pause
 82+exit
 83+exit

Status & tagging log