tangoman

|
Posted:
Tue Aug 16, 2005 5:42 am |
|
Kevin,
There is a first time for doing everything, of course, but with this 'game' I often hesitate because it one takes someone to type a single wrong character to screw the whole thing up.
However, my 'impatience', moreover eagerness, has the better of me today, so I was a little 'adventurious'.
Please can you confirm if I 'passed the test'...
As previously explained, the block called 'block-User_Login.php' that we installed yesterday, was displaying the following text:
User Log In
Welcome, Anonymous
_BNICK:
_BPASS:
_BCODE:
_BTYPECODE:
(Register)
I understod how this could mean that there was a problem in one of the language files, so I investigated the file, 'language/lang-english.php'. which has the following code:
<?php
/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* This is the language module with all the system messages */
/* */
/* If you made a translation, please go to the site and send to me */
/* the translated file. Please keep the original text order by modules, */
/* and just one message per line, also double check your translation! */
/* */
/* You need to change the second quoted phrase, not the capital one! */
/* */
/* If you need to use double quotes (") remember to add a backslash (\), */
/* so your entry will look like: This is \"double quoted\" text. */
/* And, if you use HTML code, please double check it. */
/**************************************************************************/
define("_CHARSET","ISO-8859-1");
define("_SEARCH","Search");
define("_LOGIN","Login");
define("_WRITES","writes");
define("_POSTEDON","Posted on");
define("_NICKNAME","Nickname");
define("_PASSWORD","Password");
define("_WELCOMETO","Welcome to");
define("_EDIT","Edit");
define("_DELETE","Delete");
define("_POSTEDBY","Posted by");
define("_READS","reads");
define("_GOBACK","[ <a href=\"javascript:history.go(-1)\">Go Back</a> ]");
define("_COMMENTS","comments");
define("_PASTARTICLES","Past Articles");
define("_OLDERARTICLES","Older Articles");
define("_BY","by");
define("_ON","on");
define("_LOGOUT","Logout");
define("_WAITINGCONT","Waiting Content");
define("_SUBMISSIONS","Submissions");
define("_WREVIEWS","Waiting Reviews");
define("_WLINKS","Waiting Links");
define("_EPHEMERIDS","Ephemerids");
define("_ONEDAY","One Day like Today...");
define("_ASREGISTERED","Don't have an account yet? You can <a href=\"modules.php?name=Your_Account&op=new_user\">create one</a>. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.");
define("_MENUFOR","Menu for");
define("_NOBIGSTORY","There isn't a Biggest Story for Today, yet.");
define("_BIGSTORY","Today's most read Story is:");
define("_SURVEY","Survey");
define("_POLLS","Polls");
define("_PCOMMENTS","Comments:");
define("_RESULTS","Results");
define("_HREADMORE","read more...");
define("_CURRENTLY","There are currently,");
define("_GUESTS","guest(s) and");
define("_MEMBERS","member(s) that are online.");
define("_YOUARELOGGED","You are logged as");
define("_YOUHAVE","You have");
define("_PRIVATEMSG","private message(s).");
define("_YOUAREANON","You are Anonymous user. You can register for free by clicking <a href=\"modules.php?name=Your_Account&op=new_user\">here</a>");
define("_NOTE","Note:");
define("_ADMIN","Admin:");
define("_WERECEIVED","We received");
define("_PAGESVIEWS","page views since");
define("_TOPIC","Topic");
define("_UDOWNLOADS","Downloads");
define("_VOTE","Vote");
define("_VOTES","Votes");
define("_MVIEWADMIN","View: Administrators Only");
define("_MVIEWUSERS","View: Registered Users Only");
define("_MVIEWANON","View: Anonymous Users Only");
define("_MVIEWALL","View: All Visitors");
define("_EXPIRELESSHOUR","Expiration: Less than 1 hour");
define("_EXPIREIN","Expiration in");
define("_HTTPREFERERS","HTTP Referers");
define("_UNLIMITED","Unlimited");
define("_HOURS","Hours");
define("_RSSPROBLEM","Currently there is a problem with headlines from this site");
define("_SELECTLANGUAGE","Select Language");
define("_SELECTGUILANG","Select Interface Language:");
define("_NONE","None");
define("_BLOCKPROBLEM","<center>There is a problem right now with this block.</center>");
define("_BLOCKPROBLEM2","<center>There isn't content right now for this block.</center>");
define("_MODULENOTACTIVE","Sorry, this Module isn't active!");
define("_NOACTIVEMODULES","Inactive Modules");
define("_FORADMINTESTS","(for Admin tests)");
define("_BBFORUMS","Forums");
define("_ACCESSDENIED", "Access Denied");
define("_RESTRICTEDAREA", "You are trying to access a restricted area.");
define("_MODULEUSERS", "We are Sorry, but this section of our site is for <i>Registered Users Only.</i><br><br>You can register for free by clicking <a href=\"account-new_user.html\">here</a>, then you can<br>access this section without restrictions. Thanks.<br><br>");
define("_MODULESADMINS", "We are Sorry but this section of our site is for <i>Administrators Only.</i><br><br>");
define("_HOME","Home");
define("_HOMEPROBLEM","There is a big problem here: we do not have a Homepage!!!");
define("_ADDAHOME","Add a Module in your Home");
define("_HOMEPROBLEMUSER","There is a problem right now on the Homepage. Please check back later.");
define("_MORENEWS","More in News Section");
define("_ALLCATEGORIES","All Categories");
define("_DATESTRING","%A, %B %d @ %T %Z");
define("_DATESTRING2","%A, %B %d");
define("_DATE","Date");
define("_HOUR","Hour");
define("_UMONTH","Month");
define("_YEAR","Year");
define("_JANUARY","January");
define("_FEBRUARY","February");
define("_MARCH","March");
define("_APRIL","April");
define("_MAY","May");
define("_JUNE","June");
define("_JULY","July");
define("_AUGUST","August");
define("_SEPTEMBER","September");
define("_OCTOBER","October");
define("_NOVEMBER","November");
define("_DECEMBER","December");
define("_BCODE","Security Code");
define("_BWEL","Welcome");
define("_BPM","Private Messages");
define("_BUNREAD","Unread");
define("_BREAD","Read");
define("_BMEMP","Membership");
define("_BLATEST","Latest");
define("_BTD","New Today");
define("_BYD","New Yesterday");
define("_BNICK","Nickname");
define("_BOVER","Overall");
define("_BPASS","Password");
define("_BTYPECODE","Type Security Code");
define("_BVISIT","People Online");
define("_BVIS","Visitors");
define("_BMEM","Members");
define("_BTT","Total");
define("_BON","Online Now");
define("_BREG","Register");
define("_BROADCAST","Broadcast Public Message");
define("_BROADCASTFROM","Public Message from");
define("_TURNOFFMSG","Turn Off Public Messages");
define("_JOURNAL","Journal");
define("_READMYJOURNAL","Read My Journal");
define("_ADD","Add");
define("_YES","Yes");
define("_NO","No");
define("_INVISIBLEMODULES","Invisible Modules");
define("_ACTIVEBUTNOTSEE","(Active but invisible link)");
define("_THISISAUTOMATED","This is an automated email to let you know that your banner advertising in our site has been completed.");
define("_THERESULTS","The results of your campaign are as follows:");
define("_TOTALIMPRESSIONS","Total Impression Made:");
define("_CLICKSRECEIVED","Clicks Received:");
define("_IMAGEURL","Image URL");
define("_CLICKURL","Click URL:");
define("_ALTERNATETEXT","Alternate Text:");
define("_HOPEYOULIKED","Hope you liked our service. We'll look forward to having you as an advertising customer again soon.");
define("_THANKSUPPORT","Thanks for your Support");
define("_TEAM","Team");
define("_BANNERSFINNISHED","Banners Ads Finished");
define("_MODREQLINKS","Mod. Links");
define("_BROKENLINKS","Broken Links");
define("_MODREQDOWN","Mod. Downloads");
define("_BROKENDOWN","Broken Downloads");
define("_PAGEGENERATION","Page Generation:");
define("_SECONDS","Seconds");
define("_YOUHAVEONEMSG","You Have 1 New Private Message");
define("_YOUHAVE","You Have");
define("_NEWPMSG","New Private Messages");
define("_CONTRIBUTEDBY","Contributed by");
define("_CHAT","Chat");
define("_REGISTERED","Registered");
define("_CHATGUESTS","Guests");
define("_USERSTALKINGNOW","Users Talking Now");
define("_ENTERTOCHAT","Enter To Chat");
define("_CHATROOMS","Available Rooms");
define("_SECURITYCODE","Security Code");
define("_TYPESECCODE","Type Security Code");
define("_ASSOTOPIC","Associated Topics");
define("_ADDITIONALYGRP","Additionaly this module belongs to the Users Group");
define("_YOUHAVEPOINTS","Points you have by participating on the site's content:");
define("_MVIEWSUBUSERS","View: Subscribed Users Only");
define("_MODULESSUBSCRIBER","We are Sorry but this section of our site is for <i>Subscribed Users Only.</i>");
define("_SUBHERE","You can subscribe to our services from <a href=\"$subscription_url\">here</a>");
define("_SUBEXPIRED","Your Subscription Expired");
define("_HELLO","Hello");
define("_SUBSCRIPTIONAT","This is an automated message to let you know that your subscription at");
define("_HASEXPIRED","has been expired now.");
define("_HOPESERVED","Hope to have served you with satisfaction...");
define("_SUBRENEW","If you want to renew your subscription please go to:");
define("_YOUARE","You are");
define("_SUBSCRIBER","subscriber");
define("_OF","of");
define("_SBYEARS","years");
define("_SBYEAR","year");
define("_SBMINUTES","minutes");
define("_SBHOURS","hours");
define("_SBSECONDS","seconds");
define("_SBDAYS","days");
define("_SUBEXPIREIN","Your subscription will expire in:");
define("_NOTSUB","You are not subscriber of");
define("_SUBFROM","You can subscribe from");
define("_HERE","here");
define("_NOW","now!");
define("_ADMSUB","Subscribed User!");
define("_ADMNOTSUB","User NOT Subscribed");
define("_ADMSUBEXPIREIN","Subscription Expire in:");
define("_LASTIP","Last user IP:");
define("_BANTHIS","Ban This IP");
/*****************************************************/
/* Function to translate Datestrings */
/*****************************************************/
function translate($phrase) {
switch($phrase) {
case "xdatestring": $tmp = "%A, %B %d @ %T %Z"; break;
case "linksdatestring": $tmp = "%d-%b-%Y"; break;
case "xdatestring2": $tmp = "%A, %B %d"; break;
default: $tmp = "$phrase"; break;
}
return $tmp;
}
?>
I noticed that among all the defining code and strings, there were no definitions for the block code, which is:
_BNICK:
_BPASS:
_BCODE:
_BTYPECODE:
Hence, as you will see I created 4 new definitions.
This eliminated the problem and the block now displayed correctly.
Did I do exactly right, a little right, or maybe I did wrong and should undo what I have done...Please confirm.
Also, if I did do correct, logic suggests to me that such a change has to be made in each language.php file in order that the text would display correctly should the user have the ability to and want to, change the languagge settings on the website...Again, am I correct? |
|
|