Phpnuke - Change Language

liunx

Guest
Hello,<br /><br />As to change the days of the week of English for another language?<br /><br />Already I changed in Admin Preferences for the language that desire but the days of the week in the News and the Calendar it continues in English. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />Thanks<!--content-->
<!--QuoteBegin-paulo+Jun 18 2005, 09:53 AM--><div class='quotetop'>QUOTE(paulo @ Jun 18 2005, 09:53 AM)</div><div class='quotemain'><!--QuoteEBegin-->Hello,<br /><br />As to change the days of the week of English for another language?<br /><br />Already I changed in Admin Preferences for the language that desire but the days of the week in the News and the Calendar it continues in English.  <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />Thanks<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=136032"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />What is your website addy -- I will look at it for you..<!--content-->
<!--QuoteBegin-Tommy+Jun 19 2005, 03:15 PM--><div class='quotetop'>QUOTE(Tommy @ Jun 19 2005, 03:15 PM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-paulo+Jun 18 2005, 09:53 AM--><div class='quotetop'>QUOTE(paulo @ Jun 18 2005, 09:53 AM)</div><div class='quotemain'><!--QuoteEBegin-->Hello,<br /><br />As to change the days of the week of English for another language?<br /><br />Already I changed in Admin Preferences for the language that desire but the days of the week in the News and the Calendar it continues in English.  <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />Thanks<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=136032"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />What is your website addy -- I will look at it for you..<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=136181"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><br /><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I obtained modifying the archive mainfile.php<!--content-->
So are you all set Paulo?<br /><br />Bill<!--content-->
Hi Bill,<br /><br />Everything ok.<br />This is the solution:<br /><br />It locates these lines of code in its archive file mainfile.php : (in line 673)<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function formatTimestamp($time) { global $datetime, $locale; setlocale (LC_TIME, "$locale"); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); $datetime = strftime(""._DATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); $datetime = ucfirst($datetime); return($datetime);}<!--c2--></div><!--ec2--><br /><br /><b>and change for these</b>[/I]: (in mine case days in Portuguese) <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function formatTimestamp($time){ global $datetime, $locale; $dias_semana = array ("0" => "Domingo", "1" => "Segunda-feira", "2" => "Teré–º
 
Back
Top