r80245 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80244‎ | r80245 | r80246 >
Date:10:23, 14 January 2011
Author:roberthl
Status:deferred
Tags:
Comment:
Add Europeana support to Translate extension.
When importing Java message files that use line-continue, add a space between the two lines.
Modified paths:
  • /trunk/extensions/Translate/FFS.php (modified) (history)
  • /trunk/extensions/Translate/groups/Europeana (added) (history)
  • /trunk/extensions/Translate/groups/Europeana/Europeana.yaml (added) (history)
  • /trunk/extensions/Translate/groups/Europeana/README (added) (history)

Diff [purge]

Index: trunk/extensions/Translate/FFS.php
@@ -311,7 +311,7 @@
312312 $linecontinuation = false;
313313 $valuecont = $line;
314314 $valuecont = str_replace( '\n', "\n", $valuecont );
315 - $value .= $valuecont;
 315+ $value .= ' ' . $valuecont;
316316 } else {
317317 if ( $line === '' ) {
318318 continue;
Index: trunk/extensions/Translate/groups/Europeana/Europeana.yaml
@@ -0,0 +1,89 @@
 2+---
 3+BASIC:
 4+ id: out-europeana
 5+ label: Europeana
 6+ description: "{{int:bw-desc-europeana}}"
 7+ namespace: NS_EUROPEANA
 8+ display: out/europeana/
 9+ class: FileBasedMessageGroup
 10+
 11+FILES:
 12+ class: JavaFFS
 13+ sourcePattern: %GROUPROOT%/europeana/messages_%CODE%.properties
 14+ definitionFile: %GROUPROOT%/europeana/messages_en.properties
 15+ targetPattern: europeana/messages_%CODE%.properties
 16+
 17+TAGS:
 18+ optional:
 19+ - austria_t
 20+ - croatia_t
 21+ - denmark_t
 22+ - finland_t
 23+ - france_t
 24+ - germany_t
 25+ - italyFlorence_t
 26+ - italyRome_t
 27+ - ireland_t
 28+ - netherlands_t
 29+ - portugal_t
 30+ - russiaMoscow_t
 31+ - russiaStPetersburg_t
 32+ - romania_t
 33+ - FYROM_t
 34+ - ukraine_t
 35+ - moldova_t
 36+ - albania_t
 37+ - georgia_t
 38+ - armenia_t
 39+ - bosniaAndHerzegovina_t
 40+ - azerbaijan_t
 41+ - turkey_t
 42+ - bulgaria_t
 43+ - serbia_t
 44+ - slovenia_t
 45+ - switzerland_t
 46+ - uk_t
 47+ - czech_t
 48+ - cyprus_t
 49+ - estonia_t
 50+ - latvia_t
 51+ - lithuania_t
 52+ - hungary_t
 53+ - malta_t
 54+ - poland_t
 55+ - slovakia_t
 56+ - spain_t
 57+ - belgium_t
 58+ - iceland_t
 59+ - norway_t
 60+ - sweden_t
 61+ - liechtenstein_t
 62+ - luxembourg_t
 63+ - greece_t
 64+ - english_t
 65+ - croatian_t
 66+ - czechlanguage_t
 67+ - greek_t
 68+ - estonian_t
 69+ - danish_t
 70+ - dutch_t
 71+ - finnish_t
 72+ - french_t
 73+ - german_t
 74+ - hungarian_t
 75+ - italian_t
 76+ - latvian_t
 77+ - lithuanian_t
 78+ - luxemburgish_t
 79+ - maltese_t
 80+ - norwegian_t
 81+ - polish_t
 82+ - portuguese_t
 83+ - romanian_t
 84+ - russian_t
 85+ - serbian_t
 86+ - slovak_t
 87+ - slovenian_t
 88+ - spanish_t
 89+ - icelandic_t
 90+ - swedish_t
Index: trunk/extensions/Translate/groups/Europeana/README
@@ -0,0 +1,7 @@
 2+== Setup ==
 3+ cd %GROUPROOT%
 4+ svn co http://www.europeanalabs.org/svn/europeana/trunk/portal-full/src/main/message_keys/ europeana
 5+
 6+Add to your LocalSettings.php:
 7+ wfAddNamespace( 1204, 'Europeana' );
 8+ $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/Europeana/Europeana.yaml

Follow-up revisions

RevisionCommit summaryAuthorDate
r80247Partially revert r80245, space must not be added to match Java interpretation.roberthl10:35, 14 January 2011

Status & tagging log