Index: trunk/extensions/WikimediaMessages/WikimediaMessages.php |
— | — | @@ -5,10 +5,17 @@ |
6 | 6 | * |
7 | 7 | * @addtogroup Extensions |
8 | 8 | * |
9 | | - * @copyright Copyright © 2008, Tim Starling |
| 9 | + * @copyright Copyright © 2008-2009, Tim Starling |
| 10 | + * @copyright Copyright © 2009, Siebrand Mazeland, Multichill |
10 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 12 | */ |
12 | 13 | |
| 14 | +// Settings |
| 15 | +if( !isset( $wgWikimediaLicenseTexts ) ) { |
| 16 | + // Set to true in LocalSettings.php to load Wikimedia license texts |
| 17 | + $wgWikimediaLicenseTexts = false; |
| 18 | +} |
| 19 | + |
13 | 20 | $wgExtensionCredits['other'][] = array( |
14 | 21 | 'path' => __FILE__, |
15 | 22 | 'name' => 'WikimediaMessages', |
— | — | @@ -22,6 +29,19 @@ |
23 | 30 | $wgExtensionMessagesFiles['WikimediaMessages'] = $dir .'WikimediaMessages.i18n.php'; |
24 | 31 | $wgExtensionFunctions[] = 'wfSetupWikimediaMessages'; |
25 | 32 | |
| 33 | +if( $wgWikimediaLicenseTexts ) { |
| 34 | + $wgExtensionCredits['other'][] = array( |
| 35 | + 'path' => __FILE__, |
| 36 | + 'name' => 'WikimediaLicenseTexts', |
| 37 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:WikimediaMessages', |
| 38 | + 'author' => array( 'Multichill', 'Siebrand Mazeland' ), |
| 39 | + 'description' => 'Wikimedia license texts', |
| 40 | + 'descriptionmsg' => 'wikimedialicensetexts-desc', |
| 41 | + ); |
| 42 | + |
| 43 | + $wgExtensionMessagesFiles['WikimediaLicenseTexts'] = $dir . '/WikimediaLicenseTexts.i18n.php'; |
| 44 | +} |
| 45 | + |
26 | 46 | include_once ( $dir .'WikimediaGrammarForms.php' ); |
27 | 47 | |
28 | 48 | function wfSetupWikimediaMessages() { |
Index: trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php |
— | — | @@ -0,0 +1,32 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalisation file for extension Wikimedia Messages - message group Wikimedia License Texts |
| 5 | + * |
| 6 | + * @addtogroup Extensions |
| 7 | + */ |
| 8 | + |
| 9 | +$messages = array(); |
| 10 | + |
| 11 | +$messages['en'] = array( |
| 12 | + 'wikimedialicensetexts-desc' => 'Wikimedia license messages', |
| 13 | + 'wm-license-cc-wiki-link' => 'w:en:Creative Commons', |
| 14 | + 'wm-license-cc-attribution' => 'Attribution', |
| 15 | + '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', |
| 16 | + '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', |
| 17 | + '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', |
| 18 | + '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', |
| 19 | + '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', |
| 20 | + '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', |
| 21 | + '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', |
| 22 | + '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', |
| 23 | + 'wm-license-cc-free' => 'You are free', |
| 24 | + 'wm-license-cc-free-to-share-header' => 'to share', |
| 25 | + 'wm-license-cc-free-to-share-text' => 'to copy, distribute and transmit the work', |
| 26 | + 'wm-license-cc-free-to-remix-header' => 'to remix', |
| 27 | + 'wm-license-cc-free-to-remix-text' => 'to adapt the work', |
| 28 | + 'wm-license-cc-conditions' => 'Under the following conditions', |
| 29 | + 'wm-license-cc-conditions-attribution-header' => 'attribution ', |
| 30 | + '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).', |
| 31 | + 'wm-license-cc-conditions-share_alike-header' => 'share alike', |
| 32 | + '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.', |
| 33 | +); |
Property changes on: trunk/extensions/WikimediaMessages/WikimediaLicenseTexts.i18n.php |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 34 | + native |
Name: svn:keywords |
2 | 35 | + Id |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -1258,6 +1258,10 @@ |
1259 | 1259 | optional = grouppage-Staff, shared-repo-name-shared |
1260 | 1260 | prefix = wmf- | sidebar, grouppage-Staff, group-Staff, group-Staff-member |
1261 | 1261 | |
| 1262 | +Wikimedia License Texts |
| 1263 | +file = WikimediaMessages/WikimediaLicenseTexts.i18n.php |
| 1264 | +descmsg = wikimedialicensetexts-desc |
| 1265 | + |
1262 | 1266 | Wiki Text Logged In Out |
1263 | 1267 | |
1264 | 1268 | Woopra |