[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/media/includes
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2010-12-19 19:06:49
Message-ID: 20101219190649.1CC50AC8AA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1207789 by aacid:

allow the translation of news


 M  +6 -5      functions.inc  


--- trunk/www/media/includes/functions.inc #1207788:1207789
@@ -123,18 +123,19 @@
       preg_match("@<fullstory>(.*)</fullstory>@s", $rdf_pieces[$x], $fullstory);
       print "<tr>\n";
 
-      $printDate = $date[1];
-
+      $printDate = i18n_var($date[1]);
+      $printTitle = i18n_var($title[1]);
       if ($summaryonly)
       {
         print "<td valign=\"top\" class=\"$color\">".(($printDate == $prevDate) ? "&nbsp;" : \
                "<b>$printDate</b>")."</td>\n";
-        print "<td class=\"$color\"><a href=\"news.php#item" . preg_replace("@[^a-zA-Z0-9]@", "", \
$title[1]) . "\">$title[1]</a></td>\n"; +        print "<td class=\"$color\"><a href=\"news.php#item" . \
preg_replace("@[^a-zA-Z0-9]@", "", $title[1]) . "\">$printTitle</a></td>\n";  $prevDate = $printDate;
       }
       else
       {
-        print "<td class=\"newsbox2\"><h3><a name=\"item" . preg_replace("@[^a-zA-Z0-9]@", "", \
                $title[1]) . "\">$printDate: $title[1]</a></h3></td>\n";
-        print "</tr><tr><td class=\"newsbox2\">$fullstory[1]</td>\n";
+        $printFullstory = i18n_var($fullstory[1]);
+        print "<td class=\"newsbox2\"><h3><a name=\"item" . preg_replace("@[^a-zA-Z0-9]@", "", \
$title[1]) . "\">$printDate: $printTitle</a></h3></td>\n"; +        print "</tr><tr><td \
class=\"newsbox2\">$printFullstory</td>\n";  }
 
       print "</tr>\n";


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic