diff -r ed4f3ee072be -r d0825e599853 includes/pageprocess.php
--- a/includes/pageprocess.php Tue Jan 22 00:22:14 2008 -0500
+++ b/includes/pageprocess.php Tue Jan 22 00:38:19 2008 -0500
@@ -1294,7 +1294,7 @@
$title = ( isset($page_data['name']) ) ? $page_data['name'] : $paths->nslist[$this->namespace] . htmlspecialchars( str_replace('_', ' ', dirtify_page_id( $this->page_id ) ) );
$b = '' . $title . '';
- $ob .= '(Redirected to ' . $b . ' from ' . $a . ')
';
+ $ob .= '' . $lang->get('page_msg_redirected_from_to', array('from' => $a, 'to' => $b)) . '
';
}
}
@@ -1318,12 +1318,15 @@
function err_wrong_password()
{
global $db, $session, $paths, $template, $plugins; // Common objects
+ global $lang;
$title = 'Password required';
- $message = ( empty($this->password) ) ? '
Access to this page requires a password. Please enter the password for this page below:
' : 'The password you entered for this page was incorrect. Please enter the password for this page below:
'; + $message = ( empty($this->password) ) ? + '' . $lang->get('page_msg_passrequired') . '
' : + '' . $lang->get('page_msg_pass_wrong') . '
'; $message .= ''; if ( $this->send_headers ) @@ -1373,6 +1376,7 @@ function err_page_not_existent($userpage = false) { global $db, $session, $paths, $template, $plugins; // Common objects + global $lang; header('HTTP/1.1 404 Not Found'); @@ -1389,22 +1393,28 @@ { if ( $userpage ) { - echo 'This user has not created his or her user page yet.'; + echo '
' . $lang->get('page_msg_404_body_userpage'); } else { - echo '
You have requested a page that doesn\'t exist yet.'; + echo '
' . $lang->get('page_msg_404_body'); } if ( $session->get_permissions('create_page') ) { - echo ' You can create this page, or return to the homepage.'; + echo ' ' . $lang->get('page_msg_404_create', array( + 'create_flags' => 'href="'.makeUrlNS($this->namespace, $this->page_id, 'do=edit', true).'" onclick="ajaxEditor(); return false;"', + 'mainpage_link' => makeUrl(getConfig('main_page'), false, true) + )); } else { - echo ' Return to the homepage.
'; + echo ' ' . $lang->get('page_msg_404_gohome', array( + 'mainpage_link' => makeUrl(getConfig('main_page'), false, true) + )); } + echo ''; if ( $session->get_permissions('history_rollback') ) { $e = $db->sql_query('SELECT * FROM ' . table_prefix . 'logs WHERE action=\'delete\' AND page_id=\'' . $this->page_id . '\' AND namespace=\'' . $this->namespace . '\' ORDER BY time_id DESC;'); @@ -1415,16 +1425,24 @@ if ( $db->numrows() > 0 ) { $r = $db->fetchrow(); - echo 'This page was deleted on ' . $r['date_string'] . '. The stated reason was:
' . $r['edit_summary'] . '
You can probably roll back the deletion.
'; + echo '' . $lang->get('page_msg_404_was_deleted', array( + 'delete_time' => enano_date('d M Y h:i a', $r['time_id']), + 'delete_reason' => htmlspecialchars($r['edit_summary']), + 'rollback_flags' => 'href="'.makeUrl($paths->page, 'do=rollback&id='.$r['time_id']).'" onclick="ajaxRollback(\''.$r['time_id'].'\'); return false;"' + )) + . '
'; if ( $session->user_level >= USER_LEVEL_ADMIN ) { - echo 'Additional admin options: detag page
'; + echo '' . $lang->get('page_msg_404_admin_opts', array( + 'detag_link' => makeUrl($paths->page, 'do=detag', true) + )) + . '
'; } } $db->free_result(); } echo '- HTTP Error: 404 Not Found + ' . $lang->get('page_msg_404_http_response') . '
'; } $this->footer(); @@ -1491,9 +1509,10 @@ function send_error($message, $sql = false) { global $db, $session, $paths, $template, $plugins; // Common objects + global $lang; $content = "$message
"; - $template->tpl_strings['PAGE_NAME'] = 'General error in page fetcher'; + $template->tpl_strings['PAGE_NAME'] = $lang->get('page_msg_general_error'); if ( $this->debug['works'] ) {