string concatenation is still bad

This commit is contained in:
Jonne Haß 2012-06-24 12:21:52 +02:00
parent 7298cf9212
commit c9e54700ff
2 changed files with 7 additions and 5 deletions

View file

@ -6,14 +6,13 @@
.span-24.last
%h2
= "#{t('.current_server')}: #{Time.now.to_date}"
= t('.current_server', :date => Time.now.to_date)
= form_tag('/admins/weekly_user_stats', :method => 'get') do
= select_tag(:week, options_for_select(@created_users_by_week.keys))
= submit_tag t('admins.stats.go')
= t('.amount_of')
= @counter
= t('.amount_of', :count => @counter)
%br
- @created_users_by_week[(params[:week])].each do |m|
= link_to m, "/u/#{m}"

View file

@ -104,8 +104,11 @@ en:
many: "%{count} users found"
other: "%{count} users found"
weekly_user_stats:
current_server: "Current server date is"
amount_of: "amount of new users this week:"
current_server: "Current server date is %{date}"
amount_of:
zero: "amount of new users this week: none"
one: "amount of new users this week: %{count}"
other: "amount of new users this week: %{count}"
stats:
week: "Week"
2weeks: "2 Week"