Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -231,8 +231,15 @@ |
232 | 232 | private static function figureMessage( Title $title ) { |
233 | 233 | $text = $title->getDBkey(); |
234 | 234 | $pos = strrpos( $text, '/' ); |
235 | | - $code = substr( $text, $pos + 1 ); |
236 | | - $key = substr( $text, 0, $pos ); |
| 235 | + { |
| 236 | + $code = ''; |
| 237 | + $key = $text; |
| 238 | + } |
| 239 | + else |
| 240 | + { |
| 241 | + $code = substr( $text, $pos + 1 ); |
| 242 | + $key = substr( $text, 0, $pos ); |
| 243 | + } |
237 | 244 | return array( $key, $code ); |
238 | 245 | } |
239 | 246 | |
— | — | @@ -243,7 +250,7 @@ |
244 | 251 | } |
245 | 252 | |
246 | 253 | /** |
247 | | - * Tries to determine from which group this message belongs. It tries to get |
| 254 | + * Tries to determine to which group this message belongs. It tries to get |
248 | 255 | * group id from loadgroup GET-paramater, but fallbacks to messageIndex file |
249 | 256 | * if no valid group was provided, or the group provided is a meta group. |
250 | 257 | * @param $key The message key we are interested in. |