http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56261
Revision: 56261
Author: siebrand
Date: 2009-09-13 13:09:16 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
* add module 'WikimediaLicenseTexts'. Disabled by default. This module is added
to be used, after review and configuration at the WMF cluster, at Wikimedia
Commons to properly structure localised license templates. If this proves to be
a succes, we could imagine other Wikimedia wikis to ask for these messages to
be activated also.
* allow localisation through Translate extension
Modified Paths:
--------------
trunk/extensions/Translate/groups/mediawiki-defines.txt
trunk/extensions/WikimediaMessages/WikimediaMessages.php
Added Paths:
-----------
trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php
Modified: trunk/extensions/Translate/groups/mediawiki-defines.txt
===================================================================
--- trunk/extensions/Translate/groups/mediawiki-defines.txt 2009-09-13
13:04:09 UTC (rev 56260)
+++ trunk/extensions/Translate/groups/mediawiki-defines.txt 2009-09-13
13:09:16 UTC (rev 56261)
@@ -1258,6 +1258,10 @@
optional = grouppage-Staff, shared-repo-name-shared
prefix = wmf- | sidebar, grouppage-Staff, group-Staff, group-Staff-member
+Wikimedia License Texts
+file = WikimediaMessages/WikimediaLicenseTexts.i18n.php
+descmsg = wikimedialicensetexts-desc
+
Wiki Text Logged In Out
Woopra
Added: trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php
===================================================================
--- trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php
(rev 0)
+++ trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php
2009-09-13 13:09:16 UTC (rev 56261)
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Internationalisation file for extension Wikimedia Messages - message group
Wikimedia License Texts
+ *
+ * @addtogroup Extensions
+ */
+
+$messages = array();
+
+$messages['en'] = array(
+ 'wikimedialicensetexts-desc' => 'Wikimedia license messages',
+ 'wm-license-cc-wiki-link' => 'w:en:Creative Commons',
+ 'wm-license-cc-attribution' => 'Attribution',
+ 'wm-license-cc-by-1.0-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by/1.0/deed.en Attribution 1.0 Generic]
license',
+ 'wm-license-cc-by-2.0-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by/2.0/deed.en Attribution 2.0 Generic]
license',
+ 'wm-license-cc-by-2.5-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by/2.5/deed.en Attribution 2.5 Generic]
license',
+ 'wm-license-cc-by-3.0-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by/3.0/deed.en Attribution 3.0 Unported]
license',
+ 'wm-license-cc-by-sa-1.0-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by-sa/1.0/deed.en Attribution-Share Alike
1.0 Generic] license',
+ 'wm-license-cc-by-sa-2.0-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by-sa/2.0/deed.en Attribution-Share Alike
2.0 Generic] license',
+ 'wm-license-cc-by-sa-2.5-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by-sa/2.5/deed.en Attribution-Share Alike
2.5 Generic] license',
+ 'wm-license-cc-by-sa-3.0-text' => 'This file is licensed under
[[{{int:wm-license-cc-wiki-link}}|Creative Commons]]
[http://creativecommons.org/licenses/by-sa/3.0/deed.en Attribution-Share Alike
3.0 Unported] license',
+ 'wm-license-cc-free' => 'You are free',
+ 'wm-license-cc-free-to-share-header' => 'to share',
+ 'wm-license-cc-free-to-share-text' => 'to copy, distribute and transmit
the work',
+ 'wm-license-cc-free-to-remix-header' => 'to remix',
+ 'wm-license-cc-free-to-remix-text' => 'to adapt the work',
+ 'wm-license-cc-conditions' => 'Under the following conditions',
+ 'wm-license-cc-conditions-attribution-header' => 'attribution ',
+ 'wm-license-cc-conditions-attribution-text' => 'You must attribute the
work in the manner specified by the author or licensor (but not in any way that
suggests that they endorse you or your use of the work).',
+ 'wm-license-cc-conditions-share_alike-header' => 'share alike',
+ 'wm-license-cc-conditions-share_alike-text' => 'If you alter,
transform, or build upon this work, you may distribute the resulting work only
under the same or similar license to this one.',
+);
Property changes on:
trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Modified: trunk/extensions/WikimediaMessages/WikimediaMessages.php
===================================================================
--- trunk/extensions/WikimediaMessages/WikimediaMessages.php 2009-09-13
13:04:09 UTC (rev 56260)
+++ trunk/extensions/WikimediaMessages/WikimediaMessages.php 2009-09-13
13:09:16 UTC (rev 56261)
@@ -5,10 +5,17 @@
*
* @addtogroup Extensions
*
- * @copyright Copyright © 2008, Tim Starling
+ * @copyright Copyright © 2008-2009, Tim Starling
+ * @copyright Copyright © 2009, Siebrand Mazeland, Multichill
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
2.0 or later
*/
+// Settings
+if( !isset( $wgWikimediaLicenseTexts ) ) {
+ // Set to true in LocalSettings.php to load Wikimedia license texts
+ $wgWikimediaLicenseTexts = false;
+}
+
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'WikimediaMessages',
@@ -22,6 +29,19 @@
$wgExtensionMessagesFiles['WikimediaMessages'] = $dir
.'WikimediaMessages.i18n.php';
$wgExtensionFunctions[] = 'wfSetupWikimediaMessages';
+if( $wgWikimediaLicenseTexts ) {
+ $wgExtensionCredits['other'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'WikimediaLicenseTexts',
+ 'url' =>
'http://www.mediawiki.org/wiki/Extension:WikimediaMessages',
+ 'author' => array( 'Multichill', 'Siebrand Mazeland' ),
+ 'description' => 'Wikimedia license texts',
+ 'descriptionmsg' => 'wikimedialicensetexts-desc',
+ );
+
+ $wgExtensionMessagesFiles['WikimediaLicenseTexts'] = $dir .
'/WikimediaLicenseTexts.i18n.php';
+}
+
include_once ( $dir .'WikimediaGrammarForms.php' );
function wfSetupWikimediaMessages() {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs