News for hackers. Stuff that matters.
Re:Fluent 1.0: a localization system for natural-sounding tr... by lifthrasiir on Wednesday April 17, 2019 @08:24AM (#19681884)
As far as I can tell Fluent has no builtin support for tagging a phonemic information to messages or arguments (it only supports plural rules and number formatting largely derived from the CLDR). You can probably specify special cases with selectors (but it will quickly go absurd, for Polish I guess that applies to 6, 7, 16, 17, 60..79, 100..199, 600..699 and so on?) or have an external function.

Context: Polish preposition "z(e)" is spelled "z" if the following word starts with s and z and alikes (problematically enough, the exact rule is not systematic) and "ze" otherwise. Korean has a similar case with postpositions "은(는)" and "이(가)" where the former is for words ending with a consonant and the latter is for words ending with a vowel, and the ko-KR localization of Firefox seems to completely ignore and/or sidestep this; the last letter is assumed (e.g. "{-brand-name}는") or a static word is inserted (e.g. "{$user} 사용자는" instead of "{$user}은(는)").

Re:Fluent 1.0: a localization system for natural-sounding tr... by ajuc on Wednesday April 17, 2019 @08:39AM (#19681972)
Funnily enough "Strona 3 z 6" and "Strona 3 z 7" sounds correct but "Strona 3 z 100" doesn't.

So I think it's only words starting with "s", not "sz" nor "si". And only 0 starts with "z" so it's not a problem (you never have "X out of 0"). So the only special case is for 100-199, 100 000-199 999, etc.

Re:Fluent 1.0: a localization system for natural-sounding tr... by chungleong on Wednesday April 17, 2019 @10:22AM (#19682795)
A filler vowel is needed with certain consonant clusters. 100 is "stu" and "st" requires it, whereas "dwustu" (200), "trzystu" (300), "czterystu" (400) don't. I don't remember the list. "mn" is another combo that needs the vowel: "ze mnóstwa".
Re:Fluent 1.0: a localization system for natural-sounding tr... by lifthrasiir on Wednesday April 17, 2019 @09:02AM (#19682134)
Yeah, it is clear that I don't speak Polish ;-) What is a common workaround there? "Strona X z(e) Y"?
Re:Fluent 1.0: a localization system for natural-sounding tr... by ajuc on Wednesday April 17, 2019 @09:25AM (#19682298)
> What is a common workaround there?

Ignoring the issue altogether :) Or, if you're pedantic - implementing the special cases in the source code. But that's unmaintenable if you have lots of languages.