https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112419
Revision: 112419
Author: siebrand
Date: 2012-02-26 09:13:12 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------
Beta support for Potlatch2
Modified Paths:
--------------
trunk/translatewiki/OpenStreetMap/README
Added Paths:
-----------
trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
Added: trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
===================================================================
--- trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
(rev 0)
+++ trunk/translatewiki/OpenStreetMap/Potlatch2.yaml 2012-02-26 09:13:12 UTC
(rev 112419)
@@ -0,0 +1,60 @@
+TEMPLATE:
+ BASIC:
+ namespace: NS_OSM
+ description: "{{int:translate-group-desc-potlatch2}}"
+ class: FileBasedMessageGroup
+
+ FILES:
+ class: JavaFFS
+ codeMap:
+ en: en_US
+ cs: cs_CZ
+ de: de_DE
+ en-gb: en_GB
+ es: es_ES
+ fr: fr_FR
+ it: it_IT
+ ja: ja_JP
+ nb: nb_NO
+ nl: nl_NL
+ nl-be: nl_BE
+ nn: nn_NO
+ pl: pl_PL
+ sv: sv_SE
+ pt: pt_PT
+ pt-br: pt_BR
+ zh-hans: zh_CN
+ zh-hant: zh_TW
+
+ MANGLER:
+ class: StringMatcher
+ patterns:
+ - "*"
+
+---
+BASIC:
+ id: out-potlatch2-help
+ label: Potlatch2 - Help
+ display: out/osm/potlatch2/help
+
+FILES:
+ sourcePattern:
%GROUPROOT%/potlatch2/l10n/locale/%CODE%/help_dialog.properties
+ definitionFile:
%GROUPROOT%/potlatch2/l10n/locale/%CODE%/help_dialog.properties
+ targetPattern: potlatch2/l10n/locale/%CODE%/help_dialog.properties
+
+MANGLER:
+ prefix: help-
+
+---
+BASIC:
+ id: out-potlatch2-help
+ label: Potlatch2 - Main
+ display: out/osm/potlatch2/main
+
+FILES:
+ sourcePattern: %GROUPROOT%/potlatch2/l10n/locale/%CODE%/p2_main.properties
+ definitionFile: %GROUPROOT%/potlatch2/l10n/locale/%CODE%/p2_main.properties
+ targetPattern: potlatch2/l10n/locale/%CODE%/p2_main.properties
+
+MANGLER:
+ prefix: main-
Property changes on: trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Modified: trunk/translatewiki/OpenStreetMap/README
===================================================================
--- trunk/translatewiki/OpenStreetMap/README 2012-02-26 09:08:15 UTC (rev
112418)
+++ trunk/translatewiki/OpenStreetMap/README 2012-02-26 09:13:12 UTC (rev
112419)
@@ -1,25 +1,19 @@
# Read-only repository setup
cd %GROUPROOT%
git clone git://git.openstreetmap.org/rails.git osm
+git clone git://github.com/systemed/potlatch2.git potlatch2
# Commits
* Execute on shell: "bxa osm".
-* This will write all languages with 30%+ for the site and Potlatch to
~/export/
+* This will write all languages with 35%+ for the site and Potlatch2 to
~/export/
* download exports
-* diff
-* commit
+* diff for QA purposes
+* commit to the respective repositories
# Documentation - partial /home/betawiki/bin/bxa:
# Export all OpenStreetMap groups in proper structure
if [ $1 = 'osm' ]; then
- echo "Exporting OpenStreetMap potlatch and site with 30%+"
- echo "Creating export folders..."
- mkdir -p $HOME/export/config/potlatch/locales
- mkdir -p $HOME/export/config/locales
- echo "Exporting potlatch..."
- php export.php --target=$HOME/export/potlatch --group=out-osm-potlatch
--lang=* --threshold=30
- echo "Exporting site..."
- php export.php --target=$HOME/export/site --group=out-osm-site
--lang=* --threshold=30
- 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
+ echo "Exporting OpenStreetMap potlatch and site with 35%+"
+ php export.php --target=$EXPORTPATH --groupprefix=out-osm- --lang='*'
--skip=en,qqq --threshold=35
exit;
fi
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs