Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -96,6 +96,8 @@ |
97 | 97 | |
98 | 98 | $source = $page->getTitle(); |
99 | 99 | $target = Title::makeTitle( $source->getNamespace(), $source->getDBkey() . "/$code" ); |
| 100 | + |
| 101 | + // FIXME: if $taget->exists() is false, all sister articles should be purged. |
100 | 102 | $flags &= ~EDIT_NEW & ~EDIT_UPDATE; // We don't know |
101 | 103 | |
102 | 104 | $job = RenderJob::newJob( $target ); |
— | — | @@ -135,6 +137,8 @@ |
136 | 138 | return true; |
137 | 139 | } |
138 | 140 | |
| 141 | + |
| 142 | + |
139 | 143 | public static function languages( $data, $params, $parser ) { |
140 | 144 | $title = $parser->getTitle(); |
141 | 145 | |
— | — | @@ -145,7 +149,6 @@ |
146 | 150 | } |
147 | 151 | if ( $page === false || $page->getMarkedTag() === false ) return ''; |
148 | 152 | |
149 | | - |
150 | 153 | $status = $page->getTranslationPercentages(); |
151 | 154 | if ( !$status ) return ''; |
152 | 155 | |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
14 | 14 | */ |
15 | 15 | |
16 | | -define( 'TRANSLATE_VERSION', '2009-08-03' ); |
| 16 | +define( 'TRANSLATE_VERSION', '2009-11-13' ); |
17 | 17 | |
18 | 18 | $wgExtensionCredits['specialpage'][] = array( |
19 | 19 | 'path' => __FILE__, |