Demonic Posted February 14, 2007 Share Posted February 14, 2007 Alright im making a language pack but it seems like its not working at the momment: How im displaying it: <?php ob_start(); session_start(); include("language_main.php"); include("unknown1.php"); $nbb = new nbboard; $nbb->inputs(); switch($nbb->input['GET']['act']){ case "1": echo $nbb->input['LANG'][a0]; break; case "2": echo "This is page2"; break; } ?> Langauge: <?php /* **************************************************************** #lang/en/language_main.php File #Version 2.1.0 **************************************************************** #Copy Righted 2006-2007(http://nevuxbulletin.com) #Created By NevuxBB Developement Team **************************************************************** #This Software may not be redistributed without a paid license bought from #NevuxBulletinBoards. This software is copy righted and protected under #the NevuxBulletinBoards TOR. For more information email us at #support@nevuxbulletin.com. **************************************************************** */ $lang = array( a0 => "Error 1", a1 => "", a2 => "", a3 => "", a4 => "", a5 => "", a6 => "", a7 => "", a8 => "", a9 => "", a10 => "", a11 => "", a12 => "", a13 => "", a14 => "", a15 => "", a16 => "", a17 => "", a18 => "", a19 => "", a20 => "", a21 => "", a22 => "", a23 => "", a24 => "", a25 => "", a26 => "", a27 => "", a28 => "", a29 => "", a30 => "", a31 => "", a32 => "", a33 => "", a34 => "", a35 => "", a36 => "", a37 => "", a38 => "", a39 => "", a40 => "", a41 => "", a42 => "", a43 => "", a44 => "", a45 => "", a46 => "", a47 => "", a48 => "", a49 => "", a50 => "", a51 => "", a52 => "", a53 => "", a54 => "", a55 => "", a56 => "", a57 => "", a58 => "", a59 => "", a60 => "", a61 => "", a62 => "", a63 => "", a64 => "", a65 => "", a66 => "", a67 => "", a68 => "", a69 => "", a70 => "", a71 => "", a72 => "", a73 => "", a74 => "", a75 => "", a76 => "", a77 => "", a78 => "", a79 => "", a80 => "", a81 => "", a82 => "", a83 => "", a84 => "", a85 => "", a86 => "", a87 => "", a88 => "", a89 => "", a90 => "", a91 => "", a92 => "", a93 => "", a94 => "", a95 => "", a96 => "", a97 => "", a98 => "", a99 => "", ); ?> my class: <?php /* **************************************************************** #UNKNOWN File #Version 2.1.0 **************************************************************** #Copy Righted 2006-2007(http://nevuxbulletin.com) #Created By NevuxBB Developement Team **************************************************************** #This Software may not be redistributed without a paid license bought from #NevuxBulletinBoards. This software is copy righted and protected under #the NevuxBulletinBoards TOR. For more information email us at #support@nevuxbulletin.com. **************************************************************** */ class nbboard { var $input; function inputs(){ global $lang; /*Removed*/ /*Removed*/ /*Removed*/ foreach($lang as $langv => $langval){ $this->input = array(); return $this->input['LANG'][$langv] = htmlspecialchars(trim(strip_tags($langval))); } } }//end class ?> Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted February 14, 2007 Share Posted February 14, 2007 Thats great.... But as I can't be bothered to read your code without knowing what the problem is I fear I am a useless pawn in your quest for glory... Quote Link to comment Share on other sites More sharing options...
Demonic Posted February 14, 2007 Author Share Posted February 14, 2007 problem is, the language array i echoed aint showing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.