From 4a63b9dd68b7dc102e4a9e2cf6eca2d116a2ef27 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 24 Jun 2013 11:20:30 +0200 Subject: [PATCH] transports: improve captions --- .../locale/fr/LC_MESSAGES/django.po | 31 ++++++++++++------- portail_citoyen_announces/transports.py | 6 ++-- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/portail_citoyen_announces/locale/fr/LC_MESSAGES/django.po b/portail_citoyen_announces/locale/fr/LC_MESSAGES/django.po index 1155442..7c9271c 100644 --- a/portail_citoyen_announces/locale/fr/LC_MESSAGES/django.po +++ b/portail_citoyen_announces/locale/fr/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: portail-citoyen-announces 0.1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-04-23 22:31+0200\n" -"PO-Revision-Date: 2013-06-04 16:48+0200\n" +"POT-Creation-Date: 2013-06-24 11:20+0200\n" +"PO-Revision-Date: 2013-06-24 11:20+0200\n" "Last-Translator: Benjamin Dauvergne \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -16,15 +16,15 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: admin.py:21 +#: admin.py:22 msgid "Send by {0}" msgstr "Envoyé via {0}" -#: admin.py:56 +#: admin.py:59 msgid "extract" msgstr "extrait" -#: admin.py:60 models.py:75 +#: admin.py:63 models.py:75 msgid "sent" msgstr "envoyé via" @@ -122,15 +122,19 @@ msgstr "ex.: courriel, numéro de téléphone mobile, identifiant jabber" msgid "subscription" msgstr "abonnement" -#: transports.py:70 -msgid "homepage" -msgstr "page d'accueil" +#: transports.py:81 +msgid "Homepage" +msgstr "Page d'accueil" -#: transports.py:91 -msgid "email" -msgstr "courriel" +#: transports.py:93 +msgid "SMS" +msgstr "" -#: templates/portail_citoyen_announces/announce_list.html:12 +#: transports.py:176 +msgid "Email" +msgstr "Courriel" + +#: templates/portail_citoyen_announces/announce_list.html:13 msgid "Subscriptions" msgstr "Abonnements" @@ -143,3 +147,6 @@ msgstr "Catégorie" #: templates/portail_citoyen_announces/subscription_edit.html:31 msgid "Modify" msgstr "Modifier" + +#~ msgid "sms" +#~ msgstr "SMS" diff --git a/portail_citoyen_announces/transports.py b/portail_citoyen_announces/transports.py index db53702..e27cbfc 100644 --- a/portail_citoyen_announces/transports.py +++ b/portail_citoyen_announces/transports.py @@ -78,7 +78,7 @@ class HomepageTransport(object): identifier = 'homepage' def get_choices(self): - return (('homepage', _('homepage')),) + return (('homepage', _('Homepage')),) class SMSTransport(object): @@ -90,7 +90,7 @@ class SMSTransport(object): ] mobile_re = re.compile('^0[67][0-9]{8}$') - def __init__(self, url, from_mobile, login=None, password=None, identifier='sms', name=_('sms')): + def __init__(self, url, from_mobile, login=None, password=None, identifier='sms', name=_('SMS')): self.url = url self.from_mobile = from_mobile self.login = login @@ -173,7 +173,7 @@ class EmailTransport(object): ] def get_choices(self): - return (('email', _('email')),) + return (('email', _('Email')),) def get_subscriptions(self, category): return models.Subscription.objects.filter(category=category,