Browse Source

Made "Member Details" visible to makemessages. #111

Ralfp 12 years ago
parent
commit
835ef6b152
1 changed files with 5 additions and 2 deletions
  1. 5 2
      templates/cranefly/profiles/details.html

+ 5 - 2
templates/cranefly/profiles/details.html

@@ -2,7 +2,7 @@
 {% import "_forms.html" as form_theme with context %}
 {% import "cranefly/macros.html" as macros with context %}
 
-{% block title %}{{ macros.page_title(_('Member Details'), profile.username) }}{% endblock %}
+{% block title %}{{ macros.page_title(lang_member_details(), profile.username) }}{% endblock %}
 
 {% block tab %}
 <div class="user-details">
@@ -238,4 +238,7 @@
   </div>
 </div>
 {% endif %}
-{% endblock %}
+{% endblock %}
+
+{# Language strings macros #}
+{% macro lang_member_details() -%}{% trans %}Member Details{% endtrans %}{%- endmacro %}