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

AO3-6058 Add 'translation into' to download preface #4652

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

brianjaustin
Copy link
Member

Issue

https://otwarchive.atlassian.net/browse/AO3-6058

Purpose

Add the translation(s) of a work to the links displayed at the beginning of a download.

Testing Instructions

Refer to Jira story

References

Follow-up to #4608

Credit

@weeklies for the majority of the work in the linked PR
Brian Austin (they/he)

@brianjaustin brianjaustin added the Priority: High - Broken on Test Merge immediately after approval label Nov 4, 2023
@brianjaustin brianjaustin added this to the 0.9.352: Downloads milestone Nov 4, 2023
@@ -65,15 +65,24 @@
<% end %>
<% end %>

<%# i18n-tasks-use t("downloads.download_preface.translated_to.restricted_html") %>
<%# i18n-tasks-use t("downloads.download_preface.translated_to.revealed_html") %>
<%# i18n-tasks-use t("downloads.download_preface.translated_to.unrevealed_html") %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason these hints are within the template instead of in the helper where they're used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to think about it, but I think the reasoning is that the calls here "cause" the translation key to be used (i.e. without calling the helper here, the translation keys would be unused), and in contrast, the helper just "facilitates" the use

Copy link
Contributor

@weeklies weeklies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for working on this 🙂

@sarken sarken merged commit bd0f170 into otwcode:master Nov 6, 2023
24 checks passed
@brianjaustin brianjaustin deleted the AO3-6058-translation-avail branch January 27, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants