Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add i18n to frontend and public interface footers #2586

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/app/views/site/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container-fluid footer">
<div class="row">
<div class="col-md-12">
<p><% if AppConfig[:enable_public] %>View <a href="<%= AppConfig[:public_proxy_url] %>">Public Interface</a> | <% end %>Visit <a href='http://archivesspace.org'>ArchivesSpace.org</a> | <%= ASConstants.VERSION %> |<% if AppConfig[:feedback_url] && !AppConfig[:feedback_url].blank? %> <a id='aspaceFeedbackLink' href='https://archivesspace.org/contact' target='_blank'>Send Feedback or Report a Problem</a> <% end %></p>
<p><% if AppConfig[:enable_public] %><%= I18n.t("footer.public_interface", :public_url => AppConfig[:public_proxy_url]) %> | <% end %><%= I18n.t("footer.archivesspace_home") %> | <%= ASConstants.VERSION %><% if AppConfig[:feedback_url] && !AppConfig[:feedback_url].blank? %> | <%= I18n.t("footer.feedback", :feedback_url => AppConfig[:feedback_url]) %> <% end %></p>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions frontend/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ en:
header:
staff_interface: ArchivesSpace Staff Interface

footer:
public_interface: View <a href="%{public_url}">Public Interface</a>
archivesspace_home: Visit <a href='http://archivesspace.org'>ArchivesSpace.org</a>
feedback: <a id='aspaceFeedbackLink' href='%{feedback_url}' target='_blank'>Send Feedback or Report a Problem</a>

session:
gone: Your backend session was not found
expired: Your session expired due to inactivity
Expand Down
6 changes: 3 additions & 3 deletions public/app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="container-fluid panel-footer">
<div class="row">
<div class="col-md-12">
<p class="footer-items"><a href="<%= AppConfig[:frontend_proxy_url] %>">Staff Interface</a>
| Visit <a href="http://archivesspace.org">ArchivesSpace.org</a>
<p class="footer-items"><%= I18n.t("footer.staff_interface", staff_url: AppConfig[:frontend_proxy_url]).html_safe %>
| <%= I18n.t("footer.archivesspace_home").html_safe %>
| <%= ASConstants.VERSION %>
| <% if AppConfig[:feedback_url] && !AppConfig[:feedback_url].blank? %><a id='aspaceFeedbackLink' href='<%= AppConfig[:feedback_url]%>' target='_blank'>Send Feedback or Report a Problem</a><% end %></p>
<% if AppConfig[:feedback_url] && !AppConfig[:feedback_url].blank? %> | <%= I18n.t("footer.feedback", :feedback_url => AppConfig[:feedback_url]).html_safe %><% end %></p>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions public/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -527,3 +527,8 @@ en:
file_version_xlink_actuate_attribute: Xlink Actuate Attribute
file_version_xlink_show_attribute: Xlink Show Attribute
last_verified_date: Last Verified Date

footer:
staff_interface: <a href="%{staff_url}">Staff Interface</a>
archivesspace_home: Visit <a href='http://archivesspace.org'>ArchivesSpace.org</a>
feedback: <a id='aspaceFeedbackLink' href='%{feedback_url}' target='_blank'>Send Feedback or Report a Problem</a>