discourse/app/controllers
Keegan George af91b0433f
DEV: Post localization improvements (#32869)
## 🔍 Overview
This update includes some small improvements to post localizations. In
particular:
- we only show add translation button if user is part of
`experimental_content_localization_allowed_groups` and
`SiteSetting.experimental_content_localization` is `true`
- we no longer load `post_localizations` on every post until the post
localization globe is clicked
- we move the post localization indicator to be an menu item in the
post-action-buttons instead of being in the post meta data
- we remove the `SiteSetting.content_localization_debug_allowed_groups`
in favor of using a single setting:
`experimental_content_localization_allowed_groups_map`

## 📷 Screenshots

![image](https://github.com/user-attachments/assets/fa239501-0dbc-43ba-8b70-d6899dd1554c)


![image](https://github.com/user-attachments/assets/8b3272b3-7483-4bb1-af36-8c8ad5d55d03)
2025-05-27 08:49:53 -07:00
..
admin FIX: N+1 in admin themes page (#32763) 2025-05-19 11:05:23 +08:00
users UX: better error message when social login fails (#32772) 2025-05-20 16:22:38 +02:00
about_controller.rb
application_controller.rb DEV: Add site description to crawler homepage view (#32845) 2025-05-22 08:33:59 +10:00
associated_groups_controller.rb
badges_controller.rb
bookmarks_controller.rb
bootstrap_controller.rb DEV: Compile 'common' CSS into own assets (#31416) 2025-05-01 10:44:49 +01:00
categories_controller.rb DEV: Show login-required splash in root route (take 2) (#32629) 2025-05-14 11:25:43 -04:00
clicks_controller.rb
composer_controller.rb
composer_messages_controller.rb
csp_reports_controller.rb
directory_columns_controller.rb
directory_items_controller.rb FIX: Allow user directory searches to return more than 20 matching results (#31032) 2025-01-29 11:02:42 -04:00
do_not_disturb_controller.rb
drafts_controller.rb
edit_directory_columns_controller.rb
email_controller.rb
embed_controller.rb
emojis_controller.rb DEV: discourse-emojis gem (#31408) 2025-03-03 13:09:08 +01:00
exceptions_controller.rb
export_csv_controller.rb
extra_locales_controller.rb PERF: Compile main locale bundles just-in-time (#32335) 2025-04-28 10:31:27 +01:00
finish_installation_controller.rb SECURITY: Preload data only when rendering application layout 2025-02-04 13:32:30 -03:00
form_templates_controller.rb FEATURE: Implement tag group selection in dropdown and multi-select for topic creation and preview when using Form Templates (#32108) 2025-04-17 08:38:03 -05:00
forums_controller.rb
groups_controller.rb DEV: Revert unintended changes to GroupsController #add_members and its corresponding route (#32732) 2025-05-14 16:31:19 -05:00
hashtags_controller.rb
highlight_js_controller.rb
home_page_controller.rb DEV: Show login-required splash in root route (take 2) (#32629) 2025-05-14 11:25:43 -04:00
inline_onebox_controller.rb SECURITY: Limit /inline-onebox to 10 URLs at a time 2025-02-04 13:32:53 -03:00
invites_controller.rb FIX: Allow existing users to accept invites that add them to a group. (#32762) 2025-05-16 16:42:02 +10:00
list_controller.rb DEV: Remove Top route title for crawlers (#32820) 2025-05-20 13:52:00 -04:00
metadata_controller.rb
new_invite_controller.rb
new_topic_controller.rb
notifications_controller.rb
offline_controller.rb
onebox_controller.rb
pageview_controller.rb
permalinks_controller.rb
post_action_users_controller.rb
post_actions_controller.rb
post_localizations_controller.rb DEV: Post localization improvements (#32869) 2025-05-27 08:49:53 -07:00
post_readers_controller.rb
posts_controller.rb DEV: trigger single event when multiple posts are destroyed at once (#32731) 2025-05-15 09:57:07 -04:00
presence_controller.rb
published_pages_controller.rb
push_notification_controller.rb
qunit_controller.rb
reviewable_claimed_topics_controller.rb FEATURE: Sync Reviewable Status (#31901) 2025-03-24 14:27:18 +11:00
reviewables_controller.rb FEATURE: Allow rejected user details to be scrubbed (#31987) 2025-03-31 12:40:35 +11:00
robots_txt_controller.rb
safe_mode_controller.rb FIX: Set X-Robots-Tag header to prevent indexing of /safe-mode (#32329) 2025-04-16 16:51:32 +10:00
search_controller.rb Revert "DEV: Prevent crawlers from loading search results. (#31535)" (#31540) 2025-02-27 10:34:18 +01:00
session_controller.rb DEV: better error message when "becoming" an inactive user (#32689) 2025-05-13 11:10:12 +02:00
sidebar_sections_controller.rb
similar_topics_controller.rb
site_controller.rb SECURITY: Preload data only when rendering application layout 2025-02-04 13:32:30 -03:00
sitemap_controller.rb
slugs_controller.rb
static_controller.rb Allow passing a redirect path to a param on the /login route (#32711) 2025-05-15 08:48:06 -05:00
steps_controller.rb
stylesheets_controller.rb UX: Apply changes live when editing currently active palette (#31874) 2025-03-25 06:42:23 +03:00
svg_sprite_controller.rb
tag_groups_controller.rb
tags_controller.rb FIX: avoid infinite loop when synonym tag is self (#32932) 2025-05-27 11:48:51 +08:00
test_requests_controller.rb DEV: Add a user agent to all HTTP requests that Discourse makes. (#31555) 2025-03-03 16:32:25 +11:00
theme_javascripts_controller.rb
topic_localizations_controller.rb FEATURE: Add translations to posts (#32564) 2025-05-08 10:40:36 -07:00
topic_view_stats_controller.rb
topics_controller.rb DEV: Don't allow context-free system post destruction (#32523) 2025-05-05 09:58:29 +08:00
uploads_controller.rb FIX: Incorrect topic per-minute invitation rate limit (#31252) 2025-02-10 13:12:16 +10:00
user_actions_controller.rb
user_api_key_clients_controller.rb
user_api_keys_controller.rb DEV: Add comment to clarify padding used in user-api-key encryption (#31833) 2025-03-14 14:34:44 -04:00
user_avatars_controller.rb
user_badges_controller.rb FIX: error when trying to un-favorite badge (#32369) 2025-04-22 15:36:48 +08:00
user_status_controller.rb
users_controller.rb FIX: Bug with 2FA setup right after signup (#32754) 2025-05-16 09:00:39 -04:00
users_email_controller.rb
webhooks_controller.rb FIX: No method error in WebhooksController#sendgrid (#31495) 2025-02-25 13:08:59 +08:00
wizard_controller.rb