Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2167,6 +2167,7 @@ |
2168 | 2168 | 'unlockdbsuccesstext', |
2169 | 2169 | 'lockfilenotwritable', |
2170 | 2170 | 'databasenotlocked', |
| 2171 | + 'lockedbyandtime', |
2171 | 2172 | ), |
2172 | 2173 | 'movepage' => array( |
2173 | 2174 | 'move-page', |
Index: trunk/phase3/includes/specials/SpecialLockdb.php |
— | — | @@ -122,8 +122,13 @@ |
123 | 123 | return; |
124 | 124 | } |
125 | 125 | fwrite( $fp, $this->reason ); |
126 | | - fwrite( $fp, "\n<p>(by " . $wgUser->getName() . " at " . |
127 | | - $wgContLang->timeanddate( wfTimestampNow() ) . ")</p>\n" ); |
| 126 | + fwrite( $fp, "\n<p>" . wfMsgExt( |
| 127 | + 'lockedbyandtime', |
| 128 | + 'content', |
| 129 | + $wgUser->getName(), |
| 130 | + $wgContLang->date( wfTimestampNow() ), |
| 131 | + $wgContLang->time( wfTimestampNow() ) |
| 132 | + ) . "</p>\n" ); |
128 | 133 | fclose( $fp ); |
129 | 134 | |
130 | 135 | $wgOut->redirect( $this->getTitle()->getFullURL( 'action=success' ) ); |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3167,6 +3167,7 @@ |
3168 | 3168 | 'lockfilenotwritable' => 'The database lock file is not writable. |
3169 | 3169 | To lock or unlock the database, this needs to be writable by the web server.', |
3170 | 3170 | 'databasenotlocked' => 'The database is not locked.', |
| 3171 | +'lockedbyandtime' => '(by $1 on $2 at $3)', |
3171 | 3172 | |
3172 | 3173 | # Move page |
3173 | 3174 | 'move-page' => 'Move $1', |