r112419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112418‎ | r112419 | r112420 >
Date:09:13, 26 February 2012
Author:siebrand
Status:ok
Tags:i18nreview 
Comment:
Beta support for Potlatch2
Modified paths:
  • /trunk/translatewiki/OpenStreetMap/Potlatch2.yaml (added) (history)
  • /trunk/translatewiki/OpenStreetMap/README (modified) (history)

Diff [purge]

Index: trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
@@ -0,0 +1,60 @@
 2+TEMPLATE:
 3+ BASIC:
 4+ namespace: NS_OSM
 5+ description: "{{int:translate-group-desc-potlatch2}}"
 6+ class: FileBasedMessageGroup
 7+
 8+ FILES:
 9+ class: JavaFFS
 10+ codeMap:
 11+ en: en_US
 12+ cs: cs_CZ
 13+ de: de_DE
 14+ en-gb: en_GB
 15+ es: es_ES
 16+ fr: fr_FR
 17+ it: it_IT
 18+ ja: ja_JP
 19+ nb: nb_NO
 20+ nl: nl_NL
 21+ nl-be: nl_BE
 22+ nn: nn_NO
 23+ pl: pl_PL
 24+ sv: sv_SE
 25+ pt: pt_PT
 26+ pt-br: pt_BR
 27+ zh-hans: zh_CN
 28+ zh-hant: zh_TW
 29+
 30+ MANGLER:
 31+ class: StringMatcher
 32+ patterns:
 33+ - "*"
 34+
 35+---
 36+BASIC:
 37+ id: out-potlatch2-help
 38+ label: Potlatch2 - Help
 39+ display: out/osm/potlatch2/help
 40+
 41+FILES:
 42+ sourcePattern: %GROUPROOT%/potlatch2/l10n/locale/%CODE%/help_dialog.properties
 43+ definitionFile: %GROUPROOT%/potlatch2/l10n/locale/%CODE%/help_dialog.properties
 44+ targetPattern: potlatch2/l10n/locale/%CODE%/help_dialog.properties
 45+
 46+MANGLER:
 47+ prefix: help-
 48+
 49+---
 50+BASIC:
 51+ id: out-potlatch2-help
 52+ label: Potlatch2 - Main
 53+ display: out/osm/potlatch2/main
 54+
 55+FILES:
 56+ sourcePattern: %GROUPROOT%/potlatch2/l10n/locale/%CODE%/p2_main.properties
 57+ definitionFile: %GROUPROOT%/potlatch2/l10n/locale/%CODE%/p2_main.properties
 58+ targetPattern: potlatch2/l10n/locale/%CODE%/p2_main.properties
 59+
 60+MANGLER:
 61+ prefix: main-
Property changes on: trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
___________________________________________________________________
Added: svn:eol-style
162 + native
Added: svn:keywords
263 + Id
Index: trunk/translatewiki/OpenStreetMap/README
@@ -1,25 +1,19 @@
22 # Read-only repository setup
33 cd %GROUPROOT%
44 git clone git://git.openstreetmap.org/rails.git osm
 5+git clone git://github.com/systemed/potlatch2.git potlatch2
56
67 # Commits
78 * Execute on shell: "bxa osm".
8 -* This will write all languages with 30%+ for the site and Potlatch to ~/export/
 9+* This will write all languages with 35%+ for the site and Potlatch2 to ~/export/
910 * download exports
10 -* diff
11 -* commit
 11+* diff for QA purposes
 12+* commit to the respective repositories
1213
1314 # Documentation - partial /home/betawiki/bin/bxa:
1415 # Export all OpenStreetMap groups in proper structure
1516 if [ $1 = 'osm' ]; then
16 - echo "Exporting OpenStreetMap potlatch and site with 30%+"
17 - echo "Creating export folders..."
18 - mkdir -p $HOME/export/config/potlatch/locales
19 - mkdir -p $HOME/export/config/locales
20 - echo "Exporting potlatch..."
21 - php export.php --target=$HOME/export/potlatch --group=out-osm-potlatch --lang=* --threshold=30
22 - echo "Exporting site..."
23 - php export.php --target=$HOME/export/site --group=out-osm-site --lang=* --threshold=30
24 - rm -rf $HOME/export/config/potlatch/locales/en.yml $HOME/export/config/locales/en.yml $HOME/export/config/potlatch/locales/qqq.yml $HOME/export/config/locales/qqq.yml
 17+ echo "Exporting OpenStreetMap potlatch and site with 35%+"
 18+ php export.php --target=$EXPORTPATH --groupprefix=out-osm- --lang='*' --skip=en,qqq --threshold=35
2519 exit;
2620 fi

Status & tagging log