From b3c0547ce6088305c989ba675ab26725fa79cb83 Mon Sep 17 00:00:00 2001 From: bkfox Date: Mon, 8 May 2017 23:45:09 +0200 Subject: [PATCH] fix translation --- aircox_cms/locale/fr/LC_MESSAGES/django.mo | Bin 17717 -> 17718 bytes aircox_cms/locale/fr/LC_MESSAGES/django.po | 2 +- aircox_cms/models.py | 7 ++++++- aircox_cms/wagtail_hooks.py | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/aircox_cms/locale/fr/LC_MESSAGES/django.mo b/aircox_cms/locale/fr/LC_MESSAGES/django.mo index 9b4b324dd89f885e1a8f6050bc39a2976c88f455..64fdbcff5616f1e256b048aaa5f25a03841989bc 100644 GIT binary patch delta 1228 zcmXZbOGs2v9LMoN( zdW<1hL7TuH(8N@WBnrxih-wj1i&|KOo2W%46ja}z_ipBM&Yg45|9}4HfA6KO`)Mot zvd|6~V}7+7laHQd#uT9+>oAOcn8X@9hwCwm4fq|Ku`*`NDokMnk7Fs0<08C;A)Le# zoJJphi5Yu7@DF$4A5;R~xRX#hdYMOX1{-k!7PUD6{J52QEqd@MF2s`HwN(%%VQ=WPb$V5TvF{rt!?{H(^OIEsI<8#617X~&P)i6QE)^*c}rk0Pw zQCINRoquxYv#6`E=iEU7(R3#jSd8_!ALDoguV4oT*Er9&pi21=7vmJ>;d@+%A8@{h z$hMk!63cNXDxt$jJlmXNu#E>9Y{GBIZI~*eRbdb6WJ9wV6U#7*y*PzhSH>b4 z!a|IquA&KbWgSSHnO^j$_9qyq$28Qg;t zs1y45RCItasyP$L2V;_`eTT8dX7GSP6lYN-@+6(6i=rwKLzQ+fs^t4n0f$j19KjHt z#Y((^s?ZbMh|f_KDWOAk#X(epb!fLRh%-5t zMYiLQ1zpVtKHg}bN?pP@?l0;};e>T}A= P9rKOUT8DD~S`)$lt2c=| delta 1225 zcmXZbOGwmF6vy#1l{VvRQfDSd$C)%?G?HervC?YtK~$vD!Zt>cSVRQ535gbef*vH% zW0JrM+64B16eS^vf-)lLu?VR}Ei%GQ)S?gyg1$fhvzgDm|GEEr&OP`1CkH(b2R&o2 zy-u;2&95=bMQ_3^AN{xzE3gaG7{g1L#!-ypPh5q|lV%&R6)W*1YTscj!uwc`Q|QMT zEW~d~a~1;s$}aqiO2D_)O(=+Y%p*99aa@9V4Q>EGb~CR+9}Zv+p28A5hdRi0T!v3@ zDZax9erRyqKYnKy#?=X18Uo#cNoFPce>PP?`JaxINf}O7se9<2$GX zA0TaFsqu$0 diff --git a/aircox_cms/locale/fr/LC_MESSAGES/django.po b/aircox_cms/locale/fr/LC_MESSAGES/django.po index ddcfc0d..09577be 100755 --- a/aircox_cms/locale/fr/LC_MESSAGES/django.po +++ b/aircox_cms/locale/fr/LC_MESSAGES/django.po @@ -965,7 +965,7 @@ msgstr "Sons" #: wagtail_hooks.py:151 msgid "Today's Diffusions" -msgstr "Diffusion du jour" +msgstr "Diffusions du jour" #~ msgid "Published by" #~ msgstr "PubliƩ par" diff --git a/aircox_cms/models.py b/aircox_cms/models.py index 2cc1a34..604d410 100755 --- a/aircox_cms/models.py +++ b/aircox_cms/models.py @@ -169,9 +169,10 @@ class WebsiteSettings(BaseSetting): class Comment(models.Model): publication = models.ForeignKey( 'Publication', + verbose_name = _('publication') ) published = models.BooleanField( - verbose_name = _('public'), + verbose_name = _('published'), default = False ) author = models.CharField( @@ -194,6 +195,10 @@ class Comment(models.Model): _('comment'), ) + class Meta: + verbose_name = _('comment') + verbose_name_plural = _('comments') + def __str__(self): # Translators: text shown in the comments list (in admin) return _('{date}, {author}: {content}...').format( diff --git a/aircox_cms/wagtail_hooks.py b/aircox_cms/wagtail_hooks.py index 887d31a..9238c1e 100755 --- a/aircox_cms/wagtail_hooks.py +++ b/aircox_cms/wagtail_hooks.py @@ -60,9 +60,9 @@ class CommentAdmin(ModelAdmin): menu_label = _('Comments') menu_icon = 'pick' menu_order = 300 - list_display = ('published', 'author', 'date', 'content') + list_display = ('published', 'publication', 'author', 'date', 'content') list_filter = ('date', 'published') - search_fields = ('name', 'content', 'date') + search_fields = ('author', 'content', 'publication__title') modeladmin_register(CommentAdmin)