From 37daf8a717becad0122237221c0e4690995a10ff Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 19 Nov 2001 14:12:09 +0000 Subject: More language updates git-svn-id: file:///svn/phpbb/trunk@1368 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/groupcp.php | 2 +- phpBB/includes/functions.php | 41 +++---------------- phpBB/language/lang_english/lang_main.php | 47 ++++++++++++++++++++-- phpBB/search.php | 37 ++++++++++------- phpBB/templates/subSilver/privmsgs_body.tpl | 2 +- phpBB/templates/subSilver/search_results_posts.tpl | 10 +++-- .../templates/subSilver/search_results_topics.tpl | 10 +++-- 7 files changed, 84 insertions(+), 65 deletions(-) diff --git a/phpBB/groupcp.php b/phpBB/groupcp.php index bd87e74439..83fbc00c74 100644 --- a/phpBB/groupcp.php +++ b/phpBB/groupcp.php @@ -689,7 +689,7 @@ else if( $group_id ) "L_PM" => $lang['Private_Message'], "L_EMAIL" => $lang['Email'], "L_WEBSITE" => $lang['Website'], - "L_FROM" => $lang['From'], + "L_FROM" => $lang['Location'], "L_ORDER" => $lang['Order'], "L_SORT" => $lang['Sort'], "L_SUBMIT" => $lang['Sort'], diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 40db1edc0f..3f2424017a 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -773,48 +773,17 @@ function style_select($default_style, $select_name = "style", $dirname = "templa // function tz_select($default, $select_name = 'timezone') { - global $sys_timezone; + global $sys_timezone, $lang; - if(!isset($default)) + if( !isset($default) ) { $default == $sys_timezone; } $tz_select = ""; diff --git a/phpBB/language/lang_english/lang_main.php b/phpBB/language/lang_english/lang_main.php index ecbe55bc17..006f60f773 100644 --- a/phpBB/language/lang_english/lang_main.php +++ b/phpBB/language/lang_english/lang_main.php @@ -37,6 +37,7 @@ $lang['DIRECTION'] = "LTR"; $lang['LEFT'] = "LEFT"; $lang['RIGHT'] = "RIGHT"; + // // Common, these terms are used // extensively on several pages @@ -126,6 +127,7 @@ $lang['Guest_users_total'] = "%d Guests"; $lang['Guest_user_total'] = "%d Guests"; $lang['You_last_visit'] = "You last visited on %s"; // %s replaced by date/time +$lang['Search_new'] = "View posts since last visit"; $lang['Search_your_posts'] = "View your posts"; $lang['Search_unanswered'] = "View unanswered posts"; $lang['Register'] = "Register"; @@ -217,6 +219,7 @@ $lang['Rules_vote_can'] = "You can vote in polls in this forum"; $lang['Rules_vote_cannot'] = "You cannot vote in polls in this forum"; $lang['Rules_moderate'] = "You can %smoderate this forum%s"; // %s replaced by a href links, do not remove! + // // Viewtopic // @@ -632,15 +635,18 @@ $lang['Subscribe'] = "Subscribe"; $lang['Unsubscribe'] = "Unsubscribe"; $lang['View_Information'] = "View Information"; + // // Search // $lang['Search_query'] = "Search Query"; $lang['Search_options'] = "Search Options"; + $lang['Search_keywords'] = "Search for Keywords"; $lang['Search_keywords_explain'] = "You can use AND to define words which must be in the results, OR to define words which may be in the result and NOT to define words which should not be in the result. Use * as a wildcard for partial matches. To define a phrase enclose it within """; $lang['Search_author'] = "Search for Author"; $lang['Search_author_explain'] = "Use * as a wildcard for partial matches"; + $lang['Search_for_any'] = "Search for any terms or use query as entered"; $lang['Search_for_all'] = "Search for all terms"; $lang['Search_author'] = "Search for Author"; @@ -650,13 +656,14 @@ $lang['Search_previous'] = "Search previous"; // followed by days, weeks, months $lang['Sort_by'] = "Sort by"; $lang['Display_results'] = "Display results as"; $lang['All'] = "All"; + $lang['No_search_match'] = "No topics or posts met your search criteria"; -$lang['found'] = "found"; // this precedes the number of matches found and follows Search -$lang['match'] = "Match"; // this and the following entry proceed the number of matches found -$lang['matches'] = "Matches"; -$lang['Search_new'] = "View posts since last visit"; +$lang['Found_search_match'] = "Search found %d match"; // eg. Search found 1 match +$lang['Found_search_matches'] = "Search found %d matches"; // eg. Search found 24 matches + $lang['Close_window'] = "Close Window"; + // // Auth related entries // @@ -786,6 +793,38 @@ $lang['10'] = "EST (Australia)"; $lang['11'] = "GMT + 11 Hours"; $lang['12'] = "GMT + 12 Hours"; +// These are displayed in the timezone select box +$lang['tz']['-12'] = "(GMT -12:00 hours) Eniwetok, Kwajalein"; +$lang['tz']['-11'] = "(GMT -11:00 hours) Midway Island, Samoa"; +$lang['tz']['10'] = "(GMT -10:00 hours) Hawaii"; +$lang['tz']['-9'] = "(GMT -9:00 hours) Alaska"; +$lang['tz']['-8'] = "(GMT -8:00 hours) Pacific Time (US & Canada)"; +$lang['tz']['-7'] = "(GMT -7:00 hours) Mountain Time (US & Canada)"; +$lang['tz']['-6'] = "(GMT -6:00 hours) Central Time (US & Canada), Mexico City"; +$lang['tz']['-5'] = "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito"; +$lang['tz']['-4'] = "(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz"; +$lang['tz']['-3.5'] = "(GMT -3:30 hours) Newfoundland"; +$lang['tz']['-3'] = "(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown, Falkland Is"; +$lang['tz']['-2'] = "(GMT -2:00 hours) Mid-Atlantic, Ascension Is., St. Helena"; +$lang['tz']['-1'] = "(GMT -1:00 hours) Azores, Cape Verde Islands"; +$lang['tz']['0'] = "(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia"; +$lang['tz']['1'] = "(GMT +1:00 hours) Berlin, Brussels, Copenhagen, Madrid, Paris, Rome"; +$lang['tz']['2'] = "(GMT +2:00 hours) Kaliningrad, South Africa, Warsaw"; +$lang['tz']['3'] = "(GMT +3:00 hours) Baghdad, Riyadh, Moscow, Nairobi"; +$lang['tz']['3.5'] = "(GMT +3:30 hours) Tehran"; +$lang['tz']['4'] = "(GMT +4:00 hours) Abu Dhabi, Baku, Muscat, Tbilisi"; +$lang['tz']['4.5'] = "(GMT +4:30 hours) Kabul"; +$lang['tz']['5'] = "(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent"; +$lang['tz']['5.5'] = "(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi"; +$lang['tz']['6'] = "(GMT +6:00 hours) Almaty, Colombo, Dhaka"; +$lang['tz']['7'] = "(GMT +7:00 hours) Bangkok, Hanoi, Jakarta"; +$lang['tz']['8'] = "(GMT +8:00 hours) Beijing, Hong Kong, Perth, Singapore, Taipei"; +$lang['tz']['9'] = "(GMT +9:00 hours) Osaka, Sapporo, Seoul, Tokyo, Yakutsk"; +$lang['tz']['9.5'] = "(GMT +9:30 hours) Adelaide, Darwin"; +$lang['tz']['10'] = "(GMT +10:00 hours) Melbourne, Papua New Guinea, Sydney, Vladivostok"; +$lang['tz']['11'] = "(GMT +11:00 hours) Magadan, New Caledonia, Solomon Islands"; +$lang['tz']['12'] = "(GMT +12:00 hours) Auckland, Wellington, Fiji, Marshall Island"; + // // Errors (not related to a diff --git a/phpBB/search.php b/phpBB/search.php index 60054a4d9a..1205c9704e 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -738,11 +738,10 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) ); $template->assign_var_from_handle("JUMPBOX", "jumpbox"); - $template->assign_vars(array( - "SEARCH_MATCHES" => $total_match_count, + $l_search_matches = ( $total_match_count == 1 ) ? sprintf($lang['Found_search_match'], $total_match_count) : sprintf($lang['Found_search_matches'], $total_match_count); - "L_FOUND" => $lang['found'], - "L_MATCHES" => (count($searchset) == 1) ? $lang['match'] : $lang['matches'], + $template->assign_vars(array( + "L_SEARCH_MATCHES" => $l_search_matches, "L_TOPIC" => $lang['Topic']) ); @@ -958,6 +957,9 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) { $topic_type = $lang['Topic_Moved'] . " "; $topic_id = $searchset[$i]['topic_moved_id']; + + $folder_image = "\"""; + $newest_post_img = ""; } else { @@ -993,30 +995,35 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) if( empty($HTTP_COOKIE_VARS['phpbb2_' . $forum_id . '_' . $topic_id]) && $searchset[$i]['post_time'] > $userdata['session_last_visit'] ) { $folder_image = "\"""; + + $newest_post_img = "\"" "; } else { if( isset($HTTP_COOKIE_VARS['phpbb2_' . $forum_id . '_' . $topic_id]) ) { - $folder_image = ($HTTP_COOKIE_VARS['phpbb2_' . $forum_id . '_' . $topic_id] < $searchset[$i]['post_time'] ) ? "\""" : "\"""; + if( $HTTP_COOKIE_VARS['phpbb2_' . $forum_id . '_' . $topic_id] < $searchset[$i]['post_time'] ) + { + $folder_image = "\"""; + + $newest_post_img = "\"" "; + } + else + { + $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; + $folder_image = "\"$folder_alt\""; + $newest_post_img = ""; + } } else { - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; + $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $folder_image = "\"$folder_alt\""; + $newest_post_img = ""; } } } - if( $searchset[$i]['post_time'] >= $userdata['session_last_visit'] ) - { - $newest_post_img = "\"" "; - } - else - { - $newest_post_img = ""; - } - $topic_poster = $searchset[$i]['username']; $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); diff --git a/phpBB/templates/subSilver/privmsgs_body.tpl b/phpBB/templates/subSilver/privmsgs_body.tpl index 7bbe87d04b..47091774ca 100644 --- a/phpBB/templates/subSilver/privmsgs_body.tpl +++ b/phpBB/templates/subSilver/privmsgs_body.tpl @@ -64,7 +64,7 @@ {L_DISPLAY_MESSAGES}: - + diff --git a/phpBB/templates/subSilver/search_results_posts.tpl b/phpBB/templates/subSilver/search_results_posts.tpl index bcf3f86c5c..925493cdc4 100644 --- a/phpBB/templates/subSilver/search_results_posts.tpl +++ b/phpBB/templates/subSilver/search_results_posts.tpl @@ -1,17 +1,17 @@ - +
{L_SEARCH} - - {SEARCH_MATCHES} Matches
-
{L_SEARCH_MATCHES}
+
{L_INDEX}
- + +
@@ -37,12 +37,14 @@
{L_AUTHOR} {L_MESSAGE} 
+
{PAGE_NUMBER} {PAGINATION}
{S_TIMEZONE}
+ diff --git a/phpBB/templates/subSilver/search_results_topics.tpl b/phpBB/templates/subSilver/search_results_topics.tpl index b8f42c056f..f9f31cc6e5 100644 --- a/phpBB/templates/subSilver/search_results_topics.tpl +++ b/phpBB/templates/subSilver/search_results_topics.tpl @@ -1,17 +1,17 @@
{JUMPBOX}
- +
{L_SEARCH} - - {SEARCH_MATCHES} Matches
-
{L_SEARCH_MATCHES}
+
{L_INDEX}
- + +
@@ -41,12 +41,14 @@
   {L_FORUM}  
+
{PAGE_NUMBER} {PAGINATION}
{S_TIMEZONE}
+ -- cgit v1.2.1
{JUMPBOX}