Index: trunk/extensions/DSMW/DSMW.php |
— | — | @@ -86,7 +86,6 @@ |
87 | 87 | $wgAutoloadClasses['ApiPatchPush'] = "$wgDSMWIP/api/ApiPatchPush.php"; |
88 | 88 | $wgAutoloadClasses['utils'] = "$wgDSMWIP/files/utils.php"; |
89 | 89 | $wgAutoloadClasses['Math_BigInteger'] = "$wgDSMWIP/logootComponent/Math/BigInteger.php"; |
90 | | -$wgAutoloadClasses['DSMWDBHelpers'] = "$wgDSMWIP/db/DSMWDBHelpers.php"; |
91 | 90 | |
92 | 91 | //// / Register Jobs |
93 | 92 | $wgJobClasses['DSMWUpdateJob'] = 'DSMWUpdateJob'; |
Index: trunk/extensions/DSMW/specialPage/DSMWAdmin.php |
— | — | @@ -63,9 +63,9 @@ |
64 | 64 | $title = Title::makeTitle( NS_SPECIAL, 'DSMWAdmin' ); |
65 | 65 | $newjob = new DSMWUpdateJob( $title ); |
66 | 66 | $newjob->insert(); |
67 | | - $wgOut->addHTML( '<p><font color="red"><b>Articles update process started.</b></font></p>' ); |
| 67 | + $wgOut->addHTML( '<p><font color="red"><b>' . wfMsg( 'dsmw-special-admin-articleupstarted' ) . '</b></font></p>' ); |
68 | 68 | } else { |
69 | | - $wgOut->addHTML( '<p><font color="red"><b>Articles update process is already running.</b></font></p>' ); |
| 69 | + $wgOut->addHTML( '<p><font color="red"><b>' . wfMsg( 'dsmw-special-admin-articleuprunning' ) . '</b></font></p>' ); |
70 | 70 | } |
71 | 71 | |
72 | 72 | } |
— | — | @@ -75,34 +75,14 @@ |
76 | 76 | $title1 = Title::makeTitle( NS_SPECIAL, 'DSMWAdmin' ); |
77 | 77 | $newjob1 = new DSMWPropertyTypeJob( $title1 ); |
78 | 78 | $newjob1->insert(); |
79 | | - $wgOut->addHTML( '<p><font color="red"><b>Properties type update process started.</b></font></p>' ); |
| 79 | + $wgOut->addHTML( '<p><font color="red"><b>' . wfMsg( 'dsmw-special-admin-typeupstarted' ) . '</b></font></p>' ); |
80 | 80 | } else { |
81 | | - $wgOut->addHTML( '<p><font color="red"><b>Properties type update process is already running.</b></font></p>' ); |
| 81 | + $wgOut->addHTML( '<p><font color="red"><b>' . wfMsg( 'dsmw-special-admin-typeuprunning' ) . '</b></font></p>' ); |
82 | 82 | } |
83 | 83 | } |
84 | | - elseif ( $action == 'updatetables' ) { |
85 | 84 | |
86 | | - $wgOut->disable(); // raw output |
87 | | - ob_start(); |
88 | | - print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" dir=\"ltr\">\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>Setting up Storage for Distributed Semantic MediaWiki</title></head><body><p><pre>"; |
89 | | - header( "Content-type: text/html; charset=UTF-8" ); |
90 | | - $db =& wfGetDB( DB_MASTER ); |
91 | | - $result = DSMWDBHelpers::setup( $db ); |
92 | | - print '</pre></p>'; |
93 | | - if ( $result === true ) { |
94 | | - print '<p><b>The database was set up successfully.</b></p>'; |
95 | | - } |
96 | | - $returntitle = Title::makeTitle( NS_SPECIAL, 'DSMWAdmin' ); |
97 | | - print '<p> <a href="' . htmlspecialchars( $returntitle->getFullURL() ) . '">Special:DSMWAdmin</a></p>'; |
98 | | - print '</body></html>'; |
99 | | - ob_flush(); |
100 | | - flush(); |
101 | | - return; |
| 85 | + $wgOut->setPagetitle( 'DSMW Settings' ); |
102 | 86 | |
103 | | - } |
104 | | - |
105 | | - $wgOut->setPagetitle( "DSMW Settings" ); |
106 | | - |
107 | 87 | $wgOut->addHTML( |
108 | 88 | Html::element( |
109 | 89 | 'p', |
Index: trunk/extensions/DSMW/DSMW.i18n.php |
— | — | @@ -28,6 +28,10 @@ |
29 | 29 | 'dsmw-special-admin-uptext' => "For reasons of conflict management, DSMW works only with pages created after it's installation. |
30 | 30 | Therefore you need to update pages created before it's installation in order to edit them.", |
31 | 31 | 'dsmw-special-admin-upbutton' => 'Update pages', |
| 32 | + 'dsmw-special-admin-articleupstarted' => 'Articles update process started.', |
| 33 | + 'dsmw-special-admin-articleuprunning' => 'Articles update process is already running.', |
| 34 | + 'dsmw-special-admin-typeupstarted' => 'Properties update process started.', |
| 35 | + 'dsmw-special-admin-typeuprunning' => 'Properties update process is already running.', |
32 | 36 | ); |
33 | 37 | |
34 | 38 | /** German (Deutsch) |