Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -889,6 +889,47 @@ |
890 | 890 | z-index: 3; |
891 | 891 | } |
892 | 892 | |
| 893 | +/* Override text-transform on languages where capitalization is significant */ |
| 894 | +.portlet h5[lang|=bar], |
| 895 | +.portlet h6[lang|=bar], |
| 896 | +#p-personal ul[lang|=bar], |
| 897 | +#p-cactions ul[lang|=bar] li a, |
| 898 | +.portlet h5[lang|=de], |
| 899 | +.portlet h6[lang|=de], |
| 900 | +#p-personal ul[lang|=de], |
| 901 | +#p-cactions ul[lang|=de] li a, |
| 902 | +.portlet h5[lang|=gsw], |
| 903 | +.portlet h6[lang|=gsw], |
| 904 | +#p-personal ul[lang|=gsw], |
| 905 | +#p-cactions ul[lang|=gsw] li a, |
| 906 | +.portlet h5[lang|=ksh], |
| 907 | +.portlet h6[lang|=ksh], |
| 908 | +#p-personal ul[lang|=ksh], |
| 909 | +#p-cactions ul[lang|=ksh] li a, |
| 910 | +.portlet h5[lang|=lb], |
| 911 | +.portlet h6[lang|=lb], |
| 912 | +#p-personal ul[lang|=lb], |
| 913 | +#p-cactions ul[lang|=lb] li a, |
| 914 | +.portlet h5[lang|=nds], |
| 915 | +.portlet h6[lang|=nds], |
| 916 | +#p-personal ul[lang|=nds], |
| 917 | +#p-cactions ul[lang|=nds] li a, |
| 918 | +.portlet h5[lang|=pdc], |
| 919 | +.portlet h6[lang|=pdc], |
| 920 | +#p-personal ul[lang|=pdc], |
| 921 | +#p-cactions ul[lang|=pdc] li a, |
| 922 | +.portlet h5[lang|=pdt], |
| 923 | +.portlet h6[lang|=pdt], |
| 924 | +#p-personal ul[lang|=pdt], |
| 925 | +#p-cactions ul[lang|=pdt] li a |
| 926 | +.portlet h5[lang|=pfl], |
| 927 | +.portlet h6[lang|=pfl], |
| 928 | +#p-personal ul[lang|=pfl], |
| 929 | +#p-cactions ul[lang|=pfl] li a { |
| 930 | + text-transform: none; |
| 931 | +} |
| 932 | + |
| 933 | + |
893 | 934 | /* TODO: #t-iscite is only used by the Cite extension, come up with some |
894 | 935 | * system which allows extensions to add to this file on the fly |
895 | 936 | */ |
Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -64,7 +64,9 @@ |
65 | 65 | * @access private |
66 | 66 | */ |
67 | 67 | function execute() { |
| 68 | + global $wgLang; |
68 | 69 | global $wgRequest; |
| 70 | + $wgLangCode = $wgLang->getCode(); |
69 | 71 | $this->skin = $skin = $this->data['skin']; |
70 | 72 | $action = $wgRequest->getText( 'action' ); |
71 | 73 | |
— | — | @@ -135,14 +137,14 @@ |
136 | 138 | <div id="p-cactions" class="portlet"> |
137 | 139 | <h5><?php $this->msg('views') ?></h5> |
138 | 140 | <div class="pBody"> |
139 | | - <ul> |
| 141 | + <ul lang="<?php echo $wgLangCode; ?>" xml:lang="<?php echo $wgLangCode; ?>"> |
140 | 142 | <?php foreach($this->data['content_actions'] as $key => $tab) { |
141 | 143 | echo ' |
142 | 144 | <li id="' . Sanitizer::escapeId( "ca-$key" ) . '"'; |
143 | 145 | if( $tab['class'] ) { |
144 | 146 | echo ' class="'.htmlspecialchars($tab['class']).'"'; |
145 | 147 | } |
146 | | - echo'><a href="'.htmlspecialchars($tab['href']).'"'; |
| 148 | + echo '><a href="'.htmlspecialchars($tab['href']).'"'; |
147 | 149 | # We don't want to give the watch tab an accesskey if the |
148 | 150 | # page is being edited, because that conflicts with the |
149 | 151 | # accesskey on the watch checkbox. We also don't want to |
— | — | @@ -163,7 +165,7 @@ |
164 | 166 | <div class="portlet" id="p-personal"> |
165 | 167 | <h5><?php $this->msg('personaltools') ?></h5> |
166 | 168 | <div class="pBody"> |
167 | | - <ul> |
| 169 | + <ul lang="<?php echo $wgLangCode; ?>" xml:lang="<?php echo $wgLangCode; ?>"> |
168 | 170 | <?php foreach($this->data['personal_urls'] as $key => $item) { ?> |
169 | 171 | <li id="<?php echo Sanitizer::escapeId( "pt-$key" ) ?>"<?php |
170 | 172 | if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php |
— | — | @@ -249,10 +251,12 @@ |
250 | 252 | |
251 | 253 | /*************************************************************************************************/ |
252 | 254 | function searchBox() { |
| 255 | + global $wgLang; |
253 | 256 | global $wgUseTwoButtonsSearchForm; |
| 257 | + $wgLangCode = $wgLang->getCode(); |
254 | 258 | ?> |
255 | 259 | <div id="p-search" class="portlet"> |
256 | | - <h5><label for="searchInput"><?php $this->msg('search') ?></label></h5> |
| 260 | + <h5 lang="<?php echo $wgLangCode; ?>" xml:lang="<?php echo $wgLangCode; ?>"><label for="searchInput"><?php $this->msg('search') ?></label></h5> |
257 | 261 | <div id="searchBody" class="pBody"> |
258 | 262 | <form action="<?php $this->text('wgScript') ?>" id="searchform"><div> |
259 | 263 | <input type='hidden' name="title" value="<?php $this->text('searchtitle') ?>"/> |
— | — | @@ -272,9 +276,11 @@ |
273 | 277 | |
274 | 278 | /*************************************************************************************************/ |
275 | 279 | function toolbox() { |
| 280 | + global $wgLang; |
| 281 | + $wgLangCode = $wgLang->getCode(); |
276 | 282 | ?> |
277 | 283 | <div class="portlet" id="p-tb"> |
278 | | - <h5><?php $this->msg('toolbox') ?></h5> |
| 284 | + <h5 lang="<?php echo $wgLangCode; ?>" xml:lang="<?php echo $wgLangCode; ?>"><?php $this->msg('toolbox') ?></h5> |
279 | 285 | <div class="pBody"> |
280 | 286 | <ul> |
281 | 287 | <?php |
— | — | @@ -332,10 +338,12 @@ |
333 | 339 | |
334 | 340 | /*************************************************************************************************/ |
335 | 341 | function languageBox() { |
| 342 | + global $wgLang; |
| 343 | + $wgLangCode = $wgLangCode; |
336 | 344 | if( $this->data['language_urls'] ) { |
337 | 345 | ?> |
338 | 346 | <div id="p-lang" class="portlet"> |
339 | | - <h5><?php $this->msg('otherlanguages') ?></h5> |
| 347 | + <h5 lang="<?php echo $wgLangCode; ?>" xml:lang="<?php echo $wgLangCode; ?>"><?php $this->msg('otherlanguages') ?></h5> |
340 | 348 | <div class="pBody"> |
341 | 349 | <ul> |
342 | 350 | <?php foreach($this->data['language_urls'] as $langlink) { ?> |
— | — | @@ -351,9 +359,11 @@ |
352 | 360 | |
353 | 361 | /*************************************************************************************************/ |
354 | 362 | function customBox( $bar, $cont ) { |
| 363 | + global $wgLang; |
| 364 | + $wgLangCode = $wgLang->getCode(); |
355 | 365 | ?> |
356 | 366 | <div class='generated-sidebar portlet' id='<?php echo Sanitizer::escapeId( "p-$bar" ) ?>'<?php echo $this->skin->tooltip('p-'.$bar) ?>> |
357 | | - <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5> |
| 367 | + <h5 lang="<?php echo $wgLangCode; ?>" xml:lang="<?php echo $wgLangCode; ?>"><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo htmlspecialchars($bar); else echo htmlspecialchars($out); ?></h5> |
358 | 368 | <div class='pBody'> |
359 | 369 | <?php if ( is_array( $cont ) ) { ?> |
360 | 370 | <ul> |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1870,8 +1870,7 @@ |
1871 | 1871 | if( strpos( $line, '*' ) !== 0 ) |
1872 | 1872 | continue; |
1873 | 1873 | if( strpos( $line, '**') !== 0 ) { |
1874 | | - $line = trim( $line, '* ' ); |
1875 | | - $heading = $line; |
| 1874 | + $heading = trim( $line, '* ' ); |
1876 | 1875 | if( !array_key_exists( $heading, $bar ) ) $bar[$heading] = array(); |
1877 | 1876 | } else { |
1878 | 1877 | if( strpos( $line, '|' ) !== false ) { // sanity check |
— | — | @@ -1912,4 +1911,4 @@ |
1913 | 1912 | wfProfileOut( __METHOD__ ); |
1914 | 1913 | return $bar; |
1915 | 1914 | } |
1916 | | -} |
\ No newline at end of file |
| 1915 | +} |
Index: trunk/phase3/languages/messages/MessagesDe.php |
— | — | @@ -2591,14 +2591,7 @@ |
2592 | 2592 | 'standard.css' => '/* CSS an dieser Stelle wirkt sich auf den Klassik-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
2593 | 2593 | 'nostalgia.css' => '/* CSS an dieser Stelle wirkt sich auf den Nostalgie-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
2594 | 2594 | 'cologneblue.css' => '/* CSS an dieser Stelle wirkt sich auf den Kölnisch-Blau-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
2595 | | -'monobook.css' => '/* CSS an dieser Stelle wirkt sich auf den Monobook-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */ |
2596 | | -/* Kleinschreibung nicht erzwingen */ |
2597 | | -.portlet h5, |
2598 | | -.portlet h6, |
2599 | | -#p-personal ul, |
2600 | | -#p-cactions li a { |
2601 | | - text-transform: none; |
2602 | | -}', |
| 2595 | +'monobook.css' => '/* CSS an dieser Stelle wirkt sich auf den Monobook-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
2603 | 2596 | 'myskin.css' => '/* CSS an dieser Stelle wirkt sich auf den MySkin-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
2604 | 2597 | 'chick.css' => '/* CSS an dieser Stelle wirkt sich auf den Küken-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
2605 | 2598 | 'simple.css' => '/* CSS an dieser Stelle wirkt sich auf den Einfach-Skin aus. Für allgemeingültige Skin-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -333,6 +333,7 @@ |
334 | 334 | * (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate |
335 | 335 | * (bug 18377) Time in Enhanced ChangesList lacking localisation |
336 | 336 | * (bug 12998) Allow <sup>, <sub>, etc. in DISPLAYTITLE |
| 337 | +* (bug 1553) Lowercase navigation headings in German |
337 | 338 | |
338 | 339 | == API changes in 1.15 == |
339 | 340 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |