diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-24 15:57:31 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-24 15:57:31 +0000 |
commit | 92e5512011789d1ecab92a6f3e8fc4a70e0e4a00 (patch) | |
tree | a510f09ac01e2fbb5bce60d1fb1952f81645a6e2 | |
parent | 64f1d8b8ac25f134d79c1ca6bb4bf14ef84e7986 (diff) | |
download | forums-92e5512011789d1ecab92a6f3e8fc4a70e0e4a00.tar forums-92e5512011789d1ecab92a6f3e8fc4a70e0e4a00.tar.gz forums-92e5512011789d1ecab92a6f3e8fc4a70e0e4a00.tar.bz2 forums-92e5512011789d1ecab92a6f3e8fc4a70e0e4a00.tar.xz forums-92e5512011789d1ecab92a6f3e8fc4a70e0e4a00.zip |
Reminder to self, checking files at 2am bad, checking files at 2pm good
git-svn-id: file:///svn/phpbb/trunk@1435 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/language/lang_english/lang_main.php | 53 | ||||
-rw-r--r-- | phpBB/posting.php | 6 | ||||
-rw-r--r-- | phpBB/viewforum.php | 4 | ||||
-rw-r--r-- | phpBB/viewtopic.php | 4 |
4 files changed, 31 insertions, 36 deletions
diff --git a/phpBB/language/lang_english/lang_main.php b/phpBB/language/lang_english/lang_main.php index a9ec7514fe..1e58d85d66 100644 --- a/phpBB/language/lang_english/lang_main.php +++ b/phpBB/language/lang_english/lang_main.php @@ -31,7 +31,7 @@ // varies ... give it your best guess! // -//setlocale(LC_ALL, "en"); +setlocale(LC_ALL, "en"); $lang['ENCODING'] = "utf-8"; $lang['DIRECTION'] = "LTR"; $lang['LEFT'] = "LEFT"; @@ -74,6 +74,8 @@ $lang['Jump_to'] = "Jump to"; $lang['Submit'] = "Submit"; $lang['Reset'] = "Reset"; $lang['Cancel'] = "Cancel"; +$lang['Preview'] = "Preview"; +$lang['Confirm'] = "Confirm"; $lang['Spellcheck'] = "Spellcheck"; $lang['Yes'] = "Yes"; $lang['No'] = "No"; @@ -280,7 +282,6 @@ $lang['Topic_review'] = "Topic review"; $lang['No_post_mode'] = "No post mode specified"; $lang['Post_a_new_topic'] = "Post a new topic"; -$lang['Post_new_topic_in'] = "Post new topic in:"; // Followed by forum name $lang['Post_a_reply'] = "Post a reply"; $lang['Post_topic_as'] = "Post topic as"; $lang['Edit_Post'] = "Edit post"; @@ -290,13 +291,8 @@ $lang['Post_Announcement'] = "Announcement"; $lang['Post_Sticky'] = "Sticky"; $lang['Post_Normal'] = "Normal"; -$lang['Confirm'] = "Confirm"; $lang['Confirm_delete'] = "Are you sure you want to delete this post?"; $lang['Confirm_delete_poll'] = "Are you sure you want to delete this poll?"; -$lang['Submit_post'] = "Submit Post"; -$lang['Preview'] = "Preview"; -$lang['Spellcheck'] = "Spellcheck"; -$lang['Cancel_post'] = "Cancel post"; $lang['Flood_Error'] = "You cannot make another post so soon after your last, please try again in a short while"; $lang['Empty_subject'] = "You must specifiy a subject when posting a new topic"; @@ -425,6 +421,7 @@ $lang['Savebox_size'] = "Your Savebox is %d%% full"; $lang['Click_view_privmsg'] = "Click %sHere%s to visit your Inbox"; + // // Profiles/Registration // @@ -521,11 +518,10 @@ $lang['Invalid_username'] = "The username you requested has been taken or disall $lang['Signature_too_long'] = "Your signature is too long"; $lang['Fields_empty'] = "You must fill in the required fields"; $lang['Avatar_filetype'] = "The avatar filetype must be .jpg, .gif or .png"; -$lang['Avatar_filesize'] = "The avatar image file size must be more than 0 kB and less than"; // followed by xx kB, xx being the size -$lang['kB'] = "kB"; -$lang['Avatar_imagesize'] = "The avatar must be less than " . $board_config['avatar_max_width'] . " pixels wide and " . $board_config['avatar_max_height'] . " pixels high"; +$lang['Avatar_filesize'] = "The avatar image file size must be less than %d kB"; // The avatar image file size must be less than 6 kB +$lang['Avatar_imagesize'] = "The avatar must be less than %d pixels wide and %d pixels high"; -$lang['Welcome_subject'] = "Welcome to " . $board_config['sitename'] . " Forums"; +$lang['Welcome_subject'] = "Welcome to %s Forums"; // Welcome to my.com forums $lang['New_account_subject'] = "New user account"; $lang['Account_activated_subject'] = "Account Activated"; @@ -649,7 +645,7 @@ $lang['Search_query'] = "Search Query"; $lang['Search_options'] = "Search Options"; $lang['Search_keywords'] = "Search for Keywords"; -$lang['Search_keywords_explain'] = "You can use <u>AND</u> to define words which must be in the results, <u>OR</u> to define words which may be in the result and <u>NOT</u> 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_keywords_explain'] = "You can use <u>AND</u> to define words which must be in the results, <u>OR</u> to define words which may be in the result and <u>NOT</u> to define words which should not be in the result. Use * as a wildcard for partial matches"; $lang['Search_author'] = "Search for Author"; $lang['Search_author_explain'] = "Use * as a wildcard for partial matches"; @@ -683,23 +679,22 @@ $lang['Close_window'] = "Close Window"; // // Auth related entries // -$lang['Sorry_auth'] = "Sorry but only "; // This is followed by the auth type, eg. Registered and then one or more of the following entries - -$lang['Anonymous_Users'] = "Anonymous Users"; -$lang['Registered_Users'] = "Registered Users"; -$lang['Users_granted_access'] = "Users granted special access"; -$lang['Moderators'] = "Moderators"; -$lang['Administrators'] = "Administrators"; - -$lang['can_read'] = " can read"; -$lang['can_post_announcements'] = " can post announcements in"; -$lang['can_post_sticky_topics'] = " can post sticky topics in"; -$lang['can_post_new_topics'] = " can post new topics in"; -$lang['can_reply_to_topics'] = " can reply to topics in"; -$lang['can_edit_topics'] = " can edit topics in"; -$lang['can_delete_topics'] = " can delete topics in"; - -$lang['this_forum'] = " this forum"; +// Note the %s will be replaced with one of the following 'user' arrays +$lang['Sorry_auth_announce'] = "Sorry but only %s can post announcements in this forum"; +$lang['Sorry_auth_sticky'] = "Sorry but only %s can post sticky messages in this forum"; +$lang['Sorry_auth_read'] = "Sorry but only %s can read topics in this forum"; +$lang['Sorry_auth_post'] = "Sorry but only %s can post topics in this forum"; +$lang['Sorry_auth_reply'] = "Sorry but only %s can reply to posts in this forum"; +$lang['Sorry_auth_edit'] = "Sorry but only %s can edit posts in this forum"; +$lang['Sorry_auth_delete'] = "Sorry but only %s can delete posts in this forum"; +$lang['Sorry_auth_vote'] = "Sorry but only %s can vote in polls in this forum"; + +// These replace the %s in the above strings +$lang['Anonymous_Users'] = "<b>anonymous users</b>"; +$lang['Registered_Users'] = "<b>registered users</b>"; +$lang['Users_granted_access'] = "<b>users granted special access</b>"; +$lang['Moderators'] = "<b>moderators</b>"; +$lang['Administrators'] = "<b>administrators</b>"; // diff --git a/phpBB/posting.php b/phpBB/posting.php index db24368ac5..2fb140ee35 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -980,7 +980,7 @@ if( !$is_auth[$is_auth_type] ) } else { - $message = $lang['Sorry_auth'] . $is_auth[$is_auth_type . "_type"] . $auth_string . $lang['this_forum']; + $message = sprintf($lang['Sorry_' . $is_auth_type], $is_auth[$is_auth_type . "_type"]); } message_die(GENERAL_MESSAGE, $message); @@ -2708,8 +2708,8 @@ $template->assign_vars(array( "L_OPTIONS" => $lang['Options'], "L_PREVIEW" => $lang['Preview'], "L_SPELLCHECK" => $lang['Spellcheck'], - "L_SUBMIT" => $lang['Submit_post'], - "L_CANCEL" => $lang['Cancel_post'], + "L_SUBMIT" => $lang['Submit'], + "L_CANCEL" => $lang['Cancel'], "L_CONFIRM_DELETE" => $lang['Confirm_delete'], "L_DISABLE_HTML" => $lang['Disable_HTML_post'], "L_DISABLE_BBCODE" => $lang['Disable_BBCode_post'], diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 9568ba0957..c7dc2ef986 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -99,9 +99,9 @@ if( !$is_auth['auth_read'] || !$is_auth['auth_view'] ) // // The user is not authed to read this forum ... // - $msg = $lang['Sorry_auth'] . $is_auth['auth_read_type'] . $lang['can_read'] . $lang['this_forum']; + $message = sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - message_die(GENERAL_MESSAGE, $msg); + message_die(GENERAL_MESSAGE, $message); } // // End of auth check diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 10aae47f1c..93b8c7719c 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -192,9 +192,9 @@ if(!$is_auth['auth_view'] || !$is_auth['auth_read']) // // The user is not authed to read this forum ... // - $msg = $lang['Sorry_auth'] . $is_auth['auth_read_type'] . $lang['can_read'] . $lang['this_forum']; + $message = sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - message_die(GENERAL_MESSAGE, $msg); + message_die(GENERAL_MESSAGE, $message); } // // End auth check |