mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Updating for US English
Words found: personalis* customis* organis* colour behaviour
This commit is contained in:
@@ -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