Open
Description
I want to come up with a good example that shows the use of case inflections. (I realize that is not in scope for the MVP coming up, and don't want to derail that! This would be for the future).
Here's the example:
.match {$userGender :gender} {$count :integer} {$sourceCity}
female one {{Benvenuta, {$count} packages have arrived for you from {$sourceCity case=genitive}}}
female * {{Benvenuta, {$count} packages have arrived for you from {$sourceCity case=genitive}}}
* one {{Benvenuto, {$count} packages have arrived for you from {$sourceCity case=genitive}}}
* * {{Benvenuto, {$count} packages have arrived for you from {$sourceCity case=genitive}}}
This message is artificial for readability, but represents real grammatical features.
- “Welcome” has two forms in Italian, based on the gender of the listener/reader: Benvenuta for females, Benvenuto for males. In fact, the "you" would also change format based on the gender of the listener/reader in languages like Arabic or Hebrew.
- “London” (nominative case) becomes “Londona” (genitive case) after “iz” (=”from”) in Serbian.
And here's the question/comment:
There are are some interesting features about grammatical case.
- grammatical case can potentially be applied to any placeholder: strings, names, dates, currency values, etc. This could be done by software outside of the particular function being used.
- unlike other options, the translation tooling should allow it to be changed by the translator, to suit the language: genitive for some languages, ablative for others, etc.
Is this something that was considered already, where I can point people to an issue discussing it?