Changeset 369:f98caac01351
- Timestamp:
- 19/03/11 20:52:49 (2 years ago)
- Branch:
- default
- Location:
- cyclope
- Files:
-
- 8 edited
-
apps/contacts/admin.py (modified) (1 diff)
-
apps/contacts/forms.py (modified) (2 diffs)
-
default_settings.py (modified) (1 diff)
-
locale/es/LC_MESSAGES/django.po (modified) (3 diffs)
-
locale/fr/LC_MESSAGES/django.po (modified) (3 diffs)
-
locale/it/LC_MESSAGES/django.po (modified) (3 diffs)
-
locale/pt/LC_MESSAGES/django.po (modified) (3 diffs)
-
middleware.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/apps/contacts/admin.py
r368 r369 45 45 list_filter = CollectibleAdmin.list_filter + ('gender', ) 46 46 list_display = ('given_name', 'surname', 'gender', 'email', 'web', 'mobile_phone_number') 47 search_fields = ('given_name', 'surname', 'email', 'web', 'mobile_phone_number') 47 48 48 49 fieldsets = ( -
cyclope/apps/contacts/forms.py
r350 r369 23 23 from django import forms 24 24 from django.forms.extras.widgets import SelectDateWidget 25 from django.utils.translation import ugettext_lazy as _ 25 26 26 27 from models import Contact … … 30 31 31 32 class ContactForm(forms.ModelForm): 32 birth_date = forms.DateField( widget=SelectDateWidget(years=range(1900, actual_year)), required=False)33 birth_date = forms.DateField(label=_('Birth date'), widget=SelectDateWidget(years=range(1900, actual_year)), required=False) 33 34 34 35 class Meta: -
cyclope/default_settings.py
r368 r369 37 37 SITE_ID = 1 38 38 USE_I18N = True 39 #USE_L10N = True40 41 LANGUAGE_CODE = 'es'39 USE_L10N = True 40 41 ## LANGUAGE_CODE = 'en' 42 42 LANGUAGES = ( 43 43 ('es', u'Español'), -
cyclope/locale/es/LC_MESSAGES/django.po
r368 r369 5 5 "Project-Id-Version: PACKAGE VERSION\n" 6 6 "Report-Msgid-Bugs-To: \n" 7 "POT-Creation-Date: 2011-03-19 19: 09-0300\n"7 "POT-Creation-Date: 2011-03-19 19:50-0300\n" 8 8 "PO-Revision-Date: 2010-10-29 22:16\n" 9 9 "Last-Translator: <a@a.com>\n" … … 638 638 msgstr "Más" 639 639 640 #: apps/contacts/forms.py:33 641 #: apps/contacts/templates/contacts/contact_detail.html:55 642 msgid "Birth date" 643 msgstr "Fecha de nacimiento" 644 640 645 #: apps/contacts/frontend_views.py:38 641 646 msgid "detailed view of the selected Contact" … … 721 726 msgid "Surname" 722 727 msgstr "Apellido" 723 724 #: apps/contacts/templates/contacts/contact_detail.html:55725 msgid "Birth date"726 msgstr "Fecha de nacimiento"727 728 728 729 #: apps/contacts/templates/contacts/contact_detail.html:56 -
cyclope/locale/fr/LC_MESSAGES/django.po
r368 r369 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-19 19: 09-0300\n"11 "POT-Creation-Date: 2011-03-19 19:50-0300\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 636 636 msgstr "" 637 637 638 #: apps/contacts/forms.py:33 639 #: apps/contacts/templates/contacts/contact_detail.html:55 640 msgid "Birth date" 641 msgstr "" 642 638 643 #: apps/contacts/frontend_views.py:38 639 644 msgid "detailed view of the selected Contact" … … 718 723 #: apps/contacts/templates/contacts/contact_detail.html:54 719 724 msgid "Surname" 720 msgstr ""721 722 #: apps/contacts/templates/contacts/contact_detail.html:55723 msgid "Birth date"724 725 msgstr "" 725 726 -
cyclope/locale/it/LC_MESSAGES/django.po
r368 r369 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-19 19: 09-0300\n"11 "POT-Creation-Date: 2011-03-19 19:50-0300\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 636 636 msgstr "" 637 637 638 #: apps/contacts/forms.py:33 639 #: apps/contacts/templates/contacts/contact_detail.html:55 640 msgid "Birth date" 641 msgstr "" 642 638 643 #: apps/contacts/frontend_views.py:38 639 644 msgid "detailed view of the selected Contact" … … 718 723 #: apps/contacts/templates/contacts/contact_detail.html:54 719 724 msgid "Surname" 720 msgstr ""721 722 #: apps/contacts/templates/contacts/contact_detail.html:55723 msgid "Birth date"724 725 msgstr "" 725 726 -
cyclope/locale/pt/LC_MESSAGES/django.po
r368 r369 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-19 19: 09-0300\n"11 "POT-Creation-Date: 2011-03-19 19:50-0300\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 635 635 msgstr "" 636 636 637 #: apps/contacts/forms.py:33 638 #: apps/contacts/templates/contacts/contact_detail.html:55 639 msgid "Birth date" 640 msgstr "" 641 637 642 #: apps/contacts/frontend_views.py:38 638 643 msgid "detailed view of the selected Contact" … … 717 722 #: apps/contacts/templates/contacts/contact_detail.html:54 718 723 msgid "Surname" 719 msgstr ""720 721 #: apps/contacts/templates/contacts/contact_detail.html:55722 msgid "Birth date"723 724 msgstr "" 724 725 -
cyclope/middleware.py
r358 r369 30 30 def process_request(self, request): 31 31 menu_item = cyclope.utils.menu_item_for_request(request) 32 default_template = cyclope.settings.CYCLOPE_DEFAULT_TEMPLATE 32 33 if menu_item: 33 default_template = cyclope.settings.CYCLOPE_DEFAULT_TEMPLATE34 34 ## we force the layout for items with custom URL (external apps) 35 35 ## so they can use the correct template to extend from … … 37 37 layout = menu_item.get_layout() 38 38 request.session['layout'] = layout 39 request.session['layout_template'] = layout.get_template_path() 40 39 41 else: 40 42 if request.session.has_key('layout'): 41 43 del request.session['layout'] 44 else: 45 ## if no layout_template has been set we set it to the default so external apps' 46 ## templates will work (sort of) even when accessed through a direct URL 47 if not 'layout_template' in request.session: 48 request.session['layout_template'] = default_template 42 49 43 50
Note: See TracChangeset
for help on using the changeset viewer.

