Skip to content
Snippets Groups Projects
index.php 7.21 KiB
Newer Older
<?php

include "template.inc";

  require_once ("Design.php");
  
Yann Leboulanger's avatar
Yann Leboulanger committed
  Entete (_("Gajim, a Jabber/XMPP client"), "GAJIM");

$tpl = new Template("templates");
$tpl->set_file("page","index.tpl");
nkour's avatar
nkour committed
$tpl->set_var("HELLO", _("Hello and welcome to the Gajim project website"));

$array_line_begin = array(
	0 => _("The goal of Gajim is to provide a full featured and easy to use Jabber/XMPP client. Gajim works nicely with GNOME, but does not require it to run. It is released under the GNU General Public License. If you find bugs or have ideas on how Gajim can be better, ")."<a href=\"http://trac.gajim.org/newticket\">"._("please send tickets")."</a>.");
nkour's avatar
nkour committed
	
$tpl->set_block("page","LINES_BEGIN","line");
for ($i=0; $i<sizeof($array_line_begin); $i++) {
 $tpl->set_var("LINE_BEGIN", $array_line_begin[$i]);
 $tpl->parse("line","LINES_BEGIN",true);
}

nkour's avatar
nkour committed
$tpl->set_var("FEATURES_TITLE", _("FEATURES:"));
nkour's avatar
nkour committed
$array_features = array(
	0 => _("Tabbed chat window and single window modes"),
	1 => _("Group chat support (with Multi-User Chat protocol), invitation, chat to group chat transformation, minimize group chat to roster"),
	2 => _("Emoticons, avatars, PEP (user activity, mood and tune)"),
	3 => _("Audio / video conferences"),
	4 => _("File transfer, room bookmarks"),
	5 => _("Metacontacts support"),
	6 => _("Trayicon, speller, extended chat history functionalities"),
	7 => _("TLS, GPG and End-To-End encryption support (with SSL legacy support)"),
	8 => _("Transport registration support"),
	9 => _("Service discovery including nodes, user search"),
	10 => _("Wikipedia, dictionary and search engine lookup"),
	11 => _("Multiple accounts support"),
	12 => _("DBus capabilities. Read")." <a href=\"http://trac.gajim.org/wiki/GajimDBus\">"._("more information")."</a>",
	13 => _("XML console"),
	14 => _("Link local (bonjour / zeroconf), BOSH"),
	15 => _("Other features via plugins"),
	16 => _("Gajim is available in 29 languages: Basque, Belarusian, Brasilian, British, Bulgarian, Chinese (simplified), Croatian, Czech, Danish, English, Esperanto, French, Galician, German, Hebrew, Hungarian, Italian, Japanese, Kazakh, Lithuanian, Norwegian (Bokmål), Polish, Russian, Serbian, Spanish, Slovak, Swedish, Turkish and Ukrainian"),
nkour's avatar
nkour committed
	);
nkour's avatar
nkour committed


$tpl->set_block("page","FEATURES","features");
for ($i=0; $i<sizeof($array_features); $i++) {
 $tpl->set_var("FEATURE", $array_features[$i]);
 $tpl->parse ("features", "FEATURES", true);
}

$tpl->set_var("NEWS_MAIN", _("NEWS"));
Yann Leboulanger's avatar
Yann Leboulanger committed
	0 => sprintf(_("Beta-release of Gajim %s"), "0.16"),
    1 => sprintf(_("Gajim %s is here!"), "0.15.4"),
    2 => sprintf(_("Gajim %s is here!"), "0.15.3"),
    3 => sprintf(_("Gajim %s is here!"), "0.15.2"),
    4 => sprintf(_("Gajim %s is here!"), "0.15.1"),
    5 => sprintf(_("Gajim %s is here!"), "0.15"),
//	5 => sprintf(_("Release candidate 5 of Gajim %s"), "0.13"),
//	7 => sprintf(_("Alpha-release of Gajim %s"), "0.12"));
//	3 => sprintf(_("New windows installer")),
Yann Leboulanger's avatar
Yann Leboulanger committed
	0 => _("16 December 2013"),
	1 => _("25 May 2013"),
	2 => _("17 March 2013"),
	3 => _("30 October 2012"),
	4 => _("29 August 2012"),
	5 => _("18 March 2012"),
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_desc = array(
Yann Leboulanger's avatar
Yann Leboulanger committed
	0 => sprintf(_("Version %s will arrive soon."), "0.16"),
Yann Leboulanger's avatar
Yann Leboulanger committed
    1 => sprintf(_("Version %s of Gajim has been released."), "0.15.4"),
    2 => sprintf(_("Version %s of Gajim has been released."), "0.15.3"),
    3 => sprintf(_("Version %s of Gajim has been released."), "0.15.2"),
    4 => sprintf(_("Version %s of Gajim has been released."), "0.15.1"),
    5 => sprintf(_("Version %s of Gajim has been released."), "0.15"),
//	6 => sprintf(_("Version %s will arrive very soon."), "0.12"),
//	7 => sprintf(_("Version %s will arrive soon."), "0.12"));
//	3 => sprintf(_("New Windows Installer with GTK+ included.")),
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_whats_new = array(
Yann Leboulanger's avatar
Yann Leboulanger committed
	0 => sprintf(_("What's new since %s:"), "0.15.4"),
	1 => sprintf(_("What's new since %s:"), "0.15.3"),
	2 => sprintf(_("What's new since %s:"), "0.15.2"),
	3 => sprintf(_("What's new since %s:"), "0.15.1"),
	4 => sprintf(_("What's new since %s:"), "0.15"),
	5 => sprintf(_("What's new since %s:"), "0.14.4"),
//	3 => sprintf(_("What's new in it:")),
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_items[0] = array(
Yann Leboulanger's avatar
Yann Leboulanger committed
    0 => _("Improve File transfer"),
    1 => _("Improve security"),
    2 => _("Improve audio / video calls"),
    3 => _("Last message correction"),
    4 => _("Full changelog, see") . " <a href = \"http://hg.gajim.org/gajim/file/gajim-0.16-beta2/ChangeLog\">"._("Full ChangeLog")."</a> ",
    5 => "<a href = \"http://trac.gajim.org/query?status=closed&amp;milestone=0.16\">"._("List of fixed bugs")."</a>",
	);

$array_news_items[1] = array(
    0 => _("Fix connection to non-SSL servers"),
    1 => _("Minor other fixes"),
    2 => _("Full changelog, see") . " <a href = \"http://hg.gajim.org/gajim/file/gajim-0.15.4/ChangeLog\">"._("Full ChangeLog")."</a> ",
Yann Leboulanger's avatar
Yann Leboulanger committed
    3 => "<a href = \"http://trac.gajim.org/query?status=closed&amp;milestone=0.15.4\">"._("List of fixed bugs")."</a>",
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_items[2] = array(
    0 => _("Better handling of SSL errors"),
    1 => _("Better handling of canceling file transfer"),
    2 => _("Improve farstream calls"),
    3 => _("Full changelog, see") . " <a href = \"http://hg.gajim.org/gajim/file/gajim-0.15.3/ChangeLog\">"._("Full ChangeLog")."</a> ",
Yann Leboulanger's avatar
Yann Leboulanger committed
    4 => "<a href = \"http://trac.gajim.org/query?status=closed&amp;milestone=0.15.3\">"._("List of fixed bugs")."</a>",
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_items[3] = array(
    0 => _("Fix crash when pressing ESC in chat window"),
    1 => _("Full changelog, see") . " <a href = \"http://hg.gajim.org/gajim/file/gajim-0.15.2/ChangeLog\">"._("Full ChangeLog")."</a> ",
Yann Leboulanger's avatar
Yann Leboulanger committed
    2 => "<a href = \"http://trac.gajim.org/query?status=closed&amp;milestone=0.15.2\">"._("List of fixed bugs")."</a>",
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_items[4] = array(
    0 => _("Switch to python-farstream"),
    1 => _("Fix several issues"),
    2 => _("Full changelog, see") . " <a href = \"http://hg.gajim.org/gajim/file/gajim-0.15.1/ChangeLog\">"._("Full ChangeLog")."</a> ",
Yann Leboulanger's avatar
Yann Leboulanger committed
    3 => "<a href = \"http://trac.gajim.org/query?status=closed&amp;milestone=0.15.1\">"._("List of fixed bugs")."</a>",
Yann Leboulanger's avatar
Yann Leboulanger committed
$array_news_items[5] = array(
Yann Leboulanger's avatar
Yann Leboulanger committed
    0 => _("Plugin system"),
    1 => _("Whiteboard (via a plugin)"),
    2 => _("Message archiving"),
    3 => _("Stream managment"),
    4 => _("Nested roster group"),
    5 => _("Roster filtrering"),
    6 => _("GPG and spell checking support for windows"),
    7 => _("Full changelog, see") . " <a href = \"http://hg.gajim.org/gajim/file/gajim-0.15/ChangeLog\">"._("Full ChangeLog")."</a> ",
Yann Leboulanger's avatar
Yann Leboulanger committed
    8 => "<a href = \"http://trac.gajim.org/query?status=closed&amp;milestone=0.15\">"._("List of fixed bugs")."</a>",
$tpl->set_block("page", "NEWS_LIST", "item"); // define intern block
$tpl->set_block("page", "NEWS", "news"); // define extern block
for ($i=0; $i<sizeof($array_news_title); $i++) {
 $tpl->set_var(array(
 	"NEWS_TITLE" => $array_news_title[$i],
 	"NEWS_DATE" => $array_news_date[$i],
	"NEWS_DESC" => $array_news_desc[$i],
	"NEWS_WHATS_NEW" => $array_news_whats_new[$i]));
 $tpl->set_var("item", "");
Yann Leboulanger's avatar
Yann Leboulanger committed
 for ($j=0; $j<sizeof($array_news_items[$i]); $j++) {
  $tpl->set_var("NEWS_ITEM", $array_news_items[$i][$j]);
  $tpl->parse ("item", "NEWS_LIST", true);
$tpl->parse("MyOutput","page",true);
$tpl->p("MyOutput");


  PiedDePage();

?>