Skip to content

Commit

Permalink
Fix incorrect translations. Fixes #166
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Aug 19, 2015
1 parent 8959af1 commit f40fcc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/curation_concerns/ability_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def visibility_badge(value)
when Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC
content_tag :span, "Open Access", class:"label label-success"
when Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED
content_tag :span, t('sufia.institution_name'), class:"label label-info"
content_tag :span, t('curation_concerns.institution_name'), class:"label label-info"
when Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE
content_tag :span, "Private", class:"label label-danger"
when Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_EMBARGO
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/curation_concerns/attribute_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def extract_dom_label_class_and_link_title(document)
dom_label_class, link_title = 'label-success', 'Open Access'
end
elsif hash[Hydra.config.permissions.read.group].include?('registered')
dom_label_class, link_title = "label-info", t('sufia.institution_name')
dom_label_class, link_title = "label-info", t('curation_concerns.institution_name')
end
end
return dom_label_class, link_title
Expand Down
2 changes: 1 addition & 1 deletion app/views/collections/_form_permission.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</label>
<label class="radio">
<input type="radio" id="visibility_registered" name="<%= f.object_name %>[visibility]" value="<%= Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED %>" <% if @collection.authenticated_only_access? %> checked="true"<% end %> />
<span class="label label-info"><%=t('sufia.institution_name') %></span> Visible to all <%=t('sufia.institution_name') %> users.
<span class="label label-info"><%=t('curation_concerns.institution_name') %></span> Visible to all <%=t('curation_concerns.institution_name') %> users.
</label>
<label class="radio">
<input type="radio" id="visibility_restricted" name="<%= f.object_name %>[visibility]" value="<%= Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE%>" <% if @collection.private_access? %> checked="true"<% end %>/>
Expand Down

0 comments on commit f40fcc5

Please sign in to comment.