Index: trunk/phase3/includes/HTMLDiff.php |
— | — | @@ -1157,8 +1157,8 @@ |
1158 | 1158 | |
1159 | 1159 | public function getRemovedDescription(ChangeText $txt) { |
1160 | 1160 | $tagDescription = wfMsgExt('diff-' . $this->node->qName, 'parseinline' ); |
1161 | | - if(!$tagDescription){ |
1162 | | - $tagDescription = $this->node->qName; |
| 1161 | + if( wfEmptyMsg( 'diff-' . $this->node->qName, $tagDescription ) ){ |
| 1162 | + $tagDescription = "<" . $this->node->qName . ">"; |
1163 | 1163 | } |
1164 | 1164 | if ($this->sem == TagToStringFactory::MOVED) { |
1165 | 1165 | $txt->addHtml( wfMsgExt( 'diff-movedoutof', 'parseinline', $tagDescription ) ); |
— | — | @@ -1173,8 +1173,8 @@ |
1174 | 1174 | |
1175 | 1175 | public function getAddedDescription(ChangeText $txt) { |
1176 | 1176 | $tagDescription = wfMsgExt('diff-' . $this->node->qName, 'parseinline' ); |
1177 | | - if(!$tagDescription){ |
1178 | | - $tagDescription = $this->node->qName; |
| 1177 | + if( wfEmptyMsg( 'diff-' . $this->node->qName, $tagDescription ) ){ |
| 1178 | + $tagDescription = "<" . $this->node->qName . ">"; |
1179 | 1179 | } |
1180 | 1180 | if ($this->sem == TagToStringFactory::MOVED) { |
1181 | 1181 | $txt->addHtml( wfMsgExt( 'diff-movedto' , 'parseinline', $tagDescription) ); |
— | — | @@ -1218,7 +1218,7 @@ |
1219 | 1219 | protected function translateArgument($name) { |
1220 | 1220 | $translation = wfMsgExt('diff-' . $name, 'parseinline' ); |
1221 | 1221 | if ( wfEmptyMsg( 'diff-' . $name, $translation ) ) { |
1222 | | - $translation = $name; |
| 1222 | + $translation = "<" . $name . ">";; |
1223 | 1223 | } |
1224 | 1224 | return htmlspecialchars( $translation ); |
1225 | 1225 | } |
— | — | @@ -1232,8 +1232,8 @@ |
1233 | 1233 | |
1234 | 1234 | public function getAddedDescription(ChangeText $txt) { |
1235 | 1235 | $tagDescription = wfMsgExt('diff-' . $this->node->qName, 'parseinline' ); |
1236 | | - if(!$tagDescription){ |
1237 | | - $tagDescription = $this->node->qName; |
| 1236 | + if( wfEmptyMsg( 'diff-' . $this->node->qName, $tagDescription ) ){ |
| 1237 | + $tagDescription = "<" . $this->node->qName . ">"; |
1238 | 1238 | } |
1239 | 1239 | $txt->addHtml( wfMsgExt('diff-changedto', 'parseinline' ) . ' ' . $tagDescription); |
1240 | 1240 | $this->addAttributes($txt, $this->node->attributes); |