Moin
21 Julio, 2024 15:39
1
Continuando la discusión de Problema con la anulación de traducción pluralizada (count) :
Creo que el húngaro no es el único idioma afectado por esto. Después de revisar el hebreo debido a esto Bug mencionando problemas, pensé que tal vez más idiomas estaban afectados, así que comencé a buscar más casos.
Después de encontrar otro, espero que incluso más idiomas estén afectados.
2 Me gusta
david
(David Taylor)
22 Julio, 2024 12:10
3
¡Gracias @Moin !
He realizado este cambio para detener la hemorragia. Esto limitará el impacto de las compilaciones fallidas para que solo afecten a las cadenas _MF, en lugar de tumbar todo el sitio.
Seguiremos investigando la causa raíz y actualizaremos aquí cuando tengamos una solución.
11 Me gusta
loic
(Loïc Guitaut)
25 Julio, 2024 12:32
5
Hemos fusionado un parche que relaja el compilador de MessageFormat, permitiendo claves plurales no válidas en los mensajes:
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.
Esto debería solucionar la mayoría de los problemas. Otros parches deberían seguir pronto.
5 Me gusta
loic
(Loïc Guitaut)
26 Julio, 2024 10:27
6
Otro parche acaba de ser fusionado:
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.
----


Esto evitará la creación de anulaciones MF no válidas en la interfaz de administración.
5 Me gusta
loic
(Loïc Guitaut)
29 Julio, 2024 13:46
7
Acabo de fusionar este 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.
Las reglas de pluralización en Ruby ahora deberían estar actualizadas con las que tenemos en JS
4 Me gusta
j.jaffeux
(Joffrey Jaffeux)
Cerrado
3 Agosto, 2024 13:46
8
Este tema se cerró automáticamente 5 días después de la última respuesta. Ya no se permiten nuevas respuestas.