Skip to content

Commit

Permalink
i18n not_found_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Jul 7, 2014
1 parent 79860e8 commit 5d6cd6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/views/resolve/_manually_entered_warning.html.erb
@@ -1,7 +1,11 @@
<%=
# Try to warn if this could be a typo. If we have an rft.object_id, then
<%# Try to warn if this could be a typo. If we have an rft.object_id, then
# SFX recognized it as an actually existing journal. If not, then it
# might be a typo. If it came from a manually entered citation, warn them.
content_tag(:div, content_tag(:i, "", :class => "umlaut_icons-famfamfam-error") +
" Warning: #{umlaut_config.app_name} does not know about a #{user_request.referent.format.downcase} with this name. Please check your entry.",
:class=>"alert alert-error") if display_not_found_warning?(user_request) %>
%>
<% if display_not_found_warning?(user_request) %>
<div class="alert alert-error">
<i class="umlaut_icons-famfamfam-error"/>
<%= t("umlaut.resolve.not_found_warning", :app_name => umlaut_config.app_name, :resource_type => user_request.referent.container_type_of_thing.downcase) %>
</div>
<% end %>
1 change: 1 addition & 0 deletions config/locales/en.yml
Expand Up @@ -71,6 +71,7 @@ en:
from_service: from
edition_info: Edition information
maybe_alt_edition: May be alternate edition
not_found_warning: "Warning: %{app_name} does not know about a %{resource_type} with this name. Please check your entry."
background_load:
# 'initial' vs 'more': Different messages depending on whether some items are
# already loaded (maybe already in the foreground)
Expand Down

0 comments on commit 5d6cd6e

Please sign in to comment.