[MediaWiki-CVS] SVN: [112478] trunk/translatewiki/Shapado/Shapado.yaml

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112478

Revision: 112478
Author:   siebrand
Date: 2012-02-27 10:51:57 + (Mon, 27 Feb 2012)
Log Message:
---
Update tags.

Modified Paths:
--
trunk/translatewiki/Shapado/Shapado.yaml

Modified: trunk/translatewiki/Shapado/Shapado.yaml
===
--- trunk/translatewiki/Shapado/Shapado.yaml2012-02-27 10:43:38 UTC (rev 
112477)
+++ trunk/translatewiki/Shapado/Shapado.yaml2012-02-27 10:51:57 UTC (rev 
112478)
@@ -441,6 +441,10 @@
 MANGLER:
   prefix: shared-
 
+TAGS:
+  optional:
+- shared-shared.empty.filtered_by_language_questions.description.text
+- shared-shared.empty.filtered_questions.description.text
 ---
 BASIC:
   id: shapado-themes


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112484] trunk/extensions/Translate/MediaWikiMessageChecker.php

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112484

Revision: 112484
Author:   siebrand
Date: 2012-02-27 13:33:26 + (Mon, 27 Feb 2012)
Log Message:
---
Fix regression in r111272 addressed in CR of r111825.

Modified Paths:
--
trunk/extensions/Translate/MediaWikiMessageChecker.php

Modified: trunk/extensions/Translate/MediaWikiMessageChecker.php
===
--- trunk/extensions/Translate/MediaWikiMessageChecker.php  2012-02-27 
13:18:43 UTC (rev 112483)
+++ trunk/extensions/Translate/MediaWikiMessageChecker.php  2012-02-27 
13:33:26 UTC (rev 112484)
@@ -236,7 +236,7 @@

'translate-checks-format',
wfMessage(

'translate-checks-malformed',
-   $defArray[$i]
+   $traArray[$i]
)-text()
);
continue;


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112485] trunk/extensions/ArticleComments

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112485

Revision: 112485
Author:   siebrand
Date: 2012-02-27 14:41:25 + (Mon, 27 Feb 2012)
Log Message:
---
Add special page aliases.
Add some message documentation.
Add fixme for large init file.

Modified Paths:
--
trunk/extensions/ArticleComments/ArticleComments.i18n.php
trunk/extensions/ArticleComments/ArticleComments.php

Added Paths:
---
trunk/extensions/ArticleComments/ArticleComments.alias.php

Added: trunk/extensions/ArticleComments/ArticleComments.alias.php
===
--- trunk/extensions/ArticleComments/ArticleComments.alias.php  
(rev 0)
+++ trunk/extensions/ArticleComments/ArticleComments.alias.php  2012-02-27 
14:41:25 UTC (rev 112485)
@@ -0,0 +1,14 @@
+?php
+/**
+ * Aliases for extension ArticleComments
+ *
+ * @file
+ * @ingroup Extensions
+ */
+
+$specialPageAliases = array();
+
+/** English (English) */
+$specialPageAliases['en'] = array(
+   'ProcessComment' = array( 'ProcessComment' ),
+);


Property changes on: trunk/extensions/ArticleComments/ArticleComments.alias.php
___
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Modified: trunk/extensions/ArticleComments/ArticleComments.i18n.php
===
--- trunk/extensions/ArticleComments/ArticleComments.i18n.php   2012-02-27 
13:33:26 UTC (rev 112484)
+++ trunk/extensions/ArticleComments/ArticleComments.i18n.php   2012-02-27 
14:41:25 UTC (rev 112485)
@@ -67,6 +67,7 @@
'article-comments-commenter-said' = '$1 is a value filled into a form 
field by a commenter. It is not necessarily related to any wiki user name.',
'article-comments-summary' = '$1 is a value filled into a form field 
by a commenter. It is not necessarily related to any wiki user name.',
'article-comments-comment-bad-mode' = '{{doc-important|Do not 
translate the words plain, normal and wiki.}}',
+   'processcomment' = 'Special page title and link description on 
Special:SpecialPages.',
 );
 
 /** Afrikaans (Afrikaans)

Modified: trunk/extensions/ArticleComments/ArticleComments.php
===
--- trunk/extensions/ArticleComments/ArticleComments.php2012-02-27 
13:33:26 UTC (rev 112484)
+++ trunk/extensions/ArticleComments/ArticleComments.php2012-02-27 
14:41:25 UTC (rev 112485)
@@ -22,6 +22,8 @@
  * comments /
  * Note: Typically this would be placed at the end of the article text.
  * Version Notes:
+ * version 0.6.1:
+ * Added internationalisation for special page names.
  * version 0.6:
  * Added comments inside comment tags instead of 
article-comments-new-comment message.
  * version 0.5.1:
@@ -85,13 +87,15 @@
'path' = __FILE__,
'name' = 'ArticleComments',
'author' = array( 'Jim R. Wilson', 'Platonides' ),
-   'version' = '0.6',
+   'version' = '0.6.1',
'url' = 'https://www.mediawiki.org/wiki/Extension:ArticleComments',
'descriptionmsg' = 'article-comments-desc',
 );
 
 # Add extension internationalization messages
-$wgExtensionMessagesFiles['ArticleComments'] = dirname( __FILE__ ) . 
'/ArticleComments.i18n.php';
+$dir = dirname( __FILE__ ) . '/';
+$wgExtensionMessagesFiles['ArticleComments'] = $dir . 
'ArticleComments.i18n.php';
+$wgExtensionMessagesFiles['ArticleCommentsAlias'] = $dir . 
'ArticleComments.alias.php';
 
 # Attach hooks
 $wgHooks['ParserFirstCallInit'][] = 'wfArticleCommentsParserSetup';
@@ -118,6 +122,8 @@
 # Sets up special page to handle comment submission
 $wgSpecialPages['ProcessComment'] = 'SpecialProcessComment';
 
+// @todo FIXME: Put hooks and class in separate files and use autoloader.
+
 # Sets up the ArticleComments Parser hook for comments /
 function wfArticleCommentsParserSetup( $parser ) {
$parser-setHook( 'comments', 'wfArticleCommentsParserHook' );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112486] trunk/extensions/SemanticForms/languages/SF_Messages.php

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112486

Revision: 112486
Author:   siebrand
Date: 2012-02-27 14:51:00 + (Mon, 27 Feb 2012)
Log Message:
---
Tweak two messages.

Inspired by 
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Sf_formstart_badform/fi

Modified Paths:
--
trunk/extensions/SemanticForms/languages/SF_Messages.php

Modified: trunk/extensions/SemanticForms/languages/SF_Messages.php
===
--- trunk/extensions/SemanticForms/languages/SF_Messages.php2012-02-27 
14:41:25 UTC (rev 112485)
+++ trunk/extensions/SemanticForms/languages/SF_Messages.php2012-02-27 
14:51:00 UTC (rev 112486)
@@ -110,8 +110,8 @@
'sf_createclass_success' = 'Properties, template, form and 
category will be created.',
'sf_createclass_create'  = 'Create',
'formstart'  = 'Start of form',
-   'sf_formstart_badform'   = 'Error: no form page was found 
at $1.',
-   'sf_formstart_badtitle'  = 'Error: $1 is an invalid 
title for a page.',
+   'sf_formstart_badform'   = 'Error: No form was found on 
page $1.',
+   'sf_formstart_badtitle'  = 'Error: $1 is an invalid page 
title.',
'sf_formstart_docu'  = 'Enter the name of a page here, 
to be edited with the form $1.
 If this page already exists, you will be sent to the form for editing that 
page.
 Otherwise, you will be sent to the form for adding the page.',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112496] trunk/extensions/NamespacePaths/NamespacePaths.i18n.php

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112496

Revision: 112496
Author:   siebrand
Date: 2012-02-27 18:01:34 + (Mon, 27 Feb 2012)
Log Message:
---
Update description message.

Modified Paths:
--
trunk/extensions/NamespacePaths/NamespacePaths.i18n.php

Modified: trunk/extensions/NamespacePaths/NamespacePaths.i18n.php
===
--- trunk/extensions/NamespacePaths/NamespacePaths.i18n.php 2012-02-27 
17:48:28 UTC (rev 112495)
+++ trunk/extensions/NamespacePaths/NamespacePaths.i18n.php 2012-02-27 
18:01:34 UTC (rev 112496)
@@ -12,7 +12,7 @@
  * @author Daniel Friesen
  */
 $messages['en'] = array(
-   'namespacepaths-desc' = 'Allows custom article paths to be mapped to 
namespaces of the wiki. Eg: Mapping pages like Help:A to /help/Page instead of 
/wiki/Help:Page.',
+   'namespacepaths-desc' = 'Allows custom article paths to be mapped to 
namespaces; for example mapping pages like Help:Page to /help/Page instead of 
/wiki/Help:Page',
 );
 
 /** Asturian (Asturianu)


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112528] trunk/extensions/Narayam/Narayam.php

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112528

Revision: 112528
Author:   siebrand
Date: 2012-02-27 21:57:24 + (Mon, 27 Feb 2012)
Log Message:
---
Take Gujarari input methods out of beta. Helps in resolving bug 33423.

Modified Paths:
--
trunk/extensions/Narayam/Narayam.php

Modified: trunk/extensions/Narayam/Narayam.php
===
--- trunk/extensions/Narayam/Narayam.php2012-02-27 21:56:56 UTC (rev 
112527)
+++ trunk/extensions/Narayam/Narayam.php2012-02-27 21:57:24 UTC (rev 
112528)
@@ -89,8 +89,8 @@
'gom-deva-inscript' = array( 
'ext.narayam.rules.gom-deva-inscript', 'beta' ),
),
'gu' = array(
-   'gu' = array( 'ext.narayam.rules.gu', 'beta' ),
-   'gu-inscript' = array( 'ext.narayam.rules.gu-inscript', 'beta' 
),
+   'gu' = 'ext.narayam.rules.gu',
+   'gu-inscript' = 'ext.narayam.rules.gu-inscript',
),
'he' = array(
'he-standard-2011-extonly' =  array( 
'ext.narayam.rules.he-standard-2011-extonly', 'beta' ),


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112541] branches/wmf

2012-02-27 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112541

Revision: 112541
Author:   siebrand
Date: 2012-02-27 23:36:33 + (Mon, 27 Feb 2012)
Log Message:
---
MFT r112528. Take Gujarati input methods out of beta for bug 33423.

Modified Paths:
--
branches/wmf/1.18wmf1/extensions/Narayam/Narayam.php
branches/wmf/1.19wmf1/extensions/Narayam/Narayam.php

Modified: branches/wmf/1.18wmf1/extensions/Narayam/Narayam.php
===
--- branches/wmf/1.18wmf1/extensions/Narayam/Narayam.php2012-02-27 
23:17:11 UTC (rev 112540)
+++ branches/wmf/1.18wmf1/extensions/Narayam/Narayam.php2012-02-27 
23:36:33 UTC (rev 112541)
@@ -81,8 +81,8 @@
'gom-deva-inscript' = array( 
'ext.narayam.rules.gom-deva-inscript', 'beta' ),
),
'gu' = array(
-   'gu' = array( 'ext.narayam.rules.gu', 'beta' ),
-   'gu-inscript' = array( 'ext.narayam.rules.gu-inscript', 'beta' 
),
+   'gu' = 'ext.narayam.rules.gu',
+   'gu-inscript' = 'ext.narayam.rules.gu-inscript',
),
'he' = array(
'he-standard-2011-extonly' =  array( 
'ext.narayam.rules.he-standard-2011-extonly', 'beta' ),

Modified: branches/wmf/1.19wmf1/extensions/Narayam/Narayam.php
===
--- branches/wmf/1.19wmf1/extensions/Narayam/Narayam.php2012-02-27 
23:17:11 UTC (rev 112540)
+++ branches/wmf/1.19wmf1/extensions/Narayam/Narayam.php2012-02-27 
23:36:33 UTC (rev 112541)
@@ -81,8 +81,8 @@
'gom-deva-inscript' = array( 
'ext.narayam.rules.gom-deva-inscript', 'beta' ),
),
'gu' = array(
-   'gu' = array( 'ext.narayam.rules.gu', 'beta' ),
-   'gu-inscript' = array( 'ext.narayam.rules.gu-inscript', 'beta' 
),
+   'gu' = 'ext.narayam.rules.gu',
+   'gu-inscript' = 'ext.narayam.rules.gu-inscript',
),
'he' = array(
'he-standard-2011-extonly' =  array( 
'ext.narayam.rules.he-standard-2011-extonly', 'beta' ),


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112417] trunk/translatewiki/MediaWiki/mediawiki-defines.txt

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112417

Revision: 112417
Author:   siebrand
Date: 2012-02-26 08:54:09 + (Sun, 26 Feb 2012)
Log Message:
---
Abbreviations are confusing.

Modified Paths:
--
trunk/translatewiki/MediaWiki/mediawiki-defines.txt

Modified: trunk/translatewiki/MediaWiki/mediawiki-defines.txt
===
--- trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-25 21:39:54 UTC 
(rev 112416)
+++ trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-26 08:54:09 UTC 
(rev 112417)
@@ -1684,7 +1684,7 @@
 #descmsg = lcadft-desc
 
 Translate - Message Group Descriptions
-id = ext-translate-groupdescs
+id = ext-translate-messagegroupdescriptions
 file = Translate/TranslateGroupDescriptions.i18n.php
 descmsg = translategroupdescriptions-desc
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112418] trunk/extensions/Translate/TranslateGroupDescriptions.i18n. php

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112418

Revision: 112418
Author:   siebrand
Date: 2012-02-26 09:08:15 + (Sun, 26 Feb 2012)
Log Message:
---
Prepare for adding Potlatch2.

Modified Paths:
--
trunk/extensions/Translate/TranslateGroupDescriptions.i18n.php

Modified: trunk/extensions/Translate/TranslateGroupDescriptions.i18n.php
===
--- trunk/extensions/Translate/TranslateGroupDescriptions.i18n.php  
2012-02-26 08:54:09 UTC (rev 112417)
+++ trunk/extensions/Translate/TranslateGroupDescriptions.i18n.php  
2012-02-26 09:08:15 UTC (rev 112418)
@@ -58,6 +58,7 @@
'bw-desc-openlayers' = '[[Translating:OpenLayers|OpenLayers]] is a 
dynamic map generator in JavaScript',
'bw-desc-openstreetmap' = 'All messages related to 
[[Translating:OpenStreetMap|OpenStreetMap]]',
'bw-desc-osm-site' = '[[Translating:OpenStreetMap|OpenStreetMap]] is 
an editable map of the whole world',
+   'translate-group-desc-potlatch2' = 
'[[Translating:OpenStreetMap|Potlatch2]] is a Flash-based OpenStreetMap editor',
'translate-group-desc-pywikipedia' = 
'[[Translating:Pywikipedia|Pywikipedia]] is a collection of tools to edit 
Wikipedia',
'bw-desc-shapado' = '[[Translating:Shapado|Shapado]] is web-based 
Question and Answer software',
'bw-desc-statusnet' = '[[Translating:StatusNet|StatusNet]] is a 
microblogging server',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112419] trunk/translatewiki/OpenStreetMap

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112419

Revision: 112419
Author:   siebrand
Date: 2012-02-26 09:13:12 + (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.yaml2012-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/README2012-02-26 09:08:15 UTC (rev 
112418)
+++ trunk/translatewiki/OpenStreetMap/README2012-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
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112420] trunk/translatewiki/OpenStreetMap/Potlatch2.yaml

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112420

Revision: 112420
Author:   siebrand
Date: 2012-02-26 09:29:12 + (Sun, 26 Feb 2012)
Log Message:
---
Fix group ID.

Modified Paths:
--
trunk/translatewiki/OpenStreetMap/Potlatch2.yaml

Modified: trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
===
--- trunk/translatewiki/OpenStreetMap/Potlatch2.yaml2012-02-26 09:13:12 UTC 
(rev 112419)
+++ trunk/translatewiki/OpenStreetMap/Potlatch2.yaml2012-02-26 09:29:12 UTC 
(rev 112420)
@@ -47,7 +47,7 @@
 
 ---
 BASIC:
-  id: out-potlatch2-help
+  id: out-potlatch2-main
   label: Potlatch2 - Main
   display: out/osm/potlatch2/main
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112421] trunk/translatewiki/OpenStreetMap/Potlatch2.yaml

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112421

Revision: 112421
Author:   siebrand
Date: 2012-02-26 09:35:19 + (Sun, 26 Feb 2012)
Log Message:
---
Fix grouping.

Modified Paths:
--
trunk/translatewiki/OpenStreetMap/Potlatch2.yaml

Modified: trunk/translatewiki/OpenStreetMap/Potlatch2.yaml
===
--- trunk/translatewiki/OpenStreetMap/Potlatch2.yaml2012-02-26 09:29:12 UTC 
(rev 112420)
+++ trunk/translatewiki/OpenStreetMap/Potlatch2.yaml2012-02-26 09:35:19 UTC 
(rev 112421)
@@ -33,7 +33,7 @@
 
 ---
 BASIC:
-  id: out-potlatch2-help
+  id: out-osm-potlatch2-help
   label: Potlatch2 - Help
   display: out/osm/potlatch2/help
 
@@ -47,7 +47,7 @@
 
 ---
 BASIC:
-  id: out-potlatch2-main
+  id: out-osm-potlatch2-main
   label: Potlatch2 - Main
   display: out/osm/potlatch2/main
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112422] trunk/translatewiki/MediaWiki/mediawiki-defines.txt

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112422

Revision: 112422
Author:   siebrand
Date: 2012-02-26 09:37:08 + (Sun, 26 Feb 2012)
Log Message:
---
A little more tweaking.

Modified Paths:
--
trunk/translatewiki/MediaWiki/mediawiki-defines.txt

Modified: trunk/translatewiki/MediaWiki/mediawiki-defines.txt
===
--- trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-26 09:35:19 UTC 
(rev 112421)
+++ trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-26 09:37:08 UTC 
(rev 112422)
@@ -1683,8 +1683,8 @@
 #aliasfile = Translate/lcadft/LCADFT.alias.php
 #descmsg = lcadft-desc
 
-Translate - Message Group Descriptions
-id = ext-translate-messagegroupdescriptions
+Translate - Group Descriptions
+id = ext-translate-groupdescriptions
 file = Translate/TranslateGroupDescriptions.i18n.php
 descmsg = translategroupdescriptions-desc
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112424] trunk/phase3/includes

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112424

Revision: 112424
Author:   siebrand
Date: 2012-02-26 11:49:01 + (Sun, 26 Feb 2012)
Log Message:
---
Follow-up r112410, r112412: Cheaper processing using plain().

Modified Paths:
--
trunk/phase3/includes/Linker.php
trunk/phase3/includes/Pager.php
trunk/phase3/includes/specials/SpecialContributions.php

Modified: trunk/phase3/includes/Linker.php
===
--- trunk/phase3/includes/Linker.php2012-02-26 11:39:49 UTC (rev 112423)
+++ trunk/phase3/includes/Linker.php2012-02-26 11:49:01 UTC (rev 112424)
@@ -1399,7 +1399,7 @@
return '';
} else {
$formatted = self::formatComment( $comment, $title, 
$local );
-   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted );
+   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted )-plain();
return  span class=\comment\$formatted/span;
}
}
@@ -1441,7 +1441,7 @@
} else {
global $wgLang;
$stxt = wfMsgExt( 'nbytes', 'parsemag', 
$wgLang-formatNum( $size ) );
-   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt );
+   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt 
)-plain();
}
$stxt = htmlspecialchars( $stxt );
return span class=\history-size\$stxt/span;
@@ -1870,7 +1870,7 @@
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
$tag = $restricted ? 'strong' : 'span';
$link = self::link( $sp, $html, array(), $query, array( 
'known', 'noclasses' ) );
-   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link ) );
+   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link )-plain() );
}
 
/**
@@ -1883,7 +1883,7 @@
 */
public static function revDeleteLinkDisabled( $delete = true ) {
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
-   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html ) );
+   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html 
)-plain() );
}
 
/* Deprecated methods */

Modified: trunk/phase3/includes/Pager.php
===
--- trunk/phase3/includes/Pager.php 2012-02-26 11:39:49 UTC (rev 112423)
+++ trunk/phase3/includes/Pager.php 2012-02-26 11:49:01 UTC (rev 112424)
@@ -771,7 +771,7 @@
$limits = $this-getLanguage()-pipeList( $limitLinks );
$firstLastLinks = wfMessage( 'parentheses' )-rawParams( 
{$pagingLinks['first']} .
wfMsgExt( 'pipe-separator' , 'escapenoentities' ) .
-   {$pagingLinks['last']} );
+   {$pagingLinks['last']} )-plain();
 
$this-mNavigationBar = $firstLastLinks . ' ' .
wfMsgHTML(

Modified: trunk/phase3/includes/specials/SpecialContributions.php
===
--- trunk/phase3/includes/specials/SpecialContributions.php 2012-02-26 
11:39:49 UTC (rev 112423)
+++ trunk/phase3/includes/specials/SpecialContributions.php 2012-02-26 
11:49:01 UTC (rev 112424)
@@ -254,7 +254,7 @@
// @todo Should this be removed at some point?
$oldMsg = $this-msg( 'contribsub' );
if ( $oldMsg-exists() ) {
-   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links );
+   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links )-plain();
return $oldMsg-rawParams( $user 
$linksWithParentheses );
} else {
return $this-msg( 'contribsub2' )-rawParams( $user, 
$links );
@@ -839,7 +839,7 @@
$del .= ' ';
}
 
-   $diffHistLinks = $this-msg( 'parentheses' )-rawParams( 
$difftext . $this-messages['pipe-separator'] . $histlink );
+   $diffHistLinks = $this-msg( 'parentheses' )-rawParams( 
$difftext . $this-messages['pipe-separator'] . $histlink )-plain();
$ret = {$del}{$d} {$diffHistLinks}{$chardiff}{$nflag}{$mflag} 
{$link}{$userlink} {$comment} {$topmarktext};
 
# Denote if username is redacted for this edit


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org

[MediaWiki-CVS] SVN: [112425] trunk/extensions/Translate

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112425

Revision: 112425
Author:   siebrand
Date: 2012-02-26 12:02:25 + (Sun, 26 Feb 2012)
Log Message:
---
Follow-up r112014: Remove 1.17 BC linker usage.

Modified Paths:
--
trunk/extensions/Translate/TranslateHooks.php
trunk/extensions/Translate/specials/SpecialLanguageStats.php
trunk/extensions/Translate/specials/SpecialManageGroups.php
trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
trunk/extensions/Translate/specials/SpecialTranslate.php
trunk/extensions/Translate/tag/PageTranslationHooks.php
trunk/extensions/Translate/tag/SpecialPageTranslation.php
trunk/extensions/Translate/utils/MessageTable.php
trunk/extensions/Translate/utils/StatsTable.php
trunk/extensions/Translate/utils/TranslationHelpers.php

Modified: trunk/extensions/Translate/TranslateHooks.php
===
--- trunk/extensions/Translate/TranslateHooks.php   2012-02-26 11:49:01 UTC 
(rev 112424)
+++ trunk/extensions/Translate/TranslateHooks.php   2012-02-26 12:02:25 UTC 
(rev 112425)
@@ -313,11 +313,10 @@
global $wgLang, $wgContLang;
 
$language = $forUI === null ? $wgContLang : $wgLang;
-   $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new 
Linker;
 
if ( $action === 'message' ) {
$link = $forUI ?
-   $linker-link( $title, null, array(), array( 
'oldid' = $params[0] ) ) :
+   Linker::link( $title, null, array(), array( 
'oldid' = $params[0] ) ) :
$title-getPrefixedText();
return wfMessage( 'logentry-translationreview-message' 
)-params(
'', // User link in the new system
@@ -339,7 +338,7 @@
$newState = $newStateMessage-isBlank() ? $newState : 
$newStateMessage-text();
 
$link = $forUI ?
-   $linker-link( $title, $groupLabel, array(), 
array( 'language' = $languageCode ) ) :
+   Linker::link( $title, $groupLabel, array(), 
array( 'language' = $languageCode ) ) :
$groupLabel;
 
return wfMessage( 'logentry-groupreview-message' 
)-params(

Modified: trunk/extensions/Translate/specials/SpecialLanguageStats.php
===
--- trunk/extensions/Translate/specials/SpecialLanguageStats.php
2012-02-26 11:49:01 UTC (rev 112424)
+++ trunk/extensions/Translate/specials/SpecialLanguageStats.php
2012-02-26 12:02:25 UTC (rev 112425)
@@ -225,9 +225,8 @@
protected function outputIntroduction() {
global $wgOut, $wgLang, $wgUser;
 
-   $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new 
Linker;
$languageName = TranslateUtils::getLanguageName( $this-target, 
false, $wgLang-getCode() );
-   $rcInLangLink = $linker-link(
+   $rcInLangLink = Linker::link(
SpecialPage::getTitleFor( 'Translate', '!recent' ),
wfMsgHtml( 'languagestats-recenttranslations' ),
array(),

Modified: trunk/extensions/Translate/specials/SpecialManageGroups.php
===
--- trunk/extensions/Translate/specials/SpecialManageGroups.php 2012-02-26 
11:49:01 UTC (rev 112424)
+++ trunk/extensions/Translate/specials/SpecialManageGroups.php 2012-02-26 
12:02:25 UTC (rev 112425)
@@ -44,7 +44,6 @@
 
public function execute( $par ) {
global $wgRequest;
-   $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new 
Linker;
 
$this-out-setPageTitle( htmlspecialchars( wfMsg( 
'translate-managegroups' ) ) );
 
@@ -102,7 +101,7 @@
wfDebug( __METHOD__ . : {$group-getId()}\n );
 
$id = $group-getId();
-   $link = $linker-link( $this-getTitle(), 
$group-getLabel(),
+   $link = Linker::link( $this-getTitle(), 
$group-getLabel(),
array( 'id' = mw-group-$id ), array( 'group' 
= $id ) );
$out = $link . $separator;
 
@@ -417,8 +416,7 @@
if ( $code === 'en' ) {
$this-doModLangs( $group );
} else {
-   $linker = class_exists( 'DummyLinker' ) ? new 
DummyLinker : new Linker;
-   $this-out-addHTML( 'p' . $linker-link(
+   $this-out-addHTML( 'p' . Linker::link(
$this-getTitle(),
wfMsgHtml( 'translate-manage-return-to-group' ),
array

[MediaWiki-CVS] SVN: [112426] trunk/phase3/includes

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112426

Revision: 112426
Author:   siebrand
Date: 2012-02-26 12:07:21 + (Sun, 26 Feb 2012)
Log Message:
---
Follow-up r112424: Per IAlex on IRC: Use escape() instead of plain() for 
improved security.

Modified Paths:
--
trunk/phase3/includes/Linker.php
trunk/phase3/includes/Pager.php
trunk/phase3/includes/specials/SpecialContributions.php

Modified: trunk/phase3/includes/Linker.php
===
--- trunk/phase3/includes/Linker.php2012-02-26 12:02:25 UTC (rev 112425)
+++ trunk/phase3/includes/Linker.php2012-02-26 12:07:21 UTC (rev 112426)
@@ -1399,7 +1399,7 @@
return '';
} else {
$formatted = self::formatComment( $comment, $title, 
$local );
-   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted )-plain();
+   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted )-escape();
return  span class=\comment\$formatted/span;
}
}
@@ -1441,7 +1441,7 @@
} else {
global $wgLang;
$stxt = wfMsgExt( 'nbytes', 'parsemag', 
$wgLang-formatNum( $size ) );
-   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt 
)-plain();
+   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt 
)-escape();
}
$stxt = htmlspecialchars( $stxt );
return span class=\history-size\$stxt/span;
@@ -1870,7 +1870,7 @@
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
$tag = $restricted ? 'strong' : 'span';
$link = self::link( $sp, $html, array(), $query, array( 
'known', 'noclasses' ) );
-   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link )-plain() );
+   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link )-escape() );
}
 
/**
@@ -1883,7 +1883,7 @@
 */
public static function revDeleteLinkDisabled( $delete = true ) {
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
-   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html 
)-plain() );
+   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html 
)-escape() );
}
 
/* Deprecated methods */

Modified: trunk/phase3/includes/Pager.php
===
--- trunk/phase3/includes/Pager.php 2012-02-26 12:02:25 UTC (rev 112425)
+++ trunk/phase3/includes/Pager.php 2012-02-26 12:07:21 UTC (rev 112426)
@@ -771,7 +771,7 @@
$limits = $this-getLanguage()-pipeList( $limitLinks );
$firstLastLinks = wfMessage( 'parentheses' )-rawParams( 
{$pagingLinks['first']} .
wfMsgExt( 'pipe-separator' , 'escapenoentities' ) .
-   {$pagingLinks['last']} )-plain();
+   {$pagingLinks['last']} )-escape();
 
$this-mNavigationBar = $firstLastLinks . ' ' .
wfMsgHTML(

Modified: trunk/phase3/includes/specials/SpecialContributions.php
===
--- trunk/phase3/includes/specials/SpecialContributions.php 2012-02-26 
12:02:25 UTC (rev 112425)
+++ trunk/phase3/includes/specials/SpecialContributions.php 2012-02-26 
12:07:21 UTC (rev 112426)
@@ -254,7 +254,7 @@
// @todo Should this be removed at some point?
$oldMsg = $this-msg( 'contribsub' );
if ( $oldMsg-exists() ) {
-   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links )-plain();
+   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links )-escape();
return $oldMsg-rawParams( $user 
$linksWithParentheses );
} else {
return $this-msg( 'contribsub2' )-rawParams( $user, 
$links );
@@ -839,7 +839,7 @@
$del .= ' ';
}
 
-   $diffHistLinks = $this-msg( 'parentheses' )-rawParams( 
$difftext . $this-messages['pipe-separator'] . $histlink )-plain();
+   $diffHistLinks = $this-msg( 'parentheses' )-rawParams( 
$difftext . $this-messages['pipe-separator'] . $histlink )-escape();
$ret = {$del}{$d} {$diffHistLinks}{$chardiff}{$nflag}{$mflag} 
{$link}{$userlink} {$comment} {$topmarktext};
 
# Denote if username is redacted for this edit

[MediaWiki-CVS] SVN: [112427] trunk/phase3/includes

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112427

Revision: 112427
Author:   siebrand
Date: 2012-02-26 12:11:35 + (Sun, 26 Feb 2012)
Log Message:
---
Wow. Messy. Follow-up r112426, r112424: Fix incorrect calls. Should have been 
escaped() instead of escape().

Modified Paths:
--
trunk/phase3/includes/Linker.php
trunk/phase3/includes/Pager.php
trunk/phase3/includes/specials/SpecialContributions.php

Modified: trunk/phase3/includes/Linker.php
===
--- trunk/phase3/includes/Linker.php2012-02-26 12:07:21 UTC (rev 112426)
+++ trunk/phase3/includes/Linker.php2012-02-26 12:11:35 UTC (rev 112427)
@@ -1399,7 +1399,7 @@
return '';
} else {
$formatted = self::formatComment( $comment, $title, 
$local );
-   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted )-escape();
+   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted )-escaped();
return  span class=\comment\$formatted/span;
}
}
@@ -1441,7 +1441,7 @@
} else {
global $wgLang;
$stxt = wfMsgExt( 'nbytes', 'parsemag', 
$wgLang-formatNum( $size ) );
-   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt 
)-escape();
+   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt 
)-escaped();
}
$stxt = htmlspecialchars( $stxt );
return span class=\history-size\$stxt/span;
@@ -1870,7 +1870,7 @@
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
$tag = $restricted ? 'strong' : 'span';
$link = self::link( $sp, $html, array(), $query, array( 
'known', 'noclasses' ) );
-   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link )-escape() );
+   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link )-escaped() );
}
 
/**
@@ -1883,7 +1883,7 @@
 */
public static function revDeleteLinkDisabled( $delete = true ) {
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
-   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html 
)-escape() );
+   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html 
)-escaped() );
}
 
/* Deprecated methods */

Modified: trunk/phase3/includes/Pager.php
===
--- trunk/phase3/includes/Pager.php 2012-02-26 12:07:21 UTC (rev 112426)
+++ trunk/phase3/includes/Pager.php 2012-02-26 12:11:35 UTC (rev 112427)
@@ -771,7 +771,7 @@
$limits = $this-getLanguage()-pipeList( $limitLinks );
$firstLastLinks = wfMessage( 'parentheses' )-rawParams( 
{$pagingLinks['first']} .
wfMsgExt( 'pipe-separator' , 'escapenoentities' ) .
-   {$pagingLinks['last']} )-escape();
+   {$pagingLinks['last']} )-escaped();
 
$this-mNavigationBar = $firstLastLinks . ' ' .
wfMsgHTML(

Modified: trunk/phase3/includes/specials/SpecialContributions.php
===
--- trunk/phase3/includes/specials/SpecialContributions.php 2012-02-26 
12:07:21 UTC (rev 112426)
+++ trunk/phase3/includes/specials/SpecialContributions.php 2012-02-26 
12:11:35 UTC (rev 112427)
@@ -254,7 +254,7 @@
// @todo Should this be removed at some point?
$oldMsg = $this-msg( 'contribsub' );
if ( $oldMsg-exists() ) {
-   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links )-escape();
+   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links )-escaped();
return $oldMsg-rawParams( $user 
$linksWithParentheses );
} else {
return $this-msg( 'contribsub2' )-rawParams( $user, 
$links );
@@ -839,7 +839,7 @@
$del .= ' ';
}
 
-   $diffHistLinks = $this-msg( 'parentheses' )-rawParams( 
$difftext . $this-messages['pipe-separator'] . $histlink )-escape();
+   $diffHistLinks = $this-msg( 'parentheses' )-rawParams( 
$difftext . $this-messages['pipe-separator'] . $histlink )-escaped();
$ret = {$del}{$d} {$diffHistLinks}{$chardiff}{$nflag}{$mflag} 
{$link}{$userlink} {$comment} {$topmarktext};
 
# Denote if username

[MediaWiki-CVS] SVN: [112429] trunk/extensions/Translate/specials/SpecialTranslations.php

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112429

Revision: 112429
Author:   siebrand
Date: 2012-02-26 12:51:27 + (Sun, 26 Feb 2012)
Log Message:
---
Remove hard coded parentheses.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialTranslations.php

Modified: trunk/extensions/Translate/specials/SpecialTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26 
12:26:16 UTC (rev 112428)
+++ trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26 
12:51:27 UTC (rev 112429)
@@ -193,6 +193,8 @@
 
$ajaxPageList = array();
$historyText = #160;sup . wfMsgHtml( 
'translate-translations-history-short' ) . /sup#160;;
+   $separator = wfMessage( 'word-separator' )-plain();
+   $parentheses = wfMessage( 'parentheses' )-escaped();
 
foreach ( $res as $s ) {
$key = $s-page_title;
@@ -201,7 +203,9 @@
 
$code = $this-getCode( $s-page_title );
 
-   $text = TranslateUtils::getLanguageName( $code, false, 
$wgLang-getCode() ) .  ($code);
+   $text = TranslateUtils::getLanguageName( $code, false, 
$wgLang-getCode() );
+   $text .= $separator;
+   $text .= $paretheses-params( $code );
$text = htmlspecialchars( $text );
 
if ( $canTranslate ) {


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112430] trunk/extensions/Translate/specials/SpecialTranslations.php

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112430

Revision: 112430
Author:   siebrand
Date: 2012-02-26 12:52:50 + (Sun, 26 Feb 2012)
Log Message:
---
Follow-up r112429: Fix typo in variable name.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialTranslations.php

Modified: trunk/extensions/Translate/specials/SpecialTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26 
12:51:27 UTC (rev 112429)
+++ trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26 
12:52:50 UTC (rev 112430)
@@ -205,7 +205,7 @@
 
$text = TranslateUtils::getLanguageName( $code, false, 
$wgLang-getCode() );
$text .= $separator;
-   $text .= $paretheses-params( $code );
+   $text .= $parentheses-params( $code );
$text = htmlspecialchars( $text );
 
if ( $canTranslate ) {


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112431] trunk/extensions/Translate/specials/SpecialTranslations.php

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112431

Revision: 112431
Author:   siebrand
Date: 2012-02-26 12:58:02 + (Sun, 26 Feb 2012)
Log Message:
---
Follow-up r112429: Didn't work as I thought it would. Thanks Niklas.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialTranslations.php

Modified: trunk/extensions/Translate/specials/SpecialTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26 
12:52:50 UTC (rev 112430)
+++ trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-26 
12:58:02 UTC (rev 112431)
@@ -194,7 +194,6 @@
$ajaxPageList = array();
$historyText = #160;sup . wfMsgHtml( 
'translate-translations-history-short' ) . /sup#160;;
$separator = wfMessage( 'word-separator' )-plain();
-   $parentheses = wfMessage( 'parentheses' )-escaped();
 
foreach ( $res as $s ) {
$key = $s-page_title;
@@ -205,7 +204,7 @@
 
$text = TranslateUtils::getLanguageName( $code, false, 
$wgLang-getCode() );
$text .= $separator;
-   $text .= $parentheses-params( $code );
+   $text .= wfMessage( 'parentheses' )-params( $code 
)-escaped();
$text = htmlspecialchars( $text );
 
if ( $canTranslate ) {


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112433] trunk/phase3

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112433

Revision: 112433
Author:   siebrand
Date: 2012-02-26 13:08:41 + (Sun, 26 Feb 2012)
Log Message:
---
(bug 34702) Localised parentheses are now used in more special pages.

Modified Paths:
--
trunk/phase3/RELEASE-NOTES-1.20
trunk/phase3/includes/Pager.php
trunk/phase3/includes/specials/SpecialProtectedpages.php
trunk/phase3/includes/specials/SpecialShortpages.php
trunk/phase3/includes/specials/SpecialWhatlinkshere.php

Modified: trunk/phase3/RELEASE-NOTES-1.20
===
--- trunk/phase3/RELEASE-NOTES-1.20 2012-02-26 13:07:56 UTC (rev 112432)
+++ trunk/phase3/RELEASE-NOTES-1.20 2012-02-26 13:08:41 UTC (rev 112433)
@@ -34,7 +34,7 @@
   copy/paste on supporting browsers
 * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob 
   history compression method.
-* (bug 34702) Special:Contributions now uses localised parentheses.
+* (bug 34702) Localised parentheses are now used in more special pages.
 * (bug 34723) When editing a script page on a RTL wiki the textbox should be 
LTR.
 
 === API changes in 1.20 ===

Modified: trunk/phase3/includes/Pager.php
===
--- trunk/phase3/includes/Pager.php 2012-02-26 13:07:56 UTC (rev 112432)
+++ trunk/phase3/includes/Pager.php 2012-02-26 13:08:41 UTC (rev 112433)
@@ -679,11 +679,11 @@
$limitLinks = $this-getLimitLinks();
$limits = $lang-pipeList( $limitLinks );
 
-   $this-mNavigationBar =
-   ( . $lang-pipeList(
+   $this-mNavigationBar = wfMessage( 'parentheses' )-rawParams(
+   $lang-pipeList(
array( $pagingLinks['first'],
$pagingLinks['last'] )
-   ) . )  .
+   ) )-escaped() .   .
wfMsgHtml( 'viewprevnext', $pagingLinks['prev'],
$pagingLinks['next'], $limits );
 
@@ -713,7 +713,8 @@
}
 
if( $extra !== '' ) {
-   $this-mNavigationBar .=  ($extra);
+   $extra = ' ' . wfMessage( 'parentheses' )-rawParams( 
$extra )-escaped();
+   $this-mNavigationBar .= $extra;
}
 
return $this-mNavigationBar;

Modified: trunk/phase3/includes/specials/SpecialProtectedpages.php
===
--- trunk/phase3/includes/specials/SpecialProtectedpages.php2012-02-26 
13:07:56 UTC (rev 112432)
+++ trunk/phase3/includes/specials/SpecialProtectedpages.php2012-02-26 
13:08:41 UTC (rev 112433)
@@ -118,15 +118,15 @@
 
# Show a link to the change protection form for allowed users 
otherwise a link to the protection log
if( $this-getUser()-isAllowed( 'protect' ) ) {
-   $changeProtection = ' (' . Linker::linkKnown(
+   $changeProtection = Linker::linkKnown(
$title,
wfMsgHtml( 'protect_change' ),
array(),
array( 'action' = 'unprotect' )
-   ) . ')';
+   );
} else {
$ltitle = SpecialPage::getTitleFor( 'Log' );
-   $changeProtection = ' (' . Linker::linkKnown(
+   $changeProtection = Linker::linkKnown(
$ltitle,
wfMsgHtml( 'protectlogpage' ),
array(),
@@ -134,9 +134,11 @@
'type' = 'protect',
'page' = $title-getPrefixedText()
)
-   ) . ')';
+   );
}
 
+   $changeProtection = ' ' . wfMessage( 'parentheses' 
)-rawParams( $changeProtection )-escaped();
+
wfProfileOut( __METHOD__ );
 
return Html::rawElement(

Modified: trunk/phase3/includes/specials/SpecialShortpages.php
===
--- trunk/phase3/includes/specials/SpecialShortpages.php2012-02-26 
13:07:56 UTC (rev 112432)
+++ trunk/phase3/includes/specials/SpecialShortpages.php2012-02-26 
13:08:41 UTC (rev 112433)
@@ -95,8 +95,10 @@
: Linker::linkKnown( $title );
$size = $this-msg( 'nbytes' )-numParams( $result-value 
)-escaped();
 
+   $hlinkInParentheses = wfMessage( 'parentheses' )-rawParams( 
$hlink )-escaped();
+
return $title-exists()
-   ? ({$hlink}) {$dm}{$plink} {$dm

[MediaWiki-CVS] SVN: [112436] trunk/phase3/includes/specials

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112436

Revision: 112436
Author:   siebrand
Date: 2012-02-26 14:02:54 + (Sun, 26 Feb 2012)
Log Message:
---
Use local context ( $this-msg() ) instead of global method wfMessage() per 
IAlex. Follows-up r112433.

Modified Paths:
--
trunk/phase3/includes/specials/SpecialProtectedpages.php
trunk/phase3/includes/specials/SpecialShortpages.php
trunk/phase3/includes/specials/SpecialWhatlinkshere.php

Modified: trunk/phase3/includes/specials/SpecialProtectedpages.php
===
--- trunk/phase3/includes/specials/SpecialProtectedpages.php2012-02-26 
13:43:28 UTC (rev 112435)
+++ trunk/phase3/includes/specials/SpecialProtectedpages.php2012-02-26 
14:02:54 UTC (rev 112436)
@@ -137,7 +137,7 @@
);
}
 
-   $changeProtection = ' ' . wfMessage( 'parentheses' 
)-rawParams( $changeProtection )-escaped();
+   $changeProtection = ' ' . $this-msg( 'parentheses' 
)-rawParams( $changeProtection )-escaped();
 
wfProfileOut( __METHOD__ );
 

Modified: trunk/phase3/includes/specials/SpecialShortpages.php
===
--- trunk/phase3/includes/specials/SpecialShortpages.php2012-02-26 
13:43:28 UTC (rev 112435)
+++ trunk/phase3/includes/specials/SpecialShortpages.php2012-02-26 
14:02:54 UTC (rev 112436)
@@ -95,7 +95,7 @@
: Linker::linkKnown( $title );
$size = $this-msg( 'nbytes' )-numParams( $result-value 
)-escaped();
 
-   $hlinkInParentheses = wfMessage( 'parentheses' )-rawParams( 
$hlink )-escaped();
+   $hlinkInParentheses = $this-msg( 'parentheses' )-rawParams( 
$hlink )-escaped();
 
return $title-exists()
? ${hlinkInParentheses} {$dm}{$plink} 
{$dm}[{$size}]

Modified: trunk/phase3/includes/specials/SpecialWhatlinkshere.php
===
--- trunk/phase3/includes/specials/SpecialWhatlinkshere.php 2012-02-26 
13:43:28 UTC (rev 112435)
+++ trunk/phase3/includes/specials/SpecialWhatlinkshere.php 2012-02-26 
14:02:54 UTC (rev 112436)
@@ -316,12 +316,12 @@
$props[] = $msgcache['isimage'];
 
if ( count( $props ) ) {
-   $propsText = wfMessage( 'parentheses' )-rawParams( 
implode( $msgcache['semicolon-separator'], $props ) )-escaped();
+   $propsText = $this-msg( 'parentheses' )-rawParams( 
implode( $msgcache['semicolon-separator'], $props ) )-escaped();
}
 
# Space for utilities links, with a what-links-here link 
provided
$wlhLink = $this-wlhLink( $nt, 
$msgcache['whatlinkshere-links'] );
-   $wlh = Xml::wrapClass( wfMessage( 'parentheses' )-rawParams( 
$wlhLink )-escaped(), 'mw-whatlinkshere-tools' );
+   $wlh = Xml::wrapClass( $this-msg( 'parentheses' )-rawParams( 
$wlhLink )-escaped(), 'mw-whatlinkshere-tools' );
 
return $notClose ?
Xml::openElement( 'li' ) . $link $propsText $dirmark 
$wlh\n :


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112439] trunk/translatewiki/Pywikipedia/Pywikipedia.yaml

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112439

Revision: 112439
Author:   siebrand
Date: 2012-02-26 14:40:26 + (Sun, 26 Feb 2012)
Log Message:
---
Update codeMap.

Modified Paths:
--
trunk/translatewiki/Pywikipedia/Pywikipedia.yaml

Modified: trunk/translatewiki/Pywikipedia/Pywikipedia.yaml
===
--- trunk/translatewiki/Pywikipedia/Pywikipedia.yaml2012-02-26 14:21:22 UTC 
(rev 112438)
+++ trunk/translatewiki/Pywikipedia/Pywikipedia.yaml2012-02-26 14:40:26 UTC 
(rev 112439)
@@ -6,8 +6,23 @@
 
   FILES:
 class: PythonSingleFFS
+# Pywikipediabot works on language code, so mapping fallbacked to 
Wikimedia code.
 codeMap:
+  gan-hant: gan
+  hif-latn: hif
+  ike-cans: iu
+  kbd-cyrl: kbd
+  kk-cyrl: kk
+  ks-arab: ks
+  ku-latn: ku
   nb: no
+  ruq-latn: ruq
+  sr-ec: sr
+  tg-cyrl: tg
+  tt-cyrl: tt
+  ug-arab: ug
+  vro: fiu-vro
+  zh-hans: zh
 
   CHECKER:
 class: MessageChecker


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112445] trunk/translatewiki/Shapado/Shapado.yaml

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112445

Revision: 112445
Author:   siebrand
Date: 2012-02-26 19:37:09 + (Sun, 26 Feb 2012)
Log Message:
---
Remove out- from Shapado groups.

Modified Paths:
--
trunk/translatewiki/Shapado/Shapado.yaml

Modified: trunk/translatewiki/Shapado/Shapado.yaml
===
--- trunk/translatewiki/Shapado/Shapado.yaml2012-02-26 18:24:27 UTC (rev 
112444)
+++ trunk/translatewiki/Shapado/Shapado.yaml2012-02-26 19:37:09 UTC (rev 
112445)
@@ -32,18 +32,18 @@
 
 ---
 BASIC:
-  id: out-shapado-0-all
+  id: shapado-0-all
   label: Shapado
   display: out/shapado
   meta: yes
   class: AggregateMessageGroup
 
 GROUPS:
-  - out-shapado-*
+  - shapado-*
 
 ---
 BASIC:
-  id: out-shapado-activities
+  id: shapado-activities
   label: Shapado - Activities
   display: out/shapado/activities
 
@@ -56,7 +56,7 @@
 
 ---
 BASIC:
-  id: out-shapado-announcements
+  id: shapado-announcements
   label: Shapado - Announcements
   display: out/shapado/announcements
 
@@ -73,7 +73,7 @@
 
 ---
 BASIC:
-  id: out-shapado-answers
+  id: shapado-answers
   label: Shapado - Answers
   display: out/shapado/answers
 
@@ -86,7 +86,7 @@
 
 ---
 BASIC:
-  id: out-shapado-badges
+  id: shapado-badges
   label: Shapado - Badges
   display: out/shapado/badges
 
@@ -99,7 +99,7 @@
 
 ---
 BASIC:
-  id: out-shapado-closerequests
+  id: shapado-closerequests
   label: Shapado - Close requests
   display: out/shapado/closerequests
 
@@ -112,7 +112,7 @@
 
 ---
 BASIC:
-  id: out-shapado-comments
+  id: shapado-comments
   label: Shapado - Comments
   display: out/shapado/comments
 
@@ -125,7 +125,7 @@
 
 ---
 BASIC:
-  id: out-shapado-constrainsconfig
+  id: shapado-constrainsconfig
   label: Shapado - Constraints Config
   display: out/shapado/constrainsconfig
 
@@ -138,7 +138,7 @@
 
 ---
 BASIC:
-  id: out-shapado-devise
+  id: shapado-devise
   label: Shapado - Devise
   display: out/shapado/devise
 
@@ -151,7 +151,7 @@
 
 ---
 BASIC:
-  id: out-shapado-doc
+  id: shapado-doc
   label: Shapado - Doc
   display: out/shapado/doc
 
@@ -164,7 +164,7 @@
 
 ---
 BASIC:
-  id: out-shapado-errors
+  id: shapado-errors
   label: Shapado - Errors
   display: out/shapado/errors
 
@@ -177,7 +177,7 @@
 
 ---
 BASIC:
-  id: out-shapado-favorites
+  id: shapado-favorites
   label: Shapado - Favorites
   display: out/shapado/favorites
 
@@ -190,7 +190,7 @@
 
 ---
 BASIC:
-  id: out-shapado-flags
+  id: shapado-flags
   label: Shapado - Flags
   display: out/shapado/flags
 
@@ -203,7 +203,7 @@
 
 ---
 BASIC:
-  id: out-shapado-global
+  id: shapado-global
   label: Shapado - Global
   display: out/shapado/global
 
@@ -219,7 +219,7 @@
 - global-views.pagination.truncate
 ---
 BASIC:
-  id: out-shapado-groups
+  id: shapado-groups
   label: Shapado - Groups
   display: out/shapado/groups
 
@@ -232,7 +232,7 @@
 
 ---
 BASIC:
-  id: out-shapado-imports
+  id: shapado-imports
   label: Shapado - Imports
   display: out/shapado/imports
 
@@ -245,7 +245,7 @@
 
 ---
 BASIC:
-  id: out-shapado-invitations
+  id: shapado-invitations
   label: Shapado - Invitations
   display: out/shapado/invitations
 
@@ -258,7 +258,7 @@
 
 ---
 BASIC:
-  id: out-shapado-jobs
+  id: shapado-jobs
   label: Shapado - Jobs
   display: out/shapado/jobs
 
@@ -271,7 +271,7 @@
 
 ---
 BASIC:
-  id: out-shapado-layouts
+  id: shapado-layouts
   label: Shapado - Layouts
   display: out/shapado/layouts
 
@@ -284,7 +284,7 @@
 
 ---
 BASIC:
-  id: out-shapado-mailers
+  id: shapado-mailers
   label: Shapado - Mailers
   display: out/shapado/mailers
   class: FileBasedMessageGroup
@@ -298,7 +298,7 @@
 
 ---
 BASIC:
-  id: out-shapado-manage
+  id: shapado-manage
   label: Shapado - Manage
   display: out/shapado/manage
 
@@ -311,7 +311,7 @@
 
 ---
 BASIC:
-  id: out-shapado-members
+  id: shapado-members
   label: Shapado - Members
   display: out/shapado/members
 
@@ -324,7 +324,7 @@
 
 ---
 BASIC:
-  id: out-shapado-moderate
+  id: shapado-moderate
   label: Shapado - Moderate
   display: out/shapado/moderate
   class: FileBasedMessageGroup
@@ -338,7 +338,7 @@
 
 ---
 BASIC:
-  id: out-shapado-notifier
+  id: shapado-notifier
   label: Shapado - Notifier
   display: out/shapado/notifier
   class: FileBasedMessageGroup
@@ -352,7 +352,7 @@
 
 ---
 BASIC:
-  id: out-shapado-openrequests
+  id: shapado-openrequests
   label: Shapado - Open Requests
   display: out/shapado/openrequests
 
@@ -365,7 +365,7 @@
 
 ---
 BASIC:
-  id: out-shapado-pages
+  id: shapado-pages
   label: Shapado - Pages
   display: out/shapado/pages
 
@@ -378,7 +378,7 @@
 
 ---
 BASIC:
-  id: out-shapado-questions
+  id: shapado-questions
   label: Shapado - Questions
   display: out/shapado/questions
 
@@ -391,7 +391,7 @@
 
 ---
 BASIC:
-  id: out-shapado-rewards
+  id: shapado-rewards
   label: Shapado - Rewards
   display: out/shapado/rewards
 
@@ -404,7 +404,7 @@
 
 ---
 BASIC:
-  id

[MediaWiki-CVS] SVN: [112446] trunk/extensions/Translate/Translate.php

2012-02-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112446

Revision: 112446
Author:   siebrand
Date: 2012-02-26 19:38:15 + (Sun, 26 Feb 2012)
Log Message:
---
Follow-up r112445.

Modified Paths:
--
trunk/extensions/Translate/Translate.php

Modified: trunk/extensions/Translate/Translate.php
===
--- trunk/extensions/Translate/Translate.php2012-02-26 19:37:09 UTC (rev 
112445)
+++ trunk/extensions/Translate/Translate.php2012-02-26 19:38:15 UTC (rev 
112446)
@@ -15,7 +15,7 @@
 /**
  * Version number used in extension credits and in other placed where needed.
  */
-define( 'TRANSLATE_VERSION', '2012-02-19' );
+define( 'TRANSLATE_VERSION', '2012-02-26' );
 
 /**
  * Extension credits properties.
@@ -491,7 +491,7 @@
'/^out-openimages/' = array( 'openimages' ),
'/^out-osm/' = array( 'osm' ),
'/^out-pywikipedia/' = array( 'pywikipedia' ),
-   '/^out-shapado/' = array( 'shapado' ),
+   '/^shapado/' = array( 'shapado' ),
'/^out-statusnet-plugin/' = array( 'statusnet', 'plugin' ),
'/^out-statusnet/' = array( 'statusnet' ),
 // '/^page\|/' = array( 'page' ),


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112389] trunk/translatewiki/EOL/EOL.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112389

Revision: 112389
Author:   siebrand
Date: 2012-02-25 14:23:13 + (Sat, 25 Feb 2012)
Log Message:
---
Update tags.

Modified Paths:
--
trunk/translatewiki/EOL/EOL.yaml

Modified: trunk/translatewiki/EOL/EOL.yaml
===
--- trunk/translatewiki/EOL/EOL.yaml2012-02-25 13:23:43 UTC (rev 112388)
+++ trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:23:13 UTC (rev 112389)
@@ -52,6 +52,64 @@
 TAGS:
   optional:
 - website-errors.format
+- website-taxa.details.index.hierarchy_entry.meta_keywords
+- website-taxa.details.index.meta_keywords
+- website-taxa.details.index.meta_keywords_with_common_name
+- website-taxa.literature.bhl.hierarchy entry.meta keywords
+- website-taxa.literature.bhl.meta description
+- website-taxa.literature.bhl.meta description with common name
+- website-taxa.literature.bhl.meta keywords
+- website-taxa.literature.bhl.meta keywords with common name
+- website-taxa.literature.show.hierarchy entry.meta description
+- website-taxa.literature.show.hierarchy entry.meta description with 
common name
+- website-taxa.literature.show.hierarchy entry.meta keywords
+- website-taxa.maps.show.hierarchy entry.meta keywords
+- website-taxa.names.index.hierarchy entry.meta keywords
+- website-taxa.names.index.hierarchy entry.meta title
+- website-taxa.names.index.hierarchy entry.meta title with common name
+- website-taxa.names.index.meta keywords
+- website-taxa.names.index.meta keywords with common name
+- website-taxa.resources.biomedical terms.hierarchy entry.meta description
+- website-taxa.resources.biomedical terms.hierarchy entry.meta description 
with common name
+- website-taxa.resources.biomedical terms.hierarchy entry.meta keywords
+- website-taxa.resources.biomedical terms.hierarchy entry.meta title
+- website-taxa.resources.biomedical terms.hierarchy entry.meta title with 
common name
+- website-taxa.resources.biomedical terms.meta description
+- website-taxa.resources.biomedical terms.meta description with common name
+- website-taxa.resources.biomedical terms.meta keywords
+- website-taxa.resources.biomedical terms.meta keywords with common name
+- website-taxa.resources.education.hierarchy entry.meta description
+- website-taxa.resources.education.hierarchy entry.meta description with 
common name
+- website-taxa.resources.education.hierarchy entry.meta keywords
+- website-taxa.details.index.hierarchy_entry.meta_keywords
+- website-taxa.details.index.meta_keywords
+- website-taxa.details.index.meta_keywords_with_common_name
+- website-taxa.literature.bhl.hierarchy entry.meta keywords
+- website-taxa.literature.bhl.meta description
+- website-taxa.literature.bhl.meta description with common name
+- website-taxa.literature.bhl.meta keywords
+- website-taxa.literature.bhl.meta keywords with common name
+- website-taxa.literature.show.hierarchy entry.meta description
+- website-taxa.literature.show.hierarchy entry.meta description with 
common name
+- website-taxa.literature.show.hierarchy entry.meta keywords
+- website-taxa.maps.show.hierarchy entry.meta keywords
+- website-taxa.names.index.hierarchy entry.meta keywords
+- website-taxa.names.index.hierarchy entry.meta title
+- website-taxa.names.index.hierarchy entry.meta title with common name
+- website-taxa.names.index.meta keywords
+- website-taxa.names.index.meta keywords with common name
+- website-taxa.resources.biomedical terms.hierarchy entry.meta description
+- website-taxa.resources.biomedical terms.hierarchy entry.meta description 
with common name
+- website-taxa.resources.biomedical terms.hierarchy entry.meta keywords
+- website-taxa.resources.biomedical terms.hierarchy entry.meta title
+- website-taxa.resources.biomedical terms.hierarchy entry.meta title with 
common name
+- website-taxa.resources.biomedical terms.meta description
+- website-taxa.resources.biomedical terms.meta description with common name
+- website-taxa.resources.biomedical terms.meta keywords
+- website-taxa.resources.biomedical terms.meta keywords with common name
+- website-taxa.resources.education.hierarchy entry.meta description
+- website-taxa.resources.education.hierarchy entry.meta description with 
common name
+- website-taxa.resources.education.hierarchy entry.meta keywords
   ignored:
 - website-faker.lorem.*
 - website-date.*


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112390] trunk/translatewiki/EOL/EOL.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112390

Revision: 112390
Author:   siebrand
Date: 2012-02-25 14:28:03 + (Sat, 25 Feb 2012)
Log Message:
---
Follow-up r112389: replace spaces by underscores.

Modified Paths:
--
trunk/translatewiki/EOL/EOL.yaml

Modified: trunk/translatewiki/EOL/EOL.yaml
===
--- trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:23:13 UTC (rev 112389)
+++ trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:28:03 UTC (rev 112390)
@@ -55,61 +55,61 @@
 - website-taxa.details.index.hierarchy_entry.meta_keywords
 - website-taxa.details.index.meta_keywords
 - website-taxa.details.index.meta_keywords_with_common_name
-- website-taxa.literature.bhl.hierarchy entry.meta keywords
-- website-taxa.literature.bhl.meta description
-- website-taxa.literature.bhl.meta description with common name
-- website-taxa.literature.bhl.meta keywords
-- website-taxa.literature.bhl.meta keywords with common name
-- website-taxa.literature.show.hierarchy entry.meta description
-- website-taxa.literature.show.hierarchy entry.meta description with 
common name
-- website-taxa.literature.show.hierarchy entry.meta keywords
-- website-taxa.maps.show.hierarchy entry.meta keywords
-- website-taxa.names.index.hierarchy entry.meta keywords
-- website-taxa.names.index.hierarchy entry.meta title
-- website-taxa.names.index.hierarchy entry.meta title with common name
-- website-taxa.names.index.meta keywords
-- website-taxa.names.index.meta keywords with common name
-- website-taxa.resources.biomedical terms.hierarchy entry.meta description
-- website-taxa.resources.biomedical terms.hierarchy entry.meta description 
with common name
-- website-taxa.resources.biomedical terms.hierarchy entry.meta keywords
-- website-taxa.resources.biomedical terms.hierarchy entry.meta title
-- website-taxa.resources.biomedical terms.hierarchy entry.meta title with 
common name
-- website-taxa.resources.biomedical terms.meta description
-- website-taxa.resources.biomedical terms.meta description with common name
-- website-taxa.resources.biomedical terms.meta keywords
-- website-taxa.resources.biomedical terms.meta keywords with common name
-- website-taxa.resources.education.hierarchy entry.meta description
-- website-taxa.resources.education.hierarchy entry.meta description with 
common name
-- website-taxa.resources.education.hierarchy entry.meta keywords
+- website-taxa.literature.bhl.hierarchy_entry.meta_keywords
+- website-taxa.literature.bhl.meta_description
+- website-taxa.literature.bhl.meta_description_with_common_name
+- website-taxa.literature.bhl.meta_keywords
+- website-taxa.literature.bhl.meta_keywords_with_common_name
+- website-taxa.literature.show.hierarchy_entry.meta_description
+- 
website-taxa.literature.show.hierarchy_entry.meta_description_with_common_name
+- website-taxa.literature.show.hierarchy_entry.meta_keywords
+- website-taxa.maps.show.hierarchy_entry.meta_keywords
+- website-taxa.names.index.hierarchy_entry.meta_keywords
+- website-taxa.names.index.hierarchy_entry.meta_title
+- website-taxa.names.index.hierarchy_entry.meta_title_with_common_name
+- website-taxa.names.index.meta_keywords
+- website-taxa.names.index.meta_keywords_with_common_name
+- website-taxa.resources.biomedical_terms.hierarchy_entry.meta_description
+- 
website-taxa.resources.biomedical_terms.hierarchy_entry.meta_description_with_common_name
+- website-taxa.resources.biomedical_terms.hierarchy_entry.meta_keywords
+- website-taxa.resources.biomedical_terms.hierarchy_entry.meta_title
+- 
website-taxa.resources.biomedical_terms.hierarchy_entry.meta_title_with_common_name
+- website-taxa.resources.biomedical_terms.meta_description
+- website-taxa.resources.biomedical_terms.meta_description_with_common_name
+- website-taxa.resources.biomedical_terms.meta_keywords
+- website-taxa.resources.biomedical_terms.meta_keywords_with_common_name
+- website-taxa.resources.education.hierarchy_entry.meta_description
+- 
website-taxa.resources.education.hierarchy_entry.meta_description_with_common_name
+- website-taxa.resources.education.hierarchy_entry.meta_keywords
 - website-taxa.details.index.hierarchy_entry.meta_keywords
 - website-taxa.details.index.meta_keywords
 - website-taxa.details.index.meta_keywords_with_common_name
-- website-taxa.literature.bhl.hierarchy entry.meta keywords
-- website-taxa.literature.bhl.meta description
-- website-taxa.literature.bhl.meta description with common name
-- website-taxa.literature.bhl.meta keywords
-- website-taxa.literature.bhl.meta keywords with common name
-- website-taxa.literature.show.hierarchy entry.meta description
-- website

[MediaWiki-CVS] SVN: [112391] trunk/translatewiki/EOL/EOL.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112391

Revision: 112391
Author:   siebrand
Date: 2012-02-25 14:34:40 + (Sat, 25 Feb 2012)
Log Message:
---
Update tags.

Modified Paths:
--
trunk/translatewiki/EOL/EOL.yaml

Modified: trunk/translatewiki/EOL/EOL.yaml
===
--- trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:28:03 UTC (rev 112390)
+++ trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:34:40 UTC (rev 112391)
@@ -52,6 +52,15 @@
 TAGS:
   optional:
 - website-errors.format
+  ignored:
+- website-faker.lorem.*
+- website-date.*
+- website-time.*
+- website-support.*
+- website-number.*
+- website-datetime.*
+- website-support.*
+- website-taxa.communities.curators.meta_description
 - website-taxa.details.index.hierarchy_entry.meta_keywords
 - website-taxa.details.index.meta_keywords
 - website-taxa.details.index.meta_keywords_with_common_name
@@ -81,43 +90,24 @@
 - website-taxa.resources.education.hierarchy_entry.meta_description
 - 
website-taxa.resources.education.hierarchy_entry.meta_description_with_common_name
 - website-taxa.resources.education.hierarchy_entry.meta_keywords
-- website-taxa.details.index.hierarchy_entry.meta_keywords
-- website-taxa.details.index.meta_keywords
-- website-taxa.details.index.meta_keywords_with_common_name
-- website-taxa.literature.bhl.hierarchy_entry.meta_keywords
-- website-taxa.literature.bhl.meta_description
-- website-taxa.literature.bhl.meta_description_with_common_name
-- website-taxa.literature.bhl.meta_keywords
-- website-taxa.literature.bhl.meta_keywords_with_common_name
-- website-taxa.literature.show.hierarchy_entry.meta_description
-- 
website-taxa.literature.show.hierarchy_entry.meta_description_with_common_name
-- website-taxa.literature.show.hierarchy_entry.meta_keywords
-- website-taxa.maps.show.hierarchy_entry.meta_keywords
-- website-taxa.names.index.hierarchy_entry.meta_keywords
-- website-taxa.names.index.hierarchy_entry.meta_title
-- website-taxa.names.index.hierarchy_entry.meta_title_with_common_name
-- website-taxa.names.index.meta_keywords
-- website-taxa.names.index.meta_keywords_with_common_name
-- website-taxa.resources.biomedical_terms.hierarchy_entry.meta_description
-- 
website-taxa.resources.biomedical_terms.hierarchy_entry.meta_description_with_common_name
-- website-taxa.resources.biomedical_terms.hierarchy_entry.meta_keywords
-- website-taxa.resources.biomedical_terms.hierarchy_entry.meta_title
-- 
website-taxa.resources.biomedical_terms.hierarchy_entry.meta_title_with_common_name
-- website-taxa.resources.biomedical_terms.meta_description
-- website-taxa.resources.biomedical_terms.meta_description_with_common_name
-- website-taxa.resources.biomedical_terms.meta_keywords
-- website-taxa.resources.biomedical_terms.meta_keywords_with_common_name
-- website-taxa.resources.education.hierarchy_entry.meta_description
-- 
website-taxa.resources.education.hierarchy_entry.meta_description_with_common_name
-- website-taxa.resources.education.hierarchy_entry.meta_keywords
-  ignored:
-- website-faker.lorem.*
-- website-date.*
-- website-time.*
-- website-support.*
-- website-number.*
-- website-datetime.*
-- website-support.*
+- website-taxa.resources.education.meta_description
+- website-taxa.resources.education.meta_description_with_common_name
+- website-taxa.resources.education.meta_keywords
+- website-taxa.resources.education.meta_keywords_with_common_name
+- 
website-taxa.resources.identification_resources.hierarchy_entry.meta_description
+- 
website-taxa.resources.identification_resources.hierarchy_entry.meta_description_with_common_name
+- 
website-taxa.resources.identification_resources.hierarchy_entry.meta_keywords
+- 
website-taxa.resources.identification_resources.hierarchy_entry.meta_title
+- 
website-taxa.resources.identification_resources.hierarchy_entry.meta_title_with_common_name
+- website-taxa.resources.identification_resources.meta_description
+- 
website-taxa.resources.identification_resources.meta_description_with_common_name
+- website-taxa.resources.identification_resources.meta_keywords
+- 
website-taxa.resources.identification_resources.meta_keywords_with_common_name
+- 
website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_description
+- 
website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_description_with_common_name
+- website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_keywords
+- website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_title
+- 
website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_title_with_common_name
 
 ---
 BASIC

[MediaWiki-CVS] SVN: [112392] trunk/translatewiki/EOL/EOL.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112392

Revision: 112392
Author:   siebrand
Date: 2012-02-25 14:42:37 + (Sat, 25 Feb 2012)
Log Message:
---
Update tags.

Modified Paths:
--
trunk/translatewiki/EOL/EOL.yaml

Modified: trunk/translatewiki/EOL/EOL.yaml
===
--- trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:34:40 UTC (rev 112391)
+++ trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:42:37 UTC (rev 112392)
@@ -108,6 +108,22 @@
 - website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_keywords
 - website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_title
 - 
website-taxa.resources.nucleotide_sequences.hierarchy_entry.meta_title_with_common_name
+- website-taxa.resources.nucleotide_sequences.meta_description
+- 
website-taxa.resources.nucleotide_sequences.meta_description_with_common_name
+- website-taxa.resources.nucleotide_sequences.meta_keywords
+- 
website-taxa.resources.nucleotide_sequences.meta_keywords_with_common_name
+- website-taxa.updates.show.hierarchy_entry.meta_description
+- 
website-taxa.updates.show.hierarchy_entry.meta_description_with_common_name
+- website-taxa.updates.show.hierarchy_entry.meta_keywords
+- website-taxa.updates.statistics.hierarchy_entry.meta_description
+- 
website-taxa.updates.statistics.hierarchy_entry.meta_description_with_common_name
+- website-taxa.updates.statistics.hierarchy_entry.meta_keywords
+- website-users.activities.show.meta_keywords
+- website-users.collections.index.meta_keywords
+- website-users.communities.index.meta_keywords
+- website-users.content_partners.index.meta_keywords
+- website-users.newsfeeds.show.meta_keywords
+- website-users.show.meta_keywords
 
 ---
 BASIC:


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112393] trunk/translatewiki/EOL/EOL.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112393

Revision: 112393
Author:   siebrand
Date: 2012-02-25 14:49:11 + (Sat, 25 Feb 2012)
Log Message:
---
Update tags.

Modified Paths:
--
trunk/translatewiki/EOL/EOL.yaml

Modified: trunk/translatewiki/EOL/EOL.yaml
===
--- trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:42:37 UTC (rev 112392)
+++ trunk/translatewiki/EOL/EOL.yaml2012-02-25 14:49:11 UTC (rev 112393)
@@ -52,6 +52,15 @@
 TAGS:
   optional:
 - website-errors.format
+- website-collections.show.meta_title
+- website-collections.show.tweet_text
+- website-communities.newsfeeds.show.meta_title
+- website-communities.newsfeeds.show.tweet_text
+- website-content_partners.show.meta_title
+- website-content_partners.show.tweet_text
+- website-taxa.overviews.show.meta_title
+- website-users.show.meta_title
+- website-users.show.tweet_text
   ignored:
 - website-faker.lorem.*
 - website-date.*


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112394] trunk/translatewiki/Wikia/extensions.txt

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112394

Revision: 112394
Author:   siebrand
Date: 2012-02-25 15:10:25 + (Sat, 25 Feb 2012)
Log Message:
---
Update support for Wikia MediaWiki extensions.

Modified Paths:
--
trunk/translatewiki/Wikia/extensions.txt

Modified: trunk/translatewiki/Wikia/extensions.txt
===
--- trunk/translatewiki/Wikia/extensions.txt2012-02-25 14:49:11 UTC (rev 
112393)
+++ trunk/translatewiki/Wikia/extensions.txt2012-02-25 15:10:25 UTC (rev 
112394)
@@ -14,9 +14,10 @@
 
 Ajax Poll
 
-Answers
-optional = q, ?, header_questionmark_post
-ignored = header_questionmark_pre, badWords, qa-featured-sites
+#Answers
+#disabled as we transition from Answers to a new model
+#optional = q, ?, header_questionmark_post
+#ignored = header_questionmark_pre, badWords, qa-featured-sites
 
 # Disabled. Duplicate key with Answers extension.
 #Answers Namespace
@@ -27,7 +28,7 @@
 optional = autocreatewiki-reminder-subject, autocreatewiki-language-top-list
 ignored = requestwiki-filter-language, autocreatewiki-tagline, 
autocreatewiki-language-top-list
 
-Auto Hubs Pages
+#Auto Hubs Pages
 
 Automatic Wiki Adoption
 # Extension is not completely done yet. Ignoring unfinished parts.
@@ -230,7 +231,7 @@
 
 Site Wide Messages
 file = SiteWideMessages/SpecialSiteWideMessages.i18n.php
-ignored = swm-expire-options
+ignored = swm-expire-options, swm-days
 
 Skin Chooser
 
@@ -298,6 +299,8 @@
 
 Video Embed Tool
 
+Wall
+
 Watch Sub Pages
 descmsg = wikia-watchsubpages-desc
 
@@ -341,6 +344,9 @@
 
 Wiki Features
 
+Wiki Payment
+ignored = wikipayment-click-here
+
 Wiki Stats
 file = WikiStats/SpecialWikiStats.i18n.php
 descmsg = wikistats


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112401] trunk/translatewiki/MediaWiki/mediawiki-defines.txt

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112401

Revision: 112401
Author:   siebrand
Date: 2012-02-25 17:18:20 + (Sat, 25 Feb 2012)
Log Message:
---
Follow-up r111791: Fix file name for messages.

Modified Paths:
--
trunk/translatewiki/MediaWiki/mediawiki-defines.txt

Modified: trunk/translatewiki/MediaWiki/mediawiki-defines.txt
===
--- trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-25 16:36:43 UTC 
(rev 112400)
+++ trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-25 17:18:20 UTC 
(rev 112401)
@@ -714,7 +714,7 @@
 ignored = headertabs-edittab-key
 
 Hello World
-file = examples/HelloWorld/HelloWorld.alias.php
+file = examples/HelloWorld/HelloWorld.i18n.php
 aliasfile = examples/HelloWorld/HelloWorld.alias.php
 
 Help Commons


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112403] trunk/extensions/Translate/specials

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112403

Revision: 112403
Author:   siebrand
Date: 2012-02-25 17:24:58 + (Sat, 25 Feb 2012)
Log Message:
---
Write some output to error log in case a message group has 0 messages. Makes 
mistakes like that from r111791 a bit easier to identify.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialLanguageStats.php
trunk/extensions/Translate/specials/SpecialMessageGroupStats.php

Modified: trunk/extensions/Translate/specials/SpecialLanguageStats.php
===
--- trunk/extensions/Translate/specials/SpecialLanguageStats.php
2012-02-25 17:19:55 UTC (rev 112402)
+++ trunk/extensions/Translate/specials/SpecialLanguageStats.php
2012-02-25 17:24:58 UTC (rev 112403)
@@ -376,6 +376,10 @@
$this-incomplete = true;
$extra = array();
} else {
+   if( $total === 0 ) {
+   error_log( $groupId . ' has 0 messages.' );
+   }
+
if ( $this-noComplete  $fuzzy === 0  $translated 
=== $total ) {
return '';
}

Modified: trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
===
--- trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
2012-02-25 17:19:55 UTC (rev 112402)
+++ trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
2012-02-25 17:24:58 UTC (rev 112403)
@@ -167,6 +167,10 @@
$this-incomplete = true;
$extra = array();
} else {
+   if( $total === 0 ) {
+   error_log( $groupId . ' has 0 messages.' );
+   }
+
if ( $this-noComplete  $fuzzy === 0  $translated 
=== $total ) {
return '';
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112404] trunk/tools/ToolserverI18N/language/messages/Wlm.i18n.php

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112404

Revision: 112404
Author:   siebrand
Date: 2012-02-25 17:38:24 + (Sat, 25 Feb 2012)
Log Message:
---
Fix issue in r110711

Modified Paths:
--
trunk/tools/ToolserverI18N/language/messages/Wlm.i18n.php

Modified: trunk/tools/ToolserverI18N/language/messages/Wlm.i18n.php
===
--- trunk/tools/ToolserverI18N/language/messages/Wlm.i18n.php   2012-02-25 
17:24:58 UTC (rev 112403)
+++ trunk/tools/ToolserverI18N/language/messages/Wlm.i18n.php   2012-02-25 
17:38:24 UTC (rev 112404)
@@ -423,7 +423,7 @@
'distict-monuments' = 'Unterschiedliche Denkmäler',
'province-heading' = 'Provinz',
'province-none' = '(Unbekannt)',
-   'ccaa-heading' = '!!FUZZYY!!CC.AA.',
+   'ccaa-heading' = 'CC.AA.',
 );
 
 /** Zazaki (Zazaki)


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112410] trunk/phase3

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112410

Revision: 112410
Author:   siebrand
Date: 2012-02-25 20:42:08 + (Sat, 25 Feb 2012)
Log Message:
---
(bug 34702) Use localised parentheses in Special:Contributions.

Modified Paths:
--
trunk/phase3/RELEASE-NOTES-1.20
trunk/phase3/includes/Linker.php
trunk/phase3/includes/Pager.php
trunk/phase3/includes/specials/SpecialContributions.php

Modified: trunk/phase3/RELEASE-NOTES-1.20
===
--- trunk/phase3/RELEASE-NOTES-1.20 2012-02-25 20:36:21 UTC (rev 112409)
+++ trunk/phase3/RELEASE-NOTES-1.20 2012-02-25 20:42:08 UTC (rev 112410)
@@ -34,6 +34,7 @@
   copy/paste on supporting browsers
 * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob 
   history compression method.
+* (bug 34702) Special:Contributions now uses localised parentheses.
 
 === API changes in 1.20 ===
 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.

Modified: trunk/phase3/includes/Linker.php
===
--- trunk/phase3/includes/Linker.php2012-02-25 20:36:21 UTC (rev 112409)
+++ trunk/phase3/includes/Linker.php2012-02-25 20:42:08 UTC (rev 112410)
@@ -1440,7 +1440,7 @@
} else {
global $wgLang;
$stxt = wfMsgExt( 'nbytes', 'parsemag', 
$wgLang-formatNum( $size ) );
-   $stxt = ($stxt);
+   $stxt = wfMessage( 'parentheses' )-rawParams( $stxt );
}
$stxt = htmlspecialchars( $stxt );
return span class=\history-size\$stxt/span;
@@ -1869,7 +1869,7 @@
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
$tag = $restricted ? 'strong' : 'span';
$link = self::link( $sp, $html, array(), $query, array( 
'known', 'noclasses' ) );
-   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), ($link) );
+   return Xml::tags( $tag, array( 'class' = 'mw-revdelundel-link' 
), wfMessage( 'parentheses' )-rawParams( $link ) );
}
 
/**
@@ -1882,7 +1882,7 @@
 */
public static function revDeleteLinkDisabled( $delete = true ) {
$html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 
'rev-showdeleted' );
-   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), ($html) );
+   return Xml::tags( 'span', array( 'class' = 
'mw-revdelundel-link' ), wfMessage( 'parentheses' )-rawParams( $html ) );
}
 
/* Deprecated methods */

Modified: trunk/phase3/includes/Pager.php
===
--- trunk/phase3/includes/Pager.php 2012-02-25 20:36:21 UTC (rev 112409)
+++ trunk/phase3/includes/Pager.php 2012-02-25 20:42:08 UTC (rev 112410)
@@ -769,15 +769,17 @@
$pagingLinks = $this-getPagingLinks( $linkTexts );
$limitLinks = $this-getLimitLinks();
$limits = $this-getLanguage()-pipeList( $limitLinks );
+   $firstLastLinks = wfMessage( 'parentheses' )-rawParams( 
{$pagingLinks['first']} .
+   wfMsgExt( 'pipe-separator' , 'escapenoentities' ) .
+   {$pagingLinks['last']} );
 
-   $this-mNavigationBar = ({$pagingLinks['first']} .
-   wfMsgExt( 'pipe-separator' , 'escapenoentities' ) .
-   {$pagingLinks['last']})  .
+   $this-mNavigationBar = $firstLastLinks . ' ' .
wfMsgHTML(
'viewprevnext',
$pagingLinks['prev'], $pagingLinks['next'],
$limits
);
+
return $this-mNavigationBar;
}
 

Modified: trunk/phase3/includes/specials/SpecialContributions.php
===
--- trunk/phase3/includes/specials/SpecialContributions.php 2012-02-25 
20:36:21 UTC (rev 112409)
+++ trunk/phase3/includes/specials/SpecialContributions.php 2012-02-25 
20:42:08 UTC (rev 112410)
@@ -251,9 +251,11 @@
// languages that want to put the for bit right after $user 
but before
// $links.  If 'contribsub' is around, use it for reverse 
compatibility,
// otherwise use 'contribsub2'.
+   // @todo Should this be removed at some point?
$oldMsg = $this-msg( 'contribsub' );
if ( $oldMsg-exists() ) {
-   return $oldMsg-rawParams( $user ($links) );
+   $linksWithParentheses = $this-msg( 'parenteses' 
)-rawParams( $links );
+   return $oldMsg-rawParams( $user 
$linksWithParentheses

[MediaWiki-CVS] SVN: [112412] trunk/phase3/includes/Linker.php

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112412

Revision: 112412
Author:   siebrand
Date: 2012-02-25 20:53:54 + (Sat, 25 Feb 2012)
Log Message:
---
Follow-up r112410: (bug 34702) Use localised parentheses for comment, too.

Modified Paths:
--
trunk/phase3/includes/Linker.php

Modified: trunk/phase3/includes/Linker.php
===
--- trunk/phase3/includes/Linker.php2012-02-25 20:44:25 UTC (rev 112411)
+++ trunk/phase3/includes/Linker.php2012-02-25 20:53:54 UTC (rev 112412)
@@ -1399,7 +1399,8 @@
return '';
} else {
$formatted = self::formatComment( $comment, $title, 
$local );
-   return  span class=\comment\($formatted)/span;
+   $formatted = wfMessage( 'parentheses' )-rawParams( 
$formatted );
+   return  span class=\comment\$formatted/span;
}
}
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112413] trunk/translatewiki/Shapado/Shapado.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112413

Revision: 112413
Author:   siebrand
Date: 2012-02-25 21:11:05 + (Sat, 25 Feb 2012)
Log Message:
---
Update paths.

Modified Paths:
--
trunk/translatewiki/Shapado/Shapado.yaml

Modified: trunk/translatewiki/Shapado/Shapado.yaml
===
--- trunk/translatewiki/Shapado/Shapado.yaml2012-02-25 20:53:54 UTC (rev 
112412)
+++ trunk/translatewiki/Shapado/Shapado.yaml2012-02-25 21:11:05 UTC (rev 
112413)
@@ -547,8 +547,8 @@
 
 FILES:
   class: ShapadoJsFFS
-  sourcePattern: %GROUPROOT%/shapado/public/javascripts/i18n/%CODE%.js
-  targetPattern: shapado/public/javascripts/i18n/%CODE%.js
+  sourcePattern: %GROUPROOT%/shapado/apps/assets/javascripts/i18n/%CODE%.js
+  targetPattern: shapado/apps/assets/javascripts/i18n/%CODE%.js
 
 MANGLER:
   prefix: js-


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112414] trunk/translatewiki/Shapado/Shapado.yaml

2012-02-25 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112414

Revision: 112414
Author:   siebrand
Date: 2012-02-25 21:12:57 + (Sat, 25 Feb 2012)
Log Message:
---
Fix incorrect paths in r112413.

Modified Paths:
--
trunk/translatewiki/Shapado/Shapado.yaml

Modified: trunk/translatewiki/Shapado/Shapado.yaml
===
--- trunk/translatewiki/Shapado/Shapado.yaml2012-02-25 21:11:05 UTC (rev 
112413)
+++ trunk/translatewiki/Shapado/Shapado.yaml2012-02-25 21:12:57 UTC (rev 
112414)
@@ -547,8 +547,8 @@
 
 FILES:
   class: ShapadoJsFFS
-  sourcePattern: %GROUPROOT%/shapado/apps/assets/javascripts/i18n/%CODE%.js
-  targetPattern: shapado/apps/assets/javascripts/i18n/%CODE%.js
+  sourcePattern: %GROUPROOT%/shapado/app/assets/javascripts/i18n/%CODE%.js
+  targetPattern: shapado/app/assets/javascripts/i18n/%CODE%.js
 
 MANGLER:
   prefix: js-


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112250] trunk

2012-02-23 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112250

Revision: 112250
Author:   siebrand
Date: 2012-02-23 22:14:25 + (Thu, 23 Feb 2012)
Log Message:
---
Follow-up r85935: Add key for JavaScript customisation page.
Some spaces to tabs.

Modified Paths:
--
trunk/extensions/UploadWizard/UploadWizard.i18n.php
trunk/translatewiki/MediaWiki/mediawiki-defines.txt

Modified: trunk/extensions/UploadWizard/UploadWizard.i18n.php
===
--- trunk/extensions/UploadWizard/UploadWizard.i18n.php 2012-02-23 22:11:31 UTC 
(rev 112249)
+++ trunk/extensions/UploadWizard/UploadWizard.i18n.php 2012-02-23 22:14:25 UTC 
(rev 112250)
@@ -212,17 +212,17 @@
'mwe-upwiz-license-fal' = 'Free Art License',
'mwe-upwiz-license-own-pd' = 'All rights waived with Creative Commons 
Zero license (like public domain)',
'mwe-upwiz-license-pd-old-100' = 'Author died more than 100 years ago',
-'mwe-upwiz-license-pd-old' = 'Author died more than 70 years ago',
-'mwe-upwiz-license-pd-art' = 'Faithful reproduction of a painting 
that is in the public domain',
-'mwe-upwiz-license-pd-us' = 'First published in the United States 
before 1923',
-'mwe-upwiz-license-pd-usgov' = 'Original work of the US Federal 
Government',
-'mwe-upwiz-license-pd-usgov-nasa' = 'Original work of NASA',
-'mwe-upwiz-license-pd-usgov-military-navy' = 'Original work of the US 
Military Navy',
-'mwe-upwiz-license-pd-ineligible' = 'Too simple to be copyrighted',
-'mwe-upwiz-license-pd-ineligible-help' = 'Be careful with this one. 
The image has to be very simple, like a green circle or red square',
-'mwe-upwiz-license-pd-textlogo' = 'Logo with only simple text 
(wordmark)',
-'mwe-upwiz-license-copyrighted-free-use' = 'Copyrighted, but may be 
used for any purpose, including commercially',
-'mwe-upwiz-license-attribution' = 'May be used for any purpose, 
including commercially, if the copyright holder is properly attributed',
+   'mwe-upwiz-license-pd-old' = 'Author died more than 70 years ago',
+   'mwe-upwiz-license-pd-art' = 'Faithful reproduction of a painting that 
is in the public domain',
+   'mwe-upwiz-license-pd-us' = 'First published in the United States 
before 1923',
+   'mwe-upwiz-license-pd-usgov' = 'Original work of the US Federal 
Government',
+   'mwe-upwiz-license-pd-usgov-nasa' = 'Original work of NASA',
+   'mwe-upwiz-license-pd-usgov-military-navy' = 'Original work of the US 
Military Navy',
+   'mwe-upwiz-license-pd-ineligible' = 'Too simple to be copyrighted',
+   'mwe-upwiz-license-pd-ineligible-help' = 'Be careful with this one. 
The image has to be very simple, like a green circle or red square',
+   'mwe-upwiz-license-pd-textlogo' = 'Logo with only simple text 
(wordmark)',
+   'mwe-upwiz-license-copyrighted-free-use' = 'Copyrighted, but may be 
used for any purpose, including commercially',
+   'mwe-upwiz-license-attribution' = 'May be used for any purpose, 
including commercially, if the copyright holder is properly attributed',
'mwe-upwiz-license-gfdl' = 'GNU Free Documentation License',
'mwe-upwiz-license-cc-by-sa-3.0-gfdl' = 'Copyleft, attribution 
required (GFDL, CC-BY-SA-3.0)',
 
@@ -335,6 +335,9 @@
'mwe-upwiz-prefs-def-license-def' = 'Use whatever the default is',
'mwe-upwiz-prefs-license-own' = 'Own work - $1',
'mwe-upwiz-prefs-license-thirdparty' = Someone else's work - $1,
+
+   // See for example.
+   'languageHandler.js' = '', # Do not translate this message.
 );
 
 /** Message documentation (Message documentation)

Modified: trunk/translatewiki/MediaWiki/mediawiki-defines.txt
===
--- trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-23 22:11:31 UTC 
(rev 112249)
+++ trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-23 22:14:25 UTC 
(rev 112250)
@@ -1718,6 +1718,7 @@
 
 Upload Wizard
 aliasfile = UploadWizard/UploadWizard.alias.php
+ignored = languageHandler.js
 
 Unicode Converter
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111994] trunk/extensions/Translate/utils/TranslationHelpers.php

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111994

Revision: 111994
Author:   siebrand
Date: 2012-02-21 09:26:26 + (Tue, 21 Feb 2012)
Log Message:
---
Partial revert of r111866: utils\TranslationHelpers.php change was based on an 
incorrect comment.

Modified Paths:
--
trunk/extensions/Translate/utils/TranslationHelpers.php

Modified: trunk/extensions/Translate/utils/TranslationHelpers.php
===
--- trunk/extensions/Translate/utils/TranslationHelpers.php 2012-02-21 
08:31:55 UTC (rev 111993)
+++ trunk/extensions/Translate/utils/TranslationHelpers.php 2012-02-21 
09:26:26 UTC (rev 111994)
@@ -1376,6 +1376,11 @@
 
public static function addModules( OutputPage $out ) {
$out-addModules( 'ext.translate.quickedit' );
+
+   // Might be needed, but ajax doesn't load it
+   // Globals :(
+   $diff = new DifferenceEngine;
+   $diff-showDiffStyle();
}
 
/// @since 2012-01-04


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112008] trunk/extensions/Translate/utils/MessageIndex.php

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112008

Revision: 112008
Author:   siebrand
Date: 2012-02-21 12:24:56 + (Tue, 21 Feb 2012)
Log Message:
---
Whitespace updates.

Modified Paths:
--
trunk/extensions/Translate/utils/MessageIndex.php

Modified: trunk/extensions/Translate/utils/MessageIndex.php
===
--- trunk/extensions/Translate/utils/MessageIndex.php   2012-02-21 12:02:40 UTC 
(rev 112007)
+++ trunk/extensions/Translate/utils/MessageIndex.php   2012-02-21 12:24:56 UTC 
(rev 112008)
@@ -33,7 +33,6 @@
return self::$instance;
}
 
-
/**
 * @since 2012-01-04
 * @return array
@@ -74,7 +73,6 @@
return array();
}
$recursion++;
-   
 
$groups = MessageGroups::singleton()-getGroups();
 
@@ -213,7 +211,6 @@
$file = TranslateUtils::cacheFile( $this-filename );
file_put_contents( $file, serialize( $array ) );
}
-
 }
 
 /**
@@ -249,5 +246,4 @@
$key = wfMemckey( $this-key );
$this-cache-set( $key, $array );
}
-
 }


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112009] trunk/extensions/Translate/lcadft/SpecialTranslatorSignup.php

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112009

Revision: 112009
Author:   siebrand
Date: 2012-02-21 12:46:28 + (Tue, 21 Feb 2012)
Log Message:
---
Fix typo and update whitespace.

Modified Paths:
--
trunk/extensions/Translate/lcadft/SpecialTranslatorSignup.php

Modified: trunk/extensions/Translate/lcadft/SpecialTranslatorSignup.php
===
--- trunk/extensions/Translate/lcadft/SpecialTranslatorSignup.php   
2012-02-21 12:24:56 UTC (rev 112008)
+++ trunk/extensions/Translate/lcadft/SpecialTranslatorSignup.php   
2012-02-21 12:46:28 UTC (rev 112009)
@@ -64,7 +64,6 @@
} else {
$status = $this-msg( 'lcadft-email-notset' )-parse();
}
-   
 
$m['emailstatus'] = array(
'type' = 'info',
@@ -108,7 +107,7 @@
$this-msg( 'lcadft-freq-week' )-text()= 
'week',
$this-msg( 'lcadft-freq-month' )-text()   = 
'month',
$this-msg( 'lcadft-freq-weekly' )-text()  = 
'weekly',
-   $this-msg( 'lcadft-freq-monthly' )-text() = 
'monthl',
+   $this-msg( 'lcadft-freq-monthly' )-text() = 
'monthly',
),
);
return $m;
@@ -146,5 +145,4 @@
 
return array_combine( $wikis, $wikis );
}
-
 }


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112010] trunk/extensions/Translate/lcadft/LCADFT.alias.php

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112010

Revision: 112010
Author:   siebrand
Date: 2012-02-21 12:52:39 + (Tue, 21 Feb 2012)
Log Message:
---
Use the regular pattern for special page names.

Modified Paths:
--
trunk/extensions/Translate/lcadft/LCADFT.alias.php

Modified: trunk/extensions/Translate/lcadft/LCADFT.alias.php
===
--- trunk/extensions/Translate/lcadft/LCADFT.alias.php  2012-02-21 12:46:28 UTC 
(rev 112009)
+++ trunk/extensions/Translate/lcadft/LCADFT.alias.php  2012-02-21 12:52:39 UTC 
(rev 112010)
@@ -10,5 +10,5 @@
 
 /** English (English) */
 $specialPageAliases['en'] = array(
-   'TranslatorSignup' = array( 'Translator Signup' ),
+   'TranslatorSignup' = array( 'TranslatorSignup' ),
 );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112011] trunk/extensions/Translate/lcadft/LCADFT.php

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112011

Revision: 112011
Author:   siebrand
Date: 2012-02-21 12:58:10 + (Tue, 21 Feb 2012)
Log Message:
---
Add to $wgSpecialPageGroups

Modified Paths:
--
trunk/extensions/Translate/lcadft/LCADFT.php

Modified: trunk/extensions/Translate/lcadft/LCADFT.php
===
--- trunk/extensions/Translate/lcadft/LCADFT.php2012-02-21 12:52:39 UTC 
(rev 112010)
+++ trunk/extensions/Translate/lcadft/LCADFT.php2012-02-21 12:58:10 UTC 
(rev 112011)
@@ -25,6 +25,7 @@
 
 $dir = dirname( __FILE__ );
 $wgSpecialPages['TranslatorSignup'] = 'SpecialTranslatorSignup';
+$wgSpecialPageGroups['TranslatorSignup'] = 'login';
 $wgExtensionMessagesFiles['LCADFT'] = $dir/LCADFT.i18n.php;
 $wgExtensionMessagesFiles['LCADFT-alias'] = $dir/LCADFT.alias.php;
 $wgAutoloadClasses['SpecialTranslatorSignup'] = 
$dir/SpecialTranslatorSignup.php;


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112012] trunk/extensions/Translate/lcadft/LCADFT.i18n.php

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112012

Revision: 112012
Author:   siebrand
Date: 2012-02-21 13:00:12 + (Tue, 21 Feb 2012)
Log Message:
---
Tweak messages.

Modified Paths:
--
trunk/extensions/Translate/lcadft/LCADFT.i18n.php

Modified: trunk/extensions/Translate/lcadft/LCADFT.i18n.php
===
--- trunk/extensions/Translate/lcadft/LCADFT.i18n.php   2012-02-21 12:58:10 UTC 
(rev 112011)
+++ trunk/extensions/Translate/lcadft/LCADFT.i18n.php   2012-02-21 13:00:12 UTC 
(rev 112012)
@@ -14,9 +14,9 @@
 $messages['en'] = array(
'translatorsignup' = 'Translator signup',
'lcadft-desc' = 'Allows translators sign up for translation 
notifications',
-   'lcadft-info' = 'Info',
-   'lcadft-username' = 'Username',
-   'lcadft-emailstatus' = 'E-mail status',
+   'lcadft-info' = 'User information',
+   'lcadft-username' = 'Username:',
+   'lcadft-emailstatus' = 'E-mail status:',
'lcadft-email-confirmed' = 'Your e-mail address is confirmed',
'lcadft-email-unconfirmed' = 'Your e-mail address is not confirmed. 
$1',
'lcadft-email-notset' = 'You have not provided an e-mail address. You 
can do that in your [[Special:Preferences|preferences]].',
@@ -36,11 +36,12 @@
 
 $messages['qqq'] = array(
'lcadft' = 'Special page header',
-   'lcadft-desc' = '{{desct}}',
+   'lcadft-desc' = '{{desc}}',
'lcadft-info' = 'Fieldset header',
'lcadft-username' = 'Label followed by username',
'lcadft-emailstatus' = 'Label',
-   'lcadft-email-unconfirmed' = '$1 is a button which can be used to send 
confirmation email. Button text is in Mediawiki:confirmemail_send message.',
+   'lcadft-email-unconfirmed' = 'Parameters:
+* $1 is a button which can be used to send confirmation email. Button text is 
{{msg-mw|mediawiki:confirmemail_send}}.',
'lcadft-contact' = 'Fieldset header',
'lcadft-cmethod-email' = 'Check option label',
'lcadft-cmethod-talkpage' = 'Check option label',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [112014] trunk/extensions/Translate

2012-02-21 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112014

Revision: 112014
Author:   siebrand
Date: 2012-02-21 13:41:00 + (Tue, 21 Feb 2012)
Log Message:
---
Remove some no longer needed uses of User::getSkin(). Use static linker method 
instead.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialFirstSteps.php
trunk/extensions/Translate/specials/SpecialSupportedLanguages.php
trunk/extensions/Translate/specials/SpecialTranslations.php
trunk/extensions/Translate/tag/SpecialPageTranslation.php
trunk/extensions/Translate/utils/ToolBox.php
trunk/extensions/Translate/utils/TranslationHelpers.php

Modified: trunk/extensions/Translate/specials/SpecialFirstSteps.php
===
--- trunk/extensions/Translate/specials/SpecialFirstSteps.php   2012-02-21 
13:30:27 UTC (rev 112013)
+++ trunk/extensions/Translate/specials/SpecialFirstSteps.php   2012-02-21 
13:41:00 UTC (rev 112014)
@@ -16,13 +16,7 @@
  * @ingroup SpecialPage TranslateSpecialPage
  */
 class SpecialFirstSteps extends UnlistedSpecialPage {
-
/**
-* @var Skin
-*/
-   protected $skin;
-
-   /**
 * @var User
 */
protected $user;
@@ -40,7 +34,6 @@
global $wgOut, $wgUser;
$this-out = $wgOut;
$this-user = $wgUser;
-   $this-skin = $wgUser-getSkin();
 
$this-out-addWikiMsg( 'translate-fs-intro' );
$step = false;

Modified: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php
===
--- trunk/extensions/Translate/specials/SpecialSupportedLanguages.php   
2012-02-21 13:30:27 UTC (rev 112013)
+++ trunk/extensions/Translate/specials/SpecialSupportedLanguages.php   
2012-02-21 13:41:00 UTC (rev 112014)
@@ -77,10 +77,7 @@
$this-preQueryUsers( $users );
 
list( $editcounts, $lastedits ) = $this-getUserStats();
-   global $wgUser;
 
-   $skin = $wgUser-getSkin();
-
// Information to be used inside the foreach loop.
$linkInfo['rc']['title'] = SpecialPage::getTitleFor( 
'Recentchanges' );
$linkInfo['rc']['msg'] = wfMsg( 
'supportedlanguages-recenttranslations' );
@@ -103,7 +100,7 @@
$wgOut-addHtml( Html::openElement( 'h2', array( 'id' 
= $code ) ) );
if ( defined( 'NS_PORTAL' ) ) {
$portalTitle = Title::makeTitleSafe( NS_PORTAL, 
$code );
-   $wgOut-addHtml( $skin-linkKnown( 
$portalTitle, $headerText ) );
+   $wgOut-addHtml( Linker::linkKnown( 
$portalTitle, $headerText ) );
} else {
$wgOut-addHtml( $headerText );
}
@@ -112,7 +109,7 @@
 
// Add useful links for language stats and recent 
changes for the language.
$links = array();
-   $links[] = $skin-link(
+   $links[] = Linker::link(
$linkInfo['stats']['title'],
$linkInfo['stats']['msg'],
array(),
@@ -122,7 +119,7 @@
),
array( 'known', 'noclasses' )
);
-   $links[] = $skin-link(
+   $links[] = Linker::link(
$linkInfo['rc']['title'],
$linkInfo['rc']['msg'],
array(),
@@ -270,8 +267,7 @@
}
 
protected function makeUserList( $users, $editcounts, $lastedits ) {
-   global $wgOut, $wgLang, $wgUser;
-   $skin = $wgUser-getSkin();
+   global $wgOut, $wgLang;
 
$day = 60 * 60 * 24;
 
@@ -306,7 +302,7 @@
$stylestr = $this-formatStyle( $styles );
if ( $stylestr ) $attribs['style'] = $stylestr;
 
-   $links[] = $skin-link( $title, $enc, $attribs );
+   $links[] = Linker::link( $title, $enc, $attribs );
}
 
$wgOut-addHTML( p class='mw-translate-spsl-translators' . 
wfMsgExt(

Modified: trunk/extensions/Translate/specials/SpecialTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-21 
13:30:27 UTC (rev 112013)
+++ trunk/extensions/Translate/specials/SpecialTranslations.php 2012-02-21 
13:41:00 UTC (rev 112014)
@@ -136,8 +136,6 @@
function showTranslations( Title $title ) {
global $wgOut, $wgUser, $wgLang;
 
-   $sk = $wgUser-getSkin

[MediaWiki-CVS] SVN: [111915] trunk/phase3/maintenance/language

2012-02-20 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111915

Revision: 111915
Author:   siebrand
Date: 2012-02-20 09:57:23 + (Mon, 20 Feb 2012)
Log Message:
---
Remove trailing newlines.

Modified Paths:
--
trunk/phase3/maintenance/language/generateCollationData.php
trunk/phase3/maintenance/language/transstat.php

Modified: trunk/phase3/maintenance/language/generateCollationData.php
===
--- trunk/phase3/maintenance/language/generateCollationData.php 2012-02-20 
07:51:24 UTC (rev 111914)
+++ trunk/phase3/maintenance/language/generateCollationData.php 2012-02-20 
09:57:23 UTC (rev 111915)
@@ -386,4 +386,3 @@
 
 $maintClass = 'GenerateCollationData';
 require_once( RUN_MAINTENANCE_IF_MAIN );
-

Modified: trunk/phase3/maintenance/language/transstat.php
===
--- trunk/phase3/maintenance/language/transstat.php 2012-02-20 07:51:24 UTC 
(rev 111914)
+++ trunk/phase3/maintenance/language/transstat.php 2012-02-20 09:57:23 UTC 
(rev 111915)
@@ -134,5 +134,3 @@
 
 # Footer
 $output-footer();
-
-


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111916] trunk/phase3/maintenance/language/checkLanguage.inc

2012-02-20 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111916

Revision: 111916
Author:   siebrand
Date: 2012-02-20 09:57:56 + (Mon, 20 Feb 2012)
Log Message:
---
Fixes for highlighter.

Modified Paths:
--
trunk/phase3/maintenance/language/checkLanguage.inc

Modified: trunk/phase3/maintenance/language/checkLanguage.inc
===
--- trunk/phase3/maintenance/language/checkLanguage.inc 2012-02-20 09:57:23 UTC 
(rev 111915)
+++ trunk/phase3/maintenance/language/checkLanguage.inc 2012-02-20 09:57:56 UTC 
(rev 111916)
@@ -222,17 +222,17 @@
--links: Link the message values (default off).
--prefix: prefix to add to links.
--wikilang: For the links, what is the content language of the wiki to 
display the output in (default en).
-   --noexif: Don't check for EXIF messages (a bit hard and boring to 
translate), if you know
+   --noexif: Do not check for EXIF messages (a bit hard and boring to 
translate), if you know
that they are currently not translated and want to focus on 
other problems (default off).
--whitelist: Do only the following checks (form: code,code).
-   --blacklist: Don't do the following checks (form: code,code).
+   --blacklist: Do not do the following checks (form: code,code).
--easy: Do only the easy checks, which can be treated by non-speakers 
of the language.
 
 Check codes (ideally, all of them should result 0; all the checks are executed 
by default (except language-specific check blacklists in checkLanguage.inc):
* untranslated: Messages which are required to translate, but are not 
translated.
* duplicate: Messages which translation equal to fallback
* obsolete: Messages which are untranslatable or do not exist, but are 
translated.
-   * variables: Messages without variables which should be used, or with 
variables which shouldn't be used.
+   * variables: Messages without variables which should be used, or with 
variables which should not be used.
* empty: Empty messages and messages that contain only -.
* whitespace: Messages which have trailing whitespace.
* xhtml: Messages which are not well-formed XHTML (checks only few 
common errors).


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111917] trunk/phase3/maintenance/language

2012-02-20 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111917

Revision: 111917
Author:   siebrand
Date: 2012-02-20 10:03:13 + (Mon, 20 Feb 2012)
Log Message:
---
Remove trailing newlines.

Modified Paths:
--
trunk/phase3/maintenance/language/generateNormalizerData.php
trunk/phase3/maintenance/language/validate.php

Modified: trunk/phase3/maintenance/language/generateNormalizerData.php
===
--- trunk/phase3/maintenance/language/generateNormalizerData.php
2012-02-20 09:57:56 UTC (rev 111916)
+++ trunk/phase3/maintenance/language/generateNormalizerData.php
2012-02-20 10:03:13 UTC (rev 111917)
@@ -155,4 +155,3 @@
 
 $maintClass = 'GenerateNormalizerData';
 require_once( RUN_MAINTENANCE_IF_MAIN );
-

Modified: trunk/phase3/maintenance/language/validate.php
===
--- trunk/phase3/maintenance/language/validate.php  2012-02-20 09:57:56 UTC 
(rev 111916)
+++ trunk/phase3/maintenance/language/validate.php  2012-02-20 10:03:13 UTC 
(rev 111917)
@@ -58,4 +58,3 @@
unset( $vars['filename'] );
return $vars;
 }
-


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111918] trunk/phase3/maintenance/language/lang2po.php

2012-02-20 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111918

Revision: 111918
Author:   siebrand
Date: 2012-02-20 10:08:41 + (Mon, 20 Feb 2012)
Log Message:
---
Remove obsolete and broken lang2po.php.

Removed Paths:
-
trunk/phase3/maintenance/language/lang2po.php

Deleted: trunk/phase3/maintenance/language/lang2po.php
===
--- trunk/phase3/maintenance/language/lang2po.php   2012-02-20 10:03:13 UTC 
(rev 111917)
+++ trunk/phase3/maintenance/language/lang2po.php   2012-02-20 10:08:41 UTC 
(rev 111918)
@@ -1,166 +0,0 @@
-?php
-/**
- * Convert Language files to .po files !
- *
- * Todo:
- *   - generate .po header
- *   - fix escaping of \
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @ingroup MaintenanceLanguage
- */
-
-/** This is a command line script */
-require_once( dirname( __FILE__ ) . '/../Maintenance.php' );
-require_once( dirname( __FILE__ ) . '/languages.inc' );
-
-define( 'ALL_LANGUAGES',true );
-define( 'XGETTEXT_BIN', 'xgettext' );
-define( 'MSGMERGE_BIN', 'msgmerge' );
-
-// used to generate the .pot
-define( 'XGETTEXT_OPTIONS', '-n --keyword=wfMsg --keyword=wfMsgForContent 
--keyword=wfMsgHtml --keyword=wfMsgWikiHtml ' );
-define( 'MSGMERGE_OPTIONS', ' -v ' );
-
-define( 'LOCALE_OUTPUT_DIR', $IP . '/locale' );
-
-class Lang2Po extends Maintenance {
-   public function __construct() {
-   parent::__construct();
-   $this-mDescription = ;
-   $this-addOption( 'lang', 'a lang code you want to generate a 
.po for (default: all langs)', false, true );
-   }
-
-   public function execute() {
-   // Generate a template .pot based on source tree
-   $this-output( Getting 'gettext' default messages from 
sources: );
-   $this-generatePot();
-   $this-output( done.\n );
-
-
-   $langTool = new languages();
-   if ( $this-getOption( 'lang', ALL_LANGUAGES ) === 
ALL_LANGUAGES ) {
-   $codes = $langTool-getLanguages();
-   } else {
-   $codes = array( $this-getOption( 'lang' ) );
-   }
-
-   // Do all languages
-   foreach ( $codes as $langcode ) {
-   $this-output( Loading messages for $langcode:\n );
-   if ( !$this-generatePo( $langcode, 
$langTool-getMessages( $langcode ) ) ) {
-   $this-error( ERROR: Failed to write file. );
-   } else {
-   $this-output( Applying template: );
-   $this-applyPot( $langcode );
-   }
-   }
-   }
-
-   /**
-* Return a dummy header for later edition.
-*
-* @return String: a dummy header
-*/
-   private function poHeader() {
-   return '# SOME DESCRIPTIVE TITLE.
-# Copyright (C) 2005 MediaWiki
-# This file is distributed under the same license as the MediaWiki package.
-# FIRST AUTHOR EMAIL@ADDRESS, YEAR.
-#
-#, fuzzy
-msgid 
-msgstr 
-Project-Id-Version: PACKAGE VERSION\n
-Report-Msgid-Bugs-To: bugzillla\n
-POT-Creation-Date: 2005-08-16 20:13+0200\n
-PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
-Last-Translator: VARIOUS nobody\n
-Language-Team: LANGUAGE nobody\n
-MIME-Version: 1.0\n
-Content-Type: text/plain; charset=UTF-8\n
-Content-Transfer-Encoding: 8bit\n
-';
-   }
-
-   /**
-* generate and write a file in .po format.
-*
-* @param $langcode String: code of a language it will process.
-* @param $messages Array containing the various messages.
-* @return string Filename where stuff got saved or false.
-*/
-   private function generatePo( $langcode, $messages ) {
-   $data = $this-poHeader();
-
-   // Generate .po entries
-   foreach ( $messages['all'] as $identifier = $content ) {
-   $data .= msgid \$identifier\\n;
-
-   // Escape backslashes
-   $tmp = str_replace( '\\', '', $content );
-   // Escape doublelquotes

[MediaWiki-CVS] SVN: [111857] trunk/extensions/Cite/SpecialCite.i18n.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111857

Revision: 111857
Author:   siebrand
Date: 2012-02-19 09:15:10 + (Sun, 19 Feb 2012)
Log Message:
---
Add cite-summary to Special:AllMessages.

Modified Paths:
--
trunk/extensions/Cite/SpecialCite.i18n.php

Modified: trunk/extensions/Cite/SpecialCite.i18n.php
===
--- trunk/extensions/Cite/SpecialCite.i18n.php  2012-02-19 09:11:28 UTC (rev 
111856)
+++ trunk/extensions/Cite/SpecialCite.i18n.php  2012-02-19 09:15:10 UTC (rev 
111857)
@@ -14,6 +14,7 @@
'tooltip-cite-article'= 'Information on how to cite this page',
'accesskey-cite-article'  = '', # Do not translate this
'cite'= 'Cite',
+   'cite-summary'= '', # Do not translate this
'cite_page'   = 'Page:',
'cite_submit' = 'Cite',
'cite_text'   = '', # Do not translate this


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111858] trunk/extensions/Cite/Cite.i18n.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111858

Revision: 111858
Author:   siebrand
Date: 2012-02-19 09:16:50 + (Sun, 19 Feb 2012)
Log Message:
---
Partial revert of r111855. Wrong file for cite-summary.

Modified Paths:
--
trunk/extensions/Cite/Cite.i18n.php

Modified: trunk/extensions/Cite/Cite.i18n.php
===
--- trunk/extensions/Cite/Cite.i18n.php 2012-02-19 09:15:10 UTC (rev 111857)
+++ trunk/extensions/Cite/Cite.i18n.php 2012-02-19 09:16:50 UTC (rev 111858)
@@ -10,7 +10,6 @@
 
 $messages['en'] = array(
'cite-desc'  = 'Adds nowikiref[ 
name=id]/nowiki and nowikireferences//nowiki tags, for citations',
-   'cite-summary'   = '', # do not translate or duplicate 
this message to other languages
/*
Debug and errors
*/


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111859] trunk/phase3/maintenance/language/messages.inc

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111859

Revision: 111859
Author:   siebrand
Date: 2012-02-19 09:18:45 + (Sun, 19 Feb 2012)
Log Message:
---
Follow-up r111855: add watchlist-summary to messages.inc.

Modified Paths:
--
trunk/phase3/maintenance/language/messages.inc

Modified: trunk/phase3/maintenance/language/messages.inc
===
--- trunk/phase3/maintenance/language/messages.inc  2012-02-19 09:16:50 UTC 
(rev 111858)
+++ trunk/phase3/maintenance/language/messages.inc  2012-02-19 09:18:45 UTC 
(rev 111859)
@@ -1837,6 +1837,7 @@
),
'watchlist' = array(
'watchlist',
+   'watchlist-summary',
'mywatchlist',
'watchlistfor2',
'nowatchlist',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111860] trunk/translatewiki/Wikia/extensions.txt

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111860

Revision: 111860
Author:   siebrand
Date: 2012-02-19 10:02:42 + (Sun, 19 Feb 2012)
Log Message:
---
Update support for Wikia MediaWiki extensions.

Modified Paths:
--
trunk/translatewiki/Wikia/extensions.txt

Modified: trunk/translatewiki/Wikia/extensions.txt
===
--- trunk/translatewiki/Wikia/extensions.txt2012-02-19 09:18:45 UTC (rev 
111859)
+++ trunk/translatewiki/Wikia/extensions.txt2012-02-19 10:02:42 UTC (rev 
111860)
@@ -201,9 +201,6 @@
 Related Pages
 descmsg = wikiarelatedpages-desc
 
-Related Video
-file = RelatedVideo/i18n/RelatedVideo.i18n.php
-
 Related Videos
 
 RTE - Base
@@ -223,8 +220,6 @@
 
 Shared Help
 
-Share Feature
-
 Show Performance Stats
 
 Signup


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111866] trunk/extensions/Translate

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111866

Revision: 111866
Author:   siebrand
Date: 2012-02-19 15:16:32 + (Sun, 19 Feb 2012)
Log Message:
---
Remove 1.17 compatibility code.

Modified Paths:
--
trunk/extensions/Translate/README
trunk/extensions/Translate/Translate.php
trunk/extensions/Translate/TranslateHooks.php
trunk/extensions/Translate/specials/SpecialImportTranslations.php
trunk/extensions/Translate/tag/PageTranslationHooks.php
trunk/extensions/Translate/utils/TranslationHelpers.php

Modified: trunk/extensions/Translate/README
===
--- trunk/extensions/Translate/README   2012-02-19 14:47:45 UTC (rev 111865)
+++ trunk/extensions/Translate/README   2012-02-19 15:16:32 UTC (rev 111866)
@@ -30,6 +30,8 @@
  https://translatewiki.net/docs/Translate/html/
 
 == Change log ==
+* 2012-02-19
+- MediaWiki 1.18 or later is now required.
 * 2012-02-13
 - Updated some deprecated function calls
 - New translation memory called TTMServer comes with the extension and is 
enabled

Modified: trunk/extensions/Translate/Translate.php
===
--- trunk/extensions/Translate/Translate.php2012-02-19 14:47:45 UTC (rev 
111865)
+++ trunk/extensions/Translate/Translate.php2012-02-19 15:16:32 UTC (rev 
111866)
@@ -269,13 +269,6 @@
'scripts' = 'resources/jquery.autoresize.js',
 ) + $resourcePaths;
 
-// Doesn't exist in 1.17, but declaring twice causes an error
-if ( version_compare( $wgVersion, '1.18', '' ) ) {
-$wgResourceModules['jquery.form'] = array(
-   'scripts' = 'resources/jquery.form.js',
-) + $resourcePaths;
-}
-
 /** @endcond */
 
 

Modified: trunk/extensions/Translate/TranslateHooks.php
===
--- trunk/extensions/Translate/TranslateHooks.php   2012-02-19 14:47:45 UTC 
(rev 111865)
+++ trunk/extensions/Translate/TranslateHooks.php   2012-02-19 15:16:32 UTC 
(rev 111866)
@@ -84,10 +84,6 @@
define( 'NS_TRANSLATIONS_TALK', 
$wgPageTranslationNamespace + 1 );
}
 
-   if ( version_compare( $wgVersion, '1.17alpha', '' ) ) {
-   efTranslateNamespaces( $wgExtraNamespaces );
-   }
-
$wgNamespacesWithSubpages[NS_TRANSLATIONS]  = true;
$wgNamespacesWithSubpages[NS_TRANSLATIONS_TALK] = true;
 

Modified: trunk/extensions/Translate/specials/SpecialImportTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialImportTranslations.php   
2012-02-19 14:47:45 UTC (rev 111865)
+++ trunk/extensions/Translate/specials/SpecialImportTranslations.php   
2012-02-19 15:16:32 UTC (rev 111866)
@@ -158,9 +158,6 @@
$this-request-getText( 'upload-type' ) === 
'wiki' ) .
\n . Xml::closeElement( 'td' ) . Xml::openElement( 
'td' ) . \n .
Xml::input( 'upload-wiki', 50,
-   /**
-* @todo Needs i18n in content 
language.
-*/
$this-request-getText( 'upload-wiki', 'File:' 
),
array( 'id' = 'mw-translate-up-wiki-input' ) + 
$class ) .
\n . Xml::closeElement( 'td' ) . Xml::closeElement( 
'tr' ) .

Modified: trunk/extensions/Translate/tag/PageTranslationHooks.php
===
--- trunk/extensions/Translate/tag/PageTranslationHooks.php 2012-02-19 
14:47:45 UTC (rev 111865)
+++ trunk/extensions/Translate/tag/PageTranslationHooks.php 2012-02-19 
15:16:32 UTC (rev 111866)
@@ -203,12 +203,7 @@
 
$options = $parser-getOptions();
 
-   if ( method_exists( $options, 'getUserLang' ) ) {
-   $userLangCode = $options-getUserLang();
-   } else { // Backward compat for MediaWiki 1.17
-   global $wgLang;
-   $userLangCode = $wgLang-getCode();
-   }
+   $userLangCode = $options-getUserLang();
 
// BC for 1.19
$linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new 
Linker;

Modified: trunk/extensions/Translate/utils/TranslationHelpers.php
===
--- trunk/extensions/Translate/utils/TranslationHelpers.php 2012-02-19 
14:47:45 UTC (rev 111865)
+++ trunk/extensions/Translate/utils/TranslationHelpers.php 2012-02-19 
15:16:32 UTC (rev 111866)
@@ -1376,13 +1376,6 @@
 
public static function addModules( OutputPage $out ) {
$out-addModules

[MediaWiki-CVS] SVN: [111867] trunk/extensions/Translate/ffs/Gettext.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111867

Revision: 111867
Author:   siebrand
Date: 2012-02-19 15:27:18 + (Sun, 19 Feb 2012)
Log Message:
---
* Some refactoring for parseGettextData()
* Remove remaining pre 1.18 compat.

Modified Paths:
--
trunk/extensions/Translate/ffs/Gettext.php

Modified: trunk/extensions/Translate/ffs/Gettext.php
===
--- trunk/extensions/Translate/ffs/Gettext.php  2012-02-19 15:16:32 UTC (rev 
111866)
+++ trunk/extensions/Translate/ffs/Gettext.php  2012-02-19 15:27:18 UTC (rev 
111867)
@@ -58,12 +58,11 @@
 * or use msgctxt (non-standard po-files)
 * @param $mangler StringMangler
 * @return \array
-* @todo Refactor method into smaller parts.
 */
public static function parseGettextData( $data, $useCtxtAsKey = false, 
$mangler ) {
$potmode = false;
 
-   // Normalise newlines, to make processing easier lates
+   // Normalise newlines, to make processing easier
$data = str_replace( \r\n, \n, $data );
 
/* Delimit the file into sections, which are separated by two 
newlines.
@@ -83,7 +82,9 @@
 
// Check for pot-mode by checking if the header is fuzzy
$flags = self::parseFlags( $headerSection );
-   if ( in_array( 'fuzzy', $flags, true ) ) $potmode = 
true;
+   if ( in_array( 'fuzzy', $flags, true ) ) {
+   $potmode = true;
+   }
} else {
throw new MWException( Gettext file header was not 
found:\n\n$data );
}
@@ -112,111 +113,139 @@
 
// Then parse the messages
foreach ( $sections as $section ) {
-   if ( trim( $section ) === '' ) {
-   continue;
-   }
+   self::parseGettextSection(
+   $section,
+   $useCtxtAsKey,
+   $pluralCount,
+   $mangler,
+   $messages,
+   $template,
+   $metadata,
+   $headers
+   );
+   }
 
-   /* These inactive section are of no interest to us. 
Multiline mode
-* is needed because there may be flags or other 
annoying stuff
-* before the commented out sections.
-*/
-   if ( preg_match( '/^#~/m', $section ) ) continue;
+   return array(
+   'MESSAGES' = $messages,
+   'TEMPLATE' = $template,
+   'METADATA' = $metadata,
+   'HEADERS' = $headers
+   );
+   }
 
-   $item = array(
-   'ctxt'  = '',
-   'id'= '',
-   'str'   = '',
-   'flags' = array(),
-   'comments' = array(),
-   );
+   public static function parseGettextSection( $section, $useCtxtAsKey, 
$pluralCount, $manger, $messages, $template, $metadata, $headers ) {
+   if ( trim( $section ) === '' ) {
+   return false;
+   }
 
-   $match = self::expectKeyword( 'msgid', $section );
-   if ( $match !== null ) {
-   $item['id'] = self::formatForWiki( $match );
-   } else {
-   throw new MWException( Unable to parse 
msgid:\n\n$section );
-   }
+   /* These inactive sections are of no interest to us. Multiline 
mode
+* is needed because there may be flags or other annoying stuff
+* before the commented out sections.
+*/
+   if ( preg_match( '/^#~/m', $section ) ) {
+   return false;
+   }
 
-   $match = self::expectKeyword( 'msgctxt', $section );
-   if ( $match !== null ) {
-   $item['ctxt'] = self::formatForWiki( $match );
-   } elseif ( $useCtxtAsKey ) { // Invalid message
-   $metadata['warnings'][] = Ctxt missing for 
{$item['id']};
-   error_log( Ctxt missing for {$item['id']} );
-   }
+   $item = array(
+   'ctxt'  = '',
+   'id'= '',
+   'str'   = '',
+   'flags' = array

[MediaWiki-CVS] SVN: [111871] trunk/extensions/Translate

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111871

Revision: 111871
Author:   siebrand
Date: 2012-02-19 16:54:21 + (Sun, 19 Feb 2012)
Log Message:
---
Group description of translatable pages can be extended by adding content to 
[[MediaWiki:Tp-custom-group id]].

Modified Paths:
--
trunk/extensions/Translate/MessageGroups.php
trunk/extensions/Translate/README
trunk/extensions/Translate/Translate.php

Modified: trunk/extensions/Translate/MessageGroups.php
===
--- trunk/extensions/Translate/MessageGroups.php2012-02-19 16:32:42 UTC 
(rev 111870)
+++ trunk/extensions/Translate/MessageGroups.php2012-02-19 16:54:21 UTC 
(rev 111871)
@@ -5,7 +5,8 @@
  *
  * @file
  * @author Niklas Laxström
- * @copyright Copyright © 2008-2012, Niklas Laxström
+ * @author Siebrand Mazeland
+ * @copyright Copyright © 2008-2012, Niklas Laxström, Siebrand Mazeland
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
 
@@ -892,7 +893,16 @@
public function getDescription() {
$title = $this-title;
$target = SpecialPage::getTitleFor( 'MyLanguage', $title 
)-getPrefixedText();
-   return wfMsgNoTrans( 'translate-tag-page-desc', $title, $target 
);
+
+   // Allow for adding a custom group description by using
+   // MediaWiki:Tp-custom-group ID.
+   if( wfMessage( 'tp-custom-' . $this-id 
)-inContentLanguage()-exists() ) {
+   $customText = ' ' . wfMessage( 'tp-custom-' . $this-id 
)-getText();
+   } else {
+   $customText = '';
+   }
+
+   return wfMsgNoTrans( 'translate-tag-page-desc', $title, $target 
) . $customText;
}
 }
 

Modified: trunk/extensions/Translate/README
===
--- trunk/extensions/Translate/README   2012-02-19 16:32:42 UTC (rev 111870)
+++ trunk/extensions/Translate/README   2012-02-19 16:54:21 UTC (rev 111871)
@@ -32,6 +32,8 @@
 == Change log ==
 * 2012-02-19
 - MediaWiki 1.18 or later is now required.
+- Group description of translatable pages can be extended by adding content to
+  [[MediaWiki:Tp-custom-group id]].
 * 2012-02-13
 - Updated some deprecated function calls
 - New translation memory called TTMServer comes with the extension and is 
enabled

Modified: trunk/extensions/Translate/Translate.php
===
--- trunk/extensions/Translate/Translate.php2012-02-19 16:32:42 UTC (rev 
111870)
+++ trunk/extensions/Translate/Translate.php2012-02-19 16:54:21 UTC (rev 
111871)
@@ -15,7 +15,7 @@
 /**
  * Version number used in extension credits and in other placed where needed.
  */
-define( 'TRANSLATE_VERSION', '2012-02-12' );
+define( 'TRANSLATE_VERSION', '2012-02-19' );
 
 /**
  * Extension credits properties.


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111873] trunk/extensions/Translate/MessageGroups.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111873

Revision: 111873
Author:   siebrand
Date: 2012-02-19 17:17:42 + (Sun, 19 Feb 2012)
Log Message:
---
Fix incorrect call.

Modified Paths:
--
trunk/extensions/Translate/MessageGroups.php

Modified: trunk/extensions/Translate/MessageGroups.php
===
--- trunk/extensions/Translate/MessageGroups.php2012-02-19 17:06:06 UTC 
(rev 111872)
+++ trunk/extensions/Translate/MessageGroups.php2012-02-19 17:17:42 UTC 
(rev 111873)
@@ -897,7 +897,7 @@
// Allow for adding a custom group description by using
// MediaWiki:Tp-custom-group ID.
if( wfMessage( 'tp-custom-' . $this-id 
)-inContentLanguage()-exists() ) {
-   $customText = ' ' . wfMessage( 'tp-custom-' . $this-id 
)-getText();
+   $customText = ' ' . wfMessage( 'tp-custom-' . $this-id 
)-text();
} else {
$customText = '';
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111889] trunk/extensions/Translate/ffs/Gettext.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111889

Revision: 111889
Author:   siebrand
Date: 2012-02-19 20:58:28 + (Sun, 19 Feb 2012)
Log Message:
---
Fix typo in r111867.

Modified Paths:
--
trunk/extensions/Translate/ffs/Gettext.php

Modified: trunk/extensions/Translate/ffs/Gettext.php
===
--- trunk/extensions/Translate/ffs/Gettext.php  2012-02-19 20:47:51 UTC (rev 
111888)
+++ trunk/extensions/Translate/ffs/Gettext.php  2012-02-19 20:58:28 UTC (rev 
111889)
@@ -133,7 +133,7 @@
);
}
 
-   public static function parseGettextSection( $section, $useCtxtAsKey, 
$pluralCount, $manger, $messages, $template, $metadata, $headers ) {
+   public static function parseGettextSection( $section, $useCtxtAsKey, 
$pluralCount, $mangler, $messages, $template, $metadata, $headers ) {
if ( trim( $section ) === '' ) {
return false;
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111890] trunk/extensions/Translate/MessageGroups.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111890

Revision: 111890
Author:   siebrand
Date: 2012-02-19 21:07:55 + (Sun, 19 Feb 2012)
Log Message:
---
Fix some more stupidity in r111871. Thanks for the help, Niklas.

Modified Paths:
--
trunk/extensions/Translate/MessageGroups.php

Modified: trunk/extensions/Translate/MessageGroups.php
===
--- trunk/extensions/Translate/MessageGroups.php2012-02-19 20:58:28 UTC 
(rev 111889)
+++ trunk/extensions/Translate/MessageGroups.php2012-02-19 21:07:55 UTC 
(rev 111890)
@@ -896,13 +896,13 @@
 
// Allow for adding a custom group description by using
// MediaWiki:Tp-custom-group ID.
-   if( wfMessage( 'tp-custom-' . $this-id 
)-inContentLanguage()-exists() ) {
-   $customText = ' ' . wfMessage( 'tp-custom-' . $this-id 
)-text();
-   } else {
-   $customText = '';
+   $customText = '';
+   $customMessage = $wfMessage( 'tp-custom-' . $this-id 
)-inContentLanguage();
+   if( $customMessage-exists() ) {
+   $customText = $customMessage-plain();
}
 
-   return wfMsgNoTrans( 'translate-tag-page-desc', $title, $target 
) . $customText;
+   return wfMessage( 'translate-tag-page-desc', $title, $target 
)-plain() . $customText;
}
 }
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111913] trunk/extensions/Translate/ffs/Gettext.php

2012-02-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111913

Revision: 111913
Author:   siebrand
Date: 2012-02-20 07:45:47 + (Mon, 20 Feb 2012)
Log Message:
---
Fix Undefined variable: potmode in Gettext.php on line 224

Modified Paths:
--
trunk/extensions/Translate/ffs/Gettext.php

Modified: trunk/extensions/Translate/ffs/Gettext.php
===
--- trunk/extensions/Translate/ffs/Gettext.php  2012-02-20 06:10:06 UTC (rev 
111912)
+++ trunk/extensions/Translate/ffs/Gettext.php  2012-02-20 07:45:47 UTC (rev 
111913)
@@ -118,6 +118,7 @@
$useCtxtAsKey,
$pluralCount,
$mangler,
+   $potmode,
$messages,
$template,
$metadata,
@@ -133,7 +134,7 @@
);
}
 
-   public static function parseGettextSection( $section, $useCtxtAsKey, 
$pluralCount, $mangler, $messages, $template, $metadata, $headers ) {
+   public static function parseGettextSection( $section, $useCtxtAsKey, 
$pluralCount, $mangler, $potmode, $messages, $template, $metadata, $headers 
) {
if ( trim( $section ) === '' ) {
return false;
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111821] trunk/extensions/Translate/Translate.i18n.php

2012-02-18 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111821

Revision: 111821
Author:   siebrand
Date: 2012-02-18 12:10:18 + (Sat, 18 Feb 2012)
Log Message:
---
Use numbered variables. Follows-up r111272.

Modified Paths:
--
trunk/extensions/Translate/Translate.i18n.php

Modified: trunk/extensions/Translate/Translate.i18n.php
===
--- trunk/extensions/Translate/Translate.i18n.php   2012-02-18 10:57:34 UTC 
(rev 111820)
+++ trunk/extensions/Translate/Translate.i18n.php   2012-02-18 12:10:18 UTC 
(rev 111821)
@@ -147,7 +147,7 @@
'translate-checks-format' = 'This translation does not 
follow the definition or has invalid syntax: $1',
'translate-checks-escape' = 'The following escapes may be 
accidental: strong$1/strong',
'translate-checks-parametersnotequal' = 'Parameter count is 
{{PLURAL:$1|$1}}; should be {{PLURAL:$2|$2}}.',
-   'translate-checks-malformed'  = 
'nowiki$traArray[$i]/nowiki is malformed.',
+   'translate-checks-malformed'  = 'nowiki$1[$2]/nowiki is 
malformed.',
'translate-checks-fudforum-syntax'= 'Use nowiki$1/nowiki 
instead of nowiki$2/nowiki in this project.',
 
'translate-pref-nonewsletter' = 'Do not send me e-mail newsletters',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111825] trunk/extensions/Translate

2012-02-18 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111825

Revision: 111825
Author:   siebrand
Date: 2012-02-18 13:38:46 + (Sat, 18 Feb 2012)
Log Message:
---
Follow-up r111272, r111821: *facepalm*

Modified Paths:
--
trunk/extensions/Translate/MediaWikiMessageChecker.php
trunk/extensions/Translate/Translate.i18n.php

Modified: trunk/extensions/Translate/MediaWikiMessageChecker.php
===
--- trunk/extensions/Translate/MediaWikiMessageChecker.php  2012-02-18 
13:38:35 UTC (rev 111824)
+++ trunk/extensions/Translate/MediaWikiMessageChecker.php  2012-02-18 
13:38:46 UTC (rev 111825)
@@ -236,8 +236,7 @@

'translate-checks-format',
wfMessage(

'translate-checks-malformed',
-   $defArray,
-   $i
+   $defArray[$i]
)-text()
);
continue;

Modified: trunk/extensions/Translate/Translate.i18n.php
===
--- trunk/extensions/Translate/Translate.i18n.php   2012-02-18 13:38:35 UTC 
(rev 111824)
+++ trunk/extensions/Translate/Translate.i18n.php   2012-02-18 13:38:46 UTC 
(rev 111825)
@@ -147,7 +147,7 @@
'translate-checks-format' = 'This translation does not 
follow the definition or has invalid syntax: $1',
'translate-checks-escape' = 'The following escapes may be 
accidental: strong$1/strong',
'translate-checks-parametersnotequal' = 'Parameter count is 
{{PLURAL:$1|$1}}; should be {{PLURAL:$2|$2}}.',
-   'translate-checks-malformed'  = 'nowiki$1[$2]/nowiki is 
malformed.',
+   'translate-checks-malformed'  = 'nowiki$1/nowiki is 
malformed.',
'translate-checks-fudforum-syntax'= 'Use nowiki$1/nowiki 
instead of nowiki$2/nowiki in this project.',
 
'translate-pref-nonewsletter' = 'Do not send me e-mail newsletters',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111736] trunk/extensions/Suhosin

2012-02-17 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111736

Revision: 111736
Author:   siebrand
Date: 2012-02-17 10:14:17 + (Fri, 17 Feb 2012)
Log Message:
---
Update svn props.

Ping r111731, r111732.

Property Changed:

trunk/extensions/Suhosin/Suhosin.i18n.php
trunk/extensions/Suhosin/Suhosin.php


Property changes on: trunk/extensions/Suhosin/Suhosin.i18n.php
___
Deleted: svn:mime-type
   - text/x-php
Deleted: svn:keywords
   - Author Date Id Rev URL


Property changes on: trunk/extensions/Suhosin/Suhosin.php
___
Deleted: svn:mime-type
   - text/x-php
Deleted: svn:keywords
   - Author Date Id Rev URL
Deleted: svn-mime-type
   - text/plain


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111758] trunk/phase3/languages/messages/MessagesCps.php

2012-02-17 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111758

Revision: 111758
Author:   siebrand
Date: 2012-02-17 15:43:13 + (Fri, 17 Feb 2012)
Log Message:
---
Cleanup of MessagesCps.php. Contained a bunch of empty strings.

Modified Paths:
--
trunk/phase3/languages/messages/MessagesCps.php

Modified: trunk/phase3/languages/messages/MessagesCps.php
===
--- trunk/phase3/languages/messages/MessagesCps.php 2012-02-17 15:17:44 UTC 
(rev 111757)
+++ trunk/phase3/languages/messages/MessagesCps.php 2012-02-17 15:43:13 UTC 
(rev 111758)
@@ -328,11 +328,9 @@
 blockquotett$1/tt/blockquote
 nga halin sa ulubrahon nga tt$2/tt.
 Nagbalik sang sala nga tt$3: $4/tt ang MySQL.',
-'dberrortextcl'= '',
 'laggedslavemode'  = 'Pahibalo: Posible nga wala unod ang pahina sang mga 
yanda nga bag-ong nadugang.',
 'readonly' = 'Nakakandado ang database',
 'enterlockreason'  = 'Maghatag sang kabangdanan sa pagkakandado, upod ang 
bana-bana kung san-o ang kandado ibuy-an',
-'readonlytext' = '',
 'missing-article'  = 'Indi makita ang teksto nga pahina sa database nga 
dapat nakita na , na nangalanan $1 $2.
 
 Ang rason kung ngaa nagakatabo mini kay may mga nagasunod bilang daan nga diff 
o link nga kasaysayan sa may pahina nga napanas.
@@ -340,8 +338,8 @@
 Kung indi mini ang kaso, basi may nakita ka nga guba ukon diperensiya sa 
software.
 Palihog isugid sa [[Special:ListUsers/sysop|tagapamahala]], kag i-lista ang 
iya URL.',
 'missingarticle-rev'   = '(pagbag-o#: $1)',
-'missingarticle-diff'  = '',
-'readonly_lag' = '',
+'missingarticle-diff'  = '(Ginkala-in: $1, $2)',
+'readonly_lag' = 'Otomatiko nga ginkandaduhan samtang ang serbidor 
sang alila nga database ginakwa pakadto sa pinakapuno',
 'internalerror'= 'Pangsulodlon nga diperensiya',
 'internalerror_info'   = 'Pangsulodlon nga diperensiya:  $1',
 'filecopyerror'= 'Indi makopya ang file nga $1 pakadto sa $2.',
@@ -352,24 +350,30 @@
 'fileexistserror'  = 'Indi makasulat sa file nga $1: buhi ang file',
 'unexpected'   = 'Wala naekspektaran nga bili: $1=$2',
 'formerror'= 'Kasal-anan: indi mapadala ang pormas',
-'badarticleerror'  = '',
-'cannotdelete' = '',
+'badarticleerror'  = 'Ang mini nga aksyon indi mahimo sa mini nga 
pahina.',
+'cannotdelete' = 'Indi mapanas ang pahina ukon ang file nga $1 .
+Posible nga ginpanas na ini sang wala makilal-an.',
 'badtitle' = 'Kala-in nga titulo',
 'badtitletext' = 'Ang ginapangayo nga titulo sang pahina sala, wala 
unod, ukon may indi insakto nga koneksyon sa inter-language ukon sa titulo sang 
interwiki.
 Pwede nga naga-unod mini sang isa ukon madamo pa nga mga karakter nga indi 
pwede gamiton sa mga titulo.',
-'perfcached'   = '',
-'perfcachedts' = '',
-'querypage-no-updates' = '',
-'wrong_wfQuery_params' = '',
+'perfcached'   = 'Naka-cache ang mga gasunod nga pahina kag posible 
nga wala ini natyempuhan. A maximum of {{PLURAL:$1|one result is|$1 results 
are}} available in the cache.',
+'perfcachedts' = 'Na-cache ang gasunod nga data, kag katapusan nga 
na-update sang $1. A maximum of {{PLURAL:$4|one result is|$4 results are}} 
available in the cache.',
+'querypage-no-updates' = 'Ginbawalan yanda ang mga update sa mini nga pahina .
+Ang data diya wala napreskuhan sang aktwal.',
+'wrong_wfQuery_params' = 'Sala nga parametro sa wfQuery()br /',
 'viewsource'   = 'Lantawon ang ginhalinan',
 'actionthrottled'  = 'Ginpunggan ang ulubrahon',
-'actionthrottledtext'  = '',
+'actionthrottledtext'  = 'Bilang pangontra spam nga mga pagsulundan, 
ginalimitahan ikaw sa pag-ubra sang mini nga mga aksyon sang madamo nga beses 
sa manubo nga oras, kag nagsobra ka na sa limitasyon.
+Palihog tistingan liwat sa pila ka minutos.',
 'protectedpagetext'= 'Ginkandaduhan ang mini nga pahina para indi 
ma-islan.',
 'viewsourcetext'   = 'Pwede mo makita kag makopya ang ginhalinan sang 
mini nga pahina:',
 'protectedinterface'   = Nagahatag ang mini nga pahina sang teksto nga 
pangkatapusan (''interface'') para sa software, kag ikandado para mapunggan ang 
pag-abuso.,
-'editinginterface' = '',
+'editinginterface' = '''Paandam:''' gin-islan mo ang pahina nga 
gina-usar nga nagahatag teksto sang interface sa sopwer.
+Makaapekto ang mga gin-islan sa mini nga pahina sa gwaan nga itsura ka 
interface sang manug-usar sa iban nga mga manug-usar.
+Para sa mga pagtransleyt, palihog konsidera gamit ang 
[http://translatewiki.net/wiki/Main_Page?setlang=en translatewiki.net], ang 
MediaWiki proyekto sa paglokalisa.,
 'sqlhidden'= '(nakatago ang pamangkot sang SQL)',
-'cascadeprotected' = '',
+'cascadeprotected' = 'Ginprotektahan ang mini nga pahina sa pagpangilis, 
tungod naupod ini sa mga gasunod nga {{PLURAL:$1|pahina, nga|mga pahina, nga}} 
protektado

[MediaWiki-CVS] SVN: [111627] branches/jsgrammar/

2012-02-16 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111627

Revision: 111627
Author:   siebrand
Date: 2012-02-16 08:30:20 + (Thu, 16 Feb 2012)
Log Message:
---
Branch for work on bug 33658 - Add support for {{GRAMMAR:}} to the 
mediawiki.jqueryMsg module.

This will also contain an implementation of existing PHP grammar classes and 
tests.

Created a branch so we will not have to maintain patches in bugzilla and can 
work in CodeReview.

Added Paths:
---
branches/jsgrammar/


Property changes on: branches/jsgrammar
___
Added: svn:ignore
   + *~
.classpath
.idea
.metadata*
.project
.settings
AdminSettings.php
LocalSettings.php
StartProfiler.php
cscope.files
cscope.out
favicon.ico
nbproject*
project.index
static*
tags

Added: svn:mergeinfo
   + /branches/JSTesting:100352-107913
/branches/REL1_15/phase3:51646
/branches/REL1_17/phase3:81445,81448
/branches/new-installer/phase3:43664-66004
/branches/sqlite:58211-58321
/branches/wmf/1.18wmf1:97508


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111719] trunk/translatewiki/MediaWiki/mediawiki-defines.txt

2012-02-16 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111719

Revision: 111719
Author:   siebrand
Date: 2012-02-17 02:12:12 + (Fri, 17 Feb 2012)
Log Message:
---
Add a prefix for a duplicate key.

Modified Paths:
--
trunk/translatewiki/MediaWiki/mediawiki-defines.txt

Modified: trunk/translatewiki/MediaWiki/mediawiki-defines.txt
===
--- trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-17 02:10:16 UTC 
(rev 111718)
+++ trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-02-17 02:12:12 UTC 
(rev 111719)
@@ -1908,6 +1908,7 @@
 optional = grouppage-Staff, shared-repo-name-shared
 optional = grouppage-Global_sysops
 prefix = wmf- | sidebar, grouppage-Staff, group-Staff, group-Staff-member
+prefix = wmf- | group-patroller, group-patroller-member
 
 Wikimedia Creative Commons License Texts
 file = WikimediaMessages/WikimediaCCLicenseTexts.i18n.php


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111456] trunk/extensions/Translate

2012-02-14 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111456

Revision: 111456
Author:   siebrand
Date: 2012-02-14 12:45:51 + (Tue, 14 Feb 2012)
Log Message:
---
* update documentation.
* add skipMeta parameter to MessageGroup::getGroupsById() to all filtering out 
aggregate groups.
* update export.php to use skipMeta to avoid fatal error.

Modified Paths:
--
trunk/extensions/Translate/MessageGroups.php
trunk/extensions/Translate/scripts/export.php

Modified: trunk/extensions/Translate/MessageGroups.php
===
--- trunk/extensions/Translate/MessageGroups.php2012-02-14 09:59:59 UTC 
(rev 111455)
+++ trunk/extensions/Translate/MessageGroups.php2012-02-14 12:45:51 UTC 
(rev 111456)
@@ -1319,18 +1319,22 @@
/**
 * Get message groups for corresponding message group ids.
 *
-* @param $groups array Group IDs
-* @param $groupPrefix string Prefix for groups
+* @param $ids array Group IDs
+* @param $skipMeta bool Skip aggregate message groups
 * @return array
 * @since 2012-02-13
 */
-   public static function getGroupsById( array $ids ) {
+   public static function getGroupsById( array $ids, $skipMeta = false ) {
$groups = array();
foreach ( $ids as $id ) {
$group = self::getGroup( $id );
 
if ( $group !== null ) {
-   $groups[$id] = $group;
+   if( $group-isMeta()  $skipMeta ) {
+   continue;
+   } else {
+   $groups[$id] = $group;
+   }
} else {
wfDebug( __METHOD__ . : Invalid message group 
id: $id\n );
}

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-02-14 09:59:59 UTC 
(rev 111455)
+++ trunk/extensions/Translate/scripts/export.php   2012-02-14 12:45:51 UTC 
(rev 111456)
@@ -98,8 +98,9 @@
 if ( isset( $options['group'] ) ) {
$groupIds = explode( ',', trim( $options['group'] ) );
 }
+
 $groupIds = MessageGroups::expandWildcards( $groupIds );
-$groups = MessageGroups::getGroupsById( $groupIds );
+$groups = MessageGroups::getGroupsById( $groupIds, true );
 
 if ( !count( $groups ) ) {
STDERR( EE1: No valid message groups identified. );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111457] trunk/extensions/Translate/MessageGroups.php

2012-02-14 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111457

Revision: 111457
Author:   siebrand
Date: 2012-02-14 12:54:16 + (Tue, 14 Feb 2012)
Log Message:
---
Follow-up r111456: Cheaper check first.

Modified Paths:
--
trunk/extensions/Translate/MessageGroups.php

Modified: trunk/extensions/Translate/MessageGroups.php
===
--- trunk/extensions/Translate/MessageGroups.php2012-02-14 12:45:51 UTC 
(rev 111456)
+++ trunk/extensions/Translate/MessageGroups.php2012-02-14 12:54:16 UTC 
(rev 111457)
@@ -1330,7 +1330,7 @@
$group = self::getGroup( $id );
 
if ( $group !== null ) {
-   if( $group-isMeta()  $skipMeta ) {
+   if( $skipMeta  $group-isMeta() ) {
continue;
} else {
$groups[$id] = $group;


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111229] trunk/extensions/Translate/Translate.i18n.php

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111229

Revision: 111229
Author:   siebrand
Date: 2012-02-11 11:47:49 + (Sat, 11 Feb 2012)
Log Message:
---
Add missing action messages.

Modified Paths:
--
trunk/extensions/Translate/Translate.i18n.php

Modified: trunk/extensions/Translate/Translate.i18n.php
===
--- trunk/extensions/Translate/Translate.i18n.php   2012-02-11 07:54:11 UTC 
(rev 111228)
+++ trunk/extensions/Translate/Translate.i18n.php   2012-02-11 11:47:49 UTC 
(rev 111229)
@@ -160,7 +160,9 @@
 
'right-translate' = 'Edit using the translate interface',
'right-translate-manage' = 'Manage message groups',
+   'action-translate-manage' = 'manage message groups', // Checked for 
ManageMessageGroups
'right-translate-import' = 'Import offline translations',
+   'action-translate-import' = 'import offline translations', // Checked 
for ImportTranslations
'right-translate-messagereview' = 'Review translations',
'right-translate-groupreview' = 'Change workflow state of message 
groups',
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111231] trunk

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111231

Revision: 111231
Author:   siebrand
Date: 2012-02-11 12:17:58 + (Sat, 11 Feb 2012)
Log Message:
---
* Remove last remaining traces of wfLoadExtensionMessages().
* Add missing action message and remove unused global in UploadLocal.
* Some whitespace updates in Maps.

Modified Paths:
--
trunk/extensions/CreditTab/CreditTab.php
trunk/extensions/EmbedVideo/EmbedVideo.hooks.php
trunk/extensions/Favorites/SpecialFavoritelist.php
trunk/extensions/Maps/Maps.hooks.php
trunk/extensions/MassEditRegex/MassEditRegex.class.php
trunk/extensions/MediaWikiAuth/MediaWikiAuth.php
trunk/extensions/ReplaceText/ReplaceText.php
trunk/extensions/SemanticDrilldown/includes/SD_Utils.php
trunk/extensions/SemanticForms/includes/forminputs/SF_CheckboxInput.php
trunk/extensions/SemanticFormsInputs/SemanticFormsInputs.php
trunk/extensions/SemanticNotifyMe/includes/SMW_NotifyProcessor.php
trunk/extensions/SemanticNotifyMe/includes/SMW_NotifyProcessor.smw15.php

trunk/extensions/SemanticNotifyMe/includes/storage/SMW_SQLStore2_QueriesNM.php

trunk/extensions/SemanticNotifyMe/includes/storage/SMW_SQLStore2_QueriesNM.smw15.php
trunk/extensions/SemanticProjectManagement/SemanticProjectManagement.php
trunk/extensions/SemanticProjectManagement/includes/SPM_SpecialPage.php
trunk/extensions/SemanticProjectManagement/includes/SPM_WBS.php

trunk/extensions/SemanticWebBrowser/includes/datavalues/SWBResolvableUriValue.php

trunk/extensions/SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php
trunk/extensions/UploadLocal/UploadLocal.i18n.php
trunk/extensions/UploadLocal/UploadLocal_body.php
trunk/phase3/RELEASE-NOTES-1.20
trunk/phase3/includes/GlobalFunctions.php
trunk/phase3/includes/PageQueryPage.php

Modified: trunk/extensions/CreditTab/CreditTab.php
===
--- trunk/extensions/CreditTab/CreditTab.php2012-02-11 12:12:57 UTC (rev 
111230)
+++ trunk/extensions/CreditTab/CreditTab.php2012-02-11 12:17:58 UTC (rev 
111231)
@@ -15,7 +15,7 @@
'path' = __FILE__,
'name' = 'CreditTab',
'author' = '[http://www.dasch-tour.de DaSch]',
-   'version' =  '1.2.2',
+   'version' =  '1.3.0',
'descriptionmsg' = 'credits-desc',
'url' = 'https://www.mediawiki.org/wiki/Extension:CreditTab',
 );
@@ -54,7 +54,7 @@
} else {
$title = $obj-mTitle;
}
-   wfLoadExtensionMessages('CreditTab');
+
$ctNamespace = $title-getNamespace();
$ctInsert=false;
if ( count( $wgCreditTabNamespaces )  0 ) {

Modified: trunk/extensions/EmbedVideo/EmbedVideo.hooks.php
===
--- trunk/extensions/EmbedVideo/EmbedVideo.hooks.php2012-02-11 12:12:57 UTC 
(rev 111230)
+++ trunk/extensions/EmbedVideo/EmbedVideo.hooks.php2012-02-11 12:17:58 UTC 
(rev 111231)
@@ -57,8 +57,6 @@
# Initialize things once
if (!EmbedVideo::$initialized) {
EmbedVideo::VerifyWidthMinAndMax();
-   # Add system messages
-   wfLoadExtensionMessages('embedvideo');
$parser-disableCache();
EmbedVideo::$initialized = true;
}

Modified: trunk/extensions/Favorites/SpecialFavoritelist.php
===
--- trunk/extensions/Favorites/SpecialFavoritelist.php  2012-02-11 12:12:57 UTC 
(rev 111230)
+++ trunk/extensions/Favorites/SpecialFavoritelist.php  2012-02-11 12:17:58 UTC 
(rev 111231)
@@ -13,7 +13,6 @@
 class SpecialFavoritelist extends SpecialPage {
 function __construct() {
 parent::__construct( 'Favoritelist' );
-wfLoadExtensionMessages('Favoritelist');
 }
  
 function execute( $par ) {

Modified: trunk/extensions/Maps/Maps.hooks.php
===
--- trunk/extensions/Maps/Maps.hooks.php2012-02-11 12:12:57 UTC (rev 
111230)
+++ trunk/extensions/Maps/Maps.hooks.php2012-02-11 12:17:58 UTC (rev 
111231)
@@ -2,20 +2,20 @@
 
 /**
  * Static class for hooks handled by the Maps extension.
- * 
+ *
  * @since 0.7
- * 
+ *
  * @file Maps.hooks.php
  * @ingroup Maps
- * 
+ *
  * @licence GNU GPL v3
  * @author Jeroen De Dauw  jeroended...@gmail.com 
  */
 final class MapsHooks {
-   
+
/**
 * Adds a link to Admin Links page.
-* 
+*
 * @since 0.7
 *
 * @param ALTree $admin_links_tree
@@ -23,36 +23,36 @@
 * @return true
 */
public static function addToAdminLinks( ALTree $admin_links_tree ) {
-   $displaying_data_section = $admin_links_tree-getSection( wfMsg

[MediaWiki-CVS] SVN: [111272] trunk/extensions/Translate

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111272

Revision: 111272
Author:   siebrand
Date: 2012-02-12 04:45:43 + (Sun, 12 Feb 2012)
Log Message:
---
* Move hard coded styles in MessageWebImporter to CSS.
* Break long line.
* Bump version.
* Update an unanswered @todo.
* Add MessageGroups::getAllMessageGroups() as a replacement of 
MessageGroups::getGroups()
* Update MessageGroups::getAllMessageGroups() to reduce code duplication in 
export.php and sync-group.php. Added two optional parameters:
** $groups: Get an array of groups for an array of group IDs.
** $groupPrefix: Get an array of groups with a given prefix.
* Exit export.php if no valid group IDs are given.
* i18n for two hard coded strings.
* Add FIXME for missing i18n.

Modified Paths:
--
trunk/extensions/Translate/Groups.php
trunk/extensions/Translate/MediaWikiMessageChecker.php
trunk/extensions/Translate/MessageGroups.php
trunk/extensions/Translate/Translate.i18n.php
trunk/extensions/Translate/Translate.php
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php
trunk/extensions/Translate/utils/MessageWebImporter.php

Added Paths:
---
trunk/extensions/Translate/resources/ext.translate.messagewebimporter.css

Modified: trunk/extensions/Translate/Groups.php
===
--- trunk/extensions/Translate/Groups.php   2012-02-11 23:53:55 UTC (rev 
111271)
+++ trunk/extensions/Translate/Groups.php   2012-02-12 04:45:43 UTC (rev 
111272)
@@ -520,7 +520,7 @@
 
 /**
  * New style message group for %MediaWiki.
- * @todo Currently unused?
+ * @todo Currently unused
  */
 class MediaWikiMessageGroup extends FileBasedMessageGroup {
public function mapCode( $code ) {

Modified: trunk/extensions/Translate/MediaWikiMessageChecker.php
===
--- trunk/extensions/Translate/MediaWikiMessageChecker.php  2012-02-11 
23:53:55 UTC (rev 111271)
+++ trunk/extensions/Translate/MediaWikiMessageChecker.php  2012-02-12 
04:45:43 UTC (rev 111272)
@@ -203,7 +203,6 @@
$definition = $message-definition();
$translation = $message-translation();
 
-
if ( in_array( strtolower( $key ), $timeList, true ) ) {
$defArray = explode( ',', $definition );
$traArray = explode( ',', $translation );
@@ -212,10 +211,16 @@
$defCount = count( $defArray );
$traCount = count( $traArray );
if ( $defCount !== $traCount ) {
+   global $wgLang;
+
$warnings[$key][] = array(
array( 'miscmw', $subcheck, 
$key, $code ),
'translate-checks-format',
-   Parameter count is $traCount; 
should be $defCount, // @todo Missing i18n.
+   wfMessage(
+   
'translate-checks-parametersnotequal',
+   $wgLang-formatNum( 
$traCount ),
+   $wgLang-formatNum( 
$defCount )
+   )-text()
);
continue;
}
@@ -229,7 +234,11 @@
$warnings[$key][] = array(
array( 'miscmw', 
$subcheck, $key, $code ),

'translate-checks-format',
-   
nowiki$traArray[$i]/nowiki is malformed, // @todo Missing i18n.
+   wfMessage(
+   
'translate-checks-malformed',
+   $defArray,
+   $i
+   )-text()
);
continue;
}
@@ -239,7 +248,7 @@
$warnings[$key][] = array(
array( 'miscmw', 
$subcheck, $key, $code ),

'translate-checks-format',
-   
ttnowiki$traItems[1] !== $defItems[1]/nowiki

[MediaWiki-CVS] SVN: [111278] trunk/extensions/Translate/scripts

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111278

Revision: 111278
Author:   siebrand
Date: 2012-02-12 07:00:07 + (Sun, 12 Feb 2012)
Log Message:
---
Fix fatal in r111272.

Modified Paths:
--
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-02-12 05:57:19 UTC 
(rev 111277)
+++ trunk/extensions/Translate/scripts/export.php   2012-02-12 07:00:07 UTC 
(rev 111278)
@@ -88,11 +88,11 @@
 
 $reqLangs = Cli::parseLanguageCodes( $options['lang'] );
 
-// In case both group and groupprefix would be set, 
MessageGroups::getMessageGroups
+// In case both group and groupprefix would be set, MessageGroups::getGroups
 // will give preference to groupIds.
 $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] 
) ) : null;
 $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : 
null;
-$groups = MessageGroups::getMessageGroups( $groupIds, $groupPrefix );
+$groups = MessageGroups::getGroups( $groupIds, $groupPrefix );
 
 if ( !count( $groups ) ) {
STDERR( No valid message groups identified. );

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 05:57:19 UTC 
(rev 111277)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:00:07 UTC 
(rev 111278)
@@ -45,7 +45,7 @@
exit( 1 );
 }
 
-// In case both group and groupprefix would be set, 
MessageGroups::getMessageGroups
+// In case both group and groupprefix would be set, MessageGroups::getGroups
 // will give preference to groupIds.
 $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] 
) ) : null;
 $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : 
null;


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111279] trunk/extensions/Translate

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111279

Revision: 111279
Author:   siebrand
Date: 2012-02-12 07:03:34 + (Sun, 12 Feb 2012)
Log Message:
---
Follow-up r111272:
* don't call method statically.
* fix undefined variable.

Modified Paths:
--
trunk/extensions/Translate/MessageGroups.php
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/MessageGroups.php
===
--- trunk/extensions/Translate/MessageGroups.php2012-02-12 07:00:07 UTC 
(rev 111278)
+++ trunk/extensions/Translate/MessageGroups.php2012-02-12 07:03:34 UTC 
(rev 111279)
@@ -1326,7 +1326,7 @@
public function getGroups( $groups = null, $groupPrefix = null ) {
if ( count( $groups ) ) {
// Get groups and add groups to array
-   foreach ( $groupIds as $groupId ) {
+   foreach ( $groups as $groupId ) {
$group = self::getGroup( $groupId );
 
if ( $group !== null ) {

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-02-12 07:00:07 UTC 
(rev 111278)
+++ trunk/extensions/Translate/scripts/export.php   2012-02-12 07:03:34 UTC 
(rev 111279)
@@ -92,7 +92,7 @@
 // will give preference to groupIds.
 $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] 
) ) : null;
 $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : 
null;
-$groups = MessageGroups::getGroups( $groupIds, $groupPrefix );
+$groups = singleton()-getGroups( $groupIds, $groupPrefix );
 
 if ( !count( $groups ) ) {
STDERR( No valid message groups identified. );

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:00:07 UTC 
(rev 111278)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:03:34 UTC 
(rev 111279)
@@ -49,7 +49,7 @@
 // will give preference to groupIds.
 $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] 
) ) : null;
 $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : 
null;
-$groups = MessageGroups::getMessageGroups( $groupIds, $groupPrefix );
+$groups = singleton()-getGroups( $groupIds, $groupPrefix );
 
 if ( !count( $groups ) ) {
STDERR( ESG2: No valid message groups identified. );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111280] trunk/extensions/Translate/scripts

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111280

Revision: 111280
Author:   siebrand
Date: 2012-02-12 07:06:22 + (Sun, 12 Feb 2012)
Log Message:
---
Follow-up r111279: It's a good idae to indicate a class here...

Modified Paths:
--
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-02-12 07:03:34 UTC 
(rev 111279)
+++ trunk/extensions/Translate/scripts/export.php   2012-02-12 07:06:22 UTC 
(rev 111280)
@@ -92,7 +92,7 @@
 // will give preference to groupIds.
 $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] 
) ) : null;
 $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : 
null;
-$groups = singleton()-getGroups( $groupIds, $groupPrefix );
+$groups = MessageGroups::singleton()-getGroups( $groupIds, $groupPrefix );
 
 if ( !count( $groups ) ) {
STDERR( No valid message groups identified. );

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:03:34 UTC 
(rev 111279)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:06:22 UTC 
(rev 111280)
@@ -49,7 +49,7 @@
 // will give preference to groupIds.
 $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] 
) ) : null;
 $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : 
null;
-$groups = singleton()-getGroups( $groupIds, $groupPrefix );
+$groups = MessageGroups::singleton()-getGroups( $groupIds, $groupPrefix );
 
 if ( !count( $groups ) ) {
STDERR( ESG2: No valid message groups identified. );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [111283] trunk/extensions/Translate/scripts/sync-group.php

2012-02-11 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111283

Revision: 111283
Author:   siebrand
Date: 2012-02-12 07:33:24 + (Sun, 12 Feb 2012)
Log Message:
---
Update command documentation.

Modified Paths:
--
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:09:10 UTC 
(rev 111282)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-02-12 07:33:24 UTC 
(rev 111283)
@@ -21,7 +21,7 @@
 function showUsage() {
STDERR( EOT
 Options:
-  --group   Comma separated list of group IDs
+  --group   Comma separated list of group IDs (cannot use groupprefix)
   --groupprefix Prefix of group IDs to be exported message groups (cannot use
 group)
   --langComma separated list of language codes or *


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110696] trunk/translatewiki/Wikia/extensions.txt

2012-02-04 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110696

Revision: 110696
Author:   siebrand
Date: 2012-02-04 13:28:57 + (Sat, 04 Feb 2012)
Log Message:
---
Remove commented out code.

Modified Paths:
--
trunk/translatewiki/Wikia/extensions.txt

Modified: trunk/translatewiki/Wikia/extensions.txt
===
--- trunk/translatewiki/Wikia/extensions.txt2012-02-04 12:17:26 UTC (rev 
110695)
+++ trunk/translatewiki/Wikia/extensions.txt2012-02-04 13:28:57 UTC (rev 
110696)
@@ -66,12 +66,6 @@
 
 Content Feeds
 
-#Commented out 2010-02-01 -- tor
-#Dropping in favour of CreatePage (below)
-#Create A Page
-#file = CreateAPage/MultiEdit.i18n.php
-#optional = createplate-Blank, createplate-list
-
 Create New Wiki
 ignored = cnw-name-wiki-language, cnw-name-wiki-domain
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110698] trunk/translatewiki/Wikia/extensions.txt

2012-02-04 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110698

Revision: 110698
Author:   siebrand
Date: 2012-02-04 14:14:03 + (Sat, 04 Feb 2012)
Log Message:
---
Update extension support for Wikia.

Modified Paths:
--
trunk/translatewiki/Wikia/extensions.txt

Modified: trunk/translatewiki/Wikia/extensions.txt
===
--- trunk/translatewiki/Wikia/extensions.txt2012-02-04 13:53:27 UTC (rev 
110697)
+++ trunk/translatewiki/Wikia/extensions.txt2012-02-04 14:14:03 UTC (rev 
110698)
@@ -346,9 +346,6 @@
 
 Wiki Features
 
-Wiki Payment
-ignored = wikipayment-click-here
-
 Wiki Stats
 file = WikiStats/SpecialWikiStats.i18n.php
 descmsg = wikistats


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110373] trunk/extensions/Translate/scripts/export.php

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110373

Revision: 110373
Author:   siebrand
Date: 2012-01-31 10:09:07 + (Tue, 31 Jan 2012)
Log Message:
---
Change grouptrail switch to groupprefix and update documentation.

Modified Paths:
--
trunk/extensions/Translate/scripts/export.php

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-01-31 10:08:04 UTC 
(rev 110372)
+++ trunk/extensions/Translate/scripts/export.php   2012-01-31 10:09:07 UTC 
(rev 110373)
@@ -9,7 +9,7 @@
  * @file
  */
 
-$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groups', 
'grouptrail', 'threshold', 'ppgettext' );
+$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groups', 
'groupprefix', 'threshold', 'ppgettext' );
 require( dirname( __FILE__ ) . '/cli.inc' );
 
 function showUsage() {
@@ -24,8 +24,8 @@
   --skipLanguages to skip, comma separated list
   --group   Group ID (cannot use groups grouptrial)
   --groups  Group IDs, comma separated list (cannot use group or 
grouptrial)
-  --grouptrail  Trial for IDs of to be exported message groups (cannot use
-group or grouptrial)
+  --groupprefix Prefix of group IDs to be exported message groups (cannot use
+group or groups)
   --threshold   Do not export under this percentage translated
   --ppgettext   Group root path for checkout of product. msgmerge will post
 process on the export result based on the current 
definitionFile
@@ -58,8 +58,8 @@
$skip = array();
 }
 
-if ( !isset( $options['group'] )  !isset( $options['groups'] )  !isset( 
$options['grouptrail'] ) ) {
-   STDERR( You need to specify one or more groups using any of the 
options 'group', 'groups' or 'grouptrail' );
+if ( !isset( $options['group'] )  !isset( $options['groups'] )  !isset( 
$options['groupprefix'] ) ) {
+   STDERR( You need to specify one or more groups using any of the 
options 'group', 'groups' or 'groupprefix' );
exit( 1 );
 }
 
@@ -101,12 +101,12 @@
$groups[$groupId] = MessageGroups::getGroup( $groupId );
}
 } else {
-   // Apparently using option grouptrail. Find groups that match.
+   // Apparently using option groupprefix. Find groups that match.
$allGroups = MessageGroups::singleton()-getGroups();
 
// Add matching groups to groups array.
foreach ( $allGroups as $groupId = $messageGroup ) {
-   if ( strpos( $groupId, $options['grouptrail'] ) === 0  
!$messageGroup-isMeta() ) {
+   if ( strpos( $groupId, $options['groupprefix'] ) === 0  
!$messageGroup-isMeta() ) {
$groups[$groupId] = $messageGroup;
}
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110375] trunk/extensions/Translate

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110375

Revision: 110375
Author:   siebrand
Date: 2012-01-31 10:25:38 + (Tue, 31 Jan 2012)
Log Message:
---
* switch groups in export.php dropped. group now takes a comma separated 
list of group IDs, too.
* follow-up r110373: update some more documentation.
* update Translate date and README.

Modified Paths:
--
trunk/extensions/Translate/README
trunk/extensions/Translate/Translate.php
trunk/extensions/Translate/scripts/export.php

Modified: trunk/extensions/Translate/README
===
--- trunk/extensions/Translate/README   2012-01-31 10:22:17 UTC (rev 110374)
+++ trunk/extensions/Translate/README   2012-01-31 10:25:38 UTC (rev 110375)
@@ -29,6 +29,11 @@
  http://translatewiki.net/docs/Translate/html/
 
 == Change log ==
+* 2012-01-31
+- export.php changes:
+  - switch grouptrail renamed to groupprefix
+  - switch groups dropped. group now takes a comma separated list of group
+IDs, too.
 * 2012-01-13
 - export.php has a switch --no-fuzzy that will filter out fuzzy messages
   for file based message groups.

Modified: trunk/extensions/Translate/Translate.php
===
--- trunk/extensions/Translate/Translate.php2012-01-31 10:22:17 UTC (rev 
110374)
+++ trunk/extensions/Translate/Translate.php2012-01-31 10:25:38 UTC (rev 
110375)
@@ -15,7 +15,7 @@
 /**
  * Version number used in extension credits and in other placed where needed.
  */
-define( 'TRANSLATE_VERSION', '2012-01-28' );
+define( 'TRANSLATE_VERSION', '2012-01-31' );
 
 /**
  * Extension credits properties.

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-01-31 10:22:17 UTC 
(rev 110374)
+++ trunk/extensions/Translate/scripts/export.php   2012-01-31 10:25:38 UTC 
(rev 110375)
@@ -9,7 +9,7 @@
  * @file
  */
 
-$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groups', 
'groupprefix', 'threshold', 'ppgettext' );
+$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groupprefix', 
'threshold', 'ppgettext' );
 require( dirname( __FILE__ ) . '/cli.inc' );
 
 function showUsage() {
@@ -22,10 +22,9 @@
   --target  Target directory for exported files
   --langComma separated list of language codes or *
   --skipLanguages to skip, comma separated list
-  --group   Group ID (cannot use groups grouptrial)
-  --groups  Group IDs, comma separated list (cannot use group or 
grouptrial)
+  --group   Comma separated list of group IDs (cannot use groupprefix)
   --groupprefix Prefix of group IDs to be exported message groups (cannot use
-group or groups)
+group)
   --threshold   Do not export under this percentage translated
   --ppgettext   Group root path for checkout of product. msgmerge will post
 process on the export result based on the current 
definitionFile
@@ -58,8 +57,8 @@
$skip = array();
 }
 
-if ( !isset( $options['group'] )  !isset( $options['groups'] )  !isset( 
$options['groupprefix'] ) ) {
-   STDERR( You need to specify one or more groups using any of the 
options 'group', 'groups' or 'groupprefix' );
+if ( !isset( $options['group'] )  !isset( $options['groupprefix'] ) ) {
+   STDERR( You need to specify one or more groups using any of the 
options 'group' or 'groupprefix' );
exit( 1 );
 }
 
@@ -91,10 +90,8 @@
 $groups = array();
 
 if ( isset( $options['group'] ) ) {
-   $groups[$options['group']] = MessageGroups::getGroup( $options['group'] 
);
-} elseif ( isset( $options['groups'] ) ) {
// Explode parameter
-   $groupIds = explode( ',', trim( $options['groups'] ) );
+   $groupIds = explode( ',', trim( $options['group'] ) );
 
// Get groups and add groups to array
foreach ( $groupIds as $groupId ) {


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110377] trunk/extensions/Translate/scripts/sync-group.php

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110377

Revision: 110377
Author:   siebrand
Date: 2012-01-31 10:29:09 + (Tue, 31 Jan 2012)
Log Message:
---
Help text formatting before making functional changes.

Modified Paths:
--
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-01-31 10:26:22 UTC 
(rev 110376)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-01-31 10:29:09 UTC 
(rev 110377)
@@ -19,14 +19,14 @@
 function showUsage() {
STDERR( EOT
 Options:
-   --group comma separated list of group ids or *
-   --lang  comma separated list of language codes or *
-   --norc  do not add entries to recent changes table
-   --help  this help
-   --noask skip all conflicts
-   --start start of the last export (changes in wiki after this will 
conflict)
-   --end   end of the last export (changes in source before this wont 
conflict)
-   --nocolor   without colours
+  --group   Comma separated list of group IDs or *
+  --langComma separated list of language codes or *
+  --norcDo not add entries to recent changes table
+  --helpThis help message
+  --noask   Skip all conflicts
+  --start   Start of the last export (changes in wiki after this will 
conflict)
+  --end End of the last export (changes in source before this wont 
conflict)
+  --nocolor Without colours
 EOT
 );
exit( 1 );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110379] trunk/extensions/Translate/scripts/export.php

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110379

Revision: 110379
Author:   siebrand
Date: 2012-01-31 10:43:00 + (Tue, 31 Jan 2012)
Log Message:
---
Add missing switch documentation and add a check for valid message groups.

Modified Paths:
--
trunk/extensions/Translate/scripts/export.php

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-01-31 10:39:08 UTC 
(rev 110378)
+++ trunk/extensions/Translate/scripts/export.php   2012-01-31 10:43:00 UTC 
(rev 110379)
@@ -25,6 +25,7 @@
   --group   Comma separated list of group IDs (cannot use groupprefix)
   --groupprefix Prefix of group IDs to be exported message groups (cannot use
 group)
+  --helpThis help message
   --threshold   Do not export under this percentage translated
   --ppgettext   Group root path for checkout of product. msgmerge will post
 process on the export result based on the current 
definitionFile
@@ -95,7 +96,11 @@
 
// Get groups and add groups to array
foreach ( $groupIds as $groupId ) {
-   $groups[$groupId] = MessageGroups::getGroup( $groupId );
+   $group = MessageGroups::getGroup( $groupId );
+
+   if( $group !== null ) {
+   $groups[$groupId] = $group;
+   }
}
 } else {
// Apparently using option groupprefix. Find groups that match.


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110381] trunk/extensions/Translate

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110381

Revision: 110381
Author:   siebrand
Date: 2012-01-31 10:49:44 + (Tue, 31 Jan 2012)
Log Message:
---
* add groupprefix in sync-group.php.
* add FIXME for code duplication.

Modified Paths:
--
trunk/extensions/Translate/README
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/README
===
--- trunk/extensions/Translate/README   2012-01-31 10:43:30 UTC (rev 110380)
+++ trunk/extensions/Translate/README   2012-01-31 10:49:44 UTC (rev 110381)
@@ -30,10 +30,9 @@
 
 == Change log ==
 * 2012-01-31
-- export.php changes:
-  - switch grouptrail renamed to groupprefix
-  - switch groups dropped. group now takes a comma separated list of group
-IDs, too.
+- export.php: switch grouptrail renamed to groupprefix and switch groups
+  was dropped. group now takes a comma separated list of groups IDs, too.
+- sync-group.php: switch groupprefix added.
 * 2012-01-13
 - export.php has a switch --no-fuzzy that will filter out fuzzy messages
   for file based message groups.

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-01-31 10:43:30 UTC 
(rev 110380)
+++ trunk/extensions/Translate/scripts/export.php   2012-01-31 10:49:44 UTC 
(rev 110381)
@@ -90,6 +90,7 @@
 
 $groups = array();
 
+// @todo FIXME: Code duplication with sync-group.php
 if ( isset( $options['group'] ) ) {
// Explode parameter
$groupIds = explode( ',', trim( $options['group'] ) );

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-01-31 10:43:30 UTC 
(rev 110380)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-01-31 10:49:44 UTC 
(rev 110381)
@@ -10,7 +10,7 @@
 
 /// @cond
 
-$optionsWithArgs = array( 'group', 'lang', 'start', 'end' );
+$optionsWithArgs = array( 'group', 'groupprefix', 'lang', 'start', 'end' );
 require( dirname( __FILE__ ) . '/cli.inc' );
 
 # Override the memory limit for wfShellExec, 100 MB seems to be too little for 
svn
@@ -19,13 +19,15 @@
 function showUsage() {
STDERR( EOT
 Options:
-  --group   Comma separated list of group IDs or *
+  --group   Comma separated list of group IDs
+  --groupprefix Prefix of group IDs to be exported message groups (cannot use
+group)
   --langComma separated list of language codes or *
   --norcDo not add entries to recent changes table
   --helpThis help message
   --noask   Skip all conflicts
-  --start   Start of the last export (changes in wiki after this will 
conflict)
-  --end End of the last export (changes in source before this wont 
conflict)
+  --start   Start of the last export (changes in wiki after will conflict)
+  --end End of the last export (changes in source after will conflict)
   --nocolor Without colours
 EOT
 );
@@ -36,24 +38,43 @@
showUsage();
 }
 
-if ( !isset( $options['group'] ) ) {
-   STDERR( ESG1: Message group id must be supplied with group parameter. 
);
+if ( !isset( $options['group'] )  !isset( $options['groupprefix'] ) ) {
+   STDERR( ESG1: Message group id must be supplied with group or 
groupprefix parameter. );
exit( 1 );
 }
 
-$group = MessageGroups::getGroup( $options['group'] );
-if ( $group === null ) {
-   if ( $options['group'] === '*' ) {
-   $mg = MessageGroups::singleton();
-   $groups = $mg-getGroups();
-   } else {
-   STDERR( ESG2: Invalid message group was given. );
-   exit( 1 );
+$groups = array();
+
+// @todo FIXME: Code duplication with export.php
+if ( isset( $options['group'] ) ) {
+   // Explode parameter
+   $groupIds = explode( ',', trim( $options['group'] ) );
+
+   // Get groups and add groups to array
+   foreach ( $groupIds as $groupId ) {
+   $group = MessageGroups::getGroup( $groupId );
+
+   if( $group !== null ) {
+   $groups[$groupId] = $group;
+   }
}
 } else {
-   $groups = array( $group );
+   // Apparently using option groupprefix. Find groups that match.
+   $allGroups = MessageGroups::singleton()-getGroups();
+
+   // Add matching groups to groups array.
+   foreach ( $allGroups as $groupId = $messageGroup ) {
+   if ( strpos( $groupId, $options['groupprefix'] ) === 0  
!$messageGroup-isMeta() ) {
+   $groups[$groupId] = $messageGroup;
+   }
+   }
 }
 
+if( !count( $groups ) {
+   STDERR( ESG2: No valid message groups identified. );
+   exit( 1

[MediaWiki-CVS] SVN: [110382] trunk/extensions/Translate/scripts/sync-group.php

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110382

Revision: 110382
Author:   siebrand
Date: 2012-01-31 10:51:01 + (Tue, 31 Jan 2012)
Log Message:
---
Fix syntax error r110381.

Modified Paths:
--
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/scripts/sync-group.php
===
--- trunk/extensions/Translate/scripts/sync-group.php   2012-01-31 10:49:44 UTC 
(rev 110381)
+++ trunk/extensions/Translate/scripts/sync-group.php   2012-01-31 10:51:01 UTC 
(rev 110382)
@@ -70,7 +70,7 @@
}
 }
 
-if( !count( $groups ) {
+if( !count( $groups ) ) {
STDERR( ESG2: No valid message groups identified. );
exit( 1 );
 }


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110383] trunk/translatewiki/IHRIS/IHRIS.yaml

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110383

Revision: 110383
Author:   siebrand
Date: 2012-01-31 11:11:06 + (Tue, 31 Jan 2012)
Log Message:
---
Should take care of some double counts in iHRIS.

Modified Paths:
--
trunk/translatewiki/IHRIS/IHRIS.yaml

Modified: trunk/translatewiki/IHRIS/IHRIS.yaml
===
--- trunk/translatewiki/IHRIS/IHRIS.yaml2012-01-31 10:51:01 UTC (rev 
110382)
+++ trunk/translatewiki/IHRIS/IHRIS.yaml2012-01-31 11:11:06 UTC (rev 
110383)
@@ -33,7 +33,10 @@
   class: AggregateMessageGroup
 
 GROUPS:
-  - out-ihris-*
+  - out-ihris-common-0-all
+  - out-ihris-i2ce-0-all
+  - out-ihris-manage-0-all
+  - out-ihris-qualify-0-all
 ---
 BASIC:
   id: out-ihris-common-0-all


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110385] trunk/extensions/Translate

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110385

Revision: 110385
Author:   siebrand
Date: 2012-01-31 13:42:01 + (Tue, 31 Jan 2012)
Log Message:
---
Address CR comments:
* Follow-up r110373: Update copyright years and author information.
* Follow-up r110375: Update change log and other parts of README.
* Follow-up r110379: Provide some output when invalid group names have been 
provided.

Modified Paths:
--
trunk/extensions/Translate/README
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php

Modified: trunk/extensions/Translate/README
===
--- trunk/extensions/Translate/README   2012-01-31 12:20:41 UTC (rev 110384)
+++ trunk/extensions/Translate/README   2012-01-31 13:42:01 UTC (rev 110385)
@@ -15,30 +15,68 @@
  
http://translatewiki.net/wiki/Translating:Documentation#Documentation_for_system_administrators
 
 == Contributing ==
-Translations? - go to http://translatewiki.net and sign up.
-Code? File format handlers? New message groups? Graphics? Suggestions?
-Bug reports? - please start a thread at http://translatewiki.net/wiki/Support
-or join us at #mediawiki-i18n and let us know what you have in mind.
+* Translations? Go to https://translatewiki.net and sign up.
+* Code? File format handlers? New message groups? Graphics? Suggestions?
+* Bug reports? Please start a thread at http://translatewiki.net/wiki/Support,
+  report a bug in https://bugzilla.wikimedia.org or join us at #mediawiki-i18n
+  and let us know what you have in mind.
 
-Bugs and feature requests are collected at:
- http://translatewiki.net/wiki/Issues_and_features
+Some known bugs and feature requests are collected at:
+ https://translatewiki.net/wiki/Issues_and_features
 
 Documentation for the extension is at:
- http://translatewiki.net/wiki/Translating:Documentation
+ https://www.mediawiki.org/wiki/Help:Extension:Translate
 And for the code at:
- http://translatewiki.net/docs/Translate/html/
+ https://translatewiki.net/docs/Translate/html/
 
 == Change log ==
 * 2012-01-31
-- export.php: switch grouptrail renamed to groupprefix and switch groups
+- export.php: switch grouptrail renamed to groupprefix and switch groups.
   was dropped. group now takes a comma separated list of groups IDs, too.
 - sync-group.php: switch groupprefix added.
+- Double counting of messages when adding message groups and aggregate groups 
to
+  another aggregate group was partially resolved.
+- Messages for translatable pages for which translation is discouraged, are no
+  longer added to aggregate message groups to avoid mismatches in statistics.
+- Special:MessageGroupStats now works for group IDs with spaces.
+- Updates were made for the translation memory service, to avoid serving
+  incorrect or outdated suggestions.
+* 2012-01-30
+- Statictics issues introduced recently were resolved.
+- lang attributes were added to Special:SupportedLanguages.
+- [[Special:Translate/groupname]] links for translatable pages with spaces or
+  colons in them are now possible. For page Some page it is:
+  [[Special:Translate/page-Some_page]].
+- The JavaScript translation editor now shows the code browser and gettext
+  comments when translating aggregate message groups.
+- Logging was added group statistics caching to determine if cache purges 
happen
+  too often.
+* 2012-01-29
+- Update functionality for the translation memory was added.
+* 2012-01-28
+- Code readability improvements were made.
+- A translation memory service was added, including a bootstrap script.
+* 2012-01-22
+- Message groups are no longer forced to implement getBools. getTags is the
+  official way to do this.
+- getDefinitions was added to the MessageGroupInterface.
+- The public $namespaces variable in MessageGroup was removed.
+* 2012-01-20
+- Browser compatibility updates were made in CSS.
+* 2012-01-19
+- Deprecated hook LanguageGetMagic was removed.
+* 2012-01-16
+- Help icons linking to documentation at
+  https://www.mediawiki.org/Help:Extension:Translate or sub pages were added to
+  extension functionality.
+- Backward compatibility with MediaWiki 1.18 was restored.
 * 2012-01-13
-- export.php has a switch --no-fuzzy that will filter out fuzzy messages
-  for file based message groups.
+- export.php has a switch no-fuzzy that will filter out fuzzy messages for
+  file based message groups.
 - Special:PageTranslation has now better error checking for invalid and
   duplicate translation unit names.
 - Special pages have now help links.
+- Images were moved to a resources sub folder.
 * 2012-01-11
 - Translate page group id prefix was changed from page| to page-. Some old
   links need to be updated, some still work.

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-01-31 12:20:41 UTC 
(rev

[MediaWiki-CVS] SVN: [110411] trunk/extensions/Translate

2012-01-31 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110411

Revision: 110411
Author:   siebrand
Date: 2012-01-31 17:24:03 + (Tue, 31 Jan 2012)
Log Message:
---
Stylize and whitespace updates.

Modified Paths:
--
trunk/extensions/Translate/Groups.php
trunk/extensions/Translate/Translate.i18n.php
trunk/extensions/Translate/TranslateUtils.php
trunk/extensions/Translate/api/ApiTTMServer.php
trunk/extensions/Translate/resources/ext.translate.quickedit.js
trunk/extensions/Translate/scripts/export.php
trunk/extensions/Translate/scripts/sync-group.php
trunk/extensions/Translate/scripts/ttmserver-export.php
trunk/extensions/Translate/specials/SpecialLanguageStats.php
trunk/extensions/Translate/utils/StatsTable.php
trunk/extensions/Translate/utils/TranslationHelpers.php

Modified: trunk/extensions/Translate/Groups.php
===
--- trunk/extensions/Translate/Groups.php   2012-01-31 17:14:16 UTC (rev 
110410)
+++ trunk/extensions/Translate/Groups.php   2012-01-31 17:24:03 UTC (rev 
110411)
@@ -686,8 +686,8 @@
}
return $messages;
}
-   
 
+
public function initCollection( $code ) {
$messages = $this-loadMessagesFromCache( $this-getGroups() );
$namespace = $this-getNamespace();

Modified: trunk/extensions/Translate/Translate.i18n.php
===
--- trunk/extensions/Translate/Translate.i18n.php   2012-01-31 17:14:16 UTC 
(rev 110410)
+++ trunk/extensions/Translate/Translate.i18n.php   2012-01-31 17:24:03 UTC 
(rev 110411)
@@ -13335,7 +13335,7 @@
'translate-edit-definition' = 'ಸಂದೇಶ ವ್ಯಾಖ್ಯೆ',
'translate-edit-translation' = 'ಅನುವಾದ',
'translate-edit-contribute' = 'ನೆರವಾಗು',
-   'translate-edit-no-information' = 'ಈ ಸಂದೇಶಕ್ಕೆ ಯಾವುದೇ ದಾಖಲೆಗಳಿಲ್ಲ. 
+   'translate-edit-no-information' = 'ಈ ಸಂದೇಶಕ್ಕೆ ಯಾವುದೇ ದಾಖಲೆಗಳಿಲ್ಲ.
 ನಿಮಗೆ ಈ ಸಂದೇಶ ಎಲ್ಲಿಯಾದರೂ ಅಥವಾ ಹೇಗಾದರೂ ಉಪಯೋಗದಲ್ಲಿರುವುದು ತಿಳಿದಿದ್ದರೆ,ನೀವು 
ಇದಕ್ಕೆ ತಕ್ಕ ದಾಖಲೆಗಳನ್ನು ಸೇರಿಸಿ ಬೇರಿ ಭಾಷಾಂತರಕಾರರಿಗೆ ಸಹಾಯ ಮಾಡಬಹುದು.',
'translate-edit-information' = 'ಸಂದೇಶದ ಬಗ್ಗೆ ಮಾಹಿತಿ ($1)',
'translate-edit-in-other-languages' = 'ಬೇರೆ ಭಾಷೆಗಳಲ್ಲಿ ಸಂದೇಶ',

Modified: trunk/extensions/Translate/TranslateUtils.php
===
--- trunk/extensions/Translate/TranslateUtils.php   2012-01-31 17:14:16 UTC 
(rev 110410)
+++ trunk/extensions/Translate/TranslateUtils.php   2012-01-31 17:24:03 UTC 
(rev 110411)
@@ -319,7 +319,7 @@
$out-addModules( 'ext.translate.helplink' );
$text = wfMessage( 'translate-gethelp' )-escaped();
 
-   if( $overrideBaseUrl ) {
+   if ( $overrideBaseUrl ) {
$helpUrl = $to;
} else {
$helpUrl = 
//www.mediawiki.org/wiki/Special:MyLanguage/$to;

Modified: trunk/extensions/Translate/api/ApiTTMServer.php
===
--- trunk/extensions/Translate/api/ApiTTMServer.php 2012-01-31 17:14:16 UTC 
(rev 110410)
+++ trunk/extensions/Translate/api/ApiTTMServer.php 2012-01-31 17:24:03 UTC 
(rev 110411)
@@ -39,7 +39,7 @@
 
protected function getAvailableTranslationServices() {
global $wgTranslateTranslationServices;
-   
+
$good = array();
foreach ( $wgTranslateTranslationServices as $id = $config ) {
if ( $config['type'] === 'ttmserver'  
$config['public'] === true ) {

Modified: trunk/extensions/Translate/resources/ext.translate.quickedit.js
===
--- trunk/extensions/Translate/resources/ext.translate.quickedit.js 
2012-01-31 17:14:16 UTC (rev 110410)
+++ trunk/extensions/Translate/resources/ext.translate.quickedit.js 
2012-01-31 17:24:03 UTC (rev 110411)
@@ -129,7 +129,7 @@
var height = $( window ).height() * 0.7;
dialogwidth = $( window ).width() * 0.8;
mw.util.addCSS( /* Inserted by ext.translate.quickedit 
*/\n +
-   .mw-sp-translate-edit-fields {\n + 
+   .mw-sp-translate-edit-fields {\n +
\tmax-height:  + height + px;\n +
\toverflow: auto\n}\n
);

Modified: trunk/extensions/Translate/scripts/export.php
===
--- trunk/extensions/Translate/scripts/export.php   2012-01-31 17:14:16 UTC 
(rev 110410)
+++ trunk/extensions/Translate/scripts/export.php   2012-01-31 17:24:03 UTC 
(rev 110411)
@@ -99,7 +99,7 @@
foreach ( $groupIds as $groupId ) {
$group

[MediaWiki-CVS] SVN: [110289] trunk/phase3/includes/Title.php

2012-01-30 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110289

Revision: 110289
Author:   siebrand
Date: 2012-01-30 13:54:43 + (Mon, 30 Jan 2012)
Log Message:
---
Revert r110285, r110286. No new features in core during slush.

Consider recommit after 1.19 is branched, and please add hooks.txt 
documentation, too.

Modified Paths:
--
trunk/phase3/includes/Title.php

Modified: trunk/phase3/includes/Title.php
===
--- trunk/phase3/includes/Title.php 2012-01-30 13:51:04 UTC (rev 110288)
+++ trunk/phase3/includes/Title.php 2012-01-30 13:54:43 UTC (rev 110289)
@@ -4164,21 +4164,7 @@
 * @return Bool
 */
public function isKnown() {
-   $isKnown = null;
-
-   /**
-* Allows overriding default behaviour for determining if a 
page exists.
-* If $isKnown is kept as null, regular checks happen. If it's
-* a boolean, this value is returned by the isKnown method.
-*
-* @since 1.19
-*
-* @param Title $title
-* @param boolean|null $isKnown
-*/
-   wfRunHooks( 'TitleIsKnown', array( $this, $isKnown ) );
-
-   return is_null( $isKnown ) ? ( $this-isAlwaysKnown() || 
$this-exists() ) : $isKnown;
+   return $this-isAlwaysKnown() || $this-exists();
}
 
/**


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110295] trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php

2012-01-30 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110295

Revision: 110295
Author:   siebrand
Date: 2012-01-30 15:22:00 + (Mon, 30 Jan 2012)
Log Message:
---
Remove trailing whitespace.

Modified Paths:
--
trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php

Modified: trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php
===
--- trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php   
2012-01-30 15:20:01 UTC (rev 110294)
+++ trunk/tools/ToolserverI18N/language/messages/Catdown.i18n.php   
2012-01-30 15:22:00 UTC (rev 110295)
@@ -32,7 +32,7 @@
'download-info' = {{plural: $1|There is one image|There are $1 
images}}, with an estimated size of $2,
'download' = 'Download',
 
-   'readme-contents' = 'The enclosing file $4 lists 
+   'readme-contents' = 'The enclosing file $4 lists
 the images at the $1 category ( $2 )$3.
 
 == Instructions for downloading all the listed images ==
@@ -42,11 +42,10 @@
  Extract all the files in the same folder and run $5
  $6
 Linux/Mac OS
- Extract all the files and open a terminal in that folder. Run sh $5
-',
-   'non-bundled-wget' = Note: This version doesn't include wget for 
Windows. You will need to decompress 
+ Extract all the files and open a terminal in that folder. Run sh $5',
+   'non-bundled-wget' = Note: This version doesn't include wget for 
Windows. You will need to decompress
 to a folder with wget.exe or otherwise have wget in the PATH,
-   'wget-info' = 'This file bundles a copy of wget $1 (for Windows 
platform). Wget is Free Software, 
+   'wget-info' = 'This file bundles a copy of wget $1 (for Windows 
platform). Wget is Free Software,
 under the terms of the GNU GENERAL PUBLIC LICENSE version 3.
 There is a copy of the license below, and it is also available at 
http://www.gnu.org/licenses/gpl-3.0.txt
 
@@ -55,8 +54,7 @@
  http://ftp.gnu.org/gnu/wget/wget-$1.tar.xz
  ftp://ftp.gnu.org/gnu/wget/wget-$1.tar.xz
 or some other GNU Mirror, see
- http://www.gnu.org/prep/ftp.html
-',
+ http://www.gnu.org/prep/ftp.html',
 
'scaling-none' = '', // Optional
'scaling-width' = ', scaled to a maximum width of $1 
{{plural:$1|pixel|pixels}}',


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110307] trunk/translatewiki/Pywikipedia/Pywikipedia.yaml

2012-01-30 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110307

Revision: 110307
Author:   siebrand
Date: 2012-01-30 17:35:20 + (Mon, 30 Jan 2012)
Log Message:
---
Remove some underscores. Because of the code slush, they're in short supply, 
and Nikerabbit needs a few...

Modified Paths:
--
trunk/translatewiki/Pywikipedia/Pywikipedia.yaml

Modified: trunk/translatewiki/Pywikipedia/Pywikipedia.yaml
===
--- trunk/translatewiki/Pywikipedia/Pywikipedia.yaml2012-01-30 17:26:27 UTC 
(rev 110306)
+++ trunk/translatewiki/Pywikipedia/Pywikipedia.yaml2012-01-30 17:35:20 UTC 
(rev 110307)
@@ -25,9 +25,9 @@
   - out-pywikipedia-*
 ---
 BASIC:
-  id: out-pywikipedia-add_text
+  id: out-pywikipedia-addtext
   label: Pywikipedia Add Text
-  display: out/pywikipedia/add_text
+  display: out/pywikipedia/addtext
 
 FILES:
   sourcePattern: %GROUPROOT%/pywikipedia/add_text.py
@@ -55,9 +55,9 @@
   targetPattern: pywikipedia/basic.py
 ---
 BASIC:
-  id: out-pywikipedia-capitalize_redirects
+  id: out-pywikipedia-capitalizeredirects
   label: Pywikipedia Capitalize Redirects
-  display: out/pywikipedia/capitalize_redirects
+  display: out/pywikipedia/capitalizeredirects
 
 FILES:
   sourcePattern: %GROUPROOT%/pywikipedia/capitalize_redirects.py
@@ -85,9 +85,9 @@
   targetPattern: pywikipedia/category.py
 ---
 BASIC:
-  id: out-pywikipedia-category_redirect
+  id: out-pywikipedia-categoryredirect
   label: Pywikipedia Category Redirect
-  display: out/pywikipedia/category_redirect
+  display: out/pywikipedia/categoryredirect
 
 FILES:
   sourcePattern: %GROUPROOT%/pywikipedia/category_redirect.py
@@ -95,9 +95,9 @@
   targetPattern: pywikipedia/category_redirect.py
 ---
 BASIC:
-  id: out-pywikipedia-clean_sandbox
+  id: out-pywikipedia-cleansandbox
   label: Pywikipedia Clean Sandbox
-  display: out/pywikipedia/clean_sandbox
+  display: out/pywikipedia/cleansandbox
 
 FILES:
   sourcePattern: %GROUPROOT%/pywikipedia/clean_sandbox.py
@@ -115,9 +115,9 @@
   targetPattern: pywikipedia/commons.py
 ---
 BASIC:
-  id: out-pywikipedia-cosmetic_changes
+  id: out-pywikipedia-cosmeticchanges
   label: Pywikipedia Cosmetic Changes
-  display: out/pywikipedia/cosmetic_changes
+  display: out/pywikipedia/cosmeticchanges
 
 FILES:
   sourcePattern: %GROUPROOT%/pywikipedia/cosmetic_changes.py
@@ -235,9 +235,9 @@
   targetPattern: pywikipedia/replace.py
 ---
 BASIC:
-  id: out-pywikipedia-solve_disambiguation
+  id: out-pywikipedia-solvedisambiguation
   label: Pywikipedia Solve Disambiguation
-  display: out/pywikipedia/solve_disambiguation
+  display: out/pywikipedia/solvedisambiguation
 
 FILES:
   sourcePattern: %GROUPROOT%/pywikipedia/solve_disambiguation.py


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110096] trunk/translatewiki/MediaWiki/mediawiki-defines.txt

2012-01-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110096

Revision: 110096
Author:   siebrand
Date: 2012-01-27 00:10:46 + (Fri, 27 Jan 2012)
Log Message:
---
Update tags

Modified Paths:
--
trunk/translatewiki/MediaWiki/mediawiki-defines.txt

Modified: trunk/translatewiki/MediaWiki/mediawiki-defines.txt
===
--- trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-01-26 23:39:07 UTC 
(rev 110095)
+++ trunk/translatewiki/MediaWiki/mediawiki-defines.txt 2012-01-27 00:10:46 UTC 
(rev 110096)
@@ -1672,7 +1672,7 @@
 ignored = tweetanew-accesskey
 
 UK Geocoding For Maps
-descmsg = ukgeocoding_desc
+descmsg = ukgeocoding-desc
 
 Upload Blacklist
 
@@ -1865,7 +1865,7 @@
 descmsg = wlfeed-desc
 
 Wiki Love
-optional = wikilove-commons-url, wikilove-commons-link, 
wikilove-what-is-this-link
+optional = wikilove-commons-url, wikilove-commons-link, 
wikilove-what-is-this-link, wikilove-terms-url
 
 Wiki Object Model
 file = WikiObjectModel/languages/Messages.php


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [110097] trunk/extensions/WikiLove/WikiLove.i18n.php

2012-01-26 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110097

Revision: 110097
Author:   siebrand
Date: 2012-01-27 00:11:20 + (Fri, 27 Jan 2012)
Log Message:
---
Remove unneeded entries.

Modified Paths:
--
trunk/extensions/WikiLove/WikiLove.i18n.php

Modified: trunk/extensions/WikiLove/WikiLove.i18n.php
===
--- trunk/extensions/WikiLove/WikiLove.i18n.php 2012-01-27 00:10:46 UTC (rev 
110096)
+++ trunk/extensions/WikiLove/WikiLove.i18n.php 2012-01-27 00:11:20 UTC (rev 
110097)
@@ -572,7 +572,6 @@
'wikilove-commons-text' = Skeudennoù a c'hallit kavout en ur furchal 
e $1.,
'wikilove-terms' = Ma kasit an dra-se ec'h asantit bezañ treuzwelus 
hervez $1.,
'wikilove-terms-link' = 'termenoù',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
 );
 
 /** Bosnian (Bosanski)
@@ -682,7 +681,6 @@
'wikilove-commons-text' = 'Du kan finde billeder ved at gennemse $1.',
'wikilove-terms' = 'Ved at sende accepterer du gennemsigtighed under 
disse $1.',
'wikilove-terms-link' = 'vilkår',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/* JavaScript, der placeres her, tilpasser WikiLove, 
se http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration */',
 );
 
@@ -856,7 +854,6 @@
'wikilove-commons-text' = 'Bilder können gefunden werden, indem man $1 
durchsucht.',
'wikilove-terms' = 'Mit dem Speichern erklärst du dich mit diesen $1 
einverstanden.',
'wikilove-terms-link' = 'Bedingungen',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/* Das folgende JavaScript passt die persönliche 
Wertschätzung an, siehe 
http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration */',
 );
 
@@ -1332,7 +1329,6 @@
'wikilove-commons-text' = '$1 را برای یافتن تصاویر جستجو کنید.',
'wikilove-terms' = 'با ثبت کردن، شما به شفافیت با این $1 موافقت 
می‌کنید.',
'wikilove-terms-link' = 'شرایط',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/ * جاوا اسکریپت مورد استفاده در اینجا ویکی‌لاو را 
سفارشی می‌کند ، نگاه کنید به 
http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration * /',
 );
 
@@ -1508,7 +1504,6 @@
'wikilove-commons-text' = 'Voit etsiä kuvia selailemalla sivustoa $1.',
'wikilove-terms' = 'Lähettämällä sallit avoimuuden $1 mukaan.',
'wikilove-terms-link' = 'ehtojen',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/* Tämä JavaScript mukauttaa Wikirakkautta. 
Lisätietoja löytyy sivulta 
http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration */',
 );
 
@@ -1691,7 +1686,6 @@
'wikilove-commons-text' = 'Vous pouvez trouver des images en surfant 
sur $1.',
'wikilove-terms' = 'En soumettant, vous acceptez la transparence en 
accord avec ces $1.',
'wikilove-terms-link' = 'conditions',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/ * le JavaScript placé ici personnalise WikiLove, 
voyez http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration * 
/',
 );
 
@@ -2161,7 +2155,6 @@
'wikilove-commons-text' = 'אפשר לחפש תמונות באתר $1.',
'wikilove-terms' = 'שליחה מביעה את הסכמתך לשקיפות לפי $1 הבאים.',
'wikilove-terms-link' = 'התנאים',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = /* זהו דף ג'אווה סקריפט להגדרות של ויקי־אהבה. למידע 
נוסף ר׳
http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration */,
 );
@@ -2473,7 +2466,6 @@
'wikilove-commons-url' = 
'http://commons.wikimedia.org/wiki/Pagina_principal?uselang=ia',
'wikilove-terms' = 'Per submitter, tu te declara de accordo con 
transparentia sub iste $1.',
'wikilove-terms-link' = 'conditiones',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/* Le JavaScript inserite hic personalisa WikiLove, 
vide http://www.mediawiki.org/wiki/Extension:WikiLove#Custom_configuration */',
 );
 
@@ -2862,7 +2854,6 @@
'wikilove-anon-warning' = 'Notiz: Dëse Benotzer ass net registréiert, 
hien oder si gesäit dëse Message méiglecherweis net.',
'wikilove-commons-text' = 'Dir fannt Biller wann Dir op $1 sicht.',
'wikilove-terms-link' = 'Bedingungen',
-   'wikilove-terms-url' = 
'http://wikimediafoundation.org/wiki/Feedback_privacy_statement',
'wikilove.js' = '/* Dëse JavaScript adaptéiert déi perséinnlech 
Wäertschätzung, kuckt 
http://www.mediawiki.org/wiki

[MediaWiki-CVS] SVN: [109744] trunk/extensions/Translate/TranslateUtils.php

2012-01-22 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109744

Revision: 109744
Author:   siebrand
Date: 2012-01-22 19:09:34 + (Sun, 22 Jan 2012)
Log Message:
---
Open the Translate help page in a new tab/window.

Modified Paths:
--
trunk/extensions/Translate/TranslateUtils.php

Modified: trunk/extensions/Translate/TranslateUtils.php
===
--- trunk/extensions/Translate/TranslateUtils.php   2012-01-22 18:22:00 UTC 
(rev 109743)
+++ trunk/extensions/Translate/TranslateUtils.php   2012-01-22 19:09:34 UTC 
(rev 109744)
@@ -4,7 +4,7 @@
  *
  * @file
  * @author Niklas Laxström
- * @copyright Copyright © 2007, 2009 Niklas Laxström
+ * @copyright Copyright © 2007, 2012 Niklas Laxström
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
 
@@ -318,7 +318,13 @@
public static function addSpecialHelpLink( OutputPage $out, 
/*string*/$to ) {
$out-addModules( 'ext.translate.helplink' );
$text = wfMessage( 'translate-gethelp' )-escaped();
-   $link = Html::rawElement( 'a', array( 'href' = 
//www.mediawiki.org/wiki/Special:MyLanguage/$to ), $text );
+   $link = Html::rawElement(
+   'a',
+   array(
+   'href' = 
//www.mediawiki.org/wiki/Special:MyLanguage/$to,
+   'target' = '_blank'
+   ),
+   $text );
$wrapper = Html::rawElement( 'div', array( 'class' = 
'mw-translate-helplink' ), $link );
$out-addHtml( $wrapper );
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109745] trunk/extensions/Translate/specials/SpecialManageGroups.php

2012-01-22 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109745

Revision: 109745
Author:   siebrand
Date: 2012-01-22 19:13:20 + (Sun, 22 Jan 2012)
Log Message:
---
Fix link to help page.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialManageGroups.php

Modified: trunk/extensions/Translate/specials/SpecialManageGroups.php
===
--- trunk/extensions/Translate/specials/SpecialManageGroups.php 2012-01-22 
19:09:34 UTC (rev 109744)
+++ trunk/extensions/Translate/specials/SpecialManageGroups.php 2012-01-22 
19:13:20 UTC (rev 109745)
@@ -93,7 +93,7 @@
 
$groups = MessageGroups::singleton()-getGroups();
 
-   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Help:Extension:Translate/Group_management' );
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Group_management' );
$wgOut-wrapWikiMsg( 'h2$1/h2', 
'translate-manage-listgroups' );
$separator = wfMsg( 'word-separator' );
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109747] trunk/extensions/Translate/specials/SpecialImportTranslations .php

2012-01-22 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109747

Revision: 109747
Author:   siebrand
Date: 2012-01-22 19:22:44 + (Sun, 22 Jan 2012)
Log Message:
---
Update help link.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialImportTranslations.php

Modified: trunk/extensions/Translate/specials/SpecialImportTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialImportTranslations.php   
2012-01-22 19:15:41 UTC (rev 109746)
+++ trunk/extensions/Translate/specials/SpecialImportTranslations.php   
2012-01-22 19:22:44 UTC (rev 109747)
@@ -120,7 +120,7 @@
global $wgOut;
 
$wgOut-addModules( 'ext.translate.special.importtranslations' 
);
-   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Group_management' );
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Off-line_translation' );
/**
 * Ugly but necessary form building ahead, ohoy
 */


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109749] trunk/extensions/Translate

2012-01-22 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109749

Revision: 109749
Author:   siebrand
Date: 2012-01-22 19:33:35 + (Sun, 22 Jan 2012)
Log Message:
---
Add overrideBaseUrl setting to TranslateUtils::addSpecialHelpLink().
Add help link on Special:AdvancedTranslate.

Modified Paths:
--
trunk/extensions/Translate/TranslateUtils.php
trunk/extensions/Translate/specials/SpecialMagic.php

Modified: trunk/extensions/Translate/TranslateUtils.php
===
--- trunk/extensions/Translate/TranslateUtils.php   2012-01-22 19:32:28 UTC 
(rev 109748)
+++ trunk/extensions/Translate/TranslateUtils.php   2012-01-22 19:33:35 UTC 
(rev 109749)
@@ -315,13 +315,20 @@
/**
 * @since 2012-01-12
 */
-   public static function addSpecialHelpLink( OutputPage $out, 
/*string*/$to ) {
+   public static function addSpecialHelpLink( OutputPage $out, 
/*string*/$to, $overrideBaseUrl = false ) {
$out-addModules( 'ext.translate.helplink' );
$text = wfMessage( 'translate-gethelp' )-escaped();
+
+   if( $overrideBaseUrl ) {
+   $helpUrl = $to;
+   } else {
+   $helpUrl = 
//www.mediawiki.org/wiki/Special:MyLanguage/$to;
+   }
+
$link = Html::rawElement(
'a',
array(
-   'href' = 
//www.mediawiki.org/wiki/Special:MyLanguage/$to,
+   'href' = $helpUrl,
'target' = '_blank'
),
$text );

Modified: trunk/extensions/Translate/specials/SpecialMagic.php
===
--- trunk/extensions/Translate/specials/SpecialMagic.php2012-01-22 
19:32:28 UTC (rev 109748)
+++ trunk/extensions/Translate/specials/SpecialMagic.php2012-01-22 
19:33:35 UTC (rev 109749)
@@ -138,6 +138,7 @@
 
$this-setup( $parameters );
$this-setHeaders();
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'//translatewiki.net/wiki/FAQ#Special:AdvancedTranslate', true );
 
$wgOut-addHTML( $this-getForm() );
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109750] trunk/extensions/Translate/specials

2012-01-22 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109750

Revision: 109750
Author:   siebrand
Date: 2012-01-22 19:44:57 + (Sun, 22 Jan 2012)
Log Message:
---
Update and add help links.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialSupportedLanguages.php
trunk/extensions/Translate/specials/SpecialTranslate.php
trunk/extensions/Translate/specials/SpecialTranslations.php

Modified: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php
===
--- trunk/extensions/Translate/specials/SpecialSupportedLanguages.php   
2012-01-22 19:33:35 UTC (rev 109749)
+++ trunk/extensions/Translate/specials/SpecialSupportedLanguages.php   
2012-01-22 19:44:57 UTC (rev 109750)
@@ -36,6 +36,7 @@
$this-purge = $wgRequest-getVal( 'action' ) === 'purge';
 
$this-setHeaders();
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'//translatewiki.net/wiki/Translatewiki.net_languages', true );
$wgOut-addModules( 'ext.translate.special.supportedlanguages' 
);
 
$cache = wfGetCache( CACHE_ANYTHING );

Modified: trunk/extensions/Translate/specials/SpecialTranslate.php
===
--- trunk/extensions/Translate/specials/SpecialTranslate.php2012-01-22 
19:33:35 UTC (rev 109749)
+++ trunk/extensions/Translate/specials/SpecialTranslate.php2012-01-22 
19:44:57 UTC (rev 109750)
@@ -60,7 +60,7 @@
$errors = array();
 
if ( $this-options['group'] === '' ) {
-   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate' );
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Translation_example' );
$this-groupInformation();
return;
}

Modified: trunk/extensions/Translate/specials/SpecialTranslations.php
===
--- trunk/extensions/Translate/specials/SpecialTranslations.php 2012-01-22 
19:33:35 UTC (rev 109749)
+++ trunk/extensions/Translate/specials/SpecialTranslations.php 2012-01-22 
19:44:57 UTC (rev 109750)
@@ -30,6 +30,7 @@
 
$this-setHeaders();
$this-outputHeader();
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Statistics_and_reporting#Translations_in_all_languages'
 );
 
self::includeAssets();
 


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109754] trunk/extensions/Translate/specials/SpecialSupportedLanguages .php

2012-01-22 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109754

Revision: 109754
Author:   siebrand
Date: 2012-01-22 20:33:44 + (Sun, 22 Jan 2012)
Log Message:
---
Follow-up r109750: Update help link for Special:SupportedLanguages.

Modified Paths:
--
trunk/extensions/Translate/specials/SpecialSupportedLanguages.php

Modified: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php
===
--- trunk/extensions/Translate/specials/SpecialSupportedLanguages.php   
2012-01-22 20:28:47 UTC (rev 109753)
+++ trunk/extensions/Translate/specials/SpecialSupportedLanguages.php   
2012-01-22 20:33:44 UTC (rev 109754)
@@ -36,7 +36,7 @@
$this-purge = $wgRequest-getVal( 'action' ) === 'purge';
 
$this-setHeaders();
-   TranslateUtils::addSpecialHelpLink( $wgOut, 
'//translatewiki.net/wiki/Translatewiki.net_languages', true );
+   TranslateUtils::addSpecialHelpLink( $wgOut, 
'Help:Extension:Translate/Statistics_and_reporting#List_of_languages_and_translators'
 );
$wgOut-addModules( 'ext.translate.special.supportedlanguages' 
);
 
$cache = wfGetCache( CACHE_ANYTHING );


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109515] trunk/extensions/Livelets

2012-01-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109515

Revision: 109515
Author:   siebrand
Date: 2012-01-19 10:41:23 + (Thu, 19 Jan 2012)
Log Message:
---
Follow-up r109402: remove use of $wgLiveletsMagic and just use the string per 
CR.
Update message documentation.

Modified Paths:
--
trunk/extensions/Livelets/Livelets.i18n.php
trunk/extensions/Livelets/Livelets.php

Modified: trunk/extensions/Livelets/Livelets.i18n.php
===
--- trunk/extensions/Livelets/Livelets.i18n.php 2012-01-19 10:35:13 UTC (rev 
109514)
+++ trunk/extensions/Livelets/Livelets.i18n.php 2012-01-19 10:41:23 UTC (rev 
109515)
@@ -20,11 +20,7 @@
  * @author Raymond
  */
 $messages['qqq'] = array(
-   'livelets-desc' = {{desc}}
-
-Further description on http://www.mediawiki.org/wiki/Extension:Livelets
-
-According to that page, the functionality of this extension is not limited to 
the Main Page but can be used in all pages. ''Therefore, the phrase \the main 
page content\ '''should be translated as \the main content of the page\,''' 
not as \the content of the main page\.'',
+   'livelets-desc' = {{desc}} Further description on 
https://www.mediawiki.org/wiki/Extension:Livelets. According to that page, the 
functionality of this extension is not limited to the Main Page but can be used 
in all pages. ''Therefore, the phrase \the main page content\ '''should be 
translated as \the main content of the page\,''' not as \the content of the 
main page\.'',
 );
 
 /** Asturian (Asturianu)

Modified: trunk/extensions/Livelets/Livelets.php
===
--- trunk/extensions/Livelets/Livelets.php  2012-01-19 10:35:13 UTC (rev 
109514)
+++ trunk/extensions/Livelets/Livelets.php  2012-01-19 10:41:23 UTC (rev 
109515)
@@ -14,11 +14,8 @@
die( 'This is not a valid entry point to MediaWiki.' );
 }
 
-define( 'LIVELETS_VERSION', '1.1.0, 2012-01-18' );
+define( 'LIVELETS_VERSION', '1.1.0, 2012-01-19' );
 
-# the parser-function name for doing live-transclusions
-$wgLiveletsMagic  = 'live';
-
 # Settings for the event-driven live method
 $wgLiveletsUseSWF = false; # Set this to true to use SWF to make livelets 
fully event-driven (no polling for change)
 $wgLiveletsSwfBg  = '#ff'; # The background colour of the embedded SWF
@@ -32,6 +29,7 @@
'url' = 'https://www.mediawiki.org/wiki/Extension:Livelets',
'version' = LIVELETS_VERSION
 );
+
 $dir = dirname( __FILE__ );
 $wgExtensionMessagesFiles['Livelets'] =  $dir/Livelets.i18n.php;
 $wgExtensionMessagesFiles['LiveletsMagic'] =  $dir/Livelets.i18n.magic.php;
@@ -65,10 +63,10 @@
 
# Called at extension setup time
function setup() {
-   global $wgOut, $wgParser, $wgLiveletsMagic, $wgLiveletsUseSwf;
+   global $wgOut, $wgParser, $wgLiveletsUseSwf;
 
# Activate the parser-function
-   $wgParser-setFunctionHook( $wgLiveletsMagic, array( $this, 
'renderContainer' ) );
+   $wgParser-setFunctionHook( 'live', array( $this, 
'renderContainer' ) );
 
# Embed the SWF if enabled (SWF must be requested from 
Livelets.pl)
if ( $wgLiveletsUseSwf ) {
@@ -100,12 +98,10 @@
 
# This early hook called from the Ajax bypass whereby the parser has 
yet to process wikitext
function onArticleAfterFetchContent( $article, $content ) {
-   global $wgLiveletsMagic;
-
# Replace the wikitext with just the content of the requested 
livelet
foreach( $this-examineBraces( $content ) as $brace ) {
-   if ( $brace['NAME'] == #$wgLiveletsMagic:  
--$this-request_id  0 ) {
-   $len = strlen( $wgLiveletsMagic );
+   if ( $brace['NAME'] == #live:  --$this-request_id 
 0 ) {
+   $len = strlen( 'live' );
$content = substr( $content, $brace['OFFSET'] + 
$len + 4, $brace['LENGTH'] - $len - 6 );
break;
}


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


[MediaWiki-CVS] SVN: [109516] trunk/extensions/HeaderTabs/HeaderTabs.php

2012-01-19 Thread siebrand
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109516

Revision: 109516
Author:   siebrand
Date: 2012-01-19 10:43:19 + (Thu, 19 Jan 2012)
Log Message:
---
Follow-up r109402: Remove obsolete comments.

Modified Paths:
--
trunk/extensions/HeaderTabs/HeaderTabs.php

Modified: trunk/extensions/HeaderTabs/HeaderTabs.php
===
--- trunk/extensions/HeaderTabs/HeaderTabs.php  2012-01-19 10:41:23 UTC (rev 
109515)
+++ trunk/extensions/HeaderTabs/HeaderTabs.php  2012-01-19 10:43:19 UTC (rev 
109516)
@@ -35,8 +35,6 @@
 // __NOTABTOC__, __TABTOC__, __NOEDITTAB__
 // and one day with a special page: __NEWTABLINK__, __NONEWTABLINK__
 // and one day if we can force toc generation: __FORCETABTOC__
-//! @todo make this load a custom name from i18n file (2011-12-12, ofb)
-// ensure to keep this name too for backwards compat
 $wgExtensionMessagesFiles['HeaderTabsMagic'] = $dir . 
'/HeaderTabs.i18n.magic.php';
 
 // Config
@@ -108,8 +106,6 @@
 
 # Parser function to insert a link changing a tab:
 function headerTabsParserFunctions( $parser ) {
-   //! @todo make this load a custom name from i18n file (2011-12-12, ofb)
-   // ensure to keep this name too for backwards compat
$parser-setHook( 'headertabs', array( 'HeaderTabs', 'tag' ) );
$parser-setFunctionHook( 'switchtablink', array( 'HeaderTabs', 
'renderSwitchTabLink' ) );
return true;


___
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs


<    1   2   3   4   5   6   7   8   9   10   >