Commit 715cb1bb authored by Steffen van Bergerem's avatar Steffen van Bergerem

Remove unused translations

parent 8d16270f
<div class='pull-right'>
{{#if loggedIn}}
<a href="#" class="like" title="{{#if userLike}} {{t "viewer.unlike"}} {{else}} {{t "viewer.like"}} {{/if}}">
<a href="#" class="like" title="{{#if userLike}} {{t "stream.unlike"}} {{else}} {{t "stream.like"}} {{/if}}">
{{#if userLike}}
<i class="entypo-heart red large"></i>
{{else}}
......@@ -8,12 +8,12 @@
{{/if}}
</a>
<a href="#" class="focus-comment" title="{{t "viewer.comment"}}">
<a href="#" class="focus-comment" title="{{t "stream.comment"}}">
<i class="entypo-comment gray large"></i>
</a>
{{#if userCanReshare}}
<a href="#" class="reshare" title="{{t "viewer.reshare"}}">
<a href="#" class="reshare" title="{{t "stream.reshare"}}">
<i class="entypo-reshare gray large"></i>
</a>
{{else}}
......
......@@ -46,7 +46,7 @@
= text_field_tag "identifier", nil, class: "form-control"
.form-group
.clearfix.col-md-12
= submit_tag t("services.remote_friend.invite"), class: "btn btn-default pull-right"
= submit_tag t(".invite"), class: "btn btn-default pull-right"
.row
.col-md-12
......
This diff is collapsed.
......@@ -118,12 +118,7 @@ en:
my_stream: "Stream"
my_aspects: "My aspects"
videos:
watch: "Watch this video on <%= provider %>"
unknown: "Unknown video type"
search_for: "Search for <%= name %>"
publisher:
at_least_one_aspect: "You must publish to at least one aspect"
limited: "Limited: your post will only be seen by people you are sharing with"
public: "Public: your post will be visible to everyone and found by search engines"
near_from: "Posted from: <%= location %>"
......@@ -134,9 +129,6 @@ en:
post_something: "Post to diaspora*"
post_submit: "Submitting post..."
post_success: "Posted! Closing popup window..."
infinite_scroll:
no_more: "No more posts."
no_more_contacts: "No more contacts."
aspect_dropdown:
add_to_aspect: "Add contact"
select_aspects: "Select aspects"
......@@ -207,7 +199,6 @@ en:
posts: "Posts"
conversation:
participants: "Participants"
new:
no_contacts: "You need to add some contacts before you can start a conversation."
......@@ -261,7 +252,7 @@ en:
stop_following_confirm: "Stop following #<%= tag %>?"
follow_error: "Couldn’t follow #<%= tag %> :("
stop_following_error: "Couldn’t stop following #<%= tag %> :("
reactions:
zero: "<%= count%> reactions"
one: "<%= count%> reaction"
......@@ -290,14 +281,7 @@ en:
close: "Close"
viewer:
stop_following_post: "Stop following post"
follow_post: "Follow post"
like: "Like"
unlike: "Unlike"
reshare: "Reshare"
reshared: "Reshared"
comment: "Comment"
home: "Home"
poll:
vote: "Vote"
......
......@@ -15,15 +15,15 @@ describe "i18n interpolation fallbacks" do
end
describe "when string requires interpolation arguments" do
context "current locale has no fallbacks" do
# ago: "%{time} ago" (in en.yml)
# tags.show.follow: "Follow #%{tag}" (in en.yml)
it "returns the translation when all arguments are provided" do
expect(I18n.t('ago', :time => "2 months")).to eq("2 months ago")
expect(I18n.t("tags.show.follow", tag: "cats")).to eq("Follow #cats")
end
it "returns the translation without substitution when all arguments are omitted" do
expect(I18n.t('ago')).to eq("%{time} ago")
expect(I18n.t("tags.show.follow")).to eq("Follow #%{tag}")
end
it "raises a MissingInterpolationArgument when arguments are wrong" do
expect { I18n.t('ago', :not_time => "2 months") }.to raise_exception(I18n::MissingInterpolationArgument)
expect { I18n.t("tags.show.follow", not_tag: "cats") }.to raise_exception(I18n::MissingInterpolationArgument)
end
end
context "current locale falls back to English" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment