mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Updating for US English
Words found: personalis* customis* organis* colour behaviour
This commit is contained in:
@@ -1138,17 +1138,17 @@ class RenameOrganisationForm(StripWhitespaceForm):
|
||||
validators=[
|
||||
DataRequired(message='Cannot be empty'),
|
||||
MustContainAlphanumericCharacters(),
|
||||
Length(max=255, message='Organisation name must be 255 characters or fewer')
|
||||
Length(max=255, message='Organization name must be 255 characters or fewer')
|
||||
])
|
||||
|
||||
|
||||
class OrganisationOrganisationTypeForm(StripWhitespaceForm):
|
||||
organisation_type = OrganisationTypeField('What type of organisation is this?')
|
||||
organisation_type = OrganisationTypeField('What type of organization is this?')
|
||||
|
||||
|
||||
class OrganisationCrownStatusForm(StripWhitespaceForm):
|
||||
crown_status = GovukRadiosField(
|
||||
'Is this organisation a crown body?',
|
||||
'Is this organization a crown body?',
|
||||
choices=[
|
||||
('crown', 'Yes'),
|
||||
('non-crown', 'No'),
|
||||
@@ -1160,7 +1160,7 @@ class OrganisationCrownStatusForm(StripWhitespaceForm):
|
||||
|
||||
class OrganisationAgreementSignedForm(StripWhitespaceForm):
|
||||
agreement_signed = GovukRadiosField(
|
||||
'Has this organisation signed the agreement?',
|
||||
'Has this organization signed the agreement?',
|
||||
choices=[
|
||||
('yes', 'Yes'),
|
||||
('no', 'No'),
|
||||
@@ -1169,7 +1169,7 @@ class OrganisationAgreementSignedForm(StripWhitespaceForm):
|
||||
thing='whether this organisation has signed the agreement',
|
||||
param_extensions={
|
||||
'items': [
|
||||
{'hint': {'html': 'Users will be told their organisation has already signed the agreement'}},
|
||||
{'hint': {'html': 'Users will be told their organization has already signed the agreement'}},
|
||||
{'hint': {'html': 'Users will be prompted to sign the agreement before they can go live'}},
|
||||
{'hint': {'html': 'Users will not be prompted to sign the agreement'}}
|
||||
]
|
||||
|
||||
@@ -130,7 +130,7 @@ class OnlySMSCharacters:
|
||||
|
||||
# def __init__(self, message=None):
|
||||
# self.message = message or (
|
||||
# 'You can’t use ((double brackets)) to personalise this message'
|
||||
# 'You can’t use ((double brackets)) to personalize this message'
|
||||
# )
|
||||
|
||||
# def __call__(self, form, field):
|
||||
|
||||
@@ -35,7 +35,7 @@ def _create_example_template(service_id):
|
||||
example_sms_template = service_api_client.create_service_template(
|
||||
'Example text message template',
|
||||
'sms',
|
||||
'Hi, I’m trying out U.S. Notify. Today is ((day of week)) and my favourite colour is ((colour)).',
|
||||
'Hi, I’m trying out U.S. Notify. Today is ((day of week)) and my favourite color is ((color)).',
|
||||
service_id,
|
||||
)
|
||||
return example_sms_template
|
||||
|
||||
@@ -63,9 +63,9 @@ def add_organisation():
|
||||
org_id=Organisation.create_from_form(form).id,
|
||||
))
|
||||
except HTTPError as e:
|
||||
msg = 'Organisation name already exists'
|
||||
msg = 'Organization name already exists'
|
||||
if e.status_code == 400 and msg in e.message:
|
||||
form.name.errors.append("This organisation name is already in use")
|
||||
form.name.errors.append("This organization name is already in use")
|
||||
else:
|
||||
raise e
|
||||
|
||||
@@ -243,9 +243,9 @@ def edit_organisation_name(org_id):
|
||||
try:
|
||||
current_organisation.update(name=form.name.data)
|
||||
except HTTPError as http_error:
|
||||
error_msg = 'Organisation name already exists'
|
||||
error_msg = 'Organization name already exists'
|
||||
if http_error.status_code == 400 and error_msg in http_error.message:
|
||||
form.name.errors.append('This organisation name is already in use')
|
||||
form.name.errors.append('This organization name is already in use')
|
||||
else:
|
||||
raise http_error
|
||||
else:
|
||||
|
||||
@@ -627,7 +627,7 @@ def all_placeholders_in_session(placeholders):
|
||||
def get_send_test_page_title(template_type, entering_recipient, name=None):
|
||||
if entering_recipient:
|
||||
return 'Send ‘{}’'.format(name)
|
||||
return 'Personalise this message'
|
||||
return 'Personalize this message'
|
||||
|
||||
|
||||
def get_back_link(service_id, template, step_index, placeholders=None):
|
||||
|
||||
@@ -666,7 +666,7 @@ def redact_template(service_id, template_id):
|
||||
service_api_client.redact_service_template(service_id, template_id)
|
||||
|
||||
flash(
|
||||
'Personalised content will be hidden for messages sent with this template',
|
||||
'Personalized content will be hidden for messages sent with this template',
|
||||
'default_with_tick'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user