Project

General

Profile

Feature #2181 » user-stats.diff

updated stats with {no,pl} translations - Kacper Wysocki, 2013-02-18 04:23

View differences:

app/views/users/show.rhtml 2013-02-18 04:12:55.000000000 +0100
38 38
<h3><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3>
39 39

  
40 40
<p>
41
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
41
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %><br />
42
<%=l(:label_posted_messages)%>: <%= Message.count(:conditions => ["author_id=?", @user.id]) %><br />
43
<%=l(:label_posted_issue_notes)%>: <%= Journal.count(:conditions => ["journalized_type=? and user_id=?", 'Issue', @user.id]) %><br />
44
<%=l(:label_committed_changesets)%>: <%= Changeset.count(:conditions => ["user_id=?", @user.id]) %><br />
45
<%=l(:label_posted_news_comments)%>: <%= News::Comment.count(:conditions => ["author_id=?", @user.id]) %><br />
46
<%=l(:label_wiki_edits)%>: <%= WikiContent::Version.count(:conditions => ["author_id=?", @user.id]) %>
42 47
</p>
43 48

  
44 49
<div id="activity">
45
-- config/locales/no.yml.old	2013-02-18 04:18:13.000000000 +0100
50
++ config/locales/no.yml	2013-02-18 04:17:10.000000000 +0100
......
355 355
  label_logout: Logg ut
356 356
  label_help: Hjelp
357 357
  label_reported_issues: Rapporterte saker
358
  label_posted_messages: Beskjeder
359
  label_posted_issue_notes: Notater
360
  label_committed_changesets: Commits
361
  label_wiki_edits: Wiki endringer
362
  label_posted_news_comments: Nyhetskommentarer
358 363
  label_assigned_to_me_issues: Saker tildelt meg 
359 364
  label_last_login: Sist innlogget
360 365
  label_registered_on: Registrert
361
-- config/locales/en.yml.old	2013-02-18 04:15:37.000000000 +0100
366
++ config/locales/en.yml	2013-02-18 04:15:22.000000000 +0100
......
475 475
  label_logout: Sign out
476 476
  label_help: Help
477 477
  label_reported_issues: Reported issues
478
  label_posted_messages: Posted messages
479
  label_posted_issue_notes: Posted issue notes
480
  label_committed_changesets: Committed changesets
481
  label_wiki_edits: Wiki edits
482
  label_posted_news_comments: Posted news comments
478 483
  label_assigned_to_me_issues: Issues assigned to me
479 484
  label_last_login: Last connection
480 485
  label_registered_on: Registered on
(2-2/3)