From 584b381635dde7a0f0ba9065591d5428b9db3f85 Mon Sep 17 00:00:00 2001 From: Breanna Gream Date: Mon, 4 May 2026 12:11:06 +1000 Subject: [PATCH 1/3] AO3-7379 add locale keys to internationalise text --- app/views/collections/_collection_blurb.html.erb | 8 ++++---- config/locales/views/en.yml | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/collections/_collection_blurb.html.erb b/app/views/collections/_collection_blurb.html.erb index e3ccab86f5..764a0fcad2 100644 --- a/app/views/collections/_collection_blurb.html.erb +++ b/app/views/collections/_collection_blurb.html.erb @@ -42,17 +42,17 @@
<% if (@challenges_count = collection.children.count) > 0 %> -
<%= ts("Challenges/Subcollections:") %>
+
<%= t(".challenges_subcollections") %>
<%= link_to(@challenges_count, collection_collections_path(collection)) %>
<% end %> <% if collection.challenge? && collection.prompt_meme? %> -
<%= ts("Prompts:") %>
+
<%= t(".prompts") %>
<%= link_to(collection.prompts.count.to_s, collection_requests_path(collection)) %>
<% end %> -
<%= ts("Works:") %>
+
<%= t(".works") %>
<%= link_to(collection.approved_works_count, collection_works_path(collection)) %>
<% if (@bookmarks_count = collection.approved_bookmarked_items_count) > 0 %> -
<%= ts("Bookmarked Items:") %>
+
<%= t(".bookmarked_items") %>
<%= link_to(@bookmarks_count, collection_bookmarks_path(collection)) %>
<% end %>
diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 630a3291f9..9a27f12aaf 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -771,9 +771,13 @@ en: collection_tags: 'Collection tags:' collections: collection_blurb: + bookmarked_items: 'Bookmarked Items:' collection_tags: 'Collection Tags:' + challenges_subcollections: 'Challenges/Subcollections:' + prompts: 'Prompts:' signups_close_at: 'Sign-ups close at:' summary: Summary + works: 'Works:' filters: clear_filters: Clear Filters closed: From ca1a0b6934475a7ce5ebd52f95d1ceddd9d5033d Mon Sep 17 00:00:00 2001 From: Breanna Gream Date: Mon, 4 May 2026 12:12:28 +1000 Subject: [PATCH 2/3] AO3-7379 add delimiters to large numbers --- app/views/collections/_collection_blurb.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/collections/_collection_blurb.html.erb b/app/views/collections/_collection_blurb.html.erb index 764a0fcad2..4697a9952b 100644 --- a/app/views/collections/_collection_blurb.html.erb +++ b/app/views/collections/_collection_blurb.html.erb @@ -43,17 +43,17 @@
<% if (@challenges_count = collection.children.count) > 0 %>
<%= t(".challenges_subcollections") %>
-
<%= link_to(@challenges_count, collection_collections_path(collection)) %>
+
<%= link_to(number_with_delimiter(@challenges_count), collection_collections_path(collection)) %>
<% end %> <% if collection.challenge? && collection.prompt_meme? %>
<%= t(".prompts") %>
-
<%= link_to(collection.prompts.count.to_s, collection_requests_path(collection)) %>
+
<%= link_to(number_with_delimiter(collection.prompts.count), collection_requests_path(collection)) %>
<% end %>
<%= t(".works") %>
-
<%= link_to(collection.approved_works_count, collection_works_path(collection)) %>
+
<%= link_to(number_with_delimiter(collection.approved_works_count), collection_works_path(collection)) %>
<% if (@bookmarks_count = collection.approved_bookmarked_items_count) > 0 %>
<%= t(".bookmarked_items") %>
-
<%= link_to(@bookmarks_count, collection_bookmarks_path(collection)) %>
+
<%= link_to(number_with_delimiter(@bookmarks_count), collection_bookmarks_path(collection)) %>
<% end %>
From 9775ec12e49e419c2fd6b1ba96769f9ba2fd64ff Mon Sep 17 00:00:00 2001 From: Breanna Gream Date: Mon, 4 May 2026 14:49:45 +1000 Subject: [PATCH 3/3] AO3-7379 alphabetise locale config --- config/locales/views/en.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 9a27f12aaf..eece1bb661 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -772,8 +772,8 @@ en: collections: collection_blurb: bookmarked_items: 'Bookmarked Items:' - collection_tags: 'Collection Tags:' challenges_subcollections: 'Challenges/Subcollections:' + collection_tags: 'Collection Tags:' prompts: 'Prompts:' signups_close_at: 'Sign-ups close at:' summary: Summary