Skip to content

Commit

Permalink
fix(Contact form): make title and options translatable
Browse files Browse the repository at this point in the history
(cherry picked from commit b440eab)
  • Loading branch information
barredterra authored and mergify[bot] committed Mar 22, 2024
1 parent 800cfee commit b1dbd79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frappe/www/contact.html
@@ -1,7 +1,7 @@
{% extends "templates/web.html" %}

{% set title = heading or "Contact Us" %}
{% block header %}<h1>{{ heading or "Contact Us" }}</h1>{% endblock %}
{% block header %}<h1>{{ heading or _("Contact Us") }}</h1>{% endblock %}

{% block page_content %}
<style>
Expand All @@ -23,10 +23,10 @@
<select name="subject" class="form-control">
{% if query_options -%}
{% for option in query_options.split("\n") -%}
<option value="{{ option }}">{{ option }}</option>
<option value="{{ option }}">{{ _(option) }}</option>
{%- endfor %}
{% else %}
<option value="General">General</option>
<option value="General">{{ _("General") }}</option>
{% endif %}
</select>
</div>
Expand Down

0 comments on commit b1dbd79

Please sign in to comment.