i18n of current traffic. fixes #29

This commit is contained in:
Carl Chenet 2016-11-22 17:53:11 +01:00
parent fac9efc706
commit 519a89230a
3 changed files with 3 additions and 2 deletions

View file

@ -47,8 +47,7 @@
<div id="header">
<div id="headerleft">
<a id="l_holder" style="background-color: #<%= @traffic_color %>;"
href="/" title="<%= Rails.application.name %> (Current traffic: <%=
@traffic.to_i %>)"></a>
href="/" title="<%= Rails.application.name %> <%= raw t('.currenttraffic', :usernb => "#{@traffic.to_i}") %>"></a>
<% links = {
"/" => @cur_url == "/" ? Rails.application.name : t('.homelink'),

View file

@ -40,6 +40,7 @@ en:
blog: "Blog"
twitter: "Twitter"
diaspora: "Diaspora*"
currenttraffic: "(Current traffic: %{usernb})"
filters:
index:
filteredtags: "Filtered Tags"

View file

@ -52,6 +52,7 @@ fr:
blog: "Blog"
twitter: "Twitter"
diaspora: "Diaspora*"
currenttraffic: "(Fréquentation actuelle : %{usernb})"
comments:
commentbox:
mustbelogged: "Vous devez être connecté pour laisser un commentaire."