Skip to content

Commit

Permalink
Add localization note to clarify usage (mozilla#6056)
Browse files Browse the repository at this point in the history
* Add localization notes to clarify usage
* Clarify validation error
  • Loading branch information
smithellis authored Jun 14, 2024
1 parent d748f37 commit a4e37dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion kitsune/messages/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def clean_to(self):
)
):
raise forms.ValidationError(
_lazy("You are not allowed to send messages to groups without profiles ")
# L10n: This message is shown when the user tries to send a message to a group
# L10n: but that group doesn't have a profile.
_lazy(
"You are not allowed to send messages to groups that don't have profiles."
)
+ f"({', '.join(bad_group_names)})."
)

Expand Down
2 changes: 1 addition & 1 deletion kitsune/wiki/jinja2/wiki/includes/document_macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="sumo-page-heading">{{ document.title }}</h1>
{% endif %}
{% if helpful_votes %}
<span class="helpful-info">
<img class="thumbsup" src="{{ webpack_static('sumo/img/thumbs-up.svg') }}"/>{{ _('<span class="{0}">{1}{2}</span> of users voted this helpful')|fe("helpful-count", helpful_votes, "%") }}
<img class="thumbsup" src="{{ webpack_static('sumo/img/thumbs-up.svg') }}"/>{# L10n: {0} is 'helpful-count', {1} is the actual percentage and {2} is the percent sign. #}{{ _('<span class="{0}">{1}{2}</span> of users voted this helpful')|fe("helpful-count", helpful_votes, "%") }}
</span>
{% endif %}
</div>
Expand Down

0 comments on commit a4e37dd

Please sign in to comment.