Skip to content

Commit

Permalink
updated translations (fr pending), optimized similar items functions,…
Browse files Browse the repository at this point in the history
… still pending pagination there.
  • Loading branch information
isanvicente committed Feb 2, 2018
1 parent 0b152b8 commit 078564e
Show file tree
Hide file tree
Showing 7 changed files with 6,627 additions and 2,017 deletions.
6 changes: 4 additions & 2 deletions src/KULTURBIDEAK/kulturbideak_app/templatetags/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ def choose_title_language(lang, item):
#titulu_lang['lg'] hutsik badago esan nahi du hizkuntza kontrolik ez dagoela.
if titulu_lang['lg'] =="":
#check the original language if the item
lang0=item.dc_language
if lang0 =="" or lang0 == None:
lang0=""
if hasattr(item, 'dc_language'):
lang0=item.dc_language
if lang0 =="" and hasattr(item, 'edm_language'):
lang0=item.edm_language

if lang0 == lang:
Expand Down
7 changes: 4 additions & 3 deletions src/KULTURBIDEAK/kulturbideak_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,8 +2912,8 @@ def erakutsi_item(request):

return render_to_response('item.html',{'login_form':login_form,
'erabiltzailea_form':erabiltzailea_form,
'login_try':login_try,
'login_error':login_error,
'login_try':login_try,
'login_error':login_error,
"non":non,
"comment_form": comment_form,
"comment_parent_form": comment_parent_form,
Expand All @@ -2931,7 +2931,8 @@ def erakutsi_item(request):
'hizkuntza':hizkuntza,
'kategoria':kategoria,
'eskubideak':eskubideak,
'urtea':urtea,'viewAtSource':viewAtSource,
'urtea':urtea,
'viewAtSource':viewAtSource,
'irudia':irudia,
'hornitzailea':hornitzailea,
'botatuDu':botatuDu},context_instance=RequestContext(request))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


<div class="row similar-items">
<h2 class="kolore-gris-lau antzekoTitulua">{% trans "Antzeko itemak" %} <span class="kolore-gris-bi">4</span></h2>{%comment%}{{ mlt|length }}{%endcomment%}
<h2 class="kolore-gris-lau antzekoTitulua">{% trans "Antzeko itemak" %} <span class="kolore-gris-bi">{{ mlt|length }}</span></h2>{%comment%}{{ mlt|length }}{%endcomment%}

{% for antzekoa in mlt %}
{% if forloop.counter < 5 %}
Expand Down
Loading

0 comments on commit 078564e

Please sign in to comment.