Skip to content

Commit 6ad9060

Browse files
committed
Add in welsh translations
1 parent 92ff0dd commit 6ad9060

File tree

4 files changed

+132
-15
lines changed

4 files changed

+132
-15
lines changed

app/categories/discrimination/forms.py

+17-14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from wtforms.validators import InputRequired
66
from app.categories.x_cat.forms import AreYouUnder18Form
77
from app.categories.constants import DISCRIMINATION
8+
from flask_babel import lazy_gettext as _
89

910

1011
class DiscriminationQuestionForm(QuestionForm):
@@ -46,7 +47,7 @@ class DiscriminationWhereForm(DiscriminationQuestionForm):
4647

4748

4849
class DiscriminationWhyForm(DiscriminationQuestionForm):
49-
title = "Why were you discriminated against?"
50+
title = _("Why were you discriminated against?")
5051

5152
next_step_mapping = {
5253
"*": "categories.discrimination.age",
@@ -57,37 +58,39 @@ class DiscriminationWhyForm(DiscriminationQuestionForm):
5758
title,
5859
widget=CategoryCheckboxInput(
5960
show_divider=True,
60-
hint_text="You can select more than one.",
61+
hint_text=_("You can select more than one."),
6162
behaviour="exclusive",
6263
),
6364
validators=[
64-
InputRequired(message="Select why you were discriminated against"),
65+
InputRequired(message=_("Select why you were discriminated against")),
6566
ExclusiveValue(
6667
exclusive_value="none",
67-
message="Select why you were discriminated against, or select ‘None of these’",
68+
message=_(
69+
"Select why you were discriminated against, or select ‘None of these’"
70+
),
6871
),
6972
],
7073
choices=[
71-
("race", "Race, colour, ethnicity, nationality"),
72-
("sex", "Sex (male or female)"),
73-
("disability", "Disability, health condition, mental health condition"),
74-
("religion", "Religion, belief, lack of religion"),
75-
("age", "Age"),
76-
("pregnancy", "Pregnancy or being a mother"),
74+
("race", _("Race, colour, ethnicity, nationality")),
75+
("sex", _("Sex (male or female)")),
76+
("disability", _("Disability, health condition, mental health condition")),
77+
("religion", _("Religion, belief, lack of religion")),
78+
("age", _("Age")),
79+
("pregnancy", _("Pregnancy or being a mother")),
7780
(
7881
"sexualorientation",
79-
"Sexual orientation - gay, bisexual, other sexuality",
82+
_("Sexual orientation - gay, bisexual, other sexuality"),
8083
),
8184
(
8285
"gender",
83-
"Gender reassignment, being transgender, non-binary or gender-fluid",
86+
_("Gender reassignment, being transgender, non-binary or gender-fluid"),
8487
),
8588
(
8689
"marriage",
87-
"Married status - being married, in a civil partnership",
90+
_("Married status - being married, in a civil partnership"),
8891
),
8992
("", ""),
90-
("none", "None of these"),
93+
("none", _("None of these")),
9194
],
9295
)
9396

1.27 KB
Binary file not shown.

app/translations/cy/LC_MESSAGES/messages.po

+57
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,45 @@ msgstr "Llys Apêl"
448448
msgid "None of these"
449449
msgstr "Dim un o'r rhain"
450450

451+
msgid "Why were you discriminated against?"
452+
msgstr "Pam y gwahaniaethwyd yn eich erbyn?"
453+
454+
msgid "You can select more than one."
455+
msgstr "Gallwch ddewis mwy nag un."
456+
457+
msgid "Select why you were discriminated against"
458+
msgstr "Dewiswch pam y gwahaniaethwyd yn eich erbyn"
459+
460+
msgid "Select why you were discriminated against, or select ‘None of these’"
461+
msgstr "Dewiswch pam y gwahaniaethwyd yn eich erbyn, neu dewiswch ‘Dim un o’r rhain’."
462+
463+
msgid "Race, colour, ethnicity, nationality"
464+
msgstr "Hil, lliw, ethnigrwydd, cenedligrwydd"
465+
466+
msgid "Sex (male or female)"
467+
msgstr "Rhyw (gwryw neu fenyw)"
468+
469+
msgid "Disability, health condition, mental health condition"
470+
msgstr "Anabledd, cyflwr iechyd, cyflwr iechyd meddwl"
471+
472+
msgid "Religion, belief, lack of religion"
473+
msgstr "Crefydd, cred, diffyg crefydd"
474+
475+
msgid "Age"
476+
msgstr "Oedran"
477+
478+
msgid "Pregnancy or being a mother"
479+
msgstr "Beichiogrwydd neu bod yn fam"
480+
481+
msgid "Sexual orientation - gay, bisexual, other sexuality"
482+
msgstr "Cyfeiriadedd rhywiol – hoyw, deurywiol, rhywioldeb arall"
483+
484+
msgid "Gender reassignment, being transgender, non-binary or gender-fluid"
485+
msgstr "Ailbennu rhywedd, bod yn drawsryweddol, yn anneuaidd neu’n rhyweddhylifol"
486+
487+
msgid "Married status - being married, in a civil partnership"
488+
msgstr "Statws priodasol – wedi priodi, mewn partneriaeth sifil"
489+
451490
msgid "Is this to do with police, prisons or detention centres?"
452491
msgstr ""
453492

@@ -1577,6 +1616,24 @@ msgstr ""
15771616
msgid "Help if you’re a victim of human trafficking or modern slavery."
15781617
msgstr ""
15791618

1619+
msgid "Find other free or low-cost legal help"
1620+
msgstr ""
1621+
1622+
msgid "free or affordable legal help (opens new tab)."
1623+
msgstr ""
1624+
1625+
msgid "The Citizen’s Advice website explains how to find "
1626+
msgstr ""
1627+
1628+
msgid "Speak to an advice organisation"
1629+
msgstr ""
1630+
1631+
msgid "Citizen’s Advice (opens new tab)"
1632+
msgstr ""
1633+
1634+
msgid "Advicelocal (opens new tab)"
1635+
msgstr ""
1636+
15801637
msgid "Legal aid doesn’t cover all types of problem"
15811638
msgstr "Nid yw cymorth cyfreithiol yn gallu delio â phob math o broblem"
15821639

app/translations/en/LC_MESSAGES/messages.pot

+58-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PROJECT VERSION\n"
1010
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
11-
"POT-Creation-Date: 2025-02-19 15:50+0000\n"
11+
"POT-Creation-Date: 2025-02-27 14:38+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -467,6 +467,45 @@ msgstr ""
467467
msgid "None of these"
468468
msgstr ""
469469

470+
msgid "Why were you discriminated against?"
471+
msgstr ""
472+
473+
msgid "You can select more than one."
474+
msgstr ""
475+
476+
msgid "Select why you were discriminated against"
477+
msgstr ""
478+
479+
msgid "Select why you were discriminated against, or select ‘None of these’"
480+
msgstr ""
481+
482+
msgid "Race, colour, ethnicity, nationality"
483+
msgstr ""
484+
485+
msgid "Sex (male or female)"
486+
msgstr ""
487+
488+
msgid "Disability, health condition, mental health condition"
489+
msgstr ""
490+
491+
msgid "Religion, belief, lack of religion"
492+
msgstr ""
493+
494+
msgid "Age"
495+
msgstr ""
496+
497+
msgid "Pregnancy or being a mother"
498+
msgstr ""
499+
500+
msgid "Sexual orientation - gay, bisexual, other sexuality"
501+
msgstr ""
502+
503+
msgid "Gender reassignment, being transgender, non-binary or gender-fluid"
504+
msgstr ""
505+
506+
msgid "Married status - being married, in a civil partnership"
507+
msgstr ""
508+
470509
msgid "Is this to do with police, prisons or detention centres?"
471510
msgstr ""
472511

@@ -1469,6 +1508,24 @@ msgstr ""
14691508
msgid "Help if you’re a victim of human trafficking or modern slavery."
14701509
msgstr ""
14711510

1511+
msgid "Find other free or low-cost legal help"
1512+
msgstr ""
1513+
1514+
msgid "free or affordable legal help (opens new tab)."
1515+
msgstr ""
1516+
1517+
msgid "The Citizen’s Advice website explains how to find "
1518+
msgstr ""
1519+
1520+
msgid "Speak to an advice organisation"
1521+
msgstr ""
1522+
1523+
msgid "Citizen’s Advice (opens new tab)"
1524+
msgstr ""
1525+
1526+
msgid "Advicelocal (opens new tab)"
1527+
msgstr ""
1528+
14721529
msgid "Legal aid doesn’t cover all types of problem"
14731530
msgstr ""
14741531

0 commit comments

Comments
 (0)