Index: trunk/translatewiki/WikipediaMobile/README |
— | — | @@ -1,31 +1,24 @@ |
| 2 | +== Add support in Translate == |
2 | 3 | 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"; |
4 | 8 | |
5 | | -Update: |
6 | | -$ git pull |
| 9 | +To update: |
| 10 | +1. git pull |
| 11 | +2. Process in Special:ManageMessageGroups |
7 | 12 | |
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 |
33 | 26 | + native |
Index: trunk/translatewiki/WikipediaMobile/WikipediaMobile.yaml |
— | — | @@ -14,9 +14,9 @@ |
15 | 15 | |
16 | 16 | FILES: |
17 | 17 | 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 |
21 | 21 | codeMap: |
22 | 22 | nb: "no" |
23 | 23 | header: | |
— | — | @@ -27,4 +27,3 @@ |
28 | 28 | ignored: |
29 | 29 | - mobileapp-settings-checkbox-example-desc |
30 | 30 | - mobileapp-settings-checkbox-example-label |
31 | | - |