Skip to content

Commit

Permalink
Renamed company to professional in contact. Closes #238
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaudin committed Sep 22, 2011
1 parent 52b8cd5 commit 033f04f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contact/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __unicode__(self):
CONTACT_TYPE_PERSON = 1
CONTACT_TYPE_COMPANY = 2
CONTACT_TYPE = ((CONTACT_TYPE_PERSON, _('Person')),
(CONTACT_TYPE_COMPANY, _('Company')))
(CONTACT_TYPE_COMPANY, _('Professional')))

class Contact(OwnedObject):
contact_type = models.IntegerField(choices=CONTACT_TYPE, verbose_name=_('Type'))
Expand Down
Binary file modified locale/en/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-09-22 13:04+0200\n"
"POT-Creation-Date: 2011-09-22 13:15+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"
Expand Down Expand Up @@ -981,7 +981,7 @@ msgid "Person"
msgstr ""

#: contact/models.py:29 templates/contact/edit.html:130
msgid "Company"
msgid "Professional"
msgstr ""

#: contact/models.py:34
Expand Down
Binary file modified locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
9 changes: 6 additions & 3 deletions locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-09-22 13:05+0200\n"
"POT-Creation-Date: 2011-09-22 13:15+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"
Expand Down Expand Up @@ -1015,8 +1015,8 @@ msgid "Person"
msgstr "Personne"

#: contact/models.py:29 templates/contact/edit.html:130
msgid "Company"
msgstr "Société"
msgid "Professional"
msgstr "Professionnel"

#: contact/models.py:34
msgid "Firstname"
Expand Down Expand Up @@ -2886,5 +2886,8 @@ msgstr ""
msgid "Register"
msgstr "S'enregistrer"

#~ msgid "Company"
#~ msgstr "Société"

#~ msgid "TOTAL excl. VAT : %(amount)s %(currency)s"
#~ msgstr "TOTAL HT : %(amount)s %(currency)s"
2 changes: 1 addition & 1 deletion templates/contact/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
{{ field.errors }}
<div><label for="{{ field.auto_id }}"{% if field.field.required %} class="required"{% endif %}>{{ field.label }}{% if field.field.required %}*{% endif %} :</label>
<label for="id_contact-contact_type_0"><input type="radio" name="contact-contact_type" value="1" id="id_contact-contact_type_0"{% ifequal contactForm.instance.contact_type 1 %} checked="checked"{% endifequal %}> {% trans "Person" %}</label>
<label for="id_contact-contact_type_1"><input type="radio" name="contact-contact_type" value="2" id="id_contact-contact_type_1"{% ifequal contactForm.instance.contact_type 2 %} checked="checked"{% endifequal %}> {% trans "Company" %}</label>
<label for="id_contact-contact_type_1"><input type="radio" name="contact-contact_type" value="2" id="id_contact-contact_type_1"{% ifequal contactForm.instance.contact_type 2 %} checked="checked"{% endifequal %}> {% trans "Professional" %}</label>
</div>
</div>
{% endwith %}
Expand Down

0 comments on commit 033f04f

Please sign in to comment.