Index: trunk/www/areas/l10n/team-infos.php =================================================================== --- trunk/www/areas/l10n/team-infos.php (revision 1542351) +++ trunk/www/areas/l10n/team-infos.php (revision 1542352) @@ -1,358 +1,358 @@ // New KDE Layout : Nicolas Ternisien // License: GPL // //////////////////////////////////////////////////////////////////////// include_once("lib/config.php"); include_once("lib/functions.php"); include_once("stats/configuration.inc.php"); include_once("stats/stats-functions.inc.php"); $showedit=false; //Connection to the database $currdate = date("Y-m-d",mktime()); $GLOBALS["dbh"] = initdb(config("mysql_host"), config("mysql_user"), config("mysql_password"), config("mysql_database")); $teamsarray=get_teamnames(); if (array_key_exists("teamcode", $_GET)) $team=$_GET["teamcode"]; //Redirect if this team does not exist if ( in_array($team, array_keys($teamsarray)) == FALSE ) { header("HTTP/1.0 404 Not Found"); exit(); } else { //Header of the page $page_title =htmlspecialchars($teamsarray[$team])." Team (".htmlspecialchars($team).")"; } include("header.inc"); openlog("i18n-teams",LOG_PID,LOG_LOCAL4); $team_sql=addslashes($team); $query="SELECT * FROM teaminfo WHERE teamcode='$team_sql'"; if (! $result = mysql_query($query, $GLOBALS["dbh"])) { internal_error("failed select on 'teaminfo'"); return; } $row=mysql_fetch_array($result); $txt_status = ($row['status']>0) ? 'Active Team':'Inactive Team'; $var_status = ($row['status']>0) ? 'active':'inactive'; $txt_last_update = $row['last_update']; $txt_mailinglist = html_entity_decode($row['mailinglist'], ENT_QUOTES); $txt_website = html_entity_decode($row['website'], ENT_QUOTES); $txt_notes = html_entity_decode($row['notes'], ENT_QUOTES); if ($txt_notes==NULL) { $txt_notes="

No additional notes.

"; } //Managing of the team's translators $query="SELECT fullusername, email, permissions FROM user WHERE teamcode='$team_sql' AND permissions>".DISABLED_USER." ORDER BY permissions DESC, fullusername ASC"; if (! $result = mysql_query($query, $GLOBALS["dbh"])) { internal_error("failed select on 'user'"); return; } $txt_translators=""; $txt_translators_count=$translators_count; //Managing of the team's screenshots $folder="teams/$team_sql/screenshots"; $max_thumbnail_size=250; define("SCREENSHOT_FILE", "SCREENSHOT_FILE"); define("SCREENSHOT_WIDTH", "SCREENSHOT_WIDTH"); define("SCREENSHOT_HEIGHT", "SCREENSHOT_HEIGHT"); if (!is_dir($folder)) { $txt_screenshots="
No screenshots available.
"; } else if ($handle = opendir($folder)) { $i=0; $fileList=array(); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (strpos($file,".jpg")===FALSE && strpos($file,".jpeg")===FALSE && strpos($file,".png")===FALSE) continue; $size=@getimagesize($folder."/".$file); if ($size[0]==NULL || $size[1]==NULL) continue; $fileList[$i][SCREENSHOT_FILE]=$file; $fileList[$i][SCREENSHOT_WIDTH]=$size[0]; $fileList[$i][SCREENSHOT_HEIGHT]=$size[1]; ++$i; } } closedir($handle); if (count($fileList)==0) { $txt_screenshots="
No screenshots available.
"; } else { $txt_screenshots=""; $end=count($fileList); for($i=0; $i<$end; ++$i) { $currentFile=$fileList[$i][SCREENSHOT_FILE]; if ($i%2==0 && $i!=0) $txt_screenshots.=""; $width=$fileList[$i][SCREENSHOT_WIDTH]; $height=$fileList[$i][SCREENSHOT_HEIGHT]; if ($width>$height) { $height=(int) ($height / ($width/$max_thumbnail_size)); $width=250; } else { $width=(int) ($width / ($height/$max_thumbnail_size)); $height=250; } $txt_screenshots.=" "; } $txt_screenshots.="
Screenshot ".($i+1)."
"; } } function svnLink($title, $path, $mode, $team_sql) { if ($mode=="gui") $modePath = "messages"; else $modePath = "docmessages"; echo "
  • $title :
    svn co svn://anonsvn.kde.org/home/kde/$path/$team_sql/$modePath
  • "; } $stats = create_stats($team); function create_stats($team) { $output = " "; $output .= create_mode_stats($team, "GUI messages for KF5-based trunk", "gui", "trunk-kf5"); $output .= create_mode_stats($team, "Documentation messages for KF5-based trunk", "doc", "trunk-kf5"); $output .= " "; $output .= create_mode_stats($team, "GUI messages for KF5-based stable", "gui", "stable-kf5"); $output .= create_mode_stats($team, "Documentation messages for KF5-based stable", "doc", "stable-kf5"); $output .= " "; $output .= create_mode_stats($team, "GUI messages for kdelibs4-based trunk", "gui", "trunk-kde4"); $output .= create_mode_stats($team, "Documentation messages for kdelibs4-based trunk", "doc", "trunk-kde4"); $output .= " "; $output .= create_mode_stats($team, "GUI messages for kdelibs4-based stable", "gui", "stable-kde4"); $output .= create_mode_stats($team, "Documentation messages for kdelibs4-based stable", "doc", "stable-kde4"); $output .= " "; return $output; } function create_mode_stats($team, $label, $mode, $rev) { if ($mode == "gui") $imageUrl = "/img/application.png"; else $imageUrl = "/img/documentation.png"; return " $mode$label "; } ?>

    Statistics

    Marker Contact Information

    Mailing Lists:

    Web Site:

    Additional Notes:

    Marker Checkout PO files

    ScreenshotLocalized KDE Screenshots

    TranslatorAbout

    If you would like to participate in the translation, simply contact the mailing list of this team.

    If this team does not have a mailing list or you do not get an answer in some time (wait at least a week) contact the kde-i18n-doc mailing list.

    Note: There are some web pages (like Launchpad Translations) that allow to translate KDE software. You should not use them since those translations are not shared with the rest of the community. If in doubt, please do not hesitate to mail the kde-i18n-doc mailing list.

    Info Go to: