Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -968,7 +968,7 @@ |
969 | 969 | $mkey = $row->rc_namespace . ':' . $handle->getKey(); |
970 | 970 | if ( !isset( $defs[$mkey] ) ) { |
971 | 971 | $group = $handle->getGroup(); |
972 | | - $defs[$mkey] = $group->getMessage( $handle->getKey(), $this->getSourceLanguage() ); |
| 972 | + $defs[$mkey] = $group->getMessage( $handle->getKey(), $group->getSourceLanguage() ); |
973 | 973 | } |
974 | 974 | } |
975 | 975 | return $defs; |
— | — | @@ -981,11 +981,11 @@ |
982 | 982 | /** |
983 | 983 | * Subpage language of any in the title is not used. |
984 | 984 | */ |
985 | | - public function getMessageContent( MessageHandle $handle, $code ) { |
| 985 | + public function getMessageContent( MessageHandle $handle ) { |
986 | 986 | $groupId = MessageIndex::getPrimaryGroupId( $handle ); |
987 | 987 | $group = MessageGroups::getGroup( $groupId ); |
988 | 988 | if ( $group ) { |
989 | | - return $group->getMessage( $handle->getKey(), $code ); |
| 989 | + return $group->getMessage( $handle->getKey(), $group->getSourceLanguage() ); |
990 | 990 | } |
991 | 991 | } |
992 | 992 | } |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | $this->mustBeKnownMessage(); |
110 | 110 | |
111 | 111 | if ( method_exists( $this->group, 'getMessageContent' ) ) { |
112 | | - $this->definition = $this->group->getMessageContent( $this->handle, $this->group->getSourceLanguage() ); |
| 112 | + $this->definition = $this->group->getMessageContent( $this->handle ); |
113 | 113 | } else { |
114 | 114 | $this->definition = $this->group->getMessage( $this->handle->getKey(), $this->group->getSourceLanguage() ); |
115 | 115 | } |