r69031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69030‎ | r69031 | r69032 >
Date:23:01, 4 July 2010
Author:siebrand
Status:deferred
Tags:
Comment:
* merge Potlatch.yml into OpenStreetMap.yml
* add out-osm as aggregate of out-osm-potlatch and out-osm-site
* group OpenStreetMap groups op Special:Translate
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)
  • /trunk/extensions/Translate/groups/OpenStreetMap/OpenStreetMap.yml (modified) (history)
  • /trunk/extensions/Translate/groups/OpenStreetMap/Potlatch.yml (deleted) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/OpenStreetMap/Potlatch.yml
@@ -1,36 +0,0 @@
2 -BASIC:
3 - id: out-osm-potlatch
4 - label: OpenStreetMap - Potlatch
5 - description: "{{int:bw-desc-osm-potlatch}}"
6 - namespace: NS_OSM
7 - display: out/osm/potlatch
8 - class: FileBasedMessageGroup
9 -
10 -FILES:
11 - class: YamlFFS
12 - sourcePattern: %GROUPROOT%/osm/config/potlatch/locales/%CODE%.yml
13 - codeAsRoot: 1
14 - targetPattern: osm/config/potlatch/locales/%CODE%.yml
15 - codeMap:
16 - be-tarask: be-TARASK
17 - pt-br: pt-BR
18 - sr-ec: sr-EC
19 - zh-cn: zh-CN
20 - zh-tw: zh-TW
21 - zh-hant: zh-HANT
22 -
23 -TAGS:
24 - optional:
25 - - help_html
26 - - inspector_way
27 - - inspector_way_name
28 - - microblog_name_identica
29 - - microblog_name_twitter
30 - - option_layer_digitalglobe_haiti
31 - - option_layer_geoeye_gravitystorm_haiti
32 - - option_layer_geoeye_haiti
33 - - option_layer_geoeye_nypl_haiti
34 - - option_layer_mapnik
35 - - option_layer_osmarender
36 - - option_layer_yahoo
Index: trunk/extensions/Translate/groups/OpenStreetMap/OpenStreetMap.yml
@@ -1,23 +1,40 @@
 2+TEMPLATE:
 3+ BASIC:
 4+ namespace: NS_OSM
 5+ class: FileBasedMessageGroup
 6+
 7+ FILES:
 8+ class: YamlFFS
 9+ codeAsRoot: 1
 10+ codeMap:
 11+ be-tarask: be-TARASK
 12+ pt-br: pt-BR
 13+ sr-ec: sr-EC
 14+ zh-cn: zh-CN
 15+ zh-tw: zh-TW
 16+
217 ---
318 BASIC:
 19+ id: out-osm-0-all
 20+ label: All OpenStreetMap messages
 21+ description: "{{int:bw-desc-openstreetmap}}"
 22+ display: out/osm
 23+ meta: yes
 24+ class: AggregateMessageGroup
 25+GROUPS:
 26+ - out-osm-potlatch
 27+ - out-osm-site
 28+
 29+---
 30+BASIC:
431 id: out-osm-site
532 label: OpenStreetMap - Website
633 description: "{{int:bw-desc-osm-site}}"
7 - namespace: NS_OSM
834 display: out/osm/site
9 - class: FileBasedMessageGroup
1035
1136 FILES:
12 - class: RubyYamlFFS
1337 sourcePattern: %GROUPROOT%/osm/config/locales/%CODE%.yml
14 - codeAsRoot: 1
1538 targetPattern: osm/config/locales/%CODE%.yml
16 - codeMap:
17 - be-tarask: be-TARASK
18 - pt-br: pt-BR
19 - sr-ec: sr-EC
20 - zh-cn: zh-CN
21 - zh-tw: zh-TW
2239
2340 CHECKER:
2441 class: RubyMessageChecker
@@ -72,3 +89,29 @@
7390 - site.edit.anon_edits_link
7491 - site.index.license.license_url
7592 - site.index.license.project_url
 93+
 94+---
 95+BASIC:
 96+ id: out-osm-potlatch
 97+ label: OpenStreetMap - Potlatch
 98+ description: "{{int:bw-desc-osm-potlatch}}"
 99+ display: out/osm/potlatch
 100+
 101+FILES:
 102+ sourcePattern: %GROUPROOT%/osm/config/potlatch/locales/%CODE%.yml
 103+ targetPattern: osm/config/potlatch/locales/%CODE%.yml
 104+
 105+TAGS:
 106+ optional:
 107+ - help_html
 108+ - inspector_way
 109+ - inspector_way_name
 110+ - microblog_name_identica
 111+ - microblog_name_twitter
 112+ - option_layer_digitalglobe_haiti
 113+ - option_layer_geoeye_gravitystorm_haiti
 114+ - option_layer_geoeye_haiti
 115+ - option_layer_geoeye_nypl_haiti
 116+ - option_layer_mapnik
 117+ - option_layer_osmarender
 118+ - option_layer_yahoo
Index: trunk/extensions/Translate/Translate.php
@@ -256,6 +256,7 @@
257257 '/^wikia/' => array( 'wikia' ),
258258 '/^out-mantis/' => array( 'mantis' ),
259259 '/^out-okawix/' => array( 'okawix' ),
 260+ '/^out-osm/' => array( 'osm' ),
260261 '/^out-shapado/' => array( 'shapado' ),
261262 // '/^page\|/' => array( 'page' ),
262263 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r69034Indentation fixes for r69031siebrand23:09, 4 July 2010
r70122Osm should use RubyYamlFFS, seems to be changed in r69031nikerabbit23:47, 28 July 2010

Status & tagging log