-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: app strings into msgid #1626
Conversation
9ebb234
to
8457b71
Compare
8457b71
to
8263100
Compare
@@ -7,9 +7,13 @@ | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |||
<meta name="description" content="{% translate "core.pages.help.about.p[0]" %}"> | |||
{% blocktranslate trimmed asvar description %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asvar
is the syntax to store the results of a {% blocktranslate %}
into a variable: https://docs.djangoproject.com/en/4.2/topics/i18n/translation/#std-templatetag-blocktranslate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trimmed
removes extra whitespace in the translated block https://docs.djangoproject.com/en/4.2/topics/i18n/translation/#std-templatetag-blocktranslate
#, python-format | ||
msgid "" | ||
"Cal-ITP doesn’t save any of your information. All MST transit benefits " | ||
"reduce fares by 50%% for buses on fixed routes." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double %%
here needed to escape the ID, but gets formatted out of the final string.
"Cal-ITP doesn’t save any of your information. All SacRT transit benefits " | ||
"reduce fares by 50% for light rail." | ||
"reduce fares by 50%% for light rail." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double %%
here needed to escape the ID, but gets formatted out of the final string.
8263100
to
a6e94fe
Compare
and some simpler multi-line strings from help
056fb80
to
133895f
Compare
benefits/eligibility/templates/eligibility/includes/selection-label--senior.html
Outdated
Show resolved
Hide resolved
133895f
to
23616ab
Compare
benefits/eligibility/templates/eligibility/includes/modal--contactless.html
Outdated
Show resolved
Hide resolved
benefits/eligibility/templates/eligibility/includes/modal--contactless.html
Outdated
Show resolved
Hide resolved
benefits/eligibility/templates/eligibility/includes/modal--senior-start-help.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Added comments on some fixes (extra quotation mark, areas that need smart apostrophes). Agency Index CTA isn't working on my machine. Otherwise, looks good.
6667811
to
ac122bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
🙌 Whoohoo! |
Closes #1571
Closes #1607
This is a giant PR, sorry 😳 Going commit-by-commit won't exactly help either, the first commit was huge.
Things to look for in review
msgid
using our old style e.g.core.icons
,eligibility.pages
,enrollment.buttons
bin/makemessages.sh
should only update the timestampbin/init.sh
should callcompilemessages
without error