Index: trunk/extensions/Translate/scripts/autoexport.php |
— | — | @@ -85,9 +85,10 @@ |
86 | 86 | $group = false; |
87 | 87 | $code = false; |
88 | 88 | |
| 89 | + // TODO: fixme |
89 | 90 | list( $pieces, ) = explode( '/', $wgContLang->lcfirst( $row->rc_title ), 2 ); |
90 | 91 | |
91 | | - $mg = TranslateUtils::messageKeyToGroup( $row->rc_namespace . ':' . $pieces ); |
| 92 | + $mg = TranslateUtils::messageKeyToGroup( $row->rc_namespace, $pieces ); |
92 | 93 | if ( !is_null( $mg ) ) $group = $mg; |
93 | 94 | |
94 | 95 | if ( strpos( $row->rc_title, '/' ) !== false ) { |
Index: trunk/extensions/Translate/SpecialTranslationChanges.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | list( $pieces, ) = explode( '/', $wgContLang->lcfirst( $row->rc_title ), 2 ); |
68 | 68 | |
69 | 69 | $group = 'Unknown'; |
70 | | - $mg = TranslateUtils::messageKeyToGroup( $row->rc_namespace . ':' . $pieces ); |
| 70 | + $mg = TranslateUtils::messageKeyToGroup( $row->rc_namespace, ':' . $pieces ); |
71 | 71 | if ( !is_null( $mg ) ) $group = $mg; |
72 | 72 | |
73 | 73 | $lang = 'site'; |
Index: trunk/extensions/Translate/utils/MessageIndex.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | |
44 | 44 | foreach ( $groups as $g ) { |
45 | 45 | # the cache is split per namespace for efficieny |
46 | | - if ( $namespace !== null && $g->namespaces[0] !== $namespace ) |
| 46 | + if ( $namespace !== null && $g->getNamespace() !== $namespace ) |
47 | 47 | continue; |
48 | 48 | |
49 | 49 | # Skip meta thingies |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | |
76 | 76 | STDOUT( "$id ", 'main' ); |
77 | 77 | |
78 | | - $namespace = $g->namespaces[0]; |
| 78 | + $namespace = $g->getNamespace(); |
79 | 79 | |
80 | 80 | foreach ( $messages as $key => $data ) { |
81 | 81 | # Force all keys to lower case, because the case doesn't matter and it is |