Skip to content

Commit

Permalink
refactor(copy): reuse msgids from contactless help modal
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Jul 21, 2023
1 parent a2715b2 commit 4924eaa
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 92 deletions.
14 changes: 8 additions & 6 deletions benefits/core/templates/core/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@ <h2 class="pt-8" id="what-is-cal-itp">{% translate "core.pages.help.about" %}</h
<p class="pt-4">{% translate "core.pages.help.about.p[1]" %}</p>

<h2 class="pt-8" id="payment-options">{% translate "core.pages.help.payment_options" %}</h2>
<p class="pt-4">{% translate "core.pages.help.payment_options.p[0]" %}</p>
<p class="pt-4">{% translate "core.pages.help.payment_options.p[1]" %}</p>
<p class="pt-4">{% translate "eligibility.pages.start.modal.p[0]" %}</p>
<p class="pt-4">{% translate "eligibility.pages.start.modal.p[1]" %}</p>
<p class="contactless-symbol pt-3">
<img class="icon mx-auto d-block"
width="40"
height="50"
src="{% static 'img/icon/contactless.svg' %}"
alt="{% translate "core.icons.contactless" context "image alt text" %}" />
</p>
<p class="pt-4">{% translate "core.pages.help.payment_options.p[2]" %}</p>
<p class="pt-4">{% translate "core.pages.help.payment_options.p[3]" %}</p>
<p class="pt-4">{% translate "eligibility.pages.start.modal.p[2]" %}</p>
<p class="pt-4">{% translate "eligibility.pages.start.modal.p[3]" %}</p>
<p class="pt-4">
{% if agency.info_url %}
{% blocktranslate with website=agency.info_url %}core.pages.help.payment_options.p[4]{{ website }}{% endblocktranslate %}
{% if agency %}
{% blocktranslate with agency_short_name=agency.short_name %}eligibility.pages.start.modal.p[4.1]{{agency_short_name}}{% endblocktranslate %}
{% blocktranslate with agency_info_url=agency.info_url %}eligibility.pages.start.modal.p[4.2]{{agency_info_url}}{% endblocktranslate %}
{% blocktranslate with agency_short_name=agency.short_name %}eligibility.pages.start.modal.p[4.3]{{agency_short_name}}{% endblocktranslate %}
{% endif %}
</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h2 id="contactless-modal">{% translate "eligibility.pages.start.modal.title" %}
src="{% static 'img/icon/contactless.svg' %}"
alt="{% translate "core.icons.contactless" context "image alt text" %}" />
</p>
<p class="pt-4">{% translate "eligibility.pages.start.modal.p[2]" %}</p>
<p class="pt-4">{% translate "eligibility.pages.start.modal.p[3]" %}</p>
<p class="pt-4 pb-2">
{% blocktranslate with agency_short_name=agency.short_name %}eligibility.pages.start.modal.p[4.1]{{agency_short_name}}{% endblocktranslate %}
Expand Down
62 changes: 19 additions & 43 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-07-21 17:59+0000\n"
"POT-Creation-Date: 2023-07-21 18:32+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -82,36 +82,45 @@ msgstr ""
msgid "core.pages.help.payment_options"
msgstr "What kind of credit card can I use?"

msgid "core.pages.help.payment_options.p[0]"
msgid "eligibility.pages.start.modal.p[0]"
msgstr ""
"Benefits only works with contactless debit or credit cards. We do not "
"currently support mobile wallets or digital cards, such as Apple Pay, Google "
"Wallet, or Samsung Wallet."

msgid "core.pages.help.payment_options.p[1]"
msgid "eligibility.pages.start.modal.p[1]"
msgstr "The contactless symbol is four curved lines, like this:"

msgctxt "image alt text"
msgid "core.icons.contactless"
msgstr "Four curved lines on contactless-enabled cards"

msgid "core.pages.help.payment_options.p[2]"
msgid "eligibility.pages.start.modal.p[2]"
msgstr "Your card must include a Visa or Mastercard logo."

msgid "core.pages.help.payment_options.p[3]"
msgid "eligibility.pages.start.modal.p[3]"
msgstr ""
"Don’t have access to a contactless card? You can request a contactless card "
"from your bank, or one of the companies that offer free contactless prepaid "
"debit cards, such as the Cash App Visa debit card or the Venmo Mastercard "
"debit card."

#, python-format
msgid "core.pages.help.payment_options.p[4]%(website)s"
msgid "eligibility.pages.start.modal.p[4.1]%(agency_short_name)s"
msgstr ""
"You can still get your transit benefit by going through your [short name]'s "
"application process. For updates on additional options, please check back on "
"this website, or <a href=\"%(website)s\" target=\"_blank\" rel=\"noopener "
"noreferrer\">contact [short name].</a>"
"You can still get your transit benefit by going through your "
"%(agency_short_name)s application process. For updates on additional "
"options, please check back on this website, or contact "

#, python-format
msgid "eligibility.pages.start.modal.p[4.2]%(agency_info_url)s"
msgstr ""
"<a href=\"%(agency_info_url)s\" target=\"_blank\" rel=\"noopener noreferrer"
"\">"

#, python-format
msgid "eligibility.pages.start.modal.p[4.3]%(agency_short_name)s"
msgstr "%(agency_short_name)s</a>."

msgid "core.pages.help.login_gov"
msgstr "What is Login.gov?"
Expand Down Expand Up @@ -373,39 +382,6 @@ msgctxt "image alt text"
msgid "core.icons.idcardcheck"
msgstr "Identification card icon with checkmark"

msgid "eligibility.pages.start.modal.p[0]"
msgstr ""
"Benefits only works with contactless debit or credit cards. We do not "
"currently support mobile wallets or digital cards, such as Apple Pay, Google "
"Wallet, or Samsung Wallet."

msgid "eligibility.pages.start.modal.p[1]"
msgstr "The contactless symbol is four curved lines, like this:"

msgid "eligibility.pages.start.modal.p[3]"
msgstr ""
"Don’t have access to a contactless card? You can request a contactless card "
"from your bank, or one of the companies that offer free contactless prepaid "
"debit cards, such as the Cash App Visa debit card or the Venmo Mastercard "
"debit card."

#, python-format
msgid "eligibility.pages.start.modal.p[4.1]%(agency_short_name)s"
msgstr ""
"You can still get your transit benefit by going through your "
"%(agency_short_name)s application process. For updates on additional "
"options, please check back on this website, or contact "

#, python-format
msgid "eligibility.pages.start.modal.p[4.2]%(agency_info_url)s"
msgstr ""
"<a href=\"%(agency_info_url)s\" target=\"_blank\" rel=\"noopener noreferrer"
"\">"

#, python-format
msgid "eligibility.pages.start.modal.p[4.3]%(agency_short_name)s"
msgstr "%(agency_short_name)s</a>."

msgid "core.modals.back"
msgstr "Go back"

Expand Down
62 changes: 19 additions & 43 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-07-21 17:59+0000\n"
"POT-Creation-Date: 2023-07-21 18:32+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -85,36 +85,45 @@ msgstr ""
msgid "core.pages.help.payment_options"
msgstr "TODO: What kind of credit card can I use?"

msgid "core.pages.help.payment_options.p[0]"
msgid "eligibility.pages.start.modal.p[0]"
msgstr ""
"TODO: Benefits only works with contactless debit or credit cards. We do not "
"currently support mobile wallets or digital cards, such as Apple Pay, Google "
"Wallet, or Samsung Wallet."

msgid "core.pages.help.payment_options.p[1]"
msgid "eligibility.pages.start.modal.p[1]"
msgstr "TODO: The contactless symbol is four curved lines, like this:"

msgctxt "image alt text"
msgid "core.icons.contactless"
msgstr "Cuatro líneas curvas en las tarjetas habilitadas sin contacto"

msgid "core.pages.help.payment_options.p[2]"
msgid "eligibility.pages.start.modal.p[2]"
msgstr "TODO: Your card must include a Visa or Mastercard logo."

msgid "core.pages.help.payment_options.p[3]"
msgid "eligibility.pages.start.modal.p[3]"
msgstr ""
"TODO: Don’t have access to a contactless card? You can request a contactless "
"card from your bank, or one of the companies that offer free contactless "
"prepaid debit cards, such as the Cash App Visa debit card or the Venmo "
"Mastercard debit card."

#, python-format
msgid "core.pages.help.payment_options.p[4]%(website)s"
msgid "eligibility.pages.start.modal.p[4.1]%(agency_short_name)s"
msgstr ""
"You can still get your transit benefit by going through your [short name]'s "
"application process. For updates on additional options, please check back on "
"this website, or <a href=\"%(website)s\" target=\"_blank\" rel=\"noopener "
"noreferrer\">contact [short name].</a>"
"TODO: You can still get your transit benefit by going through your "
"%(agency_short_name)s application process. For updates on additional "
"options, please check back on this website, or contact "

#, python-format
msgid "eligibility.pages.start.modal.p[4.2]%(agency_info_url)s"
msgstr ""
"<a href=\"%(agency_info_url)s\" target=\"_blank\" rel=\"noopener noreferrer"
"\">"

#, python-format
msgid "eligibility.pages.start.modal.p[4.3]%(agency_short_name)s"
msgstr "%(agency_short_name)s</a>."

msgid "core.pages.help.login_gov"
msgstr "¿Qué es Login.gov?"
Expand Down Expand Up @@ -383,39 +392,6 @@ msgctxt "image alt text"
msgid "core.icons.idcardcheck"
msgstr "Icono de tarjeta de identificación con marca de verificación"

msgid "eligibility.pages.start.modal.p[0]"
msgstr ""
"TODO: Benefits only works with contactless debit or credit cards. We do not "
"currently support mobile wallets or digital cards, such as Apple Pay, Google "
"Wallet, or Samsung Wallet."

msgid "eligibility.pages.start.modal.p[1]"
msgstr "TODO: The contactless symbol is four curved lines, like this:"

msgid "eligibility.pages.start.modal.p[3]"
msgstr ""
"TODO: Don’t have access to a contactless card? You can request a contactless "
"card from your bank, or one of the companies that offer free contactless "
"prepaid debit cards, such as the Cash App Visa debit card or the Venmo "
"Mastercard debit card."

#, python-format
msgid "eligibility.pages.start.modal.p[4.1]%(agency_short_name)s"
msgstr ""
"TODO: You can still get your transit benefit by going through your "
"%(agency_short_name)s application process. For updates on additional "
"options, please check back on this website, or contact "

#, python-format
msgid "eligibility.pages.start.modal.p[4.2]%(agency_info_url)s"
msgstr ""
"<a href=\"%(agency_info_url)s\" target=\"_blank\" rel=\"noopener noreferrer"
"\">"

#, python-format
msgid "eligibility.pages.start.modal.p[4.3]%(agency_short_name)s"
msgstr "%(agency_short_name)s</a>."

msgid "core.modals.back"
msgstr "TODO: Regresar a la página principal"

Expand Down

0 comments on commit 4924eaa

Please sign in to comment.