downloads.php 12.8 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

Yann Leboulanger's avatar
Yann Leboulanger committed
7
$download_folder = "1.1";
Yann Leboulanger's avatar
Yann Leboulanger committed
8
$last_version = "1.1.1";
nkour's avatar
fix  
nkour committed
9
print ("   <br/>\n");
10
print _("    Latest version of Gajim is")."  <strong>".$last_version."</strong><br/>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
11
#printf(_("    A %s version is in test"), "<strong>1.1.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

16 17

#OS-Table START
18
print "<table id='os-logos'>\n<tr>\n";
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 (
47 48 49 50
        "freebsd",
        "FreeBSD",
        "FreeBSD",
    ),
51
    6 => array (
52 53 54 55
        "gentoo",
        "Gentoo",
        "Gentoo",
    ),
56
    7 => array (
57 58 59 60
        "mandriva",
        "Mandriva",
        "Mandriva",
    ),
61
    8 => array (
62 63 64 65
        "opensuse",
        "openSUSE",
        "openSUSE",
    ),
66
    9 => array (
67 68 69 70
        "pld",
        "PLD",
        "PLD",
    ),
71
    10 => array (
72 73 74 75
        "slackware",
        "Slackware",
        "Slackware",
    ),
76
    11 => array (
77 78 79 80
        "sourcemage",
        "SourceMage",
        "SourceMage",
    ),
81
    12 => array (
82 83 84 85
        "ubuntu",
        "Ubuntu",
        "Ubuntu",
    ),
86
    13 => array (
87 88 89 90
        "windows",
        "Windows",
        "Windows",
    ),
91
    14 => array (
92 93 94 95
        "zenwalk",
        "ZenWalk",
        "ZenWalk",
    ),
96
    15 => array (
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='";
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";
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";
119 120

#1)AgiliaLinux
121 122
print "<div id='agilialinux'>\n";
print "<h2>AgiliaLinux:</h2>\n";
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";
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
print ("    <br/>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
138 139
#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.1.0-beta2");
#print ("    <br/>\n");
140
print _("    A daily package from git is also built. To use it, you need to use unstable repository (or at least backports). Then follow these steps:");
141
print "    <br/>\n";
142
print _("Remove Gajim:");
143 144 145
print "    <br/>\n";
print " <i>sudo apt-get remove gajim</i>";
print "    <br/>\n";
146
print _("Add the GPG key:");
147 148 149
print "    <br/>\n";
print " <i>wget -q https://gajim.org/gajim.key -O - | apt-key add -</i>";
print "    <br/>\n";
150
print _("Add the repository:");
151
print "    <br/>\n";
Philipp Hörist's avatar
Philipp Hörist committed
152
print "sudo sh -c \"echo deb https://ftp.gajim.org/debian unstable main > /etc/apt/sources.list.d/gajim.list\"";
153
print "    <br/>\n";
154
print _("Update the repository:");
155 156 157
print "    <br/>\n";
print " <i>sudo apt-get update</i>";
print "    <br/>\n";
158
print _("And install Gajim by doing:");
159
print "    <br/>\n";
160
print " <i>sudo apt-get install gajim-nightly</i>\n";
161
print "</div>\n";
nkour's avatar
nkour committed
162

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

169 170 171
#5)Flatpak
print "<div id='flatpak'>\n";
print "<h2>Flatpak:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
172 173
printf(_("You can find %sGajim on flathub%s."), "<a href='https://flathub.org/apps/details/org.gajim.Gajim'>", "</a>");
print "<br/>\n";
174
printf(_("Instructions to build flatpak package are available %shere%s"), "<a href='https://dev.gajim.org/gajim/gajim/tree/master/flatpak'>", "</a>\n");
175 176 177
print "</div>\n";

#6)FreeBSD
178 179
print "<div id='freebsd'>\n";
print "<h2>FreeBSD:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
180 181
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'>");
182 183
print _("Find out more")."</a>.\n";
print "</div>\n";
nkour's avatar
arch  
nkour committed
184

185
#7)Gentoo
186 187
print "<div id='gentoo'>\n";
print "<h2>Gentoo:</h2>\n";
nkour's avatar
nkour committed
188
print _("    Just")." <i>emerge gajim</i>\n";
189
print "</div>\n";
nkour's avatar
nkour committed
190

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

197
#9)openSUSE
198 199
print "<div id='opensuse'>\n";
print "<h2>openSUSE:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
200 201
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";
202
print "</div>\n";
203

204
#10)PLD
205 206
print "<div id='pld'>\n";
print "<h2>PLD:</h2>\n";
207 208
print _("Just")." <i>poldek -U gajim</i>\n";
print "</div>\n";
209

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

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

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

251
#14)Windows
252 253
print "<div id='windows'>\n";
print "<h2>Windows:</h2>\n";
Yann Leboulanger's avatar
Yann Leboulanger committed
254 255
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";
256
print ("<br/>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
257 258
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";
Yann Leboulanger's avatar
Yann Leboulanger committed
259 260 261 262 263 264 265 266 267
#print ("<br/>\n");
#print ("<br/>\n");
#print _("Here is a")." <a href='downloads/1.1/gajim-1.1.0-beta2-32bits-1.exe'>"._("32 bits Gajim installer")."</a> ";
#print _("and a")." <a href='downloads/1.1/gajim-1.1.0-beta2-64bits-1.exe'>"._("64 bits Gajim installer")."</a> ";
#printf(_("for %s version "), "1.1.0-beta2\n");
#print ("<br/>\n");
#print _("There is also a")." <a href='downloads/1.1/gajim-portable-1.1.0-beta2-32bits-1.exe'>"._("32 bits Gajim portable installer")."</a>\n";
#print _("and a")." <a href='downloads/1.1/gajim-portable-1.1.0-beta2-64bits-1.exe'>"._("64 bits Gajim portable installer")."</a>\n";
#printf(_("for %s version "), "1.1.0-beta2\n");
268
print "</div>\n";
nkour's avatar
nkour committed
269

270
#15)ZenWalk
271 272
print "<div id='zenwalk'>\n";
print "<h2>ZenWalk:</h2>\n";
273 274
print _("Just")." <i>netpkg gajim</i>\n";
print "</div>\n";
nkour's avatar
fix  
nkour committed
275

276
#16)other Linux
277 278
print "<div id='source'>\n";
print "<h2>"._("Other Linux / source").":</h2>\n";
279
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";
Yann Leboulanger's avatar
Yann Leboulanger committed
280 281
#printf(_("   The tarball version of %s is "), "1.1.0-beta2");
#print "<a href='downloads/1.1/gajim-1.1.0-beta2.tar.gz'>"._("here")."</a>.<br />\n";
282
print _("If you want to use the last unstable development version, then you should checkout the git repository.\n");
nkour's avatar
nkour committed
283 284


nkour's avatar
fix  
nkour committed
285
print ("   <br/>\n");
286
print ("<a name='git'/>\n");
nkour's avatar
nkour committed
287
print ("     <h2>\n");
288
print _("      git\n");
nkour's avatar
nkour committed
289
print ("     </h2>\n");
290
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";
291
print ("     <br/>\n");
nkour's avatar
nkour committed
292
print ("     <h3>\n");
293
print _("      Under GNU/Linux\n");
nkour's avatar
nkour committed
294
print ("     </h3>\n");
nkour's avatar
test  
nkour committed
295
print _("     In order to download Gajim sources, here is what you have to do:\n");
296
print _("     You first have to install git (<i>apt-get install git</i> under Debian)\n");
297
print ("     <br/>\n");
nkour's avatar
test  
nkour committed
298
print _("     Then in a console, enter the following commands:\n");
299 300 301
print ("     <br/>\n");
print ("     <br/>\n");
print ("   <i>\n");
302
print ("    git clone https://dev.gajim.org/gajim/gajim.git gajim\n");
303 304 305
print ("   </i>\n");
print ("     <br/>\n");
print ("     <br/>\n");
306
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");
307 308
print ("     <br/>\n");
print ("     <br/>\n");
309 310
print _("   You can run Gajim by typing the following:\n");
print ("     <br/>\n");
nkour's avatar
nkour committed
311
print ("     <br/>\n");
312
print ("     <i>\n");
nkour's avatar
typo  
nkour committed
313
print ("    cd gajim")."</i> "._("and then")."<i> "."./launch.sh\n";
314 315 316
print ("   </i>\n");
print ("     <br/>\n");
print ("     <br/>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
317
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");
318
print ("     <br/>\n");
nkour's avatar
nkour committed
319
print ("     <br/>\n");
320
print ("     <i>\n");
Philipp Hörist's avatar
Philipp Hörist committed
321
print ("    git pull\n");
322 323
print ("   </i>\n");
print ("     <br/>\n");
324

nkour's avatar
nkour committed
325
print ("     <h3>\n");
326
print _("      Under Windows\n");
nkour's avatar
nkour committed
327
print ("     </h3>\n");
328
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";
329
print ("     <br/>\n");
330
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.");
331
print ("   <br/>\n");
332
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";
333
print ("   <br/>\n");
334

Yann Leboulanger's avatar
Yann Leboulanger committed
335
print ("<a name='snaps'/>\n");
nkour's avatar
nkour committed
336 337 338
print ("   <h2>\n");
print _("    Daily Snapshots\n");
print ("   </h2>\n");
339
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";
340 341 342 343 344 345 346 347 348
print "</div>\n";

print "</div>\n";

#Details END

#JavaScript START

print "
Yann Leboulanger's avatar
Yann Leboulanger committed
349
<script type='text/javascript'>
Yann Leboulanger's avatar
Yann Leboulanger committed
350
//<![CDATA[
351 352 353 354 355 356 357 358 359
(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'));
360
	
361 362 363 364 365 366 367 368 369 370
    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';
371
    }
372 373 374 375 376

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

})();
Yann Leboulanger's avatar
Yann Leboulanger committed
377
//]]>
378 379 380 381 382
</script>
";

#JavaScript END

nkour's avatar
nkour committed
383

Yann Leboulanger's avatar
Yann Leboulanger committed
384
print ("<a name='old'/>\n");
nkour's avatar
nkour committed
385
print ("   <h2>\n");
386
print _("    Old releases\n");
nkour's avatar
nkour committed
387
print ("   </h2>\n");
Yann Leboulanger's avatar
Yann Leboulanger committed
388
print _("    You'll find old releases of Gajim")." <a href='downloads/'>"._("here")."</a>.\n";
389 390 391 392

  PiedDePage();

?>