1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-15 03:55:23 +02:00

Language updates

git-svn-id: file:///svn/phpbb/trunk@1307 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-11-13 17:36:27 +00:00
parent 9d43df0d53
commit 59f3ef2ffe
2 changed files with 55 additions and 47 deletions

View File

@ -39,7 +39,7 @@ include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
// //
if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) ) if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) )
{ {
$forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? $HTTP_POST_VARS[POST_FORUM_URL] : $HTTP_GET_VARS[POST_FORUM_URL]; $forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? intval($HTTP_POST_VARS[POST_FORUM_URL]) : intval($HTTP_GET_VARS[POST_FORUM_URL]);
} }
else else
{ {
@ -48,7 +48,7 @@ else
if( isset($HTTP_GET_VARS[POST_POST_URL]) || isset($HTTP_POST_VARS[POST_POST_URL]) ) if( isset($HTTP_GET_VARS[POST_POST_URL]) || isset($HTTP_POST_VARS[POST_POST_URL]) )
{ {
$post_id = (isset($HTTP_POST_VARS[POST_POST_URL])) ? $HTTP_POST_VARS[POST_POST_URL] : $HTTP_GET_VARS[POST_POST_URL]; $post_id = (isset($HTTP_POST_VARS[POST_POST_URL])) ? intval($HTTP_POST_VARS[POST_POST_URL]) : intval($HTTP_GET_VARS[POST_POST_URL]);
} }
else else
{ {
@ -57,15 +57,15 @@ else
if( isset($HTTP_GET_VARS[POST_TOPIC_URL]) || isset($HTTP_POST_VARS[POST_TOPIC_URL]) ) if( isset($HTTP_GET_VARS[POST_TOPIC_URL]) || isset($HTTP_POST_VARS[POST_TOPIC_URL]) )
{ {
$topic_id = (isset($HTTP_POST_VARS[POST_TOPIC_URL])) ? $HTTP_POST_VARS[POST_TOPIC_URL] : $HTTP_GET_VARS[POST_TOPIC_URL]; $topic_id = (isset($HTTP_POST_VARS[POST_TOPIC_URL])) ? intval($HTTP_POST_VARS[POST_TOPIC_URL]) : intval($HTTP_GET_VARS[POST_TOPIC_URL]);
} }
else else
{ {
$topic_id = ""; $topic_id = "";
} }
$confirm = ( $HTTP_POST_VARS['confirm'] ) ? TRUE : FALSE; $confirm = ( $HTTP_POST_VARS['confirm'] ) ? TRUE : 0;
$cancel = ( $HTTP_POST_VARS['cancel'] ) ? TRUE : FALSE; $cancel = ( $HTTP_POST_VARS['cancel'] ) ? TRUE : 0;
// //
// Check if user did or did not confirm // Check if user did or did not confirm
@ -319,17 +319,20 @@ switch($mode)
if( !empty($topic_id) ) if( !empty($topic_id) )
{ {
$next_page = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"; $redirect_page = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$return_message = $lang['to_return_forum']; $l_redirect = sprintf($lang['Click_return_forum'], "<a href=\"$redirect_page\">", "</a>");
} }
else else
{ {
$next_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id"; $redirect_page = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$return_message = $lang['Return_to_modcp']; $l_redirect = sprintf($lang['Click_return_modcp'], "<a href=\"$redirect_page\">", "</a>");
} }
$message = $lang['Topics_Removed'] . "<br /><br />" . $lang['Click'] . " <a href=\"" . append_sid($next_page) . "\">" . $lang['HERE'] . "</a> " . $return_message; $template->assign_vars(array(
message_die(GENERAL_MESSAGE, $message); "META" => '<meta http-equiv="refresh" content="3;url=' . $redirect_page . '">')
);
message_die(GENERAL_MESSAGE, $lang['Topics_Removed'] . "<br /><br />" . $l_redirect);
} }
else else
{ {
@ -439,18 +442,20 @@ switch($mode)
if( !empty($topic_id) ) if( !empty($topic_id) )
{ {
$next_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; $redirect_page = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");
$return_message = $lang['to_return_topic']; $message = sprintf($lang['Click_return_topic'], "<a href=\"$redirect_page\">", "</a>");
} }
else else
{ {
$next_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$old_forum_id"; $redirect_page = append_sid("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$return_message = $lang['Return_to_modcp']; $message = sprintf($lang['Click_return_modcp'], "<a href=\"$redirect_page\">", "</a>");
} }
$message = $lang['Topics_Moved'] . "<br /><br />" . $lang['Click'] . " <a href=\"" . append_sid($next_page) . "\">" . $lang['HERE'] . "</a> " . $return_message; $template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="3;url=' . $redirect_page . '">')
);
message_die(GENERAL_MESSAGE, $message); message_die(GENERAL_MESSAGE, $lang['Topics_Moved'] . "<br /><br />" . $message);
} }
else else
{ {
@ -464,9 +469,10 @@ switch($mode)
if( isset($HTTP_POST_VARS['topic_id_list']) ) if( isset($HTTP_POST_VARS['topic_id_list']) )
{ {
$topics = $HTTP_POST_VARS['topic_id_list']; $topics = $HTTP_POST_VARS['topic_id_list'];
for($i = 0; $i < count($topics); $i++) for($i = 0; $i < count($topics); $i++)
{ {
$hidden_fields .= '<input type="hidden" name="topic_id_list[]" value="' . $topics[$i] . '">'; $hidden_fields .= '<input type="hidden" name="topic_id_list[]" value="' . intval($topics[$i]) . '">';
} }
} }
else else
@ -525,18 +531,20 @@ switch($mode)
if( !empty($topic_id) ) if( !empty($topic_id) )
{ {
$next_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; $redirect_page = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");
$return_message = $lang['to_return_topic']; $message = sprintf($lang['Click_return_topic'], "<a href=\"$redirect_page\">", "</a>");
} }
else else
{ {
$next_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id"; $redirect_page = append_sid("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$return_message = $lang['Return_to_modcp']; $message = sprintf($lang['Click_return_modcp'], "<a href=\"$redirect_page\">", "</a>");
} }
$message = $lang['Topics_Locked'] . "<br /><br />" . $lang['Click'] . " <a href=\"" . append_sid($next_page)."\">" . $lang['HERE'] . "</a> " . $return_message; $template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="3;url=' . $redirect_page . '">')
);
message_die(GENERAL_MESSAGE, $message); message_die(GENERAL_MESSAGE, $lang['Topics_Locked'] . "<br /><br />" . $message);
} }
else else
{ {
@ -609,18 +617,21 @@ switch($mode)
if( !empty($topic_id) ) if( !empty($topic_id) )
{ {
$next_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; $redirect_page = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id");
$return_message = $lang['to_return_topic']; $message = sprintf($lang['Click_return_topic'], "<a href=\"$redirect_page\">", "</a>");
} }
else else
{ {
$next_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id"; $redirect_page = append_sid("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$return_message = $lang['Return_to_modcp']; $message = sprintf($lang['Click_return_modcp'], "<a href=\"$redirect_page\">", "</a>");
} }
$msg = $lang['Topics_Unlocked'] . "<br /><br />" . $lang['Click'] . " <a href=\"" . append_sid($next_page) . "\">" . $lang['HERE'] . "</a> " . $return_message; $template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="3;url=' . $redirect_page . '">')
);
message_die(GENERAL_MESSAGE, $lang['Topics_Unlocked'] . "<br /><br />" . $message);
message_die(GENERAL_MESSAGE, $msg);
} }
else else
{ {
@ -738,7 +749,11 @@ switch($mode)
sync("topic", $topic_id); sync("topic", $topic_id);
sync("forum", $forum_id); sync("forum", $forum_id);
$message = $lang['Topic_split'] . "<br /><br />" . $lang['Click'] . " <a href=\"" . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$new_topic_id") . "\">" . $lang['Here'] . "</a> " . $lang['to_return_topic']; $template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">')
);
$message = $lang['Topic_split'] . sprintf($lang['Click_return_topic'], "<a href=\"" . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message); message_die(GENERAL_MESSAGE, $message);
} }
else else
@ -965,7 +980,7 @@ switch($mode)
"ROW_CLASS" => $row_class, "ROW_CLASS" => $row_class,
"U_PROFILE" => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$id"), "U_PROFILE" => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$id"),
"U_SEARCHPOSTS" => append_sid("search.$phpEx?a=" . urlencode($username) . "&amp;f=all&amp;b=0&amp;d=DESC&amp;c=100&amp;dosearch=1")) "U_SEARCHPOSTS" => append_sid("search.$phpEx?search_author=" . urlencode($username) . "&amp;showresults=topics"))
); );
} }
@ -1087,17 +1102,11 @@ switch($mode)
); );
} }
$pagination = generate_pagination("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id", $forum_topics, $board_config['topics_per_page'], $start);
$template->assign_vars(array( $template->assign_vars(array(
"PAGINATION" => $pagination, "PAGINATION" => generate_pagination("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id", $forum_topics, $board_config['topics_per_page'], $start),
"FORUM_ID" => $forum_id,
"POST_FORUM_URL" => POST_FORUM_URL, "PAGE_NUMBER" => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $forum_topics / $board_config['topics_per_page'] )),
"ON_PAGE" => (floor($start/$board_config['topics_per_page'])+1),
"TOTAL_PAGES" => ceil($forum_topics/$board_config['topics_per_page']),
"L_OF" => $lang['of'],
"L_PAGE" => $lang['Page'],
"L_GOTO_PAGE" => $lang['Goto_page']) "L_GOTO_PAGE" => $lang['Goto_page'])
); );

View File

@ -1,10 +1,11 @@
<form method="post" action="{S_MODCP_ACTION}">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr> <tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{SITENAME}&nbsp;{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td> <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{SITENAME}&nbsp;{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
</tr> </tr>
</table> </table>
<form method="post" action="{S_MODCP_ACTION}">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline">
<tr> <tr>
<td class="catHead" colspan="5" align="center" height="28"><span class="cattitle">{L_MOD_CP}</span> <td class="catHead" colspan="5" align="center" height="28"><span class="cattitle">{L_MOD_CP}</span>
@ -45,10 +46,8 @@
</table> </table>
<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr> <tr>
<td align="left" valign="middle"><span class="nav">{L_PAGE} <b>{ON_PAGE}</b> {L_OF} <b>{TOTAL_PAGES}</b></span></td> <td align="left" valign="middle"><span class="nav">{PAGE_NUMBER}</b></span></td>
<td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span> <td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td>
<span class="gensmall"><br />
{S_TIMEZONE}</span></td>
</tr> </tr>
</table> </table>
</form> </form>