Re:Fluent – A localization system for natural-sounding trans...
by ReleaseCandidat on Sunday June 11, 2023 @10:43AM
(#36281876)
That doesn't work. You need to know the gender and actual number `X` of `X skeletons` to be able to (correctly ;) translate `attacked` in many languages. To correctly translate `X skeletons`, you need to know `X` and whether they are the attacker or being attacked. Same for `Y dragons`. In the end, you do not gain much but have a _really_ complex template (for such a simple phrase).
Re:Fluent – A localization system for natural-sounding trans...
by Ygg2 on Sunday June 11, 2023 @03:08PM
(#36284562)
Sure it does, you need a way to pass arguments for case/gender etc. It's not impossible to make it work, I already implemented a prototype for it, but it requires changes to how it handles references.
See https://github.com/projectfluent/fluent/issues/80 for more details.
Like say you want to make message like X skeleton(s) attacked Y dragon(s) generic over type of attacker/defender.
Currently only option is to duplicate it or deal with it in program.