Skip to content

AO3-7548 i18n tagset-about, tagset-tag-associations and tagset-batch-load help files - #5981

Open
sherin wants to merge 11 commits into
otwcode:masterfrom
sherin:i18n-tag-sets-help
Open

AO3-7548 i18n tagset-about, tagset-tag-associations and tagset-batch-load help files#5981
sherin wants to merge 11 commits into
otwcode:masterfrom
sherin:i18n-tag-sets-help

Conversation

@sherin

@sherin sherin commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

…_tag_sets/index

Pull Request Checklist

Issue

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

Purpose

Move 3 help files over to erb with i18n compliance. In addition, for owned_tag_sets/index.html, I've also fixed and moved its translation strings to the en locale file (converting ts calls to t).

Testing Instructions

Refer ticket

Credit

sherin

@sherin sherin changed the title move tag set about help to be i18n compatible. move ts -> t for owned… AO3-7548 move tag set about help to be i18n compatible. move ts -> t for owned… Aug 13, 2026
@sherin
sherin marked this pull request as ready for review August 15, 2026 05:21
@sarken sarken changed the title AO3-7548 move tag set about help to be i18n compatible. move ts -> t for owned… AO3-7548 i18n tagset-about, tagset-tag-associations and tagset-batch-load 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 things, but overall looking really good!

I also transitioned your Jira issue to In Review and assigned you to it so no one else picks it up.

Comment thread config/locales/views/en.yml Outdated
acronym: non-con
title: non-consensual sex
tag_sets_about:
delete_tag_set_warning_strong: can delete the tag set or change it without warning

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 _strong suffix might be confusing to a translator who doesn't know HTML. The way you're supposed to do this is to make the key here just delete_tag_set_warning and then have the variable be something descriptive so they see %{delete_tag_set_warning_bold} in the other string.

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.

good point, thank you


<% end %>
</div> No newline at end of file

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.

Since you're already modifying this file pretty heavily could you please add the missing newline at the end here


<fieldset class="tagset">
<legend>Tags In Set <% unless @tag_set.new_record? || !@tag_set.tag_set || @tag_set.tag_set.tags.empty? %><%= ts('(check to remove)') %><% end %></legend>
<legend>Tags In Set <% unless @tag_set.new_record? || !@tag_set.tag_set || @tag_set.tag_set.tags.empty? %><%= t(".check_to_remove") %><% end %></legend>

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.

Our i18n standards say that even if a text fragment is identical in two places it should be put in two different locales like .check_to_remove_tags and .check_to_remove_associations in case they end up being different in another language (like maybe tags and associations have different genders and that requires remove to be conjugated differently or something)

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.

that makes sense, thank you!

Comment on lines +24 to +25
<dt class="landmark"><%= t(".submit") %></dt>
<dd class="submit actions"><%= form.submit t(".submit") %></dd>

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.

These I think are fine to be duplicated because they are both referring to the same button

Comment thread app/views/owned_tag_sets/index.html.erb Outdated
Comment on lines +28 to +29
<li><%= link_to t(".new_tag_set_link"), new_tag_set_path %></li>
<li><%= link_to t(".tags_link"), tags_path %></li>

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.

These are probably better described as _button instead of _link

@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!

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.

2 participants