From 69d80fcdb0360a8c54877a60511e029c9abcecac Mon Sep 17 00:00:00 2001 From: Laouen Fernet Date: Wed, 9 Jan 2019 00:40:48 +0100 Subject: [PATCH] add translations for topologie/ --- topologie/locale/fr/LC_MESSAGES/django.po | 484 +++++++++++------- .../migrations/0069_auto_20190108_1439.py | 59 +++ topologie/models.py | 45 +- topologie/templates/topologie/aff_ap.html | 18 +- .../templates/topologie/aff_building.html | 16 +- .../templates/topologie/aff_chambres.html | 14 +- .../topologie/aff_constructor_switch.html | 14 +- .../templates/topologie/aff_model_switch.html | 20 +- .../templates/topologie/aff_modules.html | 28 +- topologie/templates/topologie/aff_port.html | 16 +- .../templates/topologie/aff_port_profile.html | 8 +- .../templates/topologie/aff_repr_switch.html | 5 +- topologie/templates/topologie/aff_stacks.html | 14 +- topologie/templates/topologie/aff_switch.html | 20 +- .../templates/topologie/aff_switch_bay.html | 18 +- .../templates/topologie/aff_vlanoptions.html | 15 +- topologie/templates/topologie/delete.html | 2 +- .../templates/topologie/edit_stack_sw.html | 8 +- topologie/templates/topologie/index.html | 4 +- topologie/templates/topologie/index_ap.html | 4 +- .../topologie/index_model_switch.html | 6 +- .../templates/topologie/index_module.html | 6 +- topologie/templates/topologie/index_p.html | 12 +- .../topologie/index_physical_grouping.html | 8 +- .../topologie/index_portprofile.html | 8 +- topologie/templates/topologie/index_room.html | 4 +- topologie/templates/topologie/sidebar.html | 18 +- topologie/templates/topologie/switch.html | 4 +- topologie/templates/topologie/topo.html | 4 +- topologie/templates/topologie/topo_more.html | 2 +- topologie/views.py | 24 +- 31 files changed, 530 insertions(+), 378 deletions(-) create mode 100644 topologie/migrations/0069_auto_20190108_1439.py diff --git a/topologie/locale/fr/LC_MESSAGES/django.po b/topologie/locale/fr/LC_MESSAGES/django.po index a5db5085..b6242bc0 100644 --- a/topologie/locale/fr/LC_MESSAGES/django.po +++ b/topologie/locale/fr/LC_MESSAGES/django.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: 2.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-11 19:49+0200\n" +"POT-Creation-Date: 2019-01-09 00:01+0100\n" "PO-Revision-Date: 2018-06-25 14:53+0200\n" "Last-Translator: Laouen Fernet \n" "Language-Team: \n" @@ -34,11 +34,11 @@ msgstr "" msgid "You don't have the right to view this application." msgstr "Vous n'avez pas le droit de voir cette application." -#: forms.py:179 +#: forms.py:181 msgid "Start:" msgstr "Début :" -#: forms.py:180 +#: forms.py:182 msgid "End:" msgstr "Fin :" @@ -79,119 +79,204 @@ msgid "Number of ports" msgstr "Nombre de ports" #: models.py:228 templates/topologie/aff_switch.html:48 -#: templates/topologie/index_p.html:38 views.py:826 +#: templates/topologie/index_p.html:38 views.py:843 msgid "Switch model" msgstr "Modèle de commutateur réseau" -#: models.py:258 +#: models.py:241 +msgid "RADIUS key of the switch" +msgstr "Clé RADIUS du commutateur réseau" + +#: models.py:248 +msgid "Management credentials for the switch" +msgstr "Identifiants de gestion du commutateur réseau" + +#: models.py:252 +msgid "Automatic provision for the switch" +msgstr "Provision automatique pour le commutateur réseau" + +#: models.py:259 msgid "Can view a switch object" msgstr "Peut voir un objet commutateur réseau" -#: models.py:260 +#: models.py:261 msgid "switch" msgstr "commutateur réseau" -#: models.py:261 +#: models.py:262 msgid "switches" msgstr "commutateurs réseau" -#: models.py:272 +#: models.py:273 msgid "The switch ID exceeds the limits allowed by the stack." msgstr "L'ID du commutateur réseau dépasse les bornes autorisées par la pile." -#: models.py:277 +#: models.py:278 msgid "The stack member ID can't be void." msgstr "L'ID de membre dans la pile ne peut-être vide." -#: models.py:293 +#: models.py:286 msgid "The end port is less than the start port." msgstr "Le port de fin est inférieur au port de début." -#: models.py:296 +#: models.py:293 msgid "This switch can't have that many ports." msgstr "Ce commutateur réseau ne peut pas avoir autant de ports." -#: models.py:306 +#: models.py:295 msgid "Creation" msgstr "Création" -#: models.py:308 -msgid "Creation of an existing port." -msgstr "Création d'un port existant." +#: models.py:406 +msgid "The switch model is modular." +msgstr "Le modèle de commutateur réseau est modulaire." -#: models.py:408 +#: models.py:410 +msgid "The switch is considered as a module." +msgstr "Le commutateur réseau est considéré comme un module." + +#: models.py:415 msgid "Can view a switch model object" msgstr "Peut voir un objet modèle de commutateur réseau" -#: models.py:410 +#: models.py:417 msgid "switch model" msgstr "modèle de commutateur réseau" -#: models.py:411 +#: models.py:418 msgid "switch models" msgstr "modèles de commutateur réseau" -#: models.py:424 +#: models.py:431 +msgid "Reference of a module" +msgstr "Référence d'un module" + +#: models.py:432 +msgid "Module reference" +msgstr "Référence de module" + +#: models.py:438 models.py:439 templates/topologie/aff_modules.html:37 +msgid "Comment" +msgstr "Commentaire" + +#: models.py:444 +msgid "Can view a switch module object" +msgstr "Peut voir un objet module de commutateur réseau" + +#: models.py:446 +msgid "switch module" +msgstr "module de commutateur réseau" + +#: models.py:447 +msgid "switch modules" +msgstr "modules de commutateur réseau" + +#: models.py:460 +msgid "Slot on switch" +msgstr "Emplacement sur le commutateur réseau" + +#: models.py:461 templates/topologie/aff_modules.html:48 +#: templates/topologie/aff_modules.html:82 +msgid "Slot" +msgstr "Emplacement" + +#: models.py:466 +msgid "Can view a link between switch and module object" +msgstr "Peut voir un objet lien entre commutateur réseau et module" + +#: models.py:469 +msgid "link between switch and module" +msgstr "lien entre commutateur réseau et module" + +#: models.py:470 +msgid "links between switch and module" +msgstr "liens entre commutateur réseau et module" + +#: models.py:474 +msgid "On slot " +msgstr "Sur l'emplacement " + +#: models.py:474 +msgid " of " +msgstr " de " + +#: models.py:484 msgid "Can view a switch constructor object" msgstr "Peut voir un objet constructeur de commutateur réseau" -#: models.py:427 +#: models.py:487 msgid "switch constructor" msgstr "constructeur de commutateur réseau" -#: models.py:450 +#: models.py:510 msgid "Can view a switch bay object" msgstr "Peut voir un objet baie de brassage" -#: models.py:452 +#: models.py:512 msgid "switch bay" msgstr "baie de brassage" -#: models.py:453 +#: models.py:513 msgid "switch bays" msgstr "baies de brassage" -#: models.py:466 +#: models.py:526 msgid "Can view a building object" msgstr "Peut voir un objet bâtiment" -#: models.py:468 +#: models.py:528 msgid "building" msgstr "bâtiment" -#: models.py:469 +#: models.py:529 msgid "buildings" msgstr "bâtiments" -#: models.py:525 +#: models.py:588 models.py:589 msgid "Port state Active" msgstr "État du port Actif" -#: models.py:532 +#: models.py:596 msgid "Can view a port object" msgstr "Peut voir un objet port" -#: models.py:534 +#: models.py:598 msgid "port" msgstr "port" -#: models.py:535 +#: models.py:599 msgid "ports" msgstr "ports" -#: models.py:614 +#: models.py:605 +msgid "Uplink: " +msgstr "Liaison montante : " + +#: models.py:607 +msgid "Machine: " +msgstr "Machine : " + +#: models.py:609 +msgid "Room: " +msgstr "Chambre : " + +#: models.py:611 +msgid "Unknown" +msgstr "Inconnu" + +#: models.py:678 msgid "The port can't exist, its number is too great." msgstr "Le port ne peut pas exister, son numéro est trop grand." -#: models.py:620 +#: models.py:684 msgid "Room, interface and related port are mutually exclusive." msgstr "Chambre, interface et port relié sont mutuellement exclusifs." -#: models.py:623 +#: models.py:687 msgid "A port can't be related to itself." msgstr "Un port ne peut être relié à lui-même." -#: models.py:627 +#: models.py:691 msgid "" "The related port is already used, please clear it before creating the " "relation." @@ -199,124 +284,146 @@ msgstr "" "Le port relié est déjà utilisé, veuillez le modifier avant de créer la " "relation." -#: models.py:648 +#: models.py:712 msgid "Can view a room object" msgstr "Peut voir un objet chambre" -#: models.py:650 +#: models.py:714 msgid "room" msgstr "chambre" -#: models.py:651 +#: models.py:715 msgid "rooms" msgstr "chambres" -#: models.py:685 templates/topologie/aff_port_profile.html:37 +#: models.py:726 +msgid "MAC-RADIUS" +msgstr "MAC-RADIUS" + +#: models.py:743 templates/topologie/aff_chambres.html:36 +#: templates/topologie/aff_port.html:38 views.py:784 +msgid "Room" +msgstr "Chambre" + +#: models.py:744 templates/topologie/aff_ap.html:36 +msgid "Access point" +msgstr "Point d'accès sans fil" + +#: models.py:745 +msgid "Uplink" +msgstr "Liaison montante" + +#: models.py:746 +msgid "Organisation machine" +msgstr "Machine d'association" + +#: models.py:747 +msgid "Nothing" +msgstr "Rien" + +#: models.py:749 templates/topologie/aff_port_profile.html:37 +#: templates/topologie/aff_vlanoptions.html:34 msgid "Name" msgstr "Nom" -#: models.py:692 +#: models.py:756 msgid "Default profile" msgstr "Profil par défaut" -#: models.py:700 +#: models.py:764 msgid "VLAN untagged" msgstr "VLAN untagged" -#: models.py:706 +#: models.py:770 msgid "VLAN(s) tagged" msgstr "VLAN(s) tagged" -#: models.py:711 +#: models.py:775 msgid "Type of RADIUS authentication : inactive, MAC-address or 802.1X" msgstr "Type d'authentification RADIUS : inactive, MAC-address ou 802.1X" -#: models.py:713 +#: models.py:777 msgid "RADIUS type" msgstr "Type de RADIUS" -#: models.py:719 +#: models.py:783 msgid "In case of MAC-authentication : mode COMMON or STRICT on this port" msgstr "" "Dans le cas d'authentification par adresse MAC : mode COMMON ou STRICT sur " "ce port" -#: models.py:721 +#: models.py:785 msgid "RADIUS mode" msgstr "Mode de RADIUS" -#: models.py:727 +#: models.py:791 msgid "Port speed limit" msgstr "Limite de vitesse du port" -#: models.py:732 +#: models.py:796 msgid "Limit of MAC-address on this port" msgstr "Limite de MAC-address sur ce port" -#: models.py:733 +#: models.py:797 msgid "MAC limit" msgstr "Limite MAC" -#: models.py:737 +#: models.py:801 msgid "Flow control" msgstr "Contrôle du flux" -#: models.py:741 +#: models.py:805 msgid "Protect against rogue DHCP" msgstr "Protège contre les DHCP pirates" -#: models.py:742 +#: models.py:806 templates/topologie/aff_vlanoptions.html:36 msgid "DHCP snooping" msgstr "DHCP snooping" -#: models.py:746 +#: models.py:810 msgid "Protect against rogue DHCPv6" msgstr "Protège contre les DHCPv6 pirates" -#: models.py:747 +#: models.py:811 templates/topologie/aff_vlanoptions.html:37 msgid "DHCPv6 snooping" msgstr "DHCPv6 snooping" -#: models.py:751 +#: models.py:815 msgid "Check if IP adress is DHCP assigned" msgstr "Vérifie si l'adresse IP est attribuée par DHCP" -#: models.py:752 +#: models.py:816 msgid "ARP protection" msgstr "Protection ARP" -#: models.py:756 +#: models.py:820 msgid "Protect against rogue RA" msgstr "Protège contre les RA pirates" -#: models.py:757 +#: models.py:821 msgid "RA guard" msgstr "RA guard" -#: models.py:761 +#: models.py:825 msgid "Protect against loop" -msgstr "Protège contre un boucle" +msgstr "Protège contre une boucle" -#: models.py:762 +#: models.py:826 msgid "Loop protection" msgstr "Protection contre une boucle" -#: models.py:767 +#: models.py:831 msgid "Can view a port profile object" msgstr "Peut voir un objet profil de port" -#: models.py:769 +#: models.py:833 msgid "port profile" msgstr "profil de port" -#: models.py:770 +#: models.py:834 msgid "port profiles" msgstr "profils de port" -#: templates/topologie/aff_ap.html:36 -msgid "Access point" -msgstr "Point d'accès sans fil" - #: templates/topologie/aff_ap.html:38 msgid "MAC address" msgstr "Adresse MAC" @@ -336,44 +443,24 @@ msgstr "Détails" msgid "Location" msgstr "Emplacement" -#: templates/topologie/aff_ap.html:56 templates/topologie/aff_building.html:46 -#: templates/topologie/aff_chambres.html:48 -#: templates/topologie/aff_constructor_switch.html:46 -#: templates/topologie/aff_model_switch.html:61 -#: templates/topologie/aff_port.html:99 templates/topologie/aff_stacks.html:55 -#: templates/topologie/aff_switch_bay.html:59 -#: templates/topologie/edit_stack_sw.html:44 views.py:380 views.py:434 -#: views.py:745 views.py:804 views.py:859 views.py:914 views.py:973 -#: views.py:1028 -msgid "Edit" -msgstr "Modifier" - -#: templates/topologie/aff_ap.html:62 templates/topologie/aff_building.html:52 -#: templates/topologie/aff_chambres.html:54 -#: templates/topologie/aff_constructor_switch.html:52 -#: templates/topologie/aff_model_switch.html:67 -#: templates/topologie/aff_port.html:105 templates/topologie/aff_stacks.html:61 -#: templates/topologie/aff_switch_bay.html:65 -#: templates/topologie/edit_stack_sw.html:50 -msgid "Delete" -msgstr "Supprimer" - #: templates/topologie/aff_building.html:36 -#: templates/topologie/aff_switch_bay.html:38 views.py:936 +#: templates/topologie/aff_switch_bay.html:38 views.py:953 msgid "Building" msgstr "Bâtiment" -#: templates/topologie/aff_chambres.html:36 -#: templates/topologie/aff_port.html:38 views.py:767 -msgid "Room" -msgstr "Chambre" +#: templates/topologie/aff_building.html:38 +#: templates/topologie/index_ap.html:33 templates/topologie/sidebar.html:47 +msgid "Access points" +msgstr "Points d'accès sans fil" #: templates/topologie/aff_constructor_switch.html:36 -#: templates/topologie/aff_model_switch.html:40 views.py:996 +#: templates/topologie/aff_model_switch.html:40 views.py:1013 msgid "Switch constructor" msgstr "Constructeur de commutateur réseau" #: templates/topologie/aff_model_switch.html:36 +#: templates/topologie/aff_modules.html:36 +#: templates/topologie/aff_modules.html:81 msgid "Reference" msgstr "Référence" @@ -382,20 +469,27 @@ msgid "Commercial name" msgstr "Nom commercial" #: templates/topologie/aff_model_switch.html:42 -#: templates/topologie/index.html:66 templates/topologie/sidebar.html:35 +#: templates/topologie/aff_modules.html:38 templates/topologie/index.html:66 +#: templates/topologie/sidebar.html:35 msgid "Switches" msgstr "Commutateurs réseau" +#: templates/topologie/aff_modules.html:48 +msgid "of" +msgstr "de" + +#: templates/topologie/aff_modules.html:76 +msgid "All modular switchs" +msgstr "Tous les commutateurs réseau modulaires" + +#: templates/topologie/aff_modules.html:80 templates/topologie/aff_port.html:36 +msgid "Switch" +msgstr "Commutateur réseau" + #: templates/topologie/aff_port.html:33 msgid "Port" msgstr "Port" -#: templates/topologie/aff_port.html:36 -#, fuzzy -#| msgid "Switch:" -msgid "Switch" -msgstr "Commutateur réseau :" - #: templates/topologie/aff_port.html:40 msgid "Interface" msgstr "Interface" @@ -408,7 +502,7 @@ msgstr "Port relié" msgid "Port state" msgstr "État du port" -#: templates/topologie/aff_port.html:45 views.py:1048 +#: templates/topologie/aff_port.html:45 views.py:1065 msgid "Port profile" msgstr "Profil de port" @@ -464,6 +558,11 @@ msgstr "Type de RADIUS : " msgid "RADIUS mode: " msgstr "Mode de RADIUS : " +#: templates/topologie/aff_repr_switch.html:67 +#: templates/topologie/aff_repr_switch.html:110 +msgid "Empty" +msgstr "Vide" + #: templates/topologie/aff_stacks.html:32 #: templates/topologie/aff_switch.html:45 #: templates/topologie/edit_stack_sw.html:32 @@ -472,6 +571,7 @@ msgid "Stack" msgstr "Pile" #: templates/topologie/aff_stacks.html:34 +#: templates/topologie/aff_vlanoptions.html:33 msgid "ID" msgstr "ID" @@ -485,7 +585,7 @@ msgstr "Nom DNS" #: templates/topologie/aff_switch.html:41 #: templates/topologie/aff_switch_bay.html:36 -#: templates/topologie/index_p.html:37 views.py:881 +#: templates/topologie/index_p.html:37 views.py:898 msgid "Switch bay" msgstr "Baie de brassage" @@ -510,10 +610,22 @@ msgstr "Informations" msgid "Switches of the bay" msgstr "Commutateurs réseau de la baie" +#: templates/topologie/aff_vlanoptions.html:35 +msgid "ARP protect" +msgstr "Protection ARP" + +#: templates/topologie/aff_vlanoptions.html:38 +msgid "IGMP" +msgstr "IGMP" + +#: templates/topologie/aff_vlanoptions.html:39 +msgid "MLD" +msgstr "MLD" + #: templates/topologie/delete.html:29 templates/topologie/index.html:30 #: templates/topologie/index_ap.html:30 #: templates/topologie/index_model_switch.html:30 -#: templates/topologie/index_p.html:30 +#: templates/topologie/index_module.html:30 templates/topologie/index_p.html:30 #: templates/topologie/index_physical_grouping.html:30 #: templates/topologie/index_portprofile.html:29 #: templates/topologie/index_room.html:30 templates/topologie/switch.html:30 @@ -542,10 +654,6 @@ msgstr "Topologie des commutateurs réseau" msgid " Add a switch" msgstr " Ajouter un commutateur réseau" -#: templates/topologie/index_ap.html:33 templates/topologie/sidebar.html:43 -msgid "Access points" -msgstr "Points d'accès sans fil" - #: templates/topologie/index_ap.html:35 msgid " Add an access point" msgstr " Ajouter un point d'accès sans fil" @@ -566,22 +674,18 @@ msgstr "Constructeurs de commutateur réseau" msgid " Add a switch constructor" msgstr " Ajouter un constructeur de commutateur réseau" +#: templates/topologie/index_module.html:33 templates/topologie/sidebar.html:39 +msgid "Switch modules" +msgstr "Modules de commutateur réseau" + +#: templates/topologie/index_module.html:35 +msgid " Add a module" +msgstr " Ajouter un module" + #: templates/topologie/index_p.html:33 msgid "Switch:" msgstr "Commutateur réseau :" -#: templates/topologie/index_p.html:49 -msgid " Edit" -msgstr " Modifier" - -#: templates/topologie/index_p.html:51 -msgid " Add a port" -msgstr " Ajouter un port" - -#: templates/topologie/index_p.html:52 -msgid " Add ports" -msgstr " Ajouter des ports" - #: templates/topologie/index_physical_grouping.html:33 msgid "Stacks" msgstr "Piles" @@ -607,7 +711,7 @@ msgid " Add a building" msgstr " Ajouter un bâtiment" #: templates/topologie/index_portprofile.html:34 -#: templates/topologie/sidebar.html:39 +#: templates/topologie/sidebar.html:43 msgid "Port profiles" msgstr "Profils de port" @@ -616,8 +720,8 @@ msgid " Add a port profile" msgstr " Ajouter un profil de port" #: templates/topologie/index_portprofile.html:42 -msgid "Sécurité par vlan" -msgstr "" +msgid "VLAN security" +msgstr "Sécurité de VLAN" #: templates/topologie/index_room.html:33 msgid "Rooms" @@ -631,11 +735,11 @@ msgstr " Ajouter une chambre" msgid "Rooms and premises" msgstr "Chambres et locaux" -#: templates/topologie/sidebar.html:47 +#: templates/topologie/sidebar.html:51 msgid "Physical grouping" msgstr "Groupements physiques" -#: templates/topologie/sidebar.html:51 +#: templates/topologie/sidebar.html:55 msgid "Switch models and constructors" msgstr "Modèles et constructeurs de commutateur réseau" @@ -647,7 +751,8 @@ msgstr " Aller à la liste des ports" msgid "Specific settings for the switch" msgstr "Réglages spécifiques pour le commutateur réseau" -#: templates/topologie/switch.html:46 views.py:418 views.py:1010 +#: templates/topologie/switch.html:46 views.py:441 views.py:745 views.py:800 +#: views.py:859 views.py:914 views.py:969 views.py:1027 views.py:1081 msgid "Create" msgstr "Créer" @@ -665,51 +770,60 @@ msgstr "Réglages généraux pour la machine liée à l'objet %(device)s" msgid "Create or edit" msgstr "Créer ou modifier" -#: views.py:340 +#: views.py:347 +msgid "The VLAN was edited." +msgstr "Le VLAN a été modifié." + +#: views.py:350 views.py:403 views.py:457 views.py:762 views.py:821 +#: views.py:876 views.py:931 views.py:990 views.py:1045 views.py:1098 +#: views.py:1152 +msgid "Edit" +msgstr "Modifier" + +#: views.py:363 views.py:554 msgid "Nonexistent switch." msgstr "Commutateur réseau inexistant." -#: views.py:348 +#: views.py:371 msgid "The port was added." msgstr "Le port a été ajouté." -#: views.py:350 +#: views.py:373 msgid "The port already exists." msgstr "Le port existe déjà." -#: views.py:356 views.py:728 views.py:783 views.py:842 views.py:897 -#: views.py:952 +#: views.py:379 views.py:1135 msgid "Add" msgstr "Ajouter" -#: views.py:371 +#: views.py:394 msgid "The port was edited." msgstr "Le port a été modifié." -#: views.py:394 +#: views.py:417 msgid "The port was deleted." msgstr "Le port a été supprimé." -#: views.py:398 +#: views.py:421 #, python-format msgid "The port %s is used by another object, impossible to delete it." msgstr "Le port %s est utilisé par un autre objet, impossible de le supprimer." -#: views.py:415 +#: views.py:438 msgid "The stack was created." msgstr "La pile a été créée." -#: views.py:447 +#: views.py:470 msgid "The stack was deleted." msgstr "La pile a été supprimée." -#: views.py:451 +#: views.py:474 #, python-format msgid "The stack %s is used by another object, impossible to deleted it." msgstr "" "La pile %s est utilisée par un autre objet, impossible de la supprimer." -#: views.py:493 views.py:634 views.py:689 +#: views.py:516 views.py:651 views.py:706 msgid "" "The organisation's user doesn't exist yet, please create or link it in the " "preferences." @@ -717,117 +831,113 @@ msgstr "" "L'utilisateur de l'association n'existe pas encore, veuillez le créer ou le " "relier dans les préférences." -#: views.py:508 +#: views.py:531 msgid "The switch was created." msgstr "Le commutateur réseau a été créé." -#: views.py:531 -msgid "Nonexistent switch" -msgstr "Commutateur réseau inexistant." - -#: views.py:551 +#: views.py:568 msgid "The ports were created." msgstr "Les ports ont été créés." -#: views.py:595 +#: views.py:612 msgid "The switch was edited." msgstr "Le commutateur réseau a été modifié." -#: views.py:649 +#: views.py:666 msgid "The access point was created." msgstr "Le point d'accès sans fil a été créé." -#: views.py:702 +#: views.py:719 msgid "The access point was edited." msgstr "Le point d'accès sans fil a été modifié." -#: views.py:725 +#: views.py:742 msgid "The room was created." msgstr "La chambre a été créée." -#: views.py:742 +#: views.py:759 msgid "The room was edited." msgstr "La chambre a été modifiée." -#: views.py:758 +#: views.py:775 msgid "The room was deleted." msgstr "La chambre a été supprimée." -#: views.py:762 +#: views.py:779 #, python-format msgid "The room %s is used by another object, impossible to deleted it." msgstr "" "La chambre %s est utilisée par un autre objet, impossible de la supprimer." -#: views.py:780 -msgid "The swich model was created." +#: views.py:797 +msgid "The switch model was created." msgstr "Le modèle de commutateur réseau a été créé." -#: views.py:801 +#: views.py:818 msgid "The switch model was edited." msgstr "Le modèle de commutateur réseau a été modifié." -#: views.py:817 +#: views.py:834 msgid "The switch model was deleted." msgstr "Le modèle de commutateur réseau a été supprimé." -#: views.py:821 +#: views.py:838 #, python-format msgid "The switch model %s is used by another object, impossible to delete it." msgstr "" "Le modèle de commutateur réseau %s est utilisé par un autre objet, " "impossible de le supprimer." -#: views.py:839 +#: views.py:856 msgid "The switch bay was created." msgstr "La baie de brassage a été créée." -#: views.py:856 +#: views.py:873 msgid "The switch bay was edited." msgstr "La baie de brassage a été modifiée." -#: views.py:872 +#: views.py:889 msgid "The switch bay was deleted." msgstr "La baie de brassage a été supprimée." -#: views.py:876 +#: views.py:893 #, python-format msgid "The switch bay %s is used by another object, impossible to delete it." msgstr "" "La baie de brassage %s est utilisée par un autre objet, impossible de la " "supprimer." -#: views.py:894 +#: views.py:911 msgid "The building was created." msgstr "Le bâtiment a été créé." -#: views.py:911 +#: views.py:928 msgid "The building was edited." msgstr "Le bâtiment a été modifié." -#: views.py:927 +#: views.py:944 msgid "The building was deleted." msgstr "Le bâtiment a été supprimé." -#: views.py:931 +#: views.py:948 #, python-format msgid "The building %s is used by another object, impossible to delete it." msgstr "" "Le bâtiment %s est utilisé par un autre objet, impossible de le supprimer." -#: views.py:949 +#: views.py:966 msgid "The switch constructor was created." msgstr "Le constructeur de commutateur réseau a été créé." -#: views.py:970 +#: views.py:987 msgid "The switch constructor was edited." msgstr "Le constructeur de commutateur réseau a été modifié." -#: views.py:986 +#: views.py:1003 msgid "The switch constructor was deleted." msgstr "Le constructeur de commutateur réseau a été supprimé." -#: views.py:990 +#: views.py:1007 #, python-format msgid "" "The switch constructor %s is used by another object, impossible to delete it." @@ -835,23 +945,49 @@ msgstr "" "Le constructeur de commutateur réseau %s est utilisé par un autre objet, " "impossible de le supprimer." -#: views.py:1007 +#: views.py:1024 msgid "The port profile was created." msgstr "Le profil de port a été créé." -#: views.py:1025 +#: views.py:1042 msgid "The port profile was edited." msgstr "Le profil de port a été modifié." -#: views.py:1042 +#: views.py:1059 msgid "The port profile was deleted." msgstr "Le profil de port a été supprimé." -#: views.py:1045 +#: views.py:1062 msgid "Impossible to delete the port profile." msgstr "Impossible de supprimer le profil de port." -#: views.py:1165 +#: views.py:1078 +msgid "The module was created." +msgstr "Le module a été créé." + +#: views.py:1095 views.py:1149 +msgid "The module was edited." +msgstr "Le module a été modifié." + +#: views.py:1111 views.py:1165 +msgid "The module was deleted." +msgstr "Le module a été supprimé." + +#: views.py:1115 views.py:1169 +#, python-format +msgid "The module %s is used by another object, impossible to deleted it." +msgstr "" +"Le module %s est utilisé par un autre objet, impossible de le supprimer." + +#: views.py:1120 views.py:1174 +msgid "Module" +msgstr "Module" + +#: views.py:1132 +msgid "The module was added." +msgstr "Le module a été ajouté." + +#: views.py:1291 msgid "" "The default Django template isn't used. This can lead to rendering errors. " "Check the parameters." diff --git a/topologie/migrations/0069_auto_20190108_1439.py b/topologie/migrations/0069_auto_20190108_1439.py new file mode 100644 index 00000000..ba13942b --- /dev/null +++ b/topologie/migrations/0069_auto_20190108_1439.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2019-01-08 20:39 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('topologie', '0068_auto_20190102_1758'), + ] + + operations = [ + migrations.AlterModelOptions( + name='moduleonswitch', + options={'permissions': (('view_moduleonswitch', 'Can view a link between switch and module object'),), 'verbose_name': 'link between switch and module', 'verbose_name_plural': 'links between switch and module'}, + ), + migrations.AlterModelOptions( + name='moduleswitch', + options={'permissions': (('view_moduleswitch', 'Can view a switch module object'),), 'verbose_name': 'switch module', 'verbose_name_plural': 'switch modules'}, + ), + migrations.AlterField( + model_name='modelswitch', + name='is_itself_module', + field=models.BooleanField(default=False, help_text='The switch is considered as a module.'), + ), + migrations.AlterField( + model_name='modelswitch', + name='is_modular', + field=models.BooleanField(default=False, help_text='The switch model is modular.'), + ), + migrations.AlterField( + model_name='portprofile', + name='profil_default', + field=models.CharField(blank=True, choices=[('room', 'Room'), ('access_point', 'Access point'), ('uplink', 'Uplink'), ('asso_machine', 'Organisation machine'), ('nothing', 'Nothing')], max_length=32, null=True, unique=True, verbose_name='Default profile'), + ), + migrations.AlterField( + model_name='portprofile', + name='radius_type', + field=models.CharField(choices=[('NO', 'NO'), ('802.1X', '802.1X'), ('MAC-radius', 'MAC-RADIUS')], help_text='Type of RADIUS authentication : inactive, MAC-address or 802.1X', max_length=32, verbose_name='RADIUS type'), + ), + migrations.AlterField( + model_name='switch', + name='automatic_provision', + field=models.BooleanField(default=False, help_text='Automatic provision for the switch'), + ), + migrations.AlterField( + model_name='switch', + name='management_creds', + field=models.ForeignKey(blank=True, help_text='Management credentials for the switch', null=True, on_delete=django.db.models.deletion.PROTECT, to='preferences.SwitchManagementCred'), + ), + migrations.AlterField( + model_name='switch', + name='radius_key', + field=models.ForeignKey(blank=True, help_text='RADIUS key of the switch', null=True, on_delete=django.db.models.deletion.PROTECT, to='preferences.RadiusKey'), + ), + ] diff --git a/topologie/models.py b/topologie/models.py index e05fa50e..3e093b40 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -238,18 +238,18 @@ class Switch(AclMixin, Machine): blank=True, null=True, on_delete=models.PROTECT, - help_text="Clef radius du switch" + help_text=_("RADIUS key of the switch") ) management_creds = models.ForeignKey( 'preferences.SwitchManagementCred', blank=True, null=True, on_delete=models.PROTECT, - help_text="Identifiant de management de ce switch" + help_text=_("Management credentials for the switch") ) automatic_provision = models.BooleanField( default=False, - help_text='Provision automatique de ce switch', + help_text=_("Automatic provision for the switch") ) @@ -403,11 +403,11 @@ class ModelSwitch(AclMixin, RevMixin, models.Model): ) is_modular = models.BooleanField( default=False, - help_text=_("Is this switch model modular"), + help_text=_("The switch model is modular."), ) is_itself_module = models.BooleanField( default=False, - help_text=_("Is the switch, itself, considered as a module"), + help_text=_("The switch is considered as a module."), ) class Meta: @@ -441,9 +441,10 @@ class ModuleSwitch(AclMixin, RevMixin, models.Model): class Meta: permissions = ( - ("view_moduleswitch", _("Can view a module object")), + ("view_moduleswitch", _("Can view a switch module object")), ) - verbose_name = _("Module of a switch") + verbose_name = _("switch module") + verbose_name_plural = _("switch modules") def __str__(self): @@ -462,13 +463,15 @@ class ModuleOnSwitch(AclMixin, RevMixin, models.Model): class Meta: permissions = ( - ("view_moduleonswitch", _("Can view a moduleonswitch object")), + ("view_moduleonswitch", _("Can view a link between switch and" + " module object")), ) - verbose_name = _("link between switchs and modules") + verbose_name = _("link between switch and module") + verbose_name_plural = _("links between switch and module") unique_together = ['slot', 'switch'] def __str__(self): - return 'On slot ' + str(self.slot) + ' of ' + str(self.switch) + return _("On slot ") + str(self.slot) + _(" of ") + str(self.switch) class ConstructorSwitch(AclMixin, RevMixin, models.Model): @@ -582,7 +585,7 @@ class Port(AclMixin, RevMixin, models.Model): ) state = models.BooleanField( default=True, - help_text='Port state Active', + help_text=_("Port state Active"), verbose_name=_("Port state Active") ) details = models.CharField(max_length=255, blank=True) @@ -599,13 +602,13 @@ class Port(AclMixin, RevMixin, models.Model): def pretty_name(self): """More elaborated name for label on switch conf""" if self.related: - return "Uplink : " + self.related.switch.short_name + return _("Uplink: ") + self.related.switch.short_name elif self.machine_interface: - return "Machine : " + str(self.machine_interface.domain) + return _("Machine: ") + str(self.machine_interface.domain) elif self.room: - return "Chambre : " + str(self.room) + return _("Room: ") + str(self.room) else: - return "Inconnue" + return _("Unknown") @cached_property def get_port_profile(self): @@ -720,7 +723,7 @@ class PortProfile(AclMixin, RevMixin, models.Model): TYPES = ( ('NO', 'NO'), ('802.1X', '802.1X'), - ('MAC-radius', 'MAC-radius'), + ('MAC-radius', _("MAC-RADIUS")), ) MODES = ( ('STRICT', 'STRICT'), @@ -737,11 +740,11 @@ class PortProfile(AclMixin, RevMixin, models.Model): ('auto-100', 'auto-100'), ) PROFIL_DEFAULT = ( - ('room', 'room'), - ('access_point', 'access_point'), - ('uplink', 'uplink'), - ('asso_machine', 'asso_machine'), - ('nothing', 'nothing'), + ('room', _("Room")), + ('access_point', _("Access point")), + ('uplink', _("Uplink")), + ('asso_machine', _("Organisation machine")), + ('nothing', _("Nothing")), ) name = models.CharField(max_length=255, verbose_name=_("Name")) profil_default = models.CharField( diff --git a/topologie/templates/topologie/aff_ap.html b/topologie/templates/topologie/aff_ap.html index 4eadfede..1acd54bb 100644 --- a/topologie/templates/topologie/aff_ap.html +++ b/topologie/templates/topologie/aff_ap.html @@ -28,17 +28,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if ap_list.paginator %} - {% include "pagination.html" with list=ap_list %} + {% include 'pagination.html' with list=ap_list %} {% endif %} {% trans "Access point" as tr_ap %} - + {% trans "MAC address" as tr_mac %} - + {% trans "IPv4 address" as tr_ip %} - + @@ -53,15 +53,11 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -69,7 +65,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='ap' col='name' text=tr_ap %}{% include 'buttons/sort.html' with prefix='ap' col='name' text=tr_ap %}{% include "buttons/sort.html" with prefix='ap' col='mac' text=tr_mac %}{% include 'buttons/sort.html' with prefix='ap' col='mac' text=tr_mac %}{% include "buttons/sort.html" with prefix='ap' col='ip' text=tr_ip %}{% include 'buttons/sort.html' with prefix='ap' col='ip' text=tr_ip %} {% trans "Details" %} {% trans "Location" %} {{ ap.location }} {% can_edit ap %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-ap' id=ap.id %} {% acl_end %} {% history_button ap %} {% can_delete ap %} - - - + {% include 'buttons/suppr.html' with href='machines:del-machine' id=ap.id %} {% acl_end %}
{% if ap_list.paginator %} - {% include "pagination.html" with list=ap_list %} + {% include 'pagination.html' with list=ap_list %} {% endif %}
diff --git a/topologie/templates/topologie/aff_building.html b/topologie/templates/topologie/aff_building.html index 51302d24..9885f1c5 100644 --- a/topologie/templates/topologie/aff_building.html +++ b/topologie/templates/topologie/aff_building.html @@ -27,15 +27,15 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if building_list.paginator %} -{% include "pagination.html" with list=building_list %} + {% include 'pagination.html' with list=building_list %} {% endif %} {% trans "Building" as tr_building %} - - + + @@ -45,15 +45,11 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -61,6 +57,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='building' col='name' text=tr_building %}Wireless AP{% include 'buttons/sort.html' with prefix='building' col='name' text=tr_building %}{% trans "Access points" %}
{% for ap in building.all_ap_in %} {{ ap.short_name }} {% endfor %} {% can_edit building %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-building' id=building.id %} {% acl_end %} {% history_button building %} {% can_delete building %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-building' id=building.id %} {% acl_end %}
{% if building_list.paginator %} -{% include "pagination.html" with list=building_list %} + {% include 'pagination.html' with list=building_list %} {% endif %} diff --git a/topologie/templates/topologie/aff_chambres.html b/topologie/templates/topologie/aff_chambres.html index 04c010f4..6e2b181f 100644 --- a/topologie/templates/topologie/aff_chambres.html +++ b/topologie/templates/topologie/aff_chambres.html @@ -27,14 +27,14 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if room_list.paginator %} -{% include "pagination.html" with list=room_list %} + {% include 'pagination.html' with list=room_list %} {% endif %} {% trans "Room" as tr_room %} - + @@ -45,15 +45,11 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -61,6 +57,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='room' col='name' text=tr_room %}{% include 'buttons/sort.html' with prefix='room' col='name' text=tr_room %} {% trans "Details" %}
{{ room.details }} {% can_edit room %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-room' id=room.id %} {% acl_end %} {% history_button room %} {% can_delete room %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-room' id=room.id %} {% acl_end %}
{% if room_list.paginator %} -{% include "pagination.html" with list=room_list %} + {% include 'pagination.html' with list=room_list %} {% endif %} diff --git a/topologie/templates/topologie/aff_constructor_switch.html b/topologie/templates/topologie/aff_constructor_switch.html index 6298f73d..eceeb682 100644 --- a/topologie/templates/topologie/aff_constructor_switch.html +++ b/topologie/templates/topologie/aff_constructor_switch.html @@ -27,14 +27,14 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if constructor_switch_list.paginator %} -{% include "pagination.html" with list=constructor_switch_list %} + {% include 'pagination.html' with list=constructor_switch_list %} {% endif %} {% trans "Switch constructor" as tr_constructor %} - + @@ -43,15 +43,11 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -59,6 +55,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='constructor-switch' col='name' text=tr_constructor %}{% include 'buttons/sort.html' with prefix='constructor-switch' col='name' text=tr_constructor %}
{{ constructor_switch }} {% can_edit constructor_switch %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-constructor-switch' id=constructor_switch.id %} {% acl_end %} {% history_button constructor_switch %} {% can_delete constructor_switch %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-constructor-switch' id=constructor_switch.id %} {% acl_end %}
{% if constructor_switch_list.paginator %} -{% include "pagination.html" with list=constructor_switch_list %} + {% include 'pagination.html' with list=constructor_switch_list %} {% endif %} diff --git a/topologie/templates/topologie/aff_model_switch.html b/topologie/templates/topologie/aff_model_switch.html index 6a296ad7..426b308a 100644 --- a/topologie/templates/topologie/aff_model_switch.html +++ b/topologie/templates/topologie/aff_model_switch.html @@ -27,18 +27,18 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if model_switch_list.paginator %} -{% include "pagination.html" with list=model_switch_list %} + {% include 'pagination.html' with list=model_switch_list %} {% endif %} {% trans "Reference" as tr_ref %} - + {% trans "Switch constructor" as tr_constructor %} - + @@ -47,7 +47,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - + @@ -74,8 +70,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='model-switch' col='reference' text=tr_ref %}{% include 'buttons/sort.html' with prefix='model-switch' col='reference' text=tr_ref %} {% trans "Commercial name" %} Firmware{% include "buttons/sort.html" with prefix='model-switch' col='constructor' text=tr_constructor %}{% include 'buttons/sort.html' with prefix='model-switch' col='constructor' text=tr_constructor %} {% trans "Switches" %}
{{ model_switch.reference }} {{ model_switch.commercial_name }}{{model_switch.firmware}}{{ model_switch.firmware }} {{ model_switch.constructor }} {% for switch in model_switch.switch_set.all %} @@ -58,15 +58,11 @@ with this program; if not, write to the Free Software Foundation, Inc., {% can_edit model_switch %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-model-switch' id=model_switch.id %} {% acl_end %} {% history_button model_switch %} {% can_delete model_switch %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-model-switch' id=model_switch.id %} {% acl_end %}
{% if model_switch_list.paginator %} -{% include "pagination.html" with list=model_switch_list %} + {% include 'pagination.html' with list=model_switch_list %} {% endif %} - - diff --git a/topologie/templates/topologie/aff_modules.html b/topologie/templates/topologie/aff_modules.html index 0c7a3207..021457f2 100644 --- a/topologie/templates/topologie/aff_modules.html +++ b/topologie/templates/topologie/aff_modules.html @@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if module_list.paginator %} -{% include "pagination.html" with list=module_list %} + {% include 'pagination.html' with list=module_list %} {% endif %} @@ -35,7 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - + @@ -45,34 +45,24 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -80,7 +70,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% trans "Reference" %} {% trans "Comment" %}{% trans "Switchs" %}{% trans "Switches" %}
{{ module.comment }} {% for module_switch in module.moduleonswitch_set.all %} - Slot {{ module_switch.slot }} of {{ module_switch.switch }} + {% trans "Slot" %} {{ module_switch.slot }} {% trans "of" %} {{ module_switch.switch }} {% can_edit module_switch %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-module-on' id=module_switch.id %} {% acl_end %} {% can_delete module_switch %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-module-on' id=module_switch.id %} {% acl_end %}
{% endfor %}
{% can_edit module %} - - - - - - + {% include 'buttons/add.html' with href='topologie:add-module-on' %} + {% include 'buttons/edit.html' with href='topologie:edit-module' id=module.id %} {% acl_end %} {% history_button module %} {% can_delete module %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-module' id=module.id %} {% acl_end %}
{% if module_list.paginator %} -{% include "pagination.html" with list=module_list %} + {% include 'pagination.html' with list=module_list %} {% endif %}

{% trans "All modular switchs" %}

diff --git a/topologie/templates/topologie/aff_port.html b/topologie/templates/topologie/aff_port.html index ef7e259c..6a02b484 100644 --- a/topologie/templates/topologie/aff_port.html +++ b/topologie/templates/topologie/aff_port.html @@ -31,16 +31,16 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans "Port" as tr_port %} - {% include "buttons/sort.html" with prefix='port' col='port' text=tr_port %} + {% include 'buttons/sort.html' with prefix='port' col='port' text=tr_port %} {% if search %} {% trans "Switch" %} {% endif %} {% trans "Room" as tr_room %} - {% include "buttons/sort.html" with prefix='port' col='room' text=tr_room %} + {% include 'buttons/sort.html' with prefix='port' col='room' text=tr_room %} {% trans "Interface" as tr_interface %} - {% include "buttons/sort.html" with prefix='port' col='interface' text=tr_interface %} + {% include 'buttons/sort.html' with prefix='port' col='interface' text=tr_interface %} {% trans "Related port" as tr_related_port %} - {% include "buttons/sort.html" with prefix='port' col='related' text=tr_related_port %} + {% include 'buttons/sort.html' with prefix='port' col='related' text=tr_related_port %} {% trans "Port state" %} {% trans "Port profile" %} {% trans "Details" %} @@ -96,15 +96,11 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ port.details }} {% can_edit port %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-port' id=port.id %} {% acl_end %} {% history_button port %} {% can_delete port %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-port' id=port.id %} {% acl_end %} diff --git a/topologie/templates/topologie/aff_port_profile.html b/topologie/templates/topologie/aff_port_profile.html index 9714f1d9..b335904e 100644 --- a/topologie/templates/topologie/aff_port_profile.html +++ b/topologie/templates/topologie/aff_port_profile.html @@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if port_profile_list.paginator %} - {% include "pagination.html" with list=port_profile_list %} + {% include 'pagination.html' with list=port_profile_list %} {% endif %} @@ -68,11 +68,11 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ port_profile.security_parameters_enabled|join:"
" }} {% can_edit port_profile %} - {% include 'buttons/edit.html' with href='topologie:edit-port-profile' id=port_profile.pk %} + {% include 'buttons/edit.html' with href='topologie:edit-port-profile' id=port_profile.id %} {% acl_end %} {% history_button port_profile %} {% can_delete port_profile %} - {% include 'buttons/suppr.html' with href='topologie:del-port-profile' id=port_profile.pk %} + {% include 'buttons/suppr.html' with href='topologie:del-port-profile' id=port_profile.id %} {% acl_end %} @@ -80,7 +80,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% if port_profile_list.paginator %} - {% include "pagination.html" with list=port_profile_list %} + {% include 'pagination.html' with list=port_profile_list %} {% endif %}
diff --git a/topologie/templates/topologie/aff_repr_switch.html b/topologie/templates/topologie/aff_repr_switch.html index f9e6e648..c482da7a 100644 --- a/topologie/templates/topologie/aff_repr_switch.html +++ b/topologie/templates/topologie/aff_repr_switch.html @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endcomment %} {% load acl %} +{% load i18n %}
@@ -63,7 +64,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% else %} {% endif %} {% endfor %} @@ -106,7 +107,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% else %} {% endif %} {% endfor %} diff --git a/topologie/templates/topologie/aff_stacks.html b/topologie/templates/topologie/aff_stacks.html index c5366cd7..c1032ee6 100644 --- a/topologie/templates/topologie/aff_stacks.html +++ b/topologie/templates/topologie/aff_stacks.html @@ -30,9 +30,9 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans "Stack" as tr_stack %} - + {% trans "ID" as tr_id %} - + @@ -45,22 +45,18 @@ with this program; if not, write to the Free Software Foundation, Inc., diff --git a/topologie/templates/topologie/aff_switch.html b/topologie/templates/topologie/aff_switch.html index d900a1f9..93c05530 100644 --- a/topologie/templates/topologie/aff_switch.html +++ b/topologie/templates/topologie/aff_switch.html @@ -28,22 +28,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if switch_list.paginator %} - {% include "pagination.html" with list=switch_list %} + {% include 'pagination.html' with list=switch_list %} {% endif %}
- Vide + {% trans "Empty" %} - Vide + {% trans "Empty" %}
{% include "buttons/sort.html" with prefix='stack' col='name' text=tr_stack %}{% include 'buttons/sort.html' with prefix='stack' col='name' text=tr_stack %}{% include "buttons/sort.html" with prefix='stack' col='id' text=id %}{% include 'buttons/sort.html' with prefix='stack' col='id' text=id %} {% trans "Details" %} {% trans "Members" %} {{ stack.details }} {% for switch in stack.switch_set.all %} - + {{ switch }} {% endfor %} {% can_edit stack %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-stack' id=stack.id %} {% acl_end %} {% history_button stack %} {% can_delete stack %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-stack' id=stack.id %} {% acl_end %}
{% trans "DNS name" as tr_dns %} - + {% trans "IPv4 address" as tr_ip %} - + {% trans "Switch bay" as tr_bay %} - + {% trans "Ports" as tr_ports %} - + {% trans "Stack" as tr_stack %} - + @@ -53,7 +53,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for switch in switch_list %} @@ -66,7 +66,7 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -82,7 +82,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='switch' col='dns' text=tr_dns %}{% include 'buttons/sort.html' with prefix='switch' col='dns' text=tr_dns %}{% include "buttons/sort.html" with prefix='switch' col='ip' text=tr_ip %}{% include 'buttons/sort.html' with prefix='switch' col='ip' text=tr_ip %}{% include "buttons/sort.html" with prefix='switch' col='loc' text=tr_bay %}{% include 'buttons/sort.html' with prefix='switch' col='loc' text=tr_bay %}{% include "buttons/sort.html" with prefix='switch' col='ports' text=tr_ports %}{% include 'buttons/sort.html' with prefix='switch' col='ports' text=tr_ports %}{% include "buttons/sort.html" with prefix='switch' col='stack' text=tr_stack %}{% include 'buttons/sort.html' with prefix='switch' col='stack' text=tr_stack %} {% trans "Stack ID" %} {% trans "Switch model" %} {% trans "Details" %}
- + {{ switch }} {{ switch.interface_set.first.details }} {% can_edit switch %} - {% include 'buttons/edit.html' with href='topologie:edit-switch' id=switch.pk %} + {% include 'buttons/edit.html' with href='topologie:edit-switch' id=switch.id %} {% acl_end %} {% history_button switch %} {% can_delete switch %} @@ -74,7 +74,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% acl_end %} {% can_create Port %} {% trans "Creation of ports" as tr_creation %} - {% include 'buttons/add.html' with href='topologie:create-ports' id=switch.pk desc=tr_creation %} + {% include 'buttons/add.html' with href='topologie:create-ports' id=switch.id desc=tr_creation %} {% acl_end %}
{% if switch_list.paginator %} - {% include "pagination.html" with list=switch_list %} + {% include 'pagination.html' with list=switch_list %} {% endif %}
diff --git a/topologie/templates/topologie/aff_switch_bay.html b/topologie/templates/topologie/aff_switch_bay.html index 0909c264..0aa81449 100644 --- a/topologie/templates/topologie/aff_switch_bay.html +++ b/topologie/templates/topologie/aff_switch_bay.html @@ -27,16 +27,16 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if switch_bay_list.paginator %} -{% include "pagination.html" with list=switch_bay_list %} + {% include 'pagination.html' with list=switch_bay_list %} {% endif %} {% trans "Switch bay" as tr_bay %} - + {% trans "Building" as tr_building %} - + @@ -49,22 +49,18 @@ with this program; if not, write to the Free Software Foundation, Inc., @@ -72,6 +68,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "buttons/sort.html" with prefix='switch-bay' col='name' text=tr_bay %}{% include 'buttons/sort.html' with prefix='switch-bay' col='name' text=tr_bay %}{% include "buttons/sort.html" with prefix='switch-bay' col='building' text=tr_building %}{% include 'buttons/sort.html' with prefix='switch-bay' col='building' text=tr_building %} {% trans "Information" %} {% trans "Switches of the bay" %} {{ switch_bay.info }} {% for switch in switch_bay.switch_set.all %} - + {{ switch }} {% endfor %} {% can_edit switch_bay %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-switch-bay' id=switch_bay.id %} {% acl_end %} {% history_button switch_bay %} {% can_delete switch_bay %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-switch-bay' id=switch_bay.id %} {% acl_end %}
{% if switch_bay_list.paginator %} -{% include "pagination.html" with list=switch_bay_list %} + {% include 'pagination.html' with list=switch_bay_list %} {% endif %} diff --git a/topologie/templates/topologie/aff_vlanoptions.html b/topologie/templates/topologie/aff_vlanoptions.html index 3810cb7f..9b2dc913 100644 --- a/topologie/templates/topologie/aff_vlanoptions.html +++ b/topologie/templates/topologie/aff_vlanoptions.html @@ -24,18 +24,19 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load acl %} {% load logs_extra %} +{% load i18n %}
- - - - - - - + + + + + + + diff --git a/topologie/templates/topologie/delete.html b/topologie/templates/topologie/delete.html index a3b85254..24e6edad 100644 --- a/topologie/templates/topologie/delete.html +++ b/topologie/templates/topologie/delete.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en diff --git a/topologie/templates/topologie/edit_stack_sw.html b/topologie/templates/topologie/edit_stack_sw.html index 8c29c85c..bf094f07 100644 --- a/topologie/templates/topologie/edit_stack_sw.html +++ b/topologie/templates/topologie/edit_stack_sw.html @@ -41,15 +41,11 @@ with this program; if not, write to the Free Software Foundation, Inc., diff --git a/topologie/templates/topologie/index.html b/topologie/templates/topologie/index.html index 1c13b928..be3667ca 100644 --- a/topologie/templates/topologie/index.html +++ b/topologie/templates/topologie/index.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -68,7 +68,7 @@ function toggle_graph() { {% trans " Add a switch" %}
{% acl_end %} - {% include "topologie/aff_switch.html" with switch_list=switch_list %} + {% include 'topologie/aff_switch.html' with switch_list=switch_list %}


diff --git a/topologie/templates/topologie/index_ap.html b/topologie/templates/topologie/index_ap.html index e1292bb9..5fbd3d94 100644 --- a/topologie/templates/topologie/index_ap.html +++ b/topologie/templates/topologie/index_ap.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -35,7 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans " Add an access point" %}
{% acl_end %} - {% include "topologie/aff_ap.html" with ap_list=ap_list %} + {% include 'topologie/aff_ap.html' with ap_list=ap_list %}


diff --git a/topologie/templates/topologie/index_model_switch.html b/topologie/templates/topologie/index_model_switch.html index b89b7415..e7ad725f 100644 --- a/topologie/templates/topologie/index_model_switch.html +++ b/topologie/templates/topologie/index_model_switch.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -37,7 +37,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% acl_end %} - {% include "topologie/aff_model_switch.html" with model_switch_list=model_switch_list %} + {% include 'topologie/aff_model_switch.html' with model_switch_list=model_switch_list %}

{% trans "Switch constructors" %}

{% can_create ConstructorSwitch %} @@ -46,6 +46,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% acl_end %} - {% include "topologie/aff_constructor_switch.html" with constructor_switch_list=constructor_switch_list %} + {% include 'topologie/aff_constructor_switch.html' with constructor_switch_list=constructor_switch_list %} {% endblock %} diff --git a/topologie/templates/topologie/index_module.html b/topologie/templates/topologie/index_module.html index d9cc2925..a7fee190 100644 --- a/topologie/templates/topologie/index_module.html +++ b/topologie/templates/topologie/index_module.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -30,12 +30,12 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Topology" %}{% endblock %} {% block content %} -

{% trans "Modules of switchs" %}

+

{% trans "Switch modules" %}

{% can_create ModuleSwitch %} {% trans " Add a module" %}
{% acl_end %} - {% include "topologie/aff_modules.html" with module_list=module_list modular_switchs=modular_switchs %} + {% include 'topologie/aff_modules.html' with module_list=module_list modular_switchs=modular_switchs %}


diff --git a/topologie/templates/topologie/index_p.html b/topologie/templates/topologie/index_p.html index f44a48c6..04a516ec 100644 --- a/topologie/templates/topologie/index_p.html +++ b/topologie/templates/topologie/index_p.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -46,14 +46,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
IdNomArp ProtectDhcp SnoopingDhcpv6 SnoopingIgmpMld{% trans "ID" %}{% trans "Name" %}{% trans "ARP protect" %}{% trans "DHCP snooping" %}{% trans "DHCPv6 snooping" %}{% trans "IGMP" %}{% trans "MLD" %}
{{ stack.details }} {% can_edit stack %} - - - + {% include 'buttons/edit.html' with href='topologie:edit-stack' id=stack.id %} {% acl_end %} {% history_button stack %} {% can_delete stack %} - - - + {% include 'buttons/suppr.html' with href='topologie:del-stack' id=stack.id %} {% acl_end %}

-{% trans " Edit" %} +{% include 'buttons/edit.html' with href='topologie:edit-switch' id=id_switch %} {% can_create Port %} -{% trans " Add a port" %} -{% trans " Add ports" %} +{% include 'buttons/add.html' with href='topologie:new-port' id=id_switch %} +{% include 'buttons/add.html' with href='topologie:create-ports' id=id_switch %} {% acl_end %}
-{% include "topologie/aff_repr_switch.html" with port_list=port_list %} -{% include "topologie/aff_port.html" with port_list=port_list %} +{% include 'topologie/aff_repr_switch.html' with port_list=port_list %} +{% include 'topologie/aff_port.html' with port_list=port_list %}


diff --git a/topologie/templates/topologie/index_physical_grouping.html b/topologie/templates/topologie/index_physical_grouping.html index 763d7820..d2defa0c 100644 --- a/topologie/templates/topologie/index_physical_grouping.html +++ b/topologie/templates/topologie/index_physical_grouping.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans " Add a stack" %} {% acl_end %} - {% include "topologie/aff_stacks.html" with stack_list=stack_list %} + {% include 'topologie/aff_stacks.html' with stack_list=stack_list %}

{% trans "Switch bays" %}

{% can_create SwitchBay %} @@ -45,7 +45,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% acl_end %} - {% include "topologie/aff_switch_bay.html" with switch_bay_list=switch_bay_list %} + {% include 'topologie/aff_switch_bay.html' with switch_bay_list=switch_bay_list %}

{% trans "Buildings" %}

{% can_create Building %} @@ -54,6 +54,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% acl_end %} - {% include "topologie/aff_building.html" with building_list=building_list %} + {% include 'topologie/aff_building.html' with building_list=building_list %} {% endblock %} diff --git a/topologie/templates/topologie/index_portprofile.html b/topologie/templates/topologie/index_portprofile.html index 4a603210..a528b992 100644 --- a/topologie/templates/topologie/index_portprofile.html +++ b/topologie/templates/topologie/index_portprofile.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -36,11 +36,11 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans " Add a port profile" %}
{% acl_end %} -{% include "topologie/aff_port_profile.html" with port_profile_list=port_profile_list %} +{% include 'topologie/aff_port_profile.html' with port_profile_list=port_profile_list %} -

{% trans "Sécurité par vlan" %}

-{% include "topologie/aff_vlanoptions.html" with vlan_list=vlan_list %} +

{% trans "VLAN security" %}

+{% include 'topologie/aff_vlanoptions.html' with vlan_list=vlan_list %}

diff --git a/topologie/templates/topologie/index_room.html b/topologie/templates/topologie/index_room.html index ea6ed6f3..248ce05d 100644 --- a/topologie/templates/topologie/index_room.html +++ b/topologie/templates/topologie/index_room.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -35,7 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans " Add a room" %}
{% acl_end %} - {% include "topologie/aff_chambres.html" with room_list=room_list %} + {% include 'topologie/aff_chambres.html' with room_list=room_list %}


diff --git a/topologie/templates/topologie/sidebar.html b/topologie/templates/topologie/sidebar.html index 80317a16..249c4308 100644 --- a/topologie/templates/topologie/sidebar.html +++ b/topologie/templates/topologie/sidebar.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends 'base.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -26,31 +26,31 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% block sidebar %} - + {% trans "Rooms and premises" %} - + {% trans "Switches" %} - + - {% trans "Switches modules" %} + {% trans "Switch modules" %} - + {% trans "Port profiles" %} - + {% trans "Access points" %} - + {% trans "Physical grouping" %} - + {% trans "Switch models and constructors" %} diff --git a/topologie/templates/topologie/switch.html b/topologie/templates/topologie/switch.html index 48d220fc..5bb738f6 100644 --- a/topologie/templates/topologie/switch.html +++ b/topologie/templates/topologie/switch.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc., -{% bootstrap_icon "list" %}{% trans " Go to the ports list" %} +{% bootstrap_icon "list" %}{% trans " Go to the ports list" %}
{% csrf_token %} {% if topoform %} diff --git a/topologie/templates/topologie/topo.html b/topologie/templates/topologie/topo.html index a7824020..2f6449e5 100644 --- a/topologie/templates/topologie/topo.html +++ b/topologie/templates/topologie/topo.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en @@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% bootstrap_form_errors topoform %} {% if id_switch %} -{% bootstrap_icon "list" %}{% trans " Go to the ports list" %} +{% bootstrap_icon "list" %}{% trans " Go to the ports list" %} {% endif %} {% csrf_token %} diff --git a/topologie/templates/topologie/topo_more.html b/topologie/templates/topologie/topo_more.html index 02171bd0..89f6404d 100644 --- a/topologie/templates/topologie/topo_more.html +++ b/topologie/templates/topologie/topo_more.html @@ -1,4 +1,4 @@ -{% extends "topologie/sidebar.html" %} +{% extends 'topologie/sidebar.html' %} {% comment %} Re2o est un logiciel d'administration développé initiallement au rezometz. Il se veut agnostique au réseau considéré, de manière à être installable en diff --git a/topologie/views.py b/topologie/views.py index 55f0a060..2eeb3d55 100644 --- a/topologie/views.py +++ b/topologie/views.py @@ -344,10 +344,10 @@ def edit_vlanoptions(request, vlan_instance, **_kwargs): if vlan.is_valid(): if vlan.changed_data: vlan.save() - messages.success(request, "Vlan modifié") + messages.success(request, _("The VLAN was edited.")) return redirect(reverse('topologie:index-port-profile')) return form( - {'vlanform': vlan, 'action_name': 'Editer'}, + {'vlanform': vlan, 'action_name': _("Edit")}, 'machines/machine.html', request ) @@ -551,7 +551,7 @@ def create_ports(request, switchid): try: switch = Switch.objects.get(pk=switchid) except Switch.DoesNotExist: - messages.error(request, _("Nonexistent switch")) + messages.error(request, _("Nonexistent switch.")) return redirect(reverse('topologie:index')) first_port = getattr(switch.ports.order_by('port').first(), 'port', 1) @@ -742,7 +742,7 @@ def new_room(request): messages.success(request, _("The room was created.")) return redirect(reverse('topologie:index-room')) return form( - {'topoform': room, 'action_name': _("Add")}, + {'topoform': room, 'action_name': _("Create")}, 'topologie/topo.html', request ) @@ -794,10 +794,10 @@ def new_model_switch(request): model_switch = EditModelSwitchForm(request.POST or None) if model_switch.is_valid(): model_switch.save() - messages.success(request, _("The swich model was created.")) + messages.success(request, _("The switch model was created.")) return redirect(reverse('topologie:index-model-switch')) return form( - {'topoform': model_switch, 'action_name': _("Add")}, + {'topoform': model_switch, 'action_name': _("Create")}, 'topologie/topo.html', request ) @@ -856,7 +856,7 @@ def new_switch_bay(request): messages.success(request, _("The switch bay was created.")) return redirect(reverse('topologie:index-physical-grouping')) return form( - {'topoform': switch_bay, 'action_name': _("Add")}, + {'topoform': switch_bay, 'action_name': _("Create")}, 'topologie/topo.html', request ) @@ -911,7 +911,7 @@ def new_building(request): messages.success(request, _("The building was created.")) return redirect(reverse('topologie:index-physical-grouping')) return form( - {'topoform': building, 'action_name': _("Add")}, + {'topoform': building, 'action_name': _("Create")}, 'topologie/topo.html', request ) @@ -966,7 +966,7 @@ def new_constructor_switch(request): messages.success(request, _("The switch constructor was created.")) return redirect(reverse('topologie:index-model-switch')) return form( - {'topoform': constructor_switch, 'action_name': _("Add")}, + {'topoform': constructor_switch, 'action_name': _("Create")}, 'topologie/topo.html', request ) @@ -1078,7 +1078,7 @@ def add_module(request): messages.success(request, _("The module was created.")) return redirect(reverse('topologie:index-module')) return form( - {'topoform': module, 'action_name': _("Create a module")}, + {'topoform': module, 'action_name': _("Create")}, 'topologie/topo.html', request ) @@ -1129,10 +1129,10 @@ def add_module_on(request): module_switch = EditSwitchModuleForm(request.POST or None) if module_switch.is_valid(): module_switch.save() - messages.success(request, _("The module added to that switch")) + messages.success(request, _("The module was added.")) return redirect(reverse('topologie:index-module')) return form( - {'topoform': module_switch, 'action_name': _("Create")}, + {'topoform': module_switch, 'action_name': _("Add")}, 'topologie/topo.html', request )