summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-13 12:57:37 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-13 12:57:37 +0200
commit02855dc46a90adfb28ce85e8237e66a452dfdd55 (patch)
treee748327778bd225f215d40980c131a82a0d431e7
parent80e54241caea4015eed3bb22b8d37e9e10c4ee92 (diff)
downloadComm-on-net-02855dc46a90adfb28ce85e8237e66a452dfdd55.tar.bz2
Comm-on-net-02855dc46a90adfb28ce85e8237e66a452dfdd55.zip
Admin - translations
-rw-r--r--commcrawler/admin.py11
-rw-r--r--commcrawler/locale/fr/LC_MESSAGES/django.po97
-rw-r--r--commcrawler/models.py5
-rw-r--r--commorganization/locale/fr/LC_MESSAGES/django.po2
4 files changed, 63 insertions, 52 deletions
diff --git a/commcrawler/admin.py b/commcrawler/admin.py
index 6a72e41..b8f6206 100644
--- a/commcrawler/admin.py
+++ b/commcrawler/admin.py
@@ -48,18 +48,21 @@ def export_as_csv_action(field_names,
return export_as_csv
-
-
class CrawlAdmin(admin.ModelAdmin):
model = models.Crawl
- list_display = ("name", "status", "target_nb", "created", "started",
- "pre_crawl_ended", "crawl_ended", "ended", "progress")
+ list_display = ("name", "status", "get_target_nb", "time_out", "created",
+ "started", "crawl_ended", "ended", "progress")
list_filter = ("status",)
exclude = ("progression", "created", "started", "pre_crawl_ended",
"crawl_ended", "ended")
readonly_fields = ()
form = make_ajax_form(model, {'targets': 'target'})
+ def get_target_nb(self, obj):
+ return obj.target_nb
+
+ get_target_nb.short_description = _("Target number")
+
admin_site.register(models.Crawl, CrawlAdmin)
diff --git a/commcrawler/locale/fr/LC_MESSAGES/django.po b/commcrawler/locale/fr/LC_MESSAGES/django.po
index 8d849b7..8fe8add 100644
--- a/commcrawler/locale/fr/LC_MESSAGES/django.po
+++ b/commcrawler/locale/fr/LC_MESSAGES/django.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-13 12:24+0200\n"
+"POT-Creation-Date: 2019-08-13 12:42+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,7 +16,11 @@ msgstr ""
msgid "Export selected as CSV file"
msgstr "Export des éléments sélectionnés en CSV"
-#: admin.py:112 models.py:102 models.py:141
+#: admin.py:64
+msgid "Target number"
+msgstr "Nombre de cible"
+
+#: admin.py:115 models.py:103 models.py:142
msgid "Crawl result"
msgstr "Résultat d'indexation"
@@ -56,7 +60,7 @@ msgstr "Indexation en cours"
msgid "Match link in progress"
msgstr "Mise en correspondance des liens en cours"
-#: models.py:34 models.py:90
+#: models.py:34 models.py:91
msgid "Finished"
msgstr "Fini"
@@ -65,162 +69,162 @@ msgid "Name"
msgstr "Nom"
#: models.py:38
-msgid "Maximum delay for crawling a target (minutes)"
-msgstr "Délai maximum de parcours pour une cible (minutes)"
+msgid "Maximum delay"
+msgstr "Délai maximum"
#: models.py:39
-msgid "0 for no delay"
-msgstr "0 pour aucun délai"
+msgid "Maximum delay for crawling a target (minutes). 0 for no delay"
+msgstr "Délai maximum de parcours pour une cible (minutes). 0 pour aucun délai."
-#: models.py:42
+#: models.py:43
msgid "Creation"
msgstr "Création"
-#: models.py:44
+#: models.py:45
msgid "Started"
msgstr "Début"
-#: models.py:46
+#: models.py:47
msgid "Pre-crawl end"
msgstr "Fin de la pré-indexation"
-#: models.py:48
+#: models.py:49
msgid "Crawl end"
msgstr "Fin d'indexation"
-#: models.py:50
+#: models.py:51
msgid "Ended"
msgstr "Fin"
-#: models.py:52 models.py:100
+#: models.py:53 models.py:101
msgid "Status"
msgstr "État"
-#: models.py:56
+#: models.py:57
msgid "Progression"
msgstr "Progression"
-#: models.py:59 models.py:92 models.py:159
+#: models.py:60 models.py:93 models.py:160
msgid "Crawl"
msgstr "Session d'indexation"
-#: models.py:60
+#: models.py:61
msgid "Crawls"
msgstr "Session d'indexation"
-#: models.py:88
+#: models.py:89
msgid "In progress"
msgstr "En cours"
-#: models.py:89
+#: models.py:90
msgid "Time out"
msgstr "Délai expiré"
-#: models.py:94
+#: models.py:95
msgid "Target"
msgstr "Cible"
-#: models.py:96
+#: models.py:97
msgid "Start date"
msgstr "Date de début"
-#: models.py:98
+#: models.py:99
msgid "Duration"
msgstr "Durée"
-#: models.py:104
+#: models.py:105
msgid "External links"
msgstr "Liens externes"
-#: models.py:106
+#: models.py:107
msgid "Internal links"
msgstr "Liens internes"
-#: models.py:108
+#: models.py:109
msgid "Images"
msgstr "Images"
-#: models.py:110
+#: models.py:111
msgid "Facebook links"
msgstr "Liens Facebook"
-#: models.py:112
+#: models.py:113
msgid "Twitter links"
msgstr "Liens Twitter"
-#: models.py:114
+#: models.py:115
msgid "Instagram links"
msgstr "Liens Instagram"
-#: models.py:116
+#: models.py:117
msgid "Youtube links"
msgstr "Liens Youtube"
-#: models.py:118
+#: models.py:119
msgid "Dailymotion links"
msgstr "Liens Dailymotion"
-#: models.py:120
+#: models.py:121
msgid "Vimeo links"
msgstr "Liens Vimeo"
-#: models.py:122
+#: models.py:123
msgid "Internal videos"
msgstr "Vidéos internes"
-#: models.py:124
+#: models.py:125
msgid "Internal audios"
msgstr "Audios internes"
-#: models.py:126
+#: models.py:127
msgid "Internal PDF"
msgstr "PDF internes"
-#: models.py:128
+#: models.py:129
msgid "External PDF"
msgstr "PDF externes"
-#: models.py:130
+#: models.py:131
msgid "Internal office documents"
msgstr "Document office internes"
-#: models.py:132
+#: models.py:133
msgid "External office documents"
msgstr "Document office externes"
-#: models.py:134
+#: models.py:135
msgid "Website is online"
msgstr "Site en ligne"
-#: models.py:136
+#: models.py:137
msgid "Bad SSL certificate"
msgstr "Mauvais certificat SSL"
-#: models.py:138
+#: models.py:139
msgid "Redirection"
msgstr "Redirection"
-#: models.py:142
+#: models.py:143
msgid "Crawl results"
msgstr "Résultats d'indexation"
-#: models.py:160
+#: models.py:161
msgid "Source"
msgstr "Source"
-#: models.py:162
+#: models.py:163
msgid "Destination"
msgstr "Destination"
-#: models.py:164
+#: models.py:165
msgid "Number"
msgstr "Nombre"
-#: models.py:167
+#: models.py:168
msgid "Crawl relation"
msgstr "Indexation - Relation"
-#: models.py:168
+#: models.py:169
msgid "Crawl relations"
msgstr "Indexations - Relations"
@@ -233,6 +237,9 @@ msgstr "Ajout de %(query_nb)s éléments sélectionnés à une indexation"
msgid "Add"
msgstr "Ajouter"
+#~ msgid "0 for no delay"
+#~ msgstr "0 pour aucun délai"
+
#~ msgid "End date"
#~ msgstr "Date de fin"
diff --git a/commcrawler/models.py b/commcrawler/models.py
index d6d766e..22e5602 100644
--- a/commcrawler/models.py
+++ b/commcrawler/models.py
@@ -35,8 +35,9 @@ class Crawl(models.Model):
)
name = models.CharField(verbose_name=_("Name"), max_length=200, unique=True)
time_out = models.PositiveIntegerField(
- verbose_name=_("Maximum delay for crawling a target (minutes)"),
- default=10, help_text=_("0 for no delay")
+ verbose_name=_("Maximum delay"),
+ default=10, help_text=_("Maximum delay for crawling a target ("
+ "minutes). 0 for no delay")
)
created = models.DateTimeField(
verbose_name=_("Creation"), default=datetime.datetime.now)
diff --git a/commorganization/locale/fr/LC_MESSAGES/django.po b/commorganization/locale/fr/LC_MESSAGES/django.po
index 6d69e4b..eb8f806 100644
--- a/commorganization/locale/fr/LC_MESSAGES/django.po
+++ b/commorganization/locale/fr/LC_MESSAGES/django.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-08-13 12:24+0200\n"
+"POT-Creation-Date: 2019-08-13 12:42+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"