r113596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113595‎ | r113596 | r113597 >
Date:22:17, 11 March 2012
Author:siebrand
Status:ok (Comments)
Tags:i18nreview 
Comment:
Update/add some documentation.
Modified paths:
  • /trunk/translatewiki/EOL/README (added) (history)
  • /trunk/translatewiki/MantisBT/README (modified) (history)
  • /trunk/translatewiki/Mwlib/README (added) (history)
  • /trunk/translatewiki/StatusNet/README (modified) (history)

Diff [purge]

Index: trunk/translatewiki/StatusNet/README
@@ -6,7 +6,7 @@
77 git clone git://gitorious.org/statusnet/mainline.git statusnet
88 </source>
99
10 -Then check out the current development branch (origin/0.9.x) in the clone.
 10+Then check out the current development branch (origin/1.0.x) in the clone.
1111
1212 ==Settings==
1313 <source lang="php">
@@ -35,7 +35,7 @@
3636 echo "Rebuilding POT..."
3737 $HOME/statusnet/scripts/update_po_templates.php
3838 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
 39+php $SCRIPTPATH/export.php --target=$EXPORTPATH/ --lang=* --skip=en,qqq --threshold=35 --ppgettext=$HOME --groupprefix=out-statusnet
4040 echo "Copying updated POT files into export..."
4141 cd $HOME
4242 for i in `find statusnet |grep [.]pot$ |grep locale`
Index: trunk/translatewiki/Mwlib/README
@@ -0,0 +1,11 @@
 2+== Setup ==
 3+ cd %GROUPROOT%
 4+ git clone git://github.com/pediapress/mwlib.rl.git mwlib.rl
 5+
 6+Add to your LocalSettings.php:
 7+ wfAddNamespace( 1212, 'Mwlib' );
 8+ $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/Mwlib/Mwlibrl.yaml";
 9+
 10+== Export ===
 11+ php export.php --target=$EXPORTPATH/ --lang='*' --group=out-mwlibrl --ppgettext=%GROUPROOT% --threshold=10
 12+ php export.php --target=$EXPORTPATH/ --lang=qqq --group=out-mwlibrl --ppgettext=%GROUPROOT%
Property changes on: trunk/translatewiki/Mwlib/README
___________________________________________________________________
Added: svn:eol-style
113 + native
Index: trunk/translatewiki/EOL/README
@@ -0,0 +1,10 @@
 2+== Setup ==
 3+ cd %GROUPROOT%
 4+ git clone git://github.com/EncyclopediaOfLife/eol.git eol
 5+
 6+Add to your LocalSettings.php:
 7+ wfAddNamespace( 1242, 'EOL' );
 8+ $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/EOL/EOL.yaml"
 9+
 10+== Export ===
 11+ php export.php --target=$EXPORTPATH --no-fuzzy --groupprefix=out-eol- --lang='*' --skip=en --threshold=35
Property changes on: trunk/translatewiki/EOL/README
___________________________________________________________________
Added: svn:eol-style
112 + native
Index: trunk/translatewiki/MantisBT/README
@@ -1,11 +1,11 @@
22 == Setup ==
33 cd %GROUPROOT%
44 git clone git://git.mantisbt.org/mantisbt mantisbt
 5+ git checkout --track -b master-1.2.x origin/master-1.2.x
56
67 Add to your LocalSettings.php
78 wfAddNamespace( 1210, 'Mantis' );
89 $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT.yaml";
910
1011 == Export ==
11 -@todo
12 -
 12+ php export.php --target=$EXPORTPATH --groupprefix=out-mantis- --lang='*' --skip=en --threshold=35

Follow-up revisions

RevisionCommit summaryAuthorDate
r113597Fix omission in r113596: --skip-en.siebrand22:20, 11 March 2012

Comments

#Comment by Nikerabbit (talk | contribs)   07:32, 12 March 2012

Should use group with wildcards instead of groupprefix.

$EXPORTPATH sometimes has trailing / and sometimes doesn't.

#Comment by Siebrand (talk | contribs)   07:44, 12 March 2012

It needs a trailing slash if ppgettext is used I found out.

Don't know what you mean with group prefix vs. group.

#Comment by Nikerabbit (talk | contribs)   07:47, 12 March 2012

The command line parameter should be --group.

Status & tagging log