Skip to content

Commit

Permalink
refactor: parameterize eligibility index message with agency short name
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Jan 11, 2023
1 parent 081f436 commit 4ae331b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
5 changes: 4 additions & 1 deletion benefits/eligibility/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def index(request):
title=_("eligibility.pages.index.title"),
headline=_("eligibility.pages.index.headline"),
paragraphs=[
format_html(_("eligibility.pages.index.p[0]%(info_link)s") % {"info_link": f"{help_page}#what-is-cal-itp"})
format_html(
_("eligibility.pages.index.p[0]%(info_link)s%(transit_agency_short_name)s")
% {"info_link": f"{help_page}#what-is-cal-itp", "transit_agency_short_name": agency.short_name}
)
],
forms=forms.EligibilityVerifierSelectionForm(agency=agency),
)
Expand Down
18 changes: 9 additions & 9 deletions benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-01-11 18:31+0000\n"
"POT-Creation-Date: 2023-01-11 18:41+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -450,14 +450,14 @@ msgstr ""
"Connect your bank card to your public transit discount with Cal-ITP Benefits."

#, python-format
msgid "eligibility.pages.index.p[0]%(info_link)s"
msgstr ""
"You can tap your credit or debit card when you board an MST bus, and your "
"discounted fare will automatically apply every time you ride. Cal-ITP "
"doesn’t save any of your information, and you don’t need to create an "
"account. Verify to get your benefit, and connect your bank card today. "
"<strong><a class='info-link' href=\"%(info_link)s\">Learn more about Cal-ITP "
"Benefits.</a></strong>"
msgid "eligibility.pages.index.p[0]%(info_link)s%(transit_agency_short_name)s"
msgstr ""
"You can tap your credit or debit card when you board an "
"%(transit_agency_short_name)s bus, and your discounted fare will "
"automatically apply every time you ride. Cal-ITP doesn’t save any of your "
"information, and you don’t need to create an account. Verify to get your "
"benefit, and connect your bank card today. <strong><a class='info-link' href="
"\"%(info_link)s\">Learn more about Cal-ITP Benefits.</a></strong>"

#, python-format
msgid "eligibility.pages.index.help_text%(help_link)s"
Expand Down
19 changes: 10 additions & 9 deletions benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-01-11 18:31+0000\n"
"POT-Creation-Date: 2023-01-11 18:41+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -466,14 +466,15 @@ msgstr ""
"Beneficios de Cal-ITP"

#, python-format
msgid "eligibility.pages.index.p[0]%(info_link)s"
msgstr ""
"Puede acercar su tarjeta de crédito o débito cuando aborde un autobús de MST "
"y su tarifa con descuento se aplicará automáticamente cada vez que viaje. "
"Cal-ITP no guarda su información y no necesita crear una cuenta. Verifique "
"para obtener su beneficio y conecte su tarjeta bancaria hoy. <strong><a "
"class='info-link' href=\"%(info_link)s\">Obtenga más información sobre los "
"Beneficios de Cal-ITP</a></strong><span class='period'>.</span>"
msgid "eligibility.pages.index.p[0]%(info_link)s%(transit_agency_short_name)s"
msgstr ""
"Puede acercar su tarjeta de crédito o débito cuando aborde un autobús de "
"%(transit_agency_short_name)s y su tarifa con descuento se aplicará "
"automáticamente cada vez que viaje. Cal-ITP no guarda su información y no "
"necesita crear una cuenta. Verifique para obtener su beneficio y conecte su "
"tarjeta bancaria hoy. <strong><a class='info-link' href=\"%(info_link)s"
"\">Obtenga más información sobre los Beneficios de Cal-ITP</a></strong><span "
"class='period'>.</span>"

#, python-format
msgid "eligibility.pages.index.help_text%(help_link)s"
Expand Down

0 comments on commit 4ae331b

Please sign in to comment.