lib/em-websocket.rb is now even more translatable

This commit is contained in:
MrZYX 2010-11-27 02:43:49 +01:00
parent 0d8488a5f7
commit ad6d6d5efa
2 changed files with 7 additions and 4 deletions

View file

@ -393,7 +393,10 @@ en:
hide_comments: "hide comments" hide_comments: "hide comments"
webfinger: webfinger:
fetch_failed: "failed to fetch webfinger profile for %{profile_url}" fetch_failed: "failed to fetch webfinger profile for %{profile_url}"
hcard_fetch_failed: "there was a problem fetching the hcard for #{@account}" hcard_fetch_failed: "there was a problem fetching the hcard for %{account}"
xrd_fetch_failed: "there was an error getting the xrd from account %{account}"
not_enabled: "webfinger does not seem to be enabled for %{account}'s host"
no_person_constructed: "No person could be constructed from this hcard."
pagination: pagination:
next: "Next" next: "Next"
previous: "Previous" previous: "Previous"

View file

@ -47,7 +47,7 @@ class EMWebfinger
@ssl = false @ssl = false
get_xrd get_xrd
else else
process_callbacks "webfinger does not seem to be enabled for #{@account}'s host" process_callbacks I18n.t('webfinger.not_enabled', :account => @account)
end end
} }
@ -56,7 +56,7 @@ class EMWebfinger
@ssl = false @ssl = false
get_xrd get_xrd
else else
process_callbacks "there was an error getting the xrd from account#{@account}" process_callbacks I18n.t('webfinger.xrd_fetch_failed', :account => @account)
end } end }
end end
@ -83,7 +83,7 @@ class EMWebfinger
p = Person.build_from_webfinger(wf_profile, hcard) p = Person.build_from_webfinger(wf_profile, hcard)
process_callbacks(p) process_callbacks(p)
rescue rescue
process_callbacks "No person could be constructed from this hcard." process_callbacks I18n.t 'webfinger.no_person_constructed'
end end
} }
http.errback{process_callbacks I18n.t('webfinger.hcard_fetch_failed', :account => @account) } http.errback{process_callbacks I18n.t('webfinger.hcard_fetch_failed', :account => @account) }