pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Fluent editor adds back removed variant in multi-variant string

Open flodolo opened this issue 6 months ago • 0 comments

https://pontoon.mozilla.org/it/firefox-relay-website/en/misc.ftl/?string=248079

This is the current string

offer-countdown-timer-alt =
    { $remaining_days ->
        [0]
            { $remaining_hours ->
                [1] 1 ora rimanente
               *[other] { $remaining_hours } ore rimanenti
                [0] { "" }
            }
        [1]
            { $remaining_hours ->
                [1] 1 giorno e 1 ora rimanenti
               *[other] 1 giorno e { $remaining_hours } ore rimanenti
                [0] 1 giorno rimanente
            }
       *[other]
            { $remaining_hours ->
                [1] { $remaining_days } giorni e 1 ora rimanenti
               *[other] { $remaining_days } giorni e { $remaining_hours } ore rimanenti
                [0] { $remaining_days } giorni rimanenti
            }
    }

If I remove the empty 0 variant and try to submit, I get an error (Empty translation). When I switch back to the standard UI, Pontoon adds back the empty 0 form.

flodolo avatar Jun 25 '25 06:06 flodolo