root/www-website/index.php

Revision 10338, 8.9 kB (checked in by roidelapluie, 9 days ago)

add "much faster roster" on home page

Line 
1<?php
2
3include "template.inc";
4
5  require_once ("Design.php");
6 
7  Entete (_("Gajim, a Jabber client"), "GAJIM");
8
9$tpl = new Template("templates");
10$tpl->set_file("page","index.tpl");
11$tpl->set_var("HELLO", _("Hello and welcome to the Gajim project website"));
12
13$array_line_begin = array(
14    0 => _("The goal of Gajim is to provide a full featured and easy to use Jabber 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 how Gajim can be better please send tickets")." <a href=\"http://trac.gajim.org/newticket\">"._("here")."</a>.");
15   
16$tpl->set_block("page","LINES_BEGIN","line");
17for ($i=0; $i<sizeof($array_line_begin); $i++) {
18 $tpl->set_var("LINE_BEGIN", $array_line_begin[$i]);
19 $tpl->parse("line","LINES_BEGIN",true);
20}
21
22$tpl->set_var("FEATURES_TITLE", _("FEATURES:"));
23$array_features = array(
24    0 => _("Tabbed chat window and single window modes"),
25    1 => _("Group chat support (with MUC protocol), invitation, chat to groupchat transformation, minimize groupchat to roster"),
26    2 => _("Emoticons, Avatars, PEP (user activity, mood and tune)"),
27    3 => _("File transfer, Room Bookmarks"),
28    4 => _("Metacontacts Support"),
29    5 => _("Trayicon, Speller, extented chat history functionalities"),
30    6 => _("TLS, GPG and End-To-End encryption support (with SSL legacy support)"),
31    7 => _("Transport Registration support"),
32    8 => _("Service Discovery including Nodes, user search"),
33    9 => _("Wikipedia, dictionary and search engine lookup"),
34    10 => _("Multiple accounts support"),
35    11 => _("DBus Capabilities. Read")." <a href=\"http://trac.gajim.org/wiki/GajimDBus\">"._("more information")."</a>",
36    12 => _("XML Console"),
37    13 => _("link local (bonjour / zeroconf)"),
38    14 => _("Gajim is available in 27 languages: Basque, Belarusian, Brasilian, Breton, British, Bulgarian, Chinese (simplified), Croatian, Czech, Danish, Dutch, English, Esperanto, French, Galician, German, Greek, Italian, Lithuanian, Norwegian (Bokmål), Polish, Portugese, Russian, Serbian, Spanish, Slovak and Swedish"),
39    );
40
41
42$tpl->set_block("page","FEATURES","features");
43for ($i=0; $i<sizeof($array_features); $i++) {
44 $tpl->set_var("FEATURE", $array_features[$i]);
45 $tpl->parse ("features", "FEATURES", true);
46}
47
48$tpl->set_var("NEWS_MAIN", _("NEWS"));
49
50$array_news_title = array(
51    0 => sprintf(_("Alpha-release of Gajim %s"), "0.12"),
52    1 => sprintf(_("New windows installer")),
53    2 => sprintf(_("New windows installer")),
54    3 => sprintf(_("Gajim %s is here!"), "0.11.4"),
55    4 => sprintf(_("Gajim %s is here!"), "0.11.3"),
56    5 => sprintf(_("Gajim %s is here!"), "0.11.2"),
57    6 => sprintf(_("Pre-release of Gajim %s"), "0.11.2"),
58    7 => sprintf(_("Gajim %s is here!"), "0.11.1"),
59    8 => sprintf(_("Pre-release of Gajim %s"), "0.11.1"),
60    9 => sprintf(_("Gajim %s is here!"), "0.11"));
61$array_news_date = array(
62    0 => _("12 August 2008"),
63    1 => _("01 April 2008"),
64    2 => _("13 December 2007"),
65    3 => _("06 December 2007"),
66    4 => _("17 November 2007"),
67    5 => _("22 September 2007"),
68    6 => _("09 September 2007"),
69    7 => _("18 February 2007"),
70    8 => _("07 February 2007"),
71    9 => _("19 December 2006"));
72
73$array_news_desc = array(
74    0 => sprintf(_("Version %s will arrive soon."), "0.12"),
75    1 => sprintf(_("New Windows Installer with GTK+ included.")),
76    2 => sprintf(_("New Windows Installer with GTK+ included.")),
77    3 => sprintf(_("Version %s of Gajim has been released."), "0.11.4"),
78    4 => sprintf(_("Version %s of Gajim has been released."), "0.11.3"),
79    5 => sprintf(_("Version %s of Gajim has been released."), "0.11.2"),
80    6 => sprintf(_("Version %s will arrive soon."), "0.11.2"),
81    7 => sprintf(_("Version %s of Gajim has been released."), "0.11.1"),
82    8 => sprintf(_("Version %s will arrive soon."), "0.11.1"),
83    9 => sprintf(_("Version %s of Gajim has been released."), "0.11"));
84
85$array_news_whats_new = array(
86    0 => sprintf(_("What's new since %s:"), "0.11.4"),
87    1 => sprintf(_("What's new in it:")),
88    2 => sprintf(_("What's new in it:")),
89    3 => sprintf(_("What's new since %s:"), "0.11.3"),
90    4 => sprintf(_("What's new since %s:"), "0.11.2"),
91    5 => sprintf(_("What's new since %s:"), "0.11.1"),
92    6 => sprintf(_("What's new since %s:"), "0.11.1"),
93    7 => sprintf(_("What's new since %s:"), "0.11"),
94    8 => sprintf(_("What's new since %s:"), "0.11"),
95    9 => sprintf(_("What's new since %s:"), "0.10.1"));
96
97$array_news_items[0] = array(
98    0 => _("Security improvements: End-to-End encryption, SSL certificat verification"),
99    1 => _("Ability to minimize groupchats in roster"),
100    2 => _("Chat to groupchat transformation"),
101    3 => _("Block/Unblock contacts directly from roster"),
102    4 => _("Single window mode"),
103    5 => _("PEP support (User activity, mood and tune)"),
104    6 => _("Much faster contact list"),
105    7 => "<a href = \"http://trac.gajim.org/browser/tags/gajim-0.12-alpha1/ChangeLog\">"._("Full ChangeLog")."</a> ",
106    8 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.12\">"._("Bugs/Annoyances closed")."</a>",
107    9 => "<a href = \"http://trac.gajim.org/query?status=assigned&status=new&status=reopened&milestone=0.12\">"._("Known Bugs/Annoyances")."</a>",
108    );
109
110$array_news_items[1] = array(
111    0 => _("GTK+ 2.12.9 is included. This fixes a bug when minimizing Gajim to taskbar, and improve stability.")
112    );
113
114$array_news_items[2] = array(
115    0 => _("GTK+ 2.12.3 is included instead of 2.10.11. This fixes a bug when right clicking on systray icon."),
116    1 => _("Fix decoding error when replying to jabber:iq:time request."),
117    );
118
119$array_news_items[3] = array(
120    0 => _("This is a bug-fix only release."),
121    1 => "<a href = \"http://trac.gajim.org/browser/tags/gajim-0.11.4/ChangeLog\">"._("Full ChangeLog")."</a> ",
122    2 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11.4\">"._("Bugs/Annoyances closed")."</a>",
123    );
124
125$array_news_items[4] = array(
126    0 => _("This is a bug-fix only release."),
127    1 => _("New danish translation"),
128    2 => "<a href = \"http://trac.gajim.org/browser/branches/gajim_0.11.2/ChangeLog\">"._("Full ChangeLog")."</a> ",
129    3 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11.3\">"._("Bugs/Annoyances closed")."</a>",
130    );
131
132$array_news_items[5] = array(
133    0 => _("This is a bug-fix only release. Nothing new"),
134    1 => "<a href = \"http://trac.gajim.org/browser/branches/gajim_0.11.1/ChangeLog\">"._("Full ChangeLog")."</a> ",
135    2 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11.2\">"._("Bugs/Annoyances closed")."</a>",
136    );
137
138$array_news_items[6] = array(
139    0 => _("This is a bug-fix only release. Nothing new"),
140    1 => "<a href = \"http://trac.gajim.org/browser/branches/gajim_0.11.1/ChangeLog\">"._("Full ChangeLog")."</a> ",
141    2 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11.2\">"._("Bugs/Annoyances closed")."</a>",
142    );
143
144$array_news_items[7] = array(
145    0 => _("Fix Idle and non-ascii languages under Windows"),
146    1 => _("Fix International Domain Name usage"),
147    2 => _("Fixed avatars cache problems in group chats"),
148    3 => _("Support of XEP-0202 (Entity Time)"),
149    4 => _("Support of XEP-0199 (XMPP Ping)"),
150    5 => _("New translation: Serbian"),
151    6 => _("Fix pubsub usage"),
152    7 => "<a href = \"http://trac.gajim.org/browser/branches/gajim_0.11/ChangeLog\">"._("Full ChangeLog")."</a> ",
153    8 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11.1\">"._("Bugs/Annoyances closed")."</a>",
154    );
155
156$array_news_items[8] = array(
157    0 => _("Fix Idle and non-ascii languages under Windows"),
158    1 => _("Fix International Domain Name usage"),
159    2 => _("Fixed avatars cache problems in group chats"),
160    3 => _("Support of XEP-0202 (Entity Time)"),
161    4 => _("Support of XEP-0199 (XMPP Ping)"),
162    5 => "<a href = \"http://trac.gajim.org/browser/branches/gajim_0.11/ChangeLog\">"._("Full ChangeLog")."</a> ",
163    6 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11.1\">"._("Bugs/Annoyances closed")."</a>",
164    );
165
166$array_news_items[9] = array(
167    0 => _("Support for link-local messaging via Zeroconf using Avahi"),
168    1 => _("Support for Network Manager"),
169    2 => _("IPv6 support to connect to server"),
170    3 => _("XHTML Support"),
171    4 => _("Privacy Lists support"),
172    5 => _("Ad-Hoc commands"),
173    6 => _("GNOME Keyring support"),
174    7 => "<a href = \"http://trac.gajim.org/browser/branches/gajim_0.11/ChangeLog\">"._("Full ChangeLog")."</a> ",
175    8 => "<a href = \"http://trac.gajim.org/query?status=closed&milestone=0.11\">"._("Bugs/Annoyances closed")."</a>",
176    );
177
178$tpl->set_block("page", "NEWS_LIST", "item"); // define intern block
179$tpl->set_block("page", "NEWS", "news"); // define extern block
180for ($i=0; $i<sizeof($array_news_title); $i++) {
181 $tpl->set_var(array(
182     "NEWS_TITLE" => $array_news_title[$i],
183     "NEWS_DATE" => $array_news_date[$i],
184    "NEWS_DESC" => $array_news_desc[$i],
185    "NEWS_WHATS_NEW" => $array_news_whats_new[$i]));
186 $tpl->set_var("item", "");
187 for ($j=0; $j<sizeof($array_news_items[$i]); $j++) {
188  $tpl->set_var("NEWS_ITEM", $array_news_items[$i][$j]);
189  $tpl->parse ("item", "NEWS_LIST", true);
190 }
191 $tpl->parse ("news","NEWS",true);
192}
193
194$tpl->parse("MyOutput","page",true);
195$tpl->p("MyOutput");
196
197
198  PiedDePage();
199
200?>
Note: See TracBrowser for help on using the browser.