discourse/app
Loïc Guitaut 53210841c8 FIX: Validate MF strings when adding overrides
Currently, when adding translation overrides, values aren’t validated
for MF strings. This results in being able to add invalid plural keys or
even strings containing invalid syntax.

This patch addresses this issue by compiling the string when saving an
override if the key is detected as an MF one.

If there’s an error from the compiler, it’s added to the model errors,
which in turn is displayed to the user in the admin UI, helping them to
understand what went wrong.
2024-07-26 12:20:00 +02:00
..
assets UX: Fix button syntax in preferences (#28074) 2024-07-25 14:46:30 -07:00
controllers FIX: Perform topics bulk action in a background thread (#28061) 2024-07-25 11:43:00 +03:00
helpers UX: Use localized time format in embedded comments (#28014) 2024-07-22 18:42:36 +08:00
jobs FIX: Fix Jobs::Onceoff.enqueue_all undefined method for nilClass error (#28073) 2024-07-25 15:52:42 +08:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models FIX: Validate MF strings when adding overrides 2024-07-26 12:20:00 +02:00
serializers DEV: show admin moderation flags UI (#28071) 2024-07-25 15:24:17 +10:00
services FEATURE: Clean up previously logged information after permanently deleting posts (#28033) 2024-07-23 15:27:11 +08:00
views FIX: Exclude reply count on posts due to required Comment nesting (#27892) 2024-07-15 09:40:47 +08:00