Skip to content

Commit

Permalink
Translate the Expand All string
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas committed Apr 12, 2012
1 parent 7a8bb2f commit 1b24d31
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions app/views/admin/projects.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
<% if(!project.children.empty? && showchildren) %>
<% classes += " closed parent " + cycle("odd", "even") %>
<% rowid = "id=\""+project_id_lsd+"span\"" %>
<% openonclick = "onclick=\"showHide('"+project_id_lsd+"','"+project_id_lsd+"span')\""%>
<% openonclick = "onclick=\"showHide('"+project_id_lsd+"','"+project_id_lsd+"span')\""%>
<% spanicon = "<span " + openonclick + " class=\"expander\">&nbsp </span>" %>
<% else %>
<% classes += " child" %>
<% end %>
<% if(project.parent_id == nil) %>
<% ancestors.clear %>
<% ancestors << project.id %>
<% ancestors << project.id %>
<% else %>
<% while (ancestors.any? && !(project.parent_id == ancestors.last)) %>
<% ancestors.pop %>
Expand All @@ -73,7 +73,7 @@
<% classes += " " + "%04d" % pid %>
<% end %>
<% ancestors << project.id %>
<% end %>
<% end %>
<tr class="<%= classes %>" <%= rowid %> >
<td class="name"><%= "<span style=\"padding-left: " + (2*(ancestors.length-1)).to_s + "em;\"></span>" %><%= spanicon %><%= project.active? ? link_to(h(project.name), {:controller => 'projects', :action => 'show', :id => project}, :class => "project") : h(project.name) %></td>
<td <%= openonclick %> ><%= textilizable project.short_description, :project => project %></td>
Expand All @@ -90,7 +90,7 @@
</tbody>
</table>

<a href="#" id="expand_all">Expand All</a>
<a href="#" id="expand_all"><%=l(:expand_all)%></a>

</div>

Expand Down
10 changes: 5 additions & 5 deletions app/views/projects/index.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<% end %>
<% if(project.parent_id == nil) %>
<% ancestors.clear %>
<% ancestors << project.id %>
<% ancestors << project.id %>
<% else %>
<% while (ancestors.any? && !(project.parent_id == ancestors.last)) %>
<% ancestors.pop %>
Expand All @@ -73,19 +73,19 @@
<% classes += " " + "%04d" % pid %>
<% end %>
<% ancestors << project.id %>
<% end %>
<% end %>
<tr class="<%= classes %>" <%= rowid %> >
<td class="name"><%= "<span style=\"padding-left: " + (2*(ancestors.length-1)).to_s + "em;\"></span>" %><%= spanicon %><%= project.active? ? link_to(h(project.name), {:controller => 'projects', :action => 'show', :id => project}, :class => "project") : h(project.name) %><span <%= openonclick %> class="empty <%=User.current.member_of?(project) ? 'my-project' : nil%>">&nbsp</span></td>
<td <%= openonclick %> ><%= textilizable project.short_description.gsub(/\!.+\!/,""), :project => project %></td>
<td <%= openonclick %> ><%= textilizable project.short_description.gsub(/\!.+\!/,""), :project => project %></td>
<td><%= favorite_project_modules_links(project) %></td>
<td <%= render_project_progress(project) %></td>
<td align="center"><%= format_date(project.created_on) %></td>
<td align="center"><%= format_date(project.created_on) %></td>
</tr>
<% end %>
</tbody>
</table>

<a href="#" id="expand_all">Expand All</a>
<a href="#" id="expand_all"><%=l(:expand_all)%></a>


<% if User.current.logged? %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ en:
field_versions: "Versions"
field_go_to: Go to module
subprojects: sub projects
expand_all: "Expand All"
1 change: 1 addition & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pt-BR:
field_versions: "Versões"
field_go_to: "Ir para módulo"
subprojects: "Sub-projetos"
expand_all: "Expandir todos os projetos"

0 comments on commit 1b24d31

Please sign in to comment.