r50507 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50506‎ | r50507 | r50508 >
Date:07:29, 12 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Small bugfixes
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)
  • /trunk/extensions/Translate/tag/TPParse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/TPParse.php
@@ -109,6 +109,10 @@
110110 $text = str_replace( $ph, $s->getTextForTrans(), $text );
111111 } else {
112112 $sectiontext = $msg->translation();
 113+
 114+ // Ideally we should not have fuzzy here, but old texts do
 115+ $sectiontext = str_replace( TRANSLATE_FUZZY, '', $sectiontext );
 116+
113117 $vars = $s->getVariables();
114118 foreach ( $vars as $key => $value ) {
115119 $sectiontext = str_replace( $key, $value, $sectiontext );
Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -106,7 +106,6 @@
107107 static function addTools( $object ) {
108108 $object->editFormTextTop .= self::editBoxes( $object );
109109 global $wgMessageCache, $wgLang;
110 - $wgMessageCache->addMessage( 'savearticle', "Save as {$wgLang->getCode()}", $wgLang->getCode() );
111110 return true;
112111 }
113112

Status & tagging log