Browse Source

Made "Find User..." visible to makemessages. #111

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

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

@@ -23,7 +23,7 @@
       <li class="pull-right">
         <form action="{% url 'users' %}" class="form-inline" method="post">
           <input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
-          {{ form_theme.field_widget(search_form.username, width=2, attrs={'placeholder': _('Find user...')}) }}
+          {{ form_theme.field_widget(search_form.username, width=2, attrs={'placeholder': lang_find_user()}) }}
           <button type="submit" class="btn btn-icon"><i class="icon-search"></i></button>
         </form>
       </li>
@@ -108,4 +108,7 @@
 </div>
 {% endif %}
 {% endif %}
-{%- endmacro %}
+{%- endmacro %}
+
+{# Language strings macros #}
+{% macro lang_find_user() -%}{% trans %}Find User...{% endtrans %}{%- endmacro %}