Skip to content

Commit

Permalink
refactor(copy): msgid core strings
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Aug 7, 2023
1 parent 71f5a70 commit 9ebb234
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ <h3 id="{{ aria_labelledby_id }}" class="modal-title">{% translate "Please choos
src="{% get_static_prefix %}img/agencies/{{ agency.slug }}-sm.svg"
width="46"
height="29"
alt="{% blocktranslate with agency_short_name=agency.short_name %}core.pages.index.agency_selector{{ agency_short_name }}{% endblocktranslate %}">
alt="{% blocktranslate with agency=agency.short_name %}{{ agency }} logo{% endblocktranslate %}">
<img class="lg d-none d-lg-block mt-lg-3 mx-lg-auto"
src="{% get_static_prefix %}img/agencies/{{ agency.slug }}-lg.svg"
width="117"
height="74"
alt="{% blocktranslate with agency_short_name=agency.short_name %}core.pages.index.agency_selector{{ agency_short_name }}{% endblocktranslate %}">
alt="{% blocktranslate with agency=agency.short_name %}{{ agency }} logo{% endblocktranslate %}">
<h4 class="card-title mt-lg-3 mb-0 mb-lg-3">{{ agency.long_name }}</h4>
</div>
</a>
Expand Down
3 changes: 2 additions & 1 deletion benefits/core/templates/core/includes/nocookies.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<div class="text-left">
<span class="navbar-brand">{% translate "Cookies are disabled" %}</span>
<span class="navbar-text">
{% translate "core.includes.nocookies.text" %} <a href="{% url "core:index" %}">{% translate "Return Home" %}</a>.
{% translate "To function properly, this website requires a browser that supports cookies. Please enable cookies for this website and" %}
<a href="{% url "core:index" %}">{% translate "Return Home" %}</a>.
</span>
</div>
{% endblock content %}
3 changes: 2 additions & 1 deletion benefits/core/templates/core/includes/noscript.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<div class="text-left">
<span class="navbar-brand">{% translate "JavaScript is disabled" %}</span>
<span class="navbar-text">
{% translate "core.includes.noscript.text" %} <a href="{% url "core:index" %}">{% translate "Return Home" %}</a>.
{% translate "To function properly, this website requires a browser that supports JavaScript. Please enable JavaScript for this website and" %}
<a href="{% url "core:index" %}">{% translate "Return Home" %}</a>.
</span>
</div>
{% endblock content %}
20 changes: 10 additions & 10 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-08-07 23:06+0000\n"
"POT-Creation-Date: 2023-08-07 23:15+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -233,24 +233,24 @@ msgid "Please choose your transit provider:"
msgstr ""

#, python-format
msgid "core.pages.index.agency_selector%(agency_short_name)s"
msgstr "%(agency_short_name)s logo"
msgid "%(agency)s logo"
msgstr ""

msgid "Cookies are disabled"
msgstr ""

msgid "core.includes.nocookies.text"
msgstr ""
msgid ""
"To function properly, this website requires a browser that supports cookies. "
"Please enable cookies for this website and"
msgstr ""

msgid "JavaScript is disabled"
msgstr ""

msgid "core.includes.noscript.text"
msgstr ""
msgid ""
"To function properly, this website requires a browser that supports "
"JavaScript. Please enable JavaScript for this website and"
msgstr ""

msgid "Get a reduced fare on MST public transportation when you tap to ride"
msgstr ""
Expand Down Expand Up @@ -552,10 +552,10 @@ msgstr ""
msgid "You may have reached this page on accident."
msgstr ""

msgid "core.pages.user_error.p[0]"
msgstr ""
msgid ""
"To get started with Cal-ITP Benefits please click the button below, and you "
"will be directed to the beginning of the enrollment process. "
"will be directed to the beginning of the enrollment process."
msgstr ""

msgid "Sorry! Service for this site is down."
msgstr ""
Expand Down
18 changes: 12 additions & 6 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-08-07 23:06+0000\n"
"POT-Creation-Date: 2023-08-07 23:15+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -296,21 +296,25 @@ msgid "Please choose your transit provider:"
msgstr "Por favor, elija su proveedor de transporte:"

#, python-format
msgid "core.pages.index.agency_selector%(agency_short_name)s"
msgstr "%(agency_short_name)s logo"
msgid "%(agency)s logo"
msgstr "%(agency)s logo"

msgid "Cookies are disabled"
msgstr "Cookies están inactivos"

msgid "core.includes.nocookies.text"
msgid ""
"To function properly, this website requires a browser that supports cookies. "
"Please enable cookies for this website and"
msgstr ""
"Para funcionar correctamente, este sitio web requiere un navegador que "
"admita cookies. Por favor, active cookies por este sitio web y"

msgid "JavaScript is disabled"
msgstr "JavaScript está inactivo"

msgid "core.includes.noscript.text"
msgid ""
"To function properly, this website requires a browser that supports "
"JavaScript. Please enable JavaScript for this website and"
msgstr ""
"Para funcionar correctamente, este sitio web requiere un navegador que "
"admita JavaScript. Por favor, active JavaScript por este sitio web y"
Expand Down Expand Up @@ -661,7 +665,9 @@ msgstr "Error"
msgid "You may have reached this page on accident."
msgstr "Es posible que haya llegado a esta página por accidente."

msgid "core.pages.user_error.p[0]"
msgid ""
"To get started with Cal-ITP Benefits please click the button below, and you "
"will be directed to the beginning of the enrollment process."
msgstr ""
"Para empezar a utilizar Cal-ITP Benefits, haga clic en el botón que aparece "
"a continuación y se le dirigirá al inicio del proceso de inscripción."
Expand Down
4 changes: 3 additions & 1 deletion benefits/templates/200-user-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
{% endblock headline %}

{% block paragraphs %}
<p>{% translate "core.pages.user_error.p[0]" %}</p>
<p>
{% translate "To get started with Cal-ITP Benefits please click the button below, and you will be directed to the beginning of the enrollment process." %}
</p>
{% endblock paragraphs %}

0 comments on commit 9ebb234

Please sign in to comment.