Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -272,7 +272,6 @@ |
273 | 273 | } |
274 | 274 | |
275 | 275 | private static function editBoxes( $object ) { |
276 | | - wfLoadExtensionMessages( 'Translate' ); |
277 | 276 | global $wgTranslateDocumentationLanguageCode, $wgOut, $wgRequest; |
278 | 277 | |
279 | 278 | list( $key, $code, $group ) = self::getKeyCodeGroup( $object->mTitle ); |
Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -26,7 +26,11 @@ |
27 | 27 | if ( !isset( $cache[$message] ) ) { |
28 | 28 | $cache[$message] = $wgContLang->ucfirst( $message ); |
29 | 29 | } |
30 | | - return $cache[$message] . '/' . $code; |
| 30 | + if ( $code ) { |
| 31 | + return $cache[$message] . '/' . $code; |
| 32 | + } else { |
| 33 | + return $cache[$message]; |
| 34 | + } |
31 | 35 | } |
32 | 36 | |
33 | 37 | public static function figureMessage( $text ) { |