annotate sat_website/screenshots.py @ 70:d6bf5414c6c4

French translation fixed by Samuel
author souliane <souliane@mailoo.org>
date Wed, 27 May 2015 14:50:51 +0200
parents 746e53efc188
children 6652924221ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
1 #!/usr/bin/python
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
3 """
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
4 SàT website: Salut à Toi's presentation website
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
5 Copyright (C) 2012 Jérôme Poisson (goffi@goffi.org)
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
6
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
7 This file is part of SàT website.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
8
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
9 SàT website is free software: you can redistribute it and/or modify
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
10 it under the terms of the GNU Affero General Public License as published by
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
11 the Free Software Foundation, either version 3 of the License, or
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
12 (at your option) any later version.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
13
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
14 Foobar is distributed in the hope that it will be useful,
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
17 GNU Affero General Public License for more details.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
18
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
19 You should have received a copy of the GNU Affero General Public License
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
20 along with Foobar. If not, see <http://www.gnu.org/licenses/>.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
21 """
2
0df46e87537d i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents: 0
diff changeset
22 from django.utils.translation import ugettext_lazy as _
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
23 from django.conf import settings
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
24 from collections import namedtuple
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
25 import os.path
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
26
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
27 ImageDesc = namedtuple("ImageDesc", "path description data")
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
28 VideoDesc = namedtuple("VideoDesc", "path description poster data")
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
29
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
30 media_path = os.path.normpath(settings.MEDIA_EXTERNAL_URL)
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
31 screencasts = os.path.join(media_path, "screencasts") + "/"
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
32
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
33
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
34 #list the pictures
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
35
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
36 screenshots = [
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
37 ImageDesc("images/screenshots/0.5/overview_libervia.png", _(u"Overview"),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
38 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
47
3e460ca969d2 delete screenshots_tech.html, display all screenshots in the same page using sections
souliane <souliane@mailoo.org>
parents: 46
diff changeset
39 ImageDesc("images/screenshots/0.5/http_unsecure_warning.png", _(u"Optional security check"),
3e460ca969d2 delete screenshots_tech.html, display all screenshots in the same page using sections
souliane <souliane@mailoo.org>
parents: 46
diff changeset
40 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
41 ImageDesc("images/screenshots/0.4/sat_wysiwyg.png", _(u"Rich text editor"),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
42 {_(u"frontend"): "libervia", _(u"version"): "0.4", _(u"year"): "2014"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
43 VideoDesc(screencasts + "présentation_SàT_5_radio_collective.webm", _(u"Demo of the new Libervia UI, and of the collective radio feature"), screencasts + "posters/radiocol.jpg",
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
44 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2012", _(u"language"): "fr"}),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
45 ImageDesc("images/screenshots/libervia/libervia_login.png", _(u"Libervia's login page"),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
46 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
47 ImageDesc("images/screenshots/libervia/libervia_discussions.png", _(u"Libervia's main view"),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
48 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
49 ImageDesc("images/screenshots/wix/wix_tarot.png", _(u"Wix showing a french Tarot play"),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
50 {_(u"frontend"): "wix", _(u"version"): "0.2", _(u"year"): "2011"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
51 VideoDesc(screencasts + "présentation_SàT_3.webm", _(u"This video focuses on Libervia. The UI is really outdated, but we can see some features"), screencasts + "posters/présentation_SàT_3.jpg",
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
52 {_(u"frontend"): "libervia", _(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}),
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
53 ]
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
54
29
b45621706d83 use Bootstrap carousels to display images and videos galeries:
souliane <souliane@mailoo.org>
parents: 21
diff changeset
55 screenshots_tech = [
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
56 ImageDesc("images/screenshots/0.5/adhoc_administration.png", _(u"Server administration from the web frontend Libervia."),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
57 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
58 VideoDesc(screencasts + "présentation_SàT_7_télécommande_universelle.webm", _(u"Use ad-hoc commands to control a VLC player from Libervia"), screencasts + "posters/présentation_SàT_7_télécommande_universelle.png",
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
59 {_(u"version"): "0.4", _(u"year"): "2014", _(u"language"): "fr"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
60 VideoDesc(screencasts + "présentation_SàT_6_export_commande.webm", _(u"Exporting a command: an FTP client is exported to a Gajim contact"), screencasts + "posters/présentation_SàT_6_export_commande.jpg",
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
61 {_(u"version"): "0.4D", _(u"year"): "2013", _(u"language"): "fr"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
62 VideoDesc(screencasts + "présentation_SàT_4_copie_et_pipe.webm", _(u"How to copy and pipe streams over XMPP"), screencasts + "posters/présentation_SàT_4.jpg",
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
63 {_(u"version"): "0.3D", _(u"year"): "2011", _(u"language"): "fr"}),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
64 ImageDesc("images/screenshots/jp/jp.png", _(u"Cowsay sent in conversation through jp"),
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
65 {_(u"version"): "0.2", _(u"year"): "2011"}),
47
3e460ca969d2 delete screenshots_tech.html, display all screenshots in the same page using sections
souliane <souliane@mailoo.org>
parents: 46
diff changeset
66 ImageDesc("images/screenshots/primitivus/primitivus_tarot.png", _(u"Primitivus showing a french Tarot play"),
3e460ca969d2 delete screenshots_tech.html, display all screenshots in the same page using sections
souliane <souliane@mailoo.org>
parents: 46
diff changeset
67 {_(u"frontend"): "primitivus", _(u"version"): "0.2", _(u"year"): "2011"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
68 VideoDesc(screencasts + "présentation_SàT_2.webm", _(u"This video shows french Tarot game, and how to use Thunderbird with SàT"), screencasts + "posters/présentation_SàT_2.jpg",
46
a18800261cf6 change some texts, add a couple of screenshots, set metadata version and year to the medias
souliane <souliane@mailoo.org>
parents: 29
diff changeset
69 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}),
58
746e53efc188 allow large media files (screencasts) to be stored on an external server
souliane <souliane@mailoo.org>
parents: 47
diff changeset
70 VideoDesc(screencasts + "présentation_SàT.webm", _(u"The first video shows wix, primitivus and jp"), screencasts + "posters/présentation_SàT.jpg",
47
3e460ca969d2 delete screenshots_tech.html, display all screenshots in the same page using sections
souliane <souliane@mailoo.org>
parents: 46
diff changeset
71 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}),
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
72 ]
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
73
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
74
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
75
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
76
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
77
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
78