r113270 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113269‎ | r113270 | r113271 >
Date:19:06, 7 March 2012
Author:siebrand
Status:ok
Tags:
Comment:
Update documentation.
Update file locations.
Modified paths:
  • /trunk/translatewiki/WikipediaMobile/README (modified) (history)
  • /trunk/translatewiki/WikipediaMobile/WikipediaMobile.yaml (modified) (history)

Diff [purge]

Index: trunk/translatewiki/WikipediaMobile/README
@@ -1,31 +1,24 @@
 2+== Add support in Translate ==
23 Check out a read-only copy:
3 -$ git clone git://github.com/wikimedia/WikipediaMobile.git wikipedia
 4+1. git clone git://github.com/wikimedia/WikipediaMobile.git WikipediaMobile
 5+2. Add to LocalSettings.php:
 6+wfAddNamespace( 1206, 'Wikimedia' );
 7+$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/WikipediaMobile/WikipediaMobile.yaml";
48
5 -Update:
6 -$ git pull
 9+To update:
 10+1. git pull
 11+2. Process in Special:ManageMessageGroups
712
8 -
9 -Message files are in assets/www/messages/messages-*.properties
10 -as Java-style properties files, using raw UTF-8.
11 -
12 -
13 -messages-en.properties has master entries.
14 -messages-qqq.properties has message descriptions.
15 -
16 -
17 -
18 -To commit:
19 -
20 - Check out a copy with github account already set up (read/write if sufficient rights):
21 - $ git clone git@github.com:wikimedia/WikipediaMobile.git wikipedia
22 -
23 - # must add any new or changed files!
24 - git add assets/www/messages/messages-*.properties
25 -
26 - # commit locally
27 - git commit -m "Updates from translatewiki.net"
28 -
29 - # push upstream
30 - git push origin master
31 -
32 -
 13+== Commit updates ==
 14+# Export translations
 15+php /www/w/extensions/Translate/scripts/export.php --groupprefix=out-wikipedia-mobile --target=$HOME/export --lang=* --skip en,qqq --threshold=35
 16+php /www/w/extensions/Translate/scripts/export.php --groupprefix=out-wikipedia-mobile --target=$HOME/export --lang=qqq
 17+# Check out a copy with github account set up (read/write with sufficient rights):
 18+git clone git@github.com:wikimedia/WikipediaMobile.git $HOME/export/WikipediaMobile
 19+# must add any new or changed files!
 20+cd $HOME/export/WikipediaMobile
 21+git add assets/www/messages/messages-*.properties
 22+# commit locally
 23+git commit -m "Localisation updates from http://translatewiki.net."
 24+# push upstream
 25+git push origin master
Property changes on: trunk/translatewiki/WikipediaMobile/README
___________________________________________________________________
Added: svn:eol-style
3326 + native
Index: trunk/translatewiki/WikipediaMobile/WikipediaMobile.yaml
@@ -14,9 +14,9 @@
1515
1616 FILES:
1717 class: JavaFFS
18 - sourcePattern: %GROUPROOT%/wikipedia/assets/www/messages/messages-%CODE%.properties
19 - definitionFile: %GROUPROOT%/wikipedia/assets/www/messages/messages-en.properties
20 - targetPattern: wikipedia/assets/www/messages/messages-%CODE%.properties
 18+ sourcePattern: %GROUPROOT%/WikipediaMobile/assets/www/messages/messages-%CODE%.properties
 19+ definitionFile: %GROUPROOT%/WikipediaMobile/assets/www/messages/messages-en.properties
 20+ targetPattern: WikipediaMobile/assets/www/messages/messages-%CODE%.properties
2121 codeMap:
2222 nb: "no"
2323 header: |
@@ -27,4 +27,3 @@
2828 ignored:
2929 - mobileapp-settings-checkbox-example-desc
3030 - mobileapp-settings-checkbox-example-label
31 -

Status & tagging log