From 83c605a6e222c9d64659c3037f4dddca4fe59c05 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Mon, 17 Feb 2003 06:20:41 +0000 Subject: More capitalised lang strings, fixed some unset or incorrect variables git-svn-id: file:///svn/phpbb/trunk@3469 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'phpBB/includes/functions_display.php') diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index a9a97af31c..cb021f0137 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -156,22 +156,22 @@ function display_forums($root_data = '', $display_moderators = TRUE) $unread_topics = ($user->data['user_id'] && $row['lastread_time'] < $row['forum_last_post_time'] ) ? TRUE : FALSE; $folder_image = ($unread_topics) ? 'forum_new' : 'forum'; - $folder_alt = ($unread_topics) ? 'New_posts' : 'No_new_posts'; + $folder_alt = ($unread_topics) ? 'NEW_POSTS' : 'NO_NEW_POSTS'; if ($row['left_id'] + 1 < $row['right_id']) { $folder_image = ($unread_topics) ? 'sub_forum_new' : 'sub_forum'; - $folder_alt = ($unread_topics) ? 'New_posts' : 'No_new_posts'; + $folder_alt = ($unread_topics) ? 'NEW_POSTS' : 'NO_NEW_POSTS'; } elseif ($row['forum_status'] == ITEM_LOCKED) { $folder_image = 'forum_locked'; - $folder_alt = 'Forum_locked'; + $folder_alt = 'FORUM_LOCKED'; } else { $folder_image = ($unread_topics) ? 'forum_new' : 'forum'; - $folder_alt = ($unread_topics) ? 'New_posts' : 'No_new_posts'; + $folder_alt = ($unread_topics) ? 'NEW_POSTS' : 'NO_NEW_POSTS'; } if ($row['forum_last_post_id']) @@ -180,7 +180,7 @@ function display_forums($root_data = '', $display_moderators = TRUE) $last_post .= ($row['forum_last_poster_id'] == ANONYMOUS) ? (($row['forum_last_poster_name'] != '') ? $row['forum_last_poster_name'] . ' ' : $user->lang['GUEST'] . ' ') : '' . $row['forum_last_poster_name'] . ' '; - $last_post .= '' . $user->img('goto_post_latest', 'View_latest_post') . ''; + $last_post .= '' . $user->img('goto_post_latest', 'VIEW_LATEST_POST') . ''; } else { @@ -231,8 +231,6 @@ function display_forums($root_data = '', $display_moderators = TRUE) 'MODERATORS' => $moderators_list, 'SUBFORUMS' => $subforums_list, - 'FORUM_IMG' => $forum_image, - 'L_SUBFORUM_STR' => $l_subforums, 'L_MODERATOR_STR' => $l_moderator, 'L_FORUM_FOLDER_ALT'=> $folder_alt, @@ -243,7 +241,7 @@ function display_forums($root_data = '', $display_moderators = TRUE) $template->assign_vars(array( 'S_HAS_SUBFORUM' => ($visible_forums) ? TRUE : FALSE, - 'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['Subforum'] : $user->lang['Subforums'] + 'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'] )); } ?> \ No newline at end of file -- cgit v1.2.1