From dcc2b2fe194163d455360fbb8726fe80b6c03378 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Fri, 2 Mar 2001 05:46:32 +0000 Subject: [PATCH] Started translation implemenation, added 1.2 english lang file git-svn-id: file:///svn/phpbb/trunk@73 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/common.php | 4 +- phpBB/language/lang_english.php | 364 +++++++++++++++++++++ phpBB/login.php | 2 +- phpBB/page_header.php | 29 +- phpBB/templates/Default/index_body.tpl | 10 +- phpBB/templates/Default/index_footer.tpl | 4 +- phpBB/templates/Default/index_header.tpl | 8 +- phpBB/templates/Default/overall_header.tpl | 17 +- 8 files changed, 414 insertions(+), 24 deletions(-) create mode 100755 phpBB/language/lang_english.php diff --git a/phpBB/common.php b/phpBB/common.php index 79d64b2403..2c1c7c8599 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -68,7 +68,7 @@ else $default_lang = $config[0]["default_lang"]; $sys_lang = $default_lang; } - +include('language/lang_'.$default_lang.'.'.$phpEx); // Check if user is banned if(!auth("ip ban", $db, "", USER_IP)) { @@ -99,7 +99,7 @@ if (!$user_logged_in) if(isset($HTTP_COOKIE_VARS[$cookie_name])) { $userdata = get_userdata_from_id($HTTP_COOKIE_VARS["$cookie_name"], $db); - if(!auth("username ban", $db, $userdata["user_id"], "", "", "", "", "", "", "", "")) + if(!auth("username ban", $db, $userdata["user_id"])) { error_die($db, BANNED); } diff --git a/phpBB/language/lang_english.php b/phpBB/language/lang_english.php new file mode 100755 index 0000000000..78d42b058d --- /dev/null +++ b/phpBB/language/lang_english.php @@ -0,0 +1,364 @@ +255 characters max!"; +$l_usertaken = "The $l_username you picked has been taken."; +$l_userdisallowed= "The $l_username you picked has been disallowed by the administrator. $l_tryagain"; +$l_infoupdated = "Your Information has been updated"; +$l_publicmail = "Allow other users to view my $l_emailaddress"; +$l_itemsreq = "Items marked with a * are required"; + +// Viewforum +$l_viewforum = "View Forum"; +$l_notopics = "There are no topics for this forum. You can post one."; +$l_hotthres = "More then $hot_threshold $l_posts"; +$l_islocked = "$l_topic is Locked (No new $l_posts may be made in it)"; +$l_moderatedby = "Moderated by"; + +// Private forums +$l_privateforum = "This is a Private Forum."; +$l_private = "$l_privateforum
Note: you must have cookies enabled in order to use private forums."; +$l_noprivatepost = "$l_privateforum You do not have access to post to this forum."; + +// Viewtopic +$l_topictitle = "View $l_topic"; +$l_unregistered = "Unregistered User"; +$l_posted = "Posted"; +$l_profileof = "View Profile of"; +$l_viewsite = "Goto the website of"; +$l_icqstatus = "$l_icq status"; // ICQ status +$l_editdelete = "Edit/Delete This $l_post"; +$l_replyquote = "Reply with quote"; +$l_viewip = "View Posters IP (Moderators/Admins Only)"; +$l_locktopic = "Lock this $l_topic"; +$l_unlocktopic = "Unlock this $l_topic"; +$l_movetopic = "Move this $l_topic"; +$l_deletetopic = "Delete this $l_topic"; + +// Functions +$l_loggedinas = "Logged in as"; +$l_notloggedin = "Not logged in"; +$l_logout = "Logout"; +$l_login = "Login"; + +// Page_header +$l_separator = "» »"; // Included here because some languages have + // problems with high ASCII (Big-5 and the like). +$l_editprofile = "Edit Profile"; +$l_editprefs = "Edit $l_preferences"; +$l_search = "Search"; +$l_memberslist = "Memberslist"; +$l_faq = "FAQ"; +$l_privmsgs = "Private $l_messages"; +$l_sendpmsg = "Send a Private Message"; +$l_postedtotal = "Our users have posted a total of"; +$l_wehave = "We have"; +$l_regedusers = "registered users."; +$l_newestuser = "The newest Registered User is"; +$l_browsing = "browsing"; +$l_arecurrently = "There are currently"; +$l_theforums = "the forums."; + +$l_statsblock = '$statsblock = "Our users have posted a total of -$total_posts- $l_messages.
+We have -$total_users- Registered Users.
+The newest Registered User is -$newest_user-.
+-$users_online- ". ($users_online==1?"user is":"users are") ." currently browsing the forums.
";'; +$l_privnotify = '$privnotify = "
You have $new_message new private ".($new_message>1?"messages":"message").".";'; + +// Page_tail +$l_adminpanel = "Administration Panel"; +$l_poweredby = "Powered by"; +$l_version = "Version"; + +// Auth + +// Register +$l_notfilledin = "Error - you did not fill in all the required fields."; +$l_invalidname = "The username you chose \"$username\" has been taken."; +$l_disallowname = "The username you chose, \"$username\" has been disallowed by the administrator."; + +$l_welcomesubj = "Welcome to $sitename Forums"; +$l_welcomemail = +" +$l_welcomesubj, + +Please keep this email for your records. + + +Your account information is as follows: + +---------------------------- +Username: $username +Password: $password +---------------------------- + +Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. +However, should you forget your password we provide an easy to use script to generate and email a new, random, password. + +Thank you for registering. + +$email_sig +"; +$l_beenadded = "You have been added to the database."; +$l_thankregister= "Thank you for registering!"; +$l_useruniq = "Must be unique. No two users can have the same Username."; +$l_storecookie = "Store my username in a cookie for 1 year."; + +// Prefs +$l_prefupdated = "$l_preferences updated. $l_click $l_here $l_returnindex"; +$l_editprefs = "Edit Your $l_preferences"; +$l_themecookie = "NOTE: In order to use themes you MUST have cookies enabled."; +$l_alwayssig = "Always attach my signature"; +$l_alwaysdisable= "Always disable"; // Only used for next three strings +$l_alwayssmile = "$l_alwaysdisable $l_smilies"; +$l_alwayshtml = "$l_alwaysdisable $l_html"; +$l_alwaysbbcode = "$l_alwaysdisable $l_bbcode"; +$l_boardtheme = "Board Theme"; +$l_boardlang = "Board Language"; +$l_nothemes = "No Themes In database"; +$l_saveprefs = "Save $l_preferences"; + +// Search +$l_searchterms = "Keywords"; +$l_searchany = "Search for ANY of the terms (Default)"; +$l_searchall = "Search for ALL of the terms"; +$l_searchallfrm = "Search All Forums"; +$l_sortby = "Sort by"; +$l_searchin = "Search in"; +$l_titletext = "Title & Text"; +$l_search = "Search"; +$l_nomatches = "No records match that query. Please broaden your search."; + +// Whosonline +$l_whosonline = "Who's online?"; +$l_nousers = "No Users are currently browsing the forums"; + + +// Editpost +$l_notedit = "You can't edit a post that isn't yours."; +$l_permdeny = "You did not supply the correct $l_password or do not have permission to edit this post. $l_tryagain"; +$l_editedby = "This $l_message was edited by:"; +$l_stored = "Your $l_message has been stored in the database."; +$l_viewmsg = "to view your $l_message."; +$l_deleted = "Your $l_post has been deleted."; +$l_nouser = "That $l_username doesn't exist."; +$l_passwdlost = "I forgot my password!"; +$l_delete = "Delete this Post"; + +$l_disable = "Disable"; +$l_onthispost = "on this Post"; + +$l_htmlis = "$l_html is"; +$l_bbcodeis = "$l_bbcode is"; + +$l_notify = "Notify by email when replies are posted"; + +// Newtopic +$l_emptymsg = "You must type a $l_message to post. You cannot post an empty $l_message."; +$l_aboutpost = "About Posting"; +$l_regusers = "All Registered users"; +$l_anonusers = "Anonymous users"; +$l_modusers = "Only Moderators and Administrators"; +$l_anonhint = "
(To post anonymously simply do not enter a username and password)"; +$l_inthisforum = "can post new topics and replies to this forum"; +$l_attachsig = "Show signature (This can be altered or added in your profile)"; +$l_cancelpost = "Cancel Post"; + +// Reply +$l_nopostlock = "You cannot post a reply to this topic, it has been locked."; +$l_topicreview = "Topic Review"; +$l_notifysubj = "A reply to your topic has been posted."; +$l_notifybody = 'Dear $m[username]\r\nYou are receiving this Email because a message +you posted on $sitename forums has been replied to, and +you selected to be notified on this event. + +You may view the topic at: + +http://$SERVER_NAME$url_phpbb/viewtopic.$phpEx?topic=$topic&forum=$forum + +Or view the $sitename forum index at + +http://$SERVER_NAME$url_phpbb + +Thank you for using $sitename forums. + +Have a nice day. + +$email_sig'; + + +$l_quotemsg = '[quote]\nOn $m[post_time], $m[username] wrote:\n$text\n[/quote]'; + +// Sendpmsg +$l_norecipient = "You must enter the username you want to send the $l_message to."; +$l_sendothermsg = "Send another Private Message"; +$l_cansend = "can send $l_privmsgs"; // All registered users can send PM's +$l_yourname = "Your $l_username"; +$l_recptname = "Recipient $l_username"; + +// Replypmsg +$l_pmposted = "Reply Posted, you can click here to view your $l_privmsgs"; + +// Viewpmsg +$l_nopmsgs = "You don't have any $l_privmsgs."; +$l_reply = "Reply"; + +// Delpmsg +$l_deletesucces = "Deletion successful."; + +// Smilies +$l_smilesym = "What to type"; +$l_smileemotion = "Emotion"; +$l_smilepict = "Picture"; + +// Sendpasswd +$l_wrongactiv = "The activation key you provided is not correct. Please check email $l_message you recived and make sure you have copied the activation key exactly."; +$l_passchange = "Your password has been successfully changed. You may now goto your profile and change your password to a more suitable one."; +$l_wrongmail = "The email address you entered does not match the one stored in our database."; + +$l_passsubj = "$sitename Forums Password Change"; + +$l_pwdmessage = 'Dear $checkinfo[username], +You are receiving this email because you (or someone pretending to be you) +has requested a passwordchange on $sitename forums. If you believe you have +received this message in error simply delete it and your password will remain +the same. + +Your new password as generated by the forums is: $newpw + +In order for this change to take effect you must visit this page: + + http://$SERVER_NAME$PHP_SELF?actkey=$key + +Once you have visited the page your password will be changed in our database, +and you may login to the profile section and change it as desired. + +Thank you for using $sitename Forums + +$email_sig'; + +$l_passsent = "Your password has changed to a new, random, password. Please check your email on how to complete the password change procedure."; +$l_emailpass = "Email Lost Password"; +$l_passexplain = "Please fill out the form, a new password will be sent to your Email address"; +$l_sendpass = "Send Password"; + + +?> diff --git a/phpBB/login.php b/phpBB/login.php index 801782941f..da6d49f59f 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -53,5 +53,5 @@ else if($logout) } header("Location: index.$phpEx"); } - + ?> diff --git a/phpBB/page_header.php b/phpBB/page_header.php index 8cb4282362..cc5a577bf5 100644 --- a/phpBB/page_header.php +++ b/phpBB/page_header.php @@ -39,7 +39,34 @@ $template->set_var(array("SITENAME" => $sitename, "PHPEX" => $phpEx, "PAGE_TITLE" => $page_title, "LOGIN_STATUS" => $logged_in_status, - "META_INFO" => $meta_tags)); + "META_INFO" => $meta_tags, + "L_USERNAME" => $l_username, + "L_PASSWORD" => $l_password, + "L_WELCOMETO" => $l_welcometo, + "L_REGISTER" => $l_register, + "L_PROFILE" => $l_profile, + "L_SEARCH" => $l_search, + "L_PRIVATEMSGS" => $l_privmsgs, + "L_MEMBERLIST" => $l_memberslist, + "L_FAQ" => $l_faq, + "L_FORUM" => $l_forum, + "L_TOPICS" => $l_topics, + "L_REPLIES" => $l_replies, + "L_VIEWS" => $l_views, + "L_POSTS" => $l_posts, + "L_LASTPOST" => $l_lastpost, + "L_MODERATOR" => $l_moderator, + "L_MESSAGES" => $l_messages, + "L_POSTEDTOTAL" => $l_postedtotal, + "L_WEHAVE" => $l_wehave, + "L_REGUSERS" => $l_regedusers, + "L_NEWESTUSER" => $l_newestuser, + "L_BROWSING" => $l_browsing, + "L_ARECURRENTLY" => $l_arecurrently, + "L_THEFORUMS" => $l_theforums, + "L_NONEWPOSTS" => $l_nonewposts, + "L_NEWPOSTS" => $l_newposts)); + $template->pparse("output", "overall_header"); // Do a switch on page type, this way we only load the templates that we need at the time diff --git a/phpBB/templates/Default/index_body.tpl b/phpBB/templates/Default/index_body.tpl index ac2e952af3..5bcfe46c85 100644 --- a/phpBB/templates/Default/index_body.tpl +++ b/phpBB/templates/Default/index_body.tpl @@ -6,11 +6,11 @@ - - - - - + + + + + diff --git a/phpBB/templates/Default/index_footer.tpl b/phpBB/templates/Default/index_footer.tpl index 7a1dc433de..f3efd5f55f 100644 --- a/phpBB/templates/Default/index_footer.tpl +++ b/phpBB/templates/Default/index_footer.tpl @@ -2,8 +2,8 @@
 ForumTopicsPostsLast PostModerator{L_FORUM}{L_TOPICS}{L_POSTS}{L_LASTPOST}{L_MODERATOR}
-
= New Posts since your last visit.
- = No new Posts since your last visit.
+
= {L_NEWPOSTS}.
+ = {L_NONEWPOSTS}.
diff --git a/phpBB/templates/Default/index_header.tpl b/phpBB/templates/Default/index_header.tpl index efb4538fd0..9b68cd67c3 100644 --- a/phpBB/templates/Default/index_header.tpl +++ b/phpBB/templates/Default/index_header.tpl @@ -5,10 +5,10 @@
-
Our users have posted a total of -{TOTAL_POSTS}- messages.
- We have {TOTAL_USERS} total registered users.
- The newest registered user is {NEWEST_USER}
- There are currently {USERS_BROWSING} browsing the forums
+
{L_POSTEDTOTAL} -{TOTAL_POSTS}- {L_MESSAGES}.
+ {L_WEHAVE} {TOTAL_USERS} {L_REGUSERS}.
+ {L_NEWESTUSER} {NEWEST_USER}
+ {L_ARECURRENTLY} {USERS_BROWSING} {L_BROWSING} {L_THEFORUMS}
diff --git a/phpBB/templates/Default/overall_header.tpl b/phpBB/templates/Default/overall_header.tpl index 2429a4591b..851ff5573e 100644 --- a/phpBB/templates/Default/overall_header.tpl +++ b/phpBB/templates/Default/overall_header.tpl @@ -1,11 +1,5 @@ - {SITENAME} - {PAGE_TITLE} {META_INFO} @@ -51,13 +45,18 @@ A:Hover {
- +
Username :
Password :
{L_USERNAME} :
{L_PASSWORD} :
- - + +
Welcome to {SITENAME}
{LOGIN_STATUS}
[Register] [Edit Profile] [Search] [Private Messages] [Memberslist] [FAQ]{L_WELCOMETO} {SITENAME}
{LOGIN_STATUS}
[{L_REGISTER}]  + [{L_PROFILE}]  + [{L_SEARCH}]  + [{L_PRIVATEMSGS}]  + [{L_MEMBERLIST}]  + [{L_FAQ}]