Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #55 from Mishail/master
Browse files Browse the repository at this point in the history
Localization for the new text item ("source" for a tweet)
  • Loading branch information
cramforce committed Sep 9, 2011
2 parents 4777e44 + 82dbaa9 commit fc855c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"from here ⌘": "из ⌘",
"via": "через",
"Show conversation": "Показать ответы",
"in a conversation with {name}": "отвечая {name}"
"in a conversation with {name}": "отвечая {name}",
"using" : "с помощью"
},
"status": {
"Shorten URLs": "Сократить URL",
Expand Down
2 changes: 1 addition & 1 deletion public/templates/tweet.ejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ul>
<div class="header">
<h3 class="h user-name"><%= tweet.direct_message ? '<strong>Direct Message from</strong> ' : ''%><a href="http://twitter.com/<%= h(tweet.data.user.screen_name) %>" class="user-href"><%= h(tweet.yourself ? 'you' : '@'+tweet.data.user.screen_name+' ('+tweet.data.user.name+')') %></a><%= tweet.direct_message ? ' to <a href="http://twitter.com/'+h(tweet.data.recipient.screen_name)+'">'+h(tweet.data.recipient.screen_name)+'</a>' : ''%><% if(tweet.retweet) { %> <%= text('tweet', 'via') %> <a href="http://twitter.com/<%= h(tweet.retweet.user.screen_name) %>" class="retweet-user-href">@<%= h(tweet.retweet.user.screen_name) %> (<%= h(tweet.retweet.user.name) %>)</a><% }%>
<% if(tweet.data.source) { %> <%= text('tweet', 'using ' + tweet.data.source) %><% } %>
<% if(tweet.data.source) { %> <%= text('tweet', 'using') + ' ' + tweet.data.source %><% } %>
<% if(tweet.data.geo && tweet.data.geo.coordinates) { %> <a class="status-geo" href="http://maps.google.com/maps?q=<%= h(tweet.data.geo.coordinates.join(',')) %>"><%= text('tweet', 'from here ⌘') %></a><% } %>
</h3>
<div class="time created_at"><a href="<%= h(tweet.direct_message ? 'http://twitter.com/direct_messages/create/'+tweet.data.sender.screen_name : 'http://twitter.com/'+tweet.data.user.screen_name+'/status/'+tweet.data.id) %>"></a></div>
Expand Down

0 comments on commit fc855c8

Please sign in to comment.