added translations to post viewer

This commit is contained in:
danielgrippi 2012-02-27 15:14:19 -08:00
parent 7bbf69e35e
commit 5bebd97bca
3 changed files with 131 additions and 123 deletions

View file

@ -130,3 +130,11 @@ en:
mark_all_as_read: "Mark all as read"
view_all: "View all"
viewer:
stop_following_post: "Stop following post"
follow_post: "Follow post"
like: "Like"
unlike: "Unlike"
reshare: "Reshare"
reshared: "Reshared"
comment: "Comment"

View file

@ -1,4 +1,4 @@
<a href="#" rel="auth-required" class="label like" title="{{#if user_like}} Unlike {{else}} Like {{/if}}">
<a href="#" rel="auth-required" class="label like" title="{{#if user_like}} {{t "viewer.unlike"}} {{else}} {{t "viewer.like"}} {{/if}}">
{{#if user_like}}
<i class="icon-heart icon-red"></i>
{{else}}
@ -7,7 +7,7 @@
{{likes_count}}
</a>
<a href="#" rel="auth-required" class="label follow" title="{{#if user_participation}} Stop Following {{else}} Follow {{/if}} Post">
<a href="#" rel="auth-required" class="label follow" title="{{#if user_participation}} {{t "viewer.stop_following_post"}} {{else}} {{t "viewer.follow_post"}} {{/if}}">
{{#if user_participation}}
<i class="icon-plus icon-green"></i>
{{else}}
@ -17,7 +17,7 @@
</a>
{{#if userCanReshare}}
<a href="#" rel="auth-required" class="label reshare" title="{{#if user_reshare}} Reshared {{else}} Reshare {{/if}}">
<a href="#" rel="auth-required" class="label reshare" title="{{#if user_reshare}} {{t "viewer.reshared"}} {{else}} {{t "viewer.reshare"}} {{/if}}">
{{#if user_reshare}}
<i class="icon-retweet icon-blue"></i>
{{else}}
@ -27,7 +27,7 @@
</a>
{{/if}}
<a href="#" class="label comment" rel="invoke-interaction-pane" title="Comment">
<a href="#" class="label comment" rel="invoke-interaction-pane" title="{{t "viewer.comment"}}">
<i class="icon-comment icon-white"></i>
{{comments_count}}
</a>
@ -37,7 +37,7 @@
<div id="post-info-container-sneaky">
<a href="#" rel="invoke-interaction-pane" class="invoker">
<img src="/images/up-tick-inset.png" class="info-tick"/>
<a href="/" title="Home" class="home-button">
<a href="/" title="{{t "header.home"}}" class="home-button">
<i class="icon-home icon-white"></i>
</a>
</a>

View file

@ -1,8 +1,8 @@
<div id="new-post-comment-container">
<form class="form-inline">
<textarea class="new-comment-text" id="new-comment-text" placeholder="Comment"></textarea>
<textarea class="new-comment-text" id="new-comment-text" placeholder="{{t "stream.comment"}}"></textarea>
<button type="submit" class="btn btn-small">
Comment
{{t "stream.comment"}}
</button>
</form>
</div>