Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -884,53 +884,13 @@ |
885 | 885 | } |
886 | 886 | |
887 | 887 | /* Override text-transform on languages where capitalization is significant */ |
888 | | -.portlet h5[lang|=bar], |
889 | | -.portlet h6[lang|=bar], |
890 | | -#p-personal ul[lang|=bar], |
891 | | -#p-cactions ul[lang|=bar] li a, |
892 | | -.portlet h5[lang|=de], |
893 | | -.portlet h6[lang|=de], |
894 | | -#p-personal ul[lang|=de], |
895 | | -#p-cactions ul[lang|=de] li a, |
896 | | -.portlet h5[lang|=gsw], |
897 | | -.portlet h6[lang|=gsw], |
898 | | -#p-personal ul[lang|=gsw], |
899 | | -#p-cactions ul[lang|=gsw] li a, |
900 | | -.portlet h5[lang|=ksh], |
901 | | -.portlet h6[lang|=ksh], |
902 | | -#p-personal ul[lang|=ksh], |
903 | | -#p-cactions ul[lang|=ksh] li a, |
904 | | -.portlet h5[lang|=lb], |
905 | | -.portlet h6[lang|=lb], |
906 | | -#p-personal ul[lang|=lb], |
907 | | -#p-cactions ul[lang|=lb] li a, |
908 | | -.portlet h5[lang|=nds], |
909 | | -.portlet h6[lang|=nds], |
910 | | -#p-personal ul[lang|=nds], |
911 | | -#p-cactions ul[lang|=nds] li a, |
912 | | -.portlet h5[lang|=pdc], |
913 | | -.portlet h6[lang|=pdc], |
914 | | -#p-personal ul[lang|=pdc], |
915 | | -#p-cactions ul[lang|=pdc] li a, |
916 | | -.portlet h5[lang|=pdt], |
917 | | -.portlet h6[lang|=pdt], |
918 | | -#p-personal ul[lang|=pdt], |
919 | | -#p-cactions ul[lang|=pdt] li a |
920 | | -.portlet h5[lang|=pfl], |
921 | | -.portlet h6[lang|=pfl], |
922 | | -#p-personal ul[lang|=pfl], |
923 | | -#p-cactions ul[lang|=pfl] li a { |
| 888 | +.capitalize_all_nouns .portlet h5, |
| 889 | +.capitalize_all_nouns .portlet h6, |
| 890 | +.capitalize_all_nouns #p-personal ul, |
| 891 | +.capitalize_all_nouns #p-cactions ul li a { |
924 | 892 | text-transform: none; |
925 | 893 | } |
926 | 894 | |
927 | | -/* What matches for nds must not match for nds-nl - bug 19209 */ |
928 | | -.portlet h5[lang|=nds-nl], |
929 | | -.portlet h6[lang|=nds-nl], |
930 | | -#p-personal ul[lang|=nds-nl], |
931 | | -#p-cactions ul[lang|=nds-nl] li a { |
932 | | - text-transform: lowercase; |
933 | | -} |
934 | | - |
935 | 895 | /* TODO: #t-iscite is only used by the Cite extension, come up with some |
936 | 896 | * system which allows extensions to add to this file on the fly |
937 | 897 | */ |
Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | </head> |
111 | 111 | <body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?> |
112 | 112 | <?php if($this->data['body_onload']) { ?> onload="<?php $this->text('body_onload') ?>"<?php } ?> |
113 | | - class="mediawiki <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinnameclass') ?>"> |
| 113 | + class="mediawiki <?php $this->text('dir'); $this->text('capitalizeallnouns') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinnameclass') ?>"> |
114 | 114 | <div id="globalWrapper"> |
115 | 115 | <div id="column-content"> |
116 | 116 | <div id="content"> |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -270,6 +270,7 @@ |
271 | 271 | $tpl->setRef( 'lang', $wgContLanguageCode ); |
272 | 272 | $tpl->set( 'dir', $wgContLang->isRTL() ? 'rtl' : 'ltr' ); |
273 | 273 | $tpl->set( 'rtl', $wgContLang->isRTL() ); |
| 274 | + $tpl->set( 'capitalizeallnouns', $wgLang->capitalizeAllNouns() ? ' capitalize_all_nouns' : '' ); |
274 | 275 | $tpl->set( 'langname', $wgContLang->getLanguageName( $wgContLanguageCode ) ); |
275 | 276 | $tpl->set( 'showjumplinks', $wgUser->getOption( 'showjumplinks' ) ); |
276 | 277 | $tpl->set( 'username', $wgUser->isAnon() ? NULL : $this->username ); |
Index: trunk/phase3/languages/messages/MessagesPfl.php |
— | — | @@ -11,6 +11,8 @@ |
12 | 12 | * @author SPS |
13 | 13 | */ |
14 | 14 | |
| 15 | +$fallback = 'de'; |
| 16 | + |
15 | 17 | $messages = array( |
16 | 18 | 'underline-always' => 'Immer', |
17 | 19 | 'underline-never' => 'Garnet', |
Index: trunk/phase3/languages/messages/MessagesPdt.php |
— | — | @@ -11,6 +11,8 @@ |
12 | 12 | * @author Wikipeeta |
13 | 13 | */ |
14 | 14 | |
| 15 | +$fallback = 'de'; |
| 16 | + |
15 | 17 | $messages = array( |
16 | 18 | # User preference toggles |
17 | 19 | 'tog-underline' => 'Links unjastritje:', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -29,6 +29,12 @@ |
30 | 30 | $rtl = false; |
31 | 31 | |
32 | 32 | /** |
| 33 | + * Should all nouns (not just proper ones) be capitalized? |
| 34 | + * Enabling this property will add the capitalizeAllNouns class to the <body> tag |
| 35 | + */ |
| 36 | +$capitalizeAllNouns = false; |
| 37 | + |
| 38 | +/** |
33 | 39 | * Optional array mapping ASCII digits 0-9 to local digits. |
34 | 40 | */ |
35 | 41 | $digitTransformTable = null; |
Index: trunk/phase3/languages/messages/MessagesDe.php |
— | — | @@ -34,6 +34,8 @@ |
35 | 35 | * @author לערי ריינהארט |
36 | 36 | */ |
37 | 37 | |
| 38 | +$capitalizeAllNouns = true; |
| 39 | + |
38 | 40 | $namespaceNames = array( |
39 | 41 | NS_MEDIA => 'Media', |
40 | 42 | NS_SPECIAL => 'Spezial', |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | |
61 | 61 | static public $mLocalisationKeys = array( |
62 | 62 | 'fallback', 'namespaceNames', 'mathNames', 'bookstoreList', |
63 | | - 'magicWords', 'messages', 'rtl', 'digitTransformTable', |
| 63 | + 'magicWords', 'messages', 'rtl', 'capitalizeAllNouns', 'digitTransformTable', |
64 | 64 | 'separatorTransformTable', 'fallback8bitEncoding', 'linkPrefixExtension', |
65 | 65 | 'defaultUserOptionOverrides', 'linkTrail', 'namespaceAliases', |
66 | 66 | 'dateFormats', 'datePreferences', 'datePreferenceMigrationMap', |
— | — | @@ -1792,6 +1792,11 @@ |
1793 | 1793 | return $this->isRTL() ? "\xE2\x80\x8F" : "\xE2\x80\x8E"; |
1794 | 1794 | } |
1795 | 1795 | |
| 1796 | + function capitalizeAllNouns() { |
| 1797 | + $this->load(); |
| 1798 | + return $this->capitalizeAllNouns; |
| 1799 | + } |
| 1800 | + |
1796 | 1801 | /** |
1797 | 1802 | * An arrow, depending on the language direction |
1798 | 1803 | * |
— | — | @@ -2482,7 +2487,7 @@ |
2483 | 2488 | $cache = compact( self::$mLocalisationKeys ); |
2484 | 2489 | wfDebug( "Language::loadLocalisation(): got localisation for $code from source\n" ); |
2485 | 2490 | } |
2486 | | - |
| 2491 | + |
2487 | 2492 | # Load magic word source file |
2488 | 2493 | global $IP; |
2489 | 2494 | $filename = "$IP/includes/MagicWord.php"; |