diff --git a/bikeshop_project/core/forms.py b/bikeshop_project/core/forms.py index f14ca45..5fdc82d 100644 --- a/bikeshop_project/core/forms.py +++ b/bikeshop_project/core/forms.py @@ -1,5 +1,8 @@ import logging -from django.forms import BooleanField, CharField, CheckboxInput, RadioSelect, ModelForm, TextInput, HiddenInput + +from django.forms import ( + BooleanField, CharField, CheckboxInput, ChoiceField, HiddenInput, ModelForm, RadioSelect, TextInput) +from django.utils.translation import ugettext as _ from registration.models import Member @@ -10,9 +13,11 @@ logger = logging.getLogger('bikeshop') class MembershipForm(ModelForm): member = CharField(required=True, widget=HiddenInput()) - self_ident_other = CharField(required=False, label='Self identification', + # Translators: This is a text field for ethnic and cultural self identification. + self_ident_other = CharField(required=False, label=_('Other'), widget=TextInput(attrs={'class': 'mdl-textfield__input'})) - gender_other = CharField(required=False, label='Other', widget=TextInput(attrs={'class': 'mdl-textfield__input'})) + # Translators: This is a text field for entering genders other than male and female + gender_other = CharField(required=False, label=_('Other'), widget=TextInput(attrs={'class': 'mdl-textfield__input'})) safe_space = BooleanField(required=True, widget=CheckboxInput( attrs={'class': 'mdl-checkbox__input'} )) @@ -30,17 +35,19 @@ class MembershipForm(ModelForm): model = Membership fields = ['renewed_at', 'self_identification', 'gender'] + # Translators: Choices for ethnic and cultural self-identification self_ident_choices = ( - ('First Nations; Métis; or Inuit', 'First Nations; Métis; or Inuit'), - ('visible minority', 'Visible Minority'), - ('caucasian', 'Caucasian'), - ('other', 'Other') + ('First Nations; Métis; or Inuit', _('First Nations; Métis; or Inuit')), + ('visible minority', _('Visible Minority')), + ('caucasian', _('Caucasian')), + ('other', _('Other')) ) + # Translators: Choices for gender self-identification gender_choices = ( - ('male', 'Male'), - ('female', 'Female'), - ('other', 'Other') + ('male', _('Male')), + ('female', _('Female')), + ('other', _('Other')) ) widgets = { diff --git a/bikeshop_project/core/templates/membership_form.html b/bikeshop_project/core/templates/membership_form.html index eb496f2..b69d954 100644 --- a/bikeshop_project/core/templates/membership_form.html +++ b/bikeshop_project/core/templates/membership_form.html @@ -1,21 +1,21 @@ {% extends 'dashboard.html' %} -{% load staticfiles %} +{% load staticfiles i18n %} {% block content %}
-

New Membership

+

{% blocktrans %}New Membership{% endblocktrans %}

{% csrf_token %} {{ membership_form.member }} -

The Bridge City Bicycle Co­operative aims to be a safe and respectful environment geared towards education, empowerment and community­building. In order to do so we need your input and support.

+

{% blocktrans %}The Bridge City Bicycle Co-operative aims to be a safe and respectful environment geared towards education, empowerment and community-building. In order to do so we need your input and support.{% endblocktrans %}

-

Member Privileges

+

{% blocktrans %}Member Privileges {% endblocktrans %}

    -
  • Access to the BCBC tools, stands, and workspace
  • -
  • Access to friendly mechanical assistance and education when available
  • -
  • Opportunity to engage in decisions and help to build and develop the community's vision
  • -
  • The Bridge City Bicycle Co­operative (BCBC) values the trust of its volunteers, staff and members and is committed to protecting the privacy of all personal information entrusted to it. As such, collected information will be used in accordance with our privacy policy outlined on our website and in our shop.
  • +
  • {% blocktrans %}Access to the BCBC tools, stands, and workspace {% endblocktrans %}
  • +
  • {% blocktrans %}Opportunity to engage in decisions and help to build and develop the community's vision{% endblocktrans %}
  • +
  • {% blocktrans %}The Bridge City Bicycle Co-operative (BCBC) values the trust of its volunteers, staff and members and is committed to protecting the privacy of all personal information entrusted to it. As such, collected information will be used in accordance with our privacy policy outlined on our website and in our shop.{% endblocktrans %}
  • +
  • {% blocktrans %}Access to friendly mechanical assistance and education when available{% endblocktrans %}
{% if membership_form.non_field_errors %}
@@ -23,65 +23,65 @@
{% endif %}
-

Member Responsibilities

-
Respect and Maintaining a Safe Space
+

{% blocktrans %}Member Responsibilities{% endblocktrans %}

+
{% blocktrans %}Respect and Maintaining a Safe Space{% endblocktrans %}
    -
  • Respect others and self
  • -
  • Help others
  • -
  • Racist, ableist, ageist, homophobic, sexist, and classist behavior and language will not be tolerated
  • -
  • The BCBC seeks to build a healthy lifestyle community, and behavior seen as hindering this objective will not be tolerated
  • -
  • Ask for help: With tools, processes, and even emotions
  • +
  • {% blocktrans %}Respect others and self{% endblocktrans %}
  • +
  • {% blocktrans %}Help others{% endblocktrans %}
  • +
  • {% blocktrans %}Racist, ableist, ageist, homophobic, sexist, and classist behavior and language will not be tolerated{% endblocktrans %}
  • +
  • {% blocktrans %}The BCBC seeks to build a healthy lifestyle community, and behavior seen as hindering this objective will not be tolerated{% endblocktrans %}
  • +
  • {% blocktrans %}Ask for help: With tools, processes, and even emotions{% endblocktrans %}
-
Respect the Community
+
{% blocktrans %}Respect the Community{% endblocktrans %}
    -
  • Build positive relationships with Community Members
  • -
  • Build positive relationships with CNYC employees, volunteers, and patrons
  • +
  • {% blocktrans %}Build positive relationships with Community Members{% endblocktrans %}
  • +
  • {% blocktrans %}Build positive relationships with CNYC employees, volunteers, and patrons{% endblocktrans %}
-
Giving back
+
{% blocktrans %}Giving back{% endblocktrans %}

- Our services are free and Members are encouraged to contribute in any way they can. Our vibrancy comes from the volunteer work of a large community with diverse skills and passions. There are so many ways to be a part of this community, regardless of whether or not you know how to change a tire (yet!). Ask how you can help out or get in touch with our volunteer coordinator (volunteer@bridgecitybicyclecoop.com) + {% blocktrans %}Our services are free and Members are encouraged to contribute in any way they can. Our vibrancy comes from the volunteer work of a large community with diverse skills and passions. There are so many ways to be a part of this community, regardless of whether or not you know how to change a tire (yet!). Ask how you can help out or get in touch with our volunteer coordinator{% endblocktrans %} (volunteer@bridgecitybicyclecoop.com)

-
Respect the Space
+
{% blocktrans %}Respect the Space{% endblocktrans %}
    -
  • Replace tools when not using them so that others can play too.
  • -
  • Do not steal or borrow articles within the space for personal use.
  • -
  • If you don't know what it is, how to use it, or where it goes, ask someone
  • -
  • Ensure you always leave time to clean up after yourself and others, and then do so
  • -
  • If you have to leave in the middle of a project, put pieces into a small bag and attach it to the bike
  • -
  • Personal projects may be kept at the BCBC for a maximum of one day; however, this is highly discouraged due to lack of space and the concern for theft.
  • -
  • Label your bike with your name, phone number, and the last date you worked on it.
  • -
  • Do not force tools and use them only for their intended use. If you need help or guidance, ask someone! It’s what we’re here for!
  • +
  • {% blocktrans %}Replace tools when not using them so that others can play too.{% endblocktrans %}
  • +
  • {% blocktrans %}Do not steal or borrow articles within the space for personal use.{% endblocktrans %}
  • +
  • {% blocktrans %}If you don't know what it is, how to use it, or where it goes, ask someone{% endblocktrans %}
  • +
  • {% blocktrans %}Ensure you always leave time to clean up after yourself and others, and then do so{% endblocktrans %}
  • +
  • {% blocktrans %}If you have to leave in the middle of a project, put pieces into a small bag and attach it to the bike{% endblocktrans %}
  • +
  • {% blocktrans %}Personal projects may be kept at the BCBC for a maximum of one day; however, this is highly discouraged due to lack of space and the concern for theft.{% endblocktrans %}
  • +
  • {% blocktrans %}Label your bike with your name, phone number, and the last date you worked on it.{% endblocktrans %}
  • +
  • {% blocktrans %}Do not force tools and use them only for their intended use. If you need help or guidance, ask someone! It’s what we’re here for!{% endblocktrans %}
-

Voluntary Self Identification

-

We want to make sure that all members of our community, regardless of race, ethnicity, and gender +

{% blocktrans %}Voluntary Self Identification{% endblocktrans %}

+

{% blocktrans trimmed %}We want to make sure that all members of our community, regardless of race, ethnicity, and gender are able to participate fully in the BCBC. Please share information about your race and/or ethnicity so that we can track how well we are including all communities and whether there may be barriers to certain groups’ participation. Thank you! Do you identify as: (In each category, check - all that apply)

+ all that apply){% endblocktrans %}

{% for checkbox in membership_form.self_identification %}
-

Gender Identification

+

{% blocktrans %}Gender Identification{% endblocktrans %}

{% for checkbox in membership_form.gender %}
{{ membership_form.renewed_at }} - + {% if membership_form.renewed_at %} {{ membership_form.renewed_at.errors }} {% else %} - Incorrect date. + {% blocktrans %}Incorrect date.{% endblocktrans %} {% endif %}
-

Payment Type

+

{% blocktrans %}Payment Type{% endblocktrans %}

{% for checkbox in payment_form.type %}
- +