Moin
21 Luglio 2024, 3:39pm
1
Continuando la discussione da Problema con l’override della traduzione pluralizzata (conteggio) :
Penso che l’ungherese non sia l’unica lingua interessata da questo. Dopo aver controllato l’ebraico a causa di questo Bug che menziona problemi, ho pensato che forse anche altre lingue fossero interessate, quindi ho iniziato a cercare altri casi.
Dopo averne trovato un altro, mi aspetto che anche altre lingue siano interessate.
2 Mi Piace
david
(David Taylor)
22 Luglio 2024, 12:10pm
3
Grazie @Moin !
Ho apportato questa modifica per fermare l’emorragia. Questo limiterà l’impatto dei compilazioni fallite in modo che influenzino solo le stringhe _MF, anziché bloccare l’intero sito.
Continueremo a scavare nella causa principale e aggiorneremo qui quando avremo una soluzione.
11 Mi Piace
loic
(Loïc Guitaut)
25 Luglio 2024, 12:32pm
5
Abbiamo appena unito una patch che allenta il compilatore MessageFormat, consentendo chiavi plurali non valide nei messaggi:
main ← loic-handle-bad-mf-pluralization-rules
opened 04:08PM - 24 Jul 24 UTC
We can get translations with invalid plural keys from Crowdin or from custom ove… rrides. Currently, this will raise an error and the locales won’t be outputted at all.
This PR addresses this issue by using the new `strict: false` option of our `messageformat-wrapper` gem, allowing to generate locales even if there are invalid plural keys present.
Questo dovrebbe risolvere la maggior parte dei problemi. Altre patch seguiranno presto.
5 Mi Piace
loic
(Loïc Guitaut)
26 Luglio 2024, 10:27am
6
Un’altra patch è stata appena unita:
main ← loic-validate-translation-overrides
opened 03:00PM - 25 Jul 24 UTC
Currently, when adding translation overrides, values aren’t validated for MF str… ings. This results in being able to add invalid plural keys or even strings containing invalid syntax.
This PR 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.
----


Questo impedirà la creazione di override MF non validi nell’interfaccia di amministrazione.
5 Mi Piace
loic
(Loïc Guitaut)
29 Luglio 2024, 1:46pm
7
Ho appena unito questa PR:
main ← loic-update-ruby-i18n-pluralization-rules
opened 03:56PM - 26 Jul 24 UTC
The current pluralization rules used by the I18n system in Ruby are obsolete and… don’t follow the official rules available at https://www.unicode.org/cldr/charts/45/supplemental/language_plural_rules.html.
Using https://github.com/ruby-i18n/ruby-cldr, new and updated ones have been generated.
Le regole di pluralizzazione in Ruby dovrebbero ora essere aggiornate con quelle che abbiamo in JS
4 Mi Piace
j.jaffeux
(Joffrey Jaffeux)
Chiuso
3 Agosto 2024, 1:46pm
8
Questo argomento è stato chiuso automaticamente 5 giorni dopo l’ultima risposta. Non sono più permesse nuove risposte.