Some suggested translation updates

This commit is contained in:
Anna Sidwell 2019-03-18 16:41:58 +00:00
parent 67d447a02c
commit ed399e8379
5 changed files with 59 additions and 70 deletions

View File

@ -8,5 +8,5 @@ from .forms import ContactForm
class ContactView(FormMessagesMixin, ContactView): class ContactView(FormMessagesMixin, ContactView):
form_invalid_message = _(u"There was an error in the contact form.") form_invalid_message = _(u"There was an error in the contact form.")
form_valid_message = _(u"Thank you for your message.") form_valid_message = _(u"Thanks for your message.")
form_class = ContactForm form_class = ContactForm

View File

@ -16,10 +16,10 @@ from .widgets import JSONFileListWidget
SECTOR_HELP = { SECTOR_HELP = {
'RN': _("including electricity, heat or combined heat and power generation"), 'RN': _("Including electricity, heat or combined heat and power generation"),
'PG': '', 'PG': '',
'ST': _('Biological, chemical, electrical, electromagnetic, electrochemical, mechanical including gravitational potential, thermal etc.'), 'ST': _('Biological, chemical, electrical, electromagnetic, electrochemical, mechanical including gravitational potential, thermal etc.'),
'SM': _("including supply of minerals"), 'SM': _("Including supply of minerals"),
'MA': '', 'MA': '',
} }
@ -251,24 +251,24 @@ class LongCaseStudyForm(BaseCaseStudyForm):
self.fields['socioeconomic_benefits'].help_text = \ self.fields['socioeconomic_benefits'].help_text = \
'<span class="organising organising-none organising-idk">' + \ '<span class="organising organising-none organising-idk">' + \
_('Please expand on your response given in the full description on page one. \ _('Please expand on your response given in the full description on page one.'
We would expect benefits to go beyond emissions savings, paying rent for land, \ ' For example, for positive impacts you need to go beyond emissions savings,'
or complying with environmental or social legislation. Please include other \ ' paying rent for land, or complying with environmental or social legislation.'
reasons, noting that we aim to focus on projects with substantive impacts on \ ' For negative impacts you need to focus on substantive impacts on vulnerable groups, '
vulnerable groups.') + \ ' violations of land rights or abusive labour practices.') + \
'</span>' + \ '</span>' + \
'<span class="organising organising-vs">' + \ '<span class="organising organising-vs">' + \
_('Please expand on your response given in the description. Note that we aim to \ _('Please expand on your response given in the description. Note that we aim to' \
focus on violation of land rights / human rights / collective rights, substantive \ ' focus on violation of land rights / human rights / collective rights, substantive' \
negative impacts on vulnerable groups, aggression / threats / violence, \ ' negative impacts on vulnerable groups, aggression / threats / violence,' \
severe environmental and/or cultural impacts, abusive labor practices, and \ ' severe environmental and/or cultural impacts, abusive labor practices, and' \
corruption / governance issues, but feel free to cover any additional aspect \ ' corruption / governance issues, but feel free to cover any additional aspect' \
that you consider relevant. Please also describe and analyze socio-environmental \ ' that you consider relevant. Please also describe and analyze socio-environmental' \
impacts that could be presented or considered as positive.') + \ ' impacts that could be presented or considered as positive.') + \
'</span>' + \ '</span>' + \
'<span class="organising organising-pro">' + \ '<span class="organising organising-pro">' + \
_('Please expand on your response given in the description. Please also describe \ _('Please expand on your response given in the description. Please also describe' \
and analyze socio-environmental impacts that could be considered as negative.') + \ ' and analyze socio-environmental impacts that could be considered as negative.') + \
'</span>' '</span>'
self.helper.form_action = reverse('long-form') self.helper.form_action = reverse('long-form')
@ -301,7 +301,7 @@ class LongCaseStudyForm(BaseCaseStudyForm):
'video_caption', 'video_caption',
'video_credit', 'video_credit',
Fieldset( Fieldset(
_("Ownership and finance"), _("Owners and financiers"),
'project_owners', 'project_owners',
'consultants_contractors', 'consultants_contractors',
'shareholders', 'shareholders',

View File

@ -75,18 +75,18 @@ class CaseStudy(models.Model):
) )
TYPE_OF_ECOSYSTEM_CHOICES = ( TYPE_OF_ECOSYSTEM_CHOICES = (
('MARINE', _('Marine (e.g. Ocean, Sea)')), ('MARINE', _('Marine (e.g. ocean, sea)')),
('FRESH', _('Freshwater (e.g. Freshwater, Lake)')), ('FRESH', _('Freshwater (e.g. freshwater, lake)')),
('FOREST', _('Forest/Jungle')), ('FOREST', _('Forest/jungle')),
('AGRI', _('Agricultural Land')), ('AGRI', _('Agricultural land')),
('GRASS', _('Grassland')), ('GRASS', _('Grassland')),
('DESERT', _('Desert (Tundra, Ice or Sand)')), ('DESERT', _('Desert (tundra, ice or sand)')),
('WETLND', _('Wetland (Marsh, Mangrove, Peat Soil)')), ('WETLND', _('Wetland (marsh, mangrove, peat Soil)')),
('URBAN', _('Urban')) ('URBAN', _('Urban'))
) )
AFFECTED_COMMUNITIES_CHOICES = ( AFFECTED_COMMUNITIES_CHOICES = (
('INDIG', _('Indigenous')), ('INDIG', _('Indigenous people(s)')),
('AFRO', _('Afro-descendants')), ('AFRO', _('Afro-descendants')),
('MIG', _('Migrants')), ('MIG', _('Migrants')),
('REF', _('Refugees')), ('REF', _('Refugees')),
@ -123,7 +123,7 @@ class CaseStudy(models.Model):
('IFAD', _('International Fund for Agricultural Development (IFAD)')), ('IFAD', _('International Fund for Agricultural Development (IFAD)')),
('IIB', _('International Investment Bank (IIB)')), ('IIB', _('International Investment Bank (IIB)')),
('IsDB', _('Islamic Development Bank (IsDB)')), ('IsDB', _('Islamic Development Bank (IsDB)')),
('FMO', _('Nederlandse Financieringsmaatschappij voor Ontwikkelingslanden NV (FMO)')), ('FMO', _('Nederlandse Financieringsmaatschappij voor Ontwikkelingslanden NV (Netherlands Development Finance Company, FMO)')),
('NDB', _('New Development Bank (NDB) (formerly BRICS Development Bank)')), ('NDB', _('New Development Bank (NDB) (formerly BRICS Development Bank)')),
('NDF', _('The Nordic Development Fund')), ('NDF', _('The Nordic Development Fund')),
('NIB', _('Nordic Investment Bank (NIB)')), ('NIB', _('Nordic Investment Bank (NIB)')),
@ -201,9 +201,9 @@ class CaseStudy(models.Model):
('GAL', _('Gallium')), ('GAL', _('Gallium')),
('GER', _('Germanium')), ('GER', _('Germanium')),
('GLD', _('Gold')), ('GLD', _('Gold')),
('HRE', _('Heavy Rare Earth Elements (Gadolinium, Terbium, Dysprosium, Holmium, Erbium, Thulium, Ytterbium, Lutetium, Yttrium, Scandium)')), ('HRE', _('Heavy rare earth elements (gadolinium, terbium, dysprosium, holmium, erbium, thulium, ytterbium, lutetium, yttrium, scandium)')),
('IRN', _('Iron')), ('IRN', _('Iron')),
('LRE', _('Light Rare Earth Elements (Lanthanum, Cerium, Praseodymium, Neodymium, Promethium, Samarium, Europium)')), ('LRE', _('Light rare earth elements (lanthanum, cerium, praseodymium, neodymium, promethium, samarium, europium)')),
('LED', _('Lead')), ('LED', _('Lead')),
('LIT', _('Lithium')), ('LIT', _('Lithium')),
('MAN', _('Manganese')), ('MAN', _('Manganese')),
@ -250,7 +250,7 @@ class CaseStudy(models.Model):
MANUFACTURING_RELATED_CHOICES = ( MANUFACTURING_RELATED_CHOICES = (
('PV', _('Solar PV')), ('PV', _('Solar PV')),
('CSP', _('CSP')), ('CSP', _('Concentrated solar power (CSP)')),
('WIND', _('Wind power')), ('WIND', _('Wind power')),
('HYDRO', _('Hydropower')), ('HYDRO', _('Hydropower')),
('GEO', _('Geothermal')), ('GEO', _('Geothermal')),
@ -274,20 +274,21 @@ class CaseStudy(models.Model):
('CREP', _('Community project (co-)owned by individuals')), ('CREP', _('Community project (co-)owned by individuals')),
('EACP', _('Community project owned by not-for-profit organizations and/or serving the public interest')), ('EACP', _('Community project owned by not-for-profit organizations and/or serving the public interest')),
('PSEP', _('Public/state (federal, state, municipal) project')), ('PSEP', _('Public/state (federal, state, municipal) project')),
('CORS', _('Reuse / Recycling / Circular economy project')), ('CORS', _('Reuse / recycling / circular economy project')),
) )
NEGATIVE_CASE_REASONS_CHOICES = ( NEGATIVE_CASE_REASONS_CHOICES = (
('VOLR', _('Violation of land rights')), ('VOLR', _('Violation of land rights')),
('VOHR', _('Violation of fundamental human rights, indigenous rights and/or other collective rights')), ('VOHR', _('Violation of fundamental human rights, indigenous rights and/or other collective rights')),
('EIMP', _('Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of \ ('EIMP', _('Environmental impacts (severe impacts on ecosystems / violation of laws,'
environmental conservation or territorial governance systems etc.')), ' plans or programs of environmental conservation or territorial governance systems,'
('NCUL', _('Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land \ ' etc.')),
etc.)')), ('NCUL', _('Negative cultural impacts (erosion/destruction of bio-cultural heritage,'
('AGGR', _('Aggression/threats to community members opposed to the project, collaboration with organized crime \ ' impacts on sacred land, etc.)')),
etc.')), ('AGGR', _('Aggression/threats to community members opposed to the project, collaboration'
' with organized crime, etc.')),
('ALAB', _('Abusive labour practices')), ('ALAB', _('Abusive labour practices')),
('CRUP', _('Corruption and/or irregular permitting or contracting, conflicts of interest etc.')), ('CRUP', _('Corruption and/or irregular permitting or contracting, conflicts of interest, etc.')),
) )
# Dynamically generate a list of choices 40 years prior and after the current year. # Dynamically generate a list of choices 40 years prior and after the current year.
@ -332,18 +333,12 @@ class CaseStudy(models.Model):
'files.File', 'files.File',
related_name='shapefile_for', related_name='shapefile_for',
verbose_name=_("Geographic data"), verbose_name=_("Geographic data"),
help_text=_("If you have territory that you would like to show in relation to this project \ help_text=_("If you have territory that you would like to show in relation to this project i.e. area(s) of land or water affected by the project, or maybe the limits of the land within which a project is taking place or the sites of particular objects of importance. ESRI Shapefiles are a popular file type: they comprise a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx. Hold down Control, or Command on a Mac, to select more than one. You may have data as GeoPackage (gpkg), GeoJSON, KML, GML, etc. or have data in PostGIS or another spatial database management system already. Let us know (database@ojuso.org) if you have other file types or need help and we can work out how to import it."),
- e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) \
files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx. \
\
Hold down Control, or Command on a Mac, to select more than one. \
Let us know (database@ojuso.org) if you have other file types or need help and we \
can work out how to import it. You may have data as GeoPackage (gpkg), GeoJSON, \
KML, GML, etc. or have data in PostGIS or another spatial database management \
system already."),
blank=True blank=True
) )
coordinate_reference_system = models.ForeignKey( coordinate_reference_system = models.ForeignKey(
SpatialRefSys, SpatialRefSys,
null=True, null=True,
@ -384,21 +379,21 @@ class CaseStudy(models.Model):
# 1.5.2 # 1.5.2
land_ownership = models.CharField( land_ownership = models.CharField(
verbose_name=_("Land ownership / tenure"), verbose_name=_("Land ownership/tenure"),
help_text=_("What type of ownership does the land fall under?"), help_text=_("What type of ownership/tenure does the land fall under?"),
max_length=3, max_length=3,
choices=LAND_OWNERSHIP_CHOICES choices=LAND_OWNERSHIP_CHOICES
) )
# 1.5.3 # 1.5.3
land_ownership_details = models.TextField( land_ownership_details = models.TextField(
verbose_name=_("Land ownership details"), verbose_name=_("Land ownership/tenure details"),
help_text=_("<p class='text-muted'>Please specify details about land ownership, including \ help_text=_("<p class='text-muted'>Please specify details about land ownership, including"
conflicting claims, unrecognized customary rights, conflicts \ " conflicting claims, unrecognized customary rights, conflicts"
around land lease or purchase contracts, etc.\ " around land lease or purchase contracts, etc."
\ ""
<p class='text-muted'>We understand this is a difficult question, so \ "<p class='text-muted'>We understand this is a difficult question, so"
please try to provide <b>just the information you know</b>.</p>"), " please try to provide <b>just the information you know</b>.</p>"),
max_length=256, max_length=256,
blank=True, blank=True,
) )
@ -472,14 +467,12 @@ class CaseStudy(models.Model):
# 1.9 # 1.9
synopsis = models.TextField( synopsis = models.TextField(
verbose_name=_("Project synopsis"), verbose_name=_("Project synopsis"),
help_text=_("Briefly summarise the project. This will be displayed at\ help_text=_("Briefly summarise the project. This will be displayed at the top of the case study page. (Maximum 500 chars)")
the top of the case study page. Maximum 500 chars (about \
3½ tweets)")
) )
# 1.10 # 1.10
full_description = models.TextField( full_description = models.TextField(
verbose_name=_("Full Description"), verbose_name=_("Full description"),
help_text=_("Describe the project in full. Separate paragraphs with two\ help_text=_("Describe the project in full. Separate paragraphs with two\
new lines. Please add as much detail as you feel is necessary\ new lines. Please add as much detail as you feel is necessary\
here.") here.")
@ -787,9 +780,7 @@ class CaseStudy(models.Model):
associated_infrastructure = models.CharField( associated_infrastructure = models.CharField(
verbose_name=_("Associated infrastructure in the locality"), verbose_name=_("Associated infrastructure in the locality"),
help_text=_("List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and \ help_text=_("List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail)."),
treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure;\
transport infrastructure e.g. roads or rail."),
max_length=256, max_length=256,
blank=True blank=True
) )
@ -805,8 +796,7 @@ class CaseStudy(models.Model):
manufacturing_description = models.TextField( manufacturing_description = models.TextField(
verbose_name=_("Description"), verbose_name=_("Description"),
help_text=_("Briefly describe manufacturing process and components/outputs.\ help_text=_("Briefly describe manufacturing process and components/outputs. (less than 500 characters)."),
(less than 500 characters, about 2 tweets)."),
max_length=500, max_length=500,
blank=True blank=True
) )
@ -914,8 +904,7 @@ class CaseStudy(models.Model):
# 3.2.1.9 # 3.2.1.9
negative_case_reasons_other = models.CharField( negative_case_reasons_other = models.CharField(
verbose_name=_("Other reason for negative case"), verbose_name=_("Other reason for negative case"),
help_text=_("Please include other reasons, noting that we aim to focus on projects with substantive negative \ help_text=_("For negative impacts you need to focus on substantive impacts on vulnerable groups."),
impacts on vulnerable groups."),
max_length=512, max_length=512,
blank=True blank=True
) )
@ -938,13 +927,13 @@ class CaseStudy(models.Model):
# 3.2.4.3 # 3.2.4.3
participation_mechanisms = models.TextField( participation_mechanisms = models.TextField(
verbose_name=_("What mechanisms of participation have been used?"), verbose_name=_("What mechanisms of participation have been used?"),
help_text=_("e.g. direct action, local referendums, legal cases, letters or petitions etc."), help_text=_("e.g. direct action, local referendums, legal cases, letters or petitions, etc."),
blank=True blank=True
) )
# 3.2.7 # 3.2.7
wants_conversation_with_ojuso = models.BooleanField( wants_conversation_with_ojuso = models.BooleanField(
verbose_name=_("Would you like to have a conversation with the ojuso team?"), verbose_name=_("Would you like to have a conversation with the <b>ojuso</b> team?"),
help_text=_("This would be a conversation about challenging or engaging related developers, companies and \ help_text=_("This would be a conversation about challenging or engaging related developers, companies and \
investors."), investors."),
default=True default=True

View File

@ -117,7 +117,7 @@ dd ul { padding-left: 0; margin-left: 0; }
{% endif %} {% endif %}
{% if case_study.land_ownership %} {% if case_study.land_ownership %}
<dt>{% trans "Land ownership and tenure" %}: <dt>{% trans "Land ownership/tenure details" %}:
<dd> <dd>
{% if case_study.land_ownership != 'OTH' %} {% if case_study.land_ownership != 'OTH' %}
{{ case_study.get_land_ownership_display }} {{ case_study.get_land_ownership_display }}

View File

@ -7,7 +7,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700">
<link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap.min.css' %}"> <link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'css/ojuso.css' %}"> <link rel="stylesheet" href="{% static 'css/ojuso.css' %}">
<link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap-theme.min.css' %}"> <link rel="stylesheet" href="{% static 'map/bootstrap/css/bootstrap-theme.min.css' %}">