downloads.php 12.3 KB
Newer Older
1
2
3
4
<?php

  require_once ("Design.php");
  
Yann Leboulanger's avatar
Yann Leboulanger committed
5
  Entete (_("Gajim, an XMPP client"), "GAJIM");
6

7
$download_folder = "1.0";
8
$last_version = "1.0.2";
nkour's avatar
fix    
nkour committed
9
print ("   <br/>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
10
print _("    Latest version of Gajim is")."  <strong>".$last_version."</strong><br/>\n";
11
//printf(_("    A %s version is in test"), "<strong>1.0.0-beta2</strong>");
12
print ("<br/>\n");
nkour's avatar
nkour committed
13
print _("If your distribution doesn't have the latest version ");
Yann Leboulanger's avatar
Yann Leboulanger committed
14
print _("you are advised to use the ")."<a href='#source' id='top-sourcelink'>"._("source tarball")."</a>\n";
nkour's avatar
nkour committed
15

Yann Leboulanger's avatar
Yann Leboulanger committed
16
17

#OS-Table START
18
print "<table id='os-logos'>\n<tr>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

$os_table = array(
    0 => array (
        "agilialinux",              # href / image
        "AgiliaLinux",              # Tooltip
        "AgiliaLinux (MOPSLinux)",  #text
    ),
    1 => array (
        "archlinux",
        "Archlinux",
        "Archlinux",
    ),
    2 => array (
        "debian",
        "Debian GNU/Linux",
        "Debian GNU/Linux",
    ),
    3 => array (
        "fedora",
        "Fedora",
        "Fedora",
    ),
    4 => array (
42
43
44
45
46
        "flatpak",
        "Flatpak",
        "Flatpak",
    ),
    5 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
47
48
49
50
        "freebsd",
        "FreeBSD",
        "FreeBSD",
    ),
51
    6 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
52
53
54
55
        "gentoo",
        "Gentoo",
        "Gentoo",
    ),
56
    7 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
57
58
59
60
        "mandriva",
        "Mandriva",
        "Mandriva",
    ),
61
    8 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
62
63
64
65
        "opensuse",
        "openSUSE",
        "openSUSE",
    ),
66
    9 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
67
68
69
70
        "pld",
        "PLD",
        "PLD",
    ),
71
    10 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
72
73
74
75
        "slackware",
        "Slackware",
        "Slackware",
    ),
76
    11 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
77
78
79
80
        "sourcemage",
        "SourceMage",
        "SourceMage",
    ),
81
    12 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
82
83
84
85
        "ubuntu",
        "Ubuntu",
        "Ubuntu",
    ),
86
    13 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
87
88
89
90
        "windows",
        "Windows",
        "Windows",
    ),
91
    14 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
92
93
94
95
        "zenwalk",
        "ZenWalk",
        "ZenWalk",
    ),
96
    15 => array (
Yann Leboulanger's avatar
Yann Leboulanger committed
97
98
99
100
101
102
103
104
105
106
        "source",
        "Other Linux",
        "Other Linux / Source",
    ),
);

foreach ($os_table as $num => $values) {
    if ((($num % 8) == 0) and ($num > 0)) {
        print "</tr>\n<tr>\n";
    }
107
    print "<td><a href='#" . $values[0] . "' title='";
Yann Leboulanger's avatar
Yann Leboulanger committed
108
    printf(_("Download Gajim for %s"), $values[1]);
Yann Leboulanger's avatar
Yann Leboulanger committed
109
    print "'><img src='imgs/" . $values[0] . ".png' class='os-logo' alt='" . $values[0] . "'/><br/>" . $values[2] . "</a></td>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
110
111
112
113
114
115
116
117

}

#OS-Table END
print "</tr></table>\n";

#Details START

Yann Leboulanger's avatar
Yann Leboulanger committed
118
print "<div id='os-details'>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
119
120

#1)AgiliaLinux
121
122
print "<div id='agilialinux'>\n";
print "<h2>AgiliaLinux:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
123
124
125
126
print _("Just")." <i>mpkg-install gajim</i>\n";
print "</div>\n";

#2)Archlinux
127
128
print "<div id='archlinux'>\n";
print "<h2>Archlinux:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
129
130
131
132
print _("Just")." <i>pacman -S gajim</i>\n";
print "</div>\n";

#3)Debian GNU/Linux
133
134
print "<div id='debian'>\n";
print "<h2>Debian GNU/Linux:</h2>\n";
135
print _("Just")." <i>sudo apt-get install gajim</i>\n";
nkour's avatar
nkour committed
136
print ("    <br/>\n");
137
138
//printf(_("   The Debian package of %s is available on our Debian repository. Follow below steps to use it, then install gajim with <i>sudo apt-get install gajim</i>"), "1.0.0-beta2");
//print ("    <br/>\n");
139
140
print _("    A daily package from git is also built. To use it:");
print "    <br/>\n";
141
print _("Remove Gajim:");
142
143
144
print "    <br/>\n";
print " <i>sudo apt-get remove gajim</i>";
print "    <br/>\n";
145
print _("Add the GPG key:");
146
147
148
print "    <br/>\n";
print " <i>wget -q https://gajim.org/gajim.key -O - | apt-key add -</i>";
print "    <br/>\n";
149
print _("Add the repository:");
150
151
152
print "    <br/>\n";
print "sudo sh -c \"echo deb ftp://ftp.gajim.org/debian unstable main > /etc/apt/sources.list.d/gajim.list\"";
print "    <br/>\n";
153
print _("Update the repository:");
154
155
156
print "    <br/>\n";
print " <i>sudo apt-get update</i>";
print "    <br/>\n";
157
print _("And install Gajim by doing:");
158
print "    <br/>\n";
159
print " <i>sudo apt-get install gajim-nightly</i>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
160
print "</div>\n";
nkour's avatar
nkour committed
161

Yann Leboulanger's avatar
Yann Leboulanger committed
162
#4)Fedora
163
164
print "<div id='fedora'>\n";
print "<h2>Fedora:</h2>\n";
165
print _("Just")." <i>dnf install gajim</i>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
166
print "</div>\n";
167

168
169
170
#5)Flatpak
print "<div id='flatpak'>\n";
print "<h2>Flatpak:</h2>\n";
171
printf(_("Instructions to build flatpak package are available %shere%s"), "<a href='https://dev.gajim.org/gajim/gajim/tree/master/flatpak'>", "</a>\n");
172
173
174
print "</div>\n";

#6)FreeBSD
175
176
print "<div id='freebsd'>\n";
print "<h2>FreeBSD:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
177
178
print _("Gajim is available in FreeBSD via FreeBSD ports. Just ")."<i> cd /usr/ports/net/gajim/ &amp;&amp; make install clean</i>. ";
print ("<a href='http://www.freebsd.org/cgi/ports.cgi?query=gajim'>");
Yann Leboulanger's avatar
Yann Leboulanger committed
179
180
print _("Find out more")."</a>.\n";
print "</div>\n";
nkour's avatar
arch    
nkour committed
181

182
#7)Gentoo
183
184
print "<div id='gentoo'>\n";
print "<h2>Gentoo:</h2>\n";
nkour's avatar
shorter    
nkour committed
185
print _("    Just")." <i>emerge gajim</i>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
186
print "</div>\n";
nkour's avatar
gentoo    
nkour committed
187

188
#8)Mandriva
189
190
print "<div id='mandriva'>\n";
print "<h2>Mandriva:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
191
192
print _("Just")." <i>urpmi gajim</i>\n";
print "</div>\n";
nkour's avatar
nkour committed
193

194
#9)openSUSE
195
196
print "<div id='opensuse'>\n";
print "<h2>openSUSE:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
197
198
print _("One click install for openSuSE")." <a href='http://software.opensuse.org/ymp/server:messaging/openSUSE_12.2/gajim.ymp'>12.2</a>, <a href='http://software.opensuse.org/ymp/server:messaging/openSUSE_12.3/gajim.ymp'>12.3</a><br/>";
print _("For other versions, ")."<a href='http://software.opensuse.org/package/gajim?search_term=Gajim'>"._("get it here")."</a><br/>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
199
print "</div>\n";
200

201
#10)PLD
202
203
print "<div id='pld'>\n";
print "<h2>PLD:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
204
205
print _("Just")." <i>poldek -U gajim</i>\n";
print "</div>\n";
206

207
#11)Slackware
208
209
print "<div  id='slackware'>\n";
print "<h2>Slackware:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
210
print _("You can get the Slackware package of Gajim")." <a href='http://slackbuilds.org/result/?search=gajim&amp;sv=all'> "._("here")."</a>.";
Yann Leboulanger's avatar
Yann Leboulanger committed
211
print "</div>\n";
212

213
#12)SourceMage
214
215
print "<div id='sourcemage'>\n";
print "<h2>SourceMage:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
216
217
print _("Just")." <i>cast gajim</i>\n";
print "</div>\n";
nkour's avatar
nkour committed
218

219
#13)Ubuntu
220
221
print "<div id='ubuntu'>\n";
print "<h2>Ubuntu:</h2>\n";
222
print _("Just")." <i>sudo apt-get install gajim</i>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
223
print ("<br/>\n");
224
print ("    <br/>\n");
225
226
print _("    A daily package from git is also built. To use it:");
print "    <br/>\n";
227
print _("Remove Gajim:");
228
229
230
print "    <br/>\n";
print " <i>sudo apt-get remove gajim</i>";
print "    <br/>\n";
231
print _("Add the GPG key:");
232
233
234
print "    <br/>\n";
print " <i>wget -q https://gajim.org/gajim.key -O - | apt-key add -</i>";
print "    <br/>\n";
235
print _("Add the repository:");
236
237
238
print "    <br/>\n";
print "sudo sh -c \"echo deb ftp://ftp.gajim.org/debian unstable main > /etc/apt/sources.list.d/gajim.list\"";
print "    <br/>\n";
239
print _("Update the repository:");
240
241
242
print "    <br/>\n";
print " <i>sudo apt-get update</i>";
print "    <br/>\n";
243
print _("And install Gajim by doing:");
244
print "    <br/>\n";
245
print " <i>sudo apt-get install gajim-nightly</i>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
246
print "</div>\n";
nkour's avatar
nkour committed
247

248
#14)Windows
249
250
print "<div id='windows'>\n";
print "<h2>Windows:</h2>\n";
251
252
print _("There is a")." <a href='downloads/".$download_folder."/gajim-".$last_version."-32bits-1.exe'>"._("32 bits Gajim installer")."</a>\n";
print _("and a")." <a href='downloads/".$download_folder."/gajim-".$last_version."-64bits-1.exe'>"._("64 bits Gajim installer")."</a>\n";
253
print ("<br/>\n");
254
255
print _("There is also a")." <a href='downloads/".$download_folder."/gajim-portable-".$last_version."-32bits-1.exe'>"._("32 bits Gajim portable installer")."</a>.\n";
print _("and a")." <a href='downloads/".$download_folder."/gajim-portable-".$last_version."-64bits-1.exe'>"._("64 bits Gajim portable installer")."</a>.\n";
256
257
258
259
260
261
262
//print ("<br/>\n");
//print ("<br/>\n");
//print _("Here is a")." <a href='downloads/1.0/gajim-1.0.0-beta2-1.exe'>"._("Gajim installer")."</a> ";
//printf(_("for %s version "), "1.0.0-beta2\n");
//print ("<br/>\n");
//print _("and a")." <a href='downloads/1.0/gajim-portable-1.0.0-beta2-1.exe'>"._("Gajim portable installer")."</a>\n";
//printf(_("for %s version "), "1.0.0-beta2\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
263
print "</div>\n";
nkour's avatar
nkour committed
264

265
#15)ZenWalk
266
267
print "<div id='zenwalk'>\n";
print "<h2>ZenWalk:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
268
269
print _("Just")." <i>netpkg gajim</i>\n";
print "</div>\n";
nkour's avatar
fix    
nkour committed
270

271
#16)other Linux
272
273
print "<div id='source'>\n";
print "<h2>"._("Other Linux / source").":</h2>\n";
274
275
276
print _("    The tarball version of Gajim is ")."<a href='downloads/".$download_folder."/gajim-".$last_version.".tar.bz2'>"._("here")."</a>. "._("For information on how to build Gajim,")." <a href='https://dev.gajim.org/gajim/gajim/blob/gajim_1.0/README.md'>"._("see the <tt>README</tt>")."</a> ("._("in English").").<br />\n";
//printf(_("   The tarball version of %s is "), "1.0.0-beta2");
//print "<a href='downloads/1.0/gajim-1.0.0-beta2.tar.gz'>"._("here")."</a>.<br />\n";
277
print _("If you want to use the last unstable development version, then you should checkout the git repository.\n");
nkour's avatar
nkour committed
278
279


nkour's avatar
fix    
nkour committed
280
print ("   <br/>\n");
281
print ("<a name='git'/>\n");
nkour's avatar
nkour committed
282
print ("     <h2>\n");
283
print _("      git\n");
nkour's avatar
nkour committed
284
print ("     </h2>\n");
285
print _("     The git repository is available at this address: ")."https://dev.gajim.org/gajim/gajim "._("and viewable")." <a href='https://dev.gajim.org/gajim/gajim'>"._("here")."</a>.\n";
286
print ("     <br/>\n");
nkour's avatar
nkour committed
287
print ("     <h3>\n");
288
print _("      Under GNU/Linux\n");
nkour's avatar
nkour committed
289
print ("     </h3>\n");
nkour's avatar
test    
nkour committed
290
print _("     In order to download Gajim sources, here is what you have to do:\n");
291
print _("     You first have to install git (<i>apt-get install git</i> under Debian)\n");
292
print ("     <br/>\n");
nkour's avatar
test    
nkour committed
293
print _("     Then in a console, enter the following commands:\n");
294
295
296
print ("     <br/>\n");
print ("     <br/>\n");
print ("   <i>\n");
297
print ("    git clone https://dev.gajim.org/gajim/gajim.git gajim\n");
298
299
300
print ("   </i>\n");
print ("     <br/>\n");
print ("     <br/>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
301
print _("   Install dependencies, and build Gajim. Please see the")." <a href='https://dev.gajim.org/gajim/gajim/blob/master/README.md'><code>README</code></a> ("._("English").") "._("for details.\n");
302
303
print ("     <br/>\n");
print ("     <br/>\n");
nkour's avatar
nkour committed
304
305
print _("   You can run Gajim by typing the following:\n");
print ("     <br/>\n");
nkour's avatar
nkour committed
306
print ("     <br/>\n");
nkour's avatar
nkour committed
307
print ("     <i>\n");
nkour's avatar
typo    
nkour committed
308
print ("    cd gajim")."</i> "._("and then")."<i> "."./launch.sh\n";
nkour's avatar
nkour committed
309
310
311
print ("   </i>\n");
print ("     <br/>\n");
print ("     <br/>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
312
print _("   Once you have the repository, you can update it periodically so it matches the latest version from the main repository with the following command:\n");
313
print ("     <br/>\n");
nkour's avatar
nkour committed
314
print ("     <br/>\n");
315
print ("     <i>\n");
Philipp Hörist's avatar
Philipp Hörist committed
316
print ("    git pull\n");
317
318
print ("   </i>\n");
print ("     <br/>\n");
nkour's avatar
nkour committed
319

nkour's avatar
nkour committed
320
print ("     <h3>\n");
321
print _("      Under Windows\n");
nkour's avatar
nkour committed
322
print ("     </h3>\n");
323
print _("   You first have to install git for windows. In order to do that, download the binary")." <a href='https://git-scm.com/download/win/'>"._("here")."</a>\n";
324
print ("     <br/>\n");
325
print _("   Once git is installed, the commands are the same with those under GNU/Linux. Only difference is instead of launch.sh you run launch.bat. Enter them in an MS-DOS command line and you're done.");
326
print ("   <br/>\n");
327
print _("   To run Gajim, you need external libraries. You can find a tutorial on the way to install them")." <a href='https://dev.gajim.org/gajim/gajim/wikis/development/Win32Env'>"._("On the Wiki")."</a>.\n";
328
print ("   <br/>\n");
329

Yann Leboulanger's avatar
Yann Leboulanger committed
330
print ("<a name='snaps'/>\n");
nkour's avatar
nkour committed
331
332
333
print ("   <h2>\n");
print _("    Daily Snapshots\n");
print ("   </h2>\n");
334
print _("    Everyday on 01:00 (GMT+1 time) gz tarballs are produced from git. You can use them if Git is broken for you at the moment.")." <a href='downloads/snap/?M=D'>"._("Here to get them")."</a>.\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
335
336
337
338
339
340
341
342
343
print "</div>\n";

print "</div>\n";

#Details END

#JavaScript START

print "
Yann Leboulanger's avatar
Yann Leboulanger committed
344
<script type='text/javascript'>
Yann Leboulanger's avatar
Yann Leboulanger committed
345
//<![CDATA[
346
347
348
349
350
351
352
353
354
(function() {
    var details = (function(logos) {
        var details = {};
        for (var i = 0; i < logos.length; ++i) {
            var os = logos[i].alt;
            details[os] = document.getElementById(os);
        }
        return details;
    })(document.getElementsByClassName('os-logo'));
Yann Leboulanger's avatar
Yann Leboulanger committed
355
	
356
357
358
359
360
361
362
363
364
365
    var hide_descriptions = function() {
        for (os in details)
            details[os].style.display = 'none';
    }

    var show_os_description = function() {
        hide_descriptions();
        var detail = details[location.hash.substr(1)];
        if (detail !== undefined)
            detail.style.display = 'block';
366
    }
367
368
369
370
371

    window.addEventListener('hashchange', show_os_description, false);
    show_os_description();

})();
Yann Leboulanger's avatar
Yann Leboulanger committed
372
//]]>
Yann Leboulanger's avatar
Yann Leboulanger committed
373
374
375
376
377
</script>
";

#JavaScript END

nkour's avatar
nkour committed
378

Yann Leboulanger's avatar
Yann Leboulanger committed
379
print ("<a name='old'/>\n");
nkour's avatar
nkour committed
380
print ("   <h2>\n");
381
print _("    Old releases\n");
nkour's avatar
nkour committed
382
print ("   </h2>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
383
print _("    You'll find old releases of Gajim")." <a href='downloads/'>"._("here")."</a>.\n";
384
385
386
387

  PiedDePage();

?>