1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

ability to translate error messages

This commit is contained in:
Savetheinternet 2011-12-02 19:42:51 +11:00
parent c1be29ce35
commit 3979d9a740

View File

@ -79,13 +79,13 @@
'config'=>$config, 'config'=>$config,
'title'=>'Error', 'title'=>'Error',
'subtitle'=>'An error has occured.', 'subtitle'=>'An error has occured.',
'body'=>"<center>" . 'body'=>'<center>' .
"<h2>$message</h2>" . '<h2>' . _($message) . '</h2>' .
(isset($board) ? (isset($board) ?
"<p><a href=\"" . $config['root'] . "<p><a href=\"" . $config['root'] .
($mod ? $config['file_mod'] . '?/' : '') . ($mod ? $config['file_mod'] . '?/' : '') .
$board['dir'] . $config['file_index'] . "\">Go back</a>.</p>" : ''). $board['dir'] . $config['file_index'] . "\">Go back</a>.</p>" : '') .
"</center>" '</center>'
))); )));
} }