Index: trunk/extensions/Translate/README |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | * Preserve whitespace also in Special:Translate table |
23 | 23 | * Run checks on editing view (current translation or submitted translation in preview) and display them to user |
24 | 24 | * Fixed a bug where empty text area would be filled with current translation even after first page load |
| 25 | +* Don't fuzzy Documentation language |
25 | 26 | |
26 | 27 | == Changes in version 7 == |
27 | 28 | * Released 2007-12-29 |
Index: trunk/extensions/Translate/fuzzy.php |
— | — | @@ -1,5 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Command line script to mark translations fuzzy (similar to gettext fuzzy). |
| 6 | + * |
| 7 | + * @addtogroup Extensions |
| 8 | + * |
| 9 | + * @author Niklas Laxström |
| 10 | + * @copyright Copyright © 2007-2008, Niklas Laxström |
| 11 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 12 | + */ |
| 13 | + |
| 14 | + |
4 | 15 | $IP = "../../maintenance/"; |
5 | 16 | require_once( $IP . 'commandLine.inc' ); |
6 | 17 | |
— | — | @@ -95,7 +106,7 @@ |
96 | 107 | } |
97 | 108 | |
98 | 109 | private function updateMessage( $title, $text ) { |
99 | | - global $wgTitle, $wgArticle; |
| 110 | + global $wgTitle, $wgArticle, $wgTranslateDocumentationLanguageCode; |
100 | 111 | $wgTitle = Title::newFromText( "Mediawiki:$title" ); |
101 | 112 | |
102 | 113 | echo "Updating {$wgTitle->getPrefixedText()}... "; |
— | — | @@ -104,6 +115,12 @@ |
105 | 116 | return; |
106 | 117 | } |
107 | 118 | |
| 119 | + $items = explode( '/', $wgTitle->getText(), 2 ); |
| 120 | + if ( isset( $items[1] ) && $items[1] === $wgTranslateDocumentationLanguageCode ) { |
| 121 | + echo "IGNORED!\n"; |
| 122 | + return; |
| 123 | + } |
| 124 | + |
108 | 125 | if ( $this->dryrun ) { |
109 | 126 | echo "DRY RUN!\n"; |
110 | 127 | return; |