change #newhere to translation

This commit is contained in:
Lennart Prelle 2011-11-09 20:38:06 +01:00
parent 6f7c9e9301
commit f2997f5146
4 changed files with 5 additions and 3 deletions

View file

@ -27,7 +27,7 @@
%h5
= t('aspects.index.new_here.title')
.content
!= t('aspects.index.new_here.follow', :link => link_to('#NewHere', tag_path(:name => "NewHere")))
!= t('aspects.index.new_here.follow', :link => link_to("#"+t('shared.publisher.new_user_prefill.newhere'), tag_path(:name => "NewHere")))
%br
= link_to(t('aspects.index.new_here.learn_more'), "https://github.com/diaspora/diaspora/wiki/Welcoming-Committee")

View file

@ -746,6 +746,7 @@ de:
discard_post: "Beitrag verwerfen"
make_public: "veröffentlichen"
new_user_prefill:
newhere: "NeuHier"
hello: "Hallo zusammen, ich bin #%{new_user_tag}. "
i_like: "Ich interessiere mich für %{tags}."
invited_by: "Danke für die Einladung,"

View file

@ -759,6 +759,7 @@ en:
publishing_to: "publishing to: "
discard_post: "Discard post"
new_user_prefill:
newhere: "NewHere"
hello: "Hey everyone, I'm #%{new_user_tag}. "
i_like: "I'm interested in %{tags}. "
invited_by: "Thanks for the invite, "

View file

@ -49,7 +49,7 @@ class Stream::Multi < Stream::Base
#
# @return [String]
def publisher_prefill
prefill = I18n.t("shared.publisher.new_user_prefill.hello", :new_user_tag => "NewHere")
prefill = I18n.t("shared.publisher.new_user_prefill.hello", :new_user_tag => I18n.t('shared.publisher.new_user_prefill.newhere'))
if self.user.followed_tags.size > 0
tag_string = self.user.followed_tags.map{|t| "##{t.name}"}.to_sentence
prefill << I18n.t("shared.publisher.new_user_prefill.i_like", :tags => tag_string)