diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-07-05 14:28:57 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-07-05 14:28:57 -0400 |
commit | 2c126bb110bf993e0dc49a1bb20ca16a67b7ac33 (patch) | |
tree | 9a7a072c8079122fa746c0d36e379ba00fe7c5da | |
parent | d8a3d68f6d5980d8a59c4952daf1f71f198a1bb8 (diff) | |
download | askbot-2c126bb110bf993e0dc49a1bb20ca16a67b7ac33.tar.gz askbot-2c126bb110bf993e0dc49a1bb20ca16a67b7ac33.tar.bz2 askbot-2c126bb110bf993e0dc49a1bb20ca16a67b7ac33.zip |
replaced _() with gettext() in the templates
-rw-r--r-- | askbot/skins/default/templates/main_page/tab_bar.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/askbot/skins/default/templates/main_page/tab_bar.html b/askbot/skins/default/templates/main_page/tab_bar.html index e398be87..1b27ab3a 100644 --- a/askbot/skins/default/templates/main_page/tab_bar.html +++ b/askbot/skins/default/templates/main_page/tab_bar.html @@ -24,9 +24,9 @@ <div id="sort_tabs" class="tabsA"> <span class="label">{% trans %}Sort by:{% endtrans %}</span> {% if show_sort_by_relevance %} - {% set asc_relevance_tooltip = _('most relevant questions') %} - {% set desc_relevance_tooltip = _('click to see most relevant questions') %} - {% set relevance_label = _('relevance') %} + {% set asc_relevance_tooltip = gettext('most relevant questions') %} + {% set desc_relevance_tooltip = gettext('click to see most relevant questions') %} + {% set relevance_label = gettext('relevance') %} {% if query %} <a id="by_relevance" {% if sort == "relevance-desc" %} @@ -51,33 +51,33 @@ {% endif %} {{macros.reversible_sort_button( button_sort_criterium = 'age', - label = _('by date'), - asc_tooltip = _('click to see the oldest questions'), - desc_tooltip = _('click to see the newest questions'), + label = gettext('by date'), + asc_tooltip = gettext('click to see the oldest questions'), + desc_tooltip = gettext('click to see the newest questions'), current_sort_method = sort ) }} {{macros.reversible_sort_button( button_sort_criterium = 'activity', - label = _('by activity'), - asc_tooltip = _('click to see the least recently updated questions'), - desc_tooltip = _('click to see the most recently updated questions'), + label = gettext('by activity'), + asc_tooltip = gettext('click to see the least recently updated questions'), + desc_tooltip = gettext('click to see the most recently updated questions'), current_sort_method = sort ) }} {{macros.reversible_sort_button( button_sort_criterium = 'answers', - label = _('by answers'), - asc_tooltip = _('click to see the least answered questions'), - desc_tooltip = _('click to see the most answered questions'), + label = gettext('by answers'), + asc_tooltip = gettext('click to see the least answered questions'), + desc_tooltip = gettext('click to see the most answered questions'), current_sort_method = sort ) }} {{macros.reversible_sort_button( button_sort_criterium = 'votes', - label = _('by votes'), - asc_tooltip = _('click to see least voted questions'), - desc_tooltip = _('click to see most voted questions'), + label = gettext('by votes'), + asc_tooltip = gettext('click to see least voted questions'), + desc_tooltip = gettext('click to see most voted questions'), current_sort_method = sort ) }} |