Permalink
Browse files

Merge pull request #3 from ebc/master

Add pt-BR translation
  • Loading branch information...
2 parents fff5a59 + 99da0ee commit 285ec181037a493598f31b0fb175ae9d2f66fe57 @cforce committed Apr 12, 2012
Showing with 15 additions and 9 deletions.
  1. +4 −4 app/views/admin/projects.rhtml
  2. +5 −5 app/views/projects/index.rhtml
  3. +1 −0 config/locales/en.yml
  4. +5 −0 config/locales/pt-BR.yml
@@ -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 %>
@@ -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>
@@ -90,7 +90,7 @@
</tbody>
</table>
-<a href="#" id="expand_all">Expand All</a>
+<a href="#" id="expand_all"><%=l(:expand_all)%></a>
</div>
@@ -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 %>
@@ -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? %>
View
@@ -4,3 +4,4 @@ en:
field_versions: "Versions"
field_go_to: Go to module
subprojects: sub projects
+ expand_all: "Expand All"
View
@@ -0,0 +1,5 @@
+pt-BR:
+ field_versions: "Versões/Sprints"
+ field_go_to: "Ir para módulo"
+ subprojects: "Sub-projetos"
+ expand_all: "Expandir todos os projetos"

0 comments on commit 285ec18

Please sign in to comment.