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 ""}} {{/if}}">
<a href="#" class="like" title="{{#if userLike}} {{t "stream.unlike"}} {{else}} {{t ""}} {{/if}}">
{{#if userLike}}
<i class="entypo-heart red large"></i>
......@@ -8,12 +8,12 @@
<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>
{{#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>
......@@ -46,7 +46,7 @@
= text_field_tag "identifier", nil, class: "form-control"
= submit_tag t("services.remote_friend.invite"), class: "btn btn-default pull-right"
= submit_tag t(".invite"), class: "btn btn-default pull-right"
This diff is collapsed.
......@@ -118,12 +118,7 @@ en:
my_stream: "Stream"
my_aspects: "My aspects"
watch: "Watch this video on <%= provider %>"
unknown: "Unknown video type"
search_for: "Search for <%= name %>"
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..."
no_more: "No more posts."
no_more_contacts: "No more contacts."
add_to_aspect: "Add contact"
select_aspects: "Select aspects"
......@@ -207,7 +199,6 @@ en:
posts: "Posts"
participants: "Participants"
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 %> :("
zero: "<%= count%> reactions"
one: "<%= count%> reaction"
......@@ -290,14 +281,7 @@ en:
close: "Close"
stop_following_post: "Stop following post"
follow_post: "Follow post"
like: "Like"
unlike: "Unlike"
reshare: "Reshare"
reshared: "Reshared"
comment: "Comment"
home: "Home"
vote: "Vote"
......@@ -15,15 +15,15 @@ describe "i18n interpolation fallbacks" do
describe "when string requires interpolation arguments" do
context "current locale has no fallbacks" do
# ago: "%{time} ago" (in en.yml)
# "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("", tag: "cats")).to eq("Follow #cats")
it "returns the translation without substitution when all arguments are omitted" do
expect(I18n.t('ago')).to eq("%{time} ago")
expect(I18n.t("")).to eq("Follow #%{tag}")
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("", not_tag: "cats") }.to raise_exception(I18n::MissingInterpolationArgument)
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