Skip to content

Commit

Permalink
Adding translation to search
Browse files Browse the repository at this point in the history
Signed-off-by: Macartur Sousa <[email protected]>
  • Loading branch information
macartur committed May 18, 2016
1 parent 7df7374 commit ecd1006
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Binary file modified src/colab_noosfero/locale/pt_BR/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 4 additions & 0 deletions src/colab_noosfero/locale/pt_BR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ msgstr "Painel de Controle"
#: plugins.d/nosofero.py: 39
msgid "Institutions"
msgstr "Instituições"

#: templates/search/comment_search_preview.html: 10
msgid "Comment"
msgstr "Commentário"
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{% extends "search-base.html" %}
{% load urls set_var %}
{% load urls set_var i18n %}

{% block content %}
{% profile_url result.username as user_url %}
{% set 'author' user_url %}
{% set 'title' result.title %}
{% set 'modified' result.created_at %}
{% set 'url' result.url %}
{% set 'registered_in' "Article" %}
{% trans "Article" as article_text %}
{% set 'registered_in' article_text %}
{% if result.body != "{}" %}
{% set 'description' result.body|striptags|truncatechars:"140" %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{% extends "search-base.html" %}
{% load urls set_var %}
{% load urls set_var i18n %}

{% block content %}
{% profile_url result.username as user_url %}
{% set 'author' user_url %}
{% set 'title' result.title %}
{% set 'modified' result.created_at %}
{% set 'url' result.url %}
{% set 'registered_in' "Comment" %}
{% trans "Comment" as comment_text %}
{% set 'registered_in' comment_text %}
{% if result.body != "{}" %}
{% set 'description' result.body|striptags|truncatechars:"140" %}
{% endif %}
Expand Down

0 comments on commit ecd1006

Please sign in to comment.