Skip to content

AO3-7545 i18n people-search-all-fields and chapter-title help files - #5979

Open
sherin wants to merge 7 commits into
otwcode:masterfrom
sherin:i18n-people-search
Open

sherin wants to merge 7 commits into
otwcode:masterfrom
sherin:i18n-people-search

Conversation

@sherin

@sherin sherin commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Issue

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

Purpose

Adds i18n support for 2 pages: (1) Search -> People (2) Title text on Edit Chapter

Testing Instructions

Refer ticket

Credit

Sherin (she)

@sherin sherin changed the title i18n for help in search->people AO3-7545 - i18n for help in search->people Aug 12, 2026
@sherin
sherin marked this pull request as ready for review August 13, 2026 05:03
@sarken sarken changed the title AO3-7545 - i18n for help in search->people AO3-7545 i18n people-search-all-fields and chapter-title help files Aug 19, 2026

@ASalbenblatt ASalbenblatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few small fixes :)

Comment thread config/routes.rb Outdated
# Redirects for moved help files
get "/help/add-collectible-to-collection.html", to: redirect("/help/collectibles_add_to_collection")
get "/first_login_help", to: redirect("/help/first_login")
get "/help/chapter-title.html", to: redirect("/help/chapters_title")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This line isn't alphabetized correctly, it should go first like how you have it in help_controller.rb

Comment thread config/locales/views/en.yml Outdated
prev: "← Previous"
people:
search_form:
people_search_all_fields_help_title: People search all fields help

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The key for this doesn't need to include people_search_ because it's already at people.search_form

unwanted_larger_text: If one bit of your text shows up larger than the rest, probably our formatter couldn't figure out to put paragraph tags around it. You can fix this by manually putting in the paragraph tags around that one bit.
unwilling_to_break: If you have put in some custom HTML (eg a list of items inside a <ul>) and you don't want break tags or paragraphs inserted, just put it all on one line (sorry, this is the inconvenient tradeoff for automatically doing the paragraph/break tags).
page_heading: HTML on the Archive
people_search_all_fields:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm just putting this here because it comes up a lot in this file, but translators shouldn't be expected to know what kbd and samp mean. I might instead use something more descriptive like as_entered and result respectively (or whatever you want if you can come up with something clearer or better)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. I liked using the tags itself because it was very confusing w/o them. Hmm I will use "sample" for samp and keyboard_input for kbd

Comment thread config/locales/views/en.yml Outdated
user_samp: User
username_samp: Username
users_samp: Users
exact:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this would be better described as double_quotes:

Comment thread config/locales/views/en.yml Outdated
description_html: "%{a_user_kbd} will find %{a_user_samp} and %{a_test_user_samp} but not %{user_samp}."
title: 'space: a space acts like AND'
user_samp: User
any:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this would be better described as asterisk:

Comment thread config/locales/views/en.yml Outdated
unwilling_to_break: If you have put in some custom HTML (eg a list of items inside a <ul>) and you don't want break tags or paragraphs inserted, just put it all on one line (sorry, this is the inconvenient tradeoff for automatically doing the paragraph/break tags).
page_heading: HTML on the Archive
people_search_all_fields:
and:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this would be better described as space:

Comment thread config/locales/views/en.yml Outdated
exact:
a_test_user_samp: A. Test User
a_user_kbd: '"A. User"'
a_user_samp: '"A. User"'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assuming you agree, I think the quotes on the samp were actually a typo in the original, because there would probably only be a tag A. User not "A. User", so I you can remove them unless you think they might not be one.

@ASalbenblatt ASalbenblatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Thanks!

@Bilka2 Bilka2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work! Just one tiny change to match the previous help title, please

Comment thread config/locales/views/en.yml Outdated
Co-authored-by: Bilka <Bilka2@users.noreply.github.com>
@sherin

sherin commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Nice work! Just one tiny change to match the previous help title, please

Thank you for catching this. Fixed!

@Bilka2 Bilka2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you both for coding and reviewing!

This branch has not been deployed

No deployments
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