r86936 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86935‎ | r86936 | r86937 >
Date:09:33, 26 April 2011
Author:siebrand
Status:deferred
Tags:
Comment:
Add support for NOCC website
Add aggregate group
Add README
Modified paths:
  • /trunk/extensions/Translate/groups/Nocc/Nocc.yaml (modified) (history)
  • /trunk/extensions/Translate/groups/Nocc/README (added) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/Nocc/Nocc.yaml
@@ -1,11 +1,25 @@
 2+TEMPLATE:
 3+ BASIC:
 4+ namespace: NS_NOCC
 5+ description: "{{int:bw-desc-nocc}}"
 6+ class: FileBasedMessageGroup
 7+
28 BASIC:
3 - id: out-nocc
 9+ id: out-nocc-0-all
410 label: NOCC
5 - namespace: NS_NOCC
6 - class: FileBasedMessageGroup
7 - description: "{{int:bw-desc-nocc}}"
811 display: out/nocc
 12+ meta: yes
 13+ class: AggregateMessageGroup
914
 15+GROUPS:
 16+ - out-nocc-*
 17+
 18+---
 19+BASIC:
 20+ id: out-nocc-core
 21+ label: NOCC - Core
 22+ display: out/nocc/core
 23+
1024 FILES:
1125 class: FlatPhpFFS
1226 sourcePattern: %GROUPROOT%/nocc/webmail/lang/%CODE%.php
@@ -42,3 +56,34 @@
4357 checks:
4458 - printfCheck
4559 - braceBalanceCheck
 60+
 61+---
 62+BASIC:
 63+ id: out-nocc-site
 64+ label: NOCC - Site
 65+ display: out/nocc/site
 66+
 67+FILES:
 68+ class: GettextFFS
 69+ definitionFile: %GROUPROOT%/nocc/htdocs/engine/languages/en.pot
 70+ sourcePattern: %GROUPROOT%/nocc/htdocs/engine/languages/%CODE%.po
 71+ targetPattern: nocc/htdocs/engine/languages/%CODE%.po
 72+ codeMap:
 73+ en-gb: en_GB
 74+ en-us: en_US
 75+ no: nb
 76+ pt-br: pt_BR
 77+ zh-hans: zh_CN
 78+ zh-hant: zh_TW
 79+ header: |
 80+ # This file is part of NOCC <http://nocc.sf.net/>
 81+ # Released under the "GNU General Public License"
 82+ #
 83+ # You should have received a copy of the GNU General Public License
 84+ # along with NOCC. If not, see <http://www.gnu.org/licenses/>.
 85+ #
 86+
 87+CHECKER:
 88+ class: MessageChecker
 89+ checks:
 90+ - printfCheck
Index: trunk/extensions/Translate/groups/Nocc/README
@@ -0,0 +1,13 @@
 2+== Setup ==
 3+ cd %GROUPROOT%
 4+ svn checkout http://nocc.svn.sourceforge.net/svnroot/nocc/trunk nocc
 5+
 6+Add to your LocalSettings.php:
 7+ wfAddNamespace( 1204, 'Nocc' );
 8+ $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/Nocc/Nocc.yaml";
 9+
 10+== Export ==
 11+* Required: connect access to the NOCC SourceForge project. Contact:
 12+ Tim Gerundt <tim AT gerundt DOT de>.
 13+* php export.php --target=$EXPORTPATH --grouptrail=out-nocc- --skip=en --lang=* --threshold=35
 14+* Download, diff and commit the export to the project.

Follow-up revisions

RevisionCommit summaryAuthorDate
r86939Fix error in YAML file from r86936.siebrand09:49, 26 April 2011

Status & tagging log