Index: trunk/extensions/LiveTranslate/LiveTranslate_Settings.php |
— | — | @@ -32,7 +32,3 @@ |
33 | 33 | # Default translation memory type. |
34 | 34 | # TMT_LTF, TMT_TMX, TMT_GCSV |
35 | 35 | $egLiveTranslateTMT = TMT_LTF; |
36 | | - |
37 | | -# The name of the page on which the special words translations dirctionary is defined. |
38 | | -# NOTICE: This is only used for the initial setup. Use Special:LiveTranslate to modify after installation. |
39 | | -$egLiveTranslateDirPage = 'Live Translate Dictionary'; |
Index: trunk/extensions/LiveTranslate/LiveTranslate.hooks.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | * @return true |
26 | 26 | */ |
27 | 27 | public static function onArticleViewHeader( Article &$article, &$outputDone, &$useParserCache ) { |
28 | | - global $wgOut, $wgLang, $egLiveTranslateDirPage, $egGoogleApiKey, $egLiveTranslateLanguages; |
| 28 | + global $wgOut, $wgLang, $egGoogleApiKey, $egLiveTranslateLanguages; |
29 | 29 | |
30 | 30 | $title = $article->getTitle(); |
31 | 31 | |
— | — | @@ -210,8 +210,6 @@ |
211 | 211 | public static function onArticleSaveComplete( &$article, &$user, $text, $summary, |
212 | 212 | $minoredit, $watchthis, $sectionanchor, &$flags, $revision, &$status, $baseRevId, &$redirect = null ) { |
213 | 213 | |
214 | | - global $egLiveTranslateDirPage; |
215 | | - |
216 | 214 | $title = $article->getTitle(); |
217 | 215 | |
218 | 216 | // FIXME: Hitting the db on every page save should be avoided |