Mam theme SoftBlue dzisiaj wziąłem się za tłumaczenie ale mam problem, jak zrobić żeby w prawym górnym rogu data była po polsku tzn. nazwy miesięcy i dni. Podaje zawartość pliku theme.php:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| SoftBlue Theme for PHP-Fusion v6.x |
|---------------------------------------------|
| original author: Sigma12 |
| author: PHP-Fusion Themes © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#97B9DA";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$userdata;
echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center' border='0'><tr>";
echo "<td><table cellSpacing='0' cellPadding='0' align='center' border='0'><tr>";
echo "<td><img src='".THEME."images/border_1.gif' width='20' height='20'></td>";
echo "<td width='100%' background='".THEME."images/border_2.gif'> </td>";
echo "<td><img src='".THEME."images/border_3.gif' width='20' height='20'></td></tr></table>";
echo "<table cellSpacing='0' cellPadding='0' align='center' border='0'><tr>";
echo "<td background='".THEME."images/border_4.gif'><img src='".THEME."images/border_4.gif' width='20' height='2'></td>";
echo "<td width='100%' bgColor='#cfdfee' colSpan='2'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center' border='0'><tr>";
echo "<td><table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
echo "<td class='forumlinemain'>";
echo "<table class='forumline' cellSpacing='1' cellPadding='0' width='100%' border='0'><tr>";
echo "<th class='thCornerL'><table cellSpacing='0' cellPadding='0' width='100%'><tr>";
echo "<th noWrap style='padding-left:4px;' align='left' height='25'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif' alt=''> \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<b><a href='".$data['link_url']."'".$link_target."' class='mainmenu'>".$data['link_name']."</a></b>";
} else {
echo "<b><a href='".BASEDIR.$data['link_url']."'".$link_target."' class='mainmenu'>".$data['link_name']."</a></b>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</th>";
echo "<th style='padding-right:4px;' noWrap align='right' height='25'>".ucwords(showdate("%A, %B %d, %Y", time()))."</th>";
echo "</tr></table></th></tr>";
echo "<tr><td class='logo'><a href='".BASEDIR."index.php' border='0'>";
echo "<img title='".$settings[sitename]."' alt='title='".$settings[sitename]."' src='".THEME."images/logo.gif' border='0' width='295' height='94'></a>";
echo "</td></tr>";
echo "<tr><td class='catLeft' align='right' colSpan='2' height='28'>";
if (iMEMBER) {
echo "<span class='menu'> <a class='mainmenu' href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>";
echo "<img alt='Twój Profil' hspace='3' src='".THEME."images/icon_mini_profile.gif' border='0' width='12' height='13'>Twój Profil</a> ";
}else{
echo "<img alt='Zarejestrować' hspace='3' src='".THEME."images/icon_mini_register.gif' border='0' width='12' height='13'> <span class='welcome'>Witamy</span> <span class='nav'>".(iMEMBER ? $userdata['user_name'] : "Nieznajomy")."</span>, Czy chcesz się <a class='nav' href='".BASEDIR."register.php'>Zarejestrować</a> ";
}
if (iMEMBER) {
echo " <a class='mainmenu' href='".BASEDIR."messages.php'>";
echo "<img alt='Skrzynka PM' hspace='3' src='".THEME."images/icon_mini_message.gif' border='0' width='12' height='13'>";
echo "Skrzynka PM</a> ";
}else{
echo "";
}
echo "</td></tr></table></td></tr></table></td></tr></table>";
echo "<img src='".THEME."images/blank.gif' width='1' height='3'>";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr></td></table>";
echo "<table border='0' cellpadding='2' cellspacing='1' width='100%'><tr>";
echo "<td align='center' width='100%'><br><span class='copyright'>".stripslashes($settings['footer'])."<br>";
if ($license == false) {
echo "Powered by <a class='copyright' href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> v".$settings['version']." ©";
}
echo "<br><br>SoftBlue Skin Created by: Sigma12 - Ported for PHP-Fusion by: </span><a class='copyright' target='_blank' href='http://phpfusion-themes.com'>PHP-Fusion Themes</a><br><br>";
echo "<span class='visits'>".$settings['counter']." </span><span class='copyright'>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</span>\n");
echo "</td></tr></table>";
echo "<td background='".THEME."images/border_5.gif'><img src='".THEME."images/border_5.gif' width='20' height='2'>";
echo "</td></tr></table>";
echo "<table cellSpacing='0' cellPadding='0' align='center' border='0'><tr>";
echo "<td><img src='".THEME."images/border_6.gif' width='20' height='20'></td>";
echo "<td width='100%' background='".THEME."images/border_7.gif'> </td>";
echo "<td><img src='".THEME."images/border_8.gif' width='20' height='20'>";
echo "</td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
echo "<td class='forumlinemain'>";
echo "<table class='forumline' cellSpacing='1' cellPadding='3' width='100%' border='0'><tr>";
echo "<td class='catHead' height='28' colspan='2'>";
echo "<table cellSpacing='1' cellPadding='3' width='100%'><tr>";
echo "<td align='left' width='100%'><span class='nav'>$subject</span></td>";
echo "</tr></table></td></tr>";
echo "<tr><td class='row1' align='left' width='100%'><span class='gensmall'>$news</td></tr>";
echo "<tr><td align='center' class='footer' height='28' width='100%'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." · ";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
echo "<td class='forumlinemain'>";
echo "<table class='forumline' cellSpacing='1' cellPadding='3' width='100%' border='0'><tr>";
echo "<td class='catHead' height='28' colspan='2'>";
echo "<table cellSpacing='1' cellPadding='3' width='100%'><tr>";
echo "<td align='left' width='100%'><span class='nav'>$subject</span></td>";
echo "</tr></table></td></tr>";
echo "<tr><td class='row1' align='left' width='100%'><span class='gensmall'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>";
echo "<tr><td align='center' class='footer' height='28' width='100%'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])." · ";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr><td class='forumlinemain'>";
echo "<table align='center' class='forumline' cellSpacing='1' cellPadding='3' width='100%' border='0'>";
echo "<tr align='right'><td class='catHead' align='left'><span class='nav'>$title</span></td></tr>";
echo "<tr align='left'><td bgcolor='#ABC5E2' class='side-body'>";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr><td class='forumlinemain'>";
echo "<table class='forumline' cellSpacing='1' cellPadding='3' width='100%' border='0'>";
echo "<tr align='right'><td class='catHead' align='left'><span class='nav'>$title</span></td></tr>";
echo "<tr align='left'><td bgcolor='#ABC5E2' class='side-body'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr><td class='forumlinemain'>";
echo "<table class='forumline' cellSpacing='1' cellPadding='3' width='100%' border='0'>";
echo "<tr align='right'><td class='catHead' align='left'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='Open/Close Panel' title='Open/Close Panel' style='cursor:hand;' onclick=\"javascript:flipBox('$boxname')\"><span class='nav'>$title</span></td></tr>";
echo "<tr align='left'><td bgcolor='#ABC5E2' class='side-body'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr></table></div>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Edytowane przez Pieka dnia 18.02.2007 17:38:05
|