Project

General

Profile

Revision d19e6b55

IDd19e6b5574dc6a50889f350961d51f5645823a11
Parent 465f05a5
Child 89fac0bf

Added by Francois POIROTTE almost 14 years ago

Mise à jour des traductions de VigiGraph.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@4078 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigigraph/controllers/rpc.py
39 39
LOGGER = logging.getLogger(__name__)
40 40

  
41 41
__all__ = ['RpcController']
42
    
42

  
43 43

  
44 44
# pylint: disable-msg=R0201
45 45
class RpcController(BaseController):
......
53 53
        Any(
54 54
            in_group('managers'),
55 55
            has_permission('vigigraph-access',
56
                msg=l_("You don't have access on VigiGraph")),
56
                msg=l_("You don't have access to VigiGraph")),
57 57
        ),
58 58
    )
59 59

  
......
221 221
            ).order_by(
222 222
                Host.name.asc(),
223 223
            ).all()
224
            
224

  
225 225
        hosts = [(h.name, str(h.idhost)) for h in hosts]
226 226
        return dict(items=hosts)
227 227

  
......
274 274
            supitemgroups = [sig[0] for sig in user.supitemgroups() if sig[1]]
275 275
            graphgroups = graphgroups.filter(
276 276
                SUPITEM_GROUP_TABLE.c.idgroup.in_(supitemgroups))
277
        
277

  
278 278
        graphgroups = [(gg.name, str(gg.idgroup)) for gg in graphgroups.all()]
279 279
        return dict(items=graphgroups)
280 280

  
......
539 539
        if len(hostgroups) != 2:
540 540
            hostgroups.append(_('No subgroup'))
541 541
        graphgroups = [gg.name for gg in selected_graphgroups]
542
        return dict(items=[hostgroups, graphgroups])        
542
        return dict(items=[hostgroups, graphgroups])
543 543

  
544 544
    @expose('graphslist.html')
545 545
    def graphsList(self, nocache=None, **kwargs):
......
613 613
        @return: dictionnaire des indicateurs d un graphe
614 614
        @rtype: document json (sous forme de dict)
615 615
        """
616
        
616

  
617 617
        indicators = self.getListIndicators(host, graph)
618 618
        indicators = [ind.name for ind in indicators]
619 619
        return dict(items=indicators)
......
635 635
        Affichage de l'ensemble des graphes associes a un hote
636 636
        * d apres les donnees RRD
637 637
        * avec une date-heure de debut
638
        * pour une plage de temps 
639
        
638
        * pour une plage de temps
639

  
640 640
        @param host : hôte
641 641
        @type host : C{str}
642 642
        @param start : date-heure de debut des donnees
......
705 705
        Affichage d un graphe associe a un hote et un graphe
706 706
        * d apres les donnees RRD
707 707
        * avec une date-heure de debut
708
        * pour une plage de temps 
709
        
708
        * pour une plage de temps
709

  
710 710
        @param host : hôte
711 711
        @type host : C{str}
712 712
        @param graph : graphe
713 713
        @type graph  : C{str}
714 714
        @param start : date-heure de debut des donnees
715 715
        @type start : C{str}
716
        @param duration : plage de temps des données 
716
        @param duration : plage de temps des données
717 717
        @type duration : C{str}
718 718
                         (parametre optionnel, initialise a 86400 = plage de 1 jour)
719 719

  
......
825 825
                ).filter(Host.name == host
826 826
                ).all()
827 827
        return indicators
828

  
vigigraph/i18n/en/LC_MESSAGES/vigigraph.po
7 7
msgstr ""
8 8
"Project-Id-Version: vigigraph 2.0.0\n"
9 9
"Report-Msgid-Bugs-To: contact@projet-vigilo.org\n"
10
"POT-Creation-Date: 2010-04-23 13:05+0200\n"
11
"PO-Revision-Date: 2010-04-23 18:07+0200\n"
10
"POT-Creation-Date: 2010-08-23 15:45+0200\n"
11
"PO-Revision-Date: 2010-08-23 15:45+0200\n"
12 12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13
"Language-Team: en <LL@li.org>\n"
14 14
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
......
17 17
"Content-Transfer-Encoding: 8bit\n"
18 18
"Generated-By: Babel 0.9.4\n"
19 19

  
20
#: vigigraph/controllers/root.py:30 vigigraph/controllers/rpc.py:55
21
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:193
20
#: vigigraph/controllers/root.py:30 vigigraph/controllers/root.py:32
21
#: vigigraph/controllers/root.py:37 vigigraph/controllers/rpc.py:52
22 22
msgid "You need to be authenticated"
23 23
msgstr "You need to be authenticated"
24 24

  
25
#: vigigraph/controllers/root.py:40
25
#: vigigraph/controllers/root.py:41 vigigraph/controllers/rpc.py:56
26
msgid "You don't have access to VigiGraph"
27
msgstr "You don't have access to VigiGraph"
28

  
29
#: vigigraph/controllers/root.py:53
26 30
msgid "Wrong credentials"
27 31
msgstr "Wrong credentials"
28 32

  
29
#: vigigraph/controllers/root.py:55
33
#: vigigraph/controllers/root.py:68
30 34
#, python-format
31 35
msgid "\"%(username)s\" logged in (from %(IP)s)"
32 36
msgstr "\"%(username)s\" logged in (from %(IP)s)"
33 37

  
34
#: vigigraph/controllers/root.py:59
38
#: vigigraph/controllers/root.py:72
35 39
#, python-format
36 40
msgid "Welcome back, %s!"
37 41
msgstr "Welcome back, %s!"
38 42

  
39
#: vigigraph/controllers/root.py:69
43
#: vigigraph/controllers/root.py:82
40 44
#, python-format
41 45
msgid "Some user logged out (from %(IP)s)"
42 46
msgstr "Some user logged out (from %(IP)s)"
43 47

  
44
#: vigigraph/controllers/root.py:72
48
#: vigigraph/controllers/root.py:85
45 49
msgid "We hope to see you soon!"
46 50
msgstr "We hope to see you soon!"
47 51

  
48
#: vigigraph/controllers/rpc.py:58 vigigraph/controllers/rpc.py:59
52
#: vigigraph/controllers/rpc.py:61 vigigraph/controllers/rpc.py:62
49 53
#, python-format
50 54
msgid "Last %d hours"
51 55
msgstr "Last %d hours"
52 56

  
53
#: vigigraph/controllers/rpc.py:60 vigigraph/controllers/rpc.py:61
54
#: vigigraph/controllers/rpc.py:62
57
#: vigigraph/controllers/rpc.py:63 vigigraph/controllers/rpc.py:64
58
#: vigigraph/controllers/rpc.py:65
55 59
#, python-format
56 60
msgid "Last %d days"
57 61
msgstr "Last %d days"
58 62

  
59
#: vigigraph/controllers/rpc.py:63 vigigraph/controllers/rpc.py:64
63
#: vigigraph/controllers/rpc.py:66 vigigraph/controllers/rpc.py:67
60 64
#, python-format
61 65
msgid "Last %d months"
62 66
msgstr "Last %d months"
63 67

  
64
#: vigigraph/controllers/rpc.py:65
68
#: vigigraph/controllers/rpc.py:68
65 69
msgid "Last year"
66 70
msgstr "Last year"
67 71

  
68
#: vigigraph/controllers/rpc.py:157
72
#: vigigraph/controllers/rpc.py:171 vigigraph/controllers/rpc.py:540
69 73
msgid "No subgroup"
70 74
msgstr "No subgroup"
71 75

  
72 76
#. TRANSLATORS: Format Python de date/heure, lisible par un humain.
73
#: vigigraph/controllers/rpc.py:528
77
#: vigigraph/controllers/rpc.py:560
74 78
#, python-format
75 79
msgid "%a, %d %b %Y %H:%M:%S"
76 80
msgstr "%a, %d %b %Y %H:%M:%S"
77 81

  
78
#: ../turbogears/src/vigilo/turbogears/controllers/error.py:26
79
msgid "We're sorry but we weren't able to process this request."
80
msgstr "We're sorry but we weren't able to process this request."
82
#: vigigraph/widgets/search_form.py:13 vigigraph/widgets/searchform.py:13
83
#: vigigraph/widgets/selectionform.py:13
84
msgid "Host:"
85
msgstr "Host:"
81 86

  
82
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:98
83
#, python-format
84
msgid "No such monitored host: %s"
85
msgstr "No such monitored host: %s"
86

  
87
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:138
88
#, python-format
89
msgid "Access denied to host \"%(host)s\" and service \"%(service)s\""
90
msgstr "Access denied to host \"%(host)s\" and service \"%(service)s\""
87
#: vigigraph/widgets/search_form.py:14 vigigraph/widgets/searchform.py:14
88
#: vigigraph/widgets/selectionform.py:14
89
msgid "Graph:"
90
msgstr "Graph:"
91 91

  
92
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:144
93
#, python-format
94
msgid "Access denied to host \"%s\""
95
msgstr "Access denied to host \"%s\""
96

  
97
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:153
98
#, python-format
99
msgid "No %(server_type)s server configured to monitor \"%(host)s\""
100
msgstr "No %(server_type)s server configured to monitor \"%(host)s\""
92
#: vigigraph/widgets/selectionform.py:20
93
msgid "Search"
94
msgstr "Search"
101 95

  
vigigraph/i18n/fr/LC_MESSAGES/vigigraph.po
8 8
"Project-Id-Version: vigigraph 0.1\n"
9 9
"Report-Msgid-Bugs-To: contact@projet-vigilo.org\n"
10 10
"POT-Creation-Date: 2010-02-15 13:41+0100\n"
11
"PO-Revision-Date: 2010-04-23 13:05+0200\n"
11
"PO-Revision-Date: 2010-08-23 15:45+0200\n"
12 12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13
"Language-Team: fr_FR <LL@li.org>\n"
14 14
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
......
17 17
"Content-Transfer-Encoding: 8bit\n"
18 18
"Generated-By: Babel 0.9.4\n"
19 19

  
20
#: vigigraph/controllers/root.py:30 vigigraph/controllers/rpc.py:55
21
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:193
20
#: vigigraph/controllers/root.py:30 vigigraph/controllers/root.py:32
21
#: vigigraph/controllers/root.py:37 vigigraph/controllers/rpc.py:52
22 22
msgid "You need to be authenticated"
23 23
msgstr "Vous devez vous authentifier"
24 24

  
25
#: vigigraph/controllers/root.py:40
25
#: vigigraph/controllers/root.py:41 vigigraph/controllers/rpc.py:56
26
msgid "You don't have access to VigiGraph"
27
msgstr "Vous n'avez pas accès à VigiGraph"
28

  
29
#: vigigraph/controllers/root.py:53
26 30
msgid "Wrong credentials"
27 31
msgstr "Identifiant ou mot de passe incorrect"
28 32

  
29
#: vigigraph/controllers/root.py:55
33
#: vigigraph/controllers/root.py:68
30 34
#, python-format
31 35
msgid "\"%(username)s\" logged in (from %(IP)s)"
32 36
msgstr "\"%(username)s\" s'est connecté (depuis %(IP)s)"
33 37

  
34
#: vigigraph/controllers/root.py:59
38
#: vigigraph/controllers/root.py:72
35 39
#, python-format
36 40
msgid "Welcome back, %s!"
37 41
msgstr "Bienvenue, %s !"
38 42

  
39
#: vigigraph/controllers/root.py:69
43
#: vigigraph/controllers/root.py:82
40 44
#, python-format
41 45
msgid "Some user logged out (from %(IP)s)"
42 46
msgstr "Un utilisateur s'est déconnecté (depuis %(IP)s)"
43 47

  
44
#: vigigraph/controllers/root.py:72
48
#: vigigraph/controllers/root.py:85
45 49
msgid "We hope to see you soon!"
46 50
msgstr "Au plaisir de vous revoir !"
47 51

  
48
#: vigigraph/controllers/rpc.py:58 vigigraph/controllers/rpc.py:59
52
#: vigigraph/controllers/rpc.py:61 vigigraph/controllers/rpc.py:62
49 53
#, python-format
50 54
msgid "Last %d hours"
51 55
msgstr "Les %d dernières heures"
52 56

  
53
#: vigigraph/controllers/rpc.py:60 vigigraph/controllers/rpc.py:61
54
#: vigigraph/controllers/rpc.py:62
57
#: vigigraph/controllers/rpc.py:63 vigigraph/controllers/rpc.py:64
58
#: vigigraph/controllers/rpc.py:65
55 59
#, python-format
56 60
msgid "Last %d days"
57 61
msgstr "Les %d derniers jours"
58 62

  
59
#: vigigraph/controllers/rpc.py:63 vigigraph/controllers/rpc.py:64
63
#: vigigraph/controllers/rpc.py:66 vigigraph/controllers/rpc.py:67
60 64
#, python-format
61 65
msgid "Last %d months"
62 66
msgstr "Les %d derniers mois"
63 67

  
64
#: vigigraph/controllers/rpc.py:65
68
#: vigigraph/controllers/rpc.py:68
65 69
msgid "Last year"
66 70
msgstr "L'an dernier"
67 71

  
68
#: vigigraph/controllers/rpc.py:157
72
#: vigigraph/controllers/rpc.py:171 vigigraph/controllers/rpc.py:540
69 73
msgid "No subgroup"
70 74
msgstr "Pas de sous-groupe"
71 75

  
72 76
#. TRANSLATORS: Format Python de date/heure, lisible par un humain.
73
#: vigigraph/controllers/rpc.py:528
77
#: vigigraph/controllers/rpc.py:560
74 78
#, python-format
75 79
msgid "%a, %d %b %Y %H:%M:%S"
76 80
msgstr "%a, %d %b %Y %H:%M:%S"
77 81

  
78
#: ../turbogears/src/vigilo/turbogears/controllers/error.py:26
79
msgid "We're sorry but we weren't able to process this request."
80
msgstr "Désolé mais nous n'avons pas pu traiter votre requête."
82
#: vigigraph/widgets/search_form.py:13 vigigraph/widgets/searchform.py:13
83
#: vigigraph/widgets/selectionform.py:13
84
msgid "Host:"
85
msgstr "Hôte :"
81 86

  
82
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:98
83
#, python-format
84
msgid "No such monitored host: %s"
85
msgstr "Hôte non supervisé: %s"
86

  
87
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:138
88
#, python-format
89
msgid "Access denied to host \"%(host)s\" and service \"%(service)s\""
90
msgstr "Accès refusé au service \"%(service)s\" de l'hôte \"%(host)s\""
91

  
92
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:144
93
#, python-format
94
msgid "Access denied to host \"%s\""
95
msgstr "Accès refusé à l'hôte \"%s\""
96

  
97
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:153
98
#, python-format
99
msgid "No %(server_type)s server configured to monitor \"%(host)s\""
100
msgstr "Aucun serveur %(server_type)s configuré pour superviser \"%(host)s\""
87
#: vigigraph/widgets/search_form.py:14 vigigraph/widgets/searchform.py:14
88
#: vigigraph/widgets/selectionform.py:14
89
msgid "Graph:"
90
msgstr "Graphe :"
101 91

  
92
#: vigigraph/widgets/selectionform.py:20
93
msgid "Search"
94
msgstr "Rechercher"
vigigraph/i18n/vigigraph.pot
8 8
msgstr ""
9 9
"Project-Id-Version: vigigraph 2.0.0\n"
10 10
"Report-Msgid-Bugs-To: contact@projet-vigilo.org\n"
11
"POT-Creation-Date: 2010-04-23 13:05+0200\n"
11
"POT-Creation-Date: 2010-08-23 15:45+0200\n"
12 12
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14
"Language-Team: LANGUAGE <LL@li.org>\n"
......
17 17
"Content-Transfer-Encoding: 8bit\n"
18 18
"Generated-By: Babel 0.9.4\n"
19 19

  
20
#: vigigraph/controllers/root.py:30 vigigraph/controllers/rpc.py:55
21
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:193
20
#: vigigraph/controllers/root.py:30 vigigraph/controllers/root.py:32
21
#: vigigraph/controllers/root.py:37 vigigraph/controllers/rpc.py:52
22 22
msgid "You need to be authenticated"
23 23
msgstr ""
24 24

  
25
#: vigigraph/controllers/root.py:40
25
#: vigigraph/controllers/root.py:41 vigigraph/controllers/rpc.py:56
26
msgid "You don't have access to VigiGraph"
27
msgstr ""
28

  
29
#: vigigraph/controllers/root.py:53
26 30
msgid "Wrong credentials"
27 31
msgstr ""
28 32

  
29
#: vigigraph/controllers/root.py:55
33
#: vigigraph/controllers/root.py:68
30 34
#, python-format
31 35
msgid "\"%(username)s\" logged in (from %(IP)s)"
32 36
msgstr ""
33 37

  
34
#: vigigraph/controllers/root.py:59
38
#: vigigraph/controllers/root.py:72
35 39
#, python-format
36 40
msgid "Welcome back, %s!"
37 41
msgstr ""
38 42

  
39
#: vigigraph/controllers/root.py:69
43
#: vigigraph/controllers/root.py:82
40 44
#, python-format
41 45
msgid "Some user logged out (from %(IP)s)"
42 46
msgstr ""
43 47

  
44
#: vigigraph/controllers/root.py:72
48
#: vigigraph/controllers/root.py:85
45 49
msgid "We hope to see you soon!"
46 50
msgstr ""
47 51

  
48
#: vigigraph/controllers/rpc.py:58 vigigraph/controllers/rpc.py:59
52
#: vigigraph/controllers/rpc.py:61 vigigraph/controllers/rpc.py:62
49 53
#, python-format
50 54
msgid "Last %d hours"
51 55
msgstr ""
52 56

  
53
#: vigigraph/controllers/rpc.py:60 vigigraph/controllers/rpc.py:61
54
#: vigigraph/controllers/rpc.py:62
57
#: vigigraph/controllers/rpc.py:63 vigigraph/controllers/rpc.py:64
58
#: vigigraph/controllers/rpc.py:65
55 59
#, python-format
56 60
msgid "Last %d days"
57 61
msgstr ""
58 62

  
59
#: vigigraph/controllers/rpc.py:63 vigigraph/controllers/rpc.py:64
63
#: vigigraph/controllers/rpc.py:66 vigigraph/controllers/rpc.py:67
60 64
#, python-format
61 65
msgid "Last %d months"
62 66
msgstr ""
63 67

  
64
#: vigigraph/controllers/rpc.py:65
68
#: vigigraph/controllers/rpc.py:68
65 69
msgid "Last year"
66 70
msgstr ""
67 71

  
68
#: vigigraph/controllers/rpc.py:157
72
#: vigigraph/controllers/rpc.py:171 vigigraph/controllers/rpc.py:540
69 73
msgid "No subgroup"
70 74
msgstr ""
71 75

  
72 76
#. TRANSLATORS: Format Python de date/heure, lisible par un humain.
73
#: vigigraph/controllers/rpc.py:528
77
#: vigigraph/controllers/rpc.py:560
74 78
#, python-format
75 79
msgid "%a, %d %b %Y %H:%M:%S"
76 80
msgstr ""
77 81

  
78
#: ../turbogears/src/vigilo/turbogears/controllers/error.py:26
79
msgid "We're sorry but we weren't able to process this request."
82
#: vigigraph/widgets/search_form.py:13 vigigraph/widgets/searchform.py:13
83
#: vigigraph/widgets/selectionform.py:13
84
msgid "Host:"
80 85
msgstr ""
81 86

  
82
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:98
83
#, python-format
84
msgid "No such monitored host: %s"
85
msgstr ""
86

  
87
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:138
88
#, python-format
89
msgid "Access denied to host \"%(host)s\" and service \"%(service)s\""
87
#: vigigraph/widgets/search_form.py:14 vigigraph/widgets/searchform.py:14
88
#: vigigraph/widgets/selectionform.py:14
89
msgid "Graph:"
90 90
msgstr ""
91 91

  
92
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:144
93
#, python-format
94
msgid "Access denied to host \"%s\""
95
msgstr ""
96

  
97
#: ../turbogears/src/vigilo/turbogears/controllers/proxy.py:153
98
#, python-format
99
msgid "No %(server_type)s server configured to monitor \"%(host)s\""
92
#: vigigraph/widgets/selectionform.py:20
93
msgid "Search"
100 94
msgstr ""
101 95

  

Also available in: Unified diff